Migrated to the latest automake & libtool releases/prereleases, with all
[alexxy/gromacs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.50 for GROMACS 3.0.
4 #
5 # Report bugs to <gromacs@gromacs.org>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11
12 # Find the correct PATH separator.  Usually this is `:', but
13 # DJGPP uses `;' like DOS.
14 if test "X${PATH_SEPARATOR+set}" != Xset; then
15   UNAME=${UNAME-`uname 2>/dev/null`}
16   case X$UNAME in
17     *-DOS) PATH_SEPARATOR=';' ;;
18     *)     PATH_SEPARATOR=':' ;;
19   esac
20 fi
21
22 # Check that we are running under the correct shell.
23 SHELL=${CONFIG_SHELL-/bin/sh}
24
25 case X$ECHO in
26 X*--fallback-echo)
27   # Remove one level of quotation (which was required for Make).
28   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
29   ;;
30 esac
31
32 echo=${ECHO-echo}
33 if test "X$1" = X--no-reexec; then
34   # Discard the --no-reexec flag, and continue.
35   shift
36 elif test "X$1" = X--fallback-echo; then
37   # Avoid inline document here, it may be left over
38   :
39 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
40   # Yippee, $echo works!
41   :
42 else
43   # Restart under the correct shell.
44   exec $SHELL "$0" --no-reexec ${1+"$@"}
45 fi
46
47 if test "X$1" = X--fallback-echo; then
48   # used as fallback echo
49   shift
50   cat <<EOF
51 $*
52 EOF
53   exit 0
54 fi
55
56 # The HP-UX ksh and POSIX shell print the target directory to stdout
57 # if CDPATH is set.
58 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
59
60 if test -z "$ECHO"; then
61 if test "X${echo_test_string+set}" != Xset; then
62 # find a string as large as possible, as long as the shell can cope with it
63   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
64     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
65     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
66        echo_test_string="`eval $cmd`" &&
67        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
68     then
69       break
70     fi
71   done
72 fi
73
74 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
75    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
76    test "X$echo_testing_string" = "X$echo_test_string"; then
77   :
78 else
79   # The Solaris, AIX, and Digital Unix default echo programs unquote
80   # backslashes.  This makes it impossible to quote backslashes using
81   #   echo "$something" | sed 's/\\/\\\\/g'
82   #
83   # So, first we look for a working echo in the user's PATH.
84
85   IFS="${IFS=   }"; lt_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
86   for dir in $PATH /usr/ucb; do
87     IFS="$lt_save_ifs"
88     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
89        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
90        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
91        test "X$echo_testing_string" = "X$echo_test_string"; then
92       echo="$dir/echo"
93       break
94     fi
95   done
96   IFS="$lt_save_ifs"
97
98   if test "X$echo" = Xecho; then
99     # We didn't find a better echo, so look for alternatives.
100     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
101        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
102        test "X$echo_testing_string" = "X$echo_test_string"; then
103       # This shell has a builtin print -r that does the trick.
104       echo='print -r'
105     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
106          test "X$CONFIG_SHELL" != X/bin/ksh; then
107       # If we have ksh, try running configure again with it.
108       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
109       export ORIGINAL_CONFIG_SHELL
110       CONFIG_SHELL=/bin/ksh
111       export CONFIG_SHELL
112       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
113     else
114       # Try using printf.
115       echo='printf %s\n'
116       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
117          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
118          test "X$echo_testing_string" = "X$echo_test_string"; then
119         # Cool, printf works
120         :
121       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
122            test "X$echo_testing_string" = 'X\t' &&
123            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
124            test "X$echo_testing_string" = "X$echo_test_string"; then
125         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
126         export CONFIG_SHELL
127         SHELL="$CONFIG_SHELL"
128         export SHELL
129         echo="$CONFIG_SHELL $0 --fallback-echo"
130       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
131            test "X$echo_testing_string" = 'X\t' &&
132            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
133            test "X$echo_testing_string" = "X$echo_test_string"; then
134         echo="$CONFIG_SHELL $0 --fallback-echo"
135       else
136         # maybe with a smaller string...
137         prev=:
138
139         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
140           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
141           then
142             break
143           fi
144           prev="$cmd"
145         done
146
147         if test "$prev" != 'sed 50q "$0"'; then
148           echo_test_string=`eval $prev`
149           export echo_test_string
150           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
151         else
152           # Oops.  We lost completely, so just stick with echo.
153           echo=echo
154         fi
155       fi
156     fi
157   fi
158 fi
159 fi
160
161 # Copy echo and quote the copy suitably for passing to libtool from
162 # the Makefile, instead of quoting the original, which is used later.
163 ECHO=$echo
164 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
165    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
166 fi
167
168 # Be Bourne compatible
169 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
170   emulate sh
171   NULLCMD=:
172 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
173   set -o posix
174 fi
175
176 # Name of the executable.
177 as_me=`echo "$0" |sed 's,.*[\\/],,'`
178
179 if expr a : '\(a\)' >/dev/null 2>&1; then
180   as_expr=expr
181 else
182   as_expr=false
183 fi
184
185 rm -f conf$$ conf$$.exe conf$$.file
186 echo >conf$$.file
187 if ln -s conf$$.file conf$$ 2>/dev/null; then
188   # We could just check for DJGPP; but this test a) works b) is more generic
189   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
190   if test -f conf$$.exe; then
191     # Don't use ln at all; we don't have any links
192     as_ln_s='cp -p'
193   else
194     as_ln_s='ln -s'
195   fi
196 elif ln conf$$.file conf$$ 2>/dev/null; then
197   as_ln_s=ln
198 else
199   as_ln_s='cp -p'
200 fi
201 rm -f conf$$ conf$$.exe conf$$.file
202
203 as_executable_p="test -f"
204
205 # Support unset when possible.
206 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
207   as_unset=unset
208 else
209   as_unset=false
210 fi
211
212 # NLS nuisances.
213 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
214 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
215 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
216 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
217 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
218 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
219 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
220 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
221
222 # IFS
223 # We need space, tab and new line, in precisely that order.
224 as_nl='
225 '
226 IFS="   $as_nl"
227
228 # CDPATH.
229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
230
231 # Name of the host.
232 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
233 # so uname gets run too.
234 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
235
236 exec 6>&1
237
238 #
239 # Initializations.
240 #
241 ac_default_prefix=/usr/local
242 cross_compiling=no
243 subdirs=
244 MFLAGS= MAKEFLAGS=
245 SHELL=${CONFIG_SHELL-/bin/sh}
246
247 # Maximum number of lines to put in a shell here document.
248 # This variable seems obsolete.  It should probably be removed, and
249 # only ac_max_sed_lines should be used.
250 : ${ac_max_here_lines=38}
251
252 # Avoid depending upon Character Ranges.
253 ac_cr_az='abcdefghijklmnopqrstuvwxyz'
254 ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
255 ac_cr_09='0123456789'
256 ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09
257
258 # Sed expression to map a string onto a valid sh and CPP variable names.
259 ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g"
260 ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g"
261
262 ac_unique_file="src/gmxlib/3dview.c"
263 ac_default_prefix=/usr/local/gromacs
264 # Factoring default headers for most tests.
265 ac_includes_default="\
266 #include <stdio.h>
267 #include <sys/types.h>
268 #include <sys/stat.h>
269 #if STDC_HEADERS
270 # include <stdlib.h>
271 # include <stddef.h>
272 #else
273 # if HAVE_STDLIB_H
274 #  include <stdlib.h>
275 # endif
276 #endif
277 #if HAVE_STRING_H
278 # if !STDC_HEADERS && HAVE_MEMORY_H
279 #  include <memory.h>
280 # endif
281 # include <string.h>
282 #else
283 # if HAVE_STRINGS_H
284 #  include <strings.h>
285 # endif
286 #endif
287 #if HAVE_INTTYPES_H
288 # include <inttypes.h>
289 #endif
290 #if HAVE_UNISTD_H
291 # include <unistd.h>
292 #endif"
293
294 # Initialize some variables set by options.
295 ac_init_help=
296 ac_init_version=false
297 # The variables have the same names as the options, with
298 # dashes changed to underlines.
299 cache_file=/dev/null
300 exec_prefix=NONE
301 no_create=
302 no_recursion=
303 prefix=NONE
304 program_prefix=NONE
305 program_suffix=NONE
306 program_transform_name=s,x,x,
307 silent=
308 site=
309 srcdir=
310 verbose=
311 x_includes=NONE
312 x_libraries=NONE
313
314 # Installation directory options.
315 # These are left unexpanded so users can "make install exec_prefix=/foo"
316 # and all the variables that are supposed to be based on exec_prefix
317 # by default will actually change.
318 # Use braces instead of parens because sh, perl, etc. also accept them.
319 bindir='${exec_prefix}/bin'
320 sbindir='${exec_prefix}/sbin'
321 libexecdir='${exec_prefix}/libexec'
322 datadir='${prefix}/share'
323 sysconfdir='${prefix}/etc'
324 sharedstatedir='${prefix}/com'
325 localstatedir='${prefix}/var'
326 libdir='${exec_prefix}/lib'
327 includedir='${prefix}/include'
328 oldincludedir='/usr/include'
329 infodir='${prefix}/info'
330 mandir='${prefix}/man'
331
332 # Identity of this package.
333 PACKAGE_NAME='GROMACS'
334 PACKAGE_TARNAME='gromacs'
335 PACKAGE_VERSION='3.0'
336 PACKAGE_STRING='GROMACS 3.0'
337 PACKAGE_BUGREPORT='gromacs@gromacs.org'
338
339 ac_prev=
340 for ac_option
341 do
342   # If the previous option needs an argument, assign it.
343   if test -n "$ac_prev"; then
344     eval "$ac_prev=\$ac_option"
345     ac_prev=
346     continue
347   fi
348
349   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
350
351   # Accept the important Cygnus configure options, so we can diagnose typos.
352
353   case $ac_option in
354
355   -bindir | --bindir | --bindi | --bind | --bin | --bi)
356     ac_prev=bindir ;;
357   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
358     bindir=$ac_optarg ;;
359
360   -build | --build | --buil | --bui | --bu)
361     ac_prev=build_alias ;;
362   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
363     build_alias=$ac_optarg ;;
364
365   -cache-file | --cache-file | --cache-fil | --cache-fi \
366   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
367     ac_prev=cache_file ;;
368   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
369   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
370     cache_file=$ac_optarg ;;
371
372   --config-cache | -C)
373     cache_file=config.cache ;;
374
375   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
376     ac_prev=datadir ;;
377   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
378   | --da=*)
379     datadir=$ac_optarg ;;
380
381   -disable-* | --disable-*)
382     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
383     # Reject names that are not valid shell variable names.
384     expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
385       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
386    { (exit 1); exit 1; }; }
387     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
388     eval "enable_$ac_feature=no" ;;
389
390   -enable-* | --enable-*)
391     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
392     # Reject names that are not valid shell variable names.
393     expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
394       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
395    { (exit 1); exit 1; }; }
396     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
397     case $ac_option in
398       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
399       *) ac_optarg=yes ;;
400     esac
401     eval "enable_$ac_feature='$ac_optarg'" ;;
402
403   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
404   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
405   | --exec | --exe | --ex)
406     ac_prev=exec_prefix ;;
407   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
408   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
409   | --exec=* | --exe=* | --ex=*)
410     exec_prefix=$ac_optarg ;;
411
412   -gas | --gas | --ga | --g)
413     # Obsolete; use --with-gas.
414     with_gas=yes ;;
415
416   -help | --help | --hel | --he | -h)
417     ac_init_help=long ;;
418   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
419     ac_init_help=recursive ;;
420   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
421     ac_init_help=short ;;
422
423   -host | --host | --hos | --ho)
424     ac_prev=host_alias ;;
425   -host=* | --host=* | --hos=* | --ho=*)
426     host_alias=$ac_optarg ;;
427
428   -includedir | --includedir | --includedi | --included | --include \
429   | --includ | --inclu | --incl | --inc)
430     ac_prev=includedir ;;
431   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
432   | --includ=* | --inclu=* | --incl=* | --inc=*)
433     includedir=$ac_optarg ;;
434
435   -infodir | --infodir | --infodi | --infod | --info | --inf)
436     ac_prev=infodir ;;
437   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
438     infodir=$ac_optarg ;;
439
440   -libdir | --libdir | --libdi | --libd)
441     ac_prev=libdir ;;
442   -libdir=* | --libdir=* | --libdi=* | --libd=*)
443     libdir=$ac_optarg ;;
444
445   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
446   | --libexe | --libex | --libe)
447     ac_prev=libexecdir ;;
448   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
449   | --libexe=* | --libex=* | --libe=*)
450     libexecdir=$ac_optarg ;;
451
452   -localstatedir | --localstatedir | --localstatedi | --localstated \
453   | --localstate | --localstat | --localsta | --localst \
454   | --locals | --local | --loca | --loc | --lo)
455     ac_prev=localstatedir ;;
456   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
457   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
458   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
459     localstatedir=$ac_optarg ;;
460
461   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
462     ac_prev=mandir ;;
463   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
464     mandir=$ac_optarg ;;
465
466   -nfp | --nfp | --nf)
467     # Obsolete; use --without-fp.
468     with_fp=no ;;
469
470   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
471   | --no-cr | --no-c)
472     no_create=yes ;;
473
474   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
475   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
476     no_recursion=yes ;;
477
478   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
479   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
480   | --oldin | --oldi | --old | --ol | --o)
481     ac_prev=oldincludedir ;;
482   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
483   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
484   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
485     oldincludedir=$ac_optarg ;;
486
487   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
488     ac_prev=prefix ;;
489   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
490     prefix=$ac_optarg ;;
491
492   -program-prefix | --program-prefix | --program-prefi | --program-pref \
493   | --program-pre | --program-pr | --program-p)
494     ac_prev=program_prefix ;;
495   -program-prefix=* | --program-prefix=* | --program-prefi=* \
496   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
497     program_prefix=$ac_optarg ;;
498
499   -program-suffix | --program-suffix | --program-suffi | --program-suff \
500   | --program-suf | --program-su | --program-s)
501     ac_prev=program_suffix ;;
502   -program-suffix=* | --program-suffix=* | --program-suffi=* \
503   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
504     program_suffix=$ac_optarg ;;
505
506   -program-transform-name | --program-transform-name \
507   | --program-transform-nam | --program-transform-na \
508   | --program-transform-n | --program-transform- \
509   | --program-transform | --program-transfor \
510   | --program-transfo | --program-transf \
511   | --program-trans | --program-tran \
512   | --progr-tra | --program-tr | --program-t)
513     ac_prev=program_transform_name ;;
514   -program-transform-name=* | --program-transform-name=* \
515   | --program-transform-nam=* | --program-transform-na=* \
516   | --program-transform-n=* | --program-transform-=* \
517   | --program-transform=* | --program-transfor=* \
518   | --program-transfo=* | --program-transf=* \
519   | --program-trans=* | --program-tran=* \
520   | --progr-tra=* | --program-tr=* | --program-t=*)
521     program_transform_name=$ac_optarg ;;
522
523   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
524   | -silent | --silent | --silen | --sile | --sil)
525     silent=yes ;;
526
527   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
528     ac_prev=sbindir ;;
529   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
530   | --sbi=* | --sb=*)
531     sbindir=$ac_optarg ;;
532
533   -sharedstatedir | --sharedstatedir | --sharedstatedi \
534   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
535   | --sharedst | --shareds | --shared | --share | --shar \
536   | --sha | --sh)
537     ac_prev=sharedstatedir ;;
538   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
539   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
540   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
541   | --sha=* | --sh=*)
542     sharedstatedir=$ac_optarg ;;
543
544   -site | --site | --sit)
545     ac_prev=site ;;
546   -site=* | --site=* | --sit=*)
547     site=$ac_optarg ;;
548
549   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
550     ac_prev=srcdir ;;
551   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
552     srcdir=$ac_optarg ;;
553
554   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
555   | --syscon | --sysco | --sysc | --sys | --sy)
556     ac_prev=sysconfdir ;;
557   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
558   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
559     sysconfdir=$ac_optarg ;;
560
561   -target | --target | --targe | --targ | --tar | --ta | --t)
562     ac_prev=target_alias ;;
563   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
564     target_alias=$ac_optarg ;;
565
566   -v | -verbose | --verbose | --verbos | --verbo | --verb)
567     verbose=yes ;;
568
569   -version | --version | --versio | --versi | --vers | -V)
570     ac_init_version=: ;;
571
572   -with-* | --with-*)
573     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
574     # Reject names that are not valid shell variable names.
575     expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
576       { echo "$as_me: error: invalid package name: $ac_package" >&2
577    { (exit 1); exit 1; }; }
578     ac_package=`echo $ac_package| sed 's/-/_/g'`
579     case $ac_option in
580       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
581       *) ac_optarg=yes ;;
582     esac
583     eval "with_$ac_package='$ac_optarg'" ;;
584
585   -without-* | --without-*)
586     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package | sed 's/-/_/g'`
592     eval "with_$ac_package=no" ;;
593
594   --x)
595     # Obsolete; use --with-x.
596     with_x=yes ;;
597
598   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
599   | --x-incl | --x-inc | --x-in | --x-i)
600     ac_prev=x_includes ;;
601   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
602   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
603     x_includes=$ac_optarg ;;
604
605   -x-libraries | --x-libraries | --x-librarie | --x-librari \
606   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
607     ac_prev=x_libraries ;;
608   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
609   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
610     x_libraries=$ac_optarg ;;
611
612   -*) { echo "$as_me: error: unrecognized option: $ac_option
613 Try \`$0 --help' for more information." >&2
614    { (exit 1); exit 1; }; }
615     ;;
616
617   *=*)
618     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
619     # Reject names that are not valid shell variable names.
620     expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null &&
621       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
622    { (exit 1); exit 1; }; }
623     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
624     eval "$ac_envvar='$ac_optarg'"
625     export $ac_envvar ;;
626
627   *)
628     # FIXME: should be removed in autoconf 3.0.
629     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
630     expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null &&
631       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
632     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
633     ;;
634
635   esac
636 done
637
638 if test -n "$ac_prev"; then
639   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
640   { echo "$as_me: error: missing argument to $ac_option" >&2
641    { (exit 1); exit 1; }; }
642 fi
643
644 # Be sure to have absolute paths.
645 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
646               localstatedir libdir includedir oldincludedir infodir mandir \
647               exec_prefix prefix
648 do
649   eval ac_val=$`echo $ac_var`
650   case $ac_val in
651     [\\/$]* | ?:[\\/]* ) ;;
652     NONE ) ;;
653     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
654    { (exit 1); exit 1; }; };;
655   esac
656 done
657
658 # There might be people who depend on the old broken behavior: `$host'
659 # used to hold the argument of --host etc.
660 build=$build_alias
661 host=$host_alias
662 target=$target_alias
663
664 # FIXME: should be removed in autoconf 3.0.
665 if test "x$host_alias" != x; then
666   if test "x$build_alias" = x; then
667     cross_compiling=maybe
668     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
669     If a cross compiler is detected then cross compile mode will be used." >&2
670   elif test "x$build_alias" != "x$host_alias"; then
671     cross_compiling=yes
672   fi
673 fi
674
675 ac_tool_prefix=
676 test -n "$host_alias" && ac_tool_prefix=$host_alias-
677
678 test "$silent" = yes && exec 6>/dev/null
679
680 # Find the source files, if location was not specified.
681 if test -z "$srcdir"; then
682   ac_srcdir_defaulted=yes
683   # Try the directory containing this script, then its parent.
684   ac_prog=$0
685   ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
686   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
687   srcdir=$ac_confdir
688   if test ! -r $srcdir/$ac_unique_file; then
689     srcdir=..
690   fi
691 else
692   ac_srcdir_defaulted=no
693 fi
694 if test ! -r $srcdir/$ac_unique_file; then
695   if test "$ac_srcdir_defaulted" = yes; then
696     { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
697    { (exit 1); exit 1; }; }
698   else
699     { echo "$as_me: error: cannot find sources in $srcdir" >&2
700    { (exit 1); exit 1; }; }
701   fi
702 fi
703 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704 ac_env_build_alias_set=${build_alias+set}
705 ac_env_build_alias_value=$build_alias
706 ac_cv_env_build_alias_set=${build_alias+set}
707 ac_cv_env_build_alias_value=$build_alias
708 ac_env_host_alias_set=${host_alias+set}
709 ac_env_host_alias_value=$host_alias
710 ac_cv_env_host_alias_set=${host_alias+set}
711 ac_cv_env_host_alias_value=$host_alias
712 ac_env_target_alias_set=${target_alias+set}
713 ac_env_target_alias_value=$target_alias
714 ac_cv_env_target_alias_set=${target_alias+set}
715 ac_cv_env_target_alias_value=$target_alias
716 ac_env_CC_set=${CC+set}
717 ac_env_CC_value=$CC
718 ac_cv_env_CC_set=${CC+set}
719 ac_cv_env_CC_value=$CC
720 ac_env_CFLAGS_set=${CFLAGS+set}
721 ac_env_CFLAGS_value=$CFLAGS
722 ac_cv_env_CFLAGS_set=${CFLAGS+set}
723 ac_cv_env_CFLAGS_value=$CFLAGS
724 ac_env_LDFLAGS_set=${LDFLAGS+set}
725 ac_env_LDFLAGS_value=$LDFLAGS
726 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727 ac_cv_env_LDFLAGS_value=$LDFLAGS
728 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729 ac_env_CPPFLAGS_value=$CPPFLAGS
730 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
732 ac_env_F77_set=${F77+set}
733 ac_env_F77_value=$F77
734 ac_cv_env_F77_set=${F77+set}
735 ac_cv_env_F77_value=$F77
736 ac_env_FFLAGS_set=${FFLAGS+set}
737 ac_env_FFLAGS_value=$FFLAGS
738 ac_cv_env_FFLAGS_set=${FFLAGS+set}
739 ac_cv_env_FFLAGS_value=$FFLAGS
740 ac_env_CXX_set=${CXX+set}
741 ac_env_CXX_value=$CXX
742 ac_cv_env_CXX_set=${CXX+set}
743 ac_cv_env_CXX_value=$CXX
744 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
745 ac_env_CXXFLAGS_value=$CXXFLAGS
746 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
747 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
748 ac_env_CXXCPP_set=${CXXCPP+set}
749 ac_env_CXXCPP_value=$CXXCPP
750 ac_cv_env_CXXCPP_set=${CXXCPP+set}
751 ac_cv_env_CXXCPP_value=$CXXCPP
752 ac_env_CPP_set=${CPP+set}
753 ac_env_CPP_value=$CPP
754 ac_cv_env_CPP_set=${CPP+set}
755 ac_cv_env_CPP_value=$CPP
756
757 #
758 # Report the --help message.
759 #
760 if test "$ac_init_help" = "long"; then
761   # Omit some internal or obsolete options to make the list less imposing.
762   # This message is too long to be a string in the A/UX 3.1 sh.
763   cat <<EOF
764 \`configure' configures GROMACS 3.0 to adapt to many kinds of systems.
765
766 Usage: $0 [OPTION]... [VAR=VALUE]...
767
768 To assign environment variables (e.g., CC, CFLAGS...), specify them as
769 VAR=VALUE.  See below for descriptions of some of the useful variables.
770
771 Defaults for the options are specified in brackets.
772
773 Configuration:
774   -h, --help              display this help and exit
775       --help=short        display options specific to this package
776       --help=recursive    display the short help of all the included packages
777   -V, --version           display version information and exit
778   -q, --quiet, --silent   do not print \`checking...' messages
779       --cache-file=FILE   cache test results in FILE [disabled]
780   -C, --config-cache      alias for \`--cache-file=config.cache'
781   -n, --no-create         do not create output files
782       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
783
784 EOF
785
786   cat <<EOF
787 Installation directories:
788   --prefix=PREFIX         install architecture-independent files in PREFIX
789                           [$ac_default_prefix]
790   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
791                           [PREFIX]
792
793 By default, \`make install' will install all the files in
794 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
795 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
796 for instance \`--prefix=\$HOME'.
797
798 For better control, use the options below.
799
800 Fine tuning of the installation directories:
801   --bindir=DIR           user executables [EPREFIX/bin]
802   --sbindir=DIR          system admin executables [EPREFIX/sbin]
803   --libexecdir=DIR       program executables [EPREFIX/libexec]
804   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
805   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
806   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
807   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
808   --libdir=DIR           object code libraries [EPREFIX/lib]
809   --includedir=DIR       C header files [PREFIX/include]
810   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
811   --infodir=DIR          info documentation [PREFIX/info]
812   --mandir=DIR           man documentation [PREFIX/man]
813 EOF
814
815   cat <<\EOF
816
817 Program names:
818   --program-prefix=PREFIX            prepend PREFIX to installed program names
819   --program-suffix=SUFFIX            append SUFFIX to installed program names
820   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
821
822 X features:
823   --x-includes=DIR    X include files are in DIR
824   --x-libraries=DIR   X library files are in DIR
825
826 System types:
827   --build=BUILD     configure for building on BUILD [guessed]
828   --host=HOST       build programs to run on HOST [BUILD]
829 EOF
830 fi
831
832 if test -n "$ac_init_help"; then
833   case $ac_init_help in
834      short | recursive ) echo "Configuration of GROMACS 3.0:";;
835    esac
836   cat <<\EOF
837
838 Optional Features:
839   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
840   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
841   --disable-dependency-tracking Speeds up one-time builds
842   --enable-dependency-tracking  Do not reject slow dependency extractors
843   --disable-float               use double instead of single precision
844   --enable-fortran              use fortran (default on sgi,ibm,sun,axp)
845   --enable-mpi                  compile for parallel runs using MPI
846   --disable-x86-asm             don't build assembly loops on x86
847   --disable-cpu-optimization    no detection or tuning flags for cpu version
848   --enable-vector               create inner loops for a vector machine
849   --disable-waterloop-unrolling expand the loops instead (hack for sgi)
850   --disable-waterwater-loops    turn off double unrolled loops (hack for sgi)
851   --enable-software-recip       perform software 1/x
852   --disable-software-sqrt       no software 1/sqrt (disabled on sgi,rs6000)
853   --enable-vectorized-recip     vectorize LJ-only inner loops
854   --enable-vectorized-sqrt=A,B  vectorize selected inner loops (default none)
855                                 choices: normal,solvent,water,water-water
856   --enable-prefetch-x=A,B       prefetch coordinates in selected innerloops
857   --enable-prefetch-f=A,B       prefetch forces in selected innerloops
858   --enable-hide-square-latency  load coords to cache in advance
859   --enable-hide-table-latency   load table data to cache in advance
860   --enable-shared=PKGS  build shared libraries default=yes
861   --enable-static=PKGS  build static libraries default=yes
862   --enable-fast-install=PKGS  optimize for fast installation default=yes
863   --disable-libtool-lock  avoid locking (might break parallel builds)
864
865 Optional Packages:
866   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
867   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
868   --enable-mpi-environment=VAR  only start parallel runs when VAR is set
869   --without-fftw          if you turn this off you cannot use PME/PPPM
870   --with-gnu-ld           assume the C compiler uses GNU ld default=no
871   --with-pic              try to use only PIC/non-PIC objects default=use both
872   --with-dmalloc          use dmalloc, as in
873                           http://www.dmalloc.com/dmalloc.tar.gz
874   --with-x                use the X Window System
875   --with-motif-includes=DIR     Motif include files are in DIR
876   --with-motif-libraries=DIR    Motif libraries are in DIR
877
878 Some influential environment variables:
879   CC          C compiler command
880   CFLAGS      C compiler flags
881   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
882               nonstandard directory <lib dir>
883   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
884               headers in a nonstandard directory <include dir>
885   F77         Fortran 77 compiler command
886   FFLAGS      Fortran 77 compiler flags
887   CXX         C++ compiler command
888   CXXFLAGS    C++ compiler flags
889   CXXCPP      C++ preprocessor
890   CPP         C preprocessor
891
892 Use these variables to override the choices made by `configure' or to help
893 it to find libraries and programs with nonstandard names/locations.
894
895 Report bugs to <gromacs@gromacs.org>.
896 EOF
897 fi
898
899 if test "$ac_init_help" = "recursive"; then
900   # If there are subdirs, report their specific --help.
901   ac_popdir=`pwd`
902   for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
903     cd $ac_subdir
904     # A "../" for each directory in /$ac_subdir.
905     ac_dots=`echo $ac_subdir |
906              sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
907
908     case $srcdir in
909     .) # No --srcdir option.  We are building in place.
910       ac_sub_srcdir=$srcdir ;;
911     [\\/]* | ?:[\\/]* ) # Absolute path.
912       ac_sub_srcdir=$srcdir/$ac_subdir ;;
913     *) # Relative path.
914       ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
915     esac
916
917     # Check for guested configure; otherwise get Cygnus style configure.
918     if test -f $ac_sub_srcdir/configure.gnu; then
919       echo
920       $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
921     elif test -f $ac_sub_srcdir/configure; then
922       echo
923       $SHELL $ac_sub_srcdir/configure  --help=recursive
924     elif test -f $ac_sub_srcdir/configure.ac ||
925            test -f $ac_sub_srcdir/configure.in; then
926       echo
927       $ac_configure --help
928     else
929       echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
930     fi
931     cd $ac_popdir
932   done
933 fi
934
935 test -n "$ac_init_help" && exit 0
936 if $ac_init_version; then
937   cat <<\EOF
938 GROMACS configure 3.0
939 generated by GNU Autoconf 2.50
940
941 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
942 Free Software Foundation, Inc.
943 This configure script is free software; the Free Software Foundation
944 gives unlimited permission to copy, distribute and modify it.
945 EOF
946   exit 0
947 fi
948 exec 5>config.log
949 cat >&5 <<EOF
950 This file contains any messages produced by compilers while
951 running configure, to aid debugging if configure makes a mistake.
952
953 It was created by GROMACS $as_me 3.0, which was
954 generated by GNU Autoconf 2.50.  Invocation command line was
955
956   $ $0 $@
957
958 EOF
959 {
960 cat <<_ASUNAME
961 ## ---------- ##
962 ## Platform.  ##
963 ## ---------- ##
964
965 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
966 uname -m = `(uname -m) 2>/dev/null || echo unknown`
967 uname -r = `(uname -r) 2>/dev/null || echo unknown`
968 uname -s = `(uname -s) 2>/dev/null || echo unknown`
969 uname -v = `(uname -v) 2>/dev/null || echo unknown`
970
971 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
972 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
973
974 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
975 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
976 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
977 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
978 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
979 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
980 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
981
982 PATH = $PATH
983
984 _ASUNAME
985 } >&5
986
987 cat >&5 <<EOF
988 ## ------------ ##
989 ## Core tests.  ##
990 ## ------------ ##
991
992 EOF
993
994 # Keep a trace of the command line.
995 # Strip out --no-create and --no-recursion so they do not pile up.
996 # Also quote any args containing shell meta-characters.
997 ac_configure_args=
998 ac_sep=
999 for ac_arg
1000 do
1001   case $ac_arg in
1002   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1003   | --no-cr | --no-c) ;;
1004   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1005   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
1006   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1007     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1008     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1009     ac_sep=" " ;;
1010   *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
1011      ac_sep=" " ;;
1012   esac
1013   # Get rid of the leading space.
1014 done
1015
1016 # When interrupted or exit'd, cleanup temporary files, and complete
1017 # config.log.  We remove comments because anyway the quotes in there
1018 # would cause problems or look ugly.
1019 trap 'exit_status=$?
1020   # Save into config.log some information that might help in debugging.
1021   echo >&5
1022   echo "## ----------------- ##" >&5
1023   echo "## Cache variables.  ##" >&5
1024   echo "## ----------------- ##" >&5
1025   echo >&5
1026   # The following way of writing the cache mishandles newlines in values,
1027 {
1028   (set) 2>&1 |
1029     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1030     *ac_space=\ *)
1031       sed -n \
1032         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1033           s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1034       ;;
1035     *)
1036       sed -n \
1037         "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1038       ;;
1039     esac;
1040 } >&5
1041   sed "/^$/d" confdefs.h >conftest.log
1042   if test -s conftest.log; then
1043     echo >&5
1044     echo "## ------------ ##" >&5
1045     echo "## confdefs.h.  ##" >&5
1046     echo "## ------------ ##" >&5
1047     echo >&5
1048     cat conftest.log >&5
1049   fi
1050   (echo; echo) >&5
1051   test "$ac_signal" != 0 &&
1052     echo "$as_me: caught signal $ac_signal" >&5
1053   echo "$as_me: exit $exit_status" >&5
1054   rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1055     exit $exit_status
1056      ' 0
1057 for ac_signal in 1 2 13 15; do
1058   trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal
1059 done
1060 ac_signal=0
1061
1062 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1063 rm -rf conftest* confdefs.h
1064 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1065 echo >confdefs.h
1066
1067 # Let the site file select an alternate cache file if it wants to.
1068 # Prefer explicitly selected file to automatically selected ones.
1069 if test -z "$CONFIG_SITE"; then
1070   if test "x$prefix" != xNONE; then
1071     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1072   else
1073     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1074   fi
1075 fi
1076 for ac_site_file in $CONFIG_SITE; do
1077   if test -r "$ac_site_file"; then
1078     { echo "$as_me:1078: loading site script $ac_site_file" >&5
1079 echo "$as_me: loading site script $ac_site_file" >&6;}
1080     cat "$ac_site_file" >&5
1081     . "$ac_site_file"
1082   fi
1083 done
1084
1085 if test -r "$cache_file"; then
1086   # Some versions of bash will fail to source /dev/null (special
1087   # files actually), so we avoid doing that.
1088   if test -f "$cache_file"; then
1089     { echo "$as_me:1089: loading cache $cache_file" >&5
1090 echo "$as_me: loading cache $cache_file" >&6;}
1091     case $cache_file in
1092       [\\/]* | ?:[\\/]* ) . $cache_file;;
1093       *)                      . ./$cache_file;;
1094     esac
1095   fi
1096 else
1097   { echo "$as_me:1097: creating cache $cache_file" >&5
1098 echo "$as_me: creating cache $cache_file" >&6;}
1099   >$cache_file
1100 fi
1101
1102 # Check that the precious variables saved in the cache have kept the same
1103 # value.
1104 ac_suggest_removing_cache=false
1105 for ac_var in `(set) 2>&1 |
1106                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1107   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1108   eval ac_new_set=\$ac_env_${ac_var}_set
1109   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1110   eval ac_new_val="\$ac_env_${ac_var}_value"
1111   case $ac_old_set,$ac_new_set in
1112     set,)
1113       { echo "$as_me:1113: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1114 echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1115       ac_suggest_removing_cache=: ;;
1116     ,set)
1117       { echo "$as_me:1117: WARNING: \`$ac_var' was not set in the previous run" >&5
1118 echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}
1119       ac_suggest_removing_cache=: ;;
1120     ,);;
1121     *)
1122       if test "x$ac_old_val" != "x$ac_new_val"; then
1123         { echo "$as_me:1123: WARNING: \`$ac_var' has changed since the previous run:" >&5
1124 echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}
1125         { echo "$as_me:1125: WARNING:   former value:  $ac_old_val" >&5
1126 echo "$as_me: WARNING:   former value:  $ac_old_val" >&2;}
1127         { echo "$as_me:1127: WARNING:   current value: $ac_new_val" >&5
1128 echo "$as_me: WARNING:   current value: $ac_new_val" >&2;}
1129         ac_suggest_removing_cache=:
1130       fi;;
1131   esac
1132 done
1133 if $ac_suggest_removing_cache; then
1134   { echo "$as_me:1134: WARNING: changes in the environment can compromise the build" >&5
1135 echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;}
1136   { echo "$as_me:1136: WARNING: consider removing $cache_file and starting over" >&5
1137 echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;}
1138 fi
1139
1140 ac_ext=c
1141 ac_cpp='$CPP $CPPFLAGS'
1142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1145
1146 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1147   *c*,-n*) ECHO_N= ECHO_C='
1148 ' ECHO_T='      ' ;;
1149   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1150   *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
1151 esac
1152 echo "#! $SHELL" >conftest.sh
1153 echo  "exit 0"   >>conftest.sh
1154 chmod +x conftest.sh
1155 if { (echo "$as_me:1155: PATH=\".;.\"; conftest.sh") >&5
1156   (PATH=".;."; conftest.sh) 2>&5
1157   ac_status=$?
1158   echo "$as_me:1158: \$? = $ac_status" >&5
1159   (exit $ac_status); }; then
1160   ac_path_separator=';'
1161 else
1162   ac_path_separator=:
1163 fi
1164 PATH_SEPARATOR="$ac_path_separator"
1165 rm -f conftest.sh
1166
1167 ac_aux_dir=
1168 for ac_dir in config $srcdir/config; do
1169   if test -f $ac_dir/install-sh; then
1170     ac_aux_dir=$ac_dir
1171     ac_install_sh="$ac_aux_dir/install-sh -c"
1172     break
1173   elif test -f $ac_dir/install.sh; then
1174     ac_aux_dir=$ac_dir
1175     ac_install_sh="$ac_aux_dir/install.sh -c"
1176     break
1177   elif test -f $ac_dir/shtool; then
1178     ac_aux_dir=$ac_dir
1179     ac_install_sh="$ac_aux_dir/shtool install -c"
1180     break
1181   fi
1182 done
1183 if test -z "$ac_aux_dir"; then
1184   { { echo "$as_me:1184: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1185 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1186    { (exit 1); exit 1; }; }
1187 fi
1188 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1189 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1190 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1191
1192 # Make sure we can run config.sub.
1193 $ac_config_sub sun4 >/dev/null 2>&1 ||
1194   { { echo "$as_me:1194: error: cannot run $ac_config_sub" >&5
1195 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1196    { (exit 1); exit 1; }; }
1197
1198 echo "$as_me:1198: checking build system type" >&5
1199 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1200 if test "${ac_cv_build+set}" = set; then
1201   echo $ECHO_N "(cached) $ECHO_C" >&6
1202 else
1203   ac_cv_build_alias=$build_alias
1204 test -z "$ac_cv_build_alias" &&
1205   ac_cv_build_alias=`$ac_config_guess`
1206 test -z "$ac_cv_build_alias" &&
1207   { { echo "$as_me:1207: error: cannot guess build type; you must specify one" >&5
1208 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1209    { (exit 1); exit 1; }; }
1210 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1211   { { echo "$as_me:1211: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1212 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1213    { (exit 1); exit 1; }; }
1214
1215 fi
1216 echo "$as_me:1216: result: $ac_cv_build" >&5
1217 echo "${ECHO_T}$ac_cv_build" >&6
1218 build=$ac_cv_build
1219 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1220 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1221 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1222
1223 echo "$as_me:1223: checking host system type" >&5
1224 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1225 if test "${ac_cv_host+set}" = set; then
1226   echo $ECHO_N "(cached) $ECHO_C" >&6
1227 else
1228   ac_cv_host_alias=$host_alias
1229 test -z "$ac_cv_host_alias" &&
1230   ac_cv_host_alias=$ac_cv_build_alias
1231 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1232   { { echo "$as_me:1232: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1233 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1234    { (exit 1); exit 1; }; }
1235
1236 fi
1237 echo "$as_me:1237: result: $ac_cv_host" >&5
1238 echo "${ECHO_T}$ac_cv_host" >&6
1239 host=$ac_cv_host
1240 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1241 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1242 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1243
1244 # Find a good install program.  We prefer a C program (faster),
1245 # so one script is as good as another.  But avoid the broken or
1246 # incompatible versions:
1247 # SysV /etc/install, /usr/sbin/install
1248 # SunOS /usr/etc/install
1249 # IRIX /sbin/install
1250 # AIX /bin/install
1251 # AmigaOS /C/install, which installs bootblocks on floppy discs
1252 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1253 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1254 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1255 # ./install, which can be erroneously created by make from ./install.sh.
1256 echo "$as_me:1256: checking for a BSD compatible install" >&5
1257 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1258 if test -z "$INSTALL"; then
1259 if test "${ac_cv_path_install+set}" = set; then
1260   echo $ECHO_N "(cached) $ECHO_C" >&6
1261 else
1262     ac_save_IFS=$IFS; IFS=$ac_path_separator
1263   for ac_dir in $PATH; do
1264     IFS=$ac_save_IFS
1265     # Account for people who put trailing slashes in PATH elements.
1266     case $ac_dir/ in
1267     / | ./ | .// | /cC/* \
1268     | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1269     | /usr/ucb/* ) ;;
1270     *)
1271       # OSF1 and SCO ODT 3.0 have their own names for install.
1272       # Don't use installbsd from OSF since it installs stuff as root
1273       # by default.
1274       for ac_prog in ginstall scoinst install; do
1275         if $as_executable_p "$ac_dir/$ac_prog"; then
1276           if test $ac_prog = install &&
1277             grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1278             # AIX install.  It has an incompatible calling convention.
1279             :
1280           elif test $ac_prog = install &&
1281             grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1282             # program-specific install script used by HP pwplus--don't use.
1283             :
1284           else
1285             ac_cv_path_install="$ac_dir/$ac_prog -c"
1286             break 2
1287           fi
1288         fi
1289       done
1290       ;;
1291     esac
1292   done
1293
1294 fi
1295   if test "${ac_cv_path_install+set}" = set; then
1296     INSTALL=$ac_cv_path_install
1297   else
1298     # As a last resort, use the slow shell script.  We don't cache a
1299     # path for INSTALL within a source directory, because that will
1300     # break other packages using the cache if that directory is
1301     # removed, or if the path is relative.
1302     INSTALL=$ac_install_sh
1303   fi
1304 fi
1305 echo "$as_me:1305: result: $INSTALL" >&5
1306 echo "${ECHO_T}$INSTALL" >&6
1307
1308 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1309 # It thinks the first close brace ends the variable substitution.
1310 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1311
1312 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1313
1314 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1315
1316 echo "$as_me:1316: checking whether build environment is sane" >&5
1317 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1318 # Just in case
1319 sleep 1
1320 echo timestamp > conftest.file
1321 # Do `set' in a subshell so we don't clobber the current shell's
1322 # arguments.  Must try -L first in case configure is actually a
1323 # symlink; some systems play weird games with the mod time of symlinks
1324 # (eg FreeBSD returns the mod time of the symlink's containing
1325 # directory).
1326 if (
1327    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1328    if test "$*" = "X"; then
1329       # -L didn't work.
1330       set X `ls -t $srcdir/configure conftest.file`
1331    fi
1332    rm -f conftest.file
1333    if test "$*" != "X $srcdir/configure conftest.file" \
1334       && test "$*" != "X conftest.file $srcdir/configure"; then
1335
1336       # If neither matched, then we have a broken ls.  This can happen
1337       # if, for instance, CONFIG_SHELL is bash and it inherits a
1338       # broken ls alias from the environment.  This has actually
1339       # happened.  Such a system could not be considered "sane".
1340       { { echo "$as_me:1340: error: ls -t appears to fail.  Make sure there is not a broken
1341 alias in your environment" >&5
1342 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1343 alias in your environment" >&2;}
1344    { (exit 1); exit 1; }; }
1345    fi
1346
1347    test "$2" = conftest.file
1348    )
1349 then
1350    # Ok.
1351    :
1352 else
1353    { { echo "$as_me:1353: error: newly created file is older than distributed files!
1354 Check your system clock" >&5
1355 echo "$as_me: error: newly created file is older than distributed files!
1356 Check your system clock" >&2;}
1357    { (exit 1); exit 1; }; }
1358 fi
1359 echo "$as_me:1359: result: yes" >&5
1360 echo "${ECHO_T}yes" >&6
1361 if test "$program_transform_name" = s,x,x,; then
1362   program_transform_name=
1363 else
1364   # Double any \ or $.  echo might interpret backslashes.
1365   cat <<\EOF >conftest.sed
1366 s,\\,\\\\,g; s,\$,$$,g
1367 EOF
1368   program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1369   rm -f conftest.sed
1370 fi
1371 test "$program_prefix" != NONE &&
1372   program_transform_name="s,^,${program_prefix},;$program_transform_name"
1373 # Use a double $ so make ignores it.
1374 test "$program_suffix" != NONE &&
1375   program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1376
1377 # sed with no file args requires a program.
1378 test -z "$program_transform_name" && program_transform_name="s,x,x,"
1379
1380 test x"${MISSING+set}" = xset ||
1381   MISSING="\${SHELL} `CDPATH=:; cd $ac_aux_dir && pwd`/missing"
1382 # Use eval to expand $SHELL
1383 if eval "$MISSING --run true"; then
1384   am_missing_run="$MISSING --run "
1385 else
1386   am_missing_run=
1387   am_backtick='`'
1388   { echo "$as_me:1388: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1389 echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
1390 fi
1391
1392 for ac_prog in mawk gawk nawk awk
1393 do
1394   # Extract the first word of "$ac_prog", so it can be a program name with args.
1395 set dummy $ac_prog; ac_word=$2
1396 echo "$as_me:1396: checking for $ac_word" >&5
1397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1398 if test "${ac_cv_prog_AWK+set}" = set; then
1399   echo $ECHO_N "(cached) $ECHO_C" >&6
1400 else
1401   if test -n "$AWK"; then
1402   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1403 else
1404   ac_save_IFS=$IFS; IFS=$ac_path_separator
1405 ac_dummy="$PATH"
1406 for ac_dir in $ac_dummy; do
1407   IFS=$ac_save_IFS
1408   test -z "$ac_dir" && ac_dir=.
1409   $as_executable_p "$ac_dir/$ac_word" || continue
1410 ac_cv_prog_AWK="$ac_prog"
1411 echo "$as_me:1411: found $ac_dir/$ac_word" >&5
1412 break
1413 done
1414
1415 fi
1416 fi
1417 AWK=$ac_cv_prog_AWK
1418 if test -n "$AWK"; then
1419   echo "$as_me:1419: result: $AWK" >&5
1420 echo "${ECHO_T}$AWK" >&6
1421 else
1422   echo "$as_me:1422: result: no" >&5
1423 echo "${ECHO_T}no" >&6
1424 fi
1425
1426   test -n "$AWK" && break
1427 done
1428
1429 echo "$as_me:1429: checking whether ${MAKE-make} sets \${MAKE}" >&5
1430 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1431 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1432 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1433   echo $ECHO_N "(cached) $ECHO_C" >&6
1434 else
1435   cat >conftest.make <<\EOF
1436 all:
1437         @echo 'ac_maketemp="${MAKE}"'
1438 EOF
1439 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1440 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1441 if test -n "$ac_maketemp"; then
1442   eval ac_cv_prog_make_${ac_make}_set=yes
1443 else
1444   eval ac_cv_prog_make_${ac_make}_set=no
1445 fi
1446 rm -f conftest.make
1447 fi
1448 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1449   echo "$as_me:1449: result: yes" >&5
1450 echo "${ECHO_T}yes" >&6
1451   SET_MAKE=
1452 else
1453   echo "$as_me:1453: result: no" >&5
1454 echo "${ECHO_T}no" >&6
1455   SET_MAKE="MAKE=${MAKE-make}"
1456 fi
1457
1458 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1459 if test "${enable_dependency_tracking+set}" = set; then
1460   enableval="$enable_dependency_tracking"
1461
1462 fi;
1463 if test "x$enable_dependency_tracking" != xno; then
1464   am_depcomp="$ac_aux_dir/depcomp"
1465   AMDEPBACKSLASH='\'
1466 fi
1467
1468 if test "x$enable_dependency_tracking" != xno; then
1469   AMDEP_TRUE=
1470   AMDEP_FALSE='#'
1471 else
1472   AMDEP_TRUE='#'
1473   AMDEP_FALSE=
1474 fi
1475
1476 if test -d .deps || mkdir .deps 2> /dev/null || test -d .deps; then
1477   DEPDIR=.deps
1478   # We redirect because .deps might already exist and be populated.
1479   # In this situation we don't want to see an error.
1480   rmdir .deps > /dev/null 2>&1
1481 else
1482   DEPDIR=_deps
1483 fi
1484
1485 # test to see if srcdir already configured
1486 if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
1487    test -f $srcdir/config.status; then
1488   { { echo "$as_me:1488: error: source directory already configured; run \"make distclean\" there first" >&5
1489 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1490    { (exit 1); exit 1; }; }
1491 fi
1492
1493 # Define the identity of the package.
1494 PACKAGE=gromacs
1495 VERSION=3.0
1496
1497 cat >>confdefs.h <<EOF
1498 #define PACKAGE "$PACKAGE"
1499 EOF
1500
1501 cat >>confdefs.h <<EOF
1502 #define VERSION "$VERSION"
1503 EOF
1504
1505 # Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
1506 # the ones we care about.
1507
1508 # Some tools Automake needs.
1509
1510 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
1511
1512 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1513
1514 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
1515
1516 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1517
1518 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1519
1520 AMTAR=${AMTAR-"${am_missing_run}tar"}
1521
1522 if test -z "$install_sh"; then
1523    for install_sh in "$ac_aux_dir/install-sh" \
1524                      "$ac_aux_dir/install.sh" \
1525                      "${am_missing_run}${ac_auxdir}/install-sh";
1526    do
1527      test -f "$install_sh" && break
1528    done
1529    # FIXME: an evil hack: we remove the SHELL invocation from
1530    # install_sh because automake adds it back in.  Sigh.
1531    install_sh=`echo $install_sh | sed -e 's/\${SHELL}//'`
1532 fi
1533
1534 _am_dirpart="`echo $install_sh | sed -e 's,//*[^/]*$,,'`"
1535 INSTALL_STRIP_PROGRAM="\${SHELL} \`CDPATH=: && cd $_am_dirpart && pwd\`/install-sh -c -s"
1536
1537 # We need awk for the "check" target.  The system "awk" is bad on
1538 # some platforms.
1539
1540 ac_config_headers="$ac_config_headers src/config.h"
1541
1542   ac_config_commands="$ac_config_commands default-1"
1543
1544 SHARED_VERSION_INFO="1:0:0"
1545
1546 #######################################################################
1547 # Simple options and makefile variables
1548 #######################################################################
1549
1550 ### Single/Double
1551 # Check whether --enable-float or --disable-float was given.
1552 if test "${enable_float+set}" = set; then
1553   enableval="$enable_float"
1554
1555 else
1556   enable_float=yes
1557 fi;
1558 if test "$enable_float" = "no"; then
1559
1560 cat >>confdefs.h <<\EOF
1561 #define DOUBLE
1562 EOF
1563
1564 if true; then
1565   DOUBLE_TRUE=
1566   DOUBLE_FALSE='#'
1567 else
1568   DOUBLE_TRUE='#'
1569   DOUBLE_FALSE=
1570 fi
1571 fi
1572
1573 ### Fortran or not
1574 # Check whether --enable-fortran or --disable-fortran was given.
1575 if test "${enable_fortran+set}" = set; then
1576   enableval="$enable_fortran"
1577
1578 else
1579   case "${host_cpu}-${host_os}" in
1580   sparc*-solaris* | alpha*-* | rs6000*-aix* | powerpc*-aix* | mips*-irix*) enable_fortran=yes ;;
1581   *) enable_fortran=no ;;
1582  esac
1583 fi;
1584 if test "$enable_fortran" = "yes"; then
1585
1586 cat >>confdefs.h <<\EOF
1587 #define USE_FORTRAN
1588 EOF
1589
1590   GMXLIB_LIBOBJS="${GMXLIB_LIBOBJS} innerf.lo f77_wrappers.lo"
1591   if test "$enable_float" = "yes"; then
1592     MDLIB_LIBOBJS="${MDLIB_LIBOBJS} flincs.lo fsettle.lo fshake.lo"
1593   else
1594     MDLIB_LIBOBJS="${MDLIB_LIBOBJS} flincsd.lo fsettled.lo fshaked.lo"
1595   fi
1596 else
1597   GMXLIB_LIBOBJS="${GMXLIB_LIBOBJS} innerc.lo"
1598   MDLIB_LIBOBJS="${MDLIB_LIBOBJS} clincs.lo csettle.lo cshake.lo"
1599 fi
1600
1601 ### MPI or not
1602 # Check whether --enable-mpi or --disable-mpi was given.
1603 if test "${enable_mpi+set}" = set; then
1604   enableval="$enable_mpi"
1605
1606 else
1607   enable_mpi=no
1608 fi;
1609
1610 ### MPI environment
1611
1612 # Check whether --with-mpi-environment or --without-mpi-environment was given.
1613 if test "${with_mpi_environment+set}" = set; then
1614   withval="$with_mpi_environment"
1615
1616 else
1617   case "${host_cpu}" in
1618   mips*-irix*) enable_mpi_environment="MPI_ENVIRONMENT" ;;
1619   *) enable_mpi_environment=no ;;
1620 esac
1621 fi;
1622 if test "$enable_mpi_environment" != "no"; then
1623
1624 cat >>confdefs.h <<EOF
1625 #define CHECK_MPI_ENV "$enable_mpi_environment"
1626 EOF
1627
1628 fi
1629
1630 ### X86 assembly code
1631 # Check whether --enable-x86_asm or --disable-x86_asm was given.
1632 if test "${enable_x86_asm+set}" = set; then
1633   enableval="$enable_x86_asm"
1634
1635 else
1636   enable_x86_asm=yes
1637 fi;
1638 case "${host_cpu}" in
1639    i?86) ;;
1640    *) enable_x86_asm=no ;;
1641 esac
1642
1643 ### Optimize for host cpu version
1644 # Check whether --enable-cpu-optimization or --disable-cpu-optimization was given.
1645 if test "${enable_cpu_optimization+set}" = set; then
1646   enableval="$enable_cpu_optimization"
1647
1648 else
1649   enable_cpu_optimization=yes
1650 fi;
1651
1652 ### Vector machine inner loops
1653 # Check whether --enable-vector or --disable-vector was given.
1654 if test "${enable_vector+set}" = set; then
1655   enableval="$enable_vector"
1656
1657 else
1658   enable_vector=no
1659 fi;
1660 if test "$enable_vector" = "yes"; then
1661
1662 cat >>confdefs.h <<\EOF
1663 #define USE_VECTOR
1664 EOF
1665
1666 fi
1667
1668 ### Simplewater hack for SGI - disabled unrolling is the same as simplewater=yes
1669 # Check whether --enable-waterloop-unrolling or --disable-waterloop-unrolling was given.
1670 if test "${enable_waterloop_unrolling+set}" = set; then
1671   enableval="$enable_waterloop_unrolling"
1672
1673 else
1674   case "${host_cpu}-${host_os}" in
1675   mips*-irix*) enable_waterloop_unrolling=yes ;;
1676   *) enable_waterloop_unrolling=no ;;
1677 esac
1678 fi;
1679 if test "$enable_waterloops_unrolling" = "no"; then
1680
1681 cat >>confdefs.h <<\EOF
1682 #define SIMPLEWATER
1683 EOF
1684
1685 fi
1686
1687 ### Turn off the special water-water loops on SGI...
1688 # Check whether --enable-waterwater-loops or --disable-waterwater-loops was given.
1689 if test "${enable_waterwater_loops+set}" = set; then
1690   enableval="$enable_waterwater_loops"
1691
1692 else
1693   case "${host_cpu}-${host_os}" in
1694   mips*-irix*) enable_waterwater_loops=no ;;
1695   *) enable_waterwater_loops=yes ;;
1696 esac
1697 fi;
1698 if test "$enable_waterwater_loops" = "no"; then
1699
1700 cat >>confdefs.h <<\EOF
1701 #define DISABLE_WATERWATER_LOOPS
1702 EOF
1703
1704 fi
1705
1706 ### Do software 1/x
1707 # Check whether --enable-software-recip or --disable-software-recip was given.
1708 if test "${enable_software_recip+set}" = set; then
1709   enableval="$enable_software_recip"
1710
1711 else
1712   enable_software_recip=no
1713 fi;
1714 if test "$enable_software_recip" = "yes"; then
1715
1716 cat >>confdefs.h <<\EOF
1717 #define SOFTWARE_RECIP
1718 EOF
1719
1720 fi
1721
1722 ### Do software 1/sqrt(x)
1723 # Check whether --enable-software-sqrt or --disable-software-sqrt was given.
1724 if test "${enable_software_sqrt+set}" = set; then
1725   enableval="$enable_software_sqrt"
1726
1727 else
1728   case "${host_cpu}-${host_os}" in
1729   mips*-irix* | rs6000*-aix*) enable_software_sqrt=no ;;
1730   *) enable_software_sqrt=yes ;;
1731 esac
1732 fi;
1733 if test "$enable_software_sqrt" = "yes"; then
1734
1735 cat >>confdefs.h <<\EOF
1736 #define SOFTWARE_SQRT
1737 EOF
1738
1739 fi
1740
1741 ### Vectorize 1/x
1742 # Check whether --enable-vectorized-recip or --disable-vectorized-recip was given.
1743 if test "${enable_vectorized_recip+set}" = set; then
1744   enableval="$enable_vectorized_recip"
1745
1746 else
1747   enable_vectorized_recip=no
1748 fi;
1749 if test "$enable_vectorized_recip" = "yes"; then
1750
1751 cat >>confdefs.h <<\EOF
1752 #define VECTORIZE_RECIP
1753 EOF
1754
1755 else
1756   if test "$enable_vectorized_recip" != "no"; then
1757     { { echo "$as_me:1757: error: Vectorized reciprocal is only meaningful for normal LJ-only loops" >&5
1758 echo "$as_me: error: Vectorized reciprocal is only meaningful for normal LJ-only loops" >&2;}
1759    { (exit 1); exit 1; }; }
1760   fi
1761 fi
1762
1763 ### Vectorize 1/sqrt(x)
1764 # Check whether --enable-vectorized-sqrt or --disable-vectorized-sqrt was given.
1765 if test "${enable_vectorized_sqrt+set}" = set; then
1766   enableval="$enable_vectorized_sqrt"
1767
1768 else
1769   enable_vectorized_sqrt=not_selected
1770 fi;
1771 # processing of vectorized_sqrt choices is done just before the final output stage!
1772
1773 # The four options below used to improve code scheduling, but the newest CPUs can usually rearrange
1774 # instructions dynamically at runtime, so they might not make much difference now:
1775
1776 ### Coordinate prefetching
1777 # Check whether --enable-prefetch-x or --disable-prefetch-x was given.
1778 if test "${enable_prefetch_x+set}" = set; then
1779   enableval="$enable_prefetch_x"
1780
1781 else
1782   enable_prefetch_x=no
1783 fi;
1784 # processing of prefetch-x choices is done just before the final output stage!
1785
1786 ### Force prefetching
1787 # Check whether --enable-prefetch-f or --disable-prefetch-f was given.
1788 if test "${enable_prefetch_f+set}" = set; then
1789   enableval="$enable_prefetch_f"
1790
1791 else
1792   enable_prefetch_f=no
1793 fi;
1794 # processing of prefetch-f choices is done just before the final output stage!
1795
1796 ### First load all coords in a water-water iteration, then square all pairs, then add the sums to get r2.
1797 # Check whether --enable-hide-square-latency or --disable-hide-square-latency was given.
1798 if test "${enable_hide_square_latency+set}" = set; then
1799   enableval="$enable_hide_square_latency"
1800
1801 else
1802   enable_hide_square_latency=no
1803 fi;
1804 if test "$enable_hide_square_latency" = "yes"; then
1805
1806 cat >>confdefs.h <<\EOF
1807 #define DECREASE_SQUARE_LATENCY
1808 EOF
1809
1810 fi
1811
1812 ### Do the table lookups for all interactions between two water molecules before using the results
1813 # Check whether --enable-hide-table-latency or --disable-hide-table-latency was given.
1814 if test "${enable_hide_table_latency+set}" = set; then
1815   enableval="$enable_hide_table_latency"
1816
1817 else
1818   enable_hide_table_latency=no
1819 fi;
1820 if test "$enable_hide_table_latency" = "yes"; then
1821
1822 cat >>confdefs.h <<\EOF
1823 #define DECREASE_LOOKUP_LATENCY
1824 EOF
1825
1826 fi
1827
1828 ### Compile without FFTW - disabling it means you can't use PME or PPPM!
1829 ### N.B.: This is only intended as a last resort, or for tests - don't use it!
1830
1831 # Check whether --with-fftw or --without-fftw was given.
1832 if test "${with_fftw+set}" = set; then
1833   withval="$with_fftw"
1834
1835 else
1836   with_fftw=yes
1837 fi;
1838 if test "$with_fftw" = "no"; then
1839
1840 cat >>confdefs.h <<\EOF
1841 #define WITHOUT_FFTW
1842 EOF
1843
1844 fi
1845
1846 ############################################################
1847 # Checks for programs
1848 ############################################################
1849
1850 # normally we use the default compiler, but on alpha/linux we try the compaq ones first
1851 case "${host_cpu}-${host_os}" in
1852   alpha*-linux*)
1853     cc_names="ccc cc gcc"
1854     f77_names="fort f77 g77"
1855     ;;
1856   *)
1857     cc_names="cc xlc gcc"
1858     f77_names="f77 xlf xlf77 cf77 fl32 g77 fort77 f90 xlf90 pgf77 cf77 fort fort77 pgf90"
1859     ;;
1860 esac
1861 # the (non-mpi) c compiler, which is also used for programs executed during build stage
1862 ac_ext=c
1863 ac_cpp='$CPP $CPPFLAGS'
1864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1867 if test -n "$ac_tool_prefix"; then
1868   for ac_prog in $cc_names
1869   do
1870     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1871 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1872 echo "$as_me:1872: checking for $ac_word" >&5
1873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1874 if test "${ac_cv_prog_CC+set}" = set; then
1875   echo $ECHO_N "(cached) $ECHO_C" >&6
1876 else
1877   if test -n "$CC"; then
1878   ac_cv_prog_CC="$CC" # Let the user override the test.
1879 else
1880   ac_save_IFS=$IFS; IFS=$ac_path_separator
1881 ac_dummy="$PATH"
1882 for ac_dir in $ac_dummy; do
1883   IFS=$ac_save_IFS
1884   test -z "$ac_dir" && ac_dir=.
1885   $as_executable_p "$ac_dir/$ac_word" || continue
1886 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1887 echo "$as_me:1887: found $ac_dir/$ac_word" >&5
1888 break
1889 done
1890
1891 fi
1892 fi
1893 CC=$ac_cv_prog_CC
1894 if test -n "$CC"; then
1895   echo "$as_me:1895: result: $CC" >&5
1896 echo "${ECHO_T}$CC" >&6
1897 else
1898   echo "$as_me:1898: result: no" >&5
1899 echo "${ECHO_T}no" >&6
1900 fi
1901
1902     test -n "$CC" && break
1903   done
1904 fi
1905 if test -z "$CC"; then
1906   ac_ct_CC=$CC
1907   for ac_prog in $cc_names
1908 do
1909   # Extract the first word of "$ac_prog", so it can be a program name with args.
1910 set dummy $ac_prog; ac_word=$2
1911 echo "$as_me:1911: checking for $ac_word" >&5
1912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1913 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1914   echo $ECHO_N "(cached) $ECHO_C" >&6
1915 else
1916   if test -n "$ac_ct_CC"; then
1917   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1918 else
1919   ac_save_IFS=$IFS; IFS=$ac_path_separator
1920 ac_dummy="$PATH"
1921 for ac_dir in $ac_dummy; do
1922   IFS=$ac_save_IFS
1923   test -z "$ac_dir" && ac_dir=.
1924   $as_executable_p "$ac_dir/$ac_word" || continue
1925 ac_cv_prog_ac_ct_CC="$ac_prog"
1926 echo "$as_me:1926: found $ac_dir/$ac_word" >&5
1927 break
1928 done
1929
1930 fi
1931 fi
1932 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1933 if test -n "$ac_ct_CC"; then
1934   echo "$as_me:1934: result: $ac_ct_CC" >&5
1935 echo "${ECHO_T}$ac_ct_CC" >&6
1936 else
1937   echo "$as_me:1937: result: no" >&5
1938 echo "${ECHO_T}no" >&6
1939 fi
1940
1941   test -n "$ac_ct_CC" && break
1942 done
1943
1944   CC=$ac_ct_CC
1945 fi
1946
1947 test -z "$CC" && { { echo "$as_me:1947: error: no acceptable cc found in \$PATH" >&5
1948 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1949    { (exit 1); exit 1; }; }
1950
1951 cat >conftest.$ac_ext <<_ACEOF
1952 #line 1952 "configure"
1953 #include "confdefs.h"
1954
1955 int
1956 main ()
1957 {
1958
1959   ;
1960   return 0;
1961 }
1962 _ACEOF
1963 ac_clean_files_save=$ac_clean_files
1964 ac_clean_files="$ac_clean_files a.out a.exe"
1965 # Try to create an executable without -o first, disregard a.out.
1966 # It will help us diagnose broken compiler, and finding out an intuition
1967 # of exeext.
1968 echo "$as_me:1968: checking for C compiler default output" >&5
1969 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1970 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1971 if { (eval echo "$as_me:1971: \"$ac_link_default\"") >&5
1972   (eval $ac_link_default) 2>&5
1973   ac_status=$?
1974   echo "$as_me:1974: \$? = $ac_status" >&5
1975   (exit $ac_status); }; then
1976   for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do
1977   case $ac_file in
1978     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1979     a.out ) # We found the default executable, but exeext='' is most
1980             # certainly right.
1981             break;;
1982     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1983           export ac_cv_exeext
1984           break;;
1985     * ) break;;
1986   esac
1987 done
1988 else
1989   echo "$as_me: failed program was:" >&5
1990 cat conftest.$ac_ext >&5
1991 { { echo "$as_me:1991: error: C compiler cannot create executables" >&5
1992 echo "$as_me: error: C compiler cannot create executables" >&2;}
1993    { (exit 77); exit 77; }; }
1994 fi
1995
1996 ac_exeext=$ac_cv_exeext
1997 echo "$as_me:1997: result: $ac_file" >&5
1998 echo "${ECHO_T}$ac_file" >&6
1999
2000 # Check the compiler produces executables we can run.  If not, either
2001 # the compiler is broken, or we cross compile.
2002 echo "$as_me:2002: checking whether the C compiler works" >&5
2003 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2004 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2005 # If not cross compiling, check that we can run a simple program.
2006 if test "$cross_compiling" != yes; then
2007   if { ac_try='./$ac_file'
2008   { (eval echo "$as_me:2008: \"$ac_try\"") >&5
2009   (eval $ac_try) 2>&5
2010   ac_status=$?
2011   echo "$as_me:2011: \$? = $ac_status" >&5
2012   (exit $ac_status); }; }; then
2013     cross_compiling=no
2014   else
2015     if test "$cross_compiling" = maybe; then
2016         cross_compiling=yes
2017     else
2018         { { echo "$as_me:2018: error: cannot run C compiled programs.
2019 If you meant to cross compile, use \`--host'." >&5
2020 echo "$as_me: error: cannot run C compiled programs.
2021 If you meant to cross compile, use \`--host'." >&2;}
2022    { (exit 1); exit 1; }; }
2023     fi
2024   fi
2025 fi
2026 echo "$as_me:2026: result: yes" >&5
2027 echo "${ECHO_T}yes" >&6
2028
2029 rm -f a.out a.exe conftest$ac_cv_exeext
2030 ac_clean_files=$ac_clean_files_save
2031 # Check the compiler produces executables we can run.  If not, either
2032 # the compiler is broken, or we cross compile.
2033 echo "$as_me:2033: checking whether we are cross compiling" >&5
2034 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2035 echo "$as_me:2035: result: $cross_compiling" >&5
2036 echo "${ECHO_T}$cross_compiling" >&6
2037
2038 echo "$as_me:2038: checking for executable suffix" >&5
2039 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
2040 if { (eval echo "$as_me:2040: \"$ac_link\"") >&5
2041   (eval $ac_link) 2>&5
2042   ac_status=$?
2043   echo "$as_me:2043: \$? = $ac_status" >&5
2044   (exit $ac_status); }; then
2045   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2046 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2047 # work properly (i.e., refer to `conftest.exe'), while it won't with
2048 # `rm'.
2049 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2050   case $ac_file in
2051     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2052     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2053           export ac_cv_exeext
2054           break;;
2055     * ) break;;
2056   esac
2057 done
2058 else
2059   { { echo "$as_me:2059: error: cannot compute EXEEXT: cannot compile and link" >&5
2060 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
2061    { (exit 1); exit 1; }; }
2062 fi
2063
2064 rm -f conftest$ac_cv_exeext
2065 echo "$as_me:2065: result: $ac_cv_exeext" >&5
2066 echo "${ECHO_T}$ac_cv_exeext" >&6
2067
2068 rm -f conftest.$ac_ext
2069 EXEEXT=$ac_cv_exeext
2070 ac_exeext=$EXEEXT
2071 echo "$as_me:2071: checking for object suffix" >&5
2072 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2073 if test "${ac_cv_objext+set}" = set; then
2074   echo $ECHO_N "(cached) $ECHO_C" >&6
2075 else
2076   cat >conftest.$ac_ext <<_ACEOF
2077 #line 2077 "configure"
2078 #include "confdefs.h"
2079
2080 int
2081 main ()
2082 {
2083
2084   ;
2085   return 0;
2086 }
2087 _ACEOF
2088 rm -f conftest.o conftest.obj
2089 if { (eval echo "$as_me:2089: \"$ac_compile\"") >&5
2090   (eval $ac_compile) 2>&5
2091   ac_status=$?
2092   echo "$as_me:2092: \$? = $ac_status" >&5
2093   (exit $ac_status); }; then
2094   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2095   case $ac_file in
2096     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2097     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2098        break;;
2099   esac
2100 done
2101 else
2102   echo "$as_me: failed program was:" >&5
2103 cat conftest.$ac_ext >&5
2104 { { echo "$as_me:2104: error: cannot compute OBJEXT: cannot compile" >&5
2105 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2106    { (exit 1); exit 1; }; }
2107 fi
2108
2109 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2110 fi
2111 echo "$as_me:2111: result: $ac_cv_objext" >&5
2112 echo "${ECHO_T}$ac_cv_objext" >&6
2113 OBJEXT=$ac_cv_objext
2114 ac_objext=$OBJEXT
2115 echo "$as_me:2115: checking whether we are using the GNU C compiler" >&5
2116 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2117 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2118   echo $ECHO_N "(cached) $ECHO_C" >&6
2119 else
2120   cat >conftest.$ac_ext <<_ACEOF
2121 #line 2121 "configure"
2122 #include "confdefs.h"
2123
2124 int
2125 main ()
2126 {
2127 #ifndef __GNUC__
2128        choke me
2129 #endif
2130
2131   ;
2132   return 0;
2133 }
2134 _ACEOF
2135 rm -f conftest.$ac_objext
2136 if { (eval echo "$as_me:2136: \"$ac_compile\"") >&5
2137   (eval $ac_compile) 2>&5
2138   ac_status=$?
2139   echo "$as_me:2139: \$? = $ac_status" >&5
2140   (exit $ac_status); } &&
2141          { ac_try='test -s conftest.$ac_objext'
2142   { (eval echo "$as_me:2142: \"$ac_try\"") >&5
2143   (eval $ac_try) 2>&5
2144   ac_status=$?
2145   echo "$as_me:2145: \$? = $ac_status" >&5
2146   (exit $ac_status); }; }; then
2147   ac_compiler_gnu=yes
2148 else
2149   echo "$as_me: failed program was:" >&5
2150 cat conftest.$ac_ext >&5
2151 ac_compiler_gnu=no
2152 fi
2153 rm -f conftest.$ac_objext conftest.$ac_ext
2154 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2155
2156 fi
2157 echo "$as_me:2157: result: $ac_cv_c_compiler_gnu" >&5
2158 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2159 GCC=`test $ac_compiler_gnu = yes && echo yes`
2160 ac_test_CFLAGS=${CFLAGS+set}
2161 ac_save_CFLAGS=$CFLAGS
2162 CFLAGS="-g"
2163 echo "$as_me:2163: checking whether $CC accepts -g" >&5
2164 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2165 if test "${ac_cv_prog_cc_g+set}" = set; then
2166   echo $ECHO_N "(cached) $ECHO_C" >&6
2167 else
2168   cat >conftest.$ac_ext <<_ACEOF
2169 #line 2169 "configure"
2170 #include "confdefs.h"
2171
2172 int
2173 main ()
2174 {
2175
2176   ;
2177   return 0;
2178 }
2179 _ACEOF
2180 rm -f conftest.$ac_objext
2181 if { (eval echo "$as_me:2181: \"$ac_compile\"") >&5
2182   (eval $ac_compile) 2>&5
2183   ac_status=$?
2184   echo "$as_me:2184: \$? = $ac_status" >&5
2185   (exit $ac_status); } &&
2186          { ac_try='test -s conftest.$ac_objext'
2187   { (eval echo "$as_me:2187: \"$ac_try\"") >&5
2188   (eval $ac_try) 2>&5
2189   ac_status=$?
2190   echo "$as_me:2190: \$? = $ac_status" >&5
2191   (exit $ac_status); }; }; then
2192   ac_cv_prog_cc_g=yes
2193 else
2194   echo "$as_me: failed program was:" >&5
2195 cat conftest.$ac_ext >&5
2196 ac_cv_prog_cc_g=no
2197 fi
2198 rm -f conftest.$ac_objext conftest.$ac_ext
2199 fi
2200 echo "$as_me:2200: result: $ac_cv_prog_cc_g" >&5
2201 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2202 if test "$ac_test_CFLAGS" = set; then
2203   CFLAGS=$ac_save_CFLAGS
2204 elif test $ac_cv_prog_cc_g = yes; then
2205   if test "$GCC" = yes; then
2206     CFLAGS="-g -O2"
2207   else
2208     CFLAGS="-g"
2209   fi
2210 else
2211   if test "$GCC" = yes; then
2212     CFLAGS="-O2"
2213   else
2214     CFLAGS=
2215   fi
2216 fi
2217 # Some people use a C++ compiler to compile C.  Since we use `exit',
2218 # in C++ we need to declare it.  In case someone uses the same compiler
2219 # for both compiling C and C++ we need to have the C++ compiler decide
2220 # the declaration of exit, since it's the most demanding environment.
2221 cat >conftest.$ac_ext <<_ACEOF
2222 #ifndef __cplusplus
2223   choke me
2224 #endif
2225 _ACEOF
2226 rm -f conftest.$ac_objext
2227 if { (eval echo "$as_me:2227: \"$ac_compile\"") >&5
2228   (eval $ac_compile) 2>&5
2229   ac_status=$?
2230   echo "$as_me:2230: \$? = $ac_status" >&5
2231   (exit $ac_status); } &&
2232          { ac_try='test -s conftest.$ac_objext'
2233   { (eval echo "$as_me:2233: \"$ac_try\"") >&5
2234   (eval $ac_try) 2>&5
2235   ac_status=$?
2236   echo "$as_me:2236: \$? = $ac_status" >&5
2237   (exit $ac_status); }; }; then
2238   for ac_declaration in \
2239    ''\
2240    '#include <stdlib.h>' \
2241    'extern "C" void std::exit (int) throw (); using std::exit;' \
2242    'extern "C" void std::exit (int); using std::exit;' \
2243    'extern "C" void exit (int) throw ();' \
2244    'extern "C" void exit (int);' \
2245    'void exit (int);'
2246 do
2247   cat >conftest.$ac_ext <<_ACEOF
2248 #line 2248 "configure"
2249 #include "confdefs.h"
2250 #include <stdlib.h>
2251 $ac_declaration
2252 int
2253 main ()
2254 {
2255 exit (42);
2256   ;
2257   return 0;
2258 }
2259 _ACEOF
2260 rm -f conftest.$ac_objext
2261 if { (eval echo "$as_me:2261: \"$ac_compile\"") >&5
2262   (eval $ac_compile) 2>&5
2263   ac_status=$?
2264   echo "$as_me:2264: \$? = $ac_status" >&5
2265   (exit $ac_status); } &&
2266          { ac_try='test -s conftest.$ac_objext'
2267   { (eval echo "$as_me:2267: \"$ac_try\"") >&5
2268   (eval $ac_try) 2>&5
2269   ac_status=$?
2270   echo "$as_me:2270: \$? = $ac_status" >&5
2271   (exit $ac_status); }; }; then
2272   :
2273 else
2274   echo "$as_me: failed program was:" >&5
2275 cat conftest.$ac_ext >&5
2276 continue
2277 fi
2278 rm -f conftest.$ac_objext conftest.$ac_ext
2279   cat >conftest.$ac_ext <<_ACEOF
2280 #line 2280 "configure"
2281 #include "confdefs.h"
2282 $ac_declaration
2283 int
2284 main ()
2285 {
2286 exit (42);
2287   ;
2288   return 0;
2289 }
2290 _ACEOF
2291 rm -f conftest.$ac_objext
2292 if { (eval echo "$as_me:2292: \"$ac_compile\"") >&5
2293   (eval $ac_compile) 2>&5
2294   ac_status=$?
2295   echo "$as_me:2295: \$? = $ac_status" >&5
2296   (exit $ac_status); } &&
2297          { ac_try='test -s conftest.$ac_objext'
2298   { (eval echo "$as_me:2298: \"$ac_try\"") >&5
2299   (eval $ac_try) 2>&5
2300   ac_status=$?
2301   echo "$as_me:2301: \$? = $ac_status" >&5
2302   (exit $ac_status); }; }; then
2303   break
2304 else
2305   echo "$as_me: failed program was:" >&5
2306 cat conftest.$ac_ext >&5
2307 fi
2308 rm -f conftest.$ac_objext conftest.$ac_ext
2309 done
2310 echo '#ifdef __cplusplus' >>confdefs.h
2311 echo $ac_declaration      >>confdefs.h
2312 echo '#endif'             >>confdefs.h
2313
2314 else
2315   echo "$as_me: failed program was:" >&5
2316 cat conftest.$ac_ext >&5
2317 fi
2318 rm -f conftest.$ac_objext conftest.$ac_ext
2319 ac_ext=c
2320 ac_cpp='$CPP $CPPFLAGS'
2321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2324
2325 ac_config_commands="$ac_config_commands default-2"
2326
2327 am_make=${MAKE-make}
2328 cat > confinc << 'END'
2329 doit:
2330         @echo done
2331 END
2332 # If we don't find an include directive, just comment out the code.
2333 echo "$as_me:2333: checking for style of include used by $am_make" >&5
2334 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2335 _am_include='#'
2336 _am_quote=
2337 _am_result=none
2338 # First try GNU make style include.
2339 echo "include confinc" > confmf
2340 # We grep out `Entering directory' and `Leaving directory'
2341 # messages which can occur if `w' ends up in MAKEFLAGS.
2342 # In particular we don't look at `^make:' because GNU make might
2343 # be invoked under some other name (usually "gmake"), in which
2344 # case it prints its new name instead of `make'.
2345 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2346    _am_include=include
2347    _am_quote=
2348    _am_result=GNU
2349 fi
2350 # Now try BSD make style include.
2351 if test "$_am_include" = "#"; then
2352    echo '.include "confinc"' > confmf
2353    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2354       _am_include=.include
2355       _am_quote='"'
2356       _am_result=BSD
2357    fi
2358 fi
2359
2360 echo "$as_me:2360: result: $_am_result" >&5
2361 echo "${ECHO_T}$_am_result" >&6
2362 rm -f confinc confmf
2363
2364 depcc="$CC"   am_compiler_list=
2365
2366 echo "$as_me:2366: checking dependency style of $depcc" >&5
2367 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2368 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2369   echo $ECHO_N "(cached) $ECHO_C" >&6
2370 else
2371   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2372   # We make a subdir and do the tests there.  Otherwise we can end up
2373   # making bogus files that we don't know about and never remove.  For
2374   # instance it was reported that on HP-UX the gcc test will end up
2375   # making a dummy file named `D' -- because `-MD' means `put the output
2376   # in D'.
2377   mkdir conftest.dir
2378   # Copy depcomp to subdir because otherwise we won't find it if we're
2379   # using a relative directory.
2380   cp "$am_depcomp" conftest.dir
2381   cd conftest.dir
2382
2383   am_cv_CC_dependencies_compiler_type=none
2384   if test "$am_compiler_list" = ""; then
2385      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2386   fi
2387   for depmode in $am_compiler_list; do
2388     # We need to recreate these files for each test, as the compiler may
2389     # overwrite some of them when testing with obscure command lines.
2390     # This happens at least with the AIX C compiler.
2391     echo '#include "conftest.h"' > conftest.c
2392     echo 'int i;' > conftest.h
2393     echo 'include conftest.Po' > Makefile
2394
2395     case $depmode in
2396     nosideeffect)
2397       # after this tag, mechanisms are not by side-effect, so they'll
2398       # only be used when explicitly requested
2399       if test "x$enable_dependency_tracking" = xyes; then
2400         continue
2401       else
2402         break
2403       fi
2404       ;;
2405     none) break ;;
2406     esac
2407     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2408     # mode.  It turns out that the SunPro C++ compiler does not properly
2409     # handle `-M -o', and we need to detect this.
2410     if depmode=$depmode \
2411        source=conftest.c object=conftest.o \
2412        depfile=conftest.Po tmpdepfile=conftest.TPo \
2413        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2414        grep conftest.h conftest.Po > /dev/null 2>&1 &&
2415        ${MAKE-make} > /dev/null 2>&1; then
2416       am_cv_CC_dependencies_compiler_type=$depmode
2417       break
2418     fi
2419   done
2420
2421   cd ..
2422   rm -rf conftest.dir
2423 else
2424   am_cv_CC_dependencies_compiler_type=none
2425 fi
2426
2427 fi
2428 echo "$as_me:2428: result: $am_cv_CC_dependencies_compiler_type" >&5
2429 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2430 CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
2431
2432 # Check for environment variable CC_FOR_BUILD before overwriting it
2433 if test -z "$CC_FOR_BUILD"; then
2434   CC_FOR_BUILD=$CC
2435 fi
2436
2437 if test "$enable_fortran" = "yes"; then
2438   ac_ext=f
2439 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
2440 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2441 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
2442 if test -n "$ac_tool_prefix"; then
2443   for ac_prog in $f77_names
2444   do
2445     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2446 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2447 echo "$as_me:2447: checking for $ac_word" >&5
2448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2449 if test "${ac_cv_prog_F77+set}" = set; then
2450   echo $ECHO_N "(cached) $ECHO_C" >&6
2451 else
2452   if test -n "$F77"; then
2453   ac_cv_prog_F77="$F77" # Let the user override the test.
2454 else
2455   ac_save_IFS=$IFS; IFS=$ac_path_separator
2456 ac_dummy="$PATH"
2457 for ac_dir in $ac_dummy; do
2458   IFS=$ac_save_IFS
2459   test -z "$ac_dir" && ac_dir=.
2460   $as_executable_p "$ac_dir/$ac_word" || continue
2461 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
2462 echo "$as_me:2462: found $ac_dir/$ac_word" >&5
2463 break
2464 done
2465
2466 fi
2467 fi
2468 F77=$ac_cv_prog_F77
2469 if test -n "$F77"; then
2470   echo "$as_me:2470: result: $F77" >&5
2471 echo "${ECHO_T}$F77" >&6
2472 else
2473   echo "$as_me:2473: result: no" >&5
2474 echo "${ECHO_T}no" >&6
2475 fi
2476
2477     test -n "$F77" && break
2478   done
2479 fi
2480 if test -z "$F77"; then
2481   ac_ct_F77=$F77
2482   for ac_prog in $f77_names
2483 do
2484   # Extract the first word of "$ac_prog", so it can be a program name with args.
2485 set dummy $ac_prog; ac_word=$2
2486 echo "$as_me:2486: checking for $ac_word" >&5
2487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2488 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
2489   echo $ECHO_N "(cached) $ECHO_C" >&6
2490 else
2491   if test -n "$ac_ct_F77"; then
2492   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
2493 else
2494   ac_save_IFS=$IFS; IFS=$ac_path_separator
2495 ac_dummy="$PATH"
2496 for ac_dir in $ac_dummy; do
2497   IFS=$ac_save_IFS
2498   test -z "$ac_dir" && ac_dir=.
2499   $as_executable_p "$ac_dir/$ac_word" || continue
2500 ac_cv_prog_ac_ct_F77="$ac_prog"
2501 echo "$as_me:2501: found $ac_dir/$ac_word" >&5
2502 break
2503 done
2504
2505 fi
2506 fi
2507 ac_ct_F77=$ac_cv_prog_ac_ct_F77
2508 if test -n "$ac_ct_F77"; then
2509   echo "$as_me:2509: result: $ac_ct_F77" >&5
2510 echo "${ECHO_T}$ac_ct_F77" >&6
2511 else
2512   echo "$as_me:2512: result: no" >&5
2513 echo "${ECHO_T}no" >&6
2514 fi
2515
2516   test -n "$ac_ct_F77" && break
2517 done
2518
2519   F77=$ac_ct_F77
2520 fi
2521
2522 # If we don't use `.F' as extension, the preprocessor is not run on the
2523 # input file.
2524 ac_save_ext=$ac_ext
2525 ac_ext=F
2526 echo "$as_me:2526: checking whether we are using the GNU Fortran 77 compiler" >&5
2527 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
2528 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
2529   echo $ECHO_N "(cached) $ECHO_C" >&6
2530 else
2531   cat >conftest.$ac_ext <<_ACEOF
2532       program main
2533 #ifndef __GNUC__
2534        choke me
2535 #endif
2536
2537       end
2538 _ACEOF
2539 rm -f conftest.$ac_objext
2540 if { (eval echo "$as_me:2540: \"$ac_compile\"") >&5
2541   (eval $ac_compile) 2>&5
2542   ac_status=$?
2543   echo "$as_me:2543: \$? = $ac_status" >&5
2544   (exit $ac_status); } &&
2545          { ac_try='test -s conftest.$ac_objext'
2546   { (eval echo "$as_me:2546: \"$ac_try\"") >&5
2547   (eval $ac_try) 2>&5
2548   ac_status=$?
2549   echo "$as_me:2549: \$? = $ac_status" >&5
2550   (exit $ac_status); }; }; then
2551   ac_compiler_gnu=yes
2552 else
2553   echo "$as_me: failed program was:" >&5
2554 cat conftest.$ac_ext >&5
2555 ac_compiler_gnu=no
2556 fi
2557 rm -f conftest.$ac_objext conftest.$ac_ext
2558 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
2559
2560 fi
2561 echo "$as_me:2561: result: $ac_cv_f77_compiler_gnu" >&5
2562 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
2563 ac_ext=$ac_save_ext
2564 G77=`test $ac_compiler_gnu = yes && echo yes`
2565 ac_test_FFLAGS=${FFLAGS+set}
2566 ac_save_FFLAGS=$FFLAGS
2567 FFLAGS=
2568 echo "$as_me:2568: checking whether $F77 accepts -g" >&5
2569 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
2570 if test "${ac_cv_prog_f77_g+set}" = set; then
2571   echo $ECHO_N "(cached) $ECHO_C" >&6
2572 else
2573   FFLAGS=-g
2574 cat >conftest.$ac_ext <<_ACEOF
2575       program main
2576
2577       end
2578 _ACEOF
2579 rm -f conftest.$ac_objext
2580 if { (eval echo "$as_me:2580: \"$ac_compile\"") >&5
2581   (eval $ac_compile) 2>&5
2582   ac_status=$?
2583   echo "$as_me:2583: \$? = $ac_status" >&5
2584   (exit $ac_status); } &&
2585          { ac_try='test -s conftest.$ac_objext'
2586   { (eval echo "$as_me:2586: \"$ac_try\"") >&5
2587   (eval $ac_try) 2>&5
2588   ac_status=$?
2589   echo "$as_me:2589: \$? = $ac_status" >&5
2590   (exit $ac_status); }; }; then
2591   ac_cv_prog_f77_g=yes
2592 else
2593   echo "$as_me: failed program was:" >&5
2594 cat conftest.$ac_ext >&5
2595 ac_cv_prog_f77_g=no
2596 fi
2597 rm -f conftest.$ac_objext conftest.$ac_ext
2598
2599 fi
2600 echo "$as_me:2600: result: $ac_cv_prog_f77_g" >&5
2601 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
2602 if test "$ac_test_FFLAGS" = set; then
2603   FFLAGS=$ac_save_FFLAGS
2604 elif test $ac_cv_prog_f77_g = yes; then
2605   if test "$G77" = yes; then
2606     FFLAGS="-g -O2"
2607   else
2608     FFLAGS="-g"
2609   fi
2610 else
2611   if test "$G77" = yes; then
2612     FFLAGS="-O2"
2613   else
2614     FFLAGS=
2615   fi
2616 fi
2617 ac_ext=c
2618 ac_cpp='$CPP $CPPFLAGS'
2619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2622
2623   if test -z "$F77"; then
2624     { { echo "$as_me:2624: error: No fortran compiler found" >&5
2625 echo "$as_me: error: No fortran compiler found" >&2;}
2626    { (exit 1); exit 1; }; }
2627   fi
2628 fi
2629
2630 # This is a libtool hack. We never use c++, but libtool supports it and
2631 # thus there are macros that require it. For some reason, these macros are
2632 # always expanded by the libtool scripts, unless the are already present
2633 # in the file. Thus, we include them here but never run them...
2634 if test 1 = 0; then
2635   ac_ext=cc
2636 ac_cpp='$CXXCPP $CPPFLAGS'
2637 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2638 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2639 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2640 if test -n "$ac_tool_prefix"; then
2641   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC
2642   do
2643     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2644 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2645 echo "$as_me:2645: checking for $ac_word" >&5
2646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2647 if test "${ac_cv_prog_CXX+set}" = set; then
2648   echo $ECHO_N "(cached) $ECHO_C" >&6
2649 else
2650   if test -n "$CXX"; then
2651   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2652 else
2653   ac_save_IFS=$IFS; IFS=$ac_path_separator
2654 ac_dummy="$PATH"
2655 for ac_dir in $ac_dummy; do
2656   IFS=$ac_save_IFS
2657   test -z "$ac_dir" && ac_dir=.
2658   $as_executable_p "$ac_dir/$ac_word" || continue
2659 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2660 echo "$as_me:2660: found $ac_dir/$ac_word" >&5
2661 break
2662 done
2663
2664 fi
2665 fi
2666 CXX=$ac_cv_prog_CXX
2667 if test -n "$CXX"; then
2668   echo "$as_me:2668: result: $CXX" >&5
2669 echo "${ECHO_T}$CXX" >&6
2670 else
2671   echo "$as_me:2671: result: no" >&5
2672 echo "${ECHO_T}no" >&6
2673 fi
2674
2675     test -n "$CXX" && break
2676   done
2677 fi
2678 if test -z "$CXX"; then
2679   ac_ct_CXX=$CXX
2680   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC
2681 do
2682   # Extract the first word of "$ac_prog", so it can be a program name with args.
2683 set dummy $ac_prog; ac_word=$2
2684 echo "$as_me:2684: checking for $ac_word" >&5
2685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2686 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2687   echo $ECHO_N "(cached) $ECHO_C" >&6
2688 else
2689   if test -n "$ac_ct_CXX"; then
2690   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2691 else
2692   ac_save_IFS=$IFS; IFS=$ac_path_separator
2693 ac_dummy="$PATH"
2694 for ac_dir in $ac_dummy; do
2695   IFS=$ac_save_IFS
2696   test -z "$ac_dir" && ac_dir=.
2697   $as_executable_p "$ac_dir/$ac_word" || continue
2698 ac_cv_prog_ac_ct_CXX="$ac_prog"
2699 echo "$as_me:2699: found $ac_dir/$ac_word" >&5
2700 break
2701 done
2702
2703 fi
2704 fi
2705 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2706 if test -n "$ac_ct_CXX"; then
2707   echo "$as_me:2707: result: $ac_ct_CXX" >&5
2708 echo "${ECHO_T}$ac_ct_CXX" >&6
2709 else
2710   echo "$as_me:2710: result: no" >&5
2711 echo "${ECHO_T}no" >&6
2712 fi
2713
2714   test -n "$ac_ct_CXX" && break
2715 done
2716 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2717
2718   CXX=$ac_ct_CXX
2719 fi
2720
2721 echo "$as_me:2721: checking whether we are using the GNU C++ compiler" >&5
2722 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2723 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2724   echo $ECHO_N "(cached) $ECHO_C" >&6
2725 else
2726   cat >conftest.$ac_ext <<_ACEOF
2727 #line 2727 "configure"
2728 #include "confdefs.h"
2729
2730 int
2731 main ()
2732 {
2733 #ifndef __GNUC__
2734        choke me
2735 #endif
2736
2737   ;
2738   return 0;
2739 }
2740 _ACEOF
2741 rm -f conftest.$ac_objext
2742 if { (eval echo "$as_me:2742: \"$ac_compile\"") >&5
2743   (eval $ac_compile) 2>&5
2744   ac_status=$?
2745   echo "$as_me:2745: \$? = $ac_status" >&5
2746   (exit $ac_status); } &&
2747          { ac_try='test -s conftest.$ac_objext'
2748   { (eval echo "$as_me:2748: \"$ac_try\"") >&5
2749   (eval $ac_try) 2>&5
2750   ac_status=$?
2751   echo "$as_me:2751: \$? = $ac_status" >&5
2752   (exit $ac_status); }; }; then
2753   ac_compiler_gnu=yes
2754 else
2755   echo "$as_me: failed program was:" >&5
2756 cat conftest.$ac_ext >&5
2757 ac_compiler_gnu=no
2758 fi
2759 rm -f conftest.$ac_objext conftest.$ac_ext
2760 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2761
2762 fi
2763 echo "$as_me:2763: result: $ac_cv_cxx_compiler_gnu" >&5
2764 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2765 GXX=`test $ac_compiler_gnu = yes && echo yes`
2766 ac_test_CXXFLAGS=${CXXFLAGS+set}
2767 ac_save_CXXFLAGS=$CXXFLAGS
2768 CXXFLAGS="-g"
2769 echo "$as_me:2769: checking whether $CXX accepts -g" >&5
2770 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2771 if test "${ac_cv_prog_cxx_g+set}" = set; then
2772   echo $ECHO_N "(cached) $ECHO_C" >&6
2773 else
2774   cat >conftest.$ac_ext <<_ACEOF
2775 #line 2775 "configure"
2776 #include "confdefs.h"
2777
2778 int
2779 main ()
2780 {
2781
2782   ;
2783   return 0;
2784 }
2785 _ACEOF
2786 rm -f conftest.$ac_objext
2787 if { (eval echo "$as_me:2787: \"$ac_compile\"") >&5
2788   (eval $ac_compile) 2>&5
2789   ac_status=$?
2790   echo "$as_me:2790: \$? = $ac_status" >&5
2791   (exit $ac_status); } &&
2792          { ac_try='test -s conftest.$ac_objext'
2793   { (eval echo "$as_me:2793: \"$ac_try\"") >&5
2794   (eval $ac_try) 2>&5
2795   ac_status=$?
2796   echo "$as_me:2796: \$? = $ac_status" >&5
2797   (exit $ac_status); }; }; then
2798   ac_cv_prog_cxx_g=yes
2799 else
2800   echo "$as_me: failed program was:" >&5
2801 cat conftest.$ac_ext >&5
2802 ac_cv_prog_cxx_g=no
2803 fi
2804 rm -f conftest.$ac_objext conftest.$ac_ext
2805 fi
2806 echo "$as_me:2806: result: $ac_cv_prog_cxx_g" >&5
2807 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2808 if test "$ac_test_CXXFLAGS" = set; then
2809   CXXFLAGS=$ac_save_CXXFLAGS
2810 elif test $ac_cv_prog_cxx_g = yes; then
2811   if test "$GXX" = yes; then
2812     CXXFLAGS="-g -O2"
2813   else
2814     CXXFLAGS="-g"
2815   fi
2816 else
2817   if test "$GXX" = yes; then
2818     CXXFLAGS="-O2"
2819   else
2820     CXXFLAGS=
2821   fi
2822 fi
2823 for ac_declaration in \
2824    ''\
2825    '#include <stdlib.h>' \
2826    'extern "C" void std::exit (int) throw (); using std::exit;' \
2827    'extern "C" void std::exit (int); using std::exit;' \
2828    'extern "C" void exit (int) throw ();' \
2829    'extern "C" void exit (int);' \
2830    'void exit (int);'
2831 do
2832   cat >conftest.$ac_ext <<_ACEOF
2833 #line 2833 "configure"
2834 #include "confdefs.h"
2835 #include <stdlib.h>
2836 $ac_declaration
2837 int
2838 main ()
2839 {
2840 exit (42);
2841   ;
2842   return 0;
2843 }
2844 _ACEOF
2845 rm -f conftest.$ac_objext
2846 if { (eval echo "$as_me:2846: \"$ac_compile\"") >&5
2847   (eval $ac_compile) 2>&5
2848   ac_status=$?
2849   echo "$as_me:2849: \$? = $ac_status" >&5
2850   (exit $ac_status); } &&
2851          { ac_try='test -s conftest.$ac_objext'
2852   { (eval echo "$as_me:2852: \"$ac_try\"") >&5
2853   (eval $ac_try) 2>&5
2854   ac_status=$?
2855   echo "$as_me:2855: \$? = $ac_status" >&5
2856   (exit $ac_status); }; }; then
2857   :
2858 else
2859   echo "$as_me: failed program was:" >&5
2860 cat conftest.$ac_ext >&5
2861 continue
2862 fi
2863 rm -f conftest.$ac_objext conftest.$ac_ext
2864   cat >conftest.$ac_ext <<_ACEOF
2865 #line 2865 "configure"
2866 #include "confdefs.h"
2867 $ac_declaration
2868 int
2869 main ()
2870 {
2871 exit (42);
2872   ;
2873   return 0;
2874 }
2875 _ACEOF
2876 rm -f conftest.$ac_objext
2877 if { (eval echo "$as_me:2877: \"$ac_compile\"") >&5
2878   (eval $ac_compile) 2>&5
2879   ac_status=$?
2880   echo "$as_me:2880: \$? = $ac_status" >&5
2881   (exit $ac_status); } &&
2882          { ac_try='test -s conftest.$ac_objext'
2883   { (eval echo "$as_me:2883: \"$ac_try\"") >&5
2884   (eval $ac_try) 2>&5
2885   ac_status=$?
2886   echo "$as_me:2886: \$? = $ac_status" >&5
2887   (exit $ac_status); }; }; then
2888   break
2889 else
2890   echo "$as_me: failed program was:" >&5
2891 cat conftest.$ac_ext >&5
2892 fi
2893 rm -f conftest.$ac_objext conftest.$ac_ext
2894 done
2895 echo '#ifdef __cplusplus' >>confdefs.h
2896 echo $ac_declaration      >>confdefs.h
2897 echo '#endif'             >>confdefs.h
2898
2899 ac_ext=c
2900 ac_cpp='$CPP $CPPFLAGS'
2901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2904
2905 depcc="$CXX"  am_compiler_list=
2906
2907 echo "$as_me:2907: checking dependency style of $depcc" >&5
2908 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2909 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2910   echo $ECHO_N "(cached) $ECHO_C" >&6
2911 else
2912   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2913   # We make a subdir and do the tests there.  Otherwise we can end up
2914   # making bogus files that we don't know about and never remove.  For
2915   # instance it was reported that on HP-UX the gcc test will end up
2916   # making a dummy file named `D' -- because `-MD' means `put the output
2917   # in D'.
2918   mkdir conftest.dir
2919   # Copy depcomp to subdir because otherwise we won't find it if we're
2920   # using a relative directory.
2921   cp "$am_depcomp" conftest.dir
2922   cd conftest.dir
2923
2924   am_cv_CXX_dependencies_compiler_type=none
2925   if test "$am_compiler_list" = ""; then
2926      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2927   fi
2928   for depmode in $am_compiler_list; do
2929     # We need to recreate these files for each test, as the compiler may
2930     # overwrite some of them when testing with obscure command lines.
2931     # This happens at least with the AIX C compiler.
2932     echo '#include "conftest.h"' > conftest.c
2933     echo 'int i;' > conftest.h
2934     echo 'include conftest.Po' > Makefile
2935
2936     case $depmode in
2937     nosideeffect)
2938       # after this tag, mechanisms are not by side-effect, so they'll
2939       # only be used when explicitly requested
2940       if test "x$enable_dependency_tracking" = xyes; then
2941         continue
2942       else
2943         break
2944       fi
2945       ;;
2946     none) break ;;
2947     esac
2948     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2949     # mode.  It turns out that the SunPro C++ compiler does not properly
2950     # handle `-M -o', and we need to detect this.
2951     if depmode=$depmode \
2952        source=conftest.c object=conftest.o \
2953        depfile=conftest.Po tmpdepfile=conftest.TPo \
2954        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2955        grep conftest.h conftest.Po > /dev/null 2>&1 &&
2956        ${MAKE-make} > /dev/null 2>&1; then
2957       am_cv_CXX_dependencies_compiler_type=$depmode
2958       break
2959     fi
2960   done
2961
2962   cd ..
2963   rm -rf conftest.dir
2964 else
2965   am_cv_CXX_dependencies_compiler_type=none
2966 fi
2967
2968 fi
2969 echo "$as_me:2969: result: $am_cv_CXX_dependencies_compiler_type" >&5
2970 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2971 CXXDEPMODE="depmode=$am_cv_CXX_dependencies_compiler_type"
2972
2973   ac_ext=cc
2974 ac_cpp='$CXXCPP $CPPFLAGS'
2975 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2976 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2977 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2978 echo "$as_me:2978: checking how to run the C++ preprocessor" >&5
2979 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2980 if test -z "$CXXCPP"; then
2981   if test "${ac_cv_prog_CXXCPP+set}" = set; then
2982   echo $ECHO_N "(cached) $ECHO_C" >&6
2983 else
2984       # Double quotes because CXXCPP needs to be expanded
2985     for CXXCPP in "$CXX -E" "/lib/cpp"
2986     do
2987       # break 2 since there is a loop in there.
2988       ac_preproc_ok=false
2989 for ac_cxx_preproc_warn_flag in '' yes
2990 do
2991   # Use a header file that comes with gcc, so configuring glibc
2992   # with a fresh cross-compiler works.
2993   # On the NeXT, cc -E runs the code through the compiler's parser,
2994   # not just through cpp. "Syntax error" is here to catch this case.
2995   cat >conftest.$ac_ext <<_ACEOF
2996 #line 2996 "configure"
2997 #include "confdefs.h"
2998 #include <assert.h>
2999                      Syntax error
3000 _ACEOF
3001 if { (eval echo "$as_me:3001: \"$ac_cpp conftest.$ac_ext\"") >&5
3002   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3003   ac_status=$?
3004   egrep -v '^ *\+' conftest.er1 >conftest.err
3005   rm -f conftest.er1
3006   cat conftest.err >&5
3007   echo "$as_me:3007: \$? = $ac_status" >&5
3008   (exit $ac_status); } >/dev/null; then
3009   if test -s conftest.err; then
3010     ac_cpp_err=$ac_cxx_preproc_warn_flag
3011   else
3012     ac_cpp_err=
3013   fi
3014 else
3015   ac_cpp_err=yes
3016 fi
3017 if test -z "$ac_cpp_err"; then
3018   :
3019 else
3020   echo "$as_me: failed program was:" >&5
3021   cat conftest.$ac_ext >&5
3022   # Broken: fails on valid input.
3023 continue
3024 fi
3025 rm -f conftest.err conftest.$ac_ext
3026
3027   # OK, works on sane cases.  Now check whether non-existent headers
3028   # can be detected and how.
3029   cat >conftest.$ac_ext <<_ACEOF
3030 #line 3030 "configure"
3031 #include "confdefs.h"
3032 #include <ac_nonexistent.h>
3033 _ACEOF
3034 if { (eval echo "$as_me:3034: \"$ac_cpp conftest.$ac_ext\"") >&5
3035   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3036   ac_status=$?
3037   egrep -v '^ *\+' conftest.er1 >conftest.err
3038   rm -f conftest.er1
3039   cat conftest.err >&5
3040   echo "$as_me:3040: \$? = $ac_status" >&5
3041   (exit $ac_status); } >/dev/null; then
3042   if test -s conftest.err; then
3043     ac_cpp_err=$ac_cxx_preproc_warn_flag
3044   else
3045     ac_cpp_err=
3046   fi
3047 else
3048   ac_cpp_err=yes
3049 fi
3050 if test -z "$ac_cpp_err"; then
3051   # Broken: success on invalid input.
3052 continue
3053 else
3054   echo "$as_me: failed program was:" >&5
3055   cat conftest.$ac_ext >&5
3056   # Passes both tests.
3057 ac_preproc_ok=:
3058 break
3059 fi
3060 rm -f conftest.err conftest.$ac_ext
3061
3062 done
3063 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3064 rm -f conftest.err conftest.$ac_ext
3065 if $ac_preproc_ok; then
3066   break 2
3067 fi
3068
3069     done
3070     ac_cv_prog_CXXCPP=$CXXCPP
3071
3072 fi
3073   CXXCPP=$ac_cv_prog_CXXCPP
3074 else
3075   ac_cv_prog_CXXCPP=$CXXCPP
3076 fi
3077 echo "$as_me:3077: result: $CXXCPP" >&5
3078 echo "${ECHO_T}$CXXCPP" >&6
3079 ac_preproc_ok=false
3080 for ac_cxx_preproc_warn_flag in '' yes
3081 do
3082   # Use a header file that comes with gcc, so configuring glibc
3083   # with a fresh cross-compiler works.
3084   # On the NeXT, cc -E runs the code through the compiler's parser,
3085   # not just through cpp. "Syntax error" is here to catch this case.
3086   cat >conftest.$ac_ext <<_ACEOF
3087 #line 3087 "configure"
3088 #include "confdefs.h"
3089 #include <assert.h>
3090                      Syntax error
3091 _ACEOF
3092 if { (eval echo "$as_me:3092: \"$ac_cpp conftest.$ac_ext\"") >&5
3093   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3094   ac_status=$?
3095   egrep -v '^ *\+' conftest.er1 >conftest.err
3096   rm -f conftest.er1
3097   cat conftest.err >&5
3098   echo "$as_me:3098: \$? = $ac_status" >&5
3099   (exit $ac_status); } >/dev/null; then
3100   if test -s conftest.err; then
3101     ac_cpp_err=$ac_cxx_preproc_warn_flag
3102   else
3103     ac_cpp_err=
3104   fi
3105 else
3106   ac_cpp_err=yes
3107 fi
3108 if test -z "$ac_cpp_err"; then
3109   :
3110 else
3111   echo "$as_me: failed program was:" >&5
3112   cat conftest.$ac_ext >&5
3113   # Broken: fails on valid input.
3114 continue
3115 fi
3116 rm -f conftest.err conftest.$ac_ext
3117
3118   # OK, works on sane cases.  Now check whether non-existent headers
3119   # can be detected and how.
3120   cat >conftest.$ac_ext <<_ACEOF
3121 #line 3121 "configure"
3122 #include "confdefs.h"
3123 #include <ac_nonexistent.h>
3124 _ACEOF
3125 if { (eval echo "$as_me:3125: \"$ac_cpp conftest.$ac_ext\"") >&5
3126   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3127   ac_status=$?
3128   egrep -v '^ *\+' conftest.er1 >conftest.err
3129   rm -f conftest.er1
3130   cat conftest.err >&5
3131   echo "$as_me:3131: \$? = $ac_status" >&5
3132   (exit $ac_status); } >/dev/null; then
3133   if test -s conftest.err; then
3134     ac_cpp_err=$ac_cxx_preproc_warn_flag
3135   else
3136     ac_cpp_err=
3137   fi
3138 else
3139   ac_cpp_err=yes
3140 fi
3141 if test -z "$ac_cpp_err"; then
3142   # Broken: success on invalid input.
3143 continue
3144 else
3145   echo "$as_me: failed program was:" >&5
3146   cat conftest.$ac_ext >&5
3147   # Passes both tests.
3148 ac_preproc_ok=:
3149 break
3150 fi
3151 rm -f conftest.err conftest.$ac_ext
3152
3153 done
3154 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3155 rm -f conftest.err conftest.$ac_ext
3156 if $ac_preproc_ok; then
3157   :
3158 else
3159   { { echo "$as_me:3159: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
3160 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
3161    { (exit 1); exit 1; }; }
3162 fi
3163
3164 ac_ext=c
3165 ac_cpp='$CPP $CPPFLAGS'
3166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3169
3170 fi
3171
3172 # if we are using mpi, also get an MPICC. We cannot set that in the PROG_CC macro
3173 # above, since autoconf checks that the created file can be executed. This would
3174 # fail on platforms where MPI executables can only be run through a batchqueue.
3175
3176 if test "$enable_mpi" = "yes"; then
3177   for ac_prog in mpxlc mpicc mpcc hcc
3178 do
3179   # Extract the first word of "$ac_prog", so it can be a program name with args.
3180 set dummy $ac_prog; ac_word=$2
3181 echo "$as_me:3181: checking for $ac_word" >&5
3182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3183 if test "${ac_cv_prog_MPICC+set}" = set; then
3184   echo $ECHO_N "(cached) $ECHO_C" >&6
3185 else
3186   if test -n "$MPICC"; then
3187   ac_cv_prog_MPICC="$MPICC" # Let the user override the test.
3188 else
3189   ac_save_IFS=$IFS; IFS=$ac_path_separator
3190 ac_dummy="$PATH"
3191 for ac_dir in $ac_dummy; do
3192   IFS=$ac_save_IFS
3193   test -z "$ac_dir" && ac_dir=.
3194   $as_executable_p "$ac_dir/$ac_word" || continue
3195 ac_cv_prog_MPICC="$ac_prog"
3196 echo "$as_me:3196: found $ac_dir/$ac_word" >&5
3197 break
3198 done
3199
3200 fi
3201 fi
3202 MPICC=$ac_cv_prog_MPICC
3203 if test -n "$MPICC"; then
3204   echo "$as_me:3204: result: $MPICC" >&5
3205 echo "${ECHO_T}$MPICC" >&6
3206 else
3207   echo "$as_me:3207: result: no" >&5
3208 echo "${ECHO_T}no" >&6
3209 fi
3210
3211   test -n "$MPICC" && break
3212 done
3213 test -n "$MPICC" || MPICC="$CC"
3214
3215 # now change the normal cc to the MPI one - see the comment above.
3216   CC=$MPICC
3217   echo "$as_me:3217: checking whether the MPI cc command works" >&5
3218 echo $ECHO_N "checking whether the MPI cc command works... $ECHO_C" >&6 # be paranoid
3219
3220 cat >conftest.$ac_ext <<_ACEOF
3221 #line 3221 "configure"
3222 #include "confdefs.h"
3223 #include <mpi.h>
3224 int
3225 main ()
3226 {
3227 int argc; char **argv; MPI_Init(&argc,&argv);
3228   ;
3229   return 0;
3230 }
3231 _ACEOF
3232 rm -f conftest.$ac_objext conftest$ac_exeext
3233 if { (eval echo "$as_me:3233: \"$ac_link\"") >&5
3234   (eval $ac_link) 2>&5
3235   ac_status=$?
3236   echo "$as_me:3236: \$? = $ac_status" >&5
3237   (exit $ac_status); } &&
3238          { ac_try='test -s conftest$ac_exeext'
3239   { (eval echo "$as_me:3239: \"$ac_try\"") >&5
3240   (eval $ac_try) 2>&5
3241   ac_status=$?
3242   echo "$as_me:3242: \$? = $ac_status" >&5
3243   (exit $ac_status); }; }; then
3244   echo "$as_me:3244: result: yes" >&5
3245 echo "${ECHO_T}yes" >&6
3246 else
3247   echo "$as_me: failed program was:" >&5
3248 cat conftest.$ac_ext >&5
3249 { { echo "$as_me:3249: error: Cannot compile and link MPI code with $CC" >&5
3250 echo "$as_me: error: Cannot compile and link MPI code with $CC" >&2;}
3251    { (exit 1); exit 1; }; }
3252 fi
3253 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3254
3255 cat >>confdefs.h <<\EOF
3256 #define USE_MPI
3257 EOF
3258
3259   GMXLIB_LIBOBJS="${GMXLIB_LIBOBJS} mpiio.lo"
3260 else
3261   GMXLIB_LIBOBJS="${GMXLIB_LIBOBJS} libnet.lo"
3262 fi
3263
3264 if test "$enable_fortran" = "yes"; then
3265
3266 ac_ext=f
3267 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3268 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3270 echo "$as_me:3270: checking how to get verbose linking output from $F77" >&5
3271 echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
3272 if test "${ac_cv_prog_f77_v+set}" = set; then
3273   echo $ECHO_N "(cached) $ECHO_C" >&6
3274 else
3275
3276 cat >conftest.$ac_ext <<_ACEOF
3277       program main
3278
3279       end
3280 _ACEOF
3281 rm -f conftest.$ac_objext
3282 if { (eval echo "$as_me:3282: \"$ac_compile\"") >&5
3283   (eval $ac_compile) 2>&5
3284   ac_status=$?
3285   echo "$as_me:3285: \$? = $ac_status" >&5
3286   (exit $ac_status); } &&
3287          { ac_try='test -s conftest.$ac_objext'
3288   { (eval echo "$as_me:3288: \"$ac_try\"") >&5
3289   (eval $ac_try) 2>&5
3290   ac_status=$?
3291   echo "$as_me:3291: \$? = $ac_status" >&5
3292   (exit $ac_status); }; }; then
3293   ac_cv_prog_f77_v=
3294 # Try some options frequently used verbose output
3295 for ac_verb in -v -verbose --verbose -V; do
3296   ac_ext=f
3297 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3298 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3300
3301 cat >conftest.$ac_ext <<_ACEOF
3302       program main
3303
3304       end
3305 _ACEOF
3306
3307 # Compile and link our simple test program by passing a flag (argument
3308 # 1 to this macro) to the Fortran 77 compiler in order to get
3309 # "verbose" output that we can then parse for the Fortran 77 linker
3310 # flags.
3311 ac_save_FFLAGS=$FFLAGS
3312 FFLAGS="$FFLAGS $ac_verb"
3313 (eval echo $as_me:3313: \"$ac_link\") >&5
3314 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3315 echo "$ac_f77_v_output" >&5
3316 FFLAGS=$ac_save_FFLAGS
3317
3318 rm -f conftest.*
3319 ac_ext=f
3320 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3321 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3322 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3323
3324 # If we are using xlf then replace all the commas with spaces.
3325 if echo $ac_f77_v_output | grep xlfentry >/dev/null 2>&1; then
3326   ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'`
3327 fi
3328
3329 # If we are using Cray Fortran then delete quotes.
3330 # Use "\"" instead of '"' for font-lock-mode.
3331 # FIXME: a more general fix for quoted arguments with spaces?
3332 if echo $ac_f77_v_output | grep cft90 >/dev/null 2>&1; then
3333   ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"`
3334 fi
3335   # look for -l* and *.a constructs in the output
3336   for ac_arg in $ac_f77_v_output; do
3337      case $ac_arg in
3338         [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3339           ac_cv_prog_f77_v=$ac_verb
3340           break 2 ;;
3341      esac
3342   done
3343 done
3344 if test -z "$ac_cv_prog_f77_v"; then
3345    { echo "$as_me:3345: WARNING: cannot determine how to obtain linking information from $F77" >&5
3346 echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
3347 fi
3348 else
3349   echo "$as_me: failed program was:" >&5
3350 cat conftest.$ac_ext >&5
3351 { echo "$as_me:3351: WARNING: compilation failed" >&5
3352 echo "$as_me: WARNING: compilation failed" >&2;}
3353 fi
3354 rm -f conftest.$ac_objext conftest.$ac_ext
3355
3356 fi
3357 echo "$as_me:3357: result: $ac_cv_prog_f77_v" >&5
3358 echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
3359 echo "$as_me:3359: checking for Fortran 77 libraries" >&5
3360 echo $ECHO_N "checking for Fortran 77 libraries... $ECHO_C" >&6
3361 if test "${ac_cv_flibs+set}" = set; then
3362   echo $ECHO_N "(cached) $ECHO_C" >&6
3363 else
3364   if test "x$FLIBS" != "x"; then
3365   ac_cv_flibs="$FLIBS" # Let the user override the test.
3366 else
3367
3368 ac_ext=f
3369 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3370 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3371 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3372
3373 cat >conftest.$ac_ext <<_ACEOF
3374       program main
3375
3376       end
3377 _ACEOF
3378
3379 # Compile and link our simple test program by passing a flag (argument
3380 # 1 to this macro) to the Fortran 77 compiler in order to get
3381 # "verbose" output that we can then parse for the Fortran 77 linker
3382 # flags.
3383 ac_save_FFLAGS=$FFLAGS
3384 FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
3385 (eval echo $as_me:3385: \"$ac_link\") >&5
3386 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3387 echo "$ac_f77_v_output" >&5
3388 FFLAGS=$ac_save_FFLAGS
3389
3390 rm -f conftest.*
3391 ac_ext=f
3392 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3393 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3394 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3395
3396 # If we are using xlf then replace all the commas with spaces.
3397 if echo $ac_f77_v_output | grep xlfentry >/dev/null 2>&1; then
3398   ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'`
3399 fi
3400
3401 # If we are using Cray Fortran then delete quotes.
3402 # Use "\"" instead of '"' for font-lock-mode.
3403 # FIXME: a more general fix for quoted arguments with spaces?
3404 if echo $ac_f77_v_output | grep cft90 >/dev/null 2>&1; then
3405   ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"`
3406 fi
3407
3408 ac_cv_flibs=
3409
3410 # Save positional arguments (if any)
3411 ac_save_positional="$@"
3412
3413 set X $ac_f77_v_output
3414 while test $# != 1; do
3415   shift
3416   ac_arg=$1
3417   case $ac_arg in
3418         [\\/]*.a | ?:[\\/]*.a)
3419
3420   ac_exists=false
3421   for ac_i in $ac_cv_flibs; do
3422     if test x"$ac_arg" = x"$ac_i"; then
3423       ac_exists=true
3424       break
3425     fi
3426   done
3427
3428   if test x"$ac_exists" = xtrue; then
3429   :
3430 else
3431   ac_cv_flibs="$ac_cv_flibs $ac_arg"
3432 fi
3433
3434           ;;
3435         -bI:*)
3436
3437   ac_exists=false
3438   for ac_i in $ac_cv_flibs; do
3439     if test x"$ac_arg" = x"$ac_i"; then
3440       ac_exists=true
3441       break
3442     fi
3443   done
3444
3445   if test x"$ac_exists" = xtrue; then
3446   :
3447 else
3448   if test "$ac_compiler_gnu" = yes; then
3449   for ac_link_opt in $ac_arg; do
3450     ac_cv_flibs="$ac_cv_flibs -Xlinker $ac_link_opt"
3451   done
3452 else
3453   ac_cv_flibs="$ac_cv_flibs $ac_arg"
3454 fi
3455 fi
3456
3457           ;;
3458           # Ignore these flags.
3459         -lang* | -lcrt0.o | -lc | -lgcc | -LANG:=*)
3460           ;;
3461         -lkernel32)
3462           test x"$CYGWIN" != xyes && ac_cv_flibs="$ac_cv_flibs $ac_arg"
3463           ;;
3464         -[LRuY])
3465           # These flags, when seen by themselves, take an argument.
3466           # We remove the space between option and argument and re-iterate
3467           # unless we find an empty arg or a new option (starting with -)
3468           case $2 in
3469              "" | -*);;
3470              *)
3471                 ac_arg="$ac_arg$2"
3472                 shift; shift
3473                 set X $ac_arg "$@"
3474                 ;;
3475           esac
3476           ;;
3477         -YP,*)
3478           for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
3479
3480   ac_exists=false
3481   for ac_i in $ac_cv_flibs; do
3482     if test x"$ac_j" = x"$ac_i"; then
3483       ac_exists=true
3484       break
3485     fi
3486   done
3487
3488   if test x"$ac_exists" = xtrue; then
3489   :
3490 else
3491   ac_arg="$ac_arg $ac_j"
3492                              ac_cv_flibs="$ac_cv_flibs $ac_j"
3493 fi
3494
3495           done
3496           ;;
3497         -[lLR]*)
3498
3499   ac_exists=false
3500   for ac_i in $ac_cv_flibs; do
3501     if test x"$ac_arg" = x"$ac_i"; then
3502       ac_exists=true
3503       break
3504     fi
3505   done
3506
3507   if test x"$ac_exists" = xtrue; then
3508   :
3509 else
3510   ac_cv_flibs="$ac_cv_flibs $ac_arg"
3511 fi
3512
3513           ;;
3514           # Ignore everything else.
3515   esac
3516 done
3517 # restore positional arguments
3518 set X $ac_save_positional; shift
3519
3520 # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
3521 # then we insist that the "run path" must be an absolute path (i.e. it
3522 # must begin with a "/").
3523 case `(uname -sr) 2>/dev/null` in
3524    "SunOS 5"*)
3525       ac_ld_run_path=`echo $ac_f77_v_output |
3526                         sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
3527       test "x$ac_ld_run_path" != x &&
3528         if test "$ac_compiler_gnu" = yes; then
3529   for ac_link_opt in $ac_ld_run_path; do
3530     ac_cv_flibs="$ac_cv_flibs -Xlinker $ac_link_opt"
3531   done
3532 else
3533   ac_cv_flibs="$ac_cv_flibs $ac_ld_run_path"
3534 fi
3535       ;;
3536 esac
3537 fi # test "x$FLIBS" = "x"
3538
3539 fi
3540 echo "$as_me:3540: result: $ac_cv_flibs" >&5
3541 echo "${ECHO_T}$ac_cv_flibs" >&6
3542 FLIBS="$ac_cv_flibs"
3543
3544 ac_ext=c
3545 ac_cpp='$CPP $CPPFLAGS'
3546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3549
3550   echo "$as_me:3550: checking for Fortran 77 name-mangling scheme" >&5
3551 echo $ECHO_N "checking for Fortran 77 name-mangling scheme... $ECHO_C" >&6
3552 if test "${ac_cv_f77_mangling+set}" = set; then
3553   echo $ECHO_N "(cached) $ECHO_C" >&6
3554 else
3555   ac_ext=f
3556 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3557 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3558 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3559 cat >conftest.$ac_ext <<_ACEOF
3560       subroutine foobar()
3561       return
3562       end
3563       subroutine foo_bar()
3564       return
3565       end
3566 _ACEOF
3567 rm -f conftest.$ac_objext
3568 if { (eval echo "$as_me:3568: \"$ac_compile\"") >&5
3569   (eval $ac_compile) 2>&5
3570   ac_status=$?
3571   echo "$as_me:3571: \$? = $ac_status" >&5
3572   (exit $ac_status); } &&
3573          { ac_try='test -s conftest.$ac_objext'
3574   { (eval echo "$as_me:3574: \"$ac_try\"") >&5
3575   (eval $ac_try) 2>&5
3576   ac_status=$?
3577   echo "$as_me:3577: \$? = $ac_status" >&5
3578   (exit $ac_status); }; }; then
3579   mv conftest.$ac_objext cf77_test.$ac_objext
3580
3581   ac_ext=c
3582 ac_cpp='$CPP $CPPFLAGS'
3583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3586
3587   ac_save_LIBS=$LIBS
3588   LIBS="cf77_test.$ac_objext $FLIBS $LIBS"
3589
3590   ac_success=no
3591   for ac_foobar in foobar FOOBAR; do
3592     for ac_underscore in "" "_"; do
3593       ac_func="$ac_foobar$ac_underscore"
3594       cat >conftest.$ac_ext <<_ACEOF
3595 #line 3595 "configure"
3596 #include "confdefs.h"
3597
3598 /* Override any gcc2 internal prototype to avoid an error.  */
3599 #ifdef __cplusplus
3600 extern "C"
3601 #endif
3602 /* We use char because int might match the return type of a gcc2
3603    builtin and then its argument prototype would still apply.  */
3604 char $ac_func ();
3605 int
3606 main ()
3607 {
3608 $ac_func ();
3609   ;
3610   return 0;
3611 }
3612 _ACEOF
3613 rm -f conftest.$ac_objext conftest$ac_exeext
3614 if { (eval echo "$as_me:3614: \"$ac_link\"") >&5
3615   (eval $ac_link) 2>&5
3616   ac_status=$?
3617   echo "$as_me:3617: \$? = $ac_status" >&5
3618   (exit $ac_status); } &&
3619          { ac_try='test -s conftest$ac_exeext'
3620   { (eval echo "$as_me:3620: \"$ac_try\"") >&5
3621   (eval $ac_try) 2>&5
3622   ac_status=$?
3623   echo "$as_me:3623: \$? = $ac_status" >&5
3624   (exit $ac_status); }; }; then
3625   ac_success=yes; break 2
3626 else
3627   echo "$as_me: failed program was:" >&5
3628 cat conftest.$ac_ext >&5
3629 fi
3630 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3631     done
3632   done
3633
3634   if test "$ac_success" = "yes"; then
3635      case $ac_foobar in
3636         foobar)
3637            ac_case=lower
3638            ac_foo_bar=foo_bar
3639            ;;
3640         FOOBAR)
3641            ac_case=upper
3642            ac_foo_bar=FOO_BAR
3643            ;;
3644      esac
3645
3646      ac_success_extra=no
3647      for ac_extra in "" "_"; do
3648         ac_func="$ac_foo_bar$ac_underscore$ac_extra"
3649         cat >conftest.$ac_ext <<_ACEOF
3650 #line 3650 "configure"
3651 #include "confdefs.h"
3652
3653 /* Override any gcc2 internal prototype to avoid an error.  */
3654 #ifdef __cplusplus
3655 extern "C"
3656 #endif
3657 /* We use char because int might match the return type of a gcc2
3658    builtin and then its argument prototype would still apply.  */
3659 char $ac_func ();
3660 int
3661 main ()
3662 {
3663 $ac_func ();
3664   ;
3665   return 0;
3666 }
3667 _ACEOF
3668 rm -f conftest.$ac_objext conftest$ac_exeext
3669 if { (eval echo "$as_me:3669: \"$ac_link\"") >&5
3670   (eval $ac_link) 2>&5
3671   ac_status=$?
3672   echo "$as_me:3672: \$? = $ac_status" >&5
3673   (exit $ac_status); } &&
3674          { ac_try='test -s conftest$ac_exeext'
3675   { (eval echo "$as_me:3675: \"$ac_try\"") >&5
3676   (eval $ac_try) 2>&5
3677   ac_status=$?
3678   echo "$as_me:3678: \$? = $ac_status" >&5
3679   (exit $ac_status); }; }; then
3680   ac_success_extra=yes; break
3681 else
3682   echo "$as_me: failed program was:" >&5
3683 cat conftest.$ac_ext >&5
3684 fi
3685 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3686      done
3687
3688      if test "$ac_success_extra" = "yes"; then
3689         ac_cv_f77_mangling="$ac_case case"
3690         if test -z "$ac_underscore"; then
3691            ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
3692         else
3693            ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
3694         fi
3695         if test -z "$ac_extra"; then
3696            ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
3697         else
3698            ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
3699         fi
3700       else
3701         ac_cv_f77_mangling="unknown"
3702       fi
3703   else
3704      ac_cv_f77_mangling="unknown"
3705   fi
3706
3707   LIBS=$ac_save_LIBS
3708   ac_ext=f
3709 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3710 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3711 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3712   rm -f cf77_test* conftest*
3713 else
3714   echo "$as_me: failed program was:" >&5
3715 cat conftest.$ac_ext >&5
3716 fi
3717 rm -f conftest.$ac_objext conftest.$ac_ext
3718 ac_ext=c
3719 ac_cpp='$CPP $CPPFLAGS'
3720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3723
3724 fi
3725 echo "$as_me:3725: result: $ac_cv_f77_mangling" >&5
3726 echo "${ECHO_T}$ac_cv_f77_mangling" >&6
3727
3728 case $ac_cv_f77_mangling in
3729   "lower case, no underscore, no extra underscore")
3730           cat >>confdefs.h <<\EOF
3731 #define F77_FUNC(name,NAME) name
3732 EOF
3733
3734           cat >>confdefs.h <<\EOF
3735 #define F77_FUNC_(name,NAME) name
3736 EOF
3737  ;;
3738   "lower case, no underscore, extra underscore")
3739           cat >>confdefs.h <<\EOF
3740 #define F77_FUNC(name,NAME) name
3741 EOF
3742
3743           cat >>confdefs.h <<\EOF
3744 #define F77_FUNC_(name,NAME) name ## _
3745 EOF
3746  ;;
3747   "lower case, underscore, no extra underscore")
3748           cat >>confdefs.h <<\EOF
3749 #define F77_FUNC(name,NAME) name ## _
3750 EOF
3751
3752           cat >>confdefs.h <<\EOF
3753 #define F77_FUNC_(name,NAME) name ## _
3754 EOF
3755  ;;
3756   "lower case, underscore, extra underscore")
3757           cat >>confdefs.h <<\EOF
3758 #define F77_FUNC(name,NAME) name ## _
3759 EOF
3760
3761           cat >>confdefs.h <<\EOF
3762 #define F77_FUNC_(name,NAME) name ## __
3763 EOF
3764  ;;
3765   "upper case, no underscore, no extra underscore")
3766           cat >>confdefs.h <<\EOF
3767 #define F77_FUNC(name,NAME) NAME
3768 EOF
3769
3770           cat >>confdefs.h <<\EOF
3771 #define F77_FUNC_(name,NAME) NAME
3772 EOF
3773  ;;
3774   "upper case, no underscore, extra underscore")
3775           cat >>confdefs.h <<\EOF
3776 #define F77_FUNC(name,NAME) NAME
3777 EOF
3778
3779           cat >>confdefs.h <<\EOF
3780 #define F77_FUNC_(name,NAME) NAME ## _
3781 EOF
3782  ;;
3783   "upper case, underscore, no extra underscore")
3784           cat >>confdefs.h <<\EOF
3785 #define F77_FUNC(name,NAME) NAME ## _
3786 EOF
3787
3788           cat >>confdefs.h <<\EOF
3789 #define F77_FUNC_(name,NAME) NAME ## _
3790 EOF
3791  ;;
3792   "upper case, underscore, extra underscore")
3793           cat >>confdefs.h <<\EOF
3794 #define F77_FUNC(name,NAME) NAME ## _
3795 EOF
3796
3797           cat >>confdefs.h <<\EOF
3798 #define F77_FUNC_(name,NAME) NAME ## __
3799 EOF
3800  ;;
3801   *)
3802           { echo "$as_me:3802: WARNING: unknown Fortran 77 name-mangling scheme" >&5
3803 echo "$as_me: WARNING: unknown Fortran 77 name-mangling scheme" >&2;}
3804           ;;
3805 esac
3806
3807 fi
3808
3809 ac_ext=c
3810 ac_cpp='$CPP $CPPFLAGS'
3811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3814 echo "$as_me:3814: checking how to run the C preprocessor" >&5
3815 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3816 # On Suns, sometimes $CPP names a directory.
3817 if test -n "$CPP" && test -d "$CPP"; then
3818   CPP=
3819 fi
3820 if test -z "$CPP"; then
3821   if test "${ac_cv_prog_CPP+set}" = set; then
3822   echo $ECHO_N "(cached) $ECHO_C" >&6
3823 else
3824       # Double quotes because CPP needs to be expanded
3825     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3826     do
3827       # break 2 since there is a loop in there.
3828       ac_preproc_ok=false
3829 for ac_c_preproc_warn_flag in '' yes
3830 do
3831   # Use a header file that comes with gcc, so configuring glibc
3832   # with a fresh cross-compiler works.
3833   # On the NeXT, cc -E runs the code through the compiler's parser,
3834   # not just through cpp. "Syntax error" is here to catch this case.
3835   cat >conftest.$ac_ext <<_ACEOF
3836 #line 3836 "configure"
3837 #include "confdefs.h"
3838 #include <assert.h>
3839                      Syntax error
3840 _ACEOF
3841 if { (eval echo "$as_me:3841: \"$ac_cpp conftest.$ac_ext\"") >&5
3842   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3843   ac_status=$?
3844   egrep -v '^ *\+' conftest.er1 >conftest.err
3845   rm -f conftest.er1
3846   cat conftest.err >&5
3847   echo "$as_me:3847: \$? = $ac_status" >&5
3848   (exit $ac_status); } >/dev/null; then
3849   if test -s conftest.err; then
3850     ac_cpp_err=$ac_c_preproc_warn_flag
3851   else
3852     ac_cpp_err=
3853   fi
3854 else
3855   ac_cpp_err=yes
3856 fi
3857 if test -z "$ac_cpp_err"; then
3858   :
3859 else
3860   echo "$as_me: failed program was:" >&5
3861   cat conftest.$ac_ext >&5
3862   # Broken: fails on valid input.
3863 continue
3864 fi
3865 rm -f conftest.err conftest.$ac_ext
3866
3867   # OK, works on sane cases.  Now check whether non-existent headers
3868   # can be detected and how.
3869   cat >conftest.$ac_ext <<_ACEOF
3870 #line 3870 "configure"
3871 #include "confdefs.h"
3872 #include <ac_nonexistent.h>
3873 _ACEOF
3874 if { (eval echo "$as_me:3874: \"$ac_cpp conftest.$ac_ext\"") >&5
3875   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3876   ac_status=$?
3877   egrep -v '^ *\+' conftest.er1 >conftest.err
3878   rm -f conftest.er1
3879   cat conftest.err >&5
3880   echo "$as_me:3880: \$? = $ac_status" >&5
3881   (exit $ac_status); } >/dev/null; then
3882   if test -s conftest.err; then
3883     ac_cpp_err=$ac_c_preproc_warn_flag
3884   else
3885     ac_cpp_err=
3886   fi
3887 else
3888   ac_cpp_err=yes
3889 fi
3890 if test -z "$ac_cpp_err"; then
3891   # Broken: success on invalid input.
3892 continue
3893 else
3894   echo "$as_me: failed program was:" >&5
3895   cat conftest.$ac_ext >&5
3896   # Passes both tests.
3897 ac_preproc_ok=:
3898 break
3899 fi
3900 rm -f conftest.err conftest.$ac_ext
3901
3902 done
3903 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3904 rm -f conftest.err conftest.$ac_ext
3905 if $ac_preproc_ok; then
3906   break 2
3907 fi
3908
3909     done
3910     ac_cv_prog_CPP=$CPP
3911
3912 fi
3913   CPP=$ac_cv_prog_CPP
3914 else
3915   ac_cv_prog_CPP=$CPP
3916 fi
3917 echo "$as_me:3917: result: $CPP" >&5
3918 echo "${ECHO_T}$CPP" >&6
3919 ac_preproc_ok=false
3920 for ac_c_preproc_warn_flag in '' yes
3921 do
3922   # Use a header file that comes with gcc, so configuring glibc
3923   # with a fresh cross-compiler works.
3924   # On the NeXT, cc -E runs the code through the compiler's parser,
3925   # not just through cpp. "Syntax error" is here to catch this case.
3926   cat >conftest.$ac_ext <<_ACEOF
3927 #line 3927 "configure"
3928 #include "confdefs.h"
3929 #include <assert.h>
3930                      Syntax error
3931 _ACEOF
3932 if { (eval echo "$as_me:3932: \"$ac_cpp conftest.$ac_ext\"") >&5
3933   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3934   ac_status=$?
3935   egrep -v '^ *\+' conftest.er1 >conftest.err
3936   rm -f conftest.er1
3937   cat conftest.err >&5
3938   echo "$as_me:3938: \$? = $ac_status" >&5
3939   (exit $ac_status); } >/dev/null; then
3940   if test -s conftest.err; then
3941     ac_cpp_err=$ac_c_preproc_warn_flag
3942   else
3943     ac_cpp_err=
3944   fi
3945 else
3946   ac_cpp_err=yes
3947 fi
3948 if test -z "$ac_cpp_err"; then
3949   :
3950 else
3951   echo "$as_me: failed program was:" >&5
3952   cat conftest.$ac_ext >&5
3953   # Broken: fails on valid input.
3954 continue
3955 fi
3956 rm -f conftest.err conftest.$ac_ext
3957
3958   # OK, works on sane cases.  Now check whether non-existent headers
3959   # can be detected and how.
3960   cat >conftest.$ac_ext <<_ACEOF
3961 #line 3961 "configure"
3962 #include "confdefs.h"
3963 #include <ac_nonexistent.h>
3964 _ACEOF
3965 if { (eval echo "$as_me:3965: \"$ac_cpp conftest.$ac_ext\"") >&5
3966   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3967   ac_status=$?
3968   egrep -v '^ *\+' conftest.er1 >conftest.err
3969   rm -f conftest.er1
3970   cat conftest.err >&5
3971   echo "$as_me:3971: \$? = $ac_status" >&5
3972   (exit $ac_status); } >/dev/null; then
3973   if test -s conftest.err; then
3974     ac_cpp_err=$ac_c_preproc_warn_flag
3975   else
3976     ac_cpp_err=
3977   fi
3978 else
3979   ac_cpp_err=yes
3980 fi
3981 if test -z "$ac_cpp_err"; then
3982   # Broken: success on invalid input.
3983 continue
3984 else
3985   echo "$as_me: failed program was:" >&5
3986   cat conftest.$ac_ext >&5
3987   # Passes both tests.
3988 ac_preproc_ok=:
3989 break
3990 fi
3991 rm -f conftest.err conftest.$ac_ext
3992
3993 done
3994 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3995 rm -f conftest.err conftest.$ac_ext
3996 if $ac_preproc_ok; then
3997   :
3998 else
3999   { { echo "$as_me:3999: error: C preprocessor \"$CPP\" fails sanity check" >&5
4000 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
4001    { (exit 1); exit 1; }; }
4002 fi
4003
4004 ac_ext=c
4005 ac_cpp='$CPP $CPPFLAGS'
4006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4009
4010 if test "$enable_cpu_optimization" = "yes"; then
4011
4012 #
4013 # Determine the exact cpu type on some common systems where it is
4014 # not visible from the host triplet.
4015 # (on e.g. intel and dec/tru64 the host type is enough)
4016
4017 case "${host_cpu}-${host_os}" in
4018
4019 rs6000*-aix*)
4020   # we need to fool the combination of m4, sh and awk - thus the seemingly unnecessary n
4021   IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ n=1; print $n }'`
4022   if /usr/sbin/lsattr -EHl ${IBM_CPU_ID} | grep POWER4 >/dev/null 2>&1; then
4023     gmxcpu=power4
4024   elif /usr/sbin/lsattr -EHl ${IBM_CPU_ID} | grep POWER3 >/dev/null 2>&1; then
4025     gmxcpu=power3
4026   elif /usr/sbin/lsattr -EHl ${IBM_CPU_ID} | grep POWER2 >/dev/null 2>&1; then
4027     gmxcpu=power2
4028   else
4029     gmxcpu=""
4030   fi
4031   ;;
4032
4033 powerpc*-aix*)
4034   if /usr/sbin/lscfg -vp | grep PowerPC | grep 604 >/dev/null 2>&1; then
4035     gmxcpu=ppc604
4036   elif /usr/sbin/lscfg -vp | grep PowerPC | grep 603 >/dev/null 2>&1; then
4037     gmxcpu=ppc603
4038   elif /usr/sbin/lscfg -vp | grep PowerPC | grep rs64a >/dev/null 2>&1; then
4039     gmxcpu=rs64a
4040   elif /usr/sbin/lscfg -vp | grep PowerPC | grep rs64b >/dev/null 2>&1; then
4041     gmxcpu=rs64b
4042   elif /usr/sbin/lscfg -vp | grep PowerPC | grep rs64c >/dev/null 2>&1; then
4043     gmxcpu=rs64c
4044   else
4045     gmxcpu=""
4046   fi
4047   ;;
4048
4049 mips*-irix*)
4050   if /sbin/hinv | grep CPU | grep R12000 >/dev/null 2>&1; then
4051     gmxcpu=r12000
4052   elif /sbin/hinv | grep CPU | grep R10000 >/dev/null 2>&1; then
4053     gmxcpu=r10000
4054   elif /sbin/hinv | grep CPU | grep R8000 >/dev/null 2>&1; then
4055     gmxcpu=r8000
4056   elif /sbin/hinv | grep CPU | grep R5000 >/dev/null 2>&1; then
4057     gmxcpu=r5000
4058   else
4059     gmxcpu=""
4060   fi
4061   ;;
4062
4063 sparc*-solaris*)
4064   if /usr/sbin/prtconf | grep UltraSPARC-III >/dev/null 2>&1; then
4065     gmxcpu=ultrasparc3
4066   elif /usr/sbin/prtconf | grep UltraSPARC-IIi >/dev/null 2>&1; then
4067     gmxcpu=ultrasparc2i
4068   elif /usr/sbin/prtconf | grep UltraSPARC-II >/dev/null 2>&1; then
4069     gmxcpu=ultrasparc2
4070   elif /usr/sbin/prtconf | grep UltraSPARC >/dev/null 2>&1; then
4071     gmxcpu=ultrasparc
4072   else
4073     gmxcpu=""
4074   fi
4075   ;;
4076 *)
4077   gmxcpu=""
4078   ;;
4079
4080 esac
4081
4082 else
4083   gmxcpu=""
4084 fi
4085
4086 # Try to determine "good" native compiler flags if none specified on command
4087 # line. To avoid repeating the entire procedure for fortran flags, we first
4088 # determine our suggested choices for both C and fortran, and then possibly
4089 # override them with user choices.
4090
4091 cc_vendor="unknown"
4092
4093 case "${host_cpu}-${host_os}" in
4094
4095   *-solaris2*)
4096     case "${gmxcpu}" in
4097       ultrasparc3*)
4098         xCFLAGS="-fast -xO5 -xtarget=ultra3 -fsimple=2 -fnonstd -dalign"
4099         xFFLAGS=$xCFLAGS
4100         ;;
4101       ultrasparc2i*)
4102         xCFLAGS="-fast -xO5 -xtarget=ultra2i -fsimple=2 -fnonstd -dalign"
4103         xFFLAGS=$xCFLAGS
4104         ;;
4105       ultrasparc2*)
4106         xCFLAGS="-fast -xO5 -xtarget=ultra2 -fsimple=2 -fnonstd -dalign"
4107         xFFLAGS=$xCFLAGS
4108         ;;
4109       ultrasparc*)
4110         xCFLAGS="-fast -xO5 -xtarget=ultra -fsimple=2 -fnonstd -dalign"
4111         xFFLAGS=$xCFLAGS
4112         ;;
4113       *)
4114         xCFLAGS="-native -fast -xO5 -fsimple=2 -fnonstd -dalign"
4115         xFFLAGS=$xCFLAGS
4116         ;;
4117     esac
4118     ;;
4119
4120   *-hpux*)
4121     xCFLAGS="-Ae +O3 +Oall"
4122     xFFLAGS=$xCFLAGS
4123     # If you haven't noticed, we don't like hp very much...
4124     # but perhaps that will change if they make something nice out of ia64.
4125     ;;
4126
4127   ia64*-*)
4128     # The GNU compilers are checked outside this case statement.
4129     # 1. Check for the SGI compilers. Actually, they report the are GNU C,
4130     #    so this check isn't used right now, but we want to identify them
4131     #    even if they change this later.
4132    if ($CC -v 2>&1 | grep SGI > /dev/null); then
4133      xCFLAGS="-O3 -Ofast"
4134      xASFLAGS=$xCFLAGS
4135    fi
4136    if ($F77 -v 2>&1 | grep SGI > /dev/null); then
4137      xFFLAGS="-O3 -Ofast"
4138    fi
4139    # PORTME 2. Check for intel compilers when we get our hands on one!
4140    ;;
4141   rs6000*-aix*)
4142     # dont use inter-procedure analysis for the innerloops - they take
4143     # forever to compile with it, and it doesnt help at all.
4144     case "${gmxcpu}" in
4145       power4*)
4146         xCFLAGS="-O3 -qarch=pwr4 -qtune=pwr4 -qmaxmem=16384"
4147         xFFLAGS="-O3 -Q -qarch=pwr4 -qtune=pwr4 -qmaxmem=16384 -qhot -qnoipa"
4148         ;;
4149       power3*)
4150         xCFLAGS="-O3 -qarch=pwr3 -qtune=pwr3 -qmaxmem=16384"
4151         xFFLAGS="-O3 -Q -qarch=pwr3 -qtune=pwr3 -qmaxmem=16384 -qhot -qnoipa"
4152         ;;
4153       power2*)
4154         xCFLAGS="-O3 -qarch=pwr2 -qtune=pwr2 -qmaxmem=16384"
4155         xFFLAGS="-O3 -Q -qarch=pwr2 -qtune=pwr2 -qmaxmem=16384 -qhot -qnoipa"
4156         ;;
4157       power)
4158         xCFLAGS="-O3 -qarch=pwr -qtune=pwr -qmaxmem=16384"
4159         xFFLAGS="-O3 -Q -qarch=pwr -qtune=pwr -qmaxmem=16384 -qhot -qnoipa"
4160         ;;
4161       *)
4162         # I don't think people are using anything older than power2, so we tune for
4163         # pwr, but dont set the arch since it is nice to have common binaries
4164         # that run also on powerpc.
4165         xCFLAGS="-O3 -qtune=pwr -qmaxmem=16384"
4166         xFFLAGS="-O3 -Q -qtune=pwr -qmaxmem=16384 -qhot"
4167         ;;
4168     esac
4169     ;;
4170
4171   powerpc*-aix*)
4172     case "${gmxcpu}" in
4173       ppc604)
4174         xCFLAGS="-O3 -qarch=604 -qtune=604 -qmaxmem=16384"
4175         xFFLAGS="-O3 -Q -qarch=604 -qtune=604 -qmaxmem=16384 -qhot"
4176         ;;
4177       ppc603)
4178         xCFLAGS="-O3 -qarch=603 -qtune=603 -qmaxmem=16384"
4179         xFFLAGS="-O3 -Q -qarch=603 -qtune=603 -qmaxmem=16384 -qhot"
4180         ;;
4181       rs64a)
4182         xCFLAGS="-O3 -qarch=rs64a -qtune=rs64a -qmaxmem=16384"
4183         xFFLAGS="-O3 -Q -qarch=rs64a -qtune=rs64a -qmaxmem=16384 -qhot"
4184         ;;
4185       rs64b)
4186         xCFLAGS="-O3 -qarch=rs64b -qtune=rs64b -qmaxmem=16384"
4187         xFFLAGS="-O3 -Q -qarch=rs64b -qtune=rs64b -qmaxmem=16384 -qhot"
4188         ;;
4189       rs64c)
4190         xCFLAGS="-O3 -qarch=rs64c -qtune=rs64c -qmaxmem=16384"
4191         xFFLAGS="-O3 -Q -qarch=rs64c -qtune=rs64c -qmaxmem=16384 -qhot"
4192         ;;
4193       *)
4194         xCFLAGS="-O3 -qmaxmem=16384"
4195         xFFLAGS="-O3 -Q -qmaxmem=16384 -qhot"
4196         ;;
4197     esac
4198     ;;
4199
4200   mips*-irix*)
4201     xCFLAGS="-O3 -OPT:IEEE_arithmetic=3 -OPT:rsqrt=ON -SWP:loop_overhead -INLINE:=ON -LNO:opt=1 -LNO:ou_further=3 -OPT:Olimit=0:roundoff=3:alias=typed -woff 1174 -D__INLINE_INTRINSICS"
4202     xFFLAGS="-O3 -OPT:IEEE_arithmetic=3 -OPT:rsqrt=ON -SWP:loop_overhead -INLINE:=ON -LNO:opt=1 -LNO:ou_further=3 -OPT:Olimit=0:roundoff=3:alias=typed -OPT:cray_ivdep=TRUE"
4203
4204     if $CC -version | grep "Version 7.1" > /dev/null 2>&1; then
4205       xCFLAGS="$xCFLAGS -GCM:aggressive_speculation -GCM:array_speculation"
4206       xFFLAGS="$xFFLAGS -GCM:aggressive_speculation -GCM:array_speculation"
4207     fi
4208
4209     if $CC -version | grep "Version 7.3" > /dev/null 2>&1; then
4210       xCFLAGS="$xCFLAGS -SWP:heur=fdms,nhms,fdnms"
4211       xFFLAGS="$xFFLAGS -SWP:heur=fdms,nhms,fdnms"
4212     fi
4213     LDFLAGS="$LDFLAGS -woff 84"
4214
4215     case "${gmxcpu}" in
4216       r12000*)
4217         xCFLAGS="-n32 -r12000 -mips4 $xCFLAGS"
4218         xFFLAGS="-n32 -r12000 -mips4 $xFFLAGS"
4219         xLDFLAGS="-n32 -r12000 -mips4"
4220         ;;
4221       r10000*)
4222         xCFLAGS="-n32 -r10000 -mips4 $xCFLAGS"
4223         xFFLAGS="-n32 -r10000 -mips4 $xFFLAGS"
4224         xLDFLAGS="-n32 -r10000 -mips4"
4225         ;;
4226       r8000*)
4227         xCFLAGS="-n32 -r8000 -mips4 $xCFLAGS"
4228         xFFLAGS="-n32 -r8000 -mips4 $xFFLAGS"
4229         xLDFLAGS="-n32 -r8000 -mips4"
4230         ;;
4231       r5000*)
4232         xCFLAGS="-n32 -r5000 -mips4 $xCFLAGS"
4233         xFFLAGS="-n32 -r5000 -mips4 $xFFLAGS"
4234         xLDFLAGS="-n32 -r5000 -mips4"
4235         ;;
4236       *)
4237         xCFLAGS="-n32 $xCFLAGS"
4238         xFFLAGS="-n32 $xFFLAGS"
4239         xLDFLAGS="-n32"
4240         ;;
4241     esac
4242     ;;
4243
4244   alpha*-osf*)
4245      # NB: -arch implies -tune according to the cc manual.
4246      # We dont use -ifo since it conflicts with dependency
4247      # generation on old versions of the compiler.
4248     case "${host_cpu}" in
4249       alphaev*)
4250         # extract the processor from cpu type (e.g. alphaev56 -> ev56)
4251         evtype=`echo ${host_cpu} | sed 's/alpha//'`
4252         xCFLAGS="-std1 -fast -O4 -no_ifo -arch $evtype -unroll 2 -fp_reorder"
4253         xFFLAGS="$xCFLAGS -assume noaccuracy_sensitive"
4254         xASFLAGS="-O4 -no_ifo -arch $evtype"
4255         xLDFLAGS="-O4"
4256         ;;
4257       *)
4258         xCFLAGS="-std1 -fast -O4 -no_ifo -arch host -unroll 2 -fp_reorder"
4259         xFFLAGS="$xCFLAGS -assume noaccuracy_sensitive"
4260         xASFLAGS="-O4 -no_ifo -arch host"
4261         xLDFLAGS="-O4"
4262         ;;
4263     esac
4264     ;;
4265
4266   alpha*-linux*)
4267     case "${host_cpu}" in
4268       alphaev*)
4269         # extract the processor from cpu type (e.g. alphaev56 -> ev56)
4270         evtype=`echo ${host_cpu} | sed 's/alpha//'`
4271         tmpCFLAGS="-std1 -fast -O4 -no_ifo -arch $evtype -unroll 2 -fp_reorder"
4272         tmpFFLAGS="$tmpCFLAGS -assume noaccuracy_sensitive"
4273         tmpASFLAGS="-O4 -no_ifo -arch $evtype"
4274         tmpLDFLAGS="-O4"
4275         ;;
4276       *)
4277         tmpCFLAGS="-std1 -fast -O4 -no_ifo -arch host -unroll 2 -fp_reorder"
4278         tmpFFLAGS="$tmpCFLAGS -assume noaccuracy_sensitive"
4279         tmpASFLAGS="-O4 -no_ifo -arch host"
4280         tmpLDFLAGS="-O4"
4281         ;;
4282     esac
4283         # Compaq sometimes uses -version and sometimes -V
4284         # Not 100% sure if ccc always has -V and F77 -version, so
4285         # we check both alternatives to be sure.
4286     if (($CC -V 2>&1 | grep ompaq > /dev/null) ||
4287         ($CC -version 2>&1 | grep ompaq > /dev/null)); then
4288       xCFLAGS="$tmpCFLAGS"
4289       xASFLAGS="$tmpASFLAGS"
4290       cc_vendor="Compaq"
4291     fi
4292     if test "$enable_fortran" = "yes"; then
4293       if (($F77 -V 2>&1 | grep ompaq > /dev/null) ||
4294           ($F77 -version 2>&1 | grep ompaq > /dev/null)); then
4295         xFFLAGS="$tmpFFLAGS"
4296       fi
4297     fi
4298     ;;
4299
4300   *-*)
4301     # most of these systems (e.g. linux, FreeBSD) use gcc which is treated
4302     # further down, but we can at least check if the Portland compilers are used:
4303     if $CC -V 2>  /dev/null | grep ortland > /dev/null 2>&1; then
4304       case "${host_cpu}" in
4305         i586)
4306           pgiopt="-tp p5"
4307           ;;
4308         i686)
4309           pgiopt="-tp p6"
4310           ;;
4311       esac
4312       xCFLAGS="$pgiopt -fast -pc 32"
4313       xASFLAGS="$xCFLAGS"
4314     fi
4315     if test "$enable_fortran" = "yes"; then
4316       if $F77 -version 2>  /dev/null | grep Portland > /dev/null 2>&1; then
4317         xFFLAGS="$xCFLAGS"
4318       fi
4319     fi
4320     ;;
4321 esac
4322 # Phew, end of all those operating systems and processors!
4323
4324 # use default flags for gcc/g77 on all systems, but catch the SGI/ia64 sgicc
4325 if test $ac_cv_c_compiler_gnu = yes; then
4326   if ($CC -v 2>&1 | grep SGI > /dev/null); then
4327     xCFLAGS="-O3 -Ofast"
4328     xASFLAGS="$xCFLAGS"
4329   else
4330     xCFLAGS="-O6 -fomit-frame-pointer -finline-functions -funroll-all-loops -Wall -Wno-unused"
4331     # the portland compiler only knows .s files, and always runs them
4332     # through cpp. We support this by telling gcc to preprocess .s files.
4333     xASFLAGS="$xCFLAGS -x assembler-with-cpp"
4334     # -malign-double for x86 systems
4335
4336 echo "$as_me:4336: checking whether $CC accepts -malign-double" >&5
4337 echo $ECHO_N "checking whether $CC accepts -malign-double... $ECHO_C" >&6
4338 if test "${ac_align_double+set}" = set; then
4339   echo $ECHO_N "(cached) $ECHO_C" >&6
4340 else
4341   echo 'void f(){}' > conftest.c
4342 if test -z "`$CC -malign-double -c conftest.c 2>&1`"; then
4343         ac_align_double=yes
4344 else
4345         ac_align_double=no
4346 fi
4347 rm -f conftest*
4348
4349 fi
4350 echo "$as_me:4350: result: $ac_align_double" >&5
4351 echo "${ECHO_T}$ac_align_double" >&6
4352 if test "$ac_align_double" = yes; then
4353         :
4354         xCFLAGS="$xCFLAGS -malign-double"
4355 else
4356         :
4357
4358 fi
4359
4360   fi
4361 fi
4362
4363 if test $enable_fortran = yes; then
4364   if test $ac_cv_f77_compiler_gnu = yes; then
4365     if ($F77 -v 2>&1 | grep SGI > /dev/null); then
4366       xFFLAGS="-O3 -Ofast"
4367     else
4368       xFFLAGS="-O3 -ffast-math -fomit-frame-pointer -finline-functions -funroll-all-loops -Wall -Wno-unused"
4369       # -malign-double for f77 on x86 systems - haven't checked that this works yet.
4370       #ACX_CHECK_F77_FLAGS(-malign-double,align_double,xFFLAGS="$xFFLAGS -malign-double")
4371     fi
4372   fi
4373 fi
4374
4375 CPU_FLAGS=""
4376
4377 if test "$GCC" = "yes"; then
4378   # try to guess correct CPU flags, at least for powerpc linux
4379   case "${host_cpu}" in
4380     # i586/i686 cpu flags don't improve speed, thus no need to use them.
4381     # don't check f77 separately - we assume f77 and gcc are similar
4382     powerpc*)
4383       cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
4384       is60x=`echo $cputype | egrep "^600-9e?$"`
4385       if test -n "$is60x"; then
4386
4387 echo "$as_me:4387: checking whether $CC accepts -mcpu=$cputype" >&5
4388 echo $ECHO_N "checking whether $CC accepts -mcpu=$cputype... $ECHO_C" >&6
4389 if test "${ac_m_cpu_60x+set}" = set; then
4390   echo $ECHO_N "(cached) $ECHO_C" >&6
4391 else
4392   echo 'void f(){}' > conftest.c
4393 if test -z "`$CC -mcpu=$cputype -c conftest.c 2>&1`"; then
4394         ac_m_cpu_60x=yes
4395 else
4396         ac_m_cpu_60x=no
4397 fi
4398 rm -f conftest*
4399
4400 fi
4401 echo "$as_me:4401: result: $ac_m_cpu_60x" >&5
4402 echo "${ECHO_T}$ac_m_cpu_60x" >&6
4403 if test "$ac_m_cpu_60x" = yes; then
4404         :
4405         CPU_FLAGS=-mcpu=$cputype
4406 else
4407         :
4408
4409 fi
4410
4411       elif test "$cputype" = 750; then
4412
4413 echo "$as_me:4413: checking whether $CC accepts -mcpu=750" >&5
4414 echo $ECHO_N "checking whether $CC accepts -mcpu=750... $ECHO_C" >&6
4415 if test "${ac_m_cpu_750+set}" = set; then
4416   echo $ECHO_N "(cached) $ECHO_C" >&6
4417 else
4418   echo 'void f(){}' > conftest.c
4419 if test -z "`$CC -mcpu=750 -c conftest.c 2>&1`"; then
4420         ac_m_cpu_750=yes
4421 else
4422         ac_m_cpu_750=no
4423 fi
4424 rm -f conftest*
4425
4426 fi
4427 echo "$as_me:4427: result: $ac_m_cpu_750" >&5
4428 echo "${ECHO_T}$ac_m_cpu_750" >&6
4429 if test "$ac_m_cpu_750" = yes; then
4430         :
4431         CPU_FLAGS=-mcpu=750
4432 else
4433         :
4434
4435 fi
4436
4437       fi
4438       if test -z "$CPU_FLAGS"; then
4439
4440 echo "$as_me:4440: checking whether $CC accepts -mcpu=powerpc" >&5
4441 echo $ECHO_N "checking whether $CC accepts -mcpu=powerpc... $ECHO_C" >&6
4442 if test "${ac_m_cpu_powerpc+set}" = set; then
4443   echo $ECHO_N "(cached) $ECHO_C" >&6
4444 else
4445   echo 'void f(){}' > conftest.c
4446 if test -z "`$CC -mcpu=powerpc -c conftest.c 2>&1`"; then
4447         ac_m_cpu_powerpc=yes
4448 else
4449         ac_m_cpu_powerpc=no
4450 fi
4451 rm -f conftest*
4452
4453 fi
4454 echo "$as_me:4454: result: $ac_m_cpu_powerpc" >&5
4455 echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
4456 if test "$ac_m_cpu_powerpc" = yes; then
4457         :
4458         CPU_FLAGS=-mcpu=powerpc
4459 else
4460         :
4461
4462 fi
4463
4464       fi
4465       if test -z "$CPU_FLAGS"; then
4466
4467 echo "$as_me:4467: checking whether $CC accepts -mpowerpc" >&5
4468 echo $ECHO_N "checking whether $CC accepts -mpowerpc... $ECHO_C" >&6
4469 if test "${ac_m_powerpc+set}" = set; then
4470   echo $ECHO_N "(cached) $ECHO_C" >&6
4471 else
4472   echo 'void f(){}' > conftest.c
4473 if test -z "`$CC -mpowerpc -c conftest.c 2>&1`"; then
4474         ac_m_powerpc=yes
4475 else
4476         ac_m_powerpc=no
4477 fi
4478 rm -f conftest*
4479
4480 fi
4481 echo "$as_me:4481: result: $ac_m_powerpc" >&5
4482 echo "${ECHO_T}$ac_m_powerpc" >&6
4483 if test "$ac_m_powerpc" = yes; then
4484         :
4485         CPU_FLAGS=-mpowerpc
4486 else
4487         :
4488
4489 fi
4490
4491       fi
4492    esac
4493 else
4494
4495 if false; then
4496   GNU_CC_TRUE=
4497   GNU_CC_FALSE='#'
4498 else
4499   GNU_CC_TRUE='#'
4500   GNU_CC_FALSE=
4501 fi
4502 fi
4503
4504 if test -n "$CPU_FLAGS"; then
4505   xCFLAGS="$xCFLAGS $CPU_FLAGS"
4506   xFFLAGS="$xFFLAGS $CPU_FLAGS"
4507   xASFLAGS="$xASFLAGS $CPU_FLAGS"
4508 fi
4509
4510 # Now check if the user provided anything special for C or fortran...
4511 # Not nice to have checked everything then, but otherwise we would have
4512 # to use entirely separate checks for C and fortran flags, doubling the code.
4513 if test "$ac_test_CFLAGS" != "set"; then
4514   CFLAGS="$xCFLAGS"
4515   # Use the extra link optimization flags on e.g. irix only when
4516   # we are using our own C compiler flags
4517   LDFLAGS="$LDFLAGS $xLDFLAGS"
4518
4519   if test -z "$CFLAGS"; then
4520     echo "********************************************************************"
4521     echo "* Note: We have not optimized the C compiler flags on your target  *"
4522     echo "* yet, but the default CFLAGS=-O3 should be OK in most cases.      *"
4523     echo "* You can override this by setting the CFLAGS environment variable.*"
4524     echo "*******************************************************************"
4525     CFLAGS="-O3"
4526   fi
4527
4528 echo "$as_me:4528: checking whether $CC accepts ${CFLAGS}" >&5
4529 echo $ECHO_N "checking whether $CC accepts ${CFLAGS}... $ECHO_C" >&6
4530 if test "${ac_guessed_cflags+set}" = set; then
4531   echo $ECHO_N "(cached) $ECHO_C" >&6
4532 else
4533   echo 'void f(){}' > conftest.c
4534 if test -z "`$CC ${CFLAGS} -c conftest.c 2>&1`"; then
4535         ac_guessed_cflags=yes
4536 else
4537         ac_guessed_cflags=no
4538 fi
4539 rm -f conftest*
4540
4541 fi
4542 echo "$as_me:4542: result: $ac_guessed_cflags" >&5
4543 echo "${ECHO_T}$ac_guessed_cflags" >&6
4544 if test "$ac_guessed_cflags" = yes; then
4545         :
4546
4547 else
4548         :
4549
4550     echo "*******************************************************************"
4551     echo "* Sorry, these optimization settings don't seem to work for       *"
4552     echo "* your C compiler. Use make CFLAGS=..., or edit the top Makefile. *"
4553     echo "*******************************************************************"
4554     CFLAGS=""
4555
4556 fi
4557
4558 else
4559   echo "******************************************"
4560   echo "* Using CFLAGS from environment variable *"
4561   echo "******************************************"
4562 fi
4563
4564 if test "$enable_fortran" = "yes"; then
4565   if test "$ac_test_FFLAGS" != "set"; then
4566     FFLAGS="$xFFLAGS"
4567     if test -z "$FFLAGS"; then
4568     echo "********************************************************************"
4569     echo "* Note: We have not optimized the Fortran compiler flags on your   *"
4570     echo "* target, but the default FFLAGS=-O3 should be OK in most cases.   *"
4571     echo "* You can override this by setting the CFLAGS environment variable.*"
4572     echo "********************************************************************"
4573       FFLAGS="-O3"
4574     fi
4575
4576 echo "$as_me:4576: checking whether $F77 accepts ${FFLAGS}" >&5
4577 echo $ECHO_N "checking whether $F77 accepts ${FFLAGS}... $ECHO_C" >&6
4578 if test "${ac_guessed_fflags+set}" = set; then
4579   echo $ECHO_N "(cached) $ECHO_C" >&6
4580 else
4581   cat > conftest.f << EOF
4582       subroutine f
4583       return
4584       end
4585 EOF
4586 if test -z "`$F77 ${FFLAGS} -c conftest.f `"; then
4587         ac_guessed_fflags=yes
4588 else
4589         ac_guessed_fflags=no
4590 fi
4591 rm -f conftest*
4592
4593 fi
4594 echo "$as_me:4594: result: $ac_guessed_fflags" >&5
4595 echo "${ECHO_T}$ac_guessed_fflags" >&6
4596 if test "$ac_guessed_fflags" = yes; then
4597         :
4598
4599 else
4600         :
4601
4602       echo "*******************************************************************"
4603       echo "* Sorry, these optimization settings don't seem to work for       *"
4604       echo "* your f77 compiler. Use make FFLAGS=.., or edit the top Makefile.*"
4605       echo "*******************************************************************"
4606       FFLAGS=""
4607
4608 fi
4609
4610   else
4611     echo "******************************************"
4612     echo "* Using FFLAGS from environment variable *"
4613     echo "******************************************"
4614   fi
4615 fi
4616 # Be silent for assembly flags, they are usually not important anyway
4617 if test "${ASFLAGS+set}" != set; then
4618   if test "${xASFLAGS+set}" != set; then
4619     xASFLAGS="$CFLAGS"
4620   fi
4621   ASFLAGS="$xASFLAGS"
4622 fi
4623
4624 # Check x86 asm prerequisites and the capabilities of as
4625 if test "$enable_x86_asm" = "yes"; then
4626   if test "$enable_float" = "no"; then
4627     { echo "$as_me:4627: WARNING: x86 assembly loops can only be used in single precision - disabling" >&5
4628 echo "$as_me: WARNING: x86 assembly loops can only be used in single precision - disabling" >&2;}
4629     enable_x86_asm=no
4630   else
4631     echo "$as_me:4631: checking whether as fully supports intel syntax" >&5
4632 echo $ECHO_N "checking whether as fully supports intel syntax... $ECHO_C" >&6
4633 cat > conftest.s << EOF
4634 .intel_syntax noprefix
4635 checkasm:
4636         emms
4637         pswapd mm0,mm0
4638         movups xmm0,checkasm
4639         emms
4640         ret
4641 EOF
4642     if { ac_try='$CC -c conftest.s'
4643   { (eval echo "$as_me:4643: \"$ac_try\"") >&5
4644   (eval $ac_try) 2>&5
4645   ac_status=$?
4646   echo "$as_me:4646: \$? = $ac_status" >&5
4647   (exit $ac_status); }; }; then
4648       echo "$as_me:4648: result: yes" >&5
4649 echo "${ECHO_T}yes" >&6
4650     else
4651       echo "$as_me:4651: result: no" >&5
4652 echo "${ECHO_T}no" >&6
4653       { { echo "$as_me:4653: error: Upgrade to a more recent binutils, download the as executable
4654                    from www.gromacs.org, or disable assembly loops." >&5
4655 echo "$as_me: error: Upgrade to a more recent binutils, download the as executable
4656                    from www.gromacs.org, or disable assembly loops." >&2;}
4657    { (exit 1); exit 1; }; }
4658     fi
4659     GMXLIB_LIBOBJS="${GMXLIB_LIBOBJS} x86_cpuid.lo x86_sse.lo x86_3dnow.lo"
4660
4661 cat >>confdefs.h <<\EOF
4662 #define USE_X86_ASM
4663 EOF
4664
4665   fi
4666 fi
4667
4668 case "${host_cpu}" in
4669   alpha*)
4670
4671 cat >>confdefs.h <<\EOF
4672 #define USE_AXP_ASM
4673 EOF
4674
4675     cat > conftest.s << EOF
4676 #ifdef __ELF__
4677 .section .rodata
4678 #else
4679          .rdata
4680 #endif
4681 EOF
4682
4683 if !({ ac_try='$CC -c conftest.s'
4684   { (eval echo "$as_me:4684: \"$ac_try\"") >&5
4685   (eval $ac_try) 2>&5
4686   ac_status=$?
4687   echo "$as_me:4687: \$? = $ac_status" >&5
4688   (exit $ac_status); }; }); then
4689   AXP_ASM_CAPITAL_S_TRUE=
4690   AXP_ASM_CAPITAL_S_FALSE='#'
4691 else
4692   AXP_ASM_CAPITAL_S_TRUE='#'
4693   AXP_ASM_CAPITAL_S_FALSE=
4694 fi
4695     GMXLIB_LIBOBJS="${GMXLIB_LIBOBJS} axp_asm.lo"
4696      ;;
4697   *) ;;
4698 esac
4699
4700 # Extract the first word of "ident", so it can be a program name with args.
4701 set dummy ident; ac_word=$2
4702 echo "$as_me:4702: checking for $ac_word" >&5
4703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4704 if test "${ac_cv_path_IDENT+set}" = set; then
4705   echo $ECHO_N "(cached) $ECHO_C" >&6
4706 else
4707   case $IDENT in
4708   [\\/]* | ?:[\\/]*)
4709   ac_cv_path_IDENT="$IDENT" # Let the user override the test with a path.
4710   ;;
4711   *)
4712   ac_save_IFS=$IFS; IFS=$ac_path_separator
4713 ac_dummy="$PATH"
4714 for ac_dir in $ac_dummy; do
4715   IFS=$ac_save_IFS
4716   test -z "$ac_dir" && ac_dir=.
4717   if $as_executable_p "$ac_dir/$ac_word"; then
4718    ac_cv_path_IDENT="$ac_dir/$ac_word"
4719    echo "$as_me:4719: found $ac_dir/$ac_word" >&5
4720    break
4721 fi
4722 done
4723
4724   test -z "$ac_cv_path_IDENT" && ac_cv_path_IDENT="no"
4725   ;;
4726 esac
4727 fi
4728 IDENT=$ac_cv_path_IDENT
4729
4730 if test -n "$IDENT"; then
4731   echo "$as_me:4731: result: $IDENT" >&5
4732 echo "${ECHO_T}$IDENT" >&6
4733 else
4734   echo "$as_me:4734: result: no" >&5
4735 echo "${ECHO_T}no" >&6
4736 fi
4737
4738 if test "$IDENT" != "no"; then
4739   # seems as if we have the ident program, but does the
4740   # compiler support it?
4741   echo "$as_me:4741: checking whether the compiler supports ident" >&5
4742 echo $ECHO_N "checking whether the compiler supports ident... $ECHO_C" >&6
4743
4744 cat >conftest.$ac_ext <<_ACEOF
4745 #line 4745 "configure"
4746 #include "confdefs.h"
4747 #ident  "@(#) file.h 1.1 12/16/92"
4748 _ACEOF
4749 if { (eval echo "$as_me:4749: \"$ac_cpp conftest.$ac_ext\"") >&5
4750   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4751   ac_status=$?
4752   egrep -v '^ *\+' conftest.er1 >conftest.err
4753   rm -f conftest.er1
4754   cat conftest.err >&5
4755   echo "$as_me:4755: \$? = $ac_status" >&5
4756   (exit $ac_status); } >/dev/null; then
4757   if test -s conftest.err; then
4758     ac_cpp_err=$ac_c_preproc_warn_flag
4759   else
4760     ac_cpp_err=
4761   fi
4762 else
4763   ac_cpp_err=yes
4764 fi
4765 if test -z "$ac_cpp_err"; then
4766
4767     echo "$as_me:4767: result: yes" >&5
4768 echo "${ECHO_T}yes" >&6
4769
4770 cat >>confdefs.h <<\EOF
4771 #define HAVE_IDENT
4772 EOF
4773
4774 else
4775   echo "$as_me: failed program was:" >&5
4776   cat conftest.$ac_ext >&5
4777   echo "$as_me:4777: result: no" >&5
4778 echo "${ECHO_T}no" >&6
4779 fi
4780 rm -f conftest.err conftest.$ac_ext
4781 fi
4782
4783 # Find the correct PATH separator.  Usually this is `:', but
4784 # DJGPP uses `;' like DOS.
4785 if test "X${PATH_SEPARATOR+set}" != Xset; then
4786   UNAME=${UNAME-`uname 2>/dev/null`}
4787   case X$UNAME in
4788     *-DOS) PATH_SEPARATOR=';' ;;
4789     *)     PATH_SEPARATOR=':' ;;
4790   esac
4791 fi
4792
4793 # Check whether --enable-shared or --disable-shared was given.
4794 if test "${enable_shared+set}" = set; then
4795   enableval="$enable_shared"
4796   p=${PACKAGE-default}
4797 case $enableval in
4798 yes) enable_shared=yes ;;
4799 no) enable_shared=no ;;
4800 *)
4801   enable_shared=no
4802   # Look at the argument we got.  We use all the common list separators.
4803   IFS="${IFS=   }"; lt_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:},"
4804   for pkg in $enableval; do
4805     IFS="$lt_save_ifs"
4806     if test "X$pkg" = "X$p"; then
4807       enable_shared=yes
4808     fi
4809   done
4810   IFS="$lt_save_ifs"
4811   ;;
4812 esac
4813 else
4814   enable_shared=yes
4815 fi;
4816 # Check whether --enable-static or --disable-static was given.
4817 if test "${enable_static+set}" = set; then
4818   enableval="$enable_static"
4819   p=${PACKAGE-default}
4820 case $enableval in
4821 yes) enable_static=yes ;;
4822 no) enable_static=no ;;
4823 *)
4824   enable_static=no
4825   # Look at the argument we got.  We use all the common list separators.
4826   IFS="${IFS=   }"; lt_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:},"
4827   for pkg in $enableval; do
4828     IFS="$lt_save_ifs"
4829     if test "X$pkg" = "X$p"; then
4830       enable_static=yes
4831     fi
4832   done
4833   IFS="$lt_save_ifs"
4834   ;;
4835 esac
4836 else
4837   enable_static=yes
4838 fi;
4839 # Check whether --enable-fast-install or --disable-fast-install was given.
4840 if test "${enable_fast_install+set}" = set; then
4841   enableval="$enable_fast_install"
4842   p=${PACKAGE-default}
4843 case $enableval in
4844 yes) enable_fast_install=yes ;;
4845 no) enable_fast_install=no ;;
4846 *)
4847   enable_fast_install=no
4848   # Look at the argument we got.  We use all the common list separators.
4849   IFS="${IFS=   }"; lt_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:},"
4850   for pkg in $enableval; do
4851     IFS="$lt_save_ifs"
4852     if test "X$pkg" = "X$p"; then
4853       enable_fast_install=yes
4854     fi
4855   done
4856   IFS="$lt_save_ifs"
4857   ;;
4858 esac
4859 else
4860   enable_fast_install=yes
4861 fi;
4862
4863 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4864 if test "${with_gnu_ld+set}" = set; then
4865   withval="$with_gnu_ld"
4866   test "$withval" = no || with_gnu_ld=yes
4867 else
4868   with_gnu_ld=no
4869 fi;
4870 ac_prog=ld
4871 if test "$GCC" = yes; then
4872   # Check if gcc -print-prog-name=ld gives a path.
4873   echo "$as_me:4873: checking for ld used by GCC" >&5
4874 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4875   case $host in
4876   *-*-mingw*)
4877     # gcc leaves a trailing carriage return which upsets mingw
4878     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4879   *)
4880     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4881   esac
4882   case $ac_prog in
4883     # Accept absolute paths.
4884     [\\/]* | ?:[\\/]*)
4885       re_direlt='/[^/][^/]*/\.\./'
4886       # Canonicalize the path of ld
4887       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4888       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4889         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4890       done
4891       test -z "$LD" && LD="$ac_prog"
4892       ;;
4893   "")
4894     # If it fails, then pretend we aren't using GCC.
4895     ac_prog=ld
4896     ;;
4897   *)
4898     # If it is relative, then search for the first ld in PATH.
4899     with_gnu_ld=unknown
4900     ;;
4901   esac
4902 elif test "$with_gnu_ld" = yes; then
4903   echo "$as_me:4903: checking for GNU ld" >&5
4904 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4905 else
4906   echo "$as_me:4906: checking for non-GNU ld" >&5
4907 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4908 fi
4909 if test "${lt_cv_path_LD+set}" = set; then
4910   echo $ECHO_N "(cached) $ECHO_C" >&6
4911 else
4912   if test -z "$LD"; then
4913   IFS="${IFS=   }"; lt_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4914   for ac_dir in $PATH; do
4915     IFS="$lt_save_ifs"
4916     test -z "$ac_dir" && ac_dir=.
4917     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4918       lt_cv_path_LD="$ac_dir/$ac_prog"
4919       # Check to see if the program is GNU ld.  I'd rather use --version,
4920       # but apparently some GNU ld's only accept -v.
4921       # Break only if it was the GNU/non-GNU ld that we prefer.
4922       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4923         test "$with_gnu_ld" != no && break
4924       else
4925         test "$with_gnu_ld" != yes && break
4926       fi
4927     fi
4928   done
4929   IFS="$lt_save_ifs"
4930 else
4931   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4932 fi
4933 fi
4934
4935 LD="$lt_cv_path_LD"
4936 if test -n "$LD"; then
4937   echo "$as_me:4937: result: $LD" >&5
4938 echo "${ECHO_T}$LD" >&6
4939 else
4940   echo "$as_me:4940: result: no" >&5
4941 echo "${ECHO_T}no" >&6
4942 fi
4943 test -z "$LD" && { { echo "$as_me:4943: error: no acceptable ld found in \$PATH" >&5
4944 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4945    { (exit 1); exit 1; }; }
4946 echo "$as_me:4946: checking if the linker ($LD) is GNU ld" >&5
4947 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4948 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4949   echo $ECHO_N "(cached) $ECHO_C" >&6
4950 else
4951   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4952 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4953   lt_cv_prog_gnu_ld=yes
4954 else
4955   lt_cv_prog_gnu_ld=no
4956 fi
4957 fi
4958 echo "$as_me:4958: result: $lt_cv_prog_gnu_ld" >&5
4959 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4960 with_gnu_ld=$lt_cv_prog_gnu_ld
4961
4962 echo "$as_me:4962: checking for $LD option to reload object files" >&5
4963 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4964 if test "${lt_cv_ld_reload_flag+set}" = set; then
4965   echo $ECHO_N "(cached) $ECHO_C" >&6
4966 else
4967   lt_cv_ld_reload_flag='-r'
4968 fi
4969 echo "$as_me:4969: result: $lt_cv_ld_reload_flag" >&5
4970 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4971 reload_flag=$lt_cv_ld_reload_flag
4972 case $reload_flag in
4973 "" | " "*) ;;
4974 *) reload_flag=" $reload_flag" ;;
4975 esac
4976 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4977
4978 echo "$as_me:4978: checking for BSD-compatible nm" >&5
4979 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4980 if test "${lt_cv_path_NM+set}" = set; then
4981   echo $ECHO_N "(cached) $ECHO_C" >&6
4982 else
4983   if test -n "$NM"; then
4984   # Let the user override the test.
4985   lt_cv_path_NM="$NM"
4986 else
4987   IFS="${IFS=   }"; lt_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4988   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4989     IFS="$lt_save_ifs"
4990     test -z "$ac_dir" && ac_dir=.
4991     tmp_nm=$ac_dir/${ac_tool_prefix}nm
4992     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4993       # Check to see if the nm accepts a BSD-compat flag.
4994       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4995       #   nm: unknown option "B" ignored
4996       # Tru64's nm complains that /dev/null is an invalid object file
4997       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4998         lt_cv_path_NM="$tmp_nm -B"
4999         break
5000       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5001         lt_cv_path_NM="$tmp_nm -p"
5002         break
5003       else
5004         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5005         continue # so that we can try to find one that supports BSD flags
5006       fi
5007     fi
5008   done
5009   IFS="$lt_save_ifs"
5010   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5011 fi
5012 fi
5013 echo "$as_me:5013: result: $lt_cv_path_NM" >&5
5014 echo "${ECHO_T}$lt_cv_path_NM" >&6
5015 NM="$lt_cv_path_NM"
5016
5017 echo "$as_me:5017: checking whether ln -s works" >&5
5018 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5019 LN_S=$as_ln_s
5020 if test "$LN_S" = "ln -s"; then
5021   echo "$as_me:5021: result: yes" >&5
5022 echo "${ECHO_T}yes" >&6
5023 else
5024   echo "$as_me:5024: result: no, using $LN_S" >&5
5025 echo "${ECHO_T}no, using $LN_S" >&6
5026 fi
5027
5028 echo "$as_me:5028: checking how to recognise dependant libraries" >&5
5029 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
5030 if test "${lt_cv_deplibs_check_method+set}" = set; then
5031   echo $ECHO_N "(cached) $ECHO_C" >&6
5032 else
5033   lt_cv_file_magic_cmd='$MAGIC_CMD'
5034 lt_cv_file_magic_test_file=
5035 lt_cv_deplibs_check_method='unknown'
5036 # Need to set the preceding variable on all platforms that support
5037 # interlibrary dependencies.
5038 # 'none' -- dependencies not supported.
5039 # `unknown' -- same as none, but documents that we really don't know.
5040 # 'pass_all' -- all dependencies passed with no checks.
5041 # 'test_compile' -- check by making test program.
5042 # ['file_magic [regex]'] -- check by looking for files in library path
5043 # which responds to the $file_magic_cmd with a given egrep regex.
5044 # If you have `file' or equivalent on your system and you're not sure
5045 # whether `pass_all' will *always* work, you probably want this one.
5046
5047 case $host_os in
5048 aix4* | aix5*)
5049   lt_cv_deplibs_check_method=pass_all
5050   ;;
5051
5052 beos*)
5053   lt_cv_deplibs_check_method=pass_all
5054   ;;
5055
5056 bsdi4*)
5057   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5058   lt_cv_file_magic_cmd='/usr/bin/file -L'
5059   lt_cv_file_magic_test_file=/shlib/libc.so
5060   ;;
5061
5062 cygwin* | mingw* | pw32*)
5063   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5064   lt_cv_file_magic_cmd='$OBJDUMP -f'
5065   ;;
5066
5067 darwin* | rhapsody*)
5068   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5069   lt_cv_file_magic_cmd='/usr/bin/file -L'
5070   case "$host_os" in
5071   rhapsody* | darwin1.012)
5072     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
5073     ;;
5074   *) # Darwin 1.3 on
5075     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5076     ;;
5077   esac
5078   ;;
5079
5080 freebsd*)
5081   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5082     case $host_cpu in
5083     i*86 )
5084       # Not sure whether the presence of OpenBSD here was a mistake.
5085       # Let's accept both of them until this is cleared up.
5086       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5087       lt_cv_file_magic_cmd=/usr/bin/file
5088       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5089       ;;
5090     esac
5091   else
5092     lt_cv_deplibs_check_method=pass_all
5093   fi
5094   ;;
5095
5096 gnu*)
5097   lt_cv_deplibs_check_method=pass_all
5098   ;;
5099
5100 hpux10.20* | hpux11*)
5101   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5102   lt_cv_file_magic_cmd=/usr/bin/file
5103   lt_cv_file_magic_test_file=/usr/lib/libc.sl
5104   ;;
5105
5106 irix5* | irix6*)
5107   case $host_os in
5108   irix5*)
5109     # this will be overridden with pass_all, but let us keep it just in case
5110     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5111     ;;
5112   *)
5113     case $LD in
5114     *-32|*"-32 ") libmagic=32-bit;;
5115     *-n32|*"-n32 ") libmagic=N32;;
5116     *-64|*"-64 ") libmagic=64-bit;;
5117     *) libmagic=never-match;;
5118     esac
5119     # this will be overridden with pass_all, but let us keep it just in case
5120     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5121     ;;
5122   esac
5123   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5124   lt_cv_deplibs_check_method=pass_all
5125   ;;
5126
5127 # This must be Linux ELF.
5128 linux*)
5129   case $host_cpu in
5130   alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* )
5131     lt_cv_deplibs_check_method=pass_all ;;
5132   *)
5133     # glibc up to 2.1.1 does not perform some relocations on ARM
5134     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
5135   esac
5136   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
5137   ;;
5138
5139 netbsd*)
5140   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5141     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5142   else
5143     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
5144   fi
5145   ;;
5146
5147 newos6*)
5148   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5149   lt_cv_file_magic_cmd=/usr/bin/file
5150   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5151   ;;
5152
5153 osf3* | osf4* | osf5*)
5154   # this will be overridden with pass_all, but let us keep it just in case
5155   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5156   lt_cv_file_magic_test_file=/shlib/libc.so
5157   lt_cv_deplibs_check_method=pass_all
5158   ;;
5159
5160 sco3.2v5*)
5161   lt_cv_deplibs_check_method=pass_all
5162   ;;
5163
5164 solaris*)
5165   lt_cv_deplibs_check_method=pass_all
5166   lt_cv_file_magic_test_file=/lib/libc.so
5167   ;;
5168
5169 sysv5uw[78]* | sysv4*uw2*)
5170   lt_cv_deplibs_check_method=pass_all
5171   ;;
5172
5173 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5174   case $host_vendor in
5175   motorola)
5176     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]'
5177     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5178     ;;
5179   ncr)
5180     lt_cv_deplibs_check_method=pass_all
5181     ;;
5182   sequent)
5183     lt_cv_file_magic_cmd='/bin/file'
5184     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5185     ;;
5186   sni)
5187     lt_cv_file_magic_cmd='/bin/file'
5188     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5189     lt_cv_file_magic_test_file=/lib/libc.so
5190     ;;
5191   esac
5192   ;;
5193 esac
5194
5195 fi
5196 echo "$as_me:5196: result: $lt_cv_deplibs_check_method" >&5
5197 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5198 file_magic_cmd=$lt_cv_file_magic_cmd
5199 deplibs_check_method=$lt_cv_deplibs_check_method
5200 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5201
5202 # If no C compiler was specified, use CC.
5203 LTCC=${LTCC-"$CC"}
5204
5205 # Allow CC to be a program name with arguments.
5206 set dummy $CC
5207 compiler="$2"
5208
5209 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5210 if test "${enable_libtool_lock+set}" = set; then
5211   enableval="$enable_libtool_lock"
5212
5213 fi;
5214 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5215
5216 # Some flags need to be propagated to the compiler or linker for good
5217 # libtool support.
5218 case $host in
5219 *-*-irix6*)
5220   # Find out which ABI we are using.
5221   echo '#line 5221 "configure"' > conftest.$ac_ext
5222   if { (eval echo "$as_me:5222: \"$ac_compile\"") >&5
5223   (eval $ac_compile) 2>&5
5224   ac_status=$?
5225   echo "$as_me:5225: \$? = $ac_status" >&5
5226   (exit $ac_status); }; then
5227     case `/usr/bin/file conftest.$ac_objext` in
5228     *32-bit*)
5229       LD="${LD-ld} -32"
5230       ;;
5231     *N32*)
5232       LD="${LD-ld} -n32"
5233       ;;
5234     *64-bit*)
5235       LD="${LD-ld} -64"
5236       ;;
5237     esac
5238   fi
5239   rm -rf conftest*
5240   ;;
5241
5242 *-*-sco3.2v5*)
5243   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5244   SAVE_CFLAGS="$CFLAGS"
5245   CFLAGS="$CFLAGS -belf"
5246   echo "$as_me:5246: checking whether the C compiler needs -belf" >&5
5247 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5248 if test "${lt_cv_cc_needs_belf+set}" = set; then
5249   echo $ECHO_N "(cached) $ECHO_C" >&6
5250 else
5251   ac_ext=c
5252 ac_cpp='$CPP $CPPFLAGS'
5253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5256
5257      cat >conftest.$ac_ext <<_ACEOF
5258 #line 5258 "configure"
5259 #include "confdefs.h"
5260
5261 int
5262 main ()
5263 {
5264
5265   ;
5266   return 0;
5267 }
5268 _ACEOF
5269 rm -f conftest.$ac_objext conftest$ac_exeext
5270 if { (eval echo "$as_me:5270: \"$ac_link\"") >&5
5271   (eval $ac_link) 2>&5
5272   ac_status=$?
5273   echo "$as_me:5273: \$? = $ac_status" >&5
5274   (exit $ac_status); } &&
5275          { ac_try='test -s conftest$ac_exeext'
5276   { (eval echo "$as_me:5276: \"$ac_try\"") >&5
5277   (eval $ac_try) 2>&5
5278   ac_status=$?
5279   echo "$as_me:5279: \$? = $ac_status" >&5
5280   (exit $ac_status); }; }; then
5281   lt_cv_cc_needs_belf=yes
5282 else
5283   echo "$as_me: failed program was:" >&5
5284 cat conftest.$ac_ext >&5
5285 lt_cv_cc_needs_belf=no
5286 fi
5287 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5288      ac_ext=c
5289 ac_cpp='$CPP $CPPFLAGS'
5290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5293
5294 fi
5295 echo "$as_me:5295: result: $lt_cv_cc_needs_belf" >&5
5296 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5297   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5298     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5299     CFLAGS="$SAVE_CFLAGS"
5300   fi
5301   ;;
5302
5303 esac
5304
5305 need_locks="$enable_libtool_lock"
5306
5307 for ac_header in dlfcn.h
5308 do
5309 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
5310 echo "$as_me:5310: checking for $ac_header" >&5
5311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5312 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
5313   echo $ECHO_N "(cached) $ECHO_C" >&6
5314 else
5315   cat >conftest.$ac_ext <<_ACEOF
5316 #line 5316 "configure"
5317 #include "confdefs.h"
5318 #include <$ac_header>
5319 _ACEOF
5320 if { (eval echo "$as_me:5320: \"$ac_cpp conftest.$ac_ext\"") >&5
5321   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5322   ac_status=$?
5323   egrep -v '^ *\+' conftest.er1 >conftest.err
5324   rm -f conftest.er1
5325   cat conftest.err >&5
5326   echo "$as_me:5326: \$? = $ac_status" >&5
5327   (exit $ac_status); } >/dev/null; then
5328   if test -s conftest.err; then
5329     ac_cpp_err=$ac_c_preproc_warn_flag
5330   else
5331     ac_cpp_err=
5332   fi
5333 else
5334   ac_cpp_err=yes
5335 fi
5336 if test -z "$ac_cpp_err"; then
5337   eval "$ac_ac_Header=yes"
5338 else
5339   echo "$as_me: failed program was:" >&5
5340   cat conftest.$ac_ext >&5
5341   eval "$ac_ac_Header=no"
5342 fi
5343 rm -f conftest.err conftest.$ac_ext
5344 fi
5345 echo "$as_me:5345: result: `eval echo '${'$ac_ac_Header'}'`" >&5
5346 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
5347 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
5348   cat >>confdefs.h <<EOF
5349 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
5350 EOF
5351
5352 fi
5353 done
5354
5355 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5356
5357 # find the maximum length of command line arguments
5358 echo "$as_me:5358: checking the maximum length of command line arguments" >&5
5359 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5360 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5361   echo $ECHO_N "(cached) $ECHO_C" >&6
5362 else
5363     i=0
5364   testring="ABCD"
5365
5366   case $host_os in
5367   msdosdjgpp*)
5368     # On DJGPP, this test can blow up pretty badly due to problems in libc
5369     # (any single argument exceeding 2000 bytes causes a buffer overrun
5370     # during glob expansion).  Even if it were fixed, the result of this
5371     # check would be larger than it should be.
5372     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5373     ;;
5374
5375   gnu*)
5376     # Under GNU Hurd, this test is not required because there is
5377     # no limit to the length of command line arguments.
5378     # Libtool will interpret -1 as no limit whatsoever
5379     lt_cv_sys_max_cmd_len=-1;    # 12K is about right
5380     break
5381     ;;
5382
5383   *)
5384     # If test is not a shell built-in, we'll probably end up computing a
5385     # maximum length that is only half of the actual maximum length, but
5386     # we can't tell.
5387     while test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5388                = "XX$testring" &&
5389             new_result=`expr "X$testring" : ".*" 2>&1` &&
5390             lt_cv_sys_max_cmd_len=$new_result &&
5391             test $i != 17 # 1/2 MB should be enough
5392     do
5393       i=`expr $i + 1`
5394       testring=$testring$testring
5395     done
5396     testring=
5397     # add a significant safety factor because C++ compilers can tack on massive
5398     # amounts of additional arguments before passing them to the linker.  1/4
5399     # should be good.
5400     len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5401     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len - $len`
5402     ;;
5403   esac
5404
5405 fi
5406
5407 if test -n $lt_cv_sys_max_cmd_len ; then
5408   echo "$as_me:5408: result: $lt_cv_sys_max_cmd_len" >&5
5409 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5410 else
5411   echo "$as_me:5411: result: none" >&5
5412 echo "${ECHO_T}none" >&6
5413 fi
5414
5415 # Check for command to grab the raw symbol name followed by C symbol from nm.
5416 echo "$as_me:5416: checking command to parse $NM output from $compiler object" >&5
5417 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5418 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5419   echo $ECHO_N "(cached) $ECHO_C" >&6
5420 else
5421
5422 # These are sane defaults that work on at least a few old systems.
5423 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5424
5425 # Character class describing NM global symbol codes.
5426 symcode='[BCDEGRST]'
5427
5428 # Regexp to match symbols that can be accessed directly from C.
5429 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5430
5431 # Transform the above into a raw symbol and a C symbol.
5432 symxfrm='\1 \2\3 \3'
5433
5434 # Transform an extracted symbol line into a proper C declaration
5435 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
5436
5437 # Transform an extracted symbol line into symbol name and symbol address
5438 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5439
5440 # Define system-specific variables.
5441 case $host_os in
5442 aix*)
5443   symcode='[BCDT]'
5444   ;;
5445 cygwin* | mingw* | pw32*)
5446   symcode='[ABCDGISTW]'
5447   ;;
5448 hpux*) # Its linker distinguishes data from code symbols
5449   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5450   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5451   ;;
5452 irix*)
5453   symcode='[BCDEGRST]'
5454   ;;
5455 solaris* | sysv5*)
5456   symcode='[BDT]'
5457   ;;
5458 sysv4)
5459   symcode='[DFNSTU]'
5460   ;;
5461 esac
5462
5463 # Handle CRLF in mingw tool chain
5464 opt_cr=
5465 case $host_os in
5466 mingw*)
5467   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5468   ;;
5469 esac
5470
5471 # If we're using GNU nm, then use its standard symbol codes.
5472 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
5473   symcode='[ABCDGISTW]'
5474 fi
5475
5476 # Try without a prefix undercore, then with it.
5477 for ac_symprfx in "" "_"; do
5478
5479   # Write the raw and C identifiers.
5480 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5481
5482   # Check to see that the pipe works correctly.
5483   pipe_works=no
5484
5485   rm -f conftest*
5486   cat > conftest.$ac_ext <<EOF
5487 #ifdef __cplusplus
5488 extern "C" {
5489 #endif
5490 char nm_test_var;
5491 void nm_test_func(){}
5492 #ifdef __cplusplus
5493 }
5494 #endif
5495 int main(){nm_test_var='a';nm_test_func();return(0);}
5496 EOF
5497
5498   if { (eval echo "$as_me:5498: \"$ac_compile\"") >&5
5499   (eval $ac_compile) 2>&5
5500   ac_status=$?
5501   echo "$as_me:5501: \$? = $ac_status" >&5
5502   (exit $ac_status); }; then
5503     # Now try to grab the symbols.
5504     nlist=conftest.nm
5505     if { (eval echo "$as_me:5505: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5506   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5507   ac_status=$?
5508   echo "$as_me:5508: \$? = $ac_status" >&5
5509   (exit $ac_status); } && test -s "$nlist"; then
5510       # Try sorting and uniquifying the output.
5511       if sort "$nlist" | uniq > "$nlist"T; then
5512         mv -f "$nlist"T "$nlist"
5513       else
5514         rm -f "$nlist"T
5515       fi
5516
5517       # Make sure that we snagged all the symbols we need.
5518       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
5519         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
5520           cat <<EOF > conftest.$ac_ext
5521 #ifdef __cplusplus
5522 extern "C" {
5523 #endif
5524
5525 EOF
5526           # Now generate the symbol file.
5527           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
5528
5529           cat <<EOF >> conftest.$ac_ext
5530 #if defined (__STDC__) && __STDC__
5531 # define lt_ptr_t void *
5532 #else
5533 # define lt_ptr_t char *
5534 # define const
5535 #endif
5536
5537 /* The mapping between symbol names and symbols. */
5538 const struct {
5539   const char *name;
5540   lt_ptr_t address;
5541 }
5542 lt_preloaded_symbols[] =
5543 {
5544 EOF
5545           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.$ac_ext
5546           cat <<\EOF >> conftest.$ac_ext
5547   {0, (lt_ptr_t) 0}
5548 };
5549
5550 #ifdef __cplusplus
5551 }
5552 #endif
5553 EOF
5554           # Now try linking the two files.
5555           mv conftest.$ac_objext conftstm.$ac_objext
5556           lt_save_LIBS="$LIBS"
5557           lt_save_CFLAGS="$CFLAGS"
5558           LIBS="conftstm.$ac_objext"
5559           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5560           if { (eval echo "$as_me:5560: \"$ac_link\"") >&5
5561   (eval $ac_link) 2>&5
5562   ac_status=$?
5563   echo "$as_me:5563: \$? = $ac_status" >&5
5564   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5565             pipe_works=yes
5566           fi
5567           LIBS="$lt_save_LIBS"
5568           CFLAGS="$lt_save_CFLAGS"
5569         else
5570           echo "cannot find nm_test_func in $nlist" >&5
5571         fi
5572       else
5573         echo "cannot find nm_test_var in $nlist" >&5
5574       fi
5575     else
5576       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5577     fi
5578   else
5579     echo "$progname: failed program was:" >&5
5580     cat conftest.$ac_ext >&5
5581   fi
5582   rm -f conftest* conftst*
5583
5584   # Do not use the global_symbol_pipe unless it works.
5585   if test "$pipe_works" = yes; then
5586     break
5587   else
5588     lt_cv_sys_global_symbol_pipe=
5589   fi
5590 done
5591
5592 fi
5593
5594 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5595   lt_cv_sys_global_symbol_to_cdecl=
5596 fi
5597 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5598   echo "$as_me:5598: result: failed" >&5
5599 echo "${ECHO_T}failed" >&6
5600 else
5601   echo "$as_me:5601: result: ok" >&5
5602 echo "${ECHO_T}ok" >&6
5603 fi
5604
5605 echo "$as_me:5605: checking for objdir" >&5
5606 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5607 if test "${lt_cv_objdir+set}" = set; then
5608   echo $ECHO_N "(cached) $ECHO_C" >&6
5609 else
5610   rm -f .libs 2>/dev/null
5611 mkdir .libs 2>/dev/null
5612 if test -d .libs; then
5613   lt_cv_objdir=.libs
5614 else
5615   # MS-DOS does not allow filenames that begin with a dot.
5616   lt_cv_objdir=_libs
5617 fi
5618 rmdir .libs 2>/dev/null
5619 fi
5620 echo "$as_me:5620: result: $lt_cv_objdir" >&5
5621 echo "${ECHO_T}$lt_cv_objdir" >&6
5622 objdir=$lt_cv_objdir
5623
5624 case $host_os in
5625 aix3*)
5626   # AIX sometimes has problems with the GCC collect2 program.  For some
5627   # reason, if we set the COLLECT_NAMES environment variable, the problems
5628   # vanish in a puff of smoke.
5629   if test "X${COLLECT_NAMES+set}" != Xset; then
5630     COLLECT_NAMES=
5631     export COLLECT_NAMES
5632   fi
5633   ;;
5634 esac
5635
5636 # Sed substitution that helps us do robust quoting.  It backslashifies
5637 # metacharacters that are still active within double-quoted strings.
5638 Xsed='sed -e s/^X//'
5639 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5640
5641 # Same as above, but do not quote variable references.
5642 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5643
5644 # Sed substitution to delay expansion of an escaped shell variable in a
5645 # double_quote_subst'ed string.
5646 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5647
5648 # Sed substitution to avoid accidental globbing in evaled expressions
5649 no_glob_subst='s/\*/\\\*/g'
5650
5651 # Constants:
5652 rm="rm -f"
5653
5654 # Global variables:
5655 default_ofile=libtool
5656 can_build_shared=yes
5657
5658 # All known linkers require a `.a' archive for static linking (except M$VC,
5659 # which needs '.lib').
5660 libext=a
5661 ltmain="$ac_aux_dir/ltmain.sh"
5662 ofile="$default_ofile"
5663 with_gnu_ld="$lt_cv_prog_gnu_ld"
5664
5665 if test -n "$ac_tool_prefix"; then
5666   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5667 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5668 echo "$as_me:5668: checking for $ac_word" >&5
5669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5670 if test "${ac_cv_prog_RANLIB+set}" = set; then
5671   echo $ECHO_N "(cached) $ECHO_C" >&6
5672 else
5673   if test -n "$RANLIB"; then
5674   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5675 else
5676   ac_save_IFS=$IFS; IFS=$ac_path_separator
5677 ac_dummy="$PATH"
5678 for ac_dir in $ac_dummy; do
5679   IFS=$ac_save_IFS
5680   test -z "$ac_dir" && ac_dir=.
5681   $as_executable_p "$ac_dir/$ac_word" || continue
5682 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5683 echo "$as_me:5683: found $ac_dir/$ac_word" >&5
5684 break
5685 done
5686
5687 fi
5688 fi
5689 RANLIB=$ac_cv_prog_RANLIB
5690 if test -n "$RANLIB"; then
5691   echo "$as_me:5691: result: $RANLIB" >&5
5692 echo "${ECHO_T}$RANLIB" >&6
5693 else
5694   echo "$as_me:5694: result: no" >&5
5695 echo "${ECHO_T}no" >&6
5696 fi
5697
5698 fi
5699 if test -z "$ac_cv_prog_RANLIB"; then
5700   ac_ct_RANLIB=$RANLIB
5701   # Extract the first word of "ranlib", so it can be a program name with args.
5702 set dummy ranlib; ac_word=$2
5703 echo "$as_me:5703: checking for $ac_word" >&5
5704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5705 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5706   echo $ECHO_N "(cached) $ECHO_C" >&6
5707 else
5708   if test -n "$ac_ct_RANLIB"; then
5709   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5710 else
5711   ac_save_IFS=$IFS; IFS=$ac_path_separator
5712 ac_dummy="$PATH"
5713 for ac_dir in $ac_dummy; do
5714   IFS=$ac_save_IFS
5715   test -z "$ac_dir" && ac_dir=.
5716   $as_executable_p "$ac_dir/$ac_word" || continue
5717 ac_cv_prog_ac_ct_RANLIB="ranlib"
5718 echo "$as_me:5718: found $ac_dir/$ac_word" >&5
5719 break
5720 done
5721
5722   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5723 fi
5724 fi
5725 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5726 if test -n "$ac_ct_RANLIB"; then
5727   echo "$as_me:5727: result: $ac_ct_RANLIB" >&5
5728 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5729 else
5730   echo "$as_me:5730: result: no" >&5
5731 echo "${ECHO_T}no" >&6
5732 fi
5733
5734   RANLIB=$ac_ct_RANLIB
5735 else
5736   RANLIB="$ac_cv_prog_RANLIB"
5737 fi
5738
5739 if test -n "$ac_tool_prefix"; then
5740   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5741 set dummy ${ac_tool_prefix}strip; ac_word=$2
5742 echo "$as_me:5742: checking for $ac_word" >&5
5743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5744 if test "${ac_cv_prog_STRIP+set}" = set; then
5745   echo $ECHO_N "(cached) $ECHO_C" >&6
5746 else
5747   if test -n "$STRIP"; then
5748   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5749 else
5750   ac_save_IFS=$IFS; IFS=$ac_path_separator
5751 ac_dummy="$PATH"
5752 for ac_dir in $ac_dummy; do
5753   IFS=$ac_save_IFS
5754   test -z "$ac_dir" && ac_dir=.
5755   $as_executable_p "$ac_dir/$ac_word" || continue
5756 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5757 echo "$as_me:5757: found $ac_dir/$ac_word" >&5
5758 break
5759 done
5760
5761 fi
5762 fi
5763 STRIP=$ac_cv_prog_STRIP
5764 if test -n "$STRIP"; then
5765   echo "$as_me:5765: result: $STRIP" >&5
5766 echo "${ECHO_T}$STRIP" >&6
5767 else
5768   echo "$as_me:5768: result: no" >&5
5769 echo "${ECHO_T}no" >&6
5770 fi
5771
5772 fi
5773 if test -z "$ac_cv_prog_STRIP"; then
5774   ac_ct_STRIP=$STRIP
5775   # Extract the first word of "strip", so it can be a program name with args.
5776 set dummy strip; ac_word=$2
5777 echo "$as_me:5777: checking for $ac_word" >&5
5778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5779 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5780   echo $ECHO_N "(cached) $ECHO_C" >&6
5781 else
5782   if test -n "$ac_ct_STRIP"; then
5783   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5784 else
5785   ac_save_IFS=$IFS; IFS=$ac_path_separator
5786 ac_dummy="$PATH"
5787 for ac_dir in $ac_dummy; do
5788   IFS=$ac_save_IFS
5789   test -z "$ac_dir" && ac_dir=.
5790   $as_executable_p "$ac_dir/$ac_word" || continue
5791 ac_cv_prog_ac_ct_STRIP="strip"
5792 echo "$as_me:5792: found $ac_dir/$ac_word" >&5
5793 break
5794 done
5795
5796   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5797 fi
5798 fi
5799 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5800 if test -n "$ac_ct_STRIP"; then
5801   echo "$as_me:5801: result: $ac_ct_STRIP" >&5
5802 echo "${ECHO_T}$ac_ct_STRIP" >&6
5803 else
5804   echo "$as_me:5804: result: no" >&5
5805 echo "${ECHO_T}no" >&6
5806 fi
5807
5808   STRIP=$ac_ct_STRIP
5809 else
5810   STRIP="$ac_cv_prog_STRIP"
5811 fi
5812
5813 old_CC="$CC"
5814 old_CFLAGS="$CFLAGS"
5815
5816 # Set sane defaults for various variables
5817 test -z "$AR" && AR=ar
5818 test -z "$AR_FLAGS" && AR_FLAGS=cru
5819 test -z "$AS" && AS=as
5820 test -z "$CC" && CC=cc
5821 test -z "$LTCC" && LTCC=$CC
5822 test -z "$DLLTOOL" && DLLTOOL=dlltool
5823 test -z "$LD" && LD=ld
5824 test -z "$LN_S" && LN_S="ln -s"
5825 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5826 test -z "$NM" && NM=nm
5827 test -z "$OBJDUMP" && OBJDUMP=objdump
5828 test -z "$RANLIB" && RANLIB=:
5829 test -z "$STRIP" && STRIP=:
5830 test -z "$ac_objext" && ac_objext=o
5831
5832 # Determine commands to create old-style static archives.
5833 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5834 old_postinstall_cmds='chmod 644 $oldlib'
5835 old_postuninstall_cmds=
5836
5837 if test -n "$RANLIB"; then
5838   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5839   old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5840 fi
5841
5842 # Only perform the check for file, if the check method requires it
5843 case $deplibs_check_method in
5844 file_magic*)
5845   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5846     echo "$as_me:5846: checking for ${ac_tool_prefix}file" >&5
5847 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5848 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5849   echo $ECHO_N "(cached) $ECHO_C" >&6
5850 else
5851   case $MAGIC_CMD in
5852 \\/* |  ?:\\/*)
5853   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5854   ;;
5855 *)
5856   lt_save_MAGIC_CMD="$MAGIC_CMD"
5857   IFS="${IFS=   }"; lt_save_ifs="$IFS"; IFS="${PATH_SEPARATOR-:}"
5858   ac_dummy="/usr/bin${PATH_SEPARATOR-:}$PATH"
5859   for ac_dir in $ac_dummy; do
5860     IFS="$lt_save_ifs"
5861     test -z "$ac_dir" && ac_dir=.
5862     if test -f $ac_dir/${ac_tool_prefix}file; then
5863       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5864       if test -n "$file_magic_test_file"; then
5865         case $deplibs_check_method in
5866         "file_magic "*)
5867           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5868           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5869           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5870             egrep "$file_magic_regex" > /dev/null; then
5871             :
5872           else
5873             cat <<EOF 1>&2
5874
5875 *** Warning: the command libtool uses to detect shared libraries,
5876 *** $file_magic_cmd, produces output that libtool cannot recognize.
5877 *** The result is that libtool may fail to recognize shared libraries
5878 *** as such.  This will affect the creation of libtool libraries that
5879 *** depend on shared libraries, but programs linked with such libtool
5880 *** libraries will work regardless of this problem.  Nevertheless, you
5881 *** may want to report the problem to your system manager and/or to
5882 *** bug-libtool@gnu.org
5883
5884 EOF
5885           fi ;;
5886         esac
5887       fi
5888       break
5889     fi
5890   done
5891   IFS="$lt_save_ifs"
5892   MAGIC_CMD="$lt_save_MAGIC_CMD"
5893   ;;
5894 esac
5895 fi
5896
5897 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5898 if test -n "$MAGIC_CMD"; then
5899   echo "$as_me:5899: result: $MAGIC_CMD" >&5
5900 echo "${ECHO_T}$MAGIC_CMD" >&6
5901 else
5902   echo "$as_me:5902: result: no" >&5
5903 echo "${ECHO_T}no" >&6
5904 fi
5905
5906 if test -z "$lt_cv_path_MAGIC_CMD"; then
5907   if test -n "$ac_tool_prefix"; then
5908     echo "$as_me:5908: checking for file" >&5
5909 echo $ECHO_N "checking for file... $ECHO_C" >&6
5910 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5911   echo $ECHO_N "(cached) $ECHO_C" >&6
5912 else
5913   case $MAGIC_CMD in
5914 \\/* |  ?:\\/*)
5915   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5916   ;;
5917 *)
5918   lt_save_MAGIC_CMD="$MAGIC_CMD"
5919   IFS="${IFS=   }"; lt_save_ifs="$IFS"; IFS="${PATH_SEPARATOR-:}"
5920   ac_dummy="/usr/bin${PATH_SEPARATOR-:}$PATH"
5921   for ac_dir in $ac_dummy; do
5922     IFS="$lt_save_ifs"
5923     test -z "$ac_dir" && ac_dir=.
5924     if test -f $ac_dir/file; then
5925       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5926       if test -n "$file_magic_test_file"; then
5927         case $deplibs_check_method in
5928         "file_magic "*)
5929           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5930           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5931           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5932             egrep "$file_magic_regex" > /dev/null; then
5933             :
5934           else
5935             cat <<EOF 1>&2
5936
5937 *** Warning: the command libtool uses to detect shared libraries,
5938 *** $file_magic_cmd, produces output that libtool cannot recognize.
5939 *** The result is that libtool may fail to recognize shared libraries
5940 *** as such.  This will affect the creation of libtool libraries that
5941 *** depend on shared libraries, but programs linked with such libtool
5942 *** libraries will work regardless of this problem.  Nevertheless, you
5943 *** may want to report the problem to your system manager and/or to
5944 *** bug-libtool@gnu.org
5945
5946 EOF
5947           fi ;;
5948         esac
5949       fi
5950       break
5951     fi
5952   done
5953   IFS="$lt_save_ifs"
5954   MAGIC_CMD="$lt_save_MAGIC_CMD"
5955   ;;
5956 esac
5957 fi
5958
5959 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5960 if test -n "$MAGIC_CMD"; then
5961   echo "$as_me:5961: result: $MAGIC_CMD" >&5
5962 echo "${ECHO_T}$MAGIC_CMD" >&6
5963 else
5964   echo "$as_me:5964: result: no" >&5
5965 echo "${ECHO_T}no" >&6
5966 fi
5967
5968   else
5969     MAGIC_CMD=:
5970   fi
5971 fi
5972
5973   fi
5974   ;;
5975 esac
5976
5977 enable_dlopen=no
5978 enable_win32_dll=no
5979
5980 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5981 if test "${enable_libtool_lock+set}" = set; then
5982   enableval="$enable_libtool_lock"
5983
5984 fi;
5985 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5986
5987 # Check whether --with-pic or --without-pic was given.
5988 if test "${with_pic+set}" = set; then
5989   withval="$with_pic"
5990   pic_mode="$withval"
5991 else
5992   pic_mode=default
5993 fi;
5994 test -z "$pic_mode" && pic_mode=default
5995
5996 # Use C for the default configuration in the libtool script
5997 tagname=
5998 lt_save_CC="$CC"
5999 ac_ext=c
6000 ac_cpp='$CPP $CPPFLAGS'
6001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6004
6005 # Source file extension for C test sources.
6006 ac_ext=c
6007
6008 # Object file extension for compiled C test sources.
6009 objext=o
6010 objext=$objext
6011
6012 # Code to be used in simple compile tests
6013 lt_simple_compile_test_code="int some_variable = 0;\n"
6014
6015 # Code to be used in simple link tests
6016 lt_simple_link_test_code='main(){return(0);}\n'
6017
6018 # If no C compiler was specified, use CC.
6019 LTCC=${LTCC-"$CC"}
6020
6021 # Allow CC to be a program name with arguments.
6022 set dummy $CC
6023 compiler="$2"
6024
6025 #
6026 # Check for any special shared library compilation flags.
6027 #
6028 lt_prog_cc_shlib=
6029 if test "$GCC" = no; then
6030   case $host_os in
6031   sco3.2v5*)
6032     lt_prog_cc_shlib='-belf'
6033     ;;
6034   esac
6035 fi
6036 if test -n "$lt_prog_cc_shlib"; then
6037   { echo "$as_me:6037: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6038 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6039   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6040   else
6041     { echo "$as_me:6041: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6042 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6043     lt_cv_prog_cc_can_build_shared=no
6044   fi
6045 fi
6046
6047 #
6048 # Check to make sure the static flag actually works.
6049 #
6050 echo "$as_me:6050: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6051 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6052 if test "${lt_prog_compiler_static_works+set}" = set; then
6053   echo $ECHO_N "(cached) $ECHO_C" >&6
6054 else
6055   lt_prog_compiler_static_works=no
6056    save_LDFLAGS="$LDFLAGS"
6057    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6058    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6059    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6060      # The compiler can only warn and ignore the option if not recognized
6061      # So say no if there are warnings
6062      if test -s conftest.err; then
6063        # Append any errors to the config.log.
6064        cat conftest.err 1>&5
6065      else
6066        lt_prog_compiler_static_works=yes
6067      fi
6068    fi
6069    $rm conftest*
6070    LDFLAGS="$save_LDFLAGS"
6071
6072 fi
6073 echo "$as_me:6073: result: $lt_prog_compiler_static_works" >&5
6074 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6075
6076 if test x"$lt_prog_compiler_static_works" = xyes; then
6077     :
6078 else
6079     lt_prog_compiler_static=
6080 fi
6081
6082 lt_prog_compiler_no_builtin_flag=
6083
6084 if test "$GCC" = yes; then
6085   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6086
6087   echo "$as_me:6087: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6088 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6089 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6090   echo $ECHO_N "(cached) $ECHO_C" >&6
6091 else
6092   lt_cv_prog_compiler_rtti_exceptions=no
6093   ac_outfile=conftest.$ac_objext
6094    save_CFLAGS="$CFLAGS"
6095    CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
6096    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6097    if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
6098      # The compiler can only warn and ignore the option if not recognized
6099      # So say no if there are warnings
6100      if test -s conftest.err; then
6101        # Append any errors to the config.log.
6102        cat conftest.err 1>&5
6103      else
6104        lt_cv_prog_compiler_rtti_exceptions=yes
6105      fi
6106    fi
6107    $rm conftest*
6108    CFLAGS="$save_CFLAGS"
6109
6110 fi
6111 echo "$as_me:6111: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6112 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6113
6114 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6115     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6116 else
6117     :
6118 fi
6119
6120 fi
6121
6122 hard_links="nottested"
6123 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6124   # do not overwrite the value of need_locks provided by the user
6125   echo "$as_me:6125: checking if we can lock with hard links" >&5
6126 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6127   hard_links=yes
6128   $rm conftest*
6129   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6130   touch conftest.a
6131   ln conftest.a conftest.b 2>&5 || hard_links=no
6132   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6133   echo "$as_me:6133: result: $hard_links" >&5
6134 echo "${ECHO_T}$hard_links" >&6
6135   if test "$hard_links" = no; then
6136     { echo "$as_me:6136: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6137 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6138     need_locks=warn
6139   fi
6140 else
6141   need_locks=no
6142 fi
6143
6144 lt_prog_compiler_wl=
6145 lt_prog_compiler_pic=
6146 lt_prog_compiler_static=
6147
6148 echo "$as_me:6148: checking for $compiler option to produce PIC" >&5
6149 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6150 if test "$GCC" = yes; then
6151   lt_prog_compiler_wl='-Wl,'
6152   lt_prog_compiler_static='-static'
6153
6154   case $host_os in
6155     aix*)
6156     # All AIX code is PIC.
6157     if test "$host_cpu" = ia64; then
6158       # AIX 5 now supports IA64 processor
6159       lt_prog_compiler_static='-Bstatic'
6160     else
6161       lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6162     fi
6163     ;;
6164
6165   amigaos*)
6166     # FIXME: we need at least 68020 code to build shared libraries, but
6167     # adding the `-m68020' flag to GCC prevents building anything better,
6168     # like `-m68040'.
6169     lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6170     ;;
6171
6172   beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
6173     # PIC is the default for these OSes.
6174     ;;
6175
6176   cygwin* | mingw* | pw32* | os2*)
6177     # This hack is so that the source file can tell whether it is being
6178     # built for inclusion in a dll (and should export symbols for example).
6179     lt_prog_compiler_pic='-DDLL_EXPORT'
6180     ;;
6181
6182   darwin* | rhapsody*)
6183     # PIC is the default on this platform
6184     # Common symbols not allowed in MH_DYLIB files
6185     lt_prog_compiler_pic='-fno-common'
6186     ;;
6187
6188   msdosdjgpp*)
6189     # Just because we use GCC doesn't mean we suddenly get shared libraries
6190     # on systems that don't support them.
6191     lt_prog_compiler_can_build_shared=no
6192     enable_shared=no
6193     ;;
6194
6195   sysv4*MP*)
6196     if test -d /usr/nec; then
6197       lt_prog_compiler_pic=-Kconform_pic
6198     fi
6199     ;;
6200
6201   *)
6202     lt_prog_compiler_pic='-fPIC'
6203     ;;
6204   esac
6205 else
6206   # PORTME Check for flag to pass linker flags through the system compiler.
6207   case $host_os in
6208   aix*)
6209     lt_prog_compiler_wl='-Wl,'
6210     if test "$host_cpu" = ia64; then
6211       # AIX 5 now supports IA64 processor
6212       lt_prog_compiler_static='-Bstatic'
6213     else
6214       lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6215     fi
6216     ;;
6217
6218   cygwin* | mingw* | pw32* | os2*)
6219     # This hack is so that the source file can tell whether it is being
6220     # built for inclusion in a dll (and should export symbols for example).
6221     lt_prog_compiler_pic='-DDLL_EXPORT'
6222     ;;
6223
6224   hpux9* | hpux10* | hpux11*)
6225     lt_prog_compiler_wl='-Wl,'
6226     lt_prog_compiler_pic='+Z'
6227     # Is there a better lt_prog_compiler_static that works with the bundled CC?
6228     lt_prog_compiler_static='${wl}-a ${wl}archive'
6229     ;;
6230
6231   irix5* | irix6*)
6232     lt_prog_compiler_wl='-Wl,'
6233     # PIC (with -KPIC) is the default.
6234     lt_prog_compiler_static='-non_shared'
6235     ;;
6236
6237   linux*)
6238     # Check flags for non-gnu compilers on Linux
6239     case "$host_cpu" in
6240     alpha*)
6241       # The only non-gnu compiler on Linux/Alpha is the Compaq one:
6242       lt_prog_compiler_wl='-Wl,'
6243       lt_prog_compiler_static='-non_shared'
6244       ;;
6245     *)
6246       lt_prog_compiler_can_build_shared=no
6247       ;;
6248     esac
6249     ;;
6250   newsos6)
6251     lt_prog_compiler_pic='-KPIC'
6252     lt_prog_compiler_static='-Bstatic'
6253     ;;
6254
6255   osf3* | osf4* | osf5*)
6256     lt_prog_compiler_wl='-Wl,'
6257     # All OSF/1 code is PIC.
6258     lt_prog_compiler_static='-non_shared'
6259     ;;
6260
6261   sco3.2v5*)
6262     lt_prog_compiler_pic='-Kpic'
6263     lt_prog_compiler_static='-dn'
6264     ;;
6265
6266   solaris*)
6267     lt_prog_compiler_wl='-Wl,'
6268     lt_prog_compiler_pic='-KPIC'
6269     lt_prog_compiler_static='-Bstatic'
6270     ;;
6271
6272   sunos4*)
6273     lt_prog_compiler_wl='-Qoption ld '
6274     lt_prog_compiler_pic='-PIC'
6275     lt_prog_compiler_static='-Bstatic'
6276     ;;
6277
6278   sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6279     if test "x$host_vendor" = xsni; then
6280       lt_prog_compiler_wl='-LD'
6281     else
6282       lt_prog_compiler_wl='-Wl,'
6283     fi
6284     lt_prog_compiler_pic='-KPIC'
6285     lt_prog_compiler_static='-Bstatic'
6286     ;;
6287
6288   sysv4*MP*)
6289     if test -d /usr/nec ;then
6290       lt_prog_compiler_pic='-Kconform_pic'
6291       lt_prog_compiler_static='-Bstatic'
6292     fi
6293     ;;
6294
6295   uts4*)
6296     lt_prog_compiler_pic='-pic'
6297     lt_prog_compiler_static='-Bstatic'
6298     ;;
6299
6300   *)
6301     lt_prog_compiler_can_build_shared=no
6302     ;;
6303   esac
6304 fi
6305 echo "$as_me:6305: result: $lt_prog_compiler_pic" >&5
6306 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6307
6308 #
6309 # Check to make sure the PIC flag actually works.
6310 #
6311 if test -n "$lt_prog_compiler_pic"; then
6312   echo "$as_me:6312: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6313 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6314 if test "${lt_prog_compiler_pic_works+set}" = set; then
6315   echo $ECHO_N "(cached) $ECHO_C" >&6
6316 else
6317   lt_prog_compiler_pic_works=no
6318   ac_outfile=conftest.$ac_objext
6319    save_CFLAGS="$CFLAGS"
6320    CFLAGS="$CFLAGS $lt_prog_compiler_pic"
6321    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6322    if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
6323      # The compiler can only warn and ignore the option if not recognized
6324      # So say no if there are warnings
6325      if test -s conftest.err; then
6326        # Append any errors to the config.log.
6327        cat conftest.err 1>&5
6328      else
6329        lt_prog_compiler_pic_works=yes
6330      fi
6331    fi
6332    $rm conftest*
6333    CFLAGS="$save_CFLAGS"
6334
6335 fi
6336 echo "$as_me:6336: result: $lt_prog_compiler_pic_works" >&5
6337 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6338
6339 if test x"$lt_prog_compiler_pic_works" = xyes; then
6340     case $lt_prog_compiler_pic in
6341      "" | " "*) ;;
6342      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6343      esac
6344
6345 else
6346     lt_prog_compiler_pic=
6347      lt_prog_compiler_can_build_shared=no
6348 fi
6349
6350 fi
6351 case "$host_os" in
6352   # For platforms which do not support PIC, -DPIC is meaningless:
6353   *djgpp*)
6354     lt_prog_compiler_pic=
6355     ;;
6356   *)
6357     echo "$as_me:6357: checking if $compiler PIC define -DPIC works" >&5
6358 echo $ECHO_N "checking if $compiler PIC define -DPIC works... $ECHO_C" >&6
6359 if test "${lt_prog_compiler_picdef_works+set}" = set; then
6360   echo $ECHO_N "(cached) $ECHO_C" >&6
6361 else
6362   lt_prog_compiler_picdef_works=no
6363   ac_outfile=conftest.$ac_objext
6364    save_CFLAGS="$CFLAGS"
6365    CFLAGS="$CFLAGS $lt_prog_compiler_pic -DPIC"
6366    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6367    if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
6368      # The compiler can only warn and ignore the option if not recognized
6369      # So say no if there are warnings
6370      if test -s conftest.err; then
6371        # Append any errors to the config.log.
6372        cat conftest.err 1>&5
6373      else
6374        lt_prog_compiler_picdef_works=yes
6375      fi
6376    fi
6377    $rm conftest*
6378    CFLAGS="$save_CFLAGS"
6379
6380 fi
6381 echo "$as_me:6381: result: $lt_prog_compiler_picdef_works" >&5
6382 echo "${ECHO_T}$lt_prog_compiler_picdef_works" >&6
6383
6384 if test x"$lt_prog_compiler_picdef_works" = xyes; then
6385     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6386 else
6387     lt_prog_compiler_pic="$lt_prog_compiler_pic"
6388 fi
6389
6390     ;;
6391 esac
6392
6393 echo "$as_me:6393: checking if $compiler supports -c -o file.$ac_objext" >&5
6394 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6395 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6396   echo $ECHO_N "(cached) $ECHO_C" >&6
6397 else
6398   lt_cv_prog_compiler_c_o=no
6399    $rm -r conftest 2>/dev/null
6400    mkdir conftest
6401    cd conftest
6402    mkdir out
6403    save_CFLAGS="$CFLAGS"
6404    CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
6405    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6406
6407    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6408    # that will create temporary files in the current directory regardless of
6409    # the output directory.  Thus, making CWD read-only will cause this test
6410    # to fail, enabling locking or at least warning the user not to do parallel
6411    # builds.
6412    chmod -w .
6413
6414    if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
6415    then
6416      # The compiler can only warn and ignore the option if not recognized
6417      # So say no if there are warnings
6418      if test -s out/conftest.err; then
6419        # Append any errors to the config.log.
6420        cat out/conftest.err 1>&5
6421      else
6422        lt_cv_prog_compiler_c_o=yes
6423      fi
6424    fi
6425    CFLAGS="$save_CFLAGS"
6426
6427    chmod u+w .
6428    $rm conftest* out/*
6429    rmdir out
6430    cd ..
6431    rmdir conftest
6432    $rm conftest*
6433
6434 fi
6435 echo "$as_me:6435: result: $lt_cv_prog_compiler_c_o" >&5
6436 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6437
6438 echo "$as_me:6438: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6439 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6440
6441 runpath_var=
6442 allow_undefined_flag=
6443
6444 archive_cmds=
6445 archive_cmds_need_lc=
6446 archive_expsym_cmds=
6447 old_archive_From_new_cmds=
6448 old_archive_from_expsyms_cmds=
6449 export_dynamic_flag_spec=
6450 whole_archive_flag_spec=
6451 thread_safe_flag_spec=
6452 hardcode_libdir_flag_spec=
6453 hardcode_libdir_separator=
6454 hardcode_direct=no
6455 hardcode_minus_L=no
6456 hardcode_shlibpath_var=unsupported
6457 link_all_deplibs=unknown
6458 always_export_symbols=no
6459 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
6460 # include_expsyms should be a list of space-separated symbols to be *always*
6461 # included in the symbol list
6462 include_expsyms=
6463 # exclude_expsyms can be an egrep regular expression of symbols to exclude
6464 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6465 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6466 # as well as any symbol that contains `d'.
6467 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6468 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6469 # platforms (ab)use it in PIC code, but their linkers get confused if
6470 # the symbol is explicitly referenced.  Since portable code cannot
6471 # rely on this symbol name, it's probably fine to never include it in
6472 # preloaded symbol tables.
6473 extract_expsyms_cmds=
6474
6475 case $host_os in
6476 cygwin* | mingw* | pw32*)
6477   # FIXME: the MSVC++ port hasn't been tested in a loooong time
6478   # When not using gcc, we currently assume that we are using
6479   # Microsoft Visual C++.
6480   if test "$GCC" != yes; then
6481     with_gnu_ld=no
6482   fi
6483   ;;
6484 openbsd*)
6485   with_gnu_ld=no
6486   ;;
6487 esac
6488
6489 ld_shlibs=yes
6490 if test "$with_gnu_ld" = yes; then
6491   # If archive_cmds runs LD, not CC, wlarc should be empty
6492   wlarc='${wl}'
6493
6494   # See if GNU ld supports shared libraries.
6495   case $host_os in
6496   aix3* | aix4* | aix5*)
6497     # On AIX/PPC, the GNU linker is very broken
6498     if test "$host_cpu" != ia64; then
6499       ld_shlibs=no
6500       cat <<EOF 1>&2
6501
6502 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6503 *** to be unable to reliably create shared libraries on AIX.
6504 *** Therefore, libtool is disabling shared libraries support.  If you
6505 *** really care for shared libraries, you may want to modify your PATH
6506 *** so that a non-GNU linker is found, and then restart.
6507
6508 EOF
6509     fi
6510     ;;
6511
6512   amigaos*)
6513     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)'
6514     hardcode_libdir_flag_spec='-L$libdir'
6515     hardcode_minus_L=yes
6516
6517     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6518     # that the semantics of dynamic libraries on AmigaOS, at least up
6519     # to version 4, is to share data among multiple programs linked
6520     # with the same dynamic library.  Since this doesn't match the
6521     # behavior of shared libraries on other platforms, we can't use
6522     # them.
6523     ld_shlibs=no
6524     ;;
6525
6526   beos*)
6527     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6528       allow_undefined_flag=unsupported
6529       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6530       # support --undefined.  This deserves some investigation.  FIXME
6531       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6532     else
6533       ld_shlibs=no
6534     fi
6535     ;;
6536
6537   cygwin* | mingw* | pw32*)
6538     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, as there is
6539     # no search path for DLLs.
6540     hardcode_libdir_flag_spec='-L$libdir'
6541     allow_undefined_flag=unsupported
6542     always_export_symbols=yes
6543
6544     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6545       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6546       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6547       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6548       else $CC -o impgen impgen.c ; fi)~
6549       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
6550
6551     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6552
6553     # cygwin and mingw dlls have different entry points and sets of symbols
6554     # to exclude.
6555     # FIXME: what about values for MSVC?
6556     dll_entry=__cygwin_dll_entry@12
6557     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6558     case $host_os in
6559     mingw*)
6560       # mingw values
6561       dll_entry=_DllMainCRTStartup@12
6562       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6563       ;;
6564     esac
6565
6566     # mingw and cygwin differ, and it's simplest to just exclude the union
6567     # of the two symbol sets.
6568     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6569
6570     # recent cygwin and mingw systems supply a stub DllMain which the user
6571     # can override, but on older systems we have to supply one (in ltdll.c)
6572     if test "x$lt_cv_need_dllmain" = "xyes"; then
6573       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6574       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~
6575         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6576     else
6577       ltdll_obj=
6578       ltdll_cmds=
6579     fi
6580
6581     # Extract the symbol export list from an `--export-all' def file,
6582     # then regenerate the def file from the symbol export list, so that
6583     # the compiled dll only exports the symbol export list.
6584     # Be careful not to strip the DATA tag left by newer dlltools.
6585     export_symbols_cmds="$ltdll_cmds"'
6586       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6587       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6588
6589     # If the export-symbols file already is a .def file (1st line
6590     # is EXPORTS), use it as is.
6591     # If DATA tags from a recent dlltool are present, honour them!
6592     archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
6593         cp $export_symbols $output_objdir/$soname-def;
6594       else
6595         echo EXPORTS > $output_objdir/$soname-def;
6596         _lt_hint=1;
6597         cat $export_symbols | while read symbol; do
6598          set dummy \$symbol;
6599          case \$# in
6600            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6601            *) echo "   \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6602          esac;
6603          _lt_hint=`expr 1 + \$_lt_hint`;
6604         done;
6605       fi~
6606       '"$ltdll_cmds"'
6607       $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~
6608       $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~
6609       $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~
6610       $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~
6611       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6612     ;;
6613
6614   darwin* | rhapsody*)
6615     allow_undefined_flag='-undefined suppress'
6616     # FIXME: Relying on posixy $() will cause problems for
6617     #        cross-compilation, but unfortunately the echo tests do not
6618     #        yet detect zsh echo's removal of \ escapes.
6619     archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)'
6620     # We need to add '_' to the symbols in $export_symbols first
6621     #_LT_AC_TAGVAR(archive_expsym_cmds, )="$_LT_AC_TAGVAR(archive_cmds, )"' && strip -s $export_symbols'
6622     hardcode_direct=yes
6623     hardcode_shlibpath_var=no
6624     whole_archive_flag_spec='-all_load $convenience'
6625     ;;
6626
6627   netbsd*)
6628     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6629       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6630       wlarc=
6631     else
6632       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6633       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6634     fi
6635     ;;
6636
6637   solaris* | sysv5*)
6638     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6639       ld_shlibs=no
6640       cat <<EOF 1>&2
6641
6642 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6643 *** create shared libraries on Solaris systems.  Therefore, libtool
6644 *** is disabling shared libraries support.  We urge you to upgrade GNU
6645 *** binutils to release 2.9.1 or newer.  Another option is to modify
6646 *** your PATH or compiler configuration so that the native linker is
6647 *** used, and then restart.
6648
6649 EOF
6650     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6651       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6652       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6653     else
6654       ld_shlibs=no
6655     fi
6656     ;;
6657
6658   sunos4*)
6659     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6660     wlarc=
6661     hardcode_direct=yes
6662     hardcode_shlibpath_var=no
6663     ;;
6664
6665   *)
6666     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6667       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6668       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6669     else
6670       ld_shlibs=no
6671     fi
6672     ;;
6673   esac
6674
6675   if test "$ld_shlibs" = yes; then
6676     runpath_var=LD_RUN_PATH
6677     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6678     export_dynamic_flag_spec='${wl}--export-dynamic'
6679     case $host_os in
6680     cygwin* | mingw* | pw32*)
6681       # dlltool doesn't understand --whole-archive et. al.
6682       whole_archive_flag_spec=
6683       ;;
6684     *)
6685       # ancient GNU ld didn't support --whole-archive et. al.
6686       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6687         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6688       else
6689         whole_archive_flag_spec=
6690       fi
6691       ;;
6692     esac
6693   fi
6694 else
6695   # PORTME fill in a description of your system's linker (not GNU ld)
6696   case $host_os in
6697   aix3*)
6698     allow_undefined_flag=unsupported
6699     always_export_symbols=yes
6700     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'
6701     # Note: this linker hardcodes the directories in LIBPATH if there
6702     # are no directories specified by -L.
6703     hardcode_minus_L=yes
6704     if test "$GCC" = yes && test -z "$link_static_flag"; then
6705       # Neither direct hardcoding nor static linking is supported with a
6706       # broken collect2.
6707       hardcode_direct=unsupported
6708     fi
6709     ;;
6710
6711   aix4* | aix5*)
6712     hardcode_direct=yes
6713     hardcode_libdir_separator=':'
6714     link_all_deplibs=yes
6715     # When large executables or shared objects are built, AIX ld can
6716     # have problems creating the table of contents.  If linking a library
6717     # or program results in "error TOC overflow" add -mminimal-toc to
6718     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6719     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6720     if test "$GCC" = yes; then
6721       case $host_os in aix4.012|aix4.-12.*)
6722         # We only want to do this on AIX 4.2 and lower, the check
6723         # below for broken collect2 doesn't work under 4.3+
6724         collect2name=`${CC} -print-prog-name=collect2`
6725         if test -f "$collect2name" && \
6726            strings "$collect2name" | grep resolve_lib_name >/dev/null
6727         then
6728           # We have reworked collect2
6729           hardcode_direct=yes
6730         else
6731           # We have old collect2
6732           hardcode_direct=unsupported
6733           # It fails to find uninstalled libraries when the uninstalled
6734           # path is not listed in the libpath.  Setting hardcode_minus_L
6735           # to unsupported forces relinking
6736           hardcode_minus_L=yes
6737           hardcode_libdir_flag_spec='-L$libdir'
6738           hardcode_libdir_separator=
6739         fi
6740       esac
6741       shared_flag='-shared'
6742     else
6743       # not using gcc
6744       if test "$host_cpu" = ia64; then
6745         shared_flag='${wl}-G'
6746       else
6747         shared_flag='${wl}-bM:SRE'
6748       fi
6749     fi
6750
6751     if test "$host_cpu" = ia64; then
6752       # On IA64, the linker does run time linking by default, so we don't
6753       # have to do anything special.
6754       aix_use_runtimelinking=no
6755         if test $with_gnu_ld = no; then
6756           exp_sym_flag='-Bexport'
6757         fi
6758       no_entry_flag=""
6759     else
6760       # Test if we are trying to use run time linking, or normal AIX style
6761       # linking.  If -brtl is somewhere in LDFLAGS, we need to do run time
6762       # linking.
6763       aix_use_runtimelinking=no
6764       for ld_flag in $LDFLAGS; do
6765         if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then
6766           aix_use_runtimelinking=yes
6767           break
6768         fi
6769       done
6770       exp_sym_flag='-bexport'
6771       no_entry_flag='-bnoentry'
6772     fi
6773     # -bexpall does not export symbols beginning with underscore (_)
6774     always_export_symbols=yes
6775     if test "$aix_use_runtimelinking" = yes; then
6776       # Warning - without using the other run time loading flags (-brtl),
6777       #           -berok will link without error, but may produce a broken
6778       #           library.
6779       allow_undefined_flag=' $wl}-berok'
6780       # Determine the default libpath from the value encoded in an empty executable.
6781       # If we don't find anything, use the default library path according to the cc manual.
6782       cat >conftest.$ac_ext <<_ACEOF
6783 #line 6783 "configure"
6784 #include "confdefs.h"
6785
6786 int
6787 main ()
6788 {
6789
6790   ;
6791   return 0;
6792 }
6793 _ACEOF
6794 rm -f conftest.$ac_objext conftest$ac_exeext
6795 if { (eval echo "$as_me:6795: \"$ac_link\"") >&5
6796   (eval $ac_link) 2>&5
6797   ac_status=$?
6798   echo "$as_me:6798: \$? = $ac_status" >&5
6799   (exit $ac_status); } &&
6800          { ac_try='test -s conftest$ac_exeext'
6801   { (eval echo "$as_me:6801: \"$ac_try\"") >&5
6802   (eval $ac_try) 2>&5
6803   ac_status=$?
6804   echo "$as_me:6804: \$? = $ac_status" >&5
6805   (exit $ac_status); }; }; then
6806
6807 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`
6808 # Check for a 64-bit object if we didn't find anything.
6809 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`; fi
6810 else
6811   echo "$as_me: failed program was:" >&5
6812 cat conftest.$ac_ext >&5
6813 fi
6814 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6815 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6816
6817       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6818       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"
6819     else
6820       if test "$host_cpu" = ia64; then
6821         if test $with_gnu_ld = no; then
6822           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6823           allow_undefined_flag="-z nodefs"
6824           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6825         fi
6826       else
6827         # Determine the default libpath from the value encoded in an empty executable.
6828         cat >conftest.$ac_ext <<_ACEOF
6829 #line 6829 "configure"
6830 #include "confdefs.h"
6831
6832 int
6833 main ()
6834 {
6835
6836   ;
6837   return 0;
6838 }
6839 _ACEOF
6840 rm -f conftest.$ac_objext conftest$ac_exeext
6841 if { (eval echo "$as_me:6841: \"$ac_link\"") >&5
6842   (eval $ac_link) 2>&5
6843   ac_status=$?
6844   echo "$as_me:6844: \$? = $ac_status" >&5
6845   (exit $ac_status); } &&
6846          { ac_try='test -s conftest$ac_exeext'
6847   { (eval echo "$as_me:6847: \"$ac_try\"") >&5
6848   (eval $ac_try) 2>&5
6849   ac_status=$?
6850   echo "$as_me:6850: \$? = $ac_status" >&5
6851   (exit $ac_status); }; }; then
6852
6853 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`
6854 # Check for a 64-bit object if we didn't find anything.
6855 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`; fi
6856 else
6857   echo "$as_me: failed program was:" >&5
6858 cat conftest.$ac_ext >&5
6859 fi
6860 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6861 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6862
6863         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6864         allow_undefined_flag=' ${wl}-berok'
6865         # -bexpall does not export symbols beginning with underscore (_)
6866         always_export_symbols=yes
6867         # Exported symbols can be pulled into shared objects from archives
6868         whole_archive_flag_spec=' '
6869         archive_cmds_need_lc=yes
6870         # This is similar to how AIX traditionally builds it's shared
6871         # libraries.
6872         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6873       fi
6874     fi
6875     ;;
6876
6877   amigaos*)
6878     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)'
6879     hardcode_libdir_flag_spec='-L$libdir'
6880     hardcode_minus_L=yes
6881     # see comment about different semantics on the GNU ld section
6882     ld_shlibs=no
6883     ;;
6884
6885   bsdi4*)
6886     export_dynamic_flag_spec=-rdynamic
6887     ;;
6888
6889   cygwin* | mingw* | pw32*)
6890     # When not using gcc, we currently assume that we are using
6891     # Microsoft Visual C++.
6892     # hardcode_libdir_flag_spec is actually meaningless, as there is
6893     # no search path for DLLs.
6894     hardcode_libdir_flag_spec=' '
6895     allow_undefined_flag=unsupported
6896     # Tell ltmain to make .lib files, not .a files.
6897     libext=lib
6898     # FIXME: Setting linknames here is a bad hack.
6899     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6900     # The linker will automatically build a .lib file if we build a DLL.
6901     old_archive_From_new_cmds='true'
6902     # FIXME: Should let the user specify the lib program.
6903     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6904     fix_srcfile_path='`cygpath -w "$srcfile"`'
6905     ;;
6906
6907   dgux*)
6908     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6909     hardcode_libdir_flag_spec='-L$libdir'
6910     hardcode_shlibpath_var=no
6911     ;;
6912
6913   freebsd1*)
6914     ld_shlibs=no
6915     ;;
6916
6917   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6918   # support.  Future versions do this automatically, but an explicit c++rt0.o
6919   # does not break anything, and helps significantly (at the cost of a little
6920   # extra space).
6921   freebsd2.2*)
6922     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6923     hardcode_libdir_flag_spec='-R$libdir'
6924     hardcode_direct=yes
6925     hardcode_shlibpath_var=no
6926     ;;
6927
6928   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6929   freebsd2*)
6930     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6931     hardcode_direct=yes
6932     hardcode_minus_L=yes
6933     hardcode_shlibpath_var=no
6934     ;;
6935
6936   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6937   freebsd*)
6938     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6939     hardcode_libdir_flag_spec='-R$libdir'
6940     hardcode_direct=yes
6941     hardcode_shlibpath_var=no
6942     ;;
6943
6944   hpux9* | hpux10* | hpux11*)
6945     if test $with_gcc = yes; then
6946       case $host_os in
6947       hpux9*) archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
6948       *) archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;;
6949       esac
6950     else
6951       case $host_os in
6952       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' ;;
6953       *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6954       esac
6955     fi
6956     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6957     hardcode_libdir_separator=:
6958     hardcode_direct=yes
6959     hardcode_minus_L=yes # Not in the search PATH, but as the default
6960                          # location of the library.
6961     export_dynamic_flag_spec='${wl}-E'
6962     ;;
6963
6964   irix5* | irix6*)
6965     if test "$GCC" = yes; then
6966       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'
6967     else
6968       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'
6969     fi
6970     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6971     hardcode_libdir_separator=:
6972     link_all_deplibs=yes
6973     ;;
6974
6975   netbsd*)
6976     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6977       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6978     else
6979       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6980     fi
6981     hardcode_libdir_flag_spec='-R$libdir'
6982     hardcode_direct=yes
6983     hardcode_shlibpath_var=no
6984     ;;
6985
6986   newsos6)
6987     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
6988     hardcode_direct=yes
6989     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6990     hardcode_libdir_separator=:
6991     hardcode_shlibpath_var=no
6992     ;;
6993
6994   openbsd*)
6995     hardcode_direct=yes
6996     hardcode_shlibpath_var=no
6997
6998     case "$host_os" in
6999       openbsd01.* | openbsd2.0-7 | openbsd2.0-7.*)
7000         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7001         hardcode_libdir_flag_spec='-R$libdir'
7002       ;;
7003       *)
7004         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
7005         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7006         if  "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc" ; then
7007          export_dynamic_flag_spec='${wl}-E'
7008         fi
7009       ;;
7010     esac
7011     ;;
7012
7013   os2*)
7014     hardcode_libdir_flag_spec='-L$libdir'
7015     hardcode_minus_L=yes
7016     allow_undefined_flag=unsupported
7017     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'
7018     old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7019     ;;
7020
7021   osf3*)
7022     if test "$GCC" = yes; then
7023       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7024       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'
7025     else
7026       allow_undefined_flag=' -expect_unresolved \*'
7027       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'
7028     fi
7029     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7030     hardcode_libdir_separator=:
7031     ;;
7032
7033   osf4* | osf5*)        # as osf3* with the addition of -msym flag
7034     if test "$GCC" = yes; then
7035       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7036       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'
7037       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7038     else
7039       allow_undefined_flag=' -expect_unresolved \*'
7040       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'
7041       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7042       $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'
7043
7044       # Both c and cxx compiler support -rpath directly
7045       hardcode_libdir_flag_spec='-rpath $libdir'
7046     fi
7047     hardcode_libdir_separator=:
7048     ;;
7049
7050   sco3.2v5*)
7051     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7052     hardcode_shlibpath_var=no
7053     export_dynamic_flag_spec='${wl}-Bexport'
7054     runpath_var=LD_RUN_PATH
7055     hardcode_runpath_var=yes
7056     ;;
7057
7058   solaris*)
7059     no_undefined_flag=' -z defs'
7060     if test "$with_gcc" = yes; then
7061       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7062       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7063         $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7064     else
7065       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7066       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7067         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7068     fi
7069     hardcode_libdir_flag_spec='-R$libdir'
7070     hardcode_shlibpath_var=no
7071     case $host_os in
7072     solaris2.[0-5] | solaris2.[0-5].*) ;;
7073     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7074       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7075     esac
7076     link_all_deplibs=yes
7077     ;;
7078
7079   sunos4*)
7080     if test "x$host_vendor" = xsequent; then
7081       # Use $CC to link under sequent, because it throws in some extra .o
7082       # files that make .init and .fini sections work.
7083       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7084     else
7085       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7086     fi
7087     hardcode_libdir_flag_spec='-L$libdir'
7088     hardcode_direct=yes
7089     hardcode_minus_L=yes
7090     hardcode_shlibpath_var=no
7091     ;;
7092
7093   sysv4)
7094     if test "x$host_vendor" = xsni; then
7095       archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
7096       hardcode_direct=yes # is this really true???
7097     else
7098       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7099       hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7100     fi
7101     runpath_var='LD_RUN_PATH'
7102     hardcode_shlibpath_var=no
7103     ;;
7104
7105   sysv4.3*)
7106     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7107     hardcode_shlibpath_var=no
7108     export_dynamic_flag_spec='-Bexport'
7109     ;;
7110
7111   sysv4*MP*)
7112     if test -d /usr/nec; then
7113       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7114       hardcode_shlibpath_var=no
7115       runpath_var=LD_RUN_PATH
7116       hardcode_runpath_var=yes
7117       ld_shlibs=yes
7118     fi
7119     ;;
7120
7121   sysv4.2uw2*)
7122     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7123     hardcode_direct=yes
7124     hardcode_minus_L=no
7125     hardcode_shlibpath_var=no
7126     hardcode_runpath_var=yes
7127     runpath_var=LD_RUN_PATH
7128     ;;
7129
7130   sysv5uw7* | unixware7*)
7131     no_undefined_flag='${wl}-z ${wl}text'
7132     if test "$GCC" = yes; then
7133       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7134     else
7135       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7136     fi
7137     runpath_var='LD_RUN_PATH'
7138     hardcode_shlibpath_var=no
7139     ;;
7140
7141   sysv5*)
7142     no_undefined_flag=' -z text'
7143     # $CC -shared without GNU ld will not create a library from C++
7144     # object files and a static libstdc++, better avoid it by now
7145     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7146     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7147                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7148     hardcode_libdir_flag_spec=
7149     hardcode_shlibpath_var=no
7150     runpath_var='LD_RUN_PATH'
7151     ;;
7152
7153   uts4*)
7154     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7155     hardcode_libdir_flag_spec='-L$libdir'
7156     hardcode_shlibpath_var=no
7157     ;;
7158
7159   *)
7160     ld_shlibs=no
7161     ;;
7162   esac
7163 fi
7164 echo "$as_me:7164: result: $ld_shlibs" >&5
7165 echo "${ECHO_T}$ld_shlibs" >&6
7166 test "$ld_shlibs" = no && can_build_shared=no
7167
7168 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7169 if test "$GCC" = yes; then
7170   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7171 fi
7172
7173 #
7174 # Do we need to explicitly link libc?
7175 #
7176 archive_cmds_need_lc=yes
7177 if test "$enable_shared" = yes && test "$GCC" = yes; then
7178   case $archive_cmds in
7179   *'~'*)
7180     # FIXME: we may have to deal with multi-command sequences.
7181     ;;
7182   '$CC '*)
7183     # Test whether the compiler implicitly links with -lc since on some
7184     # systems, -lgcc has to come before -lc. If gcc already passes -lc
7185     # to ld, don't add -lc before -lgcc.
7186     echo "$as_me:7186: checking whether -lc should be explicitly linked in" >&5
7187 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7188     $rm conftest*
7189     echo 'static int dummy;' > conftest.$ac_ext
7190
7191     if { (eval echo "$as_me:7191: \"$ac_compile\"") >&5
7192   (eval $ac_compile) 2>&5
7193   ac_status=$?
7194   echo "$as_me:7194: \$? = $ac_status" >&5
7195   (exit $ac_status); } 2>conftest.err; then
7196       soname=conftest
7197       lib=conftest
7198       libobjs=conftest.$ac_objext
7199       deplibs=
7200       wl=$lt_prog_compiler_wl
7201       compiler_flags=-v
7202       linker_flags=-v
7203       verstring=
7204       output_objdir=.
7205       libname=conftest
7206       lt_save_allow_undefined_flag=$allow_undefined_flag
7207       allow_undefined_flag=
7208       if { (eval echo "$as_me:7208: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7209   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7210   ac_status=$?
7211   echo "$as_me:7211: \$? = $ac_status" >&5
7212   (exit $ac_status); }
7213       then
7214         archive_cmds_need_lc=no
7215       else
7216         archive_cmds_need_lc=yes
7217       fi
7218       allow_undefined_flag=$lt_save_allow_undefined_flag
7219     else
7220       cat conftest.err 1>&5
7221     fi
7222     $rm conftest*
7223     echo "$as_me:7223: result: $archive_cmds_need_lc" >&5
7224 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7225     ;;
7226   esac
7227 fi
7228
7229 echo "$as_me:7229: checking how to hardcode library paths into programs" >&5
7230 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7231 hardcode_action=
7232 if test -n "$hardcode_libdir_flag_spec" || \
7233    test -n "$runpath_var"; then
7234
7235   # We can hardcode non-existant directories.
7236   if test "$hardcode_direct" != no &&
7237      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7238      # have to relink, otherwise we might link with an installed library
7239      # when we should be linking with a yet-to-be-installed one
7240      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7241      test "$hardcode_minus_L" != no; then
7242     # Linking always hardcodes the temporary library directory.
7243     hardcode_action=relink
7244   else
7245     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7246     hardcode_action=immediate
7247   fi
7248 else
7249   # We cannot hardcode anything, or else we can only hardcode existing
7250   # directories.
7251   hardcode_action=unsupported
7252 fi
7253 echo "$as_me:7253: result: $hardcode_action" >&5
7254 echo "${ECHO_T}$hardcode_action" >&6
7255
7256 if test "$hardcode_action" = relink; then
7257   # Fast installation is not supported
7258   enable_fast_install=no
7259 elif test "$shlibpath_overrides_runpath" = yes ||
7260      test "$enable_shared" = no; then
7261   # Fast installation is not necessary
7262   enable_fast_install=needless
7263 fi
7264
7265 striplib=
7266 old_striplib=
7267 echo "$as_me:7267: checking whether stripping libraries is possible" >&5
7268 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7269 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7270   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7271   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7272   echo "$as_me:7272: result: yes" >&5
7273 echo "${ECHO_T}yes" >&6
7274 else
7275   echo "$as_me:7275: result: no" >&5
7276 echo "${ECHO_T}no" >&6
7277 fi
7278
7279 echo "$as_me:7279: checking dynamic linker characteristics" >&5
7280 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7281 library_names_spec=
7282 libname_spec='lib$name'
7283 soname_spec=
7284 postinstall_cmds=
7285 postuninstall_cmds=
7286 finish_cmds=
7287 finish_eval=
7288 shlibpath_var=
7289 shlibpath_overrides_runpath=unknown
7290 version_type=none
7291 dynamic_linker="$host_os ld.so"
7292 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7293 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7294 need_lib_prefix=unknown
7295 hardcode_into_libs=no
7296
7297 # when you set need_version to no, make sure it does not cause -set_version
7298 # flags to be left without arguments
7299 need_version=unknown
7300
7301 case $host_os in
7302 aix3*)
7303   version_type=linux
7304   library_names_spec='${libname}${release}.so$versuffix $libname.a'
7305   shlibpath_var=LIBPATH
7306
7307   # AIX 3 has no versioning support, so we append a major version to the name.
7308   soname_spec='${libname}${release}.so$major'
7309   ;;
7310
7311 aix4* | aix5*)
7312   version_type=linux
7313   if test "$host_cpu" = ia64; then
7314     # AIX 5 supports IA64
7315     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
7316     shlibpath_var=LD_LIBRARY_PATH
7317   else
7318     # With GCC up to 2.95.x, collect2 would create an import file
7319     # for dependence libraries.  The import file would start with
7320     # the line `#! .'.  This would cause the generated library to
7321     # depend on `.', always an invalid library.  This was fixed in
7322     # development snapshots of GCC prior to 3.0.
7323     case $host_os in
7324        aix4 | aix4.[01] | aix4.[01].*)
7325       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7326            echo ' yes '
7327            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7328         :
7329       else
7330         can_build_shared=no
7331       fi
7332       ;;
7333     esac
7334     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7335     # soname into executable. Probably we can add versioning support to
7336     # collect2, so additional links can be useful in future.
7337     if test "$aix_use_runtimelinking" = yes; then
7338       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7339       # instead of lib<name>.a to let people know that these are not
7340       # typical AIX shared libraries.
7341       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7342     else
7343       # We preserve .a as extension for shared libraries through AIX4.2
7344       # and later when we are not doing run time linking.
7345       library_names_spec='${libname}${release}.a $libname.a'
7346       soname_spec='${libname}${release}.so$major'
7347     fi
7348     shlibpath_var=LIBPATH
7349     deplibs_check_method=pass_all
7350   fi
7351   ;;
7352
7353 amigaos*)
7354   library_names_spec='$libname.ixlibrary $libname.a'
7355   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7356   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'
7357   ;;
7358
7359 beos*)
7360   library_names_spec='${libname}.so'
7361   dynamic_linker="$host_os ld.so"
7362   shlibpath_var=LIBRARY_PATH
7363   ;;
7364
7365 bsdi4*)
7366   version_type=linux
7367   need_version=no
7368   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7369   soname_spec='${libname}${release}.so$major'
7370   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7371   shlibpath_var=LD_LIBRARY_PATH
7372   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7373   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7374   # the default ld.so.conf also contains /usr/contrib/lib and
7375   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7376   # libtool to hard-code these into programs
7377   ;;
7378
7379 cygwin* | mingw* | pw32*)
7380   version_type=windows
7381   need_version=no
7382   need_lib_prefix=no
7383   case $GCC,$host_os in
7384   yes,cygwin*)
7385     library_names_spec='$libname.dll.a'
7386     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7387     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
7388       dldir=$destdir/`dirname \$dlpath`~
7389       test -d \$dldir || mkdir -p \$dldir~
7390       $install_prog .libs/$dlname \$dldir/$dlname'
7391     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
7392       dlpath=$dir/\$dldll~
7393        $rm \$dlpath'
7394     ;;
7395   yes,mingw*)
7396     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7397     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
7398     ;;
7399   yes,pw32*)
7400     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
7401     ;;
7402   *)
7403     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
7404     ;;
7405   esac
7406   dynamic_linker='Win32 ld.exe'
7407   # FIXME: first we should search . and the directory the executable is in
7408   shlibpath_var=PATH
7409   ;;
7410
7411 darwin* | rhapsody*)
7412   dynamic_linker="$host_os dyld"
7413   version_type=darwin
7414   need_lib_prefix=no
7415   need_version=no
7416   # FIXME: Relying on posixy $() will cause problems for
7417   #        cross-compilation, but unfortunately the echo tests do not
7418   #        yet detect zsh echo's removal of \ escapes.
7419   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)'
7420   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
7421   shlibpath_overrides_runpath=yes
7422   shlibpath_var=DYLD_LIBRARY_PATH
7423   ;;
7424
7425 dgux*)
7426   version_type=linux
7427   need_lib_prefix=no
7428   need_version=no
7429   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7430   soname_spec='${libname}${release}.so$major'
7431   shlibpath_var=LD_LIBRARY_PATH
7432   ;;
7433
7434 freebsd1*)
7435   dynamic_linker=no
7436   ;;
7437
7438 freebsd*)
7439   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7440   version_type=freebsd-$objformat
7441   case $version_type in
7442     freebsd-elf*)
7443       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7444       need_version=no
7445       need_lib_prefix=no
7446       ;;
7447     freebsd-*)
7448       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
7449       need_version=yes
7450       ;;
7451   esac
7452   shlibpath_var=LD_LIBRARY_PATH
7453   case $host_os in
7454   freebsd2*)
7455     shlibpath_overrides_runpath=yes
7456     ;;
7457   freebsd3.01* | freebsdelf3.01*)
7458     shlibpath_overrides_runpath=yes
7459     hardcode_into_libs=yes
7460     ;;
7461   *) # from 3.2 on
7462     shlibpath_overrides_runpath=no
7463     hardcode_into_libs=yes
7464     ;;
7465   esac
7466   ;;
7467
7468 gnu*)
7469   version_type=linux
7470   need_lib_prefix=no
7471   need_version=no
7472   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
7473   soname_spec='${libname}${release}.so$major'
7474   shlibpath_var=LD_LIBRARY_PATH
7475   hardcode_into_libs=yes
7476   ;;
7477
7478 hpux9* | hpux10* | hpux11*)
7479   # Give a soname corresponding to the major version so that dld.sl refuses to
7480   # link against other versions.
7481   dynamic_linker="$host_os dld.sl"
7482   version_type=sunos
7483   need_lib_prefix=no
7484   need_version=no
7485   shlibpath_var=SHLIB_PATH
7486   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7487   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
7488   soname_spec='${libname}${release}.sl$major'
7489   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7490   postinstall_cmds='chmod 555 $lib'
7491   ;;
7492
7493 irix5* | irix6*)
7494   version_type=irix
7495   need_lib_prefix=no
7496   need_version=no
7497   soname_spec='${libname}${release}.so.$major'
7498   library_names_spec='${libname}${release}.so.$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
7499   case $host_os in
7500   irix5*)
7501     libsuff= shlibsuff=
7502     ;;
7503   *)
7504     case $LD in # libtool.m4 will add one of these switches to LD
7505     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
7506     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
7507     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
7508     *) libsuff= shlibsuff= libmagic=never-match;;
7509     esac
7510     ;;
7511   esac
7512   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7513   shlibpath_overrides_runpath=no
7514   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7515   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7516   ;;
7517
7518 # No shared lib support for Linux oldld, aout, or coff.
7519 linux*oldld* | linux*aout* | linux*coff*)
7520   dynamic_linker=no
7521   ;;
7522
7523 # This must be Linux ELF.
7524 linux*)
7525   version_type=linux
7526   need_lib_prefix=no
7527   need_version=no
7528   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7529   soname_spec='${libname}${release}.so$major'
7530   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7531   shlibpath_var=LD_LIBRARY_PATH
7532   shlibpath_overrides_runpath=no
7533   # This implies no fast_install, which is unacceptable.
7534   # Some rework will be needed to allow for fast_install
7535   # before this can be enabled.
7536   hardcode_into_libs=yes
7537
7538   # We used to test for /lib/ld.so.1 and disable shared libraries on
7539   # powerpc, because MkLinux only supported shared libraries with the
7540   # GNU dynamic linker.  Since this was broken with cross compilers,
7541   # most powerpc-linux boxes support dynamic linking these days and
7542   # people can always --disable-shared, the test was removed, and we
7543   # assume the GNU/Linux dynamic linker is in use.
7544   dynamic_linker='GNU/Linux ld.so'
7545   ;;
7546
7547 netbsd*)
7548   version_type=sunos
7549   need_lib_prefix=no
7550   need_version=no
7551   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7552     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7553     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7554     dynamic_linker='NetBSD (a.out) ld.so'
7555   else
7556     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
7557     soname_spec='${libname}${release}.so$major'
7558     dynamic_linker='NetBSD ld.elf_so'
7559   fi
7560   shlibpath_var=LD_LIBRARY_PATH
7561   shlibpath_overrides_runpath=yes
7562   hardcode_into_libs=yes
7563   ;;
7564
7565 newsos6)
7566   version_type=linux
7567   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7568   shlibpath_var=LD_LIBRARY_PATH
7569   shlibpath_overrides_runpath=yes
7570   ;;
7571
7572 openbsd*)
7573   version_type=sunos
7574   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7575   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7576   shlibpath_var=LD_LIBRARY_PATH
7577   file_magic_cmd=/usr/bin/file
7578   file_magic_test_file=`echo /usr/lib/libc.so.*`
7579   if  "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc" ; then
7580     deplibs_check_method='file_magic ELF 0-90-9*-bit LMSB shared object'
7581   else
7582     deplibs_check_method='file_magic OpenBSD.* shared library'
7583   fi
7584   ;;
7585
7586 os2*)
7587   libname_spec='$name'
7588   need_lib_prefix=no
7589   library_names_spec='$libname.dll $libname.a'
7590   dynamic_linker='OS/2 ld.exe'
7591   shlibpath_var=LIBPATH
7592   ;;
7593
7594 osf3* | osf4* | osf5*)
7595   version_type=osf
7596   need_version=no
7597   soname_spec='${libname}${release}.so'
7598   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7599   shlibpath_var=LD_LIBRARY_PATH
7600   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7601   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7602   ;;
7603
7604 sco3.2v5*)
7605   version_type=osf
7606   soname_spec='${libname}${release}.so$major'
7607   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7608   shlibpath_var=LD_LIBRARY_PATH
7609   ;;
7610
7611 solaris*)
7612   version_type=linux
7613   need_lib_prefix=no
7614   need_version=no
7615   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7616   soname_spec='${libname}${release}.so$major'
7617   shlibpath_var=LD_LIBRARY_PATH
7618   shlibpath_overrides_runpath=yes
7619   hardcode_into_libs=yes
7620   # ldd complains unless libraries are executable
7621   postinstall_cmds='chmod +x $lib'
7622   ;;
7623
7624 sunos4*)
7625   version_type=sunos
7626   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7627   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7628   shlibpath_var=LD_LIBRARY_PATH
7629   shlibpath_overrides_runpath=yes
7630   if test "$with_gnu_ld" = yes; then
7631     need_lib_prefix=no
7632   fi
7633   need_version=yes
7634   ;;
7635
7636 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7637   version_type=linux
7638   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7639   soname_spec='${libname}${release}.so$major'
7640   shlibpath_var=LD_LIBRARY_PATH
7641   case $host_vendor in
7642     sni)
7643       shlibpath_overrides_runpath=no
7644       ;;
7645     motorola)
7646       need_lib_prefix=no
7647       need_version=no
7648       shlibpath_overrides_runpath=no
7649       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7650       ;;
7651   esac
7652   ;;
7653
7654 sysv4*MP*)
7655   if test -d /usr/nec ;then
7656     version_type=linux
7657     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7658     soname_spec='$libname.so.$major'
7659     shlibpath_var=LD_LIBRARY_PATH
7660   fi
7661   ;;
7662
7663 uts4*)
7664   version_type=linux
7665   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7666   soname_spec='${libname}${release}.so$major'
7667   shlibpath_var=LD_LIBRARY_PATH
7668   ;;
7669
7670 *)
7671   dynamic_linker=no
7672   ;;
7673 esac
7674 echo "$as_me:7674: result: $dynamic_linker" >&5
7675 echo "${ECHO_T}$dynamic_linker" >&6
7676 test "$dynamic_linker" = no && can_build_shared=no
7677
7678 if test "x$enable_dlopen" != xyes; then
7679   enable_dlopen=unknown
7680   enable_dlopen_self=unknown
7681   enable_dlopen_self_static=unknown
7682 else
7683   lt_cv_dlopen=no
7684   lt_cv_dlopen_libs=
7685
7686   case $host_os in
7687   beos*)
7688     lt_cv_dlopen="load_add_on"
7689     lt_cv_dlopen_libs=
7690     lt_cv_dlopen_self=yes
7691     ;;
7692
7693   cygwin* | mingw* | pw32*)
7694     lt_cv_dlopen="LoadLibrary"
7695     lt_cv_dlopen_libs=
7696    ;;
7697
7698   *)
7699     echo "$as_me:7699: checking for shl_load" >&5
7700 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7701 if test "${ac_cv_func_shl_load+set}" = set; then
7702   echo $ECHO_N "(cached) $ECHO_C" >&6
7703 else
7704   cat >conftest.$ac_ext <<_ACEOF
7705 #line 7705 "configure"
7706 #include "confdefs.h"
7707 /* System header to define __stub macros and hopefully few prototypes,
7708     which can conflict with char shl_load (); below.  */
7709 #include <assert.h>
7710 /* Override any gcc2 internal prototype to avoid an error.  */
7711 #ifdef __cplusplus
7712 extern "C"
7713 #endif
7714 /* We use char because int might match the return type of a gcc2
7715    builtin and then its argument prototype would still apply.  */
7716 char shl_load ();
7717 char (*f) ();
7718
7719 int
7720 main ()
7721 {
7722 /* The GNU C library defines this for functions which it implements
7723     to always fail with ENOSYS.  Some functions are actually named
7724     something starting with __ and the normal name is an alias.  */
7725 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7726 choke me
7727 #else
7728 f = shl_load;
7729 #endif
7730
7731   ;
7732   return 0;
7733 }
7734 _ACEOF
7735 rm -f conftest.$ac_objext conftest$ac_exeext
7736 if { (eval echo "$as_me:7736: \"$ac_link\"") >&5
7737   (eval $ac_link) 2>&5
7738   ac_status=$?
7739   echo "$as_me:7739: \$? = $ac_status" >&5
7740   (exit $ac_status); } &&
7741          { ac_try='test -s conftest$ac_exeext'
7742   { (eval echo "$as_me:7742: \"$ac_try\"") >&5
7743   (eval $ac_try) 2>&5
7744   ac_status=$?
7745   echo "$as_me:7745: \$? = $ac_status" >&5
7746   (exit $ac_status); }; }; then
7747   ac_cv_func_shl_load=yes
7748 else
7749   echo "$as_me: failed program was:" >&5
7750 cat conftest.$ac_ext >&5
7751 ac_cv_func_shl_load=no
7752 fi
7753 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7754 fi
7755 echo "$as_me:7755: result: $ac_cv_func_shl_load" >&5
7756 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7757 if test $ac_cv_func_shl_load = yes; then
7758   lt_cv_dlopen="shl_load"
7759 else
7760   echo "$as_me:7760: checking for shl_load in -ldld" >&5
7761 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7762 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7763   echo $ECHO_N "(cached) $ECHO_C" >&6
7764 else
7765   ac_check_lib_save_LIBS=$LIBS
7766 LIBS="-ldld  $LIBS"
7767 cat >conftest.$ac_ext <<_ACEOF
7768 #line 7768 "configure"
7769 #include "confdefs.h"
7770
7771 /* Override any gcc2 internal prototype to avoid an error.  */
7772 #ifdef __cplusplus
7773 extern "C"
7774 #endif
7775 /* We use char because int might match the return type of a gcc2
7776    builtin and then its argument prototype would still apply.  */
7777 char shl_load ();
7778 int
7779 main ()
7780 {
7781 shl_load ();
7782   ;
7783   return 0;
7784 }
7785 _ACEOF
7786 rm -f conftest.$ac_objext conftest$ac_exeext
7787 if { (eval echo "$as_me:7787: \"$ac_link\"") >&5
7788   (eval $ac_link) 2>&5
7789   ac_status=$?
7790   echo "$as_me:7790: \$? = $ac_status" >&5
7791   (exit $ac_status); } &&
7792          { ac_try='test -s conftest$ac_exeext'
7793   { (eval echo "$as_me:7793: \"$ac_try\"") >&5
7794   (eval $ac_try) 2>&5
7795   ac_status=$?
7796   echo "$as_me:7796: \$? = $ac_status" >&5
7797   (exit $ac_status); }; }; then
7798   ac_cv_lib_dld_shl_load=yes
7799 else
7800   echo "$as_me: failed program was:" >&5
7801 cat conftest.$ac_ext >&5
7802 ac_cv_lib_dld_shl_load=no
7803 fi
7804 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7805 LIBS=$ac_check_lib_save_LIBS
7806 fi
7807 echo "$as_me:7807: result: $ac_cv_lib_dld_shl_load" >&5
7808 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7809 if test $ac_cv_lib_dld_shl_load = yes; then
7810   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7811 else
7812   echo "$as_me:7812: checking for dlopen in -ldl" >&5
7813 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7814 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7815   echo $ECHO_N "(cached) $ECHO_C" >&6
7816 else
7817   ac_check_lib_save_LIBS=$LIBS
7818 LIBS="-ldl  $LIBS"
7819 cat >conftest.$ac_ext <<_ACEOF
7820 #line 7820 "configure"
7821 #include "confdefs.h"
7822
7823 /* Override any gcc2 internal prototype to avoid an error.  */
7824 #ifdef __cplusplus
7825 extern "C"
7826 #endif
7827 /* We use char because int might match the return type of a gcc2
7828    builtin and then its argument prototype would still apply.  */
7829 char dlopen ();
7830 int
7831 main ()
7832 {
7833 dlopen ();
7834   ;
7835   return 0;
7836 }
7837 _ACEOF
7838 rm -f conftest.$ac_objext conftest$ac_exeext
7839 if { (eval echo "$as_me:7839: \"$ac_link\"") >&5
7840   (eval $ac_link) 2>&5
7841   ac_status=$?
7842   echo "$as_me:7842: \$? = $ac_status" >&5
7843   (exit $ac_status); } &&
7844          { ac_try='test -s conftest$ac_exeext'
7845   { (eval echo "$as_me:7845: \"$ac_try\"") >&5
7846   (eval $ac_try) 2>&5
7847   ac_status=$?
7848   echo "$as_me:7848: \$? = $ac_status" >&5
7849   (exit $ac_status); }; }; then
7850   ac_cv_lib_dl_dlopen=yes
7851 else
7852   echo "$as_me: failed program was:" >&5
7853 cat conftest.$ac_ext >&5
7854 ac_cv_lib_dl_dlopen=no
7855 fi
7856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7857 LIBS=$ac_check_lib_save_LIBS
7858 fi
7859 echo "$as_me:7859: result: $ac_cv_lib_dl_dlopen" >&5
7860 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7861 if test $ac_cv_lib_dl_dlopen = yes; then
7862   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7863 else
7864   echo "$as_me:7864: checking for dlopen" >&5
7865 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7866 if test "${ac_cv_func_dlopen+set}" = set; then
7867   echo $ECHO_N "(cached) $ECHO_C" >&6
7868 else
7869   cat >conftest.$ac_ext <<_ACEOF
7870 #line 7870 "configure"
7871 #include "confdefs.h"
7872 /* System header to define __stub macros and hopefully few prototypes,
7873     which can conflict with char dlopen (); below.  */
7874 #include <assert.h>
7875 /* Override any gcc2 internal prototype to avoid an error.  */
7876 #ifdef __cplusplus
7877 extern "C"
7878 #endif
7879 /* We use char because int might match the return type of a gcc2
7880    builtin and then its argument prototype would still apply.  */
7881 char dlopen ();
7882 char (*f) ();
7883
7884 int
7885 main ()
7886 {
7887 /* The GNU C library defines this for functions which it implements
7888     to always fail with ENOSYS.  Some functions are actually named
7889     something starting with __ and the normal name is an alias.  */
7890 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7891 choke me
7892 #else
7893 f = dlopen;
7894 #endif
7895
7896   ;
7897   return 0;
7898 }
7899 _ACEOF
7900 rm -f conftest.$ac_objext conftest$ac_exeext
7901 if { (eval echo "$as_me:7901: \"$ac_link\"") >&5
7902   (eval $ac_link) 2>&5
7903   ac_status=$?
7904   echo "$as_me:7904: \$? = $ac_status" >&5
7905   (exit $ac_status); } &&
7906          { ac_try='test -s conftest$ac_exeext'
7907   { (eval echo "$as_me:7907: \"$ac_try\"") >&5
7908   (eval $ac_try) 2>&5
7909   ac_status=$?
7910   echo "$as_me:7910: \$? = $ac_status" >&5
7911   (exit $ac_status); }; }; then
7912   ac_cv_func_dlopen=yes
7913 else
7914   echo "$as_me: failed program was:" >&5
7915 cat conftest.$ac_ext >&5
7916 ac_cv_func_dlopen=no
7917 fi
7918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7919 fi
7920 echo "$as_me:7920: result: $ac_cv_func_dlopen" >&5
7921 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7922 if test $ac_cv_func_dlopen = yes; then
7923   lt_cv_dlopen="dlopen"
7924 else
7925   echo "$as_me:7925: checking for dlopen in -lsvld" >&5
7926 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7927 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7928   echo $ECHO_N "(cached) $ECHO_C" >&6
7929 else
7930   ac_check_lib_save_LIBS=$LIBS
7931 LIBS="-lsvld  $LIBS"
7932 cat >conftest.$ac_ext <<_ACEOF
7933 #line 7933 "configure"
7934 #include "confdefs.h"
7935
7936 /* Override any gcc2 internal prototype to avoid an error.  */
7937 #ifdef __cplusplus
7938 extern "C"
7939 #endif
7940 /* We use char because int might match the return type of a gcc2
7941    builtin and then its argument prototype would still apply.  */
7942 char dlopen ();
7943 int
7944 main ()
7945 {
7946 dlopen ();
7947   ;
7948   return 0;
7949 }
7950 _ACEOF
7951 rm -f conftest.$ac_objext conftest$ac_exeext
7952 if { (eval echo "$as_me:7952: \"$ac_link\"") >&5
7953   (eval $ac_link) 2>&5
7954   ac_status=$?
7955   echo "$as_me:7955: \$? = $ac_status" >&5
7956   (exit $ac_status); } &&
7957          { ac_try='test -s conftest$ac_exeext'
7958   { (eval echo "$as_me:7958: \"$ac_try\"") >&5
7959   (eval $ac_try) 2>&5
7960   ac_status=$?
7961   echo "$as_me:7961: \$? = $ac_status" >&5
7962   (exit $ac_status); }; }; then
7963   ac_cv_lib_svld_dlopen=yes
7964 else
7965   echo "$as_me: failed program was:" >&5
7966 cat conftest.$ac_ext >&5
7967 ac_cv_lib_svld_dlopen=no
7968 fi
7969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7970 LIBS=$ac_check_lib_save_LIBS
7971 fi
7972 echo "$as_me:7972: result: $ac_cv_lib_svld_dlopen" >&5
7973 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7974 if test $ac_cv_lib_svld_dlopen = yes; then
7975   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7976 fi
7977
7978 fi
7979
7980 fi
7981
7982 fi
7983
7984 fi
7985
7986     ;;
7987   esac
7988
7989   if test "x$lt_cv_dlopen" != xno; then
7990     enable_dlopen=yes
7991   else
7992     enable_dlopen=no
7993   fi
7994
7995   case $lt_cv_dlopen in
7996   dlopen)
7997     save_CPPFLAGS="$CPPFLAGS"
7998     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7999
8000     save_LDFLAGS="$LDFLAGS"
8001     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8002
8003     save_LIBS="$LIBS"
8004     LIBS="$lt_cv_dlopen_libs $LIBS"
8005
8006     echo "$as_me:8006: checking whether a program can dlopen itself" >&5
8007 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8008 if test "${lt_cv_dlopen_self+set}" = set; then
8009   echo $ECHO_N "(cached) $ECHO_C" >&6
8010 else
8011           if test "$cross_compiling" = yes; then :
8012   lt_cv_dlopen_self=cross
8013 else
8014   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8015   lt_status=$lt_dlunknown
8016   cat > conftest.$ac_ext <<EOF
8017 #line 8017 "configure"
8018 #include "confdefs.h"
8019
8020 #if HAVE_DLFCN_H
8021 #include <dlfcn.h>
8022 #endif
8023
8024 #include <stdio.h>
8025
8026 #ifdef RTLD_GLOBAL
8027 #  define LT_DLGLOBAL           RTLD_GLOBAL
8028 #else
8029 #  ifdef DL_GLOBAL
8030 #    define LT_DLGLOBAL         DL_GLOBAL
8031 #  else
8032 #    define LT_DLGLOBAL         0
8033 #  endif
8034 #endif
8035
8036 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8037    find out it does not work in some platform. */
8038 #ifndef LT_DLLAZY_OR_NOW
8039 #  ifdef RTLD_LAZY
8040 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8041 #  else
8042 #    ifdef DL_LAZY
8043 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8044 #    else
8045 #      ifdef RTLD_NOW
8046 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8047 #      else
8048 #        ifdef DL_NOW
8049 #          define LT_DLLAZY_OR_NOW      DL_NOW
8050 #        else
8051 #          define LT_DLLAZY_OR_NOW      0
8052 #        endif
8053 #      endif
8054 #    endif
8055 #  endif
8056 #endif
8057
8058 #ifdef __cplusplus
8059 extern "C" void exit (int);
8060 #endif
8061
8062 void fnord() { int i=42;}
8063 int main ()
8064 {
8065   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8066   int status = $lt_dlunknown;
8067
8068   if (self)
8069     {
8070       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8071       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8072       /* dlclose (self); */
8073     }
8074
8075     exit (status);
8076 }
8077 EOF
8078   if { (eval echo "$as_me:8078: \"$ac_link\"") >&5
8079   (eval $ac_link) 2>&5
8080   ac_status=$?
8081   echo "$as_me:8081: \$? = $ac_status" >&5
8082   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8083     (./conftest; exit; ) 2>/dev/null
8084     lt_status=$?
8085     case x$lt_status in
8086       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8087       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8088       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8089     esac
8090   else :
8091     # compilation failed
8092     lt_cv_dlopen_self=no
8093   fi
8094 fi
8095 rm -fr conftest*
8096
8097 fi
8098 echo "$as_me:8098: result: $lt_cv_dlopen_self" >&5
8099 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8100
8101     if test "x$lt_cv_dlopen_self" = xyes; then
8102       LDFLAGS="$LDFLAGS $link_static_flag"
8103       echo "$as_me:8103: checking whether a statically linked program can dlopen itself" >&5
8104 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8105 if test "${lt_cv_dlopen_self_static+set}" = set; then
8106   echo $ECHO_N "(cached) $ECHO_C" >&6
8107 else
8108           if test "$cross_compiling" = yes; then :
8109   lt_cv_dlopen_self_static=cross
8110 else
8111   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8112   lt_status=$lt_dlunknown
8113   cat > conftest.$ac_ext <<EOF
8114 #line 8114 "configure"
8115 #include "confdefs.h"
8116
8117 #if HAVE_DLFCN_H
8118 #include <dlfcn.h>
8119 #endif
8120
8121 #include <stdio.h>
8122
8123 #ifdef RTLD_GLOBAL
8124 #  define LT_DLGLOBAL           RTLD_GLOBAL
8125 #else
8126 #  ifdef DL_GLOBAL
8127 #    define LT_DLGLOBAL         DL_GLOBAL
8128 #  else
8129 #    define LT_DLGLOBAL         0
8130 #  endif
8131 #endif
8132
8133 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8134    find out it does not work in some platform. */
8135 #ifndef LT_DLLAZY_OR_NOW
8136 #  ifdef RTLD_LAZY
8137 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8138 #  else
8139 #    ifdef DL_LAZY
8140 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8141 #    else
8142 #      ifdef RTLD_NOW
8143 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8144 #      else
8145 #        ifdef DL_NOW
8146 #          define LT_DLLAZY_OR_NOW      DL_NOW
8147 #        else
8148 #          define LT_DLLAZY_OR_NOW      0
8149 #        endif
8150 #      endif
8151 #    endif
8152 #  endif
8153 #endif
8154
8155 #ifdef __cplusplus
8156 extern "C" void exit (int);
8157 #endif
8158
8159 void fnord() { int i=42;}
8160 int main ()
8161 {
8162   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8163   int status = $lt_dlunknown;
8164
8165   if (self)
8166     {
8167       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8168       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8169       /* dlclose (self); */
8170     }
8171
8172     exit (status);
8173 }
8174 EOF
8175   if { (eval echo "$as_me:8175: \"$ac_link\"") >&5
8176   (eval $ac_link) 2>&5
8177   ac_status=$?
8178   echo "$as_me:8178: \$? = $ac_status" >&5
8179   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8180     (./conftest; exit; ) 2>/dev/null
8181     lt_status=$?
8182     case x$lt_status in
8183       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8184       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8185       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8186     esac
8187   else :
8188     # compilation failed
8189     lt_cv_dlopen_self_static=no
8190   fi
8191 fi
8192 rm -fr conftest*
8193
8194 fi
8195 echo "$as_me:8195: result: $lt_cv_dlopen_self_static" >&5
8196 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8197     fi
8198
8199     CPPFLAGS="$save_CPPFLAGS"
8200     LDFLAGS="$save_LDFLAGS"
8201     LIBS="$save_LIBS"
8202     ;;
8203   esac
8204
8205   case $lt_cv_dlopen_self in
8206   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8207   *) enable_dlopen_self=unknown ;;
8208   esac
8209
8210   case $lt_cv_dlopen_self_static in
8211   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8212   *) enable_dlopen_self_static=unknown ;;
8213   esac
8214 fi
8215
8216 # Report which librarie types wil actually be built
8217 echo "$as_me:8217: checking if libtool supports shared libraries" >&5
8218 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8219 echo "$as_me:8219: result: $can_build_shared" >&5
8220 echo "${ECHO_T}$can_build_shared" >&6
8221
8222 echo "$as_me:8222: checking whether to build shared libraries" >&5
8223 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8224 test "$can_build_shared" = "no" && enable_shared=no
8225
8226 # On AIX, shared libraries and static libraries use the same namespace, and
8227 # are all built from PIC.
8228 case "$host_os" in
8229 aix3*)
8230   test "$enable_shared" = yes && enable_static=no
8231   if test -n "$RANLIB"; then
8232     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8233     postinstall_cmds='$RANLIB $lib'
8234   fi
8235   ;;
8236
8237 aix4*)
8238   test "$enable_shared" = yes && enable_static=no
8239   ;;
8240 esac
8241 echo "$as_me:8241: result: $enable_shared" >&5
8242 echo "${ECHO_T}$enable_shared" >&6
8243
8244 echo "$as_me:8244: checking whether to build static libraries" >&5
8245 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8246 # Make sure either enable_shared or enable_static is yes.
8247 test "$enable_shared" = yes || enable_static=yes
8248 echo "$as_me:8248: result: $enable_static" >&5
8249 echo "${ECHO_T}$enable_static" >&6
8250
8251 # The else clause should only fire when bootstrapping the
8252 # libtool distribution, otherwise you forgot to ship ltmain.sh
8253 # with your package, and you will get complaints that there are
8254 # no rules to generate ltmain.sh.
8255 if test -f "$ltmain"; then
8256   # Now quote all the things that may contain metacharacters while being
8257   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8258   # variables and quote the copies for generation of the libtool script.
8259   for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S NM SHELL \
8260     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8261     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8262     deplibs_check_method reload_flag reload_cmds need_locks \
8263     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8264     lt_cv_sys_global_symbol_to_c_name_address \
8265     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8266     old_postinstall_cmds old_postuninstall_cmds \
8267     compiler \
8268     CC \
8269     LD \
8270     lt_prog_compiler_wl \
8271     lt_prog_compiler_pic \
8272     lt_prog_compiler_static \
8273     lt_prog_compiler_no_builtin_flag \
8274     export_dynamic_flag_spec \
8275     thread_safe_flag_spec \
8276     whole_archive_flag_spec \
8277     old_archive_cmds \
8278     old_archive_from_new_cmds \
8279     predep_objects \
8280     postdep_objects \
8281     predeps \
8282     postdeps \
8283     compiler_lib_search_path \
8284     archive_cmds \
8285     archive_expsym_cmds \
8286     postinstall_cmds \
8287     postuninstall_cmds \
8288     old_archive_from_expsyms_cmds \
8289     allow_undefined_flag \
8290     no_undefined_flag \
8291     export_symbols_cmds \
8292     hardcode_libdir_flag_spec \
8293     hardcode_libdir_separator \
8294     lt_cv_prog_compiler_c_o \
8295     exclude_expsyms \
8296     include_expsyms; do
8297
8298     case $var in
8299     old_archive_cmds | \
8300     old_archive_from_new_cmds | \
8301     archive_cmds | \
8302     archive_expsym_cmds | \
8303     old_archive_from_expsyms_cmds | \
8304     export_symbols_cmds | \
8305     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8306     postinstall_cmds | postuninstall_cmds | \
8307     old_postinstall_cmds | old_postuninstall_cmds | \
8308     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8309       # Double-quote double-evaled strings.
8310       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8311       ;;
8312     *)
8313       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8314       ;;
8315     esac
8316   done
8317
8318   case $lt_echo in
8319   *'\$0 --fallback-echo"')
8320     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8321     ;;
8322   esac
8323
8324 cfgfile="${ofile}T"
8325   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8326   $rm -f "$cfgfile"
8327   { echo "$as_me:8327: creating $ofile" >&5
8328 echo "$as_me: creating $ofile" >&6;}
8329
8330   cat <<__EOF__ >> "$cfgfile"
8331 #! $SHELL
8332
8333 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8334 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8335 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8336 #
8337 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8338 # Free Software Foundation, Inc.
8339 #
8340 # This file is part of GNU Libtool:
8341 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8342 #
8343 # This program is free software; you can redistribute it and/or modify
8344 # it under the terms of the GNU General Public License as published by
8345 # the Free Software Foundation; either version 2 of the License, or
8346 # (at your option) any later version.
8347 #
8348 # This program is distributed in the hope that it will be useful, but
8349 # WITHOUT ANY WARRANTY; without even the implied warranty of
8350 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8351 # General Public License for more details.
8352 #
8353 # You should have received a copy of the GNU General Public License
8354 # along with this program; if not, write to the Free Software
8355 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8356 #
8357 # As a special exception to the GNU General Public License, if you
8358 # distribute this file as part of a program that contains a
8359 # configuration script generated by Autoconf, you may include it under
8360 # the same distribution terms that you use for the rest of that program.
8361
8362 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8363 Xsed="sed -e s/^X//"
8364
8365 # The HP-UX ksh and POSIX shell print the target directory to stdout
8366 # if CDPATH is set.
8367 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8368
8369 # The names of the tagged configurations supported by this script.
8370 available_tags=
8371
8372 # ### BEGIN LIBTOOL CONFIG
8373
8374 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8375
8376 # Shell to use when invoking shell scripts.
8377 SHELL=$lt_SHELL
8378
8379 # Whether or not to build shared libraries.
8380 build_libtool_libs=$enable_shared
8381
8382 # Whether or not to build static libraries.
8383 build_old_libs=$enable_static
8384
8385 # Whether or not to add -lc for building shared libraries.
8386 build_libtool_need_lc=$archive_cmds_need_lc
8387
8388 # Whether or not to optimize for fast installation.
8389 fast_install=$enable_fast_install
8390
8391 # The host system.
8392 host_alias=$host_alias
8393 host=$host
8394
8395 # An echo program that does not interpret backslashes.
8396 echo=$lt_echo
8397
8398 # The archiver.
8399 AR=$lt_AR
8400 AR_FLAGS=$lt_AR_FLAGS
8401
8402 # A C compiler.
8403 LTCC=$LTCC
8404
8405 # A language-specific compiler.
8406 CC=$lt_compiler
8407
8408 # Is the compiler the GNU C compiler?
8409 with_gcc=$GCC
8410
8411 # The linker used to build libraries.
8412 LD=$lt_LD
8413
8414 # Whether we need hard or soft links.
8415 LN_S=$lt_LN_S
8416
8417 # A BSD-compatible nm program.
8418 NM=$lt_NM
8419
8420 # A symbol stripping program
8421 STRIP=$STRIP
8422
8423 # Used to examine libraries when file_magic_cmd begins "file"
8424 MAGIC_CMD=$MAGIC_CMD
8425
8426 # Used on cygwin: DLL creation program.
8427 DLLTOOL="$DLLTOOL"
8428
8429 # Used on cygwin: object dumper.
8430 OBJDUMP="$OBJDUMP"
8431
8432 # Used on cygwin: assembler.
8433 AS="$AS"
8434
8435 # The name of the directory that contains temporary libtool files.
8436 objdir=$objdir
8437
8438 # How to create reloadable object files.
8439 reload_flag=$lt_reload_flag
8440 reload_cmds=$lt_reload_cmds
8441
8442 # How to pass a linker flag through the compiler.
8443 wl=$lt_lt_prog_compiler_wl
8444
8445 # Object file suffix (normally "o").
8446 objext="$ac_objext"
8447
8448 # Old archive suffix (normally "a").
8449 libext="$libext"
8450
8451 # Executable file suffix (normally "").
8452 exeext="$exeext"
8453
8454 # Additional compiler flags for building library objects.
8455 pic_flag=$lt_lt_prog_compiler_pic
8456 pic_mode=$pic_mode
8457
8458 # What is the maximum length of a command?
8459 max_cmd_len=$lt_cv_sys_max_cmd_len
8460
8461 # Does compiler simultaneously support -c and -o options?
8462 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8463
8464 # Must we lock files when doing compilation ?
8465 need_locks=$lt_need_locks
8466
8467 # Do we need the lib prefix for modules?
8468 need_lib_prefix=$need_lib_prefix
8469
8470 # Do we need a version for libraries?
8471 need_version=$need_version
8472
8473 # Whether dlopen is supported.
8474 dlopen_support=$enable_dlopen
8475
8476 # Whether dlopen of programs is supported.
8477 dlopen_self=$enable_dlopen_self
8478
8479 # Whether dlopen of statically linked programs is supported.
8480 dlopen_self_static=$enable_dlopen_self_static
8481
8482 # Compiler flag to prevent dynamic linking.
8483 link_static_flag=$lt_lt_prog_compiler_static
8484
8485 # Compiler flag to turn off builtin functions.
8486 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8487
8488 # Compiler flag to allow reflexive dlopens.
8489 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8490
8491 # Compiler flag to generate shared objects directly from archives.
8492 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8493
8494 # Compiler flag to generate thread-safe objects.
8495 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8496
8497 # Library versioning type.
8498 version_type=$version_type
8499
8500 # Format of library name prefix.
8501 libname_spec=$lt_libname_spec
8502
8503 # List of archive names.  First name is the real one, the rest are links.
8504 # The last name is the one that the linker finds with -lNAME.
8505 library_names_spec=$lt_library_names_spec
8506
8507 # The coded name of the library, if different from the real name.
8508 soname_spec=$lt_soname_spec
8509
8510 # Commands used to build and install an old-style archive.
8511 RANLIB=$lt_RANLIB
8512 old_archive_cmds=$lt_old_archive_cmds
8513 old_postinstall_cmds=$lt_old_postinstall_cmds
8514 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8515
8516 # Create an old-style archive from a shared archive.
8517 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8518
8519 # Create a temporary old-style archive to link instead of a shared archive.
8520 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8521
8522 # Commands used to build and install a shared archive.
8523 archive_cmds=$lt_archive_cmds
8524 archive_expsym_cmds=$lt_archive_expsym_cmds
8525 postinstall_cmds=$lt_postinstall_cmds
8526 postuninstall_cmds=$lt_postuninstall_cmds
8527
8528 # Commands to strip libraries.
8529 old_striplib=$lt_old_striplib
8530 striplib=$lt_striplib
8531
8532 # Dependencies to place before the objects being linked to create a
8533 # shared library.
8534 predep_objects=$lt_predep_objects
8535
8536 # Dependencies to place after the objects being linked to create a
8537 # shared library.
8538 postdep_objects=$lt_postdep_objects
8539
8540 # Dependencies to place before the objects being linked to create a
8541 # shared library.
8542 predeps=$lt_predeps
8543
8544 # Dependencies to place after the objects being linked to create a
8545 # shared library.
8546 postdeps=$lt_postdeps
8547
8548 # The library search path used internally by the compiler when linking
8549 # a shared library.
8550 compiler_lib_search_path=$lt_compiler_lib_search_path
8551
8552 # Method to check whether dependent libraries are shared objects.
8553 deplibs_check_method=$lt_deplibs_check_method
8554
8555 # Command to use when deplibs_check_method == file_magic.
8556 file_magic_cmd=$lt_file_magic_cmd
8557
8558 # Flag that allows shared libraries with undefined symbols to be built.
8559 allow_undefined_flag=$lt_allow_undefined_flag
8560
8561 # Flag that forces no undefined symbols.
8562 no_undefined_flag=$lt_no_undefined_flag
8563
8564 # Commands used to finish a libtool library installation in a directory.
8565 finish_cmds=$lt_finish_cmds
8566
8567 # Same as above, but a single script fragment to be evaled but not shown.
8568 finish_eval=$lt_finish_eval
8569
8570 # Take the output of nm and produce a listing of raw symbols and C names.
8571 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8572
8573 # Transform the output of nm in a proper C declaration
8574 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8575
8576 # Transform the output of nm in a C name address pair
8577 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8578
8579 # This is the shared library runtime path variable.
8580 runpath_var=$runpath_var
8581
8582 # This is the shared library path variable.
8583 shlibpath_var=$shlibpath_var
8584
8585 # Is shlibpath searched before the hard-coded library search path?
8586 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8587
8588 # How to hardcode a shared library path into an executable.
8589 hardcode_action=$hardcode_action
8590
8591 # Whether we should hardcode library paths into libraries.
8592 hardcode_into_libs=$hardcode_into_libs
8593
8594 # Flag to hardcode \$libdir into a binary during linking.
8595 # This must work even if \$libdir does not exist.
8596 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8597
8598 # Whether we need a single -rpath flag with a separated argument.
8599 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8600
8601 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8602 # resulting binary.
8603 hardcode_direct=$hardcode_direct
8604
8605 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8606 # resulting binary.
8607 hardcode_minus_L=$hardcode_minus_L
8608
8609 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8610 # the resulting binary.
8611 hardcode_shlibpath_var=$hardcode_shlibpath_var
8612
8613 # Variables whose values should be saved in libtool wrapper scripts and
8614 # restored at relink time.
8615 variables_saved_for_relink="$variables_saved_for_relink"
8616
8617 # Whether libtool must link a program against all its dependency libraries.
8618 link_all_deplibs=$link_all_deplibs
8619
8620 # Compile-time system search path for libraries
8621 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8622
8623 # Run-time system search path for libraries
8624 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8625
8626 # Fix the shell variable \$srcfile for the compiler.
8627 fix_srcfile_path="$fix_srcfile_path"
8628
8629 # Set to yes if exported symbols are required.
8630 always_export_symbols=$always_export_symbols
8631
8632 # The commands to list exported symbols.
8633 export_symbols_cmds=$lt_export_symbols_cmds
8634
8635 # The commands to extract the exported symbol list from a shared archive.
8636 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8637
8638 # Symbols that should not be listed in the preloaded symbols.
8639 exclude_expsyms=$lt_exclude_expsyms
8640
8641 # Symbols that must always be exported.
8642 include_expsyms=$lt_include_expsyms
8643
8644 # ### END LIBTOOL CONFIG
8645
8646 __EOF__
8647
8648   case $host_os in
8649   aix3*)
8650     cat <<\EOF >> "$cfgfile"
8651
8652 # AIX sometimes has problems with the GCC collect2 program.  For some
8653 # reason, if we set the COLLECT_NAMES environment variable, the problems
8654 # vanish in a puff of smoke.
8655 if test "X${COLLECT_NAMES+set}" != Xset; then
8656   COLLECT_NAMES=
8657   export COLLECT_NAMES
8658 fi
8659 EOF
8660     ;;
8661
8662   cygwin* | mingw* | pw32* | os2*)
8663     cat <<'EOF' >> "$cfgfile"
8664     # This is a source program that is used to create dlls on Windows
8665     # Don't remove nor modify the starting and closing comments
8666     # /* ltdll.c starts here */
8667 # #define WIN32_LEAN_AND_MEAN
8668 # #include <windows.h>
8669 # #undef WIN32_LEAN_AND_MEAN
8670 # #include <stdio.h>
8671 #
8672 # #ifndef __CYGWIN__
8673 # #  ifdef __CYGWIN32__
8674 # #    define __CYGWIN__ __CYGWIN32__
8675 # #  endif
8676 # #endif
8677 #
8678 # #ifdef __cplusplus
8679 # extern "C" {
8680 # #endif
8681 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8682 # #ifdef __cplusplus
8683 # }
8684 # #endif
8685 #
8686 # #ifdef __CYGWIN__
8687 # #include <cygwin/cygwin_dll.h>
8688 # DECLARE_CYGWIN_DLL( DllMain );
8689 # #endif
8690 # HINSTANCE __hDllInstance_base;
8691 #
8692 # BOOL APIENTRY
8693 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8694 # {
8695 #   __hDllInstance_base = hInst;
8696 #   return TRUE;
8697 # }
8698 # /* ltdll.c ends here */
8699
8700     # This is a source program that is used to create import libraries
8701     # on Windows for dlls which lack them. Don't remove nor modify the
8702     # starting and closing comments
8703     # /* impgen.c starts here */
8704 # /*   Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
8705 #
8706 #  This file is part of GNU libtool.
8707 #
8708 #  This program is free software; you can redistribute it and/or modify
8709 #  it under the terms of the GNU General Public License as published by
8710 #  the Free Software Foundation; either version 2 of the License, or
8711 #  (at your option) any later version.
8712 #
8713 #  This program is distributed in the hope that it will be useful,
8714 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
8715 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
8716 #  GNU General Public License for more details.
8717 #
8718 #  You should have received a copy of the GNU General Public License
8719 #  along with this program; if not, write to the Free Software
8720 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8721 #  */
8722 #
8723 # #include <stdio.h>            /* for printf() */
8724 # #include <unistd.h>           /* for open(), lseek(), read() */
8725 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
8726 # #include <string.h>           /* for strdup() */
8727 #
8728 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8729 # #ifndef O_BINARY
8730 # #define O_BINARY 0
8731 # #endif
8732 #
8733 # static unsigned int
8734 # pe_get16 (fd, offset)
8735 #      int fd;
8736 #      int offset;
8737 # {
8738 #   unsigned char b[2];
8739 #   lseek (fd, offset, SEEK_SET);
8740 #   read (fd, b, 2);
8741 #   return b[0] + (b[1]<<8);
8742 # }
8743 #
8744 # static unsigned int
8745 # pe_get32 (fd, offset)
8746 #     int fd;
8747 #     int offset;
8748 # {
8749 #   unsigned char b[4];
8750 #   lseek (fd, offset, SEEK_SET);
8751 #   read (fd, b, 4);
8752 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8753 # }
8754 #
8755 # static unsigned int
8756 # pe_as32 (ptr)
8757 #      void *ptr;
8758 # {
8759 #   unsigned char *b = ptr;
8760 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8761 # }
8762 #
8763 # int
8764 # main (argc, argv)
8765 #     int argc;
8766 #     char *argv[];
8767 # {
8768 #     int dll;
8769 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8770 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
8771 #     unsigned long name_rvas, nexp;
8772 #     unsigned char *expdata, *erva;
8773 #     char *filename, *dll_name;
8774 #
8775 #     filename = argv[1];
8776 #
8777 #     dll = open(filename, O_RDONLY|O_BINARY);
8778 #     if (dll < 1)
8779 #       return 1;
8780 #
8781 #     dll_name = filename;
8782 #
8783 #     for (i=0; filename[i]; i++)
8784 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
8785 #           dll_name = filename + i +1;
8786 #
8787 #     pe_header_offset = pe_get32 (dll, 0x3c);
8788 #     opthdr_ofs = pe_header_offset + 4 + 20;
8789 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
8790 #
8791 #     if (num_entries < 1) /* no exports */
8792 #       return 1;
8793 #
8794 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
8795 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
8796 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8797 #     secptr = (pe_header_offset + 4 + 20 +
8798 #             pe_get16 (dll, pe_header_offset + 4 + 16));
8799 #
8800 #     expptr = 0;
8801 #     for (i = 0; i < nsections; i++)
8802 #     {
8803 #       char sname[8];
8804 #       unsigned long secptr1 = secptr + 40 * i;
8805 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8806 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8807 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8808 #       lseek(dll, secptr1, SEEK_SET);
8809 #       read(dll, sname, 8);
8810 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
8811 #       {
8812 #           expptr = fptr + (export_rva - vaddr);
8813 #           if (export_rva + export_size > vaddr + vsize)
8814 #               export_size = vsize - (export_rva - vaddr);
8815 #           break;
8816 #       }
8817 #     }
8818 #
8819 #     expdata = (unsigned char*)malloc(export_size);
8820 #     lseek (dll, expptr, SEEK_SET);
8821 #     read (dll, expdata, export_size);
8822 #     erva = expdata - export_rva;
8823 #
8824 #     nexp = pe_as32 (expdata+24);
8825 #     name_rvas = pe_as32 (expdata+32);
8826 #
8827 #     printf ("EXPORTS\n");
8828 #     for (i = 0; i<nexp; i++)
8829 #     {
8830 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8831 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8832 #     }
8833 #
8834 #     return 0;
8835 # }
8836 # /* impgen.c ends here */
8837
8838 EOF
8839     ;;
8840   esac
8841
8842   # We use sed instead of cat because bash on DJGPP gets confused if
8843   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8844   # text mode, it properly converts lines to CR/LF.  This bash problem
8845   # is reportedly fixed, but why not run on old versions too?
8846   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8847
8848   mv -f "$cfgfile" "$ofile" || \
8849     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8850   chmod +x "$ofile"
8851
8852 else
8853   # If there is no Makefile yet, we rely on a make rule to execute
8854   # `config.status --recheck' to rerun these tests and create the
8855   # libtool script then.
8856   test -f Makefile && make "$ltmain"
8857 fi
8858
8859 ac_ext=c
8860 ac_cpp='$CPP $CPPFLAGS'
8861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8864
8865 CC="$lt_save_CC"
8866
8867 # Determine the tags from the languages used - this is another
8868 # hack by Erik L - if the flag for -g is set, then AC_PROG_*** has
8869 # probably been called. NB: I removed the GCJ support...
8870 tagnames=
8871 if test "${ac_cv_prog_cxx_g+set}" = set; then
8872   tagnames="CXX"
8873 fi
8874 if test "${ac_cv_prog_f77_g+set}" = set; then
8875   if test -n "$tagnames"; then
8876     tagnames=",F77"
8877   else
8878     tagnames="F77"
8879   fi
8880 fi
8881
8882 if test -f "$ltmain" && test -n "$tagnames"; then
8883   if test ! -f "${ofile}"; then
8884     { echo "$as_me:8884: WARNING: output file \`$ofile' does not exist" >&5
8885 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8886   fi
8887
8888   if test -z "$LTCC"; then
8889     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8890     if test -z "$LTCC"; then
8891       { echo "$as_me:8891: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8892 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8893     else
8894       { echo "$as_me:8894: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8895 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8896     fi
8897   fi
8898
8899   # Extract list of available tagged configurations in $ofile.
8900   # Note that this assumes the entire list is on one line.
8901   available_tags=`grep "^available_tags=" "${ofile}" | sed -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8902
8903   IFS="${IFS=   }"; lt_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:},"
8904   for tagname in $tagnames; do
8905     IFS="$lt_save_ifs"
8906     # Check whether tagname contains only valid characters
8907     case `$echo "X$tagname" | $Xsed -e 's/[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]//g'` in
8908     "") ;;
8909     *)  { { echo "$as_me:8909: error: invalid tag name: $tagname" >&5
8910 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8911    { (exit 1); exit 1; }; }
8912         ;;
8913     esac
8914
8915     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8916     then
8917       { { echo "$as_me:8917: error: tag name $tagname already exists" >&5
8918 echo "$as_me: error: tag name $tagname already exists" >&2;}
8919    { (exit 1); exit 1; }; }
8920     fi
8921
8922     # Update the list of available tags.
8923     if test -n "$tagname"; then
8924       echo appending configuration tag \"$tagname\" to $ofile
8925
8926       case $tagname in
8927       CXX)
8928         ac_ext=cc
8929 ac_cpp='$CXXCPP $CPPFLAGS'
8930 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8931 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8932 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8933
8934 archive_cmds_need_lc_CXX=no
8935 allow_undefined_flag_CXX=
8936 always_export_symbols_CXX=no
8937 archive_expsym_cmds_CXX=
8938 export_dynamic_flag_spec_CXX=
8939 hardcode_direct_CXX=no
8940 hardcode_libdir_flag_spec_CXX=
8941 hardcode_libdir_separator_CXX=
8942 hardcode_minus_L_CXX=no
8943 link_all_deplibs_CXX=unknown
8944 old_archive_cmds_CXX=$old_archive_cmds
8945 no_undefined_flag_CXX=
8946 whole_archive_flag_spec_CXX=
8947
8948 # Dependencies to place before and after the object being linked:
8949 predep_objects_CXX=
8950 postdep_objects_CXX=
8951 predeps_CXX=
8952 postdeps_CXX=
8953 compiler_lib_search_path_CXX=
8954
8955 # Source file extension for C test sources.
8956 ac_ext=cc
8957
8958 # Object file extension for compiled C test sources.
8959 objext=o
8960 objext_CXX=$objext
8961
8962 # Code to be used in simple compile tests
8963 lt_simple_compile_test_code="int some_variable = 0;\n"
8964
8965 # Code to be used in simple link tests
8966 lt_simple_link_test_code='int main(int char *) { return(0); }\n'
8967
8968 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8969
8970 # If no C compiler was specified, use CC.
8971 LTCC=${LTCC-"$CC"}
8972
8973 # Allow CC to be a program name with arguments.
8974 set dummy $CC
8975 compiler="$2"
8976
8977 # Allow CC to be a program name with arguments.
8978 lt_save_CC="$CC"
8979 CC=${CXX-"c++"}
8980 set dummy $CC
8981 compiler="$2"
8982 compiler_CXX=$CC
8983 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
8984
8985 # We don't want -fno-exception wen compiling C++ code, so set the
8986 # no_builtin_flag separately
8987 if test "$GXX" = yes; then
8988   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
8989 else
8990   lt_prog_compiler_no_builtin_flag_CXX=
8991 fi
8992
8993 if test "$GXX" = yes; then
8994   # Set up default GNU C++ configuration
8995
8996   # Check if GNU C++ uses GNU ld as the underlying linker, since the
8997   # archiving commands below assume that GNU ld is being used.
8998   if eval "`$CC -print-prog-name=ld` --version 2>&1" | \
8999       egrep 'GNU ld' > /dev/null; then
9000     with_gnu_ld=yes
9001
9002     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9003     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9004
9005     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9006     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9007
9008     # If archive_cmds runs LD, not CC, wlarc should be empty
9009     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9010     #     investigate it a little bit more. (MM)
9011     wlarc='${wl}'
9012
9013     # ancient GNU ld didn't support --whole-archive et. al.
9014     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9015         egrep 'no-whole-archive' > /dev/null; then
9016       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9017     else
9018       whole_archive_flag_spec_CXX=
9019     fi
9020   else
9021     with_gnu_ld=no
9022     wlarc=
9023
9024     # A generic and very simple default shared library creation
9025     # command for GNU C++ for the case where it uses the native
9026     # linker, instead of GNU ld.  If possible, this setting should
9027     # overridden to take advantage of the native linker features on
9028     # the platform it is being used on.
9029     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9030   fi
9031
9032   # Commands to make compiler produce verbose output that lists
9033   # what "hidden" libraries, object files and flags are used when
9034   # linking a shared library.
9035   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
9036
9037 else
9038   GXX=no
9039   with_gnu_ld=no
9040   wlarc=
9041 fi
9042
9043 # PORTME: fill in a description of your system's C++ link characteristics
9044 echo "$as_me:9044: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9045 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9046 ld_shlibs_CXX=yes
9047 case $host_os in
9048   aix3*)
9049     # FIXME: insert proper C++ library support
9050     ld_shlibs_CXX=no
9051     ;;
9052   aix4* | aix5*)
9053     archive_cmds_CXX=''
9054     hardcode_direct_CXX=yes
9055     hardcode_libdir_separator_CXX=':'
9056     link_all_deplibs_CXX=yes
9057     # When large executables or shared objects are built, AIX ld can
9058     # have problems creating the table of contents.  If linking a library
9059     # or program results in "error TOC overflow" add -mminimal-toc to
9060     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9061     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9062     if test "$GXX" = yes; then
9063       case $host_os in aix4.012|aix4.012.*)
9064       # We only want to do this on AIX 4.2 and lower, the check
9065       # below for broken collect2 doesn't work under 4.3+
9066         collect2name=`${CC} -print-prog-name=collect2`
9067         if test -f "$collect2name" && \
9068            strings "$collect2name" | grep resolve_lib_name >/dev/null
9069         then
9070           # We have reworked collect2
9071           hardcode_direct_CXX=yes
9072         else
9073           # We have old collect2
9074           hardcode_direct_CXX=unsupported
9075           # It fails to find uninstalled libraries when the uninstalled
9076           # path is not listed in the libpath.  Setting hardcode_minus_L
9077           # to unsupported forces relinking
9078           hardcode_minus_L_CXX=yes
9079           hardcode_libdir_flag_spec_CXX='-L$libdir'
9080           hardcode_libdir_separator_CXX=
9081         fi
9082       esac
9083       shared_flag='-shared'
9084     else
9085       # not using gcc
9086       if test "$host_cpu" = ia64; then
9087         shared_flag='${wl}-G'
9088       else
9089         shared_flag='${wl}-bM:SRE'
9090       fi
9091     fi
9092
9093     if test "$host_cpu" = ia64; then
9094       # On IA64, the linker does run time linking by default, so we don't
9095       # have to do anything special.
9096       aix_use_runtimelinking=no
9097       exp_sym_flag='-Bexport'
9098       no_entry_flag=""
9099     else
9100       # Test if we are trying to use run time linking, or normal AIX style linking.
9101       # If -brtl is somewhere in LDFLAGS, we need to do run time linking.
9102       aix_use_runtimelinking=no
9103       for ld_flag in $LDFLAGS; do
9104         if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then
9105           aix_use_runtimelinking=yes
9106           break
9107         fi
9108       done
9109       exp_sym_flag='-bexport'
9110       no_entry_flag='-bnoentry'
9111     fi
9112     # It seems that -bexpall does not export symbols beginning with
9113     # underscore (_), so it is better to generate a list of symbols to export.
9114     always_export_symbols_CXX=yes
9115     if test "$aix_use_runtimelinking" = yes; then
9116       # Determine the default libpath from the value encoded in an empty executable.
9117       cat >conftest.$ac_ext <<_ACEOF
9118 #line 9118 "configure"
9119 #include "confdefs.h"
9120
9121 int
9122 main ()
9123 {
9124
9125   ;
9126   return 0;
9127 }
9128 _ACEOF
9129 rm -f conftest.$ac_objext conftest$ac_exeext
9130 if { (eval echo "$as_me:9130: \"$ac_link\"") >&5
9131   (eval $ac_link) 2>&5
9132   ac_status=$?
9133   echo "$as_me:9133: \$? = $ac_status" >&5
9134   (exit $ac_status); } &&
9135          { ac_try='test -s conftest$ac_exeext'
9136   { (eval echo "$as_me:9136: \"$ac_try\"") >&5
9137   (eval $ac_try) 2>&5
9138   ac_status=$?
9139   echo "$as_me:9139: \$? = $ac_status" >&5
9140   (exit $ac_status); }; }; then
9141
9142 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`
9143 # Check for a 64-bit object if we didn't find anything.
9144 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`; fi
9145 else
9146   echo "$as_me: failed program was:" >&5
9147 cat conftest.$ac_ext >&5
9148 fi
9149 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9150 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9151
9152       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9153
9154       allow_undefined_flag_CXX=' -Wl,-G'
9155       archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}-brtl \${wl}$exp_sym_flag:\$export_symbols"
9156      else
9157       if test "$host_cpu" = ia64; then
9158         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9159         allow_undefined_flag_CXX="-z nodefs"
9160         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9161       else
9162         # Determine the default libpath from the value encoded in an empty executable.
9163         cat >conftest.$ac_ext <<_ACEOF
9164 #line 9164 "configure"
9165 #include "confdefs.h"
9166
9167 int
9168 main ()
9169 {
9170
9171   ;
9172   return 0;
9173 }
9174 _ACEOF
9175 rm -f conftest.$ac_objext conftest$ac_exeext
9176 if { (eval echo "$as_me:9176: \"$ac_link\"") >&5
9177   (eval $ac_link) 2>&5
9178   ac_status=$?
9179   echo "$as_me:9179: \$? = $ac_status" >&5
9180   (exit $ac_status); } &&
9181          { ac_try='test -s conftest$ac_exeext'
9182   { (eval echo "$as_me:9182: \"$ac_try\"") >&5
9183   (eval $ac_try) 2>&5
9184   ac_status=$?
9185   echo "$as_me:9185: \$? = $ac_status" >&5
9186   (exit $ac_status); }; }; then
9187
9188 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`
9189 # Check for a 64-bit object if we didn't find anything.
9190 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`; fi
9191 else
9192   echo "$as_me: failed program was:" >&5
9193 cat conftest.$ac_ext >&5
9194 fi
9195 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9196 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9197
9198         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9199
9200         # Warning - without using the other run time loading flags, -berok will
9201         #           link without error, but may produce a broken library.
9202         no_undefined_flag_CXX=' ${wl}-bnoerok'
9203         allow_undefined_flag_CXX=' ${wl}-berok'
9204         # -bexpall does not export symbols beginning with underscore (_)
9205         always_export_symbols_CXX=yes
9206         # Exported symbols can be pulled into shared objects from archives
9207         whole_archive_flag_spec_CXX=' '
9208         archive_cmds_need_lc_CXX=yes
9209         # This is similar to how AIX traditionally builds it's shared libraries.
9210         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9211       fi
9212     fi
9213     ;;
9214   chorus*)
9215     case $cc_basename in
9216       *)
9217         # FIXME: insert proper C++ library support
9218         ld_shlibs_CXX=no
9219         ;;
9220     esac
9221     ;;
9222   dgux*)
9223     case $cc_basename in
9224       ec++)
9225         # FIXME: insert proper C++ library support
9226         ld_shlibs_CXX=no
9227         ;;
9228       ghcx)
9229         # Green Hills C++ Compiler
9230         # FIXME: insert proper C++ library support
9231         ld_shlibs_CXX=no
9232         ;;
9233       *)
9234         # FIXME: insert proper C++ library support
9235         ld_shlibs_CXX=no
9236         ;;
9237     esac
9238     ;;
9239   freebsd12*)
9240     # C++ shared libraries reported to be fairly broken before switch to ELF
9241     ld_shlibs_CXX=no
9242     ;;
9243   freebsd-elf*)
9244     archive_cmds_need_lc_CXX=no
9245     ;;
9246   freebsd*)
9247     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9248     # conventions
9249     ld_shlibs_CXX=yes
9250     ;;
9251   hpux*)
9252     if test $with_gnu_ld = no; then
9253       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9254       hardcode_libdir_separator_CXX=:
9255       export_dynamic_flag_spec_CXX='${wl}-E'
9256     fi
9257     hardcode_direct_CXX=yes
9258     hardcode_minus_L_CXX=yes # Not in the search PATH, but as the default
9259                          # location of the library.
9260
9261     case $cc_basename in
9262       CC)
9263         # FIXME: insert proper C++ library support
9264         ld_shlibs_CXX=no
9265         ;;
9266       aCC)
9267         case $host_os in
9268         hpux9*) archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
9269         *) archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;;
9270         esac
9271         # Commands to make compiler produce verbose output that lists
9272         # what "hidden" libraries, object files and flags are used when
9273         # linking a shared library.
9274         #
9275         # There doesn't appear to be a way to prevent this compiler from
9276         # explicitly linking system object files so we need to strip them
9277         # from the output so that they don't get included in the library
9278         # dependencies.
9279         output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9280         ;;
9281       *)
9282         if test $GXX = yes; then
9283           if test $with_gnu_ld = no; then
9284             case "$host_os" in
9285             hpux9*) archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
9286             *) archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;;
9287             esac
9288           fi
9289         else
9290           # FIXME: insert proper C++ library support
9291           ld_shlibs_CXX=no
9292         fi
9293         ;;
9294     esac
9295     ;;
9296   irix5* | irix6*)
9297     case $cc_basename in
9298       CC)
9299         # SGI C++
9300         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9301
9302         # Archives containing C++ object files must be created using
9303         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
9304         # necessary to make sure instantiated templates are included
9305         # in the archive.
9306         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9307         ;;
9308       *)
9309         if test "$GXX" = yes; then
9310           if test "$with_gnu_ld" = no; then
9311             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9312           else
9313             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -o $lib'
9314           fi
9315         fi
9316         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9317         hardcode_libdir_separator_CXX=:
9318         link_all_deplibs_CXX=yes
9319         ;;
9320     esac
9321     ;;
9322   linux*)
9323     case $cc_basename in
9324       KCC)
9325         # Kuck and Associates, Inc. (KAI) C++ Compiler
9326
9327         # KCC will only create a shared library if the output file
9328         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9329         # to its proper name (with version) after linking.
9330         archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9331         archive_expsym_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
9332
9333         # Commands to make compiler produce verbose output that lists
9334         # what "hidden" libraries, object files and flags are used when
9335         # linking a shared library.
9336         #
9337         # There doesn't appear to be a way to prevent this compiler from
9338         # explicitly linking system object files so we need to strip them
9339         # from the output so that they don't get included in the library
9340         # dependencies.
9341         output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest.so 2>&1 | egrep "ld"`; rm -f libconftest.so; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9342
9343         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9344         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9345
9346         # Archives containing C++ object files must be created using
9347         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9348         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9349         ;;
9350       cxx)
9351         # Compaq C++
9352         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9353         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
9354
9355         runpath_var=LD_RUN_PATH
9356         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9357         hardcode_libdir_separator_CXX=:
9358
9359         # Commands to make compiler produce verbose output that lists
9360         # what "hidden" libraries, object files and flags are used when
9361         # linking a shared library.
9362         #
9363         # There doesn't appear to be a way to prevent this compiler from
9364         # explicitly linking system object files so we need to strip them
9365         # from the output so that they don't get included in the library
9366         # dependencies.
9367         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | sed "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9368         ;;
9369     esac
9370     ;;
9371   lynxos*)
9372     # FIXME: insert proper C++ library support
9373     ld_shlibs_CXX=no
9374     ;;
9375   m88k*)
9376     # FIXME: insert proper C++ library support
9377     ld_shlibs_CXX=no
9378     ;;
9379   mvs*)
9380     case $cc_basename in
9381       cxx)
9382         # FIXME: insert proper C++ library support
9383         ld_shlibs_CXX=no
9384         ;;
9385       *)
9386         # FIXME: insert proper C++ library support
9387         ld_shlibs_CXX=no
9388         ;;
9389     esac
9390     ;;
9391   netbsd*)
9392     # NetBSD uses g++ - do we need to do anything?
9393     ;;
9394   osf3*)
9395     case $cc_basename in
9396       KCC)
9397         # Kuck and Associates, Inc. (KAI) C++ Compiler
9398
9399         # KCC will only create a shared library if the output file
9400         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9401         # to its proper name (with version) after linking.
9402         archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9403
9404         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9405         hardcode_libdir_separator_CXX=:
9406
9407         # Archives containing C++ object files must be created using
9408         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9409         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9410
9411         ;;
9412       RCC)
9413         # Rational C++ 2.4.1
9414         # FIXME: insert proper C++ library support
9415         ld_shlibs_CXX=no
9416         ;;
9417       cxx)
9418         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9419         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9420
9421         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9422         hardcode_libdir_separator_CXX=:
9423
9424         # Commands to make compiler produce verbose output that lists
9425         # what "hidden" libraries, object files and flags are used when
9426         # linking a shared library.
9427         #
9428         # There doesn't appear to be a way to prevent this compiler from
9429         # explicitly linking system object files so we need to strip them
9430         # from the output so that they don't get included in the library
9431         # dependencies.
9432         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | sed "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9433         ;;
9434       *)
9435         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9436           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9437           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9438
9439           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9440           hardcode_libdir_separator_CXX=:
9441
9442           # Commands to make compiler produce verbose output that lists
9443           # what "hidden" libraries, object files and flags are used when
9444           # linking a shared library.
9445           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
9446
9447         else
9448           # FIXME: insert proper C++ library support
9449           ld_shlibs_CXX=no
9450         fi
9451         ;;
9452     esac
9453     ;;
9454   osf4* | osf5*)
9455     case $cc_basename in
9456       KCC)
9457         # Kuck and Associates, Inc. (KAI) C++ Compiler
9458
9459         # KCC will only create a shared library if the output file
9460         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9461         # to its proper name (with version) after linking.
9462         archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9463
9464         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9465         hardcode_libdir_separator_CXX=:
9466
9467         # Archives containing C++ object files must be created using
9468         # the KAI C++ compiler.
9469         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9470         ;;
9471       RCC)
9472         # Rational C++ 2.4.1
9473         # FIXME: insert proper C++ library support
9474         ld_shlibs_CXX=no
9475         ;;
9476       cxx)
9477         allow_undefined_flag_CXX=' -expect_unresolved \*'
9478         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9479         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done~
9480           echo "-hidden">> $lib.exp~
9481           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
9482           $rm $lib.exp'
9483
9484         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9485         hardcode_libdir_separator_CXX=:
9486
9487         # Commands to make compiler produce verbose output that lists
9488         # what "hidden" libraries, object files and flags are used when
9489         # linking a shared library.
9490         #
9491         # There doesn't appear to be a way to prevent this compiler from
9492         # explicitly linking system object files so we need to strip them
9493         # from the output so that they don't get included in the library
9494         # dependencies.
9495         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | sed "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9496         ;;
9497       *)
9498         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9499           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9500          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9501
9502           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9503           hardcode_libdir_separator_CXX=:
9504
9505           # Commands to make compiler produce verbose output that lists
9506           # what "hidden" libraries, object files and flags are used when
9507           # linking a shared library.
9508           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
9509
9510         else
9511           # FIXME: insert proper C++ library support
9512           ld_shlibs_CXX=no
9513         fi
9514         ;;
9515     esac
9516     ;;
9517   psos*)
9518     # FIXME: insert proper C++ library support
9519     ld_shlibs_CXX=no
9520     ;;
9521   sco*)
9522     case $cc_basename in
9523       CC)
9524         # FIXME: insert proper C++ library support
9525         ld_shlibs_CXX=no
9526         ;;
9527       *)
9528         # FIXME: insert proper C++ library support
9529         ld_shlibs_CXX=no
9530         ;;
9531     esac
9532     ;;
9533   sunos4*)
9534     case $cc_basename in
9535       CC)
9536         # Sun C++ 4.x
9537         # FIXME: insert proper C++ library support
9538         ld_shlibs_CXX=no
9539         ;;
9540       lcc)
9541         # Lucid
9542         # FIXME: insert proper C++ library support
9543         ld_shlibs_CXX=no
9544         ;;
9545       *)
9546         # FIXME: insert proper C++ library support
9547         ld_shlibs_CXX=no
9548         ;;
9549     esac
9550     ;;
9551   solaris*)
9552     case $cc_basename in
9553       CC)
9554         # Sun C++ 4.2, 5.x and Centerline C++
9555         no_undefined_flag_CXX=' -zdefs'
9556         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9557         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9558         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9559
9560         hardcode_libdir_flag_spec_CXX='-R$libdir'
9561         hardcode_shlibpath_var_CXX=no
9562         case $host_os in
9563           solaris2.0-5 | solaris2.0-5.*) ;;
9564           *)
9565             # The C++ compiler is used as linker so we must use $wl
9566             # flag to pass the commands to the underlying system
9567             # linker.
9568             # Supported since Solaris 2.6 (maybe 2.5.1?)
9569             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9570             ;;
9571         esac
9572         link_all_deplibs_CXX=yes
9573
9574         # Commands to make compiler produce verbose output that lists
9575         # what "hidden" libraries, object files and flags are used when
9576         # linking a shared library.
9577         #
9578         # There doesn't appear to be a way to prevent this compiler from
9579         # explicitly linking system object files so we need to strip them
9580         # from the output so that they don't get included in the library
9581         # dependencies.
9582         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep "\-R|\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9583
9584         # Archives containing C++ object files must be created using
9585         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
9586         # necessary to make sure instantiated templates are included
9587         # in the archive.
9588         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9589         ;;
9590       gcx)
9591         # Green Hills C++ Compiler
9592         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9593
9594         # The C++ compiler must be used to create the archive.
9595         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9596         ;;
9597       *)
9598         # GNU C++ compiler with Solaris linker
9599         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9600           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9601           if $CC --version | egrep -v '^2\.7' > /dev/null; then
9602             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
9603             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9604                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
9605
9606             # Commands to make compiler produce verbose output that lists
9607             # what "hidden" libraries, object files and flags are used when
9608             # linking a shared library.
9609             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\""
9610           else
9611             # g++ 2.7 appears to require `-G' NOT `-shared' on this
9612             # platform.
9613             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
9614             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9615                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
9616
9617             # Commands to make compiler produce verbose output that lists
9618             # what "hidden" libraries, object files and flags are used when
9619             # linking a shared library.
9620             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\""
9621           fi
9622
9623           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
9624         fi
9625         ;;
9626     esac
9627     ;;
9628   tandem*)
9629     case $cc_basename in
9630       NCC)
9631         # NonStop-UX NCC 3.20
9632         # FIXME: insert proper C++ library support
9633         ld_shlibs_CXX=no
9634         ;;
9635       *)
9636         # FIXME: insert proper C++ library support
9637         ld_shlibs_CXX=no
9638         ;;
9639     esac
9640     ;;
9641   unixware*)
9642     # FIXME: insert proper C++ library support
9643     ld_shlibs_CXX=no
9644     ;;
9645   vxworks*)
9646     # FIXME: insert proper C++ library support
9647     ld_shlibs_CXX=no
9648     ;;
9649   *)
9650     # FIXME: insert proper C++ library support
9651     ld_shlibs_CXX=no
9652     ;;
9653 esac
9654 echo "$as_me:9654: result: $ld_shlibs_CXX" >&5
9655 echo "${ECHO_T}$ld_shlibs_CXX" >&6
9656 test "$ld_shlibs_CXX" = no && can_build_shared=no
9657
9658 # Figure out "hidden" C++ library dependencies from verbose
9659 # compiler output whening linking a shared library.
9660 cat > conftest.$ac_ext <<EOF
9661 class Foo
9662 {
9663 public:
9664   Foo (void) { a = 0; }
9665 private:
9666   int a;
9667 };
9668 EOF
9669
9670 if { (eval echo "$as_me:9670: \"$ac_compile\"") >&5
9671   (eval $ac_compile) 2>&5
9672   ac_status=$?
9673   echo "$as_me:9673: \$? = $ac_status" >&5
9674   (exit $ac_status); }; then
9675   # Parse the compiler output and extract the necessary
9676   # objects, libraries and library flags.
9677
9678   # Sentinel used to keep track of whether or not we are before
9679   # the conftest object file.
9680   pre_test_object_deps_done=no
9681
9682   # The `*' in the case matches for architectures that use `case' in
9683   # $output_verbose_cmd can trigger glob expansion during the loop
9684   # eval without this substitution.
9685   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
9686
9687   for p in `eval $output_verbose_link_cmd`; do
9688
9689     case $p in
9690
9691     -L* | -R* | -l*)
9692        # Some compilers place space between "-{L,R}" and the path.
9693        # Remove the space.
9694        if test $p = "-L" \
9695           || test $p = "-R"; then
9696          prev=$p
9697          continue
9698        else
9699          prev=
9700        fi
9701
9702        if test "$pre_test_object_deps_done" = no; then
9703          case $p in
9704          -L* | -R*)
9705            # Internal compiler library paths should come after those
9706            # provided the user.  The postdeps already come after the
9707            # user supplied libs so there is no need to process them.
9708            if test -z "$compiler_lib_search_path_CXX"; then
9709              compiler_lib_search_path_CXX="${prev}${p}"
9710            else
9711              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
9712            fi
9713            ;;
9714          # The "-l" case would never come before the object being
9715          # linked, so don't bother handling this case.
9716          esac
9717        else
9718          if test -z "$postdeps_CXX"; then
9719            postdeps_CXX="${prev}${p}"
9720          else
9721            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
9722          fi
9723        fi
9724        ;;
9725
9726     *.$objext)
9727        # This assumes that the test object file only shows up
9728        # once in the compiler output.
9729        if test "$p" = "conftest.$objext"; then
9730          pre_test_object_deps_done=yes
9731          continue
9732        fi
9733
9734        if test "$pre_test_object_deps_done" = no; then
9735          if test -z "$predep_objects_CXX"; then
9736            predep_objects_CXX="$p"
9737          else
9738            predep_objects_CXX="$predep_objects_CXX $p"
9739          fi
9740        else
9741          if test -z "$postdep_objects_CXX"; then
9742            postdep_objects_CXX="$p"
9743          else
9744            postdep_objects_CXX="$postdep_objects_CXX $p"
9745          fi
9746        fi
9747        ;;
9748
9749     *) ;; # Ignore the rest.
9750
9751     esac
9752   done
9753
9754   # Clean up.
9755   rm -f a.out
9756 else
9757   echo "ltcf-cxx.sh: error: problem compiling test program"
9758 fi
9759
9760 $rm -f confest.$objext
9761
9762 case " $postdeps_CXX " in
9763 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
9764 *) archive_cmds_need_lc_CXX=yes ;;
9765 esac
9766
9767 GCC_CXX="$GXX"
9768 LD_CXX="$LD"
9769
9770 hard_links="nottested"
9771 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
9772   # do not overwrite the value of need_locks provided by the user
9773   echo "$as_me:9773: checking if we can lock with hard links" >&5
9774 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9775   hard_links=yes
9776   $rm conftest*
9777   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9778   touch conftest.a
9779   ln conftest.a conftest.b 2>&5 || hard_links=no
9780   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9781   echo "$as_me:9781: result: $hard_links" >&5
9782 echo "${ECHO_T}$hard_links" >&6
9783   if test "$hard_links" = no; then
9784     { echo "$as_me:9784: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9785 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9786     need_locks=warn
9787   fi
9788 else
9789   need_locks=no
9790 fi
9791
9792 lt_prog_compiler_wl_CXX=
9793 lt_prog_compiler_pic_CXX=
9794 lt_prog_compiler_static_CXX=
9795
9796 echo "$as_me:9796: checking for $compiler option to produce PIC" >&5
9797 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9798 if test "$GCC" = yes; then
9799   lt_prog_compiler_wl_CXX='-Wl,'
9800   lt_prog_compiler_static_CXX='-static'
9801
9802   case $host_os in
9803     aix*)
9804     # All AIX code is PIC.
9805     if test "$host_cpu" = ia64; then
9806       # AIX 5 now supports IA64 processor
9807       lt_prog_compiler_static_CXX='-Bstatic'
9808     else
9809       lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
9810     fi
9811     ;;
9812
9813   amigaos*)
9814     # FIXME: we need at least 68020 code to build shared libraries, but
9815     # adding the `-m68020' flag to GCC prevents building anything better,
9816     # like `-m68040'.
9817     lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
9818     ;;
9819
9820   beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
9821     # PIC is the default for these OSes.
9822     ;;
9823
9824   cygwin* | mingw* | pw32* | os2*)
9825     # This hack is so that the source file can tell whether it is being
9826     # built for inclusion in a dll (and should export symbols for example).
9827     lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
9828     ;;
9829
9830   darwin* | rhapsody*)
9831     # PIC is the default on this platform
9832     # Common symbols not allowed in MH_DYLIB files
9833     lt_prog_compiler_pic_CXX='-fno-common'
9834     ;;
9835
9836   msdosdjgpp*)
9837     # Just because we use GCC doesn't mean we suddenly get shared libraries
9838     # on systems that don't support them.
9839     lt_prog_compiler_can_build_shared_CXX=no
9840     enable_shared=no
9841     ;;
9842
9843   sysv4*MP*)
9844     if test -d /usr/nec; then
9845       lt_prog_compiler_pic_CXX=-Kconform_pic
9846     fi
9847     ;;
9848
9849   *)
9850     lt_prog_compiler_pic_CXX='-fPIC'
9851     ;;
9852   esac
9853 else
9854   # PORTME Check for flag to pass linker flags through the system compiler.
9855   case $host_os in
9856   aix*)
9857     lt_prog_compiler_wl_CXX='-Wl,'
9858     if test "$host_cpu" = ia64; then
9859       # AIX 5 now supports IA64 processor
9860       lt_prog_compiler_static_CXX='-Bstatic'
9861     else
9862       lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
9863     fi
9864     ;;
9865
9866   cygwin* | mingw* | pw32* | os2*)
9867     # This hack is so that the source file can tell whether it is being
9868     # built for inclusion in a dll (and should export symbols for example).
9869     lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
9870     ;;
9871
9872   hpux9* | hpux10* | hpux11*)
9873     lt_prog_compiler_wl_CXX='-Wl,'
9874     lt_prog_compiler_pic_CXX='+Z'
9875     # Is there a better lt_prog_compiler_static that works with the bundled CC?
9876     lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
9877     ;;
9878
9879   irix5* | irix6*)
9880     lt_prog_compiler_wl_CXX='-Wl,'
9881     # PIC (with -KPIC) is the default.
9882     lt_prog_compiler_static_CXX='-non_shared'
9883     ;;
9884
9885   linux*)
9886     # Check flags for non-gnu compilers on Linux
9887     case "$host_cpu" in
9888     alpha*)
9889       # The only non-gnu compiler on Linux/Alpha is the Compaq one:
9890       lt_prog_compiler_wl_CXX='-Wl,'
9891       lt_prog_compiler_static_CXX='-non_shared'
9892       ;;
9893     *)
9894       lt_prog_compiler_can_build_shared_CXX=no
9895       ;;
9896     esac
9897     ;;
9898   newsos6)
9899     lt_prog_compiler_pic_CXX='-KPIC'
9900     lt_prog_compiler_static_CXX='-Bstatic'
9901     ;;
9902
9903   osf3* | osf4* | osf5*)
9904     lt_prog_compiler_wl_CXX='-Wl,'
9905     # All OSF/1 code is PIC.
9906     lt_prog_compiler_static_CXX='-non_shared'
9907     ;;
9908
9909   sco3.2v5*)
9910     lt_prog_compiler_pic_CXX='-Kpic'
9911     lt_prog_compiler_static_CXX='-dn'
9912     ;;
9913
9914   solaris*)
9915     lt_prog_compiler_wl_CXX='-Wl,'
9916     lt_prog_compiler_pic_CXX='-KPIC'
9917     lt_prog_compiler_static_CXX='-Bstatic'
9918     ;;
9919
9920   sunos4*)
9921     lt_prog_compiler_wl_CXX='-Qoption ld '
9922     lt_prog_compiler_pic_CXX='-PIC'
9923     lt_prog_compiler_static_CXX='-Bstatic'
9924     ;;
9925
9926   sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9927     if test "x$host_vendor" = xsni; then
9928       lt_prog_compiler_wl_CXX='-LD'
9929     else
9930       lt_prog_compiler_wl_CXX='-Wl,'
9931     fi
9932     lt_prog_compiler_pic_CXX='-KPIC'
9933     lt_prog_compiler_static_CXX='-Bstatic'
9934     ;;
9935
9936   sysv4*MP*)
9937     if test -d /usr/nec ;then
9938       lt_prog_compiler_pic_CXX='-Kconform_pic'
9939       lt_prog_compiler_static_CXX='-Bstatic'
9940     fi
9941     ;;
9942
9943   uts4*)
9944     lt_prog_compiler_pic_CXX='-pic'
9945     lt_prog_compiler_static_CXX='-Bstatic'
9946     ;;
9947
9948   *)
9949     lt_prog_compiler_can_build_shared_CXX=no
9950     ;;
9951   esac
9952 fi
9953 echo "$as_me:9953: result: $lt_prog_compiler_pic_CXX" >&5
9954 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
9955
9956 #
9957 # Check to make sure the PIC flag actually works.
9958 #
9959 if test -n "$lt_prog_compiler_pic_CXX"; then
9960   echo "$as_me:9960: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
9961 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
9962 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
9963   echo $ECHO_N "(cached) $ECHO_C" >&6
9964 else
9965   lt_prog_compiler_pic_works_CXX=no
9966   ac_outfile=conftest.$ac_objext
9967    save_CFLAGS="$CFLAGS"
9968    CFLAGS="$CFLAGS $lt_prog_compiler_pic_CXX"
9969    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9970    if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
9971      # The compiler can only warn and ignore the option if not recognized
9972      # So say no if there are warnings
9973      if test -s conftest.err; then
9974        # Append any errors to the config.log.
9975        cat conftest.err 1>&5
9976      else
9977        lt_prog_compiler_pic_works_CXX=yes
9978      fi
9979    fi
9980    $rm conftest*
9981    CFLAGS="$save_CFLAGS"
9982
9983 fi
9984 echo "$as_me:9984: result: $lt_prog_compiler_pic_works_CXX" >&5
9985 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
9986
9987 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
9988     case $lt_prog_compiler_pic_CXX in
9989      "" | " "*) ;;
9990      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
9991      esac
9992
9993 else
9994     lt_prog_compiler_pic_CXX=
9995      lt_prog_compiler_can_build_shared_CXX=no
9996 fi
9997
9998 fi
9999 case "$host_os" in
10000   # For platforms which do not support PIC, -DPIC is meaningless:
10001   *djgpp*)
10002     lt_prog_compiler_pic_CXX=
10003     ;;
10004   *)
10005     echo "$as_me:10005: checking if $compiler PIC define -DPIC works" >&5
10006 echo $ECHO_N "checking if $compiler PIC define -DPIC works... $ECHO_C" >&6
10007 if test "${lt_prog_compiler_picdef_works_CXX+set}" = set; then
10008   echo $ECHO_N "(cached) $ECHO_C" >&6
10009 else
10010   lt_prog_compiler_picdef_works_CXX=no
10011   ac_outfile=conftest.$ac_objext
10012    save_CFLAGS="$CFLAGS"
10013    CFLAGS="$CFLAGS $lt_prog_compiler_pic_CXX -DPIC"
10014    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10015    if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
10016      # The compiler can only warn and ignore the option if not recognized
10017      # So say no if there are warnings
10018      if test -s conftest.err; then
10019        # Append any errors to the config.log.
10020        cat conftest.err 1>&5
10021      else
10022        lt_prog_compiler_picdef_works_CXX=yes
10023      fi
10024    fi
10025    $rm conftest*
10026    CFLAGS="$save_CFLAGS"
10027
10028 fi
10029 echo "$as_me:10029: result: $lt_prog_compiler_picdef_works_CXX" >&5
10030 echo "${ECHO_T}$lt_prog_compiler_picdef_works_CXX" >&6
10031
10032 if test x"$lt_prog_compiler_picdef_works_CXX" = xyes; then
10033     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10034 else
10035     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX"
10036 fi
10037
10038     ;;
10039 esac
10040
10041 echo "$as_me:10041: checking if $compiler supports -c -o file.$ac_objext" >&5
10042 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10043 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10044   echo $ECHO_N "(cached) $ECHO_C" >&6
10045 else
10046   lt_cv_prog_compiler_c_o_CXX=no
10047    $rm -r conftest 2>/dev/null
10048    mkdir conftest
10049    cd conftest
10050    mkdir out
10051    save_CFLAGS="$CFLAGS"
10052    CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
10053    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10054
10055    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10056    # that will create temporary files in the current directory regardless of
10057    # the output directory.  Thus, making CWD read-only will cause this test
10058    # to fail, enabling locking or at least warning the user not to do parallel
10059    # builds.
10060    chmod -w .
10061
10062    if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
10063    then
10064      # The compiler can only warn and ignore the option if not recognized
10065      # So say no if there are warnings
10066      if test -s out/conftest.err; then
10067        # Append any errors to the config.log.
10068        cat out/conftest.err 1>&5
10069      else
10070        lt_cv_prog_compiler_c_o_CXX=yes
10071      fi
10072    fi
10073    CFLAGS="$save_CFLAGS"
10074
10075    chmod u+w .
10076    $rm conftest* out/*
10077    rmdir out
10078    cd ..
10079    rmdir conftest
10080    $rm conftest*
10081
10082 fi
10083 echo "$as_me:10083: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10084 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10085
10086 echo "$as_me:10086: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10087 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10088
10089 runpath_var=
10090 allow_undefined_flag_CXX=
10091
10092 archive_cmds_CXX=
10093 archive_cmds_need_lc_CXX=
10094 archive_expsym_cmds_CXX=
10095 old_archive_From_new_cmds_CXX=
10096 old_archive_from_expsyms_cmds_CXX=
10097 export_dynamic_flag_spec_CXX=
10098 whole_archive_flag_spec_CXX=
10099 thread_safe_flag_spec_CXX=
10100 hardcode_libdir_flag_spec_CXX=
10101 hardcode_libdir_separator_CXX=
10102 hardcode_direct_CXX=no
10103 hardcode_minus_L_CXX=no
10104 hardcode_shlibpath_var_CXX=unsupported
10105 link_all_deplibs_CXX=unknown
10106 always_export_symbols_CXX=no
10107 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
10108 # include_expsyms should be a list of space-separated symbols to be *always*
10109 # included in the symbol list
10110 include_expsyms_CXX=
10111 # exclude_expsyms can be an egrep regular expression of symbols to exclude
10112 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10113 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10114 # as well as any symbol that contains `d'.
10115 exclude_expsyms_CXX="_GLOBAL_OFFSET_TABLE_"
10116 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10117 # platforms (ab)use it in PIC code, but their linkers get confused if
10118 # the symbol is explicitly referenced.  Since portable code cannot
10119 # rely on this symbol name, it's probably fine to never include it in
10120 # preloaded symbol tables.
10121 extract_expsyms_cmds=
10122
10123 case $host_os in
10124 cygwin* | mingw* | pw32*)
10125   # FIXME: the MSVC++ port hasn't been tested in a loooong time
10126   # When not using gcc, we currently assume that we are using
10127   # Microsoft Visual C++.
10128   if test "$GCC" != yes; then
10129     with_gnu_ld=no
10130   fi
10131   ;;
10132 openbsd*)
10133   with_gnu_ld=no
10134   ;;
10135 esac
10136
10137 ld_shlibs_CXX=yes
10138 if test "$with_gnu_ld" = yes; then
10139   # If archive_cmds runs LD, not CC, wlarc should be empty
10140   wlarc='${wl}'
10141
10142   # See if GNU ld supports shared libraries.
10143   case $host_os in
10144   aix3* | aix4* | aix5*)
10145     # On AIX/PPC, the GNU linker is very broken
10146     if test "$host_cpu" != ia64; then
10147       ld_shlibs_CXX=no
10148       cat <<EOF 1>&2
10149
10150 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10151 *** to be unable to reliably create shared libraries on AIX.
10152 *** Therefore, libtool is disabling shared libraries support.  If you
10153 *** really care for shared libraries, you may want to modify your PATH
10154 *** so that a non-GNU linker is found, and then restart.
10155
10156 EOF
10157     fi
10158     ;;
10159
10160   amigaos*)
10161     archive_cmds_CXX='$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)'
10162     hardcode_libdir_flag_spec_CXX='-L$libdir'
10163     hardcode_minus_L_CXX=yes
10164
10165     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10166     # that the semantics of dynamic libraries on AmigaOS, at least up
10167     # to version 4, is to share data among multiple programs linked
10168     # with the same dynamic library.  Since this doesn't match the
10169     # behavior of shared libraries on other platforms, we can't use
10170     # them.
10171     ld_shlibs_CXX=no
10172     ;;
10173
10174   beos*)
10175     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
10176       allow_undefined_flag_CXX=unsupported
10177       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10178       # support --undefined.  This deserves some investigation.  FIXME
10179       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10180     else
10181       ld_shlibs_CXX=no
10182     fi
10183     ;;
10184
10185   cygwin* | mingw* | pw32*)
10186     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, as there is
10187     # no search path for DLLs.
10188     hardcode_libdir_flag_spec_CXX='-L$libdir'
10189     allow_undefined_flag_CXX=unsupported
10190     always_export_symbols_CXX=yes
10191
10192     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
10193       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
10194       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
10195       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
10196       else $CC -o impgen impgen.c ; fi)~
10197       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
10198
10199     old_archive_from_expsyms_cmds_CXX='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
10200
10201     # cygwin and mingw dlls have different entry points and sets of symbols
10202     # to exclude.
10203     # FIXME: what about values for MSVC?
10204     dll_entry=__cygwin_dll_entry@12
10205     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
10206     case $host_os in
10207     mingw*)
10208       # mingw values
10209       dll_entry=_DllMainCRTStartup@12
10210       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
10211       ;;
10212     esac
10213
10214     # mingw and cygwin differ, and it's simplest to just exclude the union
10215     # of the two symbol sets.
10216     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
10217
10218     # recent cygwin and mingw systems supply a stub DllMain which the user
10219     # can override, but on older systems we have to supply one (in ltdll.c)
10220     if test "x$lt_cv_need_dllmain" = "xyes"; then
10221       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
10222       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~
10223         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
10224     else
10225       ltdll_obj=
10226       ltdll_cmds=
10227     fi
10228
10229     # Extract the symbol export list from an `--export-all' def file,
10230     # then regenerate the def file from the symbol export list, so that
10231     # the compiled dll only exports the symbol export list.
10232     # Be careful not to strip the DATA tag left by newer dlltools.
10233     export_symbols_cmds_CXX="$ltdll_cmds"'
10234       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
10235       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
10236
10237     # If the export-symbols file already is a .def file (1st line
10238     # is EXPORTS), use it as is.
10239     # If DATA tags from a recent dlltool are present, honour them!
10240     archive_expsym_cmds_CXX='if test "x`head -1 $export_symbols`" = xEXPORTS; then
10241         cp $export_symbols $output_objdir/$soname-def;
10242       else
10243         echo EXPORTS > $output_objdir/$soname-def;
10244         _lt_hint=1;
10245         cat $export_symbols | while read symbol; do
10246          set dummy \$symbol;
10247          case \$# in
10248            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
10249            *) echo "   \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
10250          esac;
10251          _lt_hint=`expr 1 + \$_lt_hint`;
10252         done;
10253       fi~
10254       '"$ltdll_cmds"'
10255       $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~
10256       $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~
10257       $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~
10258       $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~
10259       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
10260     ;;
10261
10262   darwin* | rhapsody*)
10263     allow_undefined_flag_CXX='-undefined suppress'
10264     # FIXME: Relying on posixy $() will cause problems for
10265     #        cross-compilation, but unfortunately the echo tests do not
10266     #        yet detect zsh echo's removal of \ escapes.
10267     archive_cmds_CXX='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)'
10268     # We need to add '_' to the symbols in $export_symbols first
10269     #_LT_AC_TAGVAR(archive_expsym_cmds, CXX)="$_LT_AC_TAGVAR(archive_cmds, CXX)"' && strip -s $export_symbols'
10270     hardcode_direct_CXX=yes
10271     hardcode_shlibpath_var_CXX=no
10272     whole_archive_flag_spec_CXX='-all_load $convenience'
10273     ;;
10274
10275   netbsd*)
10276     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10277       archive_cmds_CXX='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10278       wlarc=
10279     else
10280       archive_cmds_CXX='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10281       archive_expsym_cmds_CXX='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10282     fi
10283     ;;
10284
10285   solaris* | sysv5*)
10286     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
10287       ld_shlibs_CXX=no
10288       cat <<EOF 1>&2
10289
10290 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10291 *** create shared libraries on Solaris systems.  Therefore, libtool
10292 *** is disabling shared libraries support.  We urge you to upgrade GNU
10293 *** binutils to release 2.9.1 or newer.  Another option is to modify
10294 *** your PATH or compiler configuration so that the native linker is
10295 *** used, and then restart.
10296
10297 EOF
10298     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
10299       archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10300       archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10301     else
10302       ld_shlibs_CXX=no
10303     fi
10304     ;;
10305
10306   sunos4*)
10307     archive_cmds_CXX='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10308     wlarc=
10309     hardcode_direct_CXX=yes
10310     hardcode_shlibpath_var_CXX=no
10311     ;;
10312
10313   *)
10314     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
10315       archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10316       archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10317     else
10318       ld_shlibs_CXX=no
10319     fi
10320     ;;
10321   esac
10322
10323   if test "$ld_shlibs_CXX" = yes; then
10324     runpath_var=LD_RUN_PATH
10325     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10326     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10327     case $host_os in
10328     cygwin* | mingw* | pw32*)
10329       # dlltool doesn't understand --whole-archive et. al.
10330       whole_archive_flag_spec_CXX=
10331       ;;
10332     *)
10333       # ancient GNU ld didn't support --whole-archive et. al.
10334       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
10335         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10336       else
10337         whole_archive_flag_spec_CXX=
10338       fi
10339       ;;
10340     esac
10341   fi
10342 else
10343   # PORTME fill in a description of your system's linker (not GNU ld)
10344   case $host_os in
10345   aix3*)
10346     allow_undefined_flag_CXX=unsupported
10347     always_export_symbols_CXX=yes
10348     archive_expsym_cmds_CXX='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10349     # Note: this linker hardcodes the directories in LIBPATH if there
10350     # are no directories specified by -L.
10351     hardcode_minus_L_CXX=yes
10352     if test "$GCC" = yes && test -z "$link_static_flag"; then
10353       # Neither direct hardcoding nor static linking is supported with a
10354       # broken collect2.
10355       hardcode_direct_CXX=unsupported
10356     fi
10357     ;;
10358
10359   aix4* | aix5*)
10360     hardcode_direct_CXX=yes
10361     hardcode_libdir_separator_CXX=':'
10362     link_all_deplibs_CXX=yes
10363     # When large executables or shared objects are built, AIX ld can
10364     # have problems creating the table of contents.  If linking a library
10365     # or program results in "error TOC overflow" add -mminimal-toc to
10366     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10367     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10368     if test "$GCC" = yes; then
10369       case $host_os in aix4.012|aix4.-12.*)
10370         # We only want to do this on AIX 4.2 and lower, the check
10371         # below for broken collect2 doesn't work under 4.3+
10372         collect2name=`${CC} -print-prog-name=collect2`
10373         if test -f "$collect2name" && \
10374            strings "$collect2name" | grep resolve_lib_name >/dev/null
10375         then
10376           # We have reworked collect2
10377           hardcode_direct_CXX=yes
10378         else
10379           # We have old collect2
10380           hardcode_direct_CXX=unsupported
10381           # It fails to find uninstalled libraries when the uninstalled
10382           # path is not listed in the libpath.  Setting hardcode_minus_L
10383           # to unsupported forces relinking
10384           hardcode_minus_L_CXX=yes
10385           hardcode_libdir_flag_spec_CXX='-L$libdir'
10386           hardcode_libdir_separator_CXX=
10387         fi
10388       esac
10389       shared_flag='-shared'
10390     else
10391       # not using gcc
10392       if test "$host_cpu" = ia64; then
10393         shared_flag='${wl}-G'
10394       else
10395         shared_flag='${wl}-bM:SRE'
10396       fi
10397     fi
10398
10399     if test "$host_cpu" = ia64; then
10400       # On IA64, the linker does run time linking by default, so we don't
10401       # have to do anything special.
10402       aix_use_runtimelinking=no
10403         if test $with_gnu_ld = no; then
10404           exp_sym_flag='-Bexport'
10405         fi
10406       no_entry_flag=""
10407     else
10408       # Test if we are trying to use run time linking, or normal AIX style
10409       # linking.  If -brtl is somewhere in LDFLAGS, we need to do run time
10410       # linking.
10411       aix_use_runtimelinking=no
10412       for ld_flag in $LDFLAGS; do
10413         if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then
10414           aix_use_runtimelinking=yes
10415           break
10416         fi
10417       done
10418       exp_sym_flag='-bexport'
10419       no_entry_flag='-bnoentry'
10420     fi
10421     # -bexpall does not export symbols beginning with underscore (_)
10422     always_export_symbols_CXX=yes
10423     if test "$aix_use_runtimelinking" = yes; then
10424       # Warning - without using the other run time loading flags (-brtl),
10425       #           -berok will link without error, but may produce a broken
10426       #           library.
10427       allow_undefined_flag_CXX=' $wl}-berok'
10428       # Determine the default libpath from the value encoded in an empty executable.
10429       # If we don't find anything, use the default library path according to the cc manual.
10430       cat >conftest.$ac_ext <<_ACEOF
10431 #line 10431 "configure"
10432 #include "confdefs.h"
10433
10434 int
10435 main ()
10436 {
10437
10438   ;
10439   return 0;
10440 }
10441 _ACEOF
10442 rm -f conftest.$ac_objext conftest$ac_exeext
10443 if { (eval echo "$as_me:10443: \"$ac_link\"") >&5
10444   (eval $ac_link) 2>&5
10445   ac_status=$?
10446   echo "$as_me:10446: \$? = $ac_status" >&5
10447   (exit $ac_status); } &&
10448          { ac_try='test -s conftest$ac_exeext'
10449   { (eval echo "$as_me:10449: \"$ac_try\"") >&5
10450   (eval $ac_try) 2>&5
10451   ac_status=$?
10452   echo "$as_me:10452: \$? = $ac_status" >&5
10453   (exit $ac_status); }; }; then
10454
10455 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`
10456 # Check for a 64-bit object if we didn't find anything.
10457 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`; fi
10458 else
10459   echo "$as_me: failed program was:" >&5
10460 cat conftest.$ac_ext >&5
10461 fi
10462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10463 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10464
10465       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10466       archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10467     else
10468       if test "$host_cpu" = ia64; then
10469         if test $with_gnu_ld = no; then
10470           hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10471           allow_undefined_flag_CXX="-z nodefs"
10472           archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10473         fi
10474       else
10475         # Determine the default libpath from the value encoded in an empty executable.
10476         cat >conftest.$ac_ext <<_ACEOF
10477 #line 10477 "configure"
10478 #include "confdefs.h"
10479
10480 int
10481 main ()
10482 {
10483
10484   ;
10485   return 0;
10486 }
10487 _ACEOF
10488 rm -f conftest.$ac_objext conftest$ac_exeext
10489 if { (eval echo "$as_me:10489: \"$ac_link\"") >&5
10490   (eval $ac_link) 2>&5
10491   ac_status=$?
10492   echo "$as_me:10492: \$? = $ac_status" >&5
10493   (exit $ac_status); } &&
10494          { ac_try='test -s conftest$ac_exeext'
10495   { (eval echo "$as_me:10495: \"$ac_try\"") >&5
10496   (eval $ac_try) 2>&5
10497   ac_status=$?
10498   echo "$as_me:10498: \$? = $ac_status" >&5
10499   (exit $ac_status); }; }; then
10500
10501 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`
10502 # Check for a 64-bit object if we didn't find anything.
10503 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`; fi
10504 else
10505   echo "$as_me: failed program was:" >&5
10506 cat conftest.$ac_ext >&5
10507 fi
10508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10509 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10510
10511         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10512         allow_undefined_flag_CXX=' ${wl}-berok'
10513         # -bexpall does not export symbols beginning with underscore (_)
10514         always_export_symbols_CXX=yes
10515         # Exported symbols can be pulled into shared objects from archives
10516         whole_archive_flag_spec_CXX=' '
10517         archive_cmds_need_lc_CXX=yes
10518         # This is similar to how AIX traditionally builds it's shared
10519         # libraries.
10520         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10521       fi
10522     fi
10523     ;;
10524
10525   amigaos*)
10526     archive_cmds_CXX='$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)'
10527     hardcode_libdir_flag_spec_CXX='-L$libdir'
10528     hardcode_minus_L_CXX=yes
10529     # see comment about different semantics on the GNU ld section
10530     ld_shlibs_CXX=no
10531     ;;
10532
10533   bsdi4*)
10534     export_dynamic_flag_spec_CXX=-rdynamic
10535     ;;
10536
10537   cygwin* | mingw* | pw32*)
10538     # When not using gcc, we currently assume that we are using
10539     # Microsoft Visual C++.
10540     # hardcode_libdir_flag_spec is actually meaningless, as there is
10541     # no search path for DLLs.
10542     hardcode_libdir_flag_spec_CXX=' '
10543     allow_undefined_flag_CXX=unsupported
10544     # Tell ltmain to make .lib files, not .a files.
10545     libext=lib
10546     # FIXME: Setting linknames here is a bad hack.
10547     archive_cmds_CXX='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10548     # The linker will automatically build a .lib file if we build a DLL.
10549     old_archive_From_new_cmds_CXX='true'
10550     # FIXME: Should let the user specify the lib program.
10551     old_archive_cmds_CXX='lib /OUT:$oldlib$oldobjs$old_deplibs'
10552     fix_srcfile_path='`cygpath -w "$srcfile"`'
10553     ;;
10554
10555   dgux*)
10556     archive_cmds_CXX='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10557     hardcode_libdir_flag_spec_CXX='-L$libdir'
10558     hardcode_shlibpath_var_CXX=no
10559     ;;
10560
10561   freebsd1*)
10562     ld_shlibs_CXX=no
10563     ;;
10564
10565   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10566   # support.  Future versions do this automatically, but an explicit c++rt0.o
10567   # does not break anything, and helps significantly (at the cost of a little
10568   # extra space).
10569   freebsd2.2*)
10570     archive_cmds_CXX='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10571     hardcode_libdir_flag_spec_CXX='-R$libdir'
10572     hardcode_direct_CXX=yes
10573     hardcode_shlibpath_var_CXX=no
10574     ;;
10575
10576   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10577   freebsd2*)
10578     archive_cmds_CXX='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10579     hardcode_direct_CXX=yes
10580     hardcode_minus_L_CXX=yes
10581     hardcode_shlibpath_var_CXX=no
10582     ;;
10583
10584   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10585   freebsd*)
10586     archive_cmds_CXX='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10587     hardcode_libdir_flag_spec_CXX='-R$libdir'
10588     hardcode_direct_CXX=yes
10589     hardcode_shlibpath_var_CXX=no
10590     ;;
10591
10592   hpux9* | hpux10* | hpux11*)
10593     if test $with_gcc = yes; then
10594       case $host_os in
10595       hpux9*) archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
10596       *) archive_cmds_CXX='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;;
10597       esac
10598     else
10599       case $host_os in
10600       hpux9*) archive_cmds_CXX='$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' ;;
10601       *) archive_cmds_CXX='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
10602       esac
10603     fi
10604     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10605     hardcode_libdir_separator_CXX=:
10606     hardcode_direct_CXX=yes
10607     hardcode_minus_L_CXX=yes # Not in the search PATH, but as the default
10608                          # location of the library.
10609     export_dynamic_flag_spec_CXX='${wl}-E'
10610     ;;
10611
10612   irix5* | irix6*)
10613     if test "$GCC" = yes; then
10614       archive_cmds_CXX='$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'
10615     else
10616       archive_cmds_CXX='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10617     fi
10618     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10619     hardcode_libdir_separator_CXX=:
10620     link_all_deplibs_CXX=yes
10621     ;;
10622
10623   netbsd*)
10624     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10625       archive_cmds_CXX='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10626     else
10627       archive_cmds_CXX='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10628     fi
10629     hardcode_libdir_flag_spec_CXX='-R$libdir'
10630     hardcode_direct_CXX=yes
10631     hardcode_shlibpath_var_CXX=no
10632     ;;
10633
10634   newsos6)
10635     archive_cmds_CXX='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
10636     hardcode_direct_CXX=yes
10637     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10638     hardcode_libdir_separator_CXX=:
10639     hardcode_shlibpath_var_CXX=no
10640     ;;
10641
10642   openbsd*)
10643     hardcode_direct_CXX=yes
10644     hardcode_shlibpath_var_CXX=no
10645
10646     case "$host_os" in
10647       openbsd01.* | openbsd2.0-7 | openbsd2.0-7.*)
10648         archive_cmds_CXX='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10649         hardcode_libdir_flag_spec_CXX='-R$libdir'
10650       ;;
10651       *)
10652         archive_cmds_CXX='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
10653         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10654         if  "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc" ; then
10655          export_dynamic_flag_spec_CXX='${wl}-E'
10656         fi
10657       ;;
10658     esac
10659     ;;
10660
10661   os2*)
10662     hardcode_libdir_flag_spec_CXX='-L$libdir'
10663     hardcode_minus_L_CXX=yes
10664     allow_undefined_flag_CXX=unsupported
10665     archive_cmds_CXX='$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'
10666     old_archive_From_new_cmds_CXX='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10667     ;;
10668
10669   osf3*)
10670     if test "$GCC" = yes; then
10671       allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10672       archive_cmds_CXX='$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'
10673     else
10674       allow_undefined_flag_CXX=' -expect_unresolved \*'
10675       archive_cmds_CXX='$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'
10676     fi
10677     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10678     hardcode_libdir_separator_CXX=:
10679     ;;
10680
10681   osf4* | osf5*)        # as osf3* with the addition of -msym flag
10682     if test "$GCC" = yes; then
10683       allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10684       archive_cmds_CXX='$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'
10685       hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10686     else
10687       allow_undefined_flag_CXX=' -expect_unresolved \*'
10688       archive_cmds_CXX='$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'
10689       archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10690       $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'
10691
10692       # Both c and cxx compiler support -rpath directly
10693       hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10694     fi
10695     hardcode_libdir_separator_CXX=:
10696     ;;
10697
10698   sco3.2v5*)
10699     archive_cmds_CXX='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10700     hardcode_shlibpath_var_CXX=no
10701     export_dynamic_flag_spec_CXX='${wl}-Bexport'
10702     runpath_var=LD_RUN_PATH
10703     hardcode_runpath_var=yes
10704     ;;
10705
10706   solaris*)
10707     no_undefined_flag_CXX=' -z defs'
10708     if test "$with_gcc" = yes; then
10709       archive_cmds_CXX='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10710       archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10711         $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10712     else
10713       archive_cmds_CXX='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10714       archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10715         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10716     fi
10717     hardcode_libdir_flag_spec_CXX='-R$libdir'
10718     hardcode_shlibpath_var_CXX=no
10719     case $host_os in
10720     solaris2.[0-5] | solaris2.[0-5].*) ;;
10721     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
10722       whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' ;;
10723     esac
10724     link_all_deplibs_CXX=yes
10725     ;;
10726
10727   sunos4*)
10728     if test "x$host_vendor" = xsequent; then
10729       # Use $CC to link under sequent, because it throws in some extra .o
10730       # files that make .init and .fini sections work.
10731       archive_cmds_CXX='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10732     else
10733       archive_cmds_CXX='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10734     fi
10735     hardcode_libdir_flag_spec_CXX='-L$libdir'
10736     hardcode_direct_CXX=yes
10737     hardcode_minus_L_CXX=yes
10738     hardcode_shlibpath_var_CXX=no
10739     ;;
10740
10741   sysv4)
10742     if test "x$host_vendor" = xsni; then
10743       archive_cmds_CXX='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
10744       hardcode_direct_CXX=yes # is this really true???
10745     else
10746       archive_cmds_CXX='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10747       hardcode_direct_CXX=no #Motorola manual says yes, but my tests say they lie
10748     fi
10749     runpath_var='LD_RUN_PATH'
10750     hardcode_shlibpath_var_CXX=no
10751     ;;
10752
10753   sysv4.3*)
10754     archive_cmds_CXX='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10755     hardcode_shlibpath_var_CXX=no
10756     export_dynamic_flag_spec_CXX='-Bexport'
10757     ;;
10758
10759   sysv4*MP*)
10760     if test -d /usr/nec; then
10761       archive_cmds_CXX='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10762       hardcode_shlibpath_var_CXX=no
10763       runpath_var=LD_RUN_PATH
10764       hardcode_runpath_var=yes
10765       ld_shlibs_CXX=yes
10766     fi
10767     ;;
10768
10769   sysv4.2uw2*)
10770     archive_cmds_CXX='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10771     hardcode_direct_CXX=yes
10772     hardcode_minus_L_CXX=no
10773     hardcode_shlibpath_var_CXX=no
10774     hardcode_runpath_var=yes
10775     runpath_var=LD_RUN_PATH
10776     ;;
10777
10778   sysv5uw7* | unixware7*)
10779     no_undefined_flag_CXX='${wl}-z ${wl}text'
10780     if test "$GCC" = yes; then
10781       archive_cmds_CXX='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10782     else
10783       archive_cmds_CXX='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10784     fi
10785     runpath_var='LD_RUN_PATH'
10786     hardcode_shlibpath_var_CXX=no
10787     ;;
10788
10789   sysv5*)
10790     no_undefined_flag_CXX=' -z text'
10791     # $CC -shared without GNU ld will not create a library from C++
10792     # object files and a static libstdc++, better avoid it by now
10793     archive_cmds_CXX='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10794     archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10795                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10796     hardcode_libdir_flag_spec_CXX=
10797     hardcode_shlibpath_var_CXX=no
10798     runpath_var='LD_RUN_PATH'
10799     ;;
10800
10801   uts4*)
10802     archive_cmds_CXX='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10803     hardcode_libdir_flag_spec_CXX='-L$libdir'
10804     hardcode_shlibpath_var_CXX=no
10805     ;;
10806
10807   *)
10808     ld_shlibs_CXX=no
10809     ;;
10810   esac
10811 fi
10812 echo "$as_me:10812: result: $ld_shlibs_CXX" >&5
10813 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10814 test "$ld_shlibs_CXX" = no && can_build_shared=no
10815
10816 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10817 if test "$GCC" = yes; then
10818   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10819 fi
10820
10821 #
10822 # Do we need to explicitly link libc?
10823 #
10824 archive_cmds_need_lc_CXX=yes
10825 if test "$enable_shared" = yes && test "$GCC" = yes; then
10826   case $archive_cmds_CXX in
10827   *'~'*)
10828     # FIXME: we may have to deal with multi-command sequences.
10829     ;;
10830   '$CC '*)
10831     # Test whether the compiler implicitly links with -lc since on some
10832     # systems, -lgcc has to come before -lc. If gcc already passes -lc
10833     # to ld, don't add -lc before -lgcc.
10834     echo "$as_me:10834: checking whether -lc should be explicitly linked in" >&5
10835 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10836     $rm conftest*
10837     echo 'static int dummy;' > conftest.$ac_ext
10838
10839     if { (eval echo "$as_me:10839: \"$ac_compile\"") >&5
10840   (eval $ac_compile) 2>&5
10841   ac_status=$?
10842   echo "$as_me:10842: \$? = $ac_status" >&5
10843   (exit $ac_status); } 2>conftest.err; then
10844       soname=conftest
10845       lib=conftest
10846       libobjs=conftest.$ac_objext
10847       deplibs=
10848       wl=$lt_prog_compiler_wl_CXX
10849       compiler_flags=-v
10850       linker_flags=-v
10851       verstring=
10852       output_objdir=.
10853       libname=conftest
10854       lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10855       allow_undefined_flag_CXX=
10856       if { (eval echo "$as_me:10856: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10857   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10858   ac_status=$?
10859   echo "$as_me:10859: \$? = $ac_status" >&5
10860   (exit $ac_status); }
10861       then
10862         archive_cmds_need_lc_CXX=no
10863       else
10864         archive_cmds_need_lc_CXX=yes
10865       fi
10866       allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10867     else
10868       cat conftest.err 1>&5
10869     fi
10870     $rm conftest*
10871     echo "$as_me:10871: result: $archive_cmds_need_lc_CXX" >&5
10872 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10873     ;;
10874   esac
10875 fi
10876
10877 echo "$as_me:10877: checking how to hardcode library paths into programs" >&5
10878 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10879 hardcode_action_CXX=
10880 if test -n "$hardcode_libdir_flag_spec" || \
10881    test -n "$runpath_var"; then
10882
10883   # We can hardcode non-existant directories.
10884   if test "$hardcode_direct_CXX" != no &&
10885      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10886      # have to relink, otherwise we might link with an installed library
10887      # when we should be linking with a yet-to-be-installed one
10888      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10889      test "$hardcode_minus_L_CXX" != no; then
10890     # Linking always hardcodes the temporary library directory.
10891     hardcode_action_CXX=relink
10892   else
10893     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10894     hardcode_action_CXX=immediate
10895   fi
10896 else
10897   # We cannot hardcode anything, or else we can only hardcode existing
10898   # directories.
10899   hardcode_action_CXX=unsupported
10900 fi
10901 echo "$as_me:10901: result: $hardcode_action_CXX" >&5
10902 echo "${ECHO_T}$hardcode_action_CXX" >&6
10903
10904 if test "$hardcode_action_CXX" = relink; then
10905   # Fast installation is not supported
10906   enable_fast_install=no
10907 elif test "$shlibpath_overrides_runpath" = yes ||
10908      test "$enable_shared" = no; then
10909   # Fast installation is not necessary
10910   enable_fast_install=needless
10911 fi
10912
10913 striplib=
10914 old_striplib=
10915 echo "$as_me:10915: checking whether stripping libraries is possible" >&5
10916 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10917 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10918   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10919   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10920   echo "$as_me:10920: result: yes" >&5
10921 echo "${ECHO_T}yes" >&6
10922 else
10923   echo "$as_me:10923: result: no" >&5
10924 echo "${ECHO_T}no" >&6
10925 fi
10926
10927 echo "$as_me:10927: checking dynamic linker characteristics" >&5
10928 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10929 library_names_spec=
10930 libname_spec='lib$name'
10931 soname_spec=
10932 postinstall_cmds=
10933 postuninstall_cmds=
10934 finish_cmds=
10935 finish_eval=
10936 shlibpath_var=
10937 shlibpath_overrides_runpath=unknown
10938 version_type=none
10939 dynamic_linker="$host_os ld.so"
10940 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10941 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10942 need_lib_prefix=unknown
10943 hardcode_into_libs=no
10944
10945 # when you set need_version to no, make sure it does not cause -set_version
10946 # flags to be left without arguments
10947 need_version=unknown
10948
10949 case $host_os in
10950 aix3*)
10951   version_type=linux
10952   library_names_spec='${libname}${release}.so$versuffix $libname.a'
10953   shlibpath_var=LIBPATH
10954
10955   # AIX 3 has no versioning support, so we append a major version to the name.
10956   soname_spec='${libname}${release}.so$major'
10957   ;;
10958
10959 aix4* | aix5*)
10960   version_type=linux
10961   if test "$host_cpu" = ia64; then
10962     # AIX 5 supports IA64
10963     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
10964     shlibpath_var=LD_LIBRARY_PATH
10965   else
10966     # With GCC up to 2.95.x, collect2 would create an import file
10967     # for dependence libraries.  The import file would start with
10968     # the line `#! .'.  This would cause the generated library to
10969     # depend on `.', always an invalid library.  This was fixed in
10970     # development snapshots of GCC prior to 3.0.
10971     case $host_os in
10972        aix4 | aix4.[01] | aix4.[01].*)
10973       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10974            echo ' yes '
10975            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10976         :
10977       else
10978         can_build_shared=no
10979       fi
10980       ;;
10981     esac
10982     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10983     # soname into executable. Probably we can add versioning support to
10984     # collect2, so additional links can be useful in future.
10985     if test "$aix_use_runtimelinking" = yes; then
10986       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10987       # instead of lib<name>.a to let people know that these are not
10988       # typical AIX shared libraries.
10989       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10990     else
10991       # We preserve .a as extension for shared libraries through AIX4.2
10992       # and later when we are not doing run time linking.
10993       library_names_spec='${libname}${release}.a $libname.a'
10994       soname_spec='${libname}${release}.so$major'
10995     fi
10996     shlibpath_var=LIBPATH
10997     deplibs_check_method=pass_all
10998   fi
10999   ;;
11000
11001 amigaos*)
11002   library_names_spec='$libname.ixlibrary $libname.a'
11003   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11004   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'
11005   ;;
11006
11007 beos*)
11008   library_names_spec='${libname}.so'
11009   dynamic_linker="$host_os ld.so"
11010   shlibpath_var=LIBRARY_PATH
11011   ;;
11012
11013 bsdi4*)
11014   version_type=linux
11015   need_version=no
11016   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
11017   soname_spec='${libname}${release}.so$major'
11018   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11019   shlibpath_var=LD_LIBRARY_PATH
11020   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11021   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11022   # the default ld.so.conf also contains /usr/contrib/lib and
11023   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11024   # libtool to hard-code these into programs
11025   ;;
11026
11027 cygwin* | mingw* | pw32*)
11028   version_type=windows
11029   need_version=no
11030   need_lib_prefix=no
11031   case $GCC,$host_os in
11032   yes,cygwin*)
11033     library_names_spec='$libname.dll.a'
11034     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
11035     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
11036       dldir=$destdir/`dirname \$dlpath`~
11037       test -d \$dldir || mkdir -p \$dldir~
11038       $install_prog .libs/$dlname \$dldir/$dlname'
11039     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
11040       dlpath=$dir/\$dldll~
11041        $rm \$dlpath'
11042     ;;
11043   yes,mingw*)
11044     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
11045     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
11046     ;;
11047   yes,pw32*)
11048     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
11049     ;;
11050   *)
11051     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
11052     ;;
11053   esac
11054   dynamic_linker='Win32 ld.exe'
11055   # FIXME: first we should search . and the directory the executable is in
11056   shlibpath_var=PATH
11057   ;;
11058
11059 darwin* | rhapsody*)
11060   dynamic_linker="$host_os dyld"
11061   version_type=darwin
11062   need_lib_prefix=no
11063   need_version=no
11064   # FIXME: Relying on posixy $() will cause problems for
11065   #        cross-compilation, but unfortunately the echo tests do not
11066   #        yet detect zsh echo's removal of \ escapes.
11067   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)'
11068   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
11069   shlibpath_overrides_runpath=yes
11070   shlibpath_var=DYLD_LIBRARY_PATH
11071   ;;
11072
11073 dgux*)
11074   version_type=linux
11075   need_lib_prefix=no
11076   need_version=no
11077   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
11078   soname_spec='${libname}${release}.so$major'
11079   shlibpath_var=LD_LIBRARY_PATH
11080   ;;
11081
11082 freebsd1*)
11083   dynamic_linker=no
11084   ;;
11085
11086 freebsd*)
11087   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11088   version_type=freebsd-$objformat
11089   case $version_type in
11090     freebsd-elf*)
11091       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
11092       need_version=no
11093       need_lib_prefix=no
11094       ;;
11095     freebsd-*)
11096       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
11097       need_version=yes
11098       ;;
11099   esac
11100   shlibpath_var=LD_LIBRARY_PATH
11101   case $host_os in
11102   freebsd2*)
11103     shlibpath_overrides_runpath=yes
11104     ;;
11105   freebsd3.01* | freebsdelf3.01*)
11106     shlibpath_overrides_runpath=yes
11107     hardcode_into_libs=yes
11108     ;;
11109   *) # from 3.2 on
11110     shlibpath_overrides_runpath=no
11111     hardcode_into_libs=yes
11112     ;;
11113   esac
11114   ;;
11115
11116 gnu*)
11117   version_type=linux
11118   need_lib_prefix=no
11119   need_version=no
11120   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
11121   soname_spec='${libname}${release}.so$major'
11122   shlibpath_var=LD_LIBRARY_PATH
11123   hardcode_into_libs=yes
11124   ;;
11125
11126 hpux9* | hpux10* | hpux11*)
11127   # Give a soname corresponding to the major version so that dld.sl refuses to
11128   # link against other versions.
11129   dynamic_linker="$host_os dld.sl"
11130   version_type=sunos
11131   need_lib_prefix=no
11132   need_version=no
11133   shlibpath_var=SHLIB_PATH
11134   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11135   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
11136   soname_spec='${libname}${release}.sl$major'
11137   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11138   postinstall_cmds='chmod 555 $lib'
11139   ;;
11140
11141 irix5* | irix6*)
11142   version_type=irix
11143   need_lib_prefix=no
11144   need_version=no
11145   soname_spec='${libname}${release}.so.$major'
11146   library_names_spec='${libname}${release}.so.$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
11147   case $host_os in
11148   irix5*)
11149     libsuff= shlibsuff=
11150     ;;
11151   *)
11152     case $LD in # libtool.m4 will add one of these switches to LD
11153     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
11154     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
11155     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
11156     *) libsuff= shlibsuff= libmagic=never-match;;
11157     esac
11158     ;;
11159   esac
11160   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11161   shlibpath_overrides_runpath=no
11162   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11163   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11164   ;;
11165
11166 # No shared lib support for Linux oldld, aout, or coff.
11167 linux*oldld* | linux*aout* | linux*coff*)
11168   dynamic_linker=no
11169   ;;
11170
11171 # This must be Linux ELF.
11172 linux*)
11173   version_type=linux
11174   need_lib_prefix=no
11175   need_version=no
11176   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
11177   soname_spec='${libname}${release}.so$major'
11178   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11179   shlibpath_var=LD_LIBRARY_PATH
11180   shlibpath_overrides_runpath=no
11181   # This implies no fast_install, which is unacceptable.
11182   # Some rework will be needed to allow for fast_install
11183   # before this can be enabled.
11184   hardcode_into_libs=yes
11185
11186   # We used to test for /lib/ld.so.1 and disable shared libraries on
11187   # powerpc, because MkLinux only supported shared libraries with the
11188   # GNU dynamic linker.  Since this was broken with cross compilers,
11189   # most powerpc-linux boxes support dynamic linking these days and
11190   # people can always --disable-shared, the test was removed, and we
11191   # assume the GNU/Linux dynamic linker is in use.
11192   dynamic_linker='GNU/Linux ld.so'
11193   ;;
11194
11195 netbsd*)
11196   version_type=sunos
11197   need_lib_prefix=no
11198   need_version=no
11199   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11200     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
11201     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11202     dynamic_linker='NetBSD (a.out) ld.so'
11203   else
11204     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
11205     soname_spec='${libname}${release}.so$major'
11206     dynamic_linker='NetBSD ld.elf_so'
11207   fi
11208   shlibpath_var=LD_LIBRARY_PATH
11209   shlibpath_overrides_runpath=yes
11210   hardcode_into_libs=yes
11211   ;;
11212
11213 newsos6)
11214   version_type=linux
11215   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
11216   shlibpath_var=LD_LIBRARY_PATH
11217   shlibpath_overrides_runpath=yes
11218   ;;
11219
11220 openbsd*)
11221   version_type=sunos
11222   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
11223   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11224   shlibpath_var=LD_LIBRARY_PATH
11225   file_magic_cmd=/usr/bin/file
11226   file_magic_test_file=`echo /usr/lib/libc.so.*`
11227   if  "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc" ; then
11228     deplibs_check_method='file_magic ELF 0-90-9*-bit LMSB shared object'
11229   else
11230     deplibs_check_method='file_magic OpenBSD.* shared library'
11231   fi
11232   ;;
11233
11234 os2*)
11235   libname_spec='$name'
11236   need_lib_prefix=no
11237   library_names_spec='$libname.dll $libname.a'
11238   dynamic_linker='OS/2 ld.exe'
11239   shlibpath_var=LIBPATH
11240   ;;
11241
11242 osf3* | osf4* | osf5*)
11243   version_type=osf
11244   need_version=no
11245   soname_spec='${libname}${release}.so'
11246   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
11247   shlibpath_var=LD_LIBRARY_PATH
11248   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11249   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11250   ;;
11251
11252 sco3.2v5*)
11253   version_type=osf
11254   soname_spec='${libname}${release}.so$major'
11255   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
11256   shlibpath_var=LD_LIBRARY_PATH
11257   ;;
11258
11259 solaris*)
11260   version_type=linux
11261   need_lib_prefix=no
11262   need_version=no
11263   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
11264   soname_spec='${libname}${release}.so$major'
11265   shlibpath_var=LD_LIBRARY_PATH
11266   shlibpath_overrides_runpath=yes
11267   hardcode_into_libs=yes
11268   # ldd complains unless libraries are executable
11269   postinstall_cmds='chmod +x $lib'
11270   ;;
11271
11272 sunos4*)
11273   version_type=sunos
11274   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
11275   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11276   shlibpath_var=LD_LIBRARY_PATH
11277   shlibpath_overrides_runpath=yes
11278   if test "$with_gnu_ld" = yes; then
11279     need_lib_prefix=no
11280   fi
11281   need_version=yes
11282   ;;
11283
11284 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11285   version_type=linux
11286   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
11287   soname_spec='${libname}${release}.so$major'
11288   shlibpath_var=LD_LIBRARY_PATH
11289   case $host_vendor in
11290     sni)
11291       shlibpath_overrides_runpath=no
11292       ;;
11293     motorola)
11294       need_lib_prefix=no
11295       need_version=no
11296       shlibpath_overrides_runpath=no
11297       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11298       ;;
11299   esac
11300   ;;
11301
11302 sysv4*MP*)
11303   if test -d /usr/nec ;then
11304     version_type=linux
11305     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
11306     soname_spec='$libname.so.$major'
11307     shlibpath_var=LD_LIBRARY_PATH
11308   fi
11309   ;;
11310
11311 uts4*)
11312   version_type=linux
11313   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
11314   soname_spec='${libname}${release}.so$major'
11315   shlibpath_var=LD_LIBRARY_PATH
11316   ;;
11317
11318 *)
11319   dynamic_linker=no
11320   ;;
11321 esac
11322 echo "$as_me:11322: result: $dynamic_linker" >&5
11323 echo "${ECHO_T}$dynamic_linker" >&6
11324 test "$dynamic_linker" = no && can_build_shared=no
11325
11326 if test "x$enable_dlopen" != xyes; then
11327   enable_dlopen=unknown
11328   enable_dlopen_self=unknown
11329   enable_dlopen_self_static=unknown
11330 else
11331   lt_cv_dlopen=no
11332   lt_cv_dlopen_libs=
11333
11334   case $host_os in
11335   beos*)
11336     lt_cv_dlopen="load_add_on"
11337     lt_cv_dlopen_libs=
11338     lt_cv_dlopen_self=yes
11339     ;;
11340
11341   cygwin* | mingw* | pw32*)
11342     lt_cv_dlopen="LoadLibrary"
11343     lt_cv_dlopen_libs=
11344    ;;
11345
11346   *)
11347     echo "$as_me:11347: checking for shl_load" >&5
11348 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11349 if test "${ac_cv_func_shl_load+set}" = set; then
11350   echo $ECHO_N "(cached) $ECHO_C" >&6
11351 else
11352   cat >conftest.$ac_ext <<_ACEOF
11353 #line 11353 "configure"
11354 #include "confdefs.h"
11355 /* System header to define __stub macros and hopefully few prototypes,
11356     which can conflict with char shl_load (); below.  */
11357 #include <assert.h>
11358 /* Override any gcc2 internal prototype to avoid an error.  */
11359 #ifdef __cplusplus
11360 extern "C"
11361 #endif
11362 /* We use char because int might match the return type of a gcc2
11363    builtin and then its argument prototype would still apply.  */
11364 char shl_load ();
11365 char (*f) ();
11366
11367 int
11368 main ()
11369 {
11370 /* The GNU C library defines this for functions which it implements
11371     to always fail with ENOSYS.  Some functions are actually named
11372     something starting with __ and the normal name is an alias.  */
11373 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11374 choke me
11375 #else
11376 f = shl_load;
11377 #endif
11378
11379   ;
11380   return 0;
11381 }
11382 _ACEOF
11383 rm -f conftest.$ac_objext conftest$ac_exeext
11384 if { (eval echo "$as_me:11384: \"$ac_link\"") >&5
11385   (eval $ac_link) 2>&5
11386   ac_status=$?
11387   echo "$as_me:11387: \$? = $ac_status" >&5
11388   (exit $ac_status); } &&
11389          { ac_try='test -s conftest$ac_exeext'
11390   { (eval echo "$as_me:11390: \"$ac_try\"") >&5
11391   (eval $ac_try) 2>&5
11392   ac_status=$?
11393   echo "$as_me:11393: \$? = $ac_status" >&5
11394   (exit $ac_status); }; }; then
11395   ac_cv_func_shl_load=yes
11396 else
11397   echo "$as_me: failed program was:" >&5
11398 cat conftest.$ac_ext >&5
11399 ac_cv_func_shl_load=no
11400 fi
11401 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11402 fi
11403 echo "$as_me:11403: result: $ac_cv_func_shl_load" >&5
11404 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11405 if test $ac_cv_func_shl_load = yes; then
11406   lt_cv_dlopen="shl_load"
11407 else
11408   echo "$as_me:11408: checking for shl_load in -ldld" >&5
11409 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11410 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11411   echo $ECHO_N "(cached) $ECHO_C" >&6
11412 else
11413   ac_check_lib_save_LIBS=$LIBS
11414 LIBS="-ldld  $LIBS"
11415 cat >conftest.$ac_ext <<_ACEOF
11416 #line 11416 "configure"
11417 #include "confdefs.h"
11418
11419 /* Override any gcc2 internal prototype to avoid an error.  */
11420 #ifdef __cplusplus
11421 extern "C"
11422 #endif
11423 /* We use char because int might match the return type of a gcc2
11424    builtin and then its argument prototype would still apply.  */
11425 char shl_load ();
11426 int
11427 main ()
11428 {
11429 shl_load ();
11430   ;
11431   return 0;
11432 }
11433 _ACEOF
11434 rm -f conftest.$ac_objext conftest$ac_exeext
11435 if { (eval echo "$as_me:11435: \"$ac_link\"") >&5
11436   (eval $ac_link) 2>&5
11437   ac_status=$?
11438   echo "$as_me:11438: \$? = $ac_status" >&5
11439   (exit $ac_status); } &&
11440          { ac_try='test -s conftest$ac_exeext'
11441   { (eval echo "$as_me:11441: \"$ac_try\"") >&5
11442   (eval $ac_try) 2>&5
11443   ac_status=$?
11444   echo "$as_me:11444: \$? = $ac_status" >&5
11445   (exit $ac_status); }; }; then
11446   ac_cv_lib_dld_shl_load=yes
11447 else
11448   echo "$as_me: failed program was:" >&5
11449 cat conftest.$ac_ext >&5
11450 ac_cv_lib_dld_shl_load=no
11451 fi
11452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11453 LIBS=$ac_check_lib_save_LIBS
11454 fi
11455 echo "$as_me:11455: result: $ac_cv_lib_dld_shl_load" >&5
11456 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11457 if test $ac_cv_lib_dld_shl_load = yes; then
11458   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11459 else
11460   echo "$as_me:11460: checking for dlopen in -ldl" >&5
11461 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11462 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11463   echo $ECHO_N "(cached) $ECHO_C" >&6
11464 else
11465   ac_check_lib_save_LIBS=$LIBS
11466 LIBS="-ldl  $LIBS"
11467 cat >conftest.$ac_ext <<_ACEOF
11468 #line 11468 "configure"
11469 #include "confdefs.h"
11470
11471 /* Override any gcc2 internal prototype to avoid an error.  */
11472 #ifdef __cplusplus
11473 extern "C"
11474 #endif
11475 /* We use char because int might match the return type of a gcc2
11476    builtin and then its argument prototype would still apply.  */
11477 char dlopen ();
11478 int
11479 main ()
11480 {
11481 dlopen ();
11482   ;
11483   return 0;
11484 }
11485 _ACEOF
11486 rm -f conftest.$ac_objext conftest$ac_exeext
11487 if { (eval echo "$as_me:11487: \"$ac_link\"") >&5
11488   (eval $ac_link) 2>&5
11489   ac_status=$?
11490   echo "$as_me:11490: \$? = $ac_status" >&5
11491   (exit $ac_status); } &&
11492          { ac_try='test -s conftest$ac_exeext'
11493   { (eval echo "$as_me:11493: \"$ac_try\"") >&5
11494   (eval $ac_try) 2>&5
11495   ac_status=$?
11496   echo "$as_me:11496: \$? = $ac_status" >&5
11497   (exit $ac_status); }; }; then
11498   ac_cv_lib_dl_dlopen=yes
11499 else
11500   echo "$as_me: failed program was:" >&5
11501 cat conftest.$ac_ext >&5
11502 ac_cv_lib_dl_dlopen=no
11503 fi
11504 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11505 LIBS=$ac_check_lib_save_LIBS
11506 fi
11507 echo "$as_me:11507: result: $ac_cv_lib_dl_dlopen" >&5
11508 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11509 if test $ac_cv_lib_dl_dlopen = yes; then
11510   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11511 else
11512   echo "$as_me:11512: checking for dlopen" >&5
11513 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11514 if test "${ac_cv_func_dlopen+set}" = set; then
11515   echo $ECHO_N "(cached) $ECHO_C" >&6
11516 else
11517   cat >conftest.$ac_ext <<_ACEOF
11518 #line 11518 "configure"
11519 #include "confdefs.h"
11520 /* System header to define __stub macros and hopefully few prototypes,
11521     which can conflict with char dlopen (); below.  */
11522 #include <assert.h>
11523 /* Override any gcc2 internal prototype to avoid an error.  */
11524 #ifdef __cplusplus
11525 extern "C"
11526 #endif
11527 /* We use char because int might match the return type of a gcc2
11528    builtin and then its argument prototype would still apply.  */
11529 char dlopen ();
11530 char (*f) ();
11531
11532 int
11533 main ()
11534 {
11535 /* The GNU C library defines this for functions which it implements
11536     to always fail with ENOSYS.  Some functions are actually named
11537     something starting with __ and the normal name is an alias.  */
11538 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11539 choke me
11540 #else
11541 f = dlopen;
11542 #endif
11543
11544   ;
11545   return 0;
11546 }
11547 _ACEOF
11548 rm -f conftest.$ac_objext conftest$ac_exeext
11549 if { (eval echo "$as_me:11549: \"$ac_link\"") >&5
11550   (eval $ac_link) 2>&5
11551   ac_status=$?
11552   echo "$as_me:11552: \$? = $ac_status" >&5
11553   (exit $ac_status); } &&
11554          { ac_try='test -s conftest$ac_exeext'
11555   { (eval echo "$as_me:11555: \"$ac_try\"") >&5
11556   (eval $ac_try) 2>&5
11557   ac_status=$?
11558   echo "$as_me:11558: \$? = $ac_status" >&5
11559   (exit $ac_status); }; }; then
11560   ac_cv_func_dlopen=yes
11561 else
11562   echo "$as_me: failed program was:" >&5
11563 cat conftest.$ac_ext >&5
11564 ac_cv_func_dlopen=no
11565 fi
11566 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11567 fi
11568 echo "$as_me:11568: result: $ac_cv_func_dlopen" >&5
11569 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11570 if test $ac_cv_func_dlopen = yes; then
11571   lt_cv_dlopen="dlopen"
11572 else
11573   echo "$as_me:11573: checking for dlopen in -lsvld" >&5
11574 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11575 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11576   echo $ECHO_N "(cached) $ECHO_C" >&6
11577 else
11578   ac_check_lib_save_LIBS=$LIBS
11579 LIBS="-lsvld  $LIBS"
11580 cat >conftest.$ac_ext <<_ACEOF
11581 #line 11581 "configure"
11582 #include "confdefs.h"
11583
11584 /* Override any gcc2 internal prototype to avoid an error.  */
11585 #ifdef __cplusplus
11586 extern "C"
11587 #endif
11588 /* We use char because int might match the return type of a gcc2
11589    builtin and then its argument prototype would still apply.  */
11590 char dlopen ();
11591 int
11592 main ()
11593 {
11594 dlopen ();
11595   ;
11596   return 0;
11597 }
11598 _ACEOF
11599 rm -f conftest.$ac_objext conftest$ac_exeext
11600 if { (eval echo "$as_me:11600: \"$ac_link\"") >&5
11601   (eval $ac_link) 2>&5
11602   ac_status=$?
11603   echo "$as_me:11603: \$? = $ac_status" >&5
11604   (exit $ac_status); } &&
11605          { ac_try='test -s conftest$ac_exeext'
11606   { (eval echo "$as_me:11606: \"$ac_try\"") >&5
11607   (eval $ac_try) 2>&5
11608   ac_status=$?
11609   echo "$as_me:11609: \$? = $ac_status" >&5
11610   (exit $ac_status); }; }; then
11611   ac_cv_lib_svld_dlopen=yes
11612 else
11613   echo "$as_me: failed program was:" >&5
11614 cat conftest.$ac_ext >&5
11615 ac_cv_lib_svld_dlopen=no
11616 fi
11617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11618 LIBS=$ac_check_lib_save_LIBS
11619 fi
11620 echo "$as_me:11620: result: $ac_cv_lib_svld_dlopen" >&5
11621 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11622 if test $ac_cv_lib_svld_dlopen = yes; then
11623   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11624 fi
11625
11626 fi
11627
11628 fi
11629
11630 fi
11631
11632 fi
11633
11634     ;;
11635   esac
11636
11637   if test "x$lt_cv_dlopen" != xno; then
11638     enable_dlopen=yes
11639   else
11640     enable_dlopen=no
11641   fi
11642
11643   case $lt_cv_dlopen in
11644   dlopen)
11645     save_CPPFLAGS="$CPPFLAGS"
11646     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11647
11648     save_LDFLAGS="$LDFLAGS"
11649     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11650
11651     save_LIBS="$LIBS"
11652     LIBS="$lt_cv_dlopen_libs $LIBS"
11653
11654     echo "$as_me:11654: checking whether a program can dlopen itself" >&5
11655 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11656 if test "${lt_cv_dlopen_self+set}" = set; then
11657   echo $ECHO_N "(cached) $ECHO_C" >&6
11658 else
11659           if test "$cross_compiling" = yes; then :
11660   lt_cv_dlopen_self=cross
11661 else
11662   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11663   lt_status=$lt_dlunknown
11664   cat > conftest.$ac_ext <<EOF
11665 #line 11665 "configure"
11666 #include "confdefs.h"
11667
11668 #if HAVE_DLFCN_H
11669 #include <dlfcn.h>
11670 #endif
11671
11672 #include <stdio.h>
11673
11674 #ifdef RTLD_GLOBAL
11675 #  define LT_DLGLOBAL           RTLD_GLOBAL
11676 #else
11677 #  ifdef DL_GLOBAL
11678 #    define LT_DLGLOBAL         DL_GLOBAL
11679 #  else
11680 #    define LT_DLGLOBAL         0
11681 #  endif
11682 #endif
11683
11684 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11685    find out it does not work in some platform. */
11686 #ifndef LT_DLLAZY_OR_NOW
11687 #  ifdef RTLD_LAZY
11688 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11689 #  else
11690 #    ifdef DL_LAZY
11691 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11692 #    else
11693 #      ifdef RTLD_NOW
11694 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11695 #      else
11696 #        ifdef DL_NOW
11697 #          define LT_DLLAZY_OR_NOW      DL_NOW
11698 #        else
11699 #          define LT_DLLAZY_OR_NOW      0
11700 #        endif
11701 #      endif
11702 #    endif
11703 #  endif
11704 #endif
11705
11706 #ifdef __cplusplus
11707 extern "C" void exit (int);
11708 #endif
11709
11710 void fnord() { int i=42;}
11711 int main ()
11712 {
11713   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11714   int status = $lt_dlunknown;
11715
11716   if (self)
11717     {
11718       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11719       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11720       /* dlclose (self); */
11721     }
11722
11723     exit (status);
11724 }
11725 EOF
11726   if { (eval echo "$as_me:11726: \"$ac_link\"") >&5
11727   (eval $ac_link) 2>&5
11728   ac_status=$?
11729   echo "$as_me:11729: \$? = $ac_status" >&5
11730   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11731     (./conftest; exit; ) 2>/dev/null
11732     lt_status=$?
11733     case x$lt_status in
11734       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11735       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11736       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11737     esac
11738   else :
11739     # compilation failed
11740     lt_cv_dlopen_self=no
11741   fi
11742 fi
11743 rm -fr conftest*
11744
11745 fi
11746 echo "$as_me:11746: result: $lt_cv_dlopen_self" >&5
11747 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11748
11749     if test "x$lt_cv_dlopen_self" = xyes; then
11750       LDFLAGS="$LDFLAGS $link_static_flag"
11751       echo "$as_me:11751: checking whether a statically linked program can dlopen itself" >&5
11752 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11753 if test "${lt_cv_dlopen_self_static+set}" = set; then
11754   echo $ECHO_N "(cached) $ECHO_C" >&6
11755 else
11756           if test "$cross_compiling" = yes; then :
11757   lt_cv_dlopen_self_static=cross
11758 else
11759   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11760   lt_status=$lt_dlunknown
11761   cat > conftest.$ac_ext <<EOF
11762 #line 11762 "configure"
11763 #include "confdefs.h"
11764
11765 #if HAVE_DLFCN_H
11766 #include <dlfcn.h>
11767 #endif
11768
11769 #include <stdio.h>
11770
11771 #ifdef RTLD_GLOBAL
11772 #  define LT_DLGLOBAL           RTLD_GLOBAL
11773 #else
11774 #  ifdef DL_GLOBAL
11775 #    define LT_DLGLOBAL         DL_GLOBAL
11776 #  else
11777 #    define LT_DLGLOBAL         0
11778 #  endif
11779 #endif
11780
11781 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11782    find out it does not work in some platform. */
11783 #ifndef LT_DLLAZY_OR_NOW
11784 #  ifdef RTLD_LAZY
11785 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11786 #  else
11787 #    ifdef DL_LAZY
11788 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11789 #    else
11790 #      ifdef RTLD_NOW
11791 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11792 #      else
11793 #        ifdef DL_NOW
11794 #          define LT_DLLAZY_OR_NOW      DL_NOW
11795 #        else
11796 #          define LT_DLLAZY_OR_NOW      0
11797 #        endif
11798 #      endif
11799 #    endif
11800 #  endif
11801 #endif
11802
11803 #ifdef __cplusplus
11804 extern "C" void exit (int);
11805 #endif
11806
11807 void fnord() { int i=42;}
11808 int main ()
11809 {
11810   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11811   int status = $lt_dlunknown;
11812
11813   if (self)
11814     {
11815       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11816       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11817       /* dlclose (self); */
11818     }
11819
11820     exit (status);
11821 }
11822 EOF
11823   if { (eval echo "$as_me:11823: \"$ac_link\"") >&5
11824   (eval $ac_link) 2>&5
11825   ac_status=$?
11826   echo "$as_me:11826: \$? = $ac_status" >&5
11827   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11828     (./conftest; exit; ) 2>/dev/null
11829     lt_status=$?
11830     case x$lt_status in
11831       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11832       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11833       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11834     esac
11835   else :
11836     # compilation failed
11837     lt_cv_dlopen_self_static=no
11838   fi
11839 fi
11840 rm -fr conftest*
11841
11842 fi
11843 echo "$as_me:11843: result: $lt_cv_dlopen_self_static" >&5
11844 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11845     fi
11846
11847     CPPFLAGS="$save_CPPFLAGS"
11848     LDFLAGS="$save_LDFLAGS"
11849     LIBS="$save_LIBS"
11850     ;;
11851   esac
11852
11853   case $lt_cv_dlopen_self in
11854   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11855   *) enable_dlopen_self=unknown ;;
11856   esac
11857
11858   case $lt_cv_dlopen_self_static in
11859   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11860   *) enable_dlopen_self_static=unknown ;;
11861   esac
11862 fi
11863
11864 # The else clause should only fire when bootstrapping the
11865 # libtool distribution, otherwise you forgot to ship ltmain.sh
11866 # with your package, and you will get complaints that there are
11867 # no rules to generate ltmain.sh.
11868 if test -f "$ltmain"; then
11869   # Now quote all the things that may contain metacharacters while being
11870   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11871   # variables and quote the copies for generation of the libtool script.
11872   for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S NM SHELL \
11873     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11874     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11875     deplibs_check_method reload_flag reload_cmds need_locks \
11876     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11877     lt_cv_sys_global_symbol_to_c_name_address \
11878     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11879     old_postinstall_cmds old_postuninstall_cmds \
11880     compiler_CXX \
11881     CC_CXX \
11882     LD_CXX \
11883     lt_prog_compiler_wl_CXX \
11884     lt_prog_compiler_pic_CXX \
11885     lt_prog_compiler_static_CXX \
11886     lt_prog_compiler_no_builtin_flag_CXX \
11887     export_dynamic_flag_spec_CXX \
11888     thread_safe_flag_spec_CXX \
11889     whole_archive_flag_spec_CXX \
11890     old_archive_cmds_CXX \
11891     old_archive_from_new_cmds_CXX \
11892     predep_objects_CXX \
11893     postdep_objects_CXX \
11894     predeps_CXX \
11895     postdeps_CXX \
11896     compiler_lib_search_path_CXX \
11897     archive_cmds_CXX \
11898     archive_expsym_cmds_CXX \
11899     postinstall_cmds_CXX \
11900     postuninstall_cmds_CXX \
11901     old_archive_from_expsyms_cmds_CXX \
11902     allow_undefined_flag_CXX \
11903     no_undefined_flag_CXX \
11904     export_symbols_cmds_CXX \
11905     hardcode_libdir_flag_spec_CXX \
11906     hardcode_libdir_separator_CXX \
11907     lt_cv_prog_compiler_c_o_CXX \
11908     exclude_expsyms_CXX \
11909     include_expsyms_CXX; do
11910
11911     case $var in
11912     old_archive_cmds_CXX | \
11913     old_archive_from_new_cmds_CXX | \
11914     archive_cmds_CXX | \
11915     archive_expsym_cmds_CXX | \
11916     old_archive_from_expsyms_cmds_CXX | \
11917     export_symbols_cmds_CXX | \
11918     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11919     postinstall_cmds | postuninstall_cmds | \
11920     old_postinstall_cmds | old_postuninstall_cmds | \
11921     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11922       # Double-quote double-evaled strings.
11923       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11924       ;;
11925     *)
11926       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11927       ;;
11928     esac
11929   done
11930
11931   case $lt_echo in
11932   *'\$0 --fallback-echo"')
11933     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11934     ;;
11935   esac
11936
11937 cfgfile="$ofile"
11938
11939   cat <<__EOF__ >> "$cfgfile"
11940 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11941
11942 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11943
11944 # Shell to use when invoking shell scripts.
11945 SHELL=$lt_SHELL
11946
11947 # Whether or not to build shared libraries.
11948 build_libtool_libs=$enable_shared
11949
11950 # Whether or not to build static libraries.
11951 build_old_libs=$enable_static
11952
11953 # Whether or not to add -lc for building shared libraries.
11954 build_libtool_need_lc=$archive_cmds_need_lc_CXX
11955
11956 # Whether or not to optimize for fast installation.
11957 fast_install=$enable_fast_install
11958
11959 # The host system.
11960 host_alias=$host_alias
11961 host=$host
11962
11963 # An echo program that does not interpret backslashes.
11964 echo=$lt_echo
11965
11966 # The archiver.
11967 AR=$lt_AR
11968 AR_FLAGS=$lt_AR_FLAGS
11969
11970 # A C compiler.
11971 LTCC=$LTCC
11972
11973 # A language-specific compiler.
11974 CC=$lt_compiler_CXX
11975
11976 # Is the compiler the GNU C compiler?
11977 with_gcc=$GCC_CXX
11978
11979 # The linker used to build libraries.
11980 LD=$lt_LD_CXX
11981
11982 # Whether we need hard or soft links.
11983 LN_S=$lt_LN_S
11984
11985 # A BSD-compatible nm program.
11986 NM=$lt_NM
11987
11988 # A symbol stripping program
11989 STRIP=$STRIP
11990
11991 # Used to examine libraries when file_magic_cmd begins "file"
11992 MAGIC_CMD=$MAGIC_CMD
11993
11994 # Used on cygwin: DLL creation program.
11995 DLLTOOL="$DLLTOOL"
11996
11997 # Used on cygwin: object dumper.
11998 OBJDUMP="$OBJDUMP"
11999
12000 # Used on cygwin: assembler.
12001 AS="$AS"
12002
12003 # The name of the directory that contains temporary libtool files.
12004 objdir=$objdir
12005
12006 # How to create reloadable object files.
12007 reload_flag=$lt_reload_flag
12008 reload_cmds=$lt_reload_cmds
12009
12010 # How to pass a linker flag through the compiler.
12011 wl=$lt_lt_prog_compiler_wl_CXX
12012
12013 # Object file suffix (normally "o").
12014 objext="$ac_objext"
12015
12016 # Old archive suffix (normally "a").
12017 libext="$libext"
12018
12019 # Executable file suffix (normally "").
12020 exeext="$exeext"
12021
12022 # Additional compiler flags for building library objects.
12023 pic_flag=$lt_lt_prog_compiler_pic_CXX
12024 pic_mode=$pic_mode
12025
12026 # What is the maximum length of a command?
12027 max_cmd_len=$lt_cv_sys_max_cmd_len
12028
12029 # Does compiler simultaneously support -c and -o options?
12030 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12031
12032 # Must we lock files when doing compilation ?
12033 need_locks=$lt_need_locks
12034
12035 # Do we need the lib prefix for modules?
12036 need_lib_prefix=$need_lib_prefix
12037
12038 # Do we need a version for libraries?
12039 need_version=$need_version
12040
12041 # Whether dlopen is supported.
12042 dlopen_support=$enable_dlopen
12043
12044 # Whether dlopen of programs is supported.
12045 dlopen_self=$enable_dlopen_self
12046
12047 # Whether dlopen of statically linked programs is supported.
12048 dlopen_self_static=$enable_dlopen_self_static
12049
12050 # Compiler flag to prevent dynamic linking.
12051 link_static_flag=$lt_lt_prog_compiler_static_CXX
12052
12053 # Compiler flag to turn off builtin functions.
12054 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12055
12056 # Compiler flag to allow reflexive dlopens.
12057 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12058
12059 # Compiler flag to generate shared objects directly from archives.
12060 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12061
12062 # Compiler flag to generate thread-safe objects.
12063 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12064
12065 # Library versioning type.
12066 version_type=$version_type
12067
12068 # Format of library name prefix.
12069 libname_spec=$lt_libname_spec
12070
12071 # List of archive names.  First name is the real one, the rest are links.
12072 # The last name is the one that the linker finds with -lNAME.
12073 library_names_spec=$lt_library_names_spec
12074
12075 # The coded name of the library, if different from the real name.
12076 soname_spec=$lt_soname_spec
12077
12078 # Commands used to build and install an old-style archive.
12079 RANLIB=$lt_RANLIB
12080 old_archive_cmds=$lt_old_archive_cmds_CXX
12081 old_postinstall_cmds=$lt_old_postinstall_cmds
12082 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12083
12084 # Create an old-style archive from a shared archive.
12085 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12086
12087 # Create a temporary old-style archive to link instead of a shared archive.
12088 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12089
12090 # Commands used to build and install a shared archive.
12091 archive_cmds=$lt_archive_cmds_CXX
12092 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12093 postinstall_cmds=$lt_postinstall_cmds
12094 postuninstall_cmds=$lt_postuninstall_cmds
12095
12096 # Commands to strip libraries.
12097 old_striplib=$lt_old_striplib
12098 striplib=$lt_striplib
12099
12100 # Dependencies to place before the objects being linked to create a
12101 # shared library.
12102 predep_objects=$lt_predep_objects_CXX
12103
12104 # Dependencies to place after the objects being linked to create a
12105 # shared library.
12106 postdep_objects=$lt_postdep_objects_CXX
12107
12108 # Dependencies to place before the objects being linked to create a
12109 # shared library.
12110 predeps=$lt_predeps_CXX
12111
12112 # Dependencies to place after the objects being linked to create a
12113 # shared library.
12114 postdeps=$lt_postdeps_CXX
12115
12116 # The library search path used internally by the compiler when linking
12117 # a shared library.
12118 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12119
12120 # Method to check whether dependent libraries are shared objects.
12121 deplibs_check_method=$lt_deplibs_check_method
12122
12123 # Command to use when deplibs_check_method == file_magic.
12124 file_magic_cmd=$lt_file_magic_cmd
12125
12126 # Flag that allows shared libraries with undefined symbols to be built.
12127 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12128
12129 # Flag that forces no undefined symbols.
12130 no_undefined_flag=$lt_no_undefined_flag_CXX
12131
12132 # Commands used to finish a libtool library installation in a directory.
12133 finish_cmds=$lt_finish_cmds
12134
12135 # Same as above, but a single script fragment to be evaled but not shown.
12136 finish_eval=$lt_finish_eval
12137
12138 # Take the output of nm and produce a listing of raw symbols and C names.
12139 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12140
12141 # Transform the output of nm in a proper C declaration
12142 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12143
12144 # Transform the output of nm in a C name address pair
12145 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12146
12147 # This is the shared library runtime path variable.
12148 runpath_var=$runpath_var
12149
12150 # This is the shared library path variable.
12151 shlibpath_var=$shlibpath_var
12152
12153 # Is shlibpath searched before the hard-coded library search path?
12154 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12155
12156 # How to hardcode a shared library path into an executable.
12157 hardcode_action=$hardcode_action_CXX
12158
12159 # Whether we should hardcode library paths into libraries.
12160 hardcode_into_libs=$hardcode_into_libs
12161
12162 # Flag to hardcode \$libdir into a binary during linking.
12163 # This must work even if \$libdir does not exist.
12164 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12165
12166 # Whether we need a single -rpath flag with a separated argument.
12167 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12168
12169 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
12170 # resulting binary.
12171 hardcode_direct=$hardcode_direct_CXX
12172
12173 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12174 # resulting binary.
12175 hardcode_minus_L=$hardcode_minus_L_CXX
12176
12177 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12178 # the resulting binary.
12179 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12180
12181 # Variables whose values should be saved in libtool wrapper scripts and
12182 # restored at relink time.
12183 variables_saved_for_relink="$variables_saved_for_relink"
12184
12185 # Whether libtool must link a program against all its dependency libraries.
12186 link_all_deplibs=$link_all_deplibs_CXX
12187
12188 # Compile-time system search path for libraries
12189 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12190
12191 # Run-time system search path for libraries
12192 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12193
12194 # Fix the shell variable \$srcfile for the compiler.
12195 fix_srcfile_path="$fix_srcfile_path_CXX"
12196
12197 # Set to yes if exported symbols are required.
12198 always_export_symbols=$always_export_symbols_CXX
12199
12200 # The commands to list exported symbols.
12201 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12202
12203 # The commands to extract the exported symbol list from a shared archive.
12204 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12205
12206 # Symbols that should not be listed in the preloaded symbols.
12207 exclude_expsyms=$lt_exclude_expsyms_CXX
12208
12209 # Symbols that must always be exported.
12210 include_expsyms=$lt_include_expsyms_CXX
12211
12212 # ### END LIBTOOL TAG CONFIG: $tagname
12213
12214 __EOF__
12215
12216 else
12217   # If there is no Makefile yet, we rely on a make rule to execute
12218   # `config.status --recheck' to rerun these tests and create the
12219   # libtool script then.
12220   test -f Makefile && make "$ltmain"
12221 fi
12222
12223 ac_ext=c
12224 ac_cpp='$CPP $CPPFLAGS'
12225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12228
12229 CC="$lt_save_CC"
12230
12231         ;;
12232
12233       F77)
12234         ac_ext=f
12235 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12236 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12237 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12238
12239 # Source file extension for f77 test sources.
12240 ac_ext=f
12241
12242 # Object file extension for compiled f77 test sources.
12243 objext=o
12244 objext_F77=$objext
12245
12246 # Code to be used in simple compile tests
12247 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12248
12249 # Code to be used in simple link tests
12250 lt_simple_link_test_code="      program t\n      end\n"
12251
12252 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12253
12254 # If no C compiler was specified, use CC.
12255 LTCC=${LTCC-"$CC"}
12256
12257 # Allow CC to be a program name with arguments.
12258 set dummy $CC
12259 compiler="$2"
12260
12261 # Allow CC to be a program name with arguments.
12262 lt_save_CC="$CC"
12263 CC=${F77-"f77"}
12264 set dummy $CC
12265 compiler="$2"
12266 compiler_F77=$CC
12267 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12268
12269 # Report which library types wil actually be built
12270 echo "$as_me:12270: checking if libtool supports shared libraries" >&5
12271 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12272 echo "$as_me:12272: result: $can_build_shared" >&5
12273 echo "${ECHO_T}$can_build_shared" >&6
12274
12275 echo "$as_me:12275: checking whether to build shared libraries" >&5
12276 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12277 test "$can_build_shared" = "no" && enable_shared=no
12278
12279 # We never build shared libraries with the fortran linker;
12280 # this support is only meant for including fortran objects
12281 # in C libraries. You should normally always be able to
12282 # perform the linking stage with the C compiler, anyway...
12283
12284 # On AIX, shared libraries and static libraries use the same namespace, and
12285 # are all built from PIC.
12286 case "$host_os" in
12287 aix3*)
12288   test "$enable_shared" = yes && enable_static=no
12289   if test -n "$RANLIB"; then
12290     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12291     postinstall_cmds='$RANLIB $lib'
12292   fi
12293   ;;
12294
12295 aix4*)
12296   test "$enable_shared" = yes && enable_static=no
12297   ;;
12298 esac
12299 echo "$as_me:12299: result: $enable_shared" >&5
12300 echo "${ECHO_T}$enable_shared" >&6
12301
12302 echo "$as_me:12302: checking whether to build static libraries" >&5
12303 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12304 # Make sure either enable_shared or enable_static is yes.
12305 test "$enable_shared" = yes || enable_static=yes
12306 echo "$as_me:12306: result: $enable_static" >&5
12307 echo "${ECHO_T}$enable_static" >&6
12308
12309 lt_prog_compiler_wl_F77=
12310 lt_prog_compiler_pic_F77=
12311 lt_prog_compiler_static_F77=
12312
12313 echo "$as_me:12313: checking for $compiler option to produce PIC" >&5
12314 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12315 if test "$GCC" = yes; then
12316   lt_prog_compiler_wl_F77='-Wl,'
12317   lt_prog_compiler_static_F77='-static'
12318
12319   case $host_os in
12320     aix*)
12321     # All AIX code is PIC.
12322     if test "$host_cpu" = ia64; then
12323       # AIX 5 now supports IA64 processor
12324       lt_prog_compiler_static_F77='-Bstatic'
12325     else
12326       lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12327     fi
12328     ;;
12329
12330   amigaos*)
12331     # FIXME: we need at least 68020 code to build shared libraries, but
12332     # adding the `-m68020' flag to GCC prevents building anything better,
12333     # like `-m68040'.
12334     lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12335     ;;
12336
12337   beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
12338     # PIC is the default for these OSes.
12339     ;;
12340
12341   cygwin* | mingw* | pw32* | os2*)
12342     # This hack is so that the source file can tell whether it is being
12343     # built for inclusion in a dll (and should export symbols for example).
12344     lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12345     ;;
12346
12347   darwin* | rhapsody*)
12348     # PIC is the default on this platform
12349     # Common symbols not allowed in MH_DYLIB files
12350     lt_prog_compiler_pic_F77='-fno-common'
12351     ;;
12352
12353   msdosdjgpp*)
12354     # Just because we use GCC doesn't mean we suddenly get shared libraries
12355     # on systems that don't support them.
12356     lt_prog_compiler_can_build_shared_F77=no
12357     enable_shared=no
12358     ;;
12359
12360   sysv4*MP*)
12361     if test -d /usr/nec; then
12362       lt_prog_compiler_pic_F77=-Kconform_pic
12363     fi
12364     ;;
12365
12366   *)
12367     lt_prog_compiler_pic_F77='-fPIC'
12368     ;;
12369   esac
12370 else
12371   # PORTME Check for flag to pass linker flags through the system compiler.
12372   case $host_os in
12373   aix*)
12374     lt_prog_compiler_wl_F77='-Wl,'
12375     if test "$host_cpu" = ia64; then
12376       # AIX 5 now supports IA64 processor
12377       lt_prog_compiler_static_F77='-Bstatic'
12378     else
12379       lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12380     fi
12381     ;;
12382
12383   cygwin* | mingw* | pw32* | os2*)
12384     # This hack is so that the source file can tell whether it is being
12385     # built for inclusion in a dll (and should export symbols for example).
12386     lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12387     ;;
12388
12389   hpux9* | hpux10* | hpux11*)
12390     lt_prog_compiler_wl_F77='-Wl,'
12391     lt_prog_compiler_pic_F77='+Z'
12392     # Is there a better lt_prog_compiler_static that works with the bundled CC?
12393     lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12394     ;;
12395
12396   irix5* | irix6*)
12397     lt_prog_compiler_wl_F77='-Wl,'
12398     # PIC (with -KPIC) is the default.
12399     lt_prog_compiler_static_F77='-non_shared'
12400     ;;
12401
12402   linux*)
12403     # Check flags for non-gnu compilers on Linux
12404     case "$host_cpu" in
12405     alpha*)
12406       # The only non-gnu compiler on Linux/Alpha is the Compaq one:
12407       lt_prog_compiler_wl_F77='-Wl,'
12408       lt_prog_compiler_static_F77='-non_shared'
12409       ;;
12410     *)
12411       lt_prog_compiler_can_build_shared_F77=no
12412       ;;
12413     esac
12414     ;;
12415   newsos6)
12416     lt_prog_compiler_pic_F77='-KPIC'
12417     lt_prog_compiler_static_F77='-Bstatic'
12418     ;;
12419
12420   osf3* | osf4* | osf5*)
12421     lt_prog_compiler_wl_F77='-Wl,'
12422     # All OSF/1 code is PIC.
12423     lt_prog_compiler_static_F77='-non_shared'
12424     ;;
12425
12426   sco3.2v5*)
12427     lt_prog_compiler_pic_F77='-Kpic'
12428     lt_prog_compiler_static_F77='-dn'
12429     ;;
12430
12431   solaris*)
12432     lt_prog_compiler_wl_F77='-Wl,'
12433     lt_prog_compiler_pic_F77='-KPIC'
12434     lt_prog_compiler_static_F77='-Bstatic'
12435     ;;
12436
12437   sunos4*)
12438     lt_prog_compiler_wl_F77='-Qoption ld '
12439     lt_prog_compiler_pic_F77='-PIC'
12440     lt_prog_compiler_static_F77='-Bstatic'
12441     ;;
12442
12443   sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12444     if test "x$host_vendor" = xsni; then
12445       lt_prog_compiler_wl_F77='-LD'
12446     else
12447       lt_prog_compiler_wl_F77='-Wl,'
12448     fi
12449     lt_prog_compiler_pic_F77='-KPIC'
12450     lt_prog_compiler_static_F77='-Bstatic'
12451     ;;
12452
12453   sysv4*MP*)
12454     if test -d /usr/nec ;then
12455       lt_prog_compiler_pic_F77='-Kconform_pic'
12456       lt_prog_compiler_static_F77='-Bstatic'
12457     fi
12458     ;;
12459
12460   uts4*)
12461     lt_prog_compiler_pic_F77='-pic'
12462     lt_prog_compiler_static_F77='-Bstatic'
12463     ;;
12464
12465   *)
12466     lt_prog_compiler_can_build_shared_F77=no
12467     ;;
12468   esac
12469 fi
12470 echo "$as_me:12470: result: $lt_prog_compiler_pic_F77" >&5
12471 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12472
12473 #
12474 # Check to make sure the PIC flag actually works.
12475 #
12476 if test -n "$lt_prog_compiler_pic_F77"; then
12477   echo "$as_me:12477: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12478 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12479 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12480   echo $ECHO_N "(cached) $ECHO_C" >&6
12481 else
12482   lt_prog_compiler_pic_works_F77=no
12483   ac_outfile=conftest.$ac_objext
12484    save_CFLAGS="$CFLAGS"
12485    CFLAGS="$CFLAGS $lt_prog_compiler_pic_F77"
12486    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12487    if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
12488      # The compiler can only warn and ignore the option if not recognized
12489      # So say no if there are warnings
12490      if test -s conftest.err; then
12491        # Append any errors to the config.log.
12492        cat conftest.err 1>&5
12493      else
12494        lt_prog_compiler_pic_works_F77=yes
12495      fi
12496    fi
12497    $rm conftest*
12498    CFLAGS="$save_CFLAGS"
12499
12500 fi
12501 echo "$as_me:12501: result: $lt_prog_compiler_pic_works_F77" >&5
12502 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12503
12504 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12505     case $lt_prog_compiler_pic_F77 in
12506      "" | " "*) ;;
12507      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12508      esac
12509
12510 else
12511     lt_prog_compiler_pic_F77=
12512      lt_prog_compiler_can_build_shared_F77=no
12513 fi
12514
12515 fi
12516 case "$host_os" in
12517   # For platforms which do not support PIC, -DPIC is meaningless:
12518   *djgpp*)
12519     lt_prog_compiler_pic_F77=
12520     ;;
12521   *)
12522     echo "$as_me:12522: checking if $compiler PIC define -DPIC works" >&5
12523 echo $ECHO_N "checking if $compiler PIC define -DPIC works... $ECHO_C" >&6
12524 if test "${lt_prog_compiler_picdef_works_F77+set}" = set; then
12525   echo $ECHO_N "(cached) $ECHO_C" >&6
12526 else
12527   lt_prog_compiler_picdef_works_F77=no
12528   ac_outfile=conftest.$ac_objext
12529    save_CFLAGS="$CFLAGS"
12530    CFLAGS="$CFLAGS $lt_prog_compiler_pic_F77 -DPIC"
12531    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12532    if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
12533      # The compiler can only warn and ignore the option if not recognized
12534      # So say no if there are warnings
12535      if test -s conftest.err; then
12536        # Append any errors to the config.log.
12537        cat conftest.err 1>&5
12538      else
12539        lt_prog_compiler_picdef_works_F77=yes
12540      fi
12541    fi
12542    $rm conftest*
12543    CFLAGS="$save_CFLAGS"
12544
12545 fi
12546 echo "$as_me:12546: result: $lt_prog_compiler_picdef_works_F77" >&5
12547 echo "${ECHO_T}$lt_prog_compiler_picdef_works_F77" >&6
12548
12549 if test x"$lt_prog_compiler_picdef_works_F77" = xyes; then
12550     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77 -DPIC"
12551 else
12552     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12553 fi
12554
12555     ;;
12556 esac
12557
12558 echo "$as_me:12558: checking if $compiler supports -c -o file.$ac_objext" >&5
12559 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12560 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12561   echo $ECHO_N "(cached) $ECHO_C" >&6
12562 else
12563   lt_cv_prog_compiler_c_o_F77=no
12564    $rm -r conftest 2>/dev/null
12565    mkdir conftest
12566    cd conftest
12567    mkdir out
12568    save_FFLAGS="$FFLAGS"
12569    FFLAGS="$FFLAGS -o out/conftest2.$ac_objext"
12570    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12571
12572    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12573    # that will create temporary files in the current directory regardless of
12574    # the output directory.  Thus, making CWD read-only will cause this test
12575    # to fail, enabling locking or at least warning the user not to do parallel
12576    # builds.
12577    chmod -w .
12578
12579    if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
12580    then
12581      # The compiler can only warn and ignore the option if not recognized
12582      # So say no if there are warnings
12583      if test -s out/conftest.err; then
12584        # Append any errors to the config.log.
12585        cat out/conftest.err 1>&5
12586      else
12587        lt_cv_prog_compiler_c_o_F77=yes
12588      fi
12589    fi
12590    FFLAGS="$save_FFLAGS"
12591
12592    chmod u+w .
12593    $rm conftest* out/*
12594    rmdir out
12595    cd ..
12596    rmdir conftest
12597    $rm conftest*
12598
12599 fi
12600 echo "$as_me:12600: result: $lt_cv_prog_compiler_c_o_F77" >&5
12601 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12602
12603 echo "$as_me:12603: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12604 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12605
12606 runpath_var=
12607 allow_undefined_flag_F77=
12608
12609 archive_cmds_F77=
12610 archive_cmds_need_lc_F77=
12611 archive_expsym_cmds_F77=
12612 old_archive_From_new_cmds_F77=
12613 old_archive_from_expsyms_cmds_F77=
12614 export_dynamic_flag_spec_F77=
12615 whole_archive_flag_spec_F77=
12616 thread_safe_flag_spec_F77=
12617 hardcode_libdir_flag_spec_F77=
12618 hardcode_libdir_separator_F77=
12619 hardcode_direct_F77=no
12620 hardcode_minus_L_F77=no
12621 hardcode_shlibpath_var_F77=unsupported
12622 link_all_deplibs_F77=unknown
12623 always_export_symbols_F77=no
12624 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
12625 # include_expsyms should be a list of space-separated symbols to be *always*
12626 # included in the symbol list
12627 include_expsyms_F77=
12628 # exclude_expsyms can be an egrep regular expression of symbols to exclude
12629 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12630 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12631 # as well as any symbol that contains `d'.
12632 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12633 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12634 # platforms (ab)use it in PIC code, but their linkers get confused if
12635 # the symbol is explicitly referenced.  Since portable code cannot
12636 # rely on this symbol name, it's probably fine to never include it in
12637 # preloaded symbol tables.
12638 extract_expsyms_cmds=
12639
12640 case $host_os in
12641 cygwin* | mingw* | pw32*)
12642   # FIXME: the MSVC++ port hasn't been tested in a loooong time
12643   # When not using gcc, we currently assume that we are using
12644   # Microsoft Visual C++.
12645   if test "$GCC" != yes; then
12646     with_gnu_ld=no
12647   fi
12648   ;;
12649 openbsd*)
12650   with_gnu_ld=no
12651   ;;
12652 esac
12653
12654 ld_shlibs_F77=yes
12655 if test "$with_gnu_ld" = yes; then
12656   # If archive_cmds runs LD, not CC, wlarc should be empty
12657   wlarc='${wl}'
12658
12659   # See if GNU ld supports shared libraries.
12660   case $host_os in
12661   aix3* | aix4* | aix5*)
12662     # On AIX/PPC, the GNU linker is very broken
12663     if test "$host_cpu" != ia64; then
12664       ld_shlibs_F77=no
12665       cat <<EOF 1>&2
12666
12667 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12668 *** to be unable to reliably create shared libraries on AIX.
12669 *** Therefore, libtool is disabling shared libraries support.  If you
12670 *** really care for shared libraries, you may want to modify your PATH
12671 *** so that a non-GNU linker is found, and then restart.
12672
12673 EOF
12674     fi
12675     ;;
12676
12677   amigaos*)
12678     archive_cmds_F77='$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)'
12679     hardcode_libdir_flag_spec_F77='-L$libdir'
12680     hardcode_minus_L_F77=yes
12681
12682     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12683     # that the semantics of dynamic libraries on AmigaOS, at least up
12684     # to version 4, is to share data among multiple programs linked
12685     # with the same dynamic library.  Since this doesn't match the
12686     # behavior of shared libraries on other platforms, we can't use
12687     # them.
12688     ld_shlibs_F77=no
12689     ;;
12690
12691   beos*)
12692     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12693       allow_undefined_flag_F77=unsupported
12694       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12695       # support --undefined.  This deserves some investigation.  FIXME
12696       archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12697     else
12698       ld_shlibs_F77=no
12699     fi
12700     ;;
12701
12702   cygwin* | mingw* | pw32*)
12703     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, as there is
12704     # no search path for DLLs.
12705     hardcode_libdir_flag_spec_F77='-L$libdir'
12706     allow_undefined_flag_F77=unsupported
12707     always_export_symbols_F77=yes
12708
12709     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
12710       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
12711       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
12712       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
12713       else $CC -o impgen impgen.c ; fi)~
12714       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
12715
12716     old_archive_from_expsyms_cmds_F77='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
12717
12718     # cygwin and mingw dlls have different entry points and sets of symbols
12719     # to exclude.
12720     # FIXME: what about values for MSVC?
12721     dll_entry=__cygwin_dll_entry@12
12722     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
12723     case $host_os in
12724     mingw*)
12725       # mingw values
12726       dll_entry=_DllMainCRTStartup@12
12727       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
12728       ;;
12729     esac
12730
12731     # mingw and cygwin differ, and it's simplest to just exclude the union
12732     # of the two symbol sets.
12733     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
12734
12735     # recent cygwin and mingw systems supply a stub DllMain which the user
12736     # can override, but on older systems we have to supply one (in ltdll.c)
12737     if test "x$lt_cv_need_dllmain" = "xyes"; then
12738       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
12739       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~
12740         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
12741     else
12742       ltdll_obj=
12743       ltdll_cmds=
12744     fi
12745
12746     # Extract the symbol export list from an `--export-all' def file,
12747     # then regenerate the def file from the symbol export list, so that
12748     # the compiled dll only exports the symbol export list.
12749     # Be careful not to strip the DATA tag left by newer dlltools.
12750     export_symbols_cmds_F77="$ltdll_cmds"'
12751       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
12752       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
12753
12754     # If the export-symbols file already is a .def file (1st line
12755     # is EXPORTS), use it as is.
12756     # If DATA tags from a recent dlltool are present, honour them!
12757     archive_expsym_cmds_F77='if test "x`head -1 $export_symbols`" = xEXPORTS; then
12758         cp $export_symbols $output_objdir/$soname-def;
12759       else
12760         echo EXPORTS > $output_objdir/$soname-def;
12761         _lt_hint=1;
12762         cat $export_symbols | while read symbol; do
12763          set dummy \$symbol;
12764          case \$# in
12765            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
12766            *) echo "   \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
12767          esac;
12768          _lt_hint=`expr 1 + \$_lt_hint`;
12769         done;
12770       fi~
12771       '"$ltdll_cmds"'
12772       $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~
12773       $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~
12774       $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~
12775       $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~
12776       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
12777     ;;
12778
12779   darwin* | rhapsody*)
12780     allow_undefined_flag_F77='-undefined suppress'
12781     # FIXME: Relying on posixy $() will cause problems for
12782     #        cross-compilation, but unfortunately the echo tests do not
12783     #        yet detect zsh echo's removal of \ escapes.
12784     archive_cmds_F77='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)'
12785     # We need to add '_' to the symbols in $export_symbols first
12786     #_LT_AC_TAGVAR(archive_expsym_cmds, F77)="$_LT_AC_TAGVAR(archive_cmds, F77)"' && strip -s $export_symbols'
12787     hardcode_direct_F77=yes
12788     hardcode_shlibpath_var_F77=no
12789     whole_archive_flag_spec_F77='-all_load $convenience'
12790     ;;
12791
12792   netbsd*)
12793     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12794       archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12795       wlarc=
12796     else
12797       archive_cmds_F77='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12798       archive_expsym_cmds_F77='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12799     fi
12800     ;;
12801
12802   solaris* | sysv5*)
12803     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
12804       ld_shlibs_F77=no
12805       cat <<EOF 1>&2
12806
12807 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12808 *** create shared libraries on Solaris systems.  Therefore, libtool
12809 *** is disabling shared libraries support.  We urge you to upgrade GNU
12810 *** binutils to release 2.9.1 or newer.  Another option is to modify
12811 *** your PATH or compiler configuration so that the native linker is
12812 *** used, and then restart.
12813
12814 EOF
12815     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12816       archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12817       archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12818     else
12819       ld_shlibs_F77=no
12820     fi
12821     ;;
12822
12823   sunos4*)
12824     archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12825     wlarc=
12826     hardcode_direct_F77=yes
12827     hardcode_shlibpath_var_F77=no
12828     ;;
12829
12830   *)
12831     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12832       archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12833       archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12834     else
12835       ld_shlibs_F77=no
12836     fi
12837     ;;
12838   esac
12839
12840   if test "$ld_shlibs_F77" = yes; then
12841     runpath_var=LD_RUN_PATH
12842     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12843     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12844     case $host_os in
12845     cygwin* | mingw* | pw32*)
12846       # dlltool doesn't understand --whole-archive et. al.
12847       whole_archive_flag_spec_F77=
12848       ;;
12849     *)
12850       # ancient GNU ld didn't support --whole-archive et. al.
12851       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
12852         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12853       else
12854         whole_archive_flag_spec_F77=
12855       fi
12856       ;;
12857     esac
12858   fi
12859 else
12860   # PORTME fill in a description of your system's linker (not GNU ld)
12861   case $host_os in
12862   aix3*)
12863     allow_undefined_flag_F77=unsupported
12864     always_export_symbols_F77=yes
12865     archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
12866     # Note: this linker hardcodes the directories in LIBPATH if there
12867     # are no directories specified by -L.
12868     hardcode_minus_L_F77=yes
12869     if test "$GCC" = yes && test -z "$link_static_flag"; then
12870       # Neither direct hardcoding nor static linking is supported with a
12871       # broken collect2.
12872       hardcode_direct_F77=unsupported
12873     fi
12874     ;;
12875
12876   aix4* | aix5*)
12877     hardcode_direct_F77=yes
12878     hardcode_libdir_separator_F77=':'
12879     link_all_deplibs_F77=yes
12880     # When large executables or shared objects are built, AIX ld can
12881     # have problems creating the table of contents.  If linking a library
12882     # or program results in "error TOC overflow" add -mminimal-toc to
12883     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12884     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12885     if test "$GCC" = yes; then
12886       case $host_os in aix4.012|aix4.-12.*)
12887         # We only want to do this on AIX 4.2 and lower, the check
12888         # below for broken collect2 doesn't work under 4.3+
12889         collect2name=`${CC} -print-prog-name=collect2`
12890         if test -f "$collect2name" && \
12891            strings "$collect2name" | grep resolve_lib_name >/dev/null
12892         then
12893           # We have reworked collect2
12894           hardcode_direct_F77=yes
12895         else
12896           # We have old collect2
12897           hardcode_direct_F77=unsupported
12898           # It fails to find uninstalled libraries when the uninstalled
12899           # path is not listed in the libpath.  Setting hardcode_minus_L
12900           # to unsupported forces relinking
12901           hardcode_minus_L_F77=yes
12902           hardcode_libdir_flag_spec_F77='-L$libdir'
12903           hardcode_libdir_separator_F77=
12904         fi
12905       esac
12906       shared_flag='-shared'
12907     else
12908       # not using gcc
12909       if test "$host_cpu" = ia64; then
12910         shared_flag='${wl}-G'
12911       else
12912         shared_flag='${wl}-bM:SRE'
12913       fi
12914     fi
12915
12916     if test "$host_cpu" = ia64; then
12917       # On IA64, the linker does run time linking by default, so we don't
12918       # have to do anything special.
12919       aix_use_runtimelinking=no
12920         if test $with_gnu_ld = no; then
12921           exp_sym_flag='-Bexport'
12922         fi
12923       no_entry_flag=""
12924     else
12925       # Test if we are trying to use run time linking, or normal AIX style
12926       # linking.  If -brtl is somewhere in LDFLAGS, we need to do run time
12927       # linking.
12928       aix_use_runtimelinking=no
12929       for ld_flag in $LDFLAGS; do
12930         if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then
12931           aix_use_runtimelinking=yes
12932           break
12933         fi
12934       done
12935       exp_sym_flag='-bexport'
12936       no_entry_flag='-bnoentry'
12937     fi
12938     # -bexpall does not export symbols beginning with underscore (_)
12939     always_export_symbols_F77=yes
12940     if test "$aix_use_runtimelinking" = yes; then
12941       # Warning - without using the other run time loading flags (-brtl),
12942       #           -berok will link without error, but may produce a broken
12943       #           library.
12944       allow_undefined_flag_F77=' $wl}-berok'
12945       # Determine the default libpath from the value encoded in an empty executable.
12946       # If we don't find anything, use the default library path according to the cc manual.
12947       cat >conftest.$ac_ext <<_ACEOF
12948       program main
12949
12950       end
12951 _ACEOF
12952 rm -f conftest.$ac_objext conftest$ac_exeext
12953 if { (eval echo "$as_me:12953: \"$ac_link\"") >&5
12954   (eval $ac_link) 2>&5
12955   ac_status=$?
12956   echo "$as_me:12956: \$? = $ac_status" >&5
12957   (exit $ac_status); } &&
12958          { ac_try='test -s conftest$ac_exeext'
12959   { (eval echo "$as_me:12959: \"$ac_try\"") >&5
12960   (eval $ac_try) 2>&5
12961   ac_status=$?
12962   echo "$as_me:12962: \$? = $ac_status" >&5
12963   (exit $ac_status); }; }; then
12964
12965 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`
12966 # Check for a 64-bit object if we didn't find anything.
12967 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`; fi
12968 else
12969   echo "$as_me: failed program was:" >&5
12970 cat conftest.$ac_ext >&5
12971 fi
12972 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12973 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12974
12975       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
12976       archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
12977     else
12978       if test "$host_cpu" = ia64; then
12979         if test $with_gnu_ld = no; then
12980           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
12981           allow_undefined_flag_F77="-z nodefs"
12982           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
12983         fi
12984       else
12985         # Determine the default libpath from the value encoded in an empty executable.
12986         cat >conftest.$ac_ext <<_ACEOF
12987       program main
12988
12989       end
12990 _ACEOF
12991 rm -f conftest.$ac_objext conftest$ac_exeext
12992 if { (eval echo "$as_me:12992: \"$ac_link\"") >&5
12993   (eval $ac_link) 2>&5
12994   ac_status=$?
12995   echo "$as_me:12995: \$? = $ac_status" >&5
12996   (exit $ac_status); } &&
12997          { ac_try='test -s conftest$ac_exeext'
12998   { (eval echo "$as_me:12998: \"$ac_try\"") >&5
12999   (eval $ac_try) 2>&5
13000   ac_status=$?
13001   echo "$as_me:13001: \$? = $ac_status" >&5
13002   (exit $ac_status); }; }; then
13003
13004 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`
13005 # Check for a 64-bit object if we didn't find anything.
13006 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`; fi
13007 else
13008   echo "$as_me: failed program was:" >&5
13009 cat conftest.$ac_ext >&5
13010 fi
13011 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13012 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13013
13014         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13015         allow_undefined_flag_F77=' ${wl}-berok'
13016         # -bexpall does not export symbols beginning with underscore (_)
13017         always_export_symbols_F77=yes
13018         # Exported symbols can be pulled into shared objects from archives
13019         whole_archive_flag_spec_F77=' '
13020         archive_cmds_need_lc_F77=yes
13021         # This is similar to how AIX traditionally builds it's shared
13022         # libraries.
13023         archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13024       fi
13025     fi
13026     ;;
13027
13028   amigaos*)
13029     archive_cmds_F77='$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)'
13030     hardcode_libdir_flag_spec_F77='-L$libdir'
13031     hardcode_minus_L_F77=yes
13032     # see comment about different semantics on the GNU ld section
13033     ld_shlibs_F77=no
13034     ;;
13035
13036   bsdi4*)
13037     export_dynamic_flag_spec_F77=-rdynamic
13038     ;;
13039
13040   cygwin* | mingw* | pw32*)
13041     # When not using gcc, we currently assume that we are using
13042     # Microsoft Visual C++.
13043     # hardcode_libdir_flag_spec is actually meaningless, as there is
13044     # no search path for DLLs.
13045     hardcode_libdir_flag_spec_F77=' '
13046     allow_undefined_flag_F77=unsupported
13047     # Tell ltmain to make .lib files, not .a files.
13048     libext=lib
13049     # FIXME: Setting linknames here is a bad hack.
13050     archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
13051     # The linker will automatically build a .lib file if we build a DLL.
13052     old_archive_From_new_cmds_F77='true'
13053     # FIXME: Should let the user specify the lib program.
13054     old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13055     fix_srcfile_path='`cygpath -w "$srcfile"`'
13056     ;;
13057
13058   dgux*)
13059     archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13060     hardcode_libdir_flag_spec_F77='-L$libdir'
13061     hardcode_shlibpath_var_F77=no
13062     ;;
13063
13064   freebsd1*)
13065     ld_shlibs_F77=no
13066     ;;
13067
13068   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13069   # support.  Future versions do this automatically, but an explicit c++rt0.o
13070   # does not break anything, and helps significantly (at the cost of a little
13071   # extra space).
13072   freebsd2.2*)
13073     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13074     hardcode_libdir_flag_spec_F77='-R$libdir'
13075     hardcode_direct_F77=yes
13076     hardcode_shlibpath_var_F77=no
13077     ;;
13078
13079   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13080   freebsd2*)
13081     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13082     hardcode_direct_F77=yes
13083     hardcode_minus_L_F77=yes
13084     hardcode_shlibpath_var_F77=no
13085     ;;
13086
13087   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13088   freebsd*)
13089     archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13090     hardcode_libdir_flag_spec_F77='-R$libdir'
13091     hardcode_direct_F77=yes
13092     hardcode_shlibpath_var_F77=no
13093     ;;
13094
13095   hpux9* | hpux10* | hpux11*)
13096     if test $with_gcc = yes; then
13097       case $host_os in
13098       hpux9*) archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
13099       *) archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;;
13100       esac
13101     else
13102       case $host_os in
13103       hpux9*) archive_cmds_F77='$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' ;;
13104       *) archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
13105       esac
13106     fi
13107     hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13108     hardcode_libdir_separator_F77=:
13109     hardcode_direct_F77=yes
13110     hardcode_minus_L_F77=yes # Not in the search PATH, but as the default
13111                          # location of the library.
13112     export_dynamic_flag_spec_F77='${wl}-E'
13113     ;;
13114
13115   irix5* | irix6*)
13116     if test "$GCC" = yes; then
13117       archive_cmds_F77='$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'
13118     else
13119       archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13120     fi
13121     hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13122     hardcode_libdir_separator_F77=:
13123     link_all_deplibs_F77=yes
13124     ;;
13125
13126   netbsd*)
13127     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13128       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13129     else
13130       archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13131     fi
13132     hardcode_libdir_flag_spec_F77='-R$libdir'
13133     hardcode_direct_F77=yes
13134     hardcode_shlibpath_var_F77=no
13135     ;;
13136
13137   newsos6)
13138     archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
13139     hardcode_direct_F77=yes
13140     hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13141     hardcode_libdir_separator_F77=:
13142     hardcode_shlibpath_var_F77=no
13143     ;;
13144
13145   openbsd*)
13146     hardcode_direct_F77=yes
13147     hardcode_shlibpath_var_F77=no
13148
13149     case "$host_os" in
13150       openbsd01.* | openbsd2.0-7 | openbsd2.0-7.*)
13151         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13152         hardcode_libdir_flag_spec_F77='-R$libdir'
13153       ;;
13154       *)
13155         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
13156         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13157         if  "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc" ; then
13158          export_dynamic_flag_spec_F77='${wl}-E'
13159         fi
13160       ;;
13161     esac
13162     ;;
13163
13164   os2*)
13165     hardcode_libdir_flag_spec_F77='-L$libdir'
13166     hardcode_minus_L_F77=yes
13167     allow_undefined_flag_F77=unsupported
13168     archive_cmds_F77='$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'
13169     old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13170     ;;
13171
13172   osf3*)
13173     if test "$GCC" = yes; then
13174       allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13175       archive_cmds_F77='$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'
13176     else
13177       allow_undefined_flag_F77=' -expect_unresolved \*'
13178       archive_cmds_F77='$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'
13179     fi
13180     hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13181     hardcode_libdir_separator_F77=:
13182     ;;
13183
13184   osf4* | osf5*)        # as osf3* with the addition of -msym flag
13185     if test "$GCC" = yes; then
13186       allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13187       archive_cmds_F77='$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'
13188       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13189     else
13190       allow_undefined_flag_F77=' -expect_unresolved \*'
13191       archive_cmds_F77='$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'
13192       archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13193       $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'
13194
13195       # Both c and cxx compiler support -rpath directly
13196       hardcode_libdir_flag_spec_F77='-rpath $libdir'
13197     fi
13198     hardcode_libdir_separator_F77=:
13199     ;;
13200
13201   sco3.2v5*)
13202     archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13203     hardcode_shlibpath_var_F77=no
13204     export_dynamic_flag_spec_F77='${wl}-Bexport'
13205     runpath_var=LD_RUN_PATH
13206     hardcode_runpath_var=yes
13207     ;;
13208
13209   solaris*)
13210     no_undefined_flag_F77=' -z defs'
13211     if test "$with_gcc" = yes; then
13212       archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13213       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13214         $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13215     else
13216       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13217       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13218         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13219     fi
13220     hardcode_libdir_flag_spec_F77='-R$libdir'
13221     hardcode_shlibpath_var_F77=no
13222     case $host_os in
13223     solaris2.[0-5] | solaris2.[0-5].*) ;;
13224     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13225       whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13226     esac
13227     link_all_deplibs_F77=yes
13228     ;;
13229
13230   sunos4*)
13231     if test "x$host_vendor" = xsequent; then
13232       # Use $CC to link under sequent, because it throws in some extra .o
13233       # files that make .init and .fini sections work.
13234       archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13235     else
13236       archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13237     fi
13238     hardcode_libdir_flag_spec_F77='-L$libdir'
13239     hardcode_direct_F77=yes
13240     hardcode_minus_L_F77=yes
13241     hardcode_shlibpath_var_F77=no
13242     ;;
13243
13244   sysv4)
13245     if test "x$host_vendor" = xsni; then
13246       archive_cmds_F77='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
13247       hardcode_direct_F77=yes # is this really true???
13248     else
13249       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13250       hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13251     fi
13252     runpath_var='LD_RUN_PATH'
13253     hardcode_shlibpath_var_F77=no
13254     ;;
13255
13256   sysv4.3*)
13257     archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13258     hardcode_shlibpath_var_F77=no
13259     export_dynamic_flag_spec_F77='-Bexport'
13260     ;;
13261
13262   sysv4*MP*)
13263     if test -d /usr/nec; then
13264       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13265       hardcode_shlibpath_var_F77=no
13266       runpath_var=LD_RUN_PATH
13267       hardcode_runpath_var=yes
13268       ld_shlibs_F77=yes
13269     fi
13270     ;;
13271
13272   sysv4.2uw2*)
13273     archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13274     hardcode_direct_F77=yes
13275     hardcode_minus_L_F77=no
13276     hardcode_shlibpath_var_F77=no
13277     hardcode_runpath_var=yes
13278     runpath_var=LD_RUN_PATH
13279     ;;
13280
13281   sysv5uw7* | unixware7*)
13282     no_undefined_flag_F77='${wl}-z ${wl}text'
13283     if test "$GCC" = yes; then
13284       archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13285     else
13286       archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13287     fi
13288     runpath_var='LD_RUN_PATH'
13289     hardcode_shlibpath_var_F77=no
13290     ;;
13291
13292   sysv5*)
13293     no_undefined_flag_F77=' -z text'
13294     # $CC -shared without GNU ld will not create a library from C++
13295     # object files and a static libstdc++, better avoid it by now
13296     archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13297     archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13298                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13299     hardcode_libdir_flag_spec_F77=
13300     hardcode_shlibpath_var_F77=no
13301     runpath_var='LD_RUN_PATH'
13302     ;;
13303
13304   uts4*)
13305     archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13306     hardcode_libdir_flag_spec_F77='-L$libdir'
13307     hardcode_shlibpath_var_F77=no
13308     ;;
13309
13310   *)
13311     ld_shlibs_F77=no
13312     ;;
13313   esac
13314 fi
13315 echo "$as_me:13315: result: $ld_shlibs_F77" >&5
13316 echo "${ECHO_T}$ld_shlibs_F77" >&6
13317 test "$ld_shlibs_F77" = no && can_build_shared=no
13318
13319 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13320 if test "$GCC" = yes; then
13321   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13322 fi
13323
13324 #
13325 # Do we need to explicitly link libc?
13326 #
13327 archive_cmds_need_lc_F77=yes
13328 if test "$enable_shared" = yes && test "$GCC" = yes; then
13329   case $archive_cmds_F77 in
13330   *'~'*)
13331     # FIXME: we may have to deal with multi-command sequences.
13332     ;;
13333   '$CC '*)
13334     # Test whether the compiler implicitly links with -lc since on some
13335     # systems, -lgcc has to come before -lc. If gcc already passes -lc
13336     # to ld, don't add -lc before -lgcc.
13337     echo "$as_me:13337: checking whether -lc should be explicitly linked in" >&5
13338 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13339     $rm conftest*
13340     echo 'static int dummy;' > conftest.$ac_ext
13341
13342     if { (eval echo "$as_me:13342: \"$ac_compile\"") >&5
13343   (eval $ac_compile) 2>&5
13344   ac_status=$?
13345   echo "$as_me:13345: \$? = $ac_status" >&5
13346   (exit $ac_status); } 2>conftest.err; then
13347       soname=conftest
13348       lib=conftest
13349       libobjs=conftest.$ac_objext
13350       deplibs=
13351       wl=$lt_prog_compiler_wl_F77
13352       compiler_flags=-v
13353       linker_flags=-v
13354       verstring=
13355       output_objdir=.
13356       libname=conftest
13357       lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13358       allow_undefined_flag_F77=
13359       if { (eval echo "$as_me:13359: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13360   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13361   ac_status=$?
13362   echo "$as_me:13362: \$? = $ac_status" >&5
13363   (exit $ac_status); }
13364       then
13365         archive_cmds_need_lc_F77=no
13366       else
13367         archive_cmds_need_lc_F77=yes
13368       fi
13369       allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13370     else
13371       cat conftest.err 1>&5
13372     fi
13373     $rm conftest*
13374     echo "$as_me:13374: result: $archive_cmds_need_lc_F77" >&5
13375 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13376     ;;
13377   esac
13378 fi
13379
13380 echo "$as_me:13380: checking how to hardcode library paths into programs" >&5
13381 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13382 hardcode_action_F77=
13383 if test -n "$hardcode_libdir_flag_spec" || \
13384    test -n "$runpath_var"; then
13385
13386   # We can hardcode non-existant directories.
13387   if test "$hardcode_direct_F77" != no &&
13388      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13389      # have to relink, otherwise we might link with an installed library
13390      # when we should be linking with a yet-to-be-installed one
13391      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13392      test "$hardcode_minus_L_F77" != no; then
13393     # Linking always hardcodes the temporary library directory.
13394     hardcode_action_F77=relink
13395   else
13396     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13397     hardcode_action_F77=immediate
13398   fi
13399 else
13400   # We cannot hardcode anything, or else we can only hardcode existing
13401   # directories.
13402   hardcode_action_F77=unsupported
13403 fi
13404 echo "$as_me:13404: result: $hardcode_action_F77" >&5
13405 echo "${ECHO_T}$hardcode_action_F77" >&6
13406
13407 if test "$hardcode_action_F77" = relink; then
13408   # Fast installation is not supported
13409   enable_fast_install=no
13410 elif test "$shlibpath_overrides_runpath" = yes ||
13411      test "$enable_shared" = no; then
13412   # Fast installation is not necessary
13413   enable_fast_install=needless
13414 fi
13415
13416 striplib=
13417 old_striplib=
13418 echo "$as_me:13418: checking whether stripping libraries is possible" >&5
13419 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13420 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13421   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13422   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13423   echo "$as_me:13423: result: yes" >&5
13424 echo "${ECHO_T}yes" >&6
13425 else
13426   echo "$as_me:13426: result: no" >&5
13427 echo "${ECHO_T}no" >&6
13428 fi
13429
13430 echo "$as_me:13430: checking dynamic linker characteristics" >&5
13431 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13432 library_names_spec=
13433 libname_spec='lib$name'
13434 soname_spec=
13435 postinstall_cmds=
13436 postuninstall_cmds=
13437 finish_cmds=
13438 finish_eval=
13439 shlibpath_var=
13440 shlibpath_overrides_runpath=unknown
13441 version_type=none
13442 dynamic_linker="$host_os ld.so"
13443 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13444 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13445 need_lib_prefix=unknown
13446 hardcode_into_libs=no
13447
13448 # when you set need_version to no, make sure it does not cause -set_version
13449 # flags to be left without arguments
13450 need_version=unknown
13451
13452 case $host_os in
13453 aix3*)
13454   version_type=linux
13455   library_names_spec='${libname}${release}.so$versuffix $libname.a'
13456   shlibpath_var=LIBPATH
13457
13458   # AIX 3 has no versioning support, so we append a major version to the name.
13459   soname_spec='${libname}${release}.so$major'
13460   ;;
13461
13462 aix4* | aix5*)
13463   version_type=linux
13464   if test "$host_cpu" = ia64; then
13465     # AIX 5 supports IA64
13466     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
13467     shlibpath_var=LD_LIBRARY_PATH
13468   else
13469     # With GCC up to 2.95.x, collect2 would create an import file
13470     # for dependence libraries.  The import file would start with
13471     # the line `#! .'.  This would cause the generated library to
13472     # depend on `.', always an invalid library.  This was fixed in
13473     # development snapshots of GCC prior to 3.0.
13474     case $host_os in
13475        aix4 | aix4.[01] | aix4.[01].*)
13476       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13477            echo ' yes '
13478            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13479         :
13480       else
13481         can_build_shared=no
13482       fi
13483       ;;
13484     esac
13485     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13486     # soname into executable. Probably we can add versioning support to
13487     # collect2, so additional links can be useful in future.
13488     if test "$aix_use_runtimelinking" = yes; then
13489       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13490       # instead of lib<name>.a to let people know that these are not
13491       # typical AIX shared libraries.
13492       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13493     else
13494       # We preserve .a as extension for shared libraries through AIX4.2
13495       # and later when we are not doing run time linking.
13496       library_names_spec='${libname}${release}.a $libname.a'
13497       soname_spec='${libname}${release}.so$major'
13498     fi
13499     shlibpath_var=LIBPATH
13500     deplibs_check_method=pass_all
13501   fi
13502   ;;
13503
13504 amigaos*)
13505   library_names_spec='$libname.ixlibrary $libname.a'
13506   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13507   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'
13508   ;;
13509
13510 beos*)
13511   library_names_spec='${libname}.so'
13512   dynamic_linker="$host_os ld.so"
13513   shlibpath_var=LIBRARY_PATH
13514   ;;
13515
13516 bsdi4*)
13517   version_type=linux
13518   need_version=no
13519   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13520   soname_spec='${libname}${release}.so$major'
13521   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13522   shlibpath_var=LD_LIBRARY_PATH
13523   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13524   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13525   # the default ld.so.conf also contains /usr/contrib/lib and
13526   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13527   # libtool to hard-code these into programs
13528   ;;
13529
13530 cygwin* | mingw* | pw32*)
13531   version_type=windows
13532   need_version=no
13533   need_lib_prefix=no
13534   case $GCC,$host_os in
13535   yes,cygwin*)
13536     library_names_spec='$libname.dll.a'
13537     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
13538     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
13539       dldir=$destdir/`dirname \$dlpath`~
13540       test -d \$dldir || mkdir -p \$dldir~
13541       $install_prog .libs/$dlname \$dldir/$dlname'
13542     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
13543       dlpath=$dir/\$dldll~
13544        $rm \$dlpath'
13545     ;;
13546   yes,mingw*)
13547     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
13548     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
13549     ;;
13550   yes,pw32*)
13551     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
13552     ;;
13553   *)
13554     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
13555     ;;
13556   esac
13557   dynamic_linker='Win32 ld.exe'
13558   # FIXME: first we should search . and the directory the executable is in
13559   shlibpath_var=PATH
13560   ;;
13561
13562 darwin* | rhapsody*)
13563   dynamic_linker="$host_os dyld"
13564   version_type=darwin
13565   need_lib_prefix=no
13566   need_version=no
13567   # FIXME: Relying on posixy $() will cause problems for
13568   #        cross-compilation, but unfortunately the echo tests do not
13569   #        yet detect zsh echo's removal of \ escapes.
13570   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)'
13571   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
13572   shlibpath_overrides_runpath=yes
13573   shlibpath_var=DYLD_LIBRARY_PATH
13574   ;;
13575
13576 dgux*)
13577   version_type=linux
13578   need_lib_prefix=no
13579   need_version=no
13580   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13581   soname_spec='${libname}${release}.so$major'
13582   shlibpath_var=LD_LIBRARY_PATH
13583   ;;
13584
13585 freebsd1*)
13586   dynamic_linker=no
13587   ;;
13588
13589 freebsd*)
13590   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13591   version_type=freebsd-$objformat
13592   case $version_type in
13593     freebsd-elf*)
13594       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
13595       need_version=no
13596       need_lib_prefix=no
13597       ;;
13598     freebsd-*)
13599       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
13600       need_version=yes
13601       ;;
13602   esac
13603   shlibpath_var=LD_LIBRARY_PATH
13604   case $host_os in
13605   freebsd2*)
13606     shlibpath_overrides_runpath=yes
13607     ;;
13608   freebsd3.01* | freebsdelf3.01*)
13609     shlibpath_overrides_runpath=yes
13610     hardcode_into_libs=yes
13611     ;;
13612   *) # from 3.2 on
13613     shlibpath_overrides_runpath=no
13614     hardcode_into_libs=yes
13615     ;;
13616   esac
13617   ;;
13618
13619 gnu*)
13620   version_type=linux
13621   need_lib_prefix=no
13622   need_version=no
13623   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
13624   soname_spec='${libname}${release}.so$major'
13625   shlibpath_var=LD_LIBRARY_PATH
13626   hardcode_into_libs=yes
13627   ;;
13628
13629 hpux9* | hpux10* | hpux11*)
13630   # Give a soname corresponding to the major version so that dld.sl refuses to
13631   # link against other versions.
13632   dynamic_linker="$host_os dld.sl"
13633   version_type=sunos
13634   need_lib_prefix=no
13635   need_version=no
13636   shlibpath_var=SHLIB_PATH
13637   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13638   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
13639   soname_spec='${libname}${release}.sl$major'
13640   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13641   postinstall_cmds='chmod 555 $lib'
13642   ;;
13643
13644 irix5* | irix6*)
13645   version_type=irix
13646   need_lib_prefix=no
13647   need_version=no
13648   soname_spec='${libname}${release}.so.$major'
13649   library_names_spec='${libname}${release}.so.$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
13650   case $host_os in
13651   irix5*)
13652     libsuff= shlibsuff=
13653     ;;
13654   *)
13655     case $LD in # libtool.m4 will add one of these switches to LD
13656     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
13657     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
13658     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
13659     *) libsuff= shlibsuff= libmagic=never-match;;
13660     esac
13661     ;;
13662   esac
13663   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13664   shlibpath_overrides_runpath=no
13665   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13666   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13667   ;;
13668
13669 # No shared lib support for Linux oldld, aout, or coff.
13670 linux*oldld* | linux*aout* | linux*coff*)
13671   dynamic_linker=no
13672   ;;
13673
13674 # This must be Linux ELF.
13675 linux*)
13676   version_type=linux
13677   need_lib_prefix=no
13678   need_version=no
13679   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13680   soname_spec='${libname}${release}.so$major'
13681   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13682   shlibpath_var=LD_LIBRARY_PATH
13683   shlibpath_overrides_runpath=no
13684   # This implies no fast_install, which is unacceptable.
13685   # Some rework will be needed to allow for fast_install
13686   # before this can be enabled.
13687   hardcode_into_libs=yes
13688
13689   # We used to test for /lib/ld.so.1 and disable shared libraries on
13690   # powerpc, because MkLinux only supported shared libraries with the
13691   # GNU dynamic linker.  Since this was broken with cross compilers,
13692   # most powerpc-linux boxes support dynamic linking these days and
13693   # people can always --disable-shared, the test was removed, and we
13694   # assume the GNU/Linux dynamic linker is in use.
13695   dynamic_linker='GNU/Linux ld.so'
13696   ;;
13697
13698 netbsd*)
13699   version_type=sunos
13700   need_lib_prefix=no
13701   need_version=no
13702   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13703     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
13704     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13705     dynamic_linker='NetBSD (a.out) ld.so'
13706   else
13707     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
13708     soname_spec='${libname}${release}.so$major'
13709     dynamic_linker='NetBSD ld.elf_so'
13710   fi
13711   shlibpath_var=LD_LIBRARY_PATH
13712   shlibpath_overrides_runpath=yes
13713   hardcode_into_libs=yes
13714   ;;
13715
13716 newsos6)
13717   version_type=linux
13718   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13719   shlibpath_var=LD_LIBRARY_PATH
13720   shlibpath_overrides_runpath=yes
13721   ;;
13722
13723 openbsd*)
13724   version_type=sunos
13725   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
13726   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13727   shlibpath_var=LD_LIBRARY_PATH
13728   file_magic_cmd=/usr/bin/file
13729   file_magic_test_file=`echo /usr/lib/libc.so.*`
13730   if  "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc" ; then
13731     deplibs_check_method='file_magic ELF 0-90-9*-bit LMSB shared object'
13732   else
13733     deplibs_check_method='file_magic OpenBSD.* shared library'
13734   fi
13735   ;;
13736
13737 os2*)
13738   libname_spec='$name'
13739   need_lib_prefix=no
13740   library_names_spec='$libname.dll $libname.a'
13741   dynamic_linker='OS/2 ld.exe'
13742   shlibpath_var=LIBPATH
13743   ;;
13744
13745 osf3* | osf4* | osf5*)
13746   version_type=osf
13747   need_version=no
13748   soname_spec='${libname}${release}.so'
13749   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
13750   shlibpath_var=LD_LIBRARY_PATH
13751   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13752   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13753   ;;
13754
13755 sco3.2v5*)
13756   version_type=osf
13757   soname_spec='${libname}${release}.so$major'
13758   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13759   shlibpath_var=LD_LIBRARY_PATH
13760   ;;
13761
13762 solaris*)
13763   version_type=linux
13764   need_lib_prefix=no
13765   need_version=no
13766   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13767   soname_spec='${libname}${release}.so$major'
13768   shlibpath_var=LD_LIBRARY_PATH
13769   shlibpath_overrides_runpath=yes
13770   hardcode_into_libs=yes
13771   # ldd complains unless libraries are executable
13772   postinstall_cmds='chmod +x $lib'
13773   ;;
13774
13775 sunos4*)
13776   version_type=sunos
13777   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
13778   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13779   shlibpath_var=LD_LIBRARY_PATH
13780   shlibpath_overrides_runpath=yes
13781   if test "$with_gnu_ld" = yes; then
13782     need_lib_prefix=no
13783   fi
13784   need_version=yes
13785   ;;
13786
13787 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13788   version_type=linux
13789   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13790   soname_spec='${libname}${release}.so$major'
13791   shlibpath_var=LD_LIBRARY_PATH
13792   case $host_vendor in
13793     sni)
13794       shlibpath_overrides_runpath=no
13795       ;;
13796     motorola)
13797       need_lib_prefix=no
13798       need_version=no
13799       shlibpath_overrides_runpath=no
13800       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13801       ;;
13802   esac
13803   ;;
13804
13805 sysv4*MP*)
13806   if test -d /usr/nec ;then
13807     version_type=linux
13808     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
13809     soname_spec='$libname.so.$major'
13810     shlibpath_var=LD_LIBRARY_PATH
13811   fi
13812   ;;
13813
13814 uts4*)
13815   version_type=linux
13816   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13817   soname_spec='${libname}${release}.so$major'
13818   shlibpath_var=LD_LIBRARY_PATH
13819   ;;
13820
13821 *)
13822   dynamic_linker=no
13823   ;;
13824 esac
13825 echo "$as_me:13825: result: $dynamic_linker" >&5
13826 echo "${ECHO_T}$dynamic_linker" >&6
13827 test "$dynamic_linker" = no && can_build_shared=no
13828
13829 # The else clause should only fire when bootstrapping the
13830 # libtool distribution, otherwise you forgot to ship ltmain.sh
13831 # with your package, and you will get complaints that there are
13832 # no rules to generate ltmain.sh.
13833 if test -f "$ltmain"; then
13834   # Now quote all the things that may contain metacharacters while being
13835   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13836   # variables and quote the copies for generation of the libtool script.
13837   for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S NM SHELL \
13838     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13839     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13840     deplibs_check_method reload_flag reload_cmds need_locks \
13841     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13842     lt_cv_sys_global_symbol_to_c_name_address \
13843     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13844     old_postinstall_cmds old_postuninstall_cmds \
13845     compiler_F77 \
13846     CC_F77 \
13847     LD_F77 \
13848     lt_prog_compiler_wl_F77 \
13849     lt_prog_compiler_pic_F77 \
13850     lt_prog_compiler_static_F77 \
13851     lt_prog_compiler_no_builtin_flag_F77 \
13852     export_dynamic_flag_spec_F77 \
13853     thread_safe_flag_spec_F77 \
13854     whole_archive_flag_spec_F77 \
13855     old_archive_cmds_F77 \
13856     old_archive_from_new_cmds_F77 \
13857     predep_objects_F77 \
13858     postdep_objects_F77 \
13859     predeps_F77 \
13860     postdeps_F77 \
13861     compiler_lib_search_path_F77 \
13862     archive_cmds_F77 \
13863     archive_expsym_cmds_F77 \
13864     postinstall_cmds_F77 \
13865     postuninstall_cmds_F77 \
13866     old_archive_from_expsyms_cmds_F77 \
13867     allow_undefined_flag_F77 \
13868     no_undefined_flag_F77 \
13869     export_symbols_cmds_F77 \
13870     hardcode_libdir_flag_spec_F77 \
13871     hardcode_libdir_separator_F77 \
13872     lt_cv_prog_compiler_c_o_F77 \
13873     exclude_expsyms_F77 \
13874     include_expsyms_F77; do
13875
13876     case $var in
13877     old_archive_cmds_F77 | \
13878     old_archive_from_new_cmds_F77 | \
13879     archive_cmds_F77 | \
13880     archive_expsym_cmds_F77 | \
13881     old_archive_from_expsyms_cmds_F77 | \
13882     export_symbols_cmds_F77 | \
13883     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13884     postinstall_cmds | postuninstall_cmds | \
13885     old_postinstall_cmds | old_postuninstall_cmds | \
13886     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13887       # Double-quote double-evaled strings.
13888       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13889       ;;
13890     *)
13891       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13892       ;;
13893     esac
13894   done
13895
13896   case $lt_echo in
13897   *'\$0 --fallback-echo"')
13898     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13899     ;;
13900   esac
13901
13902 cfgfile="$ofile"
13903
13904   cat <<__EOF__ >> "$cfgfile"
13905 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13906
13907 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13908
13909 # Shell to use when invoking shell scripts.
13910 SHELL=$lt_SHELL
13911
13912 # Whether or not to build shared libraries.
13913 build_libtool_libs=$enable_shared
13914
13915 # Whether or not to build static libraries.
13916 build_old_libs=$enable_static
13917
13918 # Whether or not to add -lc for building shared libraries.
13919 build_libtool_need_lc=$archive_cmds_need_lc_F77
13920
13921 # Whether or not to optimize for fast installation.
13922 fast_install=$enable_fast_install
13923
13924 # The host system.
13925 host_alias=$host_alias
13926 host=$host
13927
13928 # An echo program that does not interpret backslashes.
13929 echo=$lt_echo
13930
13931 # The archiver.
13932 AR=$lt_AR
13933 AR_FLAGS=$lt_AR_FLAGS
13934
13935 # A C compiler.
13936 LTCC=$LTCC
13937
13938 # A language-specific compiler.
13939 CC=$lt_compiler_F77
13940
13941 # Is the compiler the GNU C compiler?
13942 with_gcc=$GCC_F77
13943
13944 # The linker used to build libraries.
13945 LD=$lt_LD_F77
13946
13947 # Whether we need hard or soft links.
13948 LN_S=$lt_LN_S
13949
13950 # A BSD-compatible nm program.
13951 NM=$lt_NM
13952
13953 # A symbol stripping program
13954 STRIP=$STRIP
13955
13956 # Used to examine libraries when file_magic_cmd begins "file"
13957 MAGIC_CMD=$MAGIC_CMD
13958
13959 # Used on cygwin: DLL creation program.
13960 DLLTOOL="$DLLTOOL"
13961
13962 # Used on cygwin: object dumper.
13963 OBJDUMP="$OBJDUMP"
13964
13965 # Used on cygwin: assembler.
13966 AS="$AS"
13967
13968 # The name of the directory that contains temporary libtool files.
13969 objdir=$objdir
13970
13971 # How to create reloadable object files.
13972 reload_flag=$lt_reload_flag
13973 reload_cmds=$lt_reload_cmds
13974
13975 # How to pass a linker flag through the compiler.
13976 wl=$lt_lt_prog_compiler_wl_F77
13977
13978 # Object file suffix (normally "o").
13979 objext="$ac_objext"
13980
13981 # Old archive suffix (normally "a").
13982 libext="$libext"
13983
13984 # Executable file suffix (normally "").
13985 exeext="$exeext"
13986
13987 # Additional compiler flags for building library objects.
13988 pic_flag=$lt_lt_prog_compiler_pic_F77
13989 pic_mode=$pic_mode
13990
13991 # What is the maximum length of a command?
13992 max_cmd_len=$lt_cv_sys_max_cmd_len
13993
13994 # Does compiler simultaneously support -c and -o options?
13995 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
13996
13997 # Must we lock files when doing compilation ?
13998 need_locks=$lt_need_locks
13999
14000 # Do we need the lib prefix for modules?
14001 need_lib_prefix=$need_lib_prefix
14002
14003 # Do we need a version for libraries?
14004 need_version=$need_version
14005
14006 # Whether dlopen is supported.
14007 dlopen_support=$enable_dlopen
14008
14009 # Whether dlopen of programs is supported.
14010 dlopen_self=$enable_dlopen_self
14011
14012 # Whether dlopen of statically linked programs is supported.
14013 dlopen_self_static=$enable_dlopen_self_static
14014
14015 # Compiler flag to prevent dynamic linking.
14016 link_static_flag=$lt_lt_prog_compiler_static_F77
14017
14018 # Compiler flag to turn off builtin functions.
14019 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14020
14021 # Compiler flag to allow reflexive dlopens.
14022 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14023
14024 # Compiler flag to generate shared objects directly from archives.
14025 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14026
14027 # Compiler flag to generate thread-safe objects.
14028 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14029
14030 # Library versioning type.
14031 version_type=$version_type
14032
14033 # Format of library name prefix.
14034 libname_spec=$lt_libname_spec
14035
14036 # List of archive names.  First name is the real one, the rest are links.
14037 # The last name is the one that the linker finds with -lNAME.
14038 library_names_spec=$lt_library_names_spec
14039
14040 # The coded name of the library, if different from the real name.
14041 soname_spec=$lt_soname_spec
14042
14043 # Commands used to build and install an old-style archive.
14044 RANLIB=$lt_RANLIB
14045 old_archive_cmds=$lt_old_archive_cmds_F77
14046 old_postinstall_cmds=$lt_old_postinstall_cmds
14047 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14048
14049 # Create an old-style archive from a shared archive.
14050 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14051
14052 # Create a temporary old-style archive to link instead of a shared archive.
14053 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14054
14055 # Commands used to build and install a shared archive.
14056 archive_cmds=$lt_archive_cmds_F77
14057 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14058 postinstall_cmds=$lt_postinstall_cmds
14059 postuninstall_cmds=$lt_postuninstall_cmds
14060
14061 # Commands to strip libraries.
14062 old_striplib=$lt_old_striplib
14063 striplib=$lt_striplib
14064
14065 # Dependencies to place before the objects being linked to create a
14066 # shared library.
14067 predep_objects=$lt_predep_objects_F77
14068
14069 # Dependencies to place after the objects being linked to create a
14070 # shared library.
14071 postdep_objects=$lt_postdep_objects_F77
14072
14073 # Dependencies to place before the objects being linked to create a
14074 # shared library.
14075 predeps=$lt_predeps_F77
14076
14077 # Dependencies to place after the objects being linked to create a
14078 # shared library.
14079 postdeps=$lt_postdeps_F77
14080
14081 # The library search path used internally by the compiler when linking
14082 # a shared library.
14083 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14084
14085 # Method to check whether dependent libraries are shared objects.
14086 deplibs_check_method=$lt_deplibs_check_method
14087
14088 # Command to use when deplibs_check_method == file_magic.
14089 file_magic_cmd=$lt_file_magic_cmd
14090
14091 # Flag that allows shared libraries with undefined symbols to be built.
14092 allow_undefined_flag=$lt_allow_undefined_flag_F77
14093
14094 # Flag that forces no undefined symbols.
14095 no_undefined_flag=$lt_no_undefined_flag_F77
14096
14097 # Commands used to finish a libtool library installation in a directory.
14098 finish_cmds=$lt_finish_cmds
14099
14100 # Same as above, but a single script fragment to be evaled but not shown.
14101 finish_eval=$lt_finish_eval
14102
14103 # Take the output of nm and produce a listing of raw symbols and C names.
14104 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14105
14106 # Transform the output of nm in a proper C declaration
14107 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14108
14109 # Transform the output of nm in a C name address pair
14110 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14111
14112 # This is the shared library runtime path variable.
14113 runpath_var=$runpath_var
14114
14115 # This is the shared library path variable.
14116 shlibpath_var=$shlibpath_var
14117
14118 # Is shlibpath searched before the hard-coded library search path?
14119 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14120
14121 # How to hardcode a shared library path into an executable.
14122 hardcode_action=$hardcode_action_F77
14123
14124 # Whether we should hardcode library paths into libraries.
14125 hardcode_into_libs=$hardcode_into_libs
14126
14127 # Flag to hardcode \$libdir into a binary during linking.
14128 # This must work even if \$libdir does not exist.
14129 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14130
14131 # Whether we need a single -rpath flag with a separated argument.
14132 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14133
14134 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
14135 # resulting binary.
14136 hardcode_direct=$hardcode_direct_F77
14137
14138 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14139 # resulting binary.
14140 hardcode_minus_L=$hardcode_minus_L_F77
14141
14142 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14143 # the resulting binary.
14144 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14145
14146 # Variables whose values should be saved in libtool wrapper scripts and
14147 # restored at relink time.
14148 variables_saved_for_relink="$variables_saved_for_relink"
14149
14150 # Whether libtool must link a program against all its dependency libraries.
14151 link_all_deplibs=$link_all_deplibs_F77
14152
14153 # Compile-time system search path for libraries
14154 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14155
14156 # Run-time system search path for libraries
14157 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14158
14159 # Fix the shell variable \$srcfile for the compiler.
14160 fix_srcfile_path="$fix_srcfile_path_F77"
14161
14162 # Set to yes if exported symbols are required.
14163 always_export_symbols=$always_export_symbols_F77
14164
14165 # The commands to list exported symbols.
14166 export_symbols_cmds=$lt_export_symbols_cmds_F77
14167
14168 # The commands to extract the exported symbol list from a shared archive.
14169 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14170
14171 # Symbols that should not be listed in the preloaded symbols.
14172 exclude_expsyms=$lt_exclude_expsyms_F77
14173
14174 # Symbols that must always be exported.
14175 include_expsyms=$lt_include_expsyms_F77
14176
14177 # ### END LIBTOOL TAG CONFIG: $tagname
14178
14179 __EOF__
14180
14181 else
14182   # If there is no Makefile yet, we rely on a make rule to execute
14183   # `config.status --recheck' to rerun these tests and create the
14184   # libtool script then.
14185   test -f Makefile && make "$ltmain"
14186 fi
14187
14188 ac_ext=c
14189 ac_cpp='$CPP $CPPFLAGS'
14190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14193
14194 CC="$lt_save_CC"
14195
14196         ;;
14197
14198       GCJ)
14199
14200 # Source file extension for C test sources.
14201 ac_ext=java
14202
14203 # Object file extension for compiled C test sources.
14204 objext=o
14205 objext_GCJ=$objext
14206
14207 # Code to be used in simple compile tests
14208 lt_simple_compile_test_code="class foo {}\n"
14209
14210 # Code to be used in simple link tests
14211 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14212 echo "ARG1=GCJ"
14213
14214 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14215
14216 # If no C compiler was specified, use CC.
14217 LTCC=${LTCC-"$CC"}
14218
14219 # Allow CC to be a program name with arguments.
14220 set dummy $CC
14221 compiler="$2"
14222
14223 # Allow CC to be a program name with arguments.
14224 lt_save_CC="$CC"
14225 CC=${GCJ-"gcj"}
14226 set dummy $CC
14227 compiler="$2"
14228 compiler_GCJ=$CC
14229
14230 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14231 archive_cmds_need_lc_GCJ=no
14232
14233 lt_prog_compiler_no_builtin_flag_GCJ=
14234
14235 if test "$GCC" = yes; then
14236   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14237
14238   echo "$as_me:14238: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14239 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14240 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14241   echo $ECHO_N "(cached) $ECHO_C" >&6
14242 else
14243   lt_cv_prog_compiler_rtti_exceptions=no
14244   ac_outfile=conftest.$ac_objext
14245    save_CFLAGS="$CFLAGS"
14246    CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
14247    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14248    if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
14249      # The compiler can only warn and ignore the option if not recognized
14250      # So say no if there are warnings
14251      if test -s conftest.err; then
14252        # Append any errors to the config.log.
14253        cat conftest.err 1>&5
14254      else
14255        lt_cv_prog_compiler_rtti_exceptions=yes
14256      fi
14257    fi
14258    $rm conftest*
14259    CFLAGS="$save_CFLAGS"
14260
14261 fi
14262 echo "$as_me:14262: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14263 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14264
14265 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14266     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14267 else
14268     :
14269 fi
14270
14271 fi
14272
14273 hard_links="nottested"
14274 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
14275   # do not overwrite the value of need_locks provided by the user
14276   echo "$as_me:14276: checking if we can lock with hard links" >&5
14277 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14278   hard_links=yes
14279   $rm conftest*
14280   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14281   touch conftest.a
14282   ln conftest.a conftest.b 2>&5 || hard_links=no
14283   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14284   echo "$as_me:14284: result: $hard_links" >&5
14285 echo "${ECHO_T}$hard_links" >&6
14286   if test "$hard_links" = no; then
14287     { echo "$as_me:14287: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14288 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14289     need_locks=warn
14290   fi
14291 else
14292   need_locks=no
14293 fi
14294
14295 lt_prog_compiler_wl_GCJ=
14296 lt_prog_compiler_pic_GCJ=
14297 lt_prog_compiler_static_GCJ=
14298
14299 echo "$as_me:14299: checking for $compiler option to produce PIC" >&5
14300 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14301 if test "$GCC" = yes; then
14302   lt_prog_compiler_wl_GCJ='-Wl,'
14303   lt_prog_compiler_static_GCJ='-static'
14304
14305   case $host_os in
14306     aix*)
14307     # All AIX code is PIC.
14308     if test "$host_cpu" = ia64; then
14309       # AIX 5 now supports IA64 processor
14310       lt_prog_compiler_static_GCJ='-Bstatic'
14311     else
14312       lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14313     fi
14314     ;;
14315
14316   amigaos*)
14317     # FIXME: we need at least 68020 code to build shared libraries, but
14318     # adding the `-m68020' flag to GCC prevents building anything better,
14319     # like `-m68040'.
14320     lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14321     ;;
14322
14323   beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
14324     # PIC is the default for these OSes.
14325     ;;
14326
14327   cygwin* | mingw* | pw32* | os2*)
14328     # This hack is so that the source file can tell whether it is being
14329     # built for inclusion in a dll (and should export symbols for example).
14330     lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14331     ;;
14332
14333   darwin* | rhapsody*)
14334     # PIC is the default on this platform
14335     # Common symbols not allowed in MH_DYLIB files
14336     lt_prog_compiler_pic_GCJ='-fno-common'
14337     ;;
14338
14339   msdosdjgpp*)
14340     # Just because we use GCC doesn't mean we suddenly get shared libraries
14341     # on systems that don't support them.
14342     lt_prog_compiler_can_build_shared_GCJ=no
14343     enable_shared=no
14344     ;;
14345
14346   sysv4*MP*)
14347     if test -d /usr/nec; then
14348       lt_prog_compiler_pic_GCJ=-Kconform_pic
14349     fi
14350     ;;
14351
14352   *)
14353     lt_prog_compiler_pic_GCJ='-fPIC'
14354     ;;
14355   esac
14356 else
14357   # PORTME Check for flag to pass linker flags through the system compiler.
14358   case $host_os in
14359   aix*)
14360     lt_prog_compiler_wl_GCJ='-Wl,'
14361     if test "$host_cpu" = ia64; then
14362       # AIX 5 now supports IA64 processor
14363       lt_prog_compiler_static_GCJ='-Bstatic'
14364     else
14365       lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14366     fi
14367     ;;
14368
14369   cygwin* | mingw* | pw32* | os2*)
14370     # This hack is so that the source file can tell whether it is being
14371     # built for inclusion in a dll (and should export symbols for example).
14372     lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14373     ;;
14374
14375   hpux9* | hpux10* | hpux11*)
14376     lt_prog_compiler_wl_GCJ='-Wl,'
14377     lt_prog_compiler_pic_GCJ='+Z'
14378     # Is there a better lt_prog_compiler_static that works with the bundled CC?
14379     lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14380     ;;
14381
14382   irix5* | irix6*)
14383     lt_prog_compiler_wl_GCJ='-Wl,'
14384     # PIC (with -KPIC) is the default.
14385     lt_prog_compiler_static_GCJ='-non_shared'
14386     ;;
14387
14388   linux*)
14389     # Check flags for non-gnu compilers on Linux
14390     case "$host_cpu" in
14391     alpha*)
14392       # The only non-gnu compiler on Linux/Alpha is the Compaq one:
14393       lt_prog_compiler_wl_GCJ='-Wl,'
14394       lt_prog_compiler_static_GCJ='-non_shared'
14395       ;;
14396     *)
14397       lt_prog_compiler_can_build_shared_GCJ=no
14398       ;;
14399     esac
14400     ;;
14401   newsos6)
14402     lt_prog_compiler_pic_GCJ='-KPIC'
14403     lt_prog_compiler_static_GCJ='-Bstatic'
14404     ;;
14405
14406   osf3* | osf4* | osf5*)
14407     lt_prog_compiler_wl_GCJ='-Wl,'
14408     # All OSF/1 code is PIC.
14409     lt_prog_compiler_static_GCJ='-non_shared'
14410     ;;
14411
14412   sco3.2v5*)
14413     lt_prog_compiler_pic_GCJ='-Kpic'
14414     lt_prog_compiler_static_GCJ='-dn'
14415     ;;
14416
14417   solaris*)
14418     lt_prog_compiler_wl_GCJ='-Wl,'
14419     lt_prog_compiler_pic_GCJ='-KPIC'
14420     lt_prog_compiler_static_GCJ='-Bstatic'
14421     ;;
14422
14423   sunos4*)
14424     lt_prog_compiler_wl_GCJ='-Qoption ld '
14425     lt_prog_compiler_pic_GCJ='-PIC'
14426     lt_prog_compiler_static_GCJ='-Bstatic'
14427     ;;
14428
14429   sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14430     if test "x$host_vendor" = xsni; then
14431       lt_prog_compiler_wl_GCJ='-LD'
14432     else
14433       lt_prog_compiler_wl_GCJ='-Wl,'
14434     fi
14435     lt_prog_compiler_pic_GCJ='-KPIC'
14436     lt_prog_compiler_static_GCJ='-Bstatic'
14437     ;;
14438
14439   sysv4*MP*)
14440     if test -d /usr/nec ;then
14441       lt_prog_compiler_pic_GCJ='-Kconform_pic'
14442       lt_prog_compiler_static_GCJ='-Bstatic'
14443     fi
14444     ;;
14445
14446   uts4*)
14447     lt_prog_compiler_pic_GCJ='-pic'
14448     lt_prog_compiler_static_GCJ='-Bstatic'
14449     ;;
14450
14451   *)
14452     lt_prog_compiler_can_build_shared_GCJ=no
14453     ;;
14454   esac
14455 fi
14456 echo "$as_me:14456: result: $lt_prog_compiler_pic_GCJ" >&5
14457 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14458
14459 #
14460 # Check to make sure the PIC flag actually works.
14461 #
14462 if test -n "$lt_prog_compiler_pic_GCJ"; then
14463   echo "$as_me:14463: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14464 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14465 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14466   echo $ECHO_N "(cached) $ECHO_C" >&6
14467 else
14468   lt_prog_compiler_pic_works_GCJ=no
14469   ac_outfile=conftest.$ac_objext
14470    save_CFLAGS="$CFLAGS"
14471    CFLAGS="$CFLAGS $lt_prog_compiler_pic_GCJ"
14472    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14473    if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
14474      # The compiler can only warn and ignore the option if not recognized
14475      # So say no if there are warnings
14476      if test -s conftest.err; then
14477        # Append any errors to the config.log.
14478        cat conftest.err 1>&5
14479      else
14480        lt_prog_compiler_pic_works_GCJ=yes
14481      fi
14482    fi
14483    $rm conftest*
14484    CFLAGS="$save_CFLAGS"
14485
14486 fi
14487 echo "$as_me:14487: result: $lt_prog_compiler_pic_works_GCJ" >&5
14488 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14489
14490 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14491     case $lt_prog_compiler_pic_GCJ in
14492      "" | " "*) ;;
14493      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14494      esac
14495
14496 else
14497     lt_prog_compiler_pic_GCJ=
14498      lt_prog_compiler_can_build_shared_GCJ=no
14499 fi
14500
14501 fi
14502 case "$host_os" in
14503   # For platforms which do not support PIC, -DPIC is meaningless:
14504   *djgpp*)
14505     lt_prog_compiler_pic_GCJ=
14506     ;;
14507   *)
14508     echo "$as_me:14508: checking if $compiler PIC define -DPIC works" >&5
14509 echo $ECHO_N "checking if $compiler PIC define -DPIC works... $ECHO_C" >&6
14510 if test "${lt_prog_compiler_picdef_works_GCJ+set}" = set; then
14511   echo $ECHO_N "(cached) $ECHO_C" >&6
14512 else
14513   lt_prog_compiler_picdef_works_GCJ=no
14514   ac_outfile=conftest.$ac_objext
14515    save_CFLAGS="$CFLAGS"
14516    CFLAGS="$CFLAGS $lt_prog_compiler_pic_GCJ -DPIC"
14517    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14518    if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
14519      # The compiler can only warn and ignore the option if not recognized
14520      # So say no if there are warnings
14521      if test -s conftest.err; then
14522        # Append any errors to the config.log.
14523        cat conftest.err 1>&5
14524      else
14525        lt_prog_compiler_picdef_works_GCJ=yes
14526      fi
14527    fi
14528    $rm conftest*
14529    CFLAGS="$save_CFLAGS"
14530
14531 fi
14532 echo "$as_me:14532: result: $lt_prog_compiler_picdef_works_GCJ" >&5
14533 echo "${ECHO_T}$lt_prog_compiler_picdef_works_GCJ" >&6
14534
14535 if test x"$lt_prog_compiler_picdef_works_GCJ" = xyes; then
14536     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ -DPIC"
14537 else
14538     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14539 fi
14540
14541     ;;
14542 esac
14543
14544 echo "$as_me:14544: checking if $compiler supports -c -o file.$ac_objext" >&5
14545 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14546 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14547   echo $ECHO_N "(cached) $ECHO_C" >&6
14548 else
14549   lt_cv_prog_compiler_c_o_GCJ=no
14550    $rm -r conftest 2>/dev/null
14551    mkdir conftest
14552    cd conftest
14553    mkdir out
14554    save_CFLAGS="$CFLAGS"
14555    CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
14556    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14557
14558    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14559    # that will create temporary files in the current directory regardless of
14560    # the output directory.  Thus, making CWD read-only will cause this test
14561    # to fail, enabling locking or at least warning the user not to do parallel
14562    # builds.
14563    chmod -w .
14564
14565    if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
14566    then
14567      # The compiler can only warn and ignore the option if not recognized
14568      # So say no if there are warnings
14569      if test -s out/conftest.err; then
14570        # Append any errors to the config.log.
14571        cat out/conftest.err 1>&5
14572      else
14573        lt_cv_prog_compiler_c_o_GCJ=yes
14574      fi
14575    fi
14576    CFLAGS="$save_CFLAGS"
14577
14578    chmod u+w .
14579    $rm conftest* out/*
14580    rmdir out
14581    cd ..
14582    rmdir conftest
14583    $rm conftest*
14584
14585 fi
14586 echo "$as_me:14586: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14587 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
14588
14589 echo "$as_me:14589: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14590 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14591
14592 runpath_var=
14593 allow_undefined_flag_GCJ=
14594
14595 archive_cmds_GCJ=
14596 archive_cmds_need_lc_GCJ=
14597 archive_expsym_cmds_GCJ=
14598 old_archive_From_new_cmds_GCJ=
14599 old_archive_from_expsyms_cmds_GCJ=
14600 export_dynamic_flag_spec_GCJ=
14601 whole_archive_flag_spec_GCJ=
14602 thread_safe_flag_spec_GCJ=
14603 hardcode_libdir_flag_spec_GCJ=
14604 hardcode_libdir_separator_GCJ=
14605 hardcode_direct_GCJ=no
14606 hardcode_minus_L_GCJ=no
14607 hardcode_shlibpath_var_GCJ=unsupported
14608 link_all_deplibs_GCJ=unknown
14609 always_export_symbols_GCJ=no
14610 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
14611 # include_expsyms should be a list of space-separated symbols to be *always*
14612 # included in the symbol list
14613 include_expsyms_GCJ=
14614 # exclude_expsyms can be an egrep regular expression of symbols to exclude
14615 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14616 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14617 # as well as any symbol that contains `d'.
14618 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
14619 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14620 # platforms (ab)use it in PIC code, but their linkers get confused if
14621 # the symbol is explicitly referenced.  Since portable code cannot
14622 # rely on this symbol name, it's probably fine to never include it in
14623 # preloaded symbol tables.
14624 extract_expsyms_cmds=
14625
14626 case $host_os in
14627 cygwin* | mingw* | pw32*)
14628   # FIXME: the MSVC++ port hasn't been tested in a loooong time
14629   # When not using gcc, we currently assume that we are using
14630   # Microsoft Visual C++.
14631   if test "$GCC" != yes; then
14632     with_gnu_ld=no
14633   fi
14634   ;;
14635 openbsd*)
14636   with_gnu_ld=no
14637   ;;
14638 esac
14639
14640 ld_shlibs_GCJ=yes
14641 if test "$with_gnu_ld" = yes; then
14642   # If archive_cmds runs LD, not CC, wlarc should be empty
14643   wlarc='${wl}'
14644
14645   # See if GNU ld supports shared libraries.
14646   case $host_os in
14647   aix3* | aix4* | aix5*)
14648     # On AIX/PPC, the GNU linker is very broken
14649     if test "$host_cpu" != ia64; then
14650       ld_shlibs_GCJ=no
14651       cat <<EOF 1>&2
14652
14653 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14654 *** to be unable to reliably create shared libraries on AIX.
14655 *** Therefore, libtool is disabling shared libraries support.  If you
14656 *** really care for shared libraries, you may want to modify your PATH
14657 *** so that a non-GNU linker is found, and then restart.
14658
14659 EOF
14660     fi
14661     ;;
14662
14663   amigaos*)
14664     archive_cmds_GCJ='$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)'
14665     hardcode_libdir_flag_spec_GCJ='-L$libdir'
14666     hardcode_minus_L_GCJ=yes
14667
14668     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14669     # that the semantics of dynamic libraries on AmigaOS, at least up
14670     # to version 4, is to share data among multiple programs linked
14671     # with the same dynamic library.  Since this doesn't match the
14672     # behavior of shared libraries on other platforms, we can't use
14673     # them.
14674     ld_shlibs_GCJ=no
14675     ;;
14676
14677   beos*)
14678     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14679       allow_undefined_flag_GCJ=unsupported
14680       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14681       # support --undefined.  This deserves some investigation.  FIXME
14682       archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14683     else
14684       ld_shlibs_GCJ=no
14685     fi
14686     ;;
14687
14688   cygwin* | mingw* | pw32*)
14689     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, as there is
14690     # no search path for DLLs.
14691     hardcode_libdir_flag_spec_GCJ='-L$libdir'
14692     allow_undefined_flag_GCJ=unsupported
14693     always_export_symbols_GCJ=yes
14694
14695     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
14696       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
14697       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
14698       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
14699       else $CC -o impgen impgen.c ; fi)~
14700       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
14701
14702     old_archive_from_expsyms_cmds_GCJ='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
14703
14704     # cygwin and mingw dlls have different entry points and sets of symbols
14705     # to exclude.
14706     # FIXME: what about values for MSVC?
14707     dll_entry=__cygwin_dll_entry@12
14708     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
14709     case $host_os in
14710     mingw*)
14711       # mingw values
14712       dll_entry=_DllMainCRTStartup@12
14713       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
14714       ;;
14715     esac
14716
14717     # mingw and cygwin differ, and it's simplest to just exclude the union
14718     # of the two symbol sets.
14719     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
14720
14721     # recent cygwin and mingw systems supply a stub DllMain which the user
14722     # can override, but on older systems we have to supply one (in ltdll.c)
14723     if test "x$lt_cv_need_dllmain" = "xyes"; then
14724       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
14725       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~
14726         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
14727     else
14728       ltdll_obj=
14729       ltdll_cmds=
14730     fi
14731
14732     # Extract the symbol export list from an `--export-all' def file,
14733     # then regenerate the def file from the symbol export list, so that
14734     # the compiled dll only exports the symbol export list.
14735     # Be careful not to strip the DATA tag left by newer dlltools.
14736     export_symbols_cmds_GCJ="$ltdll_cmds"'
14737       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
14738       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
14739
14740     # If the export-symbols file already is a .def file (1st line
14741     # is EXPORTS), use it as is.
14742     # If DATA tags from a recent dlltool are present, honour them!
14743     archive_expsym_cmds_GCJ='if test "x`head -1 $export_symbols`" = xEXPORTS; then
14744         cp $export_symbols $output_objdir/$soname-def;
14745       else
14746         echo EXPORTS > $output_objdir/$soname-def;
14747         _lt_hint=1;
14748         cat $export_symbols | while read symbol; do
14749          set dummy \$symbol;
14750          case \$# in
14751            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
14752            *) echo "   \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
14753          esac;
14754          _lt_hint=`expr 1 + \$_lt_hint`;
14755         done;
14756       fi~
14757       '"$ltdll_cmds"'
14758       $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~
14759       $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~
14760       $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~
14761       $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~
14762       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
14763     ;;
14764
14765   darwin* | rhapsody*)
14766     allow_undefined_flag_GCJ='-undefined suppress'
14767     # FIXME: Relying on posixy $() will cause problems for
14768     #        cross-compilation, but unfortunately the echo tests do not
14769     #        yet detect zsh echo's removal of \ escapes.
14770     archive_cmds_GCJ='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)'
14771     # We need to add '_' to the symbols in $export_symbols first
14772     #_LT_AC_TAGVAR(archive_expsym_cmds, GCJ)="$_LT_AC_TAGVAR(archive_cmds, GCJ)"' && strip -s $export_symbols'
14773     hardcode_direct_GCJ=yes
14774     hardcode_shlibpath_var_GCJ=no
14775     whole_archive_flag_spec_GCJ='-all_load $convenience'
14776     ;;
14777
14778   netbsd*)
14779     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14780       archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14781       wlarc=
14782     else
14783       archive_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14784       archive_expsym_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14785     fi
14786     ;;
14787
14788   solaris* | sysv5*)
14789     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
14790       ld_shlibs_GCJ=no
14791       cat <<EOF 1>&2
14792
14793 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14794 *** create shared libraries on Solaris systems.  Therefore, libtool
14795 *** is disabling shared libraries support.  We urge you to upgrade GNU
14796 *** binutils to release 2.9.1 or newer.  Another option is to modify
14797 *** your PATH or compiler configuration so that the native linker is
14798 *** used, and then restart.
14799
14800 EOF
14801     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14802       archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14803       archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14804     else
14805       ld_shlibs_GCJ=no
14806     fi
14807     ;;
14808
14809   sunos4*)
14810     archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14811     wlarc=
14812     hardcode_direct_GCJ=yes
14813     hardcode_shlibpath_var_GCJ=no
14814     ;;
14815
14816   *)
14817     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14818       archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14819       archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14820     else
14821       ld_shlibs_GCJ=no
14822     fi
14823     ;;
14824   esac
14825
14826   if test "$ld_shlibs_GCJ" = yes; then
14827     runpath_var=LD_RUN_PATH
14828     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
14829     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
14830     case $host_os in
14831     cygwin* | mingw* | pw32*)
14832       # dlltool doesn't understand --whole-archive et. al.
14833       whole_archive_flag_spec_GCJ=
14834       ;;
14835     *)
14836       # ancient GNU ld didn't support --whole-archive et. al.
14837       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
14838         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14839       else
14840         whole_archive_flag_spec_GCJ=
14841       fi
14842       ;;
14843     esac
14844   fi
14845 else
14846   # PORTME fill in a description of your system's linker (not GNU ld)
14847   case $host_os in
14848   aix3*)
14849     allow_undefined_flag_GCJ=unsupported
14850     always_export_symbols_GCJ=yes
14851     archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14852     # Note: this linker hardcodes the directories in LIBPATH if there
14853     # are no directories specified by -L.
14854     hardcode_minus_L_GCJ=yes
14855     if test "$GCC" = yes && test -z "$link_static_flag"; then
14856       # Neither direct hardcoding nor static linking is supported with a
14857       # broken collect2.
14858       hardcode_direct_GCJ=unsupported
14859     fi
14860     ;;
14861
14862   aix4* | aix5*)
14863     hardcode_direct_GCJ=yes
14864     hardcode_libdir_separator_GCJ=':'
14865     link_all_deplibs_GCJ=yes
14866     # When large executables or shared objects are built, AIX ld can
14867     # have problems creating the table of contents.  If linking a library
14868     # or program results in "error TOC overflow" add -mminimal-toc to
14869     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14870     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14871     if test "$GCC" = yes; then
14872       case $host_os in aix4.012|aix4.-12.*)
14873         # We only want to do this on AIX 4.2 and lower, the check
14874         # below for broken collect2 doesn't work under 4.3+
14875         collect2name=`${CC} -print-prog-name=collect2`
14876         if test -f "$collect2name" && \
14877            strings "$collect2name" | grep resolve_lib_name >/dev/null
14878         then
14879           # We have reworked collect2
14880           hardcode_direct_GCJ=yes
14881         else
14882           # We have old collect2
14883           hardcode_direct_GCJ=unsupported
14884           # It fails to find uninstalled libraries when the uninstalled
14885           # path is not listed in the libpath.  Setting hardcode_minus_L
14886           # to unsupported forces relinking
14887           hardcode_minus_L_GCJ=yes
14888           hardcode_libdir_flag_spec_GCJ='-L$libdir'
14889           hardcode_libdir_separator_GCJ=
14890         fi
14891       esac
14892       shared_flag='-shared'
14893     else
14894       # not using gcc
14895       if test "$host_cpu" = ia64; then
14896         shared_flag='${wl}-G'
14897       else
14898         shared_flag='${wl}-bM:SRE'
14899       fi
14900     fi
14901
14902     if test "$host_cpu" = ia64; then
14903       # On IA64, the linker does run time linking by default, so we don't
14904       # have to do anything special.
14905       aix_use_runtimelinking=no
14906         if test $with_gnu_ld = no; then
14907           exp_sym_flag='-Bexport'
14908         fi
14909       no_entry_flag=""
14910     else
14911       # Test if we are trying to use run time linking, or normal AIX style
14912       # linking.  If -brtl is somewhere in LDFLAGS, we need to do run time
14913       # linking.
14914       aix_use_runtimelinking=no
14915       for ld_flag in $LDFLAGS; do
14916         if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then
14917           aix_use_runtimelinking=yes
14918           break
14919         fi
14920       done
14921       exp_sym_flag='-bexport'
14922       no_entry_flag='-bnoentry'
14923     fi
14924     # -bexpall does not export symbols beginning with underscore (_)
14925     always_export_symbols_GCJ=yes
14926     if test "$aix_use_runtimelinking" = yes; then
14927       # Warning - without using the other run time loading flags (-brtl),
14928       #           -berok will link without error, but may produce a broken
14929       #           library.
14930       allow_undefined_flag_GCJ=' $wl}-berok'
14931       # Determine the default libpath from the value encoded in an empty executable.
14932       # If we don't find anything, use the default library path according to the cc manual.
14933       cat >conftest.$ac_ext <<_ACEOF
14934 #line 14934 "configure"
14935 #include "confdefs.h"
14936
14937 int
14938 main ()
14939 {
14940
14941   ;
14942   return 0;
14943 }
14944 _ACEOF
14945 rm -f conftest.$ac_objext conftest$ac_exeext
14946 if { (eval echo "$as_me:14946: \"$ac_link\"") >&5
14947   (eval $ac_link) 2>&5
14948   ac_status=$?
14949   echo "$as_me:14949: \$? = $ac_status" >&5
14950   (exit $ac_status); } &&
14951          { ac_try='test -s conftest$ac_exeext'
14952   { (eval echo "$as_me:14952: \"$ac_try\"") >&5
14953   (eval $ac_try) 2>&5
14954   ac_status=$?
14955   echo "$as_me:14955: \$? = $ac_status" >&5
14956   (exit $ac_status); }; }; then
14957
14958 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`
14959 # Check for a 64-bit object if we didn't find anything.
14960 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`; fi
14961 else
14962   echo "$as_me: failed program was:" >&5
14963 cat conftest.$ac_ext >&5
14964 fi
14965 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14966 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14967
14968       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
14969       archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14970     else
14971       if test "$host_cpu" = ia64; then
14972         if test $with_gnu_ld = no; then
14973           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
14974           allow_undefined_flag_GCJ="-z nodefs"
14975           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14976         fi
14977       else
14978         # Determine the default libpath from the value encoded in an empty executable.
14979         cat >conftest.$ac_ext <<_ACEOF
14980 #line 14980 "configure"
14981 #include "confdefs.h"
14982
14983 int
14984 main ()
14985 {
14986
14987   ;
14988   return 0;
14989 }
14990 _ACEOF
14991 rm -f conftest.$ac_objext conftest$ac_exeext
14992 if { (eval echo "$as_me:14992: \"$ac_link\"") >&5
14993   (eval $ac_link) 2>&5
14994   ac_status=$?
14995   echo "$as_me:14995: \$? = $ac_status" >&5
14996   (exit $ac_status); } &&
14997          { ac_try='test -s conftest$ac_exeext'
14998   { (eval echo "$as_me:14998: \"$ac_try\"") >&5
14999   (eval $ac_try) 2>&5
15000   ac_status=$?
15001   echo "$as_me:15001: \$? = $ac_status" >&5
15002   (exit $ac_status); }; }; then
15003
15004 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`
15005 # Check for a 64-bit object if we didn't find anything.
15006 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`; fi
15007 else
15008   echo "$as_me: failed program was:" >&5
15009 cat conftest.$ac_ext >&5
15010 fi
15011 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15012 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15013
15014         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15015         allow_undefined_flag_GCJ=' ${wl}-berok'
15016         # -bexpall does not export symbols beginning with underscore (_)
15017         always_export_symbols_GCJ=yes
15018         # Exported symbols can be pulled into shared objects from archives
15019         whole_archive_flag_spec_GCJ=' '
15020         archive_cmds_need_lc_GCJ=yes
15021         # This is similar to how AIX traditionally builds it's shared
15022         # libraries.
15023         archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15024       fi
15025     fi
15026     ;;
15027
15028   amigaos*)
15029     archive_cmds_GCJ='$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)'
15030     hardcode_libdir_flag_spec_GCJ='-L$libdir'
15031     hardcode_minus_L_GCJ=yes
15032     # see comment about different semantics on the GNU ld section
15033     ld_shlibs_GCJ=no
15034     ;;
15035
15036   bsdi4*)
15037     export_dynamic_flag_spec_GCJ=-rdynamic
15038     ;;
15039
15040   cygwin* | mingw* | pw32*)
15041     # When not using gcc, we currently assume that we are using
15042     # Microsoft Visual C++.
15043     # hardcode_libdir_flag_spec is actually meaningless, as there is
15044     # no search path for DLLs.
15045     hardcode_libdir_flag_spec_GCJ=' '
15046     allow_undefined_flag_GCJ=unsupported
15047     # Tell ltmain to make .lib files, not .a files.
15048     libext=lib
15049     # FIXME: Setting linknames here is a bad hack.
15050     archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
15051     # The linker will automatically build a .lib file if we build a DLL.
15052     old_archive_From_new_cmds_GCJ='true'
15053     # FIXME: Should let the user specify the lib program.
15054     old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15055     fix_srcfile_path='`cygpath -w "$srcfile"`'
15056     ;;
15057
15058   dgux*)
15059     archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15060     hardcode_libdir_flag_spec_GCJ='-L$libdir'
15061     hardcode_shlibpath_var_GCJ=no
15062     ;;
15063
15064   freebsd1*)
15065     ld_shlibs_GCJ=no
15066     ;;
15067
15068   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15069   # support.  Future versions do this automatically, but an explicit c++rt0.o
15070   # does not break anything, and helps significantly (at the cost of a little
15071   # extra space).
15072   freebsd2.2*)
15073     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15074     hardcode_libdir_flag_spec_GCJ='-R$libdir'
15075     hardcode_direct_GCJ=yes
15076     hardcode_shlibpath_var_GCJ=no
15077     ;;
15078
15079   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15080   freebsd2*)
15081     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15082     hardcode_direct_GCJ=yes
15083     hardcode_minus_L_GCJ=yes
15084     hardcode_shlibpath_var_GCJ=no
15085     ;;
15086
15087   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15088   freebsd*)
15089     archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15090     hardcode_libdir_flag_spec_GCJ='-R$libdir'
15091     hardcode_direct_GCJ=yes
15092     hardcode_shlibpath_var_GCJ=no
15093     ;;
15094
15095   hpux9* | hpux10* | hpux11*)
15096     if test $with_gcc = yes; then
15097       case $host_os in
15098       hpux9*) archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
15099       *) archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;;
15100       esac
15101     else
15102       case $host_os in
15103       hpux9*) archive_cmds_GCJ='$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' ;;
15104       *) archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
15105       esac
15106     fi
15107     hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15108     hardcode_libdir_separator_GCJ=:
15109     hardcode_direct_GCJ=yes
15110     hardcode_minus_L_GCJ=yes # Not in the search PATH, but as the default
15111                          # location of the library.
15112     export_dynamic_flag_spec_GCJ='${wl}-E'
15113     ;;
15114
15115   irix5* | irix6*)
15116     if test "$GCC" = yes; then
15117       archive_cmds_GCJ='$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'
15118     else
15119       archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15120     fi
15121     hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15122     hardcode_libdir_separator_GCJ=:
15123     link_all_deplibs_GCJ=yes
15124     ;;
15125
15126   netbsd*)
15127     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15128       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15129     else
15130       archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15131     fi
15132     hardcode_libdir_flag_spec_GCJ='-R$libdir'
15133     hardcode_direct_GCJ=yes
15134     hardcode_shlibpath_var_GCJ=no
15135     ;;
15136
15137   newsos6)
15138     archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
15139     hardcode_direct_GCJ=yes
15140     hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15141     hardcode_libdir_separator_GCJ=:
15142     hardcode_shlibpath_var_GCJ=no
15143     ;;
15144
15145   openbsd*)
15146     hardcode_direct_GCJ=yes
15147     hardcode_shlibpath_var_GCJ=no
15148
15149     case "$host_os" in
15150       openbsd01.* | openbsd2.0-7 | openbsd2.0-7.*)
15151         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15152         hardcode_libdir_flag_spec_GCJ='-R$libdir'
15153       ;;
15154       *)
15155         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
15156         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15157         if  "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc" ; then
15158          export_dynamic_flag_spec_GCJ='${wl}-E'
15159         fi
15160       ;;
15161     esac
15162     ;;
15163
15164   os2*)
15165     hardcode_libdir_flag_spec_GCJ='-L$libdir'
15166     hardcode_minus_L_GCJ=yes
15167     allow_undefined_flag_GCJ=unsupported
15168     archive_cmds_GCJ='$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'
15169     old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15170     ;;
15171
15172   osf3*)
15173     if test "$GCC" = yes; then
15174       allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15175       archive_cmds_GCJ='$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'
15176     else
15177       allow_undefined_flag_GCJ=' -expect_unresolved \*'
15178       archive_cmds_GCJ='$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'
15179     fi
15180     hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15181     hardcode_libdir_separator_GCJ=:
15182     ;;
15183
15184   osf4* | osf5*)        # as osf3* with the addition of -msym flag
15185     if test "$GCC" = yes; then
15186       allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15187       archive_cmds_GCJ='$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'
15188       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15189     else
15190       allow_undefined_flag_GCJ=' -expect_unresolved \*'
15191       archive_cmds_GCJ='$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'
15192       archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15193       $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'
15194
15195       # Both c and cxx compiler support -rpath directly
15196       hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15197     fi
15198     hardcode_libdir_separator_GCJ=:
15199     ;;
15200
15201   sco3.2v5*)
15202     archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15203     hardcode_shlibpath_var_GCJ=no
15204     export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15205     runpath_var=LD_RUN_PATH
15206     hardcode_runpath_var=yes
15207     ;;
15208
15209   solaris*)
15210     no_undefined_flag_GCJ=' -z defs'
15211     if test "$with_gcc" = yes; then
15212       archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15213       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15214         $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15215     else
15216       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15217       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15218         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15219     fi
15220     hardcode_libdir_flag_spec_GCJ='-R$libdir'
15221     hardcode_shlibpath_var_GCJ=no
15222     case $host_os in
15223     solaris2.[0-5] | solaris2.[0-5].*) ;;
15224     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15225       whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15226     esac
15227     link_all_deplibs_GCJ=yes
15228     ;;
15229
15230   sunos4*)
15231     if test "x$host_vendor" = xsequent; then
15232       # Use $CC to link under sequent, because it throws in some extra .o
15233       # files that make .init and .fini sections work.
15234       archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15235     else
15236       archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15237     fi
15238     hardcode_libdir_flag_spec_GCJ='-L$libdir'
15239     hardcode_direct_GCJ=yes
15240     hardcode_minus_L_GCJ=yes
15241     hardcode_shlibpath_var_GCJ=no
15242     ;;
15243
15244   sysv4)
15245     if test "x$host_vendor" = xsni; then
15246       archive_cmds_GCJ='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
15247       hardcode_direct_GCJ=yes # is this really true???
15248     else
15249       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15250       hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15251     fi
15252     runpath_var='LD_RUN_PATH'
15253     hardcode_shlibpath_var_GCJ=no
15254     ;;
15255
15256   sysv4.3*)
15257     archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15258     hardcode_shlibpath_var_GCJ=no
15259     export_dynamic_flag_spec_GCJ='-Bexport'
15260     ;;
15261
15262   sysv4*MP*)
15263     if test -d /usr/nec; then
15264       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15265       hardcode_shlibpath_var_GCJ=no
15266       runpath_var=LD_RUN_PATH
15267       hardcode_runpath_var=yes
15268       ld_shlibs_GCJ=yes
15269     fi
15270     ;;
15271
15272   sysv4.2uw2*)
15273     archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15274     hardcode_direct_GCJ=yes
15275     hardcode_minus_L_GCJ=no
15276     hardcode_shlibpath_var_GCJ=no
15277     hardcode_runpath_var=yes
15278     runpath_var=LD_RUN_PATH
15279     ;;
15280
15281   sysv5uw7* | unixware7*)
15282     no_undefined_flag_GCJ='${wl}-z ${wl}text'
15283     if test "$GCC" = yes; then
15284       archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15285     else
15286       archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15287     fi
15288     runpath_var='LD_RUN_PATH'
15289     hardcode_shlibpath_var_GCJ=no
15290     ;;
15291
15292   sysv5*)
15293     no_undefined_flag_GCJ=' -z text'
15294     # $CC -shared without GNU ld will not create a library from C++
15295     # object files and a static libstdc++, better avoid it by now
15296     archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15297     archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15298                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15299     hardcode_libdir_flag_spec_GCJ=
15300     hardcode_shlibpath_var_GCJ=no
15301     runpath_var='LD_RUN_PATH'
15302     ;;
15303
15304   uts4*)
15305     archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15306     hardcode_libdir_flag_spec_GCJ='-L$libdir'
15307     hardcode_shlibpath_var_GCJ=no
15308     ;;
15309
15310   *)
15311     ld_shlibs_GCJ=no
15312     ;;
15313   esac
15314 fi
15315 echo "$as_me:15315: result: $ld_shlibs_GCJ" >&5
15316 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15317 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15318
15319 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15320 if test "$GCC" = yes; then
15321   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15322 fi
15323
15324 #
15325 # Do we need to explicitly link libc?
15326 #
15327 archive_cmds_need_lc_GCJ=yes
15328 if test "$enable_shared" = yes && test "$GCC" = yes; then
15329   case $archive_cmds_GCJ in
15330   *'~'*)
15331     # FIXME: we may have to deal with multi-command sequences.
15332     ;;
15333   '$CC '*)
15334     # Test whether the compiler implicitly links with -lc since on some
15335     # systems, -lgcc has to come before -lc. If gcc already passes -lc
15336     # to ld, don't add -lc before -lgcc.
15337     echo "$as_me:15337: checking whether -lc should be explicitly linked in" >&5
15338 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15339     $rm conftest*
15340     echo 'static int dummy;' > conftest.$ac_ext
15341
15342     if { (eval echo "$as_me:15342: \"$ac_compile\"") >&5
15343   (eval $ac_compile) 2>&5
15344   ac_status=$?
15345   echo "$as_me:15345: \$? = $ac_status" >&5
15346   (exit $ac_status); } 2>conftest.err; then
15347       soname=conftest
15348       lib=conftest
15349       libobjs=conftest.$ac_objext
15350       deplibs=
15351       wl=$lt_prog_compiler_wl_GCJ
15352       compiler_flags=-v
15353       linker_flags=-v
15354       verstring=
15355       output_objdir=.
15356       libname=conftest
15357       lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15358       allow_undefined_flag_GCJ=
15359       if { (eval echo "$as_me:15359: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15360   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15361   ac_status=$?
15362   echo "$as_me:15362: \$? = $ac_status" >&5
15363   (exit $ac_status); }
15364       then
15365         archive_cmds_need_lc_GCJ=no
15366       else
15367         archive_cmds_need_lc_GCJ=yes
15368       fi
15369       allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15370     else
15371       cat conftest.err 1>&5
15372     fi
15373     $rm conftest*
15374     echo "$as_me:15374: result: $archive_cmds_need_lc_GCJ" >&5
15375 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15376     ;;
15377   esac
15378 fi
15379
15380 echo "$as_me:15380: checking how to hardcode library paths into programs" >&5
15381 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15382 hardcode_action_GCJ=
15383 if test -n "$hardcode_libdir_flag_spec" || \
15384    test -n "$runpath_var"; then
15385
15386   # We can hardcode non-existant directories.
15387   if test "$hardcode_direct_GCJ" != no &&
15388      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15389      # have to relink, otherwise we might link with an installed library
15390      # when we should be linking with a yet-to-be-installed one
15391      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15392      test "$hardcode_minus_L_GCJ" != no; then
15393     # Linking always hardcodes the temporary library directory.
15394     hardcode_action_GCJ=relink
15395   else
15396     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15397     hardcode_action_GCJ=immediate
15398   fi
15399 else
15400   # We cannot hardcode anything, or else we can only hardcode existing
15401   # directories.
15402   hardcode_action_GCJ=unsupported
15403 fi
15404 echo "$as_me:15404: result: $hardcode_action_GCJ" >&5
15405 echo "${ECHO_T}$hardcode_action_GCJ" >&6
15406
15407 if test "$hardcode_action_GCJ" = relink; then
15408   # Fast installation is not supported
15409   enable_fast_install=no
15410 elif test "$shlibpath_overrides_runpath" = yes ||
15411      test "$enable_shared" = no; then
15412   # Fast installation is not necessary
15413   enable_fast_install=needless
15414 fi
15415
15416 striplib=
15417 old_striplib=
15418 echo "$as_me:15418: checking whether stripping libraries is possible" >&5
15419 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15420 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15421   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15422   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15423   echo "$as_me:15423: result: yes" >&5
15424 echo "${ECHO_T}yes" >&6
15425 else
15426   echo "$as_me:15426: result: no" >&5
15427 echo "${ECHO_T}no" >&6
15428 fi
15429
15430 echo "$as_me:15430: checking dynamic linker characteristics" >&5
15431 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15432 library_names_spec=
15433 libname_spec='lib$name'
15434 soname_spec=
15435 postinstall_cmds=
15436 postuninstall_cmds=
15437 finish_cmds=
15438 finish_eval=
15439 shlibpath_var=
15440 shlibpath_overrides_runpath=unknown
15441 version_type=none
15442 dynamic_linker="$host_os ld.so"
15443 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15444 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15445 need_lib_prefix=unknown
15446 hardcode_into_libs=no
15447
15448 # when you set need_version to no, make sure it does not cause -set_version
15449 # flags to be left without arguments
15450 need_version=unknown
15451
15452 case $host_os in
15453 aix3*)
15454   version_type=linux
15455   library_names_spec='${libname}${release}.so$versuffix $libname.a'
15456   shlibpath_var=LIBPATH
15457
15458   # AIX 3 has no versioning support, so we append a major version to the name.
15459   soname_spec='${libname}${release}.so$major'
15460   ;;
15461
15462 aix4* | aix5*)
15463   version_type=linux
15464   if test "$host_cpu" = ia64; then
15465     # AIX 5 supports IA64
15466     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
15467     shlibpath_var=LD_LIBRARY_PATH
15468   else
15469     # With GCC up to 2.95.x, collect2 would create an import file
15470     # for dependence libraries.  The import file would start with
15471     # the line `#! .'.  This would cause the generated library to
15472     # depend on `.', always an invalid library.  This was fixed in
15473     # development snapshots of GCC prior to 3.0.
15474     case $host_os in
15475        aix4 | aix4.[01] | aix4.[01].*)
15476       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15477            echo ' yes '
15478            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15479         :
15480       else
15481         can_build_shared=no
15482       fi
15483       ;;
15484     esac
15485     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15486     # soname into executable. Probably we can add versioning support to
15487     # collect2, so additional links can be useful in future.
15488     if test "$aix_use_runtimelinking" = yes; then
15489       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15490       # instead of lib<name>.a to let people know that these are not
15491       # typical AIX shared libraries.
15492       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15493     else
15494       # We preserve .a as extension for shared libraries through AIX4.2
15495       # and later when we are not doing run time linking.
15496       library_names_spec='${libname}${release}.a $libname.a'
15497       soname_spec='${libname}${release}.so$major'
15498     fi
15499     shlibpath_var=LIBPATH
15500     deplibs_check_method=pass_all
15501   fi
15502   ;;
15503
15504 amigaos*)
15505   library_names_spec='$libname.ixlibrary $libname.a'
15506   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15507   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'
15508   ;;
15509
15510 beos*)
15511   library_names_spec='${libname}.so'
15512   dynamic_linker="$host_os ld.so"
15513   shlibpath_var=LIBRARY_PATH
15514   ;;
15515
15516 bsdi4*)
15517   version_type=linux
15518   need_version=no
15519   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15520   soname_spec='${libname}${release}.so$major'
15521   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15522   shlibpath_var=LD_LIBRARY_PATH
15523   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15524   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15525   # the default ld.so.conf also contains /usr/contrib/lib and
15526   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15527   # libtool to hard-code these into programs
15528   ;;
15529
15530 cygwin* | mingw* | pw32*)
15531   version_type=windows
15532   need_version=no
15533   need_lib_prefix=no
15534   case $GCC,$host_os in
15535   yes,cygwin*)
15536     library_names_spec='$libname.dll.a'
15537     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
15538     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
15539       dldir=$destdir/`dirname \$dlpath`~
15540       test -d \$dldir || mkdir -p \$dldir~
15541       $install_prog .libs/$dlname \$dldir/$dlname'
15542     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
15543       dlpath=$dir/\$dldll~
15544        $rm \$dlpath'
15545     ;;
15546   yes,mingw*)
15547     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
15548     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
15549     ;;
15550   yes,pw32*)
15551     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
15552     ;;
15553   *)
15554     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
15555     ;;
15556   esac
15557   dynamic_linker='Win32 ld.exe'
15558   # FIXME: first we should search . and the directory the executable is in
15559   shlibpath_var=PATH
15560   ;;
15561
15562 darwin* | rhapsody*)
15563   dynamic_linker="$host_os dyld"
15564   version_type=darwin
15565   need_lib_prefix=no
15566   need_version=no
15567   # FIXME: Relying on posixy $() will cause problems for
15568   #        cross-compilation, but unfortunately the echo tests do not
15569   #        yet detect zsh echo's removal of \ escapes.
15570   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)'
15571   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
15572   shlibpath_overrides_runpath=yes
15573   shlibpath_var=DYLD_LIBRARY_PATH
15574   ;;
15575
15576 dgux*)
15577   version_type=linux
15578   need_lib_prefix=no
15579   need_version=no
15580   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15581   soname_spec='${libname}${release}.so$major'
15582   shlibpath_var=LD_LIBRARY_PATH
15583   ;;
15584
15585 freebsd1*)
15586   dynamic_linker=no
15587   ;;
15588
15589 freebsd*)
15590   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15591   version_type=freebsd-$objformat
15592   case $version_type in
15593     freebsd-elf*)
15594       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
15595       need_version=no
15596       need_lib_prefix=no
15597       ;;
15598     freebsd-*)
15599       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
15600       need_version=yes
15601       ;;
15602   esac
15603   shlibpath_var=LD_LIBRARY_PATH
15604   case $host_os in
15605   freebsd2*)
15606     shlibpath_overrides_runpath=yes
15607     ;;
15608   freebsd3.01* | freebsdelf3.01*)
15609     shlibpath_overrides_runpath=yes
15610     hardcode_into_libs=yes
15611     ;;
15612   *) # from 3.2 on
15613     shlibpath_overrides_runpath=no
15614     hardcode_into_libs=yes
15615     ;;
15616   esac
15617   ;;
15618
15619 gnu*)
15620   version_type=linux
15621   need_lib_prefix=no
15622   need_version=no
15623   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
15624   soname_spec='${libname}${release}.so$major'
15625   shlibpath_var=LD_LIBRARY_PATH
15626   hardcode_into_libs=yes
15627   ;;
15628
15629 hpux9* | hpux10* | hpux11*)
15630   # Give a soname corresponding to the major version so that dld.sl refuses to
15631   # link against other versions.
15632   dynamic_linker="$host_os dld.sl"
15633   version_type=sunos
15634   need_lib_prefix=no
15635   need_version=no
15636   shlibpath_var=SHLIB_PATH
15637   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15638   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
15639   soname_spec='${libname}${release}.sl$major'
15640   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15641   postinstall_cmds='chmod 555 $lib'
15642   ;;
15643
15644 irix5* | irix6*)
15645   version_type=irix
15646   need_lib_prefix=no
15647   need_version=no
15648   soname_spec='${libname}${release}.so.$major'
15649   library_names_spec='${libname}${release}.so.$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
15650   case $host_os in
15651   irix5*)
15652     libsuff= shlibsuff=
15653     ;;
15654   *)
15655     case $LD in # libtool.m4 will add one of these switches to LD
15656     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
15657     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
15658     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
15659     *) libsuff= shlibsuff= libmagic=never-match;;
15660     esac
15661     ;;
15662   esac
15663   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15664   shlibpath_overrides_runpath=no
15665   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15666   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15667   ;;
15668
15669 # No shared lib support for Linux oldld, aout, or coff.
15670 linux*oldld* | linux*aout* | linux*coff*)
15671   dynamic_linker=no
15672   ;;
15673
15674 # This must be Linux ELF.
15675 linux*)
15676   version_type=linux
15677   need_lib_prefix=no
15678   need_version=no
15679   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15680   soname_spec='${libname}${release}.so$major'
15681   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15682   shlibpath_var=LD_LIBRARY_PATH
15683   shlibpath_overrides_runpath=no
15684   # This implies no fast_install, which is unacceptable.
15685   # Some rework will be needed to allow for fast_install
15686   # before this can be enabled.
15687   hardcode_into_libs=yes
15688
15689   # We used to test for /lib/ld.so.1 and disable shared libraries on
15690   # powerpc, because MkLinux only supported shared libraries with the
15691   # GNU dynamic linker.  Since this was broken with cross compilers,
15692   # most powerpc-linux boxes support dynamic linking these days and
15693   # people can always --disable-shared, the test was removed, and we
15694   # assume the GNU/Linux dynamic linker is in use.
15695   dynamic_linker='GNU/Linux ld.so'
15696   ;;
15697
15698 netbsd*)
15699   version_type=sunos
15700   need_lib_prefix=no
15701   need_version=no
15702   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15703     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
15704     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15705     dynamic_linker='NetBSD (a.out) ld.so'
15706   else
15707     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
15708     soname_spec='${libname}${release}.so$major'
15709     dynamic_linker='NetBSD ld.elf_so'
15710   fi
15711   shlibpath_var=LD_LIBRARY_PATH
15712   shlibpath_overrides_runpath=yes
15713   hardcode_into_libs=yes
15714   ;;
15715
15716 newsos6)
15717   version_type=linux
15718   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15719   shlibpath_var=LD_LIBRARY_PATH
15720   shlibpath_overrides_runpath=yes
15721   ;;
15722
15723 openbsd*)
15724   version_type=sunos
15725   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
15726   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15727   shlibpath_var=LD_LIBRARY_PATH
15728   file_magic_cmd=/usr/bin/file
15729   file_magic_test_file=`echo /usr/lib/libc.so.*`
15730   if  "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc" ; then
15731     deplibs_check_method='file_magic ELF 0-90-9*-bit LMSB shared object'
15732   else
15733     deplibs_check_method='file_magic OpenBSD.* shared library'
15734   fi
15735   ;;
15736
15737 os2*)
15738   libname_spec='$name'
15739   need_lib_prefix=no
15740   library_names_spec='$libname.dll $libname.a'
15741   dynamic_linker='OS/2 ld.exe'
15742   shlibpath_var=LIBPATH
15743   ;;
15744
15745 osf3* | osf4* | osf5*)
15746   version_type=osf
15747   need_version=no
15748   soname_spec='${libname}${release}.so'
15749   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
15750   shlibpath_var=LD_LIBRARY_PATH
15751   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15752   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15753   ;;
15754
15755 sco3.2v5*)
15756   version_type=osf
15757   soname_spec='${libname}${release}.so$major'
15758   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15759   shlibpath_var=LD_LIBRARY_PATH
15760   ;;
15761
15762 solaris*)
15763   version_type=linux
15764   need_lib_prefix=no
15765   need_version=no
15766   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15767   soname_spec='${libname}${release}.so$major'
15768   shlibpath_var=LD_LIBRARY_PATH
15769   shlibpath_overrides_runpath=yes
15770   hardcode_into_libs=yes
15771   # ldd complains unless libraries are executable
15772   postinstall_cmds='chmod +x $lib'
15773   ;;
15774
15775 sunos4*)
15776   version_type=sunos
15777   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
15778   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15779   shlibpath_var=LD_LIBRARY_PATH
15780   shlibpath_overrides_runpath=yes
15781   if test "$with_gnu_ld" = yes; then
15782     need_lib_prefix=no
15783   fi
15784   need_version=yes
15785   ;;
15786
15787 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15788   version_type=linux
15789   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15790   soname_spec='${libname}${release}.so$major'
15791   shlibpath_var=LD_LIBRARY_PATH
15792   case $host_vendor in
15793     sni)
15794       shlibpath_overrides_runpath=no
15795       ;;
15796     motorola)
15797       need_lib_prefix=no
15798       need_version=no
15799       shlibpath_overrides_runpath=no
15800       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15801       ;;
15802   esac
15803   ;;
15804
15805 sysv4*MP*)
15806   if test -d /usr/nec ;then
15807     version_type=linux
15808     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
15809     soname_spec='$libname.so.$major'
15810     shlibpath_var=LD_LIBRARY_PATH
15811   fi
15812   ;;
15813
15814 uts4*)
15815   version_type=linux
15816   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15817   soname_spec='${libname}${release}.so$major'
15818   shlibpath_var=LD_LIBRARY_PATH
15819   ;;
15820
15821 *)
15822   dynamic_linker=no
15823   ;;
15824 esac
15825 echo "$as_me:15825: result: $dynamic_linker" >&5
15826 echo "${ECHO_T}$dynamic_linker" >&6
15827 test "$dynamic_linker" = no && can_build_shared=no
15828
15829 if test "x$enable_dlopen" != xyes; then
15830   enable_dlopen=unknown
15831   enable_dlopen_self=unknown
15832   enable_dlopen_self_static=unknown
15833 else
15834   lt_cv_dlopen=no
15835   lt_cv_dlopen_libs=
15836
15837   case $host_os in
15838   beos*)
15839     lt_cv_dlopen="load_add_on"
15840     lt_cv_dlopen_libs=
15841     lt_cv_dlopen_self=yes
15842     ;;
15843
15844   cygwin* | mingw* | pw32*)
15845     lt_cv_dlopen="LoadLibrary"
15846     lt_cv_dlopen_libs=
15847    ;;
15848
15849   *)
15850     echo "$as_me:15850: checking for shl_load" >&5
15851 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
15852 if test "${ac_cv_func_shl_load+set}" = set; then
15853   echo $ECHO_N "(cached) $ECHO_C" >&6
15854 else
15855   cat >conftest.$ac_ext <<_ACEOF
15856 #line 15856 "configure"
15857 #include "confdefs.h"
15858 /* System header to define __stub macros and hopefully few prototypes,
15859     which can conflict with char shl_load (); below.  */
15860 #include <assert.h>
15861 /* Override any gcc2 internal prototype to avoid an error.  */
15862 #ifdef __cplusplus
15863 extern "C"
15864 #endif
15865 /* We use char because int might match the return type of a gcc2
15866    builtin and then its argument prototype would still apply.  */
15867 char shl_load ();
15868 char (*f) ();
15869
15870 int
15871 main ()
15872 {
15873 /* The GNU C library defines this for functions which it implements
15874     to always fail with ENOSYS.  Some functions are actually named
15875     something starting with __ and the normal name is an alias.  */
15876 #if defined (__stub_shl_load) || defined (__stub___shl_load)
15877 choke me
15878 #else
15879 f = shl_load;
15880 #endif
15881
15882   ;
15883   return 0;
15884 }
15885 _ACEOF
15886 rm -f conftest.$ac_objext conftest$ac_exeext
15887 if { (eval echo "$as_me:15887: \"$ac_link\"") >&5
15888   (eval $ac_link) 2>&5
15889   ac_status=$?
15890   echo "$as_me:15890: \$? = $ac_status" >&5
15891   (exit $ac_status); } &&
15892          { ac_try='test -s conftest$ac_exeext'
15893   { (eval echo "$as_me:15893: \"$ac_try\"") >&5
15894   (eval $ac_try) 2>&5
15895   ac_status=$?
15896   echo "$as_me:15896: \$? = $ac_status" >&5
15897   (exit $ac_status); }; }; then
15898   ac_cv_func_shl_load=yes
15899 else
15900   echo "$as_me: failed program was:" >&5
15901 cat conftest.$ac_ext >&5
15902 ac_cv_func_shl_load=no
15903 fi
15904 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15905 fi
15906 echo "$as_me:15906: result: $ac_cv_func_shl_load" >&5
15907 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
15908 if test $ac_cv_func_shl_load = yes; then
15909   lt_cv_dlopen="shl_load"
15910 else
15911   echo "$as_me:15911: checking for shl_load in -ldld" >&5
15912 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
15913 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15914   echo $ECHO_N "(cached) $ECHO_C" >&6
15915 else
15916   ac_check_lib_save_LIBS=$LIBS
15917 LIBS="-ldld  $LIBS"
15918 cat >conftest.$ac_ext <<_ACEOF
15919 #line 15919 "configure"
15920 #include "confdefs.h"
15921
15922 /* Override any gcc2 internal prototype to avoid an error.  */
15923 #ifdef __cplusplus
15924 extern "C"
15925 #endif
15926 /* We use char because int might match the return type of a gcc2
15927    builtin and then its argument prototype would still apply.  */
15928 char shl_load ();
15929 int
15930 main ()
15931 {
15932 shl_load ();
15933   ;
15934   return 0;
15935 }
15936 _ACEOF
15937 rm -f conftest.$ac_objext conftest$ac_exeext
15938 if { (eval echo "$as_me:15938: \"$ac_link\"") >&5
15939   (eval $ac_link) 2>&5
15940   ac_status=$?
15941   echo "$as_me:15941: \$? = $ac_status" >&5
15942   (exit $ac_status); } &&
15943          { ac_try='test -s conftest$ac_exeext'
15944   { (eval echo "$as_me:15944: \"$ac_try\"") >&5
15945   (eval $ac_try) 2>&5
15946   ac_status=$?
15947   echo "$as_me:15947: \$? = $ac_status" >&5
15948   (exit $ac_status); }; }; then
15949   ac_cv_lib_dld_shl_load=yes
15950 else
15951   echo "$as_me: failed program was:" >&5
15952 cat conftest.$ac_ext >&5
15953 ac_cv_lib_dld_shl_load=no
15954 fi
15955 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15956 LIBS=$ac_check_lib_save_LIBS
15957 fi
15958 echo "$as_me:15958: result: $ac_cv_lib_dld_shl_load" >&5
15959 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
15960 if test $ac_cv_lib_dld_shl_load = yes; then
15961   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
15962 else
15963   echo "$as_me:15963: checking for dlopen in -ldl" >&5
15964 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
15965 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15966   echo $ECHO_N "(cached) $ECHO_C" >&6
15967 else
15968   ac_check_lib_save_LIBS=$LIBS
15969 LIBS="-ldl  $LIBS"
15970 cat >conftest.$ac_ext <<_ACEOF
15971 #line 15971 "configure"
15972 #include "confdefs.h"
15973
15974 /* Override any gcc2 internal prototype to avoid an error.  */
15975 #ifdef __cplusplus
15976 extern "C"
15977 #endif
15978 /* We use char because int might match the return type of a gcc2
15979    builtin and then its argument prototype would still apply.  */
15980 char dlopen ();
15981 int
15982 main ()
15983 {
15984 dlopen ();
15985   ;
15986   return 0;
15987 }
15988 _ACEOF
15989 rm -f conftest.$ac_objext conftest$ac_exeext
15990 if { (eval echo "$as_me:15990: \"$ac_link\"") >&5
15991   (eval $ac_link) 2>&5
15992   ac_status=$?
15993   echo "$as_me:15993: \$? = $ac_status" >&5
15994   (exit $ac_status); } &&
15995          { ac_try='test -s conftest$ac_exeext'
15996   { (eval echo "$as_me:15996: \"$ac_try\"") >&5
15997   (eval $ac_try) 2>&5
15998   ac_status=$?
15999   echo "$as_me:15999: \$? = $ac_status" >&5
16000   (exit $ac_status); }; }; then
16001   ac_cv_lib_dl_dlopen=yes
16002 else
16003   echo "$as_me: failed program was:" >&5
16004 cat conftest.$ac_ext >&5
16005 ac_cv_lib_dl_dlopen=no
16006 fi
16007 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16008 LIBS=$ac_check_lib_save_LIBS
16009 fi
16010 echo "$as_me:16010: result: $ac_cv_lib_dl_dlopen" >&5
16011 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16012 if test $ac_cv_lib_dl_dlopen = yes; then
16013   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16014 else
16015   echo "$as_me:16015: checking for dlopen" >&5
16016 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16017 if test "${ac_cv_func_dlopen+set}" = set; then
16018   echo $ECHO_N "(cached) $ECHO_C" >&6
16019 else
16020   cat >conftest.$ac_ext <<_ACEOF
16021 #line 16021 "configure"
16022 #include "confdefs.h"
16023 /* System header to define __stub macros and hopefully few prototypes,
16024     which can conflict with char dlopen (); below.  */
16025 #include <assert.h>
16026 /* Override any gcc2 internal prototype to avoid an error.  */
16027 #ifdef __cplusplus
16028 extern "C"
16029 #endif
16030 /* We use char because int might match the return type of a gcc2
16031    builtin and then its argument prototype would still apply.  */
16032 char dlopen ();
16033 char (*f) ();
16034
16035 int
16036 main ()
16037 {
16038 /* The GNU C library defines this for functions which it implements
16039     to always fail with ENOSYS.  Some functions are actually named
16040     something starting with __ and the normal name is an alias.  */
16041 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16042 choke me
16043 #else
16044 f = dlopen;
16045 #endif
16046
16047   ;
16048   return 0;
16049 }
16050 _ACEOF
16051 rm -f conftest.$ac_objext conftest$ac_exeext
16052 if { (eval echo "$as_me:16052: \"$ac_link\"") >&5
16053   (eval $ac_link) 2>&5
16054   ac_status=$?
16055   echo "$as_me:16055: \$? = $ac_status" >&5
16056   (exit $ac_status); } &&
16057          { ac_try='test -s conftest$ac_exeext'
16058   { (eval echo "$as_me:16058: \"$ac_try\"") >&5
16059   (eval $ac_try) 2>&5
16060   ac_status=$?
16061   echo "$as_me:16061: \$? = $ac_status" >&5
16062   (exit $ac_status); }; }; then
16063   ac_cv_func_dlopen=yes
16064 else
16065   echo "$as_me: failed program was:" >&5
16066 cat conftest.$ac_ext >&5
16067 ac_cv_func_dlopen=no
16068 fi
16069 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16070 fi
16071 echo "$as_me:16071: result: $ac_cv_func_dlopen" >&5
16072 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16073 if test $ac_cv_func_dlopen = yes; then
16074   lt_cv_dlopen="dlopen"
16075 else
16076   echo "$as_me:16076: checking for dlopen in -lsvld" >&5
16077 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16078 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16079   echo $ECHO_N "(cached) $ECHO_C" >&6
16080 else
16081   ac_check_lib_save_LIBS=$LIBS
16082 LIBS="-lsvld  $LIBS"
16083 cat >conftest.$ac_ext <<_ACEOF
16084 #line 16084 "configure"
16085 #include "confdefs.h"
16086
16087 /* Override any gcc2 internal prototype to avoid an error.  */
16088 #ifdef __cplusplus
16089 extern "C"
16090 #endif
16091 /* We use char because int might match the return type of a gcc2
16092    builtin and then its argument prototype would still apply.  */
16093 char dlopen ();
16094 int
16095 main ()
16096 {
16097 dlopen ();
16098   ;
16099   return 0;
16100 }
16101 _ACEOF
16102 rm -f conftest.$ac_objext conftest$ac_exeext
16103 if { (eval echo "$as_me:16103: \"$ac_link\"") >&5
16104   (eval $ac_link) 2>&5
16105   ac_status=$?
16106   echo "$as_me:16106: \$? = $ac_status" >&5
16107   (exit $ac_status); } &&
16108          { ac_try='test -s conftest$ac_exeext'
16109   { (eval echo "$as_me:16109: \"$ac_try\"") >&5
16110   (eval $ac_try) 2>&5
16111   ac_status=$?
16112   echo "$as_me:16112: \$? = $ac_status" >&5
16113   (exit $ac_status); }; }; then
16114   ac_cv_lib_svld_dlopen=yes
16115 else
16116   echo "$as_me: failed program was:" >&5
16117 cat conftest.$ac_ext >&5
16118 ac_cv_lib_svld_dlopen=no
16119 fi
16120 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16121 LIBS=$ac_check_lib_save_LIBS
16122 fi
16123 echo "$as_me:16123: result: $ac_cv_lib_svld_dlopen" >&5
16124 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16125 if test $ac_cv_lib_svld_dlopen = yes; then
16126   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16127 fi
16128
16129 fi
16130
16131 fi
16132
16133 fi
16134
16135 fi
16136
16137     ;;
16138   esac
16139
16140   if test "x$lt_cv_dlopen" != xno; then
16141     enable_dlopen=yes
16142   else
16143     enable_dlopen=no
16144   fi
16145
16146   case $lt_cv_dlopen in
16147   dlopen)
16148     save_CPPFLAGS="$CPPFLAGS"
16149     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16150
16151     save_LDFLAGS="$LDFLAGS"
16152     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16153
16154     save_LIBS="$LIBS"
16155     LIBS="$lt_cv_dlopen_libs $LIBS"
16156
16157     echo "$as_me:16157: checking whether a program can dlopen itself" >&5
16158 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16159 if test "${lt_cv_dlopen_self+set}" = set; then
16160   echo $ECHO_N "(cached) $ECHO_C" >&6
16161 else
16162           if test "$cross_compiling" = yes; then :
16163   lt_cv_dlopen_self=cross
16164 else
16165   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16166   lt_status=$lt_dlunknown
16167   cat > conftest.$ac_ext <<EOF
16168 #line 16168 "configure"
16169 #include "confdefs.h"
16170
16171 #if HAVE_DLFCN_H
16172 #include <dlfcn.h>
16173 #endif
16174
16175 #include <stdio.h>
16176
16177 #ifdef RTLD_GLOBAL
16178 #  define LT_DLGLOBAL           RTLD_GLOBAL
16179 #else
16180 #  ifdef DL_GLOBAL
16181 #    define LT_DLGLOBAL         DL_GLOBAL
16182 #  else
16183 #    define LT_DLGLOBAL         0
16184 #  endif
16185 #endif
16186
16187 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16188    find out it does not work in some platform. */
16189 #ifndef LT_DLLAZY_OR_NOW
16190 #  ifdef RTLD_LAZY
16191 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16192 #  else
16193 #    ifdef DL_LAZY
16194 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16195 #    else
16196 #      ifdef RTLD_NOW
16197 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16198 #      else
16199 #        ifdef DL_NOW
16200 #          define LT_DLLAZY_OR_NOW      DL_NOW
16201 #        else
16202 #          define LT_DLLAZY_OR_NOW      0
16203 #        endif
16204 #      endif
16205 #    endif
16206 #  endif
16207 #endif
16208
16209 #ifdef __cplusplus
16210 extern "C" void exit (int);
16211 #endif
16212
16213 void fnord() { int i=42;}
16214 int main ()
16215 {
16216   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16217   int status = $lt_dlunknown;
16218
16219   if (self)
16220     {
16221       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16222       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16223       /* dlclose (self); */
16224     }
16225
16226     exit (status);
16227 }
16228 EOF
16229   if { (eval echo "$as_me:16229: \"$ac_link\"") >&5
16230   (eval $ac_link) 2>&5
16231   ac_status=$?
16232   echo "$as_me:16232: \$? = $ac_status" >&5
16233   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16234     (./conftest; exit; ) 2>/dev/null
16235     lt_status=$?
16236     case x$lt_status in
16237       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16238       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16239       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
16240     esac
16241   else :
16242     # compilation failed
16243     lt_cv_dlopen_self=no
16244   fi
16245 fi
16246 rm -fr conftest*
16247
16248 fi
16249 echo "$as_me:16249: result: $lt_cv_dlopen_self" >&5
16250 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
16251
16252     if test "x$lt_cv_dlopen_self" = xyes; then
16253       LDFLAGS="$LDFLAGS $link_static_flag"
16254       echo "$as_me:16254: checking whether a statically linked program can dlopen itself" >&5
16255 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
16256 if test "${lt_cv_dlopen_self_static+set}" = set; then
16257   echo $ECHO_N "(cached) $ECHO_C" >&6
16258 else
16259           if test "$cross_compiling" = yes; then :
16260   lt_cv_dlopen_self_static=cross
16261 else
16262   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16263   lt_status=$lt_dlunknown
16264   cat > conftest.$ac_ext <<EOF
16265 #line 16265 "configure"
16266 #include "confdefs.h"
16267
16268 #if HAVE_DLFCN_H
16269 #include <dlfcn.h>
16270 #endif
16271
16272 #include <stdio.h>
16273
16274 #ifdef RTLD_GLOBAL
16275 #  define LT_DLGLOBAL           RTLD_GLOBAL
16276 #else
16277 #  ifdef DL_GLOBAL
16278 #    define LT_DLGLOBAL         DL_GLOBAL
16279 #  else
16280 #    define LT_DLGLOBAL         0
16281 #  endif
16282 #endif
16283
16284 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16285    find out it does not work in some platform. */
16286 #ifndef LT_DLLAZY_OR_NOW
16287 #  ifdef RTLD_LAZY
16288 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16289 #  else
16290 #    ifdef DL_LAZY
16291 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16292 #    else
16293 #      ifdef RTLD_NOW
16294 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16295 #      else
16296 #        ifdef DL_NOW
16297 #          define LT_DLLAZY_OR_NOW      DL_NOW
16298 #        else
16299 #          define LT_DLLAZY_OR_NOW      0
16300 #        endif
16301 #      endif
16302 #    endif
16303 #  endif
16304 #endif
16305
16306 #ifdef __cplusplus
16307 extern "C" void exit (int);
16308 #endif
16309
16310 void fnord() { int i=42;}
16311 int main ()
16312 {
16313   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16314   int status = $lt_dlunknown;
16315
16316   if (self)
16317     {
16318       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16319       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16320       /* dlclose (self); */
16321     }
16322
16323     exit (status);
16324 }
16325 EOF
16326   if { (eval echo "$as_me:16326: \"$ac_link\"") >&5
16327   (eval $ac_link) 2>&5
16328   ac_status=$?
16329   echo "$as_me:16329: \$? = $ac_status" >&5
16330   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16331     (./conftest; exit; ) 2>/dev/null
16332     lt_status=$?
16333     case x$lt_status in
16334       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16335       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16336       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
16337     esac
16338   else :
16339     # compilation failed
16340     lt_cv_dlopen_self_static=no
16341   fi
16342 fi
16343 rm -fr conftest*
16344
16345 fi
16346 echo "$as_me:16346: result: $lt_cv_dlopen_self_static" >&5
16347 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
16348     fi
16349
16350     CPPFLAGS="$save_CPPFLAGS"
16351     LDFLAGS="$save_LDFLAGS"
16352     LIBS="$save_LIBS"
16353     ;;
16354   esac
16355
16356   case $lt_cv_dlopen_self in
16357   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16358   *) enable_dlopen_self=unknown ;;
16359   esac
16360
16361   case $lt_cv_dlopen_self_static in
16362   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16363   *) enable_dlopen_self_static=unknown ;;
16364   esac
16365 fi
16366
16367 # The else clause should only fire when bootstrapping the
16368 # libtool distribution, otherwise you forgot to ship ltmain.sh
16369 # with your package, and you will get complaints that there are
16370 # no rules to generate ltmain.sh.
16371 if test -f "$ltmain"; then
16372   # Now quote all the things that may contain metacharacters while being
16373   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16374   # variables and quote the copies for generation of the libtool script.
16375   for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S NM SHELL \
16376     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16377     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16378     deplibs_check_method reload_flag reload_cmds need_locks \
16379     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16380     lt_cv_sys_global_symbol_to_c_name_address \
16381     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16382     old_postinstall_cmds old_postuninstall_cmds \
16383     compiler_GCJ \
16384     CC_GCJ \
16385     LD_GCJ \
16386     lt_prog_compiler_wl_GCJ \
16387     lt_prog_compiler_pic_GCJ \
16388     lt_prog_compiler_static_GCJ \
16389     lt_prog_compiler_no_builtin_flag_GCJ \
16390     export_dynamic_flag_spec_GCJ \
16391     thread_safe_flag_spec_GCJ \
16392     whole_archive_flag_spec_GCJ \
16393     old_archive_cmds_GCJ \
16394     old_archive_from_new_cmds_GCJ \
16395     predep_objects_GCJ \
16396     postdep_objects_GCJ \
16397     predeps_GCJ \
16398     postdeps_GCJ \
16399     compiler_lib_search_path_GCJ \
16400     archive_cmds_GCJ \
16401     archive_expsym_cmds_GCJ \
16402     postinstall_cmds_GCJ \
16403     postuninstall_cmds_GCJ \
16404     old_archive_from_expsyms_cmds_GCJ \
16405     allow_undefined_flag_GCJ \
16406     no_undefined_flag_GCJ \
16407     export_symbols_cmds_GCJ \
16408     hardcode_libdir_flag_spec_GCJ \
16409     hardcode_libdir_separator_GCJ \
16410     lt_cv_prog_compiler_c_o_GCJ \
16411     exclude_expsyms_GCJ \
16412     include_expsyms_GCJ; do
16413
16414     case $var in
16415     old_archive_cmds_GCJ | \
16416     old_archive_from_new_cmds_GCJ | \
16417     archive_cmds_GCJ | \
16418     archive_expsym_cmds_GCJ | \
16419     old_archive_from_expsyms_cmds_GCJ | \
16420     export_symbols_cmds_GCJ | \
16421     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16422     postinstall_cmds | postuninstall_cmds | \
16423     old_postinstall_cmds | old_postuninstall_cmds | \
16424     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16425       # Double-quote double-evaled strings.
16426       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16427       ;;
16428     *)
16429       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16430       ;;
16431     esac
16432   done
16433
16434   case $lt_echo in
16435   *'\$0 --fallback-echo"')
16436     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16437     ;;
16438   esac
16439
16440 cfgfile="$ofile"
16441
16442   cat <<__EOF__ >> "$cfgfile"
16443 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16444
16445 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16446
16447 # Shell to use when invoking shell scripts.
16448 SHELL=$lt_SHELL
16449
16450 # Whether or not to build shared libraries.
16451 build_libtool_libs=$enable_shared
16452
16453 # Whether or not to build static libraries.
16454 build_old_libs=$enable_static
16455
16456 # Whether or not to add -lc for building shared libraries.
16457 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
16458
16459 # Whether or not to optimize for fast installation.
16460 fast_install=$enable_fast_install
16461
16462 # The host system.
16463 host_alias=$host_alias
16464 host=$host
16465
16466 # An echo program that does not interpret backslashes.
16467 echo=$lt_echo
16468
16469 # The archiver.
16470 AR=$lt_AR
16471 AR_FLAGS=$lt_AR_FLAGS
16472
16473 # A C compiler.
16474 LTCC=$LTCC
16475
16476 # A language-specific compiler.
16477 CC=$lt_compiler_GCJ
16478
16479 # Is the compiler the GNU C compiler?
16480 with_gcc=$GCC_GCJ
16481
16482 # The linker used to build libraries.
16483 LD=$lt_LD_GCJ
16484
16485 # Whether we need hard or soft links.
16486 LN_S=$lt_LN_S
16487
16488 # A BSD-compatible nm program.
16489 NM=$lt_NM
16490
16491 # A symbol stripping program
16492 STRIP=$STRIP
16493
16494 # Used to examine libraries when file_magic_cmd begins "file"
16495 MAGIC_CMD=$MAGIC_CMD
16496
16497 # Used on cygwin: DLL creation program.
16498 DLLTOOL="$DLLTOOL"
16499
16500 # Used on cygwin: object dumper.
16501 OBJDUMP="$OBJDUMP"
16502
16503 # Used on cygwin: assembler.
16504 AS="$AS"
16505
16506 # The name of the directory that contains temporary libtool files.
16507 objdir=$objdir
16508
16509 # How to create reloadable object files.
16510 reload_flag=$lt_reload_flag
16511 reload_cmds=$lt_reload_cmds
16512
16513 # How to pass a linker flag through the compiler.
16514 wl=$lt_lt_prog_compiler_wl_GCJ
16515
16516 # Object file suffix (normally "o").
16517 objext="$ac_objext"
16518
16519 # Old archive suffix (normally "a").
16520 libext="$libext"
16521
16522 # Executable file suffix (normally "").
16523 exeext="$exeext"
16524
16525 # Additional compiler flags for building library objects.
16526 pic_flag=$lt_lt_prog_compiler_pic_GCJ
16527 pic_mode=$pic_mode
16528
16529 # What is the maximum length of a command?
16530 max_cmd_len=$lt_cv_sys_max_cmd_len
16531
16532 # Does compiler simultaneously support -c and -o options?
16533 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
16534
16535 # Must we lock files when doing compilation ?
16536 need_locks=$lt_need_locks
16537
16538 # Do we need the lib prefix for modules?
16539 need_lib_prefix=$need_lib_prefix
16540
16541 # Do we need a version for libraries?
16542 need_version=$need_version
16543
16544 # Whether dlopen is supported.
16545 dlopen_support=$enable_dlopen
16546
16547 # Whether dlopen of programs is supported.
16548 dlopen_self=$enable_dlopen_self
16549
16550 # Whether dlopen of statically linked programs is supported.
16551 dlopen_self_static=$enable_dlopen_self_static
16552
16553 # Compiler flag to prevent dynamic linking.
16554 link_static_flag=$lt_lt_prog_compiler_static_GCJ
16555
16556 # Compiler flag to turn off builtin functions.
16557 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
16558
16559 # Compiler flag to allow reflexive dlopens.
16560 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
16561
16562 # Compiler flag to generate shared objects directly from archives.
16563 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
16564
16565 # Compiler flag to generate thread-safe objects.
16566 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
16567
16568 # Library versioning type.
16569 version_type=$version_type
16570
16571 # Format of library name prefix.
16572 libname_spec=$lt_libname_spec
16573
16574 # List of archive names.  First name is the real one, the rest are links.
16575 # The last name is the one that the linker finds with -lNAME.
16576 library_names_spec=$lt_library_names_spec
16577
16578 # The coded name of the library, if different from the real name.
16579 soname_spec=$lt_soname_spec
16580
16581 # Commands used to build and install an old-style archive.
16582 RANLIB=$lt_RANLIB
16583 old_archive_cmds=$lt_old_archive_cmds_GCJ
16584 old_postinstall_cmds=$lt_old_postinstall_cmds
16585 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16586
16587 # Create an old-style archive from a shared archive.
16588 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
16589
16590 # Create a temporary old-style archive to link instead of a shared archive.
16591 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
16592
16593 # Commands used to build and install a shared archive.
16594 archive_cmds=$lt_archive_cmds_GCJ
16595 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
16596 postinstall_cmds=$lt_postinstall_cmds
16597 postuninstall_cmds=$lt_postuninstall_cmds
16598
16599 # Commands to strip libraries.
16600 old_striplib=$lt_old_striplib
16601 striplib=$lt_striplib
16602
16603 # Dependencies to place before the objects being linked to create a
16604 # shared library.
16605 predep_objects=$lt_predep_objects_GCJ
16606
16607 # Dependencies to place after the objects being linked to create a
16608 # shared library.
16609 postdep_objects=$lt_postdep_objects_GCJ
16610
16611 # Dependencies to place before the objects being linked to create a
16612 # shared library.
16613 predeps=$lt_predeps_GCJ
16614
16615 # Dependencies to place after the objects being linked to create a
16616 # shared library.
16617 postdeps=$lt_postdeps_GCJ
16618
16619 # The library search path used internally by the compiler when linking
16620 # a shared library.
16621 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
16622
16623 # Method to check whether dependent libraries are shared objects.
16624 deplibs_check_method=$lt_deplibs_check_method
16625
16626 # Command to use when deplibs_check_method == file_magic.
16627 file_magic_cmd=$lt_file_magic_cmd
16628
16629 # Flag that allows shared libraries with undefined symbols to be built.
16630 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
16631
16632 # Flag that forces no undefined symbols.
16633 no_undefined_flag=$lt_no_undefined_flag_GCJ
16634
16635 # Commands used to finish a libtool library installation in a directory.
16636 finish_cmds=$lt_finish_cmds
16637
16638 # Same as above, but a single script fragment to be evaled but not shown.
16639 finish_eval=$lt_finish_eval
16640
16641 # Take the output of nm and produce a listing of raw symbols and C names.
16642 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16643
16644 # Transform the output of nm in a proper C declaration
16645 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16646
16647 # Transform the output of nm in a C name address pair
16648 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16649
16650 # This is the shared library runtime path variable.
16651 runpath_var=$runpath_var
16652
16653 # This is the shared library path variable.
16654 shlibpath_var=$shlibpath_var
16655
16656 # Is shlibpath searched before the hard-coded library search path?
16657 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16658
16659 # How to hardcode a shared library path into an executable.
16660 hardcode_action=$hardcode_action_GCJ
16661
16662 # Whether we should hardcode library paths into libraries.
16663 hardcode_into_libs=$hardcode_into_libs
16664
16665 # Flag to hardcode \$libdir into a binary during linking.
16666 # This must work even if \$libdir does not exist.
16667 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
16668
16669 # Whether we need a single -rpath flag with a separated argument.
16670 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
16671
16672 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
16673 # resulting binary.
16674 hardcode_direct=$hardcode_direct_GCJ
16675
16676 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16677 # resulting binary.
16678 hardcode_minus_L=$hardcode_minus_L_GCJ
16679
16680 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16681 # the resulting binary.
16682 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
16683
16684 # Variables whose values should be saved in libtool wrapper scripts and
16685 # restored at relink time.
16686 variables_saved_for_relink="$variables_saved_for_relink"
16687
16688 # Whether libtool must link a program against all its dependency libraries.
16689 link_all_deplibs=$link_all_deplibs_GCJ
16690
16691 # Compile-time system search path for libraries
16692 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16693
16694 # Run-time system search path for libraries
16695 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16696
16697 # Fix the shell variable \$srcfile for the compiler.
16698 fix_srcfile_path="$fix_srcfile_path_GCJ"
16699
16700 # Set to yes if exported symbols are required.
16701 always_export_symbols=$always_export_symbols_GCJ
16702
16703 # The commands to list exported symbols.
16704 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
16705
16706 # The commands to extract the exported symbol list from a shared archive.
16707 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16708
16709 # Symbols that should not be listed in the preloaded symbols.
16710 exclude_expsyms=$lt_exclude_expsyms_GCJ
16711
16712 # Symbols that must always be exported.
16713 include_expsyms=$lt_include_expsyms_GCJ
16714
16715 # ### END LIBTOOL TAG CONFIG: $tagname
16716
16717 __EOF__
16718
16719 else
16720   # If there is no Makefile yet, we rely on a make rule to execute
16721   # `config.status --recheck' to rerun these tests and create the
16722   # libtool script then.
16723   test -f Makefile && make "$ltmain"
16724 fi
16725
16726 ac_ext=c
16727 ac_cpp='$CPP $CPPFLAGS'
16728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16731
16732 CC="$lt_save_CC"
16733
16734         ;;
16735
16736       *)
16737         { { echo "$as_me:16737: error: Unsupported tag name: $tagname" >&5
16738 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
16739    { (exit 1); exit 1; }; }
16740         ;;
16741       esac
16742
16743       # Append the new tag name to the list of available tags.
16744       available_tags="$available_tags $tagname"
16745     fi
16746   done
16747   IFS="$lt_save_ifs"
16748
16749   # Now substitute the updated list of available tags.
16750   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
16751     mv "${ofile}T" "$ofile"
16752     chmod +x "$ofile"
16753   else
16754     rm -f "${ofile}T"
16755     { { echo "$as_me:16755: error: unable to update list of available tagged configurations." >&5
16756 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
16757    { (exit 1); exit 1; }; }
16758   fi
16759 fi
16760
16761 # This can be used to rebuild libtool when needed
16762 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
16763
16764 # Always use our own libtool.
16765 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16766
16767 # Prevent multiple expansion
16768
16769 echo "$as_me:16769: checking whether ln -s works" >&5
16770 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
16771 LN_S=$as_ln_s
16772 if test "$LN_S" = "ln -s"; then
16773   echo "$as_me:16773: result: yes" >&5
16774 echo "${ECHO_T}yes" >&6
16775 else
16776   echo "$as_me:16776: result: no, using $LN_S" >&5
16777 echo "${ECHO_T}no, using $LN_S" >&6
16778 fi
16779
16780 ############################################################################
16781 # Checks for libraries.
16782 ############################################################################
16783
16784 echo "$as_me:16784: checking for sqrt in -lm" >&5
16785 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
16786 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16787   echo $ECHO_N "(cached) $ECHO_C" >&6
16788 else
16789   ac_check_lib_save_LIBS=$LIBS
16790 LIBS="-lm  $LIBS"
16791 cat >conftest.$ac_ext <<_ACEOF
16792 #line 16792 "configure"
16793 #include "confdefs.h"
16794
16795 /* Override any gcc2 internal prototype to avoid an error.  */
16796 #ifdef __cplusplus
16797 extern "C"
16798 #endif
16799 /* We use char because int might match the return type of a gcc2
16800    builtin and then its argument prototype would still apply.  */
16801 char sqrt ();
16802 int
16803 main ()
16804 {
16805 sqrt ();
16806   ;
16807   return 0;
16808 }
16809 _ACEOF
16810 rm -f conftest.$ac_objext conftest$ac_exeext
16811 if { (eval echo "$as_me:16811: \"$ac_link\"") >&5
16812   (eval $ac_link) 2>&5
16813   ac_status=$?
16814   echo "$as_me:16814: \$? = $ac_status" >&5
16815   (exit $ac_status); } &&
16816          { ac_try='test -s conftest$ac_exeext'
16817   { (eval echo "$as_me:16817: \"$ac_try\"") >&5
16818   (eval $ac_try) 2>&5
16819   ac_status=$?
16820   echo "$as_me:16820: \$? = $ac_status" >&5
16821   (exit $ac_status); }; }; then
16822   ac_cv_lib_m_sqrt=yes
16823 else
16824   echo "$as_me: failed program was:" >&5
16825 cat conftest.$ac_ext >&5
16826 ac_cv_lib_m_sqrt=no
16827 fi
16828 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16829 LIBS=$ac_check_lib_save_LIBS
16830 fi
16831 echo "$as_me:16831: result: $ac_cv_lib_m_sqrt" >&5
16832 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
16833 if test $ac_cv_lib_m_sqrt = yes; then
16834   cat >>confdefs.h <<EOF
16835 #define HAVE_LIBM 1
16836 EOF
16837
16838   LIBS="-lm $LIBS"
16839
16840 else
16841   { { echo "$as_me:16841: error: No math library found" >&5
16842 echo "$as_me: error: No math library found" >&2;}
16843    { (exit 1); exit 1; }; }
16844 fi
16845
16846 #####
16847 # IBM provides a MASS library with vectorized and optimized math stuff,
16848 # and an xlopt library which partly overlaps this. They must come before
16849 # libm in the link list, thus the test goes after that for libm!
16850 if test "${host_vendor}" = "ibm"; then
16851
16852 echo "$as_me:16852: checking for main in -lxlopt" >&5
16853 echo $ECHO_N "checking for main in -lxlopt... $ECHO_C" >&6
16854 if test "${ac_cv_lib_xlopt_main+set}" = set; then
16855   echo $ECHO_N "(cached) $ECHO_C" >&6
16856 else
16857   ac_check_lib_save_LIBS=$LIBS
16858 LIBS="-lxlopt  $LIBS"
16859 cat >conftest.$ac_ext <<_ACEOF
16860 #line 16860 "configure"
16861 #include "confdefs.h"
16862
16863 int
16864 main ()
16865 {
16866 main ();
16867   ;
16868   return 0;
16869 }
16870 _ACEOF
16871 rm -f conftest.$ac_objext conftest$ac_exeext
16872 if { (eval echo "$as_me:16872: \"$ac_link\"") >&5
16873   (eval $ac_link) 2>&5
16874   ac_status=$?
16875   echo "$as_me:16875: \$? = $ac_status" >&5
16876   (exit $ac_status); } &&
16877          { ac_try='test -s conftest$ac_exeext'
16878   { (eval echo "$as_me:16878: \"$ac_try\"") >&5
16879   (eval $ac_try) 2>&5
16880   ac_status=$?
16881   echo "$as_me:16881: \$? = $ac_status" >&5
16882   (exit $ac_status); }; }; then
16883   ac_cv_lib_xlopt_main=yes
16884 else
16885   echo "$as_me: failed program was:" >&5
16886 cat conftest.$ac_ext >&5
16887 ac_cv_lib_xlopt_main=no
16888 fi
16889 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16890 LIBS=$ac_check_lib_save_LIBS
16891 fi
16892 echo "$as_me:16892: result: $ac_cv_lib_xlopt_main" >&5
16893 echo "${ECHO_T}$ac_cv_lib_xlopt_main" >&6
16894 if test $ac_cv_lib_xlopt_main = yes; then
16895   cat >>confdefs.h <<EOF
16896 #define HAVE_LIBXLOPT 1
16897 EOF
16898
16899   LIBS="-lxlopt $LIBS"
16900
16901 fi
16902
16903 echo "$as_me:16903: checking for main in -lmass" >&5
16904 echo $ECHO_N "checking for main in -lmass... $ECHO_C" >&6
16905 if test "${ac_cv_lib_mass_main+set}" = set; then
16906   echo $ECHO_N "(cached) $ECHO_C" >&6
16907 else
16908   ac_check_lib_save_LIBS=$LIBS
16909 LIBS="-lmass  $LIBS"
16910 cat >conftest.$ac_ext <<_ACEOF
16911 #line 16911 "configure"
16912 #include "confdefs.h"
16913
16914 int
16915 main ()
16916 {
16917 main ();
16918   ;
16919   return 0;
16920 }
16921 _ACEOF
16922 rm -f conftest.$ac_objext conftest$ac_exeext
16923 if { (eval echo "$as_me:16923: \"$ac_link\"") >&5
16924   (eval $ac_link) 2>&5
16925   ac_status=$?
16926   echo "$as_me:16926: \$? = $ac_status" >&5
16927   (exit $ac_status); } &&
16928          { ac_try='test -s conftest$ac_exeext'
16929   { (eval echo "$as_me:16929: \"$ac_try\"") >&5
16930   (eval $ac_try) 2>&5
16931   ac_status=$?
16932   echo "$as_me:16932: \$? = $ac_status" >&5
16933   (exit $ac_status); }; }; then
16934   ac_cv_lib_mass_main=yes
16935 else
16936   echo "$as_me: failed program was:" >&5
16937 cat conftest.$ac_ext >&5
16938 ac_cv_lib_mass_main=no
16939 fi
16940 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16941 LIBS=$ac_check_lib_save_LIBS
16942 fi
16943 echo "$as_me:16943: result: $ac_cv_lib_mass_main" >&5
16944 echo "${ECHO_T}$ac_cv_lib_mass_main" >&6
16945 if test $ac_cv_lib_mass_main = yes; then
16946   cat >>confdefs.h <<EOF
16947 #define HAVE_LIBMASS 1
16948 EOF
16949
16950   LIBS="-lmass $LIBS"
16951
16952 fi
16953
16954   vectmass=no
16955   case "$gmxcpu" in
16956     power4*)
16957         # first check for a power4 lib, then power3, power2.
16958       echo "$as_me:16958: checking for library containing vsrsqrt" >&5
16959 echo $ECHO_N "checking for library containing vsrsqrt... $ECHO_C" >&6
16960 if test "${ac_cv_search_vsrsqrt+set}" = set; then
16961   echo $ECHO_N "(cached) $ECHO_C" >&6
16962 else
16963   ac_func_search_save_LIBS=$LIBS
16964 ac_cv_search_vsrsqrt=no
16965 cat >conftest.$ac_ext <<_ACEOF
16966 #line 16966 "configure"
16967 #include "confdefs.h"
16968
16969 /* Override any gcc2 internal prototype to avoid an error.  */
16970 #ifdef __cplusplus
16971 extern "C"
16972 #endif
16973 /* We use char because int might match the return type of a gcc2
16974    builtin and then its argument prototype would still apply.  */
16975 char vsrsqrt ();
16976 int
16977 main ()
16978 {
16979 vsrsqrt ();
16980   ;
16981   return 0;
16982 }
16983 _ACEOF
16984 rm -f conftest.$ac_objext conftest$ac_exeext
16985 if { (eval echo "$as_me:16985: \"$ac_link\"") >&5
16986   (eval $ac_link) 2>&5
16987   ac_status=$?
16988   echo "$as_me:16988: \$? = $ac_status" >&5
16989   (exit $ac_status); } &&
16990          { ac_try='test -s conftest$ac_exeext'
16991   { (eval echo "$as_me:16991: \"$ac_try\"") >&5
16992   (eval $ac_try) 2>&5
16993   ac_status=$?
16994   echo "$as_me:16994: \$? = $ac_status" >&5
16995   (exit $ac_status); }; }; then
16996   ac_cv_search_vsrsqrt="none required"
16997 else
16998   echo "$as_me: failed program was:" >&5
16999 cat conftest.$ac_ext >&5
17000 fi
17001 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17002 if test "$ac_cv_search_vsrsqrt" = no; then
17003   for ac_lib in massvp4 massvp3 massvp2 massv; do
17004     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17005     cat >conftest.$ac_ext <<_ACEOF
17006 #line 17006 "configure"
17007 #include "confdefs.h"
17008
17009 /* Override any gcc2 internal prototype to avoid an error.  */
17010 #ifdef __cplusplus
17011 extern "C"
17012 #endif
17013 /* We use char because int might match the return type of a gcc2
17014    builtin and then its argument prototype would still apply.  */
17015 char vsrsqrt ();
17016 int
17017 main ()
17018 {
17019 vsrsqrt ();
17020   ;
17021   return 0;
17022 }
17023 _ACEOF
17024 rm -f conftest.$ac_objext conftest$ac_exeext
17025 if { (eval echo "$as_me:17025: \"$ac_link\"") >&5
17026   (eval $ac_link) 2>&5
17027   ac_status=$?
17028   echo "$as_me:17028: \$? = $ac_status" >&5
17029   (exit $ac_status); } &&
17030          { ac_try='test -s conftest$ac_exeext'
17031   { (eval echo "$as_me:17031: \"$ac_try\"") >&5
17032   (eval $ac_try) 2>&5
17033   ac_status=$?
17034   echo "$as_me:17034: \$? = $ac_status" >&5
17035   (exit $ac_status); }; }; then
17036   ac_cv_search_vsrsqrt="-l$ac_lib"
17037 break
17038 else
17039   echo "$as_me: failed program was:" >&5
17040 cat conftest.$ac_ext >&5
17041 fi
17042 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17043   done
17044 fi
17045 LIBS=$ac_func_search_save_LIBS
17046 fi
17047 echo "$as_me:17047: result: $ac_cv_search_vsrsqrt" >&5
17048 echo "${ECHO_T}$ac_cv_search_vsrsqrt" >&6
17049 if test "$ac_cv_search_vsrsqrt" != no; then
17050   test "$ac_cv_search_vsrsqrt" = "none required" || LIBS="$ac_cv_search_vsrsqrt $LIBS"
17051   vectmass=yes
17052 fi
17053  ;;
17054     power3*)
17055       echo "$as_me:17055: checking for library containing vsrsqrt" >&5
17056 echo $ECHO_N "checking for library containing vsrsqrt... $ECHO_C" >&6
17057 if test "${ac_cv_search_vsrsqrt+set}" = set; then
17058   echo $ECHO_N "(cached) $ECHO_C" >&6
17059 else
17060   ac_func_search_save_LIBS=$LIBS
17061 ac_cv_search_vsrsqrt=no
17062 cat >conftest.$ac_ext <<_ACEOF
17063 #line 17063 "configure"
17064 #include "confdefs.h"
17065
17066 /* Override any gcc2 internal prototype to avoid an error.  */
17067 #ifdef __cplusplus
17068 extern "C"
17069 #endif
17070 /* We use char because int might match the return type of a gcc2
17071    builtin and then its argument prototype would still apply.  */
17072 char vsrsqrt ();
17073 int
17074 main ()
17075 {
17076 vsrsqrt ();
17077   ;
17078   return 0;
17079 }
17080 _ACEOF
17081 rm -f conftest.$ac_objext conftest$ac_exeext
17082 if { (eval echo "$as_me:17082: \"$ac_link\"") >&5
17083   (eval $ac_link) 2>&5
17084   ac_status=$?
17085   echo "$as_me:17085: \$? = $ac_status" >&5
17086   (exit $ac_status); } &&
17087          { ac_try='test -s conftest$ac_exeext'
17088   { (eval echo "$as_me:17088: \"$ac_try\"") >&5
17089   (eval $ac_try) 2>&5
17090   ac_status=$?
17091   echo "$as_me:17091: \$? = $ac_status" >&5
17092   (exit $ac_status); }; }; then
17093   ac_cv_search_vsrsqrt="none required"
17094 else
17095   echo "$as_me: failed program was:" >&5
17096 cat conftest.$ac_ext >&5
17097 fi
17098 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17099 if test "$ac_cv_search_vsrsqrt" = no; then
17100   for ac_lib in massvp3 massvp2 massv; do
17101     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17102     cat >conftest.$ac_ext <<_ACEOF
17103 #line 17103 "configure"
17104 #include "confdefs.h"
17105
17106 /* Override any gcc2 internal prototype to avoid an error.  */
17107 #ifdef __cplusplus
17108 extern "C"
17109 #endif
17110 /* We use char because int might match the return type of a gcc2
17111    builtin and then its argument prototype would still apply.  */
17112 char vsrsqrt ();
17113 int
17114 main ()
17115 {
17116 vsrsqrt ();
17117   ;
17118   return 0;
17119 }
17120 _ACEOF
17121 rm -f conftest.$ac_objext conftest$ac_exeext
17122 if { (eval echo "$as_me:17122: \"$ac_link\"") >&5
17123   (eval $ac_link) 2>&5
17124   ac_status=$?
17125   echo "$as_me:17125: \$? = $ac_status" >&5
17126   (exit $ac_status); } &&
17127          { ac_try='test -s conftest$ac_exeext'
17128   { (eval echo "$as_me:17128: \"$ac_try\"") >&5
17129   (eval $ac_try) 2>&5
17130   ac_status=$?
17131   echo "$as_me:17131: \$? = $ac_status" >&5
17132   (exit $ac_status); }; }; then
17133   ac_cv_search_vsrsqrt="-l$ac_lib"
17134 break
17135 else
17136   echo "$as_me: failed program was:" >&5
17137 cat conftest.$ac_ext >&5
17138 fi
17139 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17140   done
17141 fi
17142 LIBS=$ac_func_search_save_LIBS
17143 fi
17144 echo "$as_me:17144: result: $ac_cv_search_vsrsqrt" >&5
17145 echo "${ECHO_T}$ac_cv_search_vsrsqrt" >&6
17146 if test "$ac_cv_search_vsrsqrt" != no; then
17147   test "$ac_cv_search_vsrsqrt" = "none required" || LIBS="$ac_cv_search_vsrsqrt $LIBS"
17148   vectmass=yes
17149 fi
17150  ;;
17151     power2*)
17152       echo "$as_me:17152: checking for library containing vsrsqrt" >&5
17153 echo $ECHO_N "checking for library containing vsrsqrt... $ECHO_C" >&6
17154 if test "${ac_cv_search_vsrsqrt+set}" = set; then
17155   echo $ECHO_N "(cached) $ECHO_C" >&6
17156 else
17157   ac_func_search_save_LIBS=$LIBS
17158 ac_cv_search_vsrsqrt=no
17159 cat >conftest.$ac_ext <<_ACEOF
17160 #line 17160 "configure"
17161 #include "confdefs.h"
17162
17163 /* Override any gcc2 internal prototype to avoid an error.  */
17164 #ifdef __cplusplus
17165 extern "C"
17166 #endif
17167 /* We use char because int might match the return type of a gcc2
17168    builtin and then its argument prototype would still apply.  */
17169 char vsrsqrt ();
17170 int
17171 main ()
17172 {
17173 vsrsqrt ();
17174   ;
17175   return 0;
17176 }
17177 _ACEOF
17178 rm -f conftest.$ac_objext conftest$ac_exeext
17179 if { (eval echo "$as_me:17179: \"$ac_link\"") >&5
17180   (eval $ac_link) 2>&5
17181   ac_status=$?
17182   echo "$as_me:17182: \$? = $ac_status" >&5
17183   (exit $ac_status); } &&
17184          { ac_try='test -s conftest$ac_exeext'
17185   { (eval echo "$as_me:17185: \"$ac_try\"") >&5
17186   (eval $ac_try) 2>&5
17187   ac_status=$?
17188   echo "$as_me:17188: \$? = $ac_status" >&5
17189   (exit $ac_status); }; }; then
17190   ac_cv_search_vsrsqrt="none required"
17191 else
17192   echo "$as_me: failed program was:" >&5
17193 cat conftest.$ac_ext >&5
17194 fi
17195 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17196 if test "$ac_cv_search_vsrsqrt" = no; then
17197   for ac_lib in massvp2 massv; do
17198     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17199     cat >conftest.$ac_ext <<_ACEOF
17200 #line 17200 "configure"
17201 #include "confdefs.h"
17202
17203 /* Override any gcc2 internal prototype to avoid an error.  */
17204 #ifdef __cplusplus
17205 extern "C"
17206 #endif
17207 /* We use char because int might match the return type of a gcc2
17208    builtin and then its argument prototype would still apply.  */
17209 char vsrsqrt ();
17210 int
17211 main ()
17212 {
17213 vsrsqrt ();
17214   ;
17215   return 0;
17216 }
17217 _ACEOF
17218 rm -f conftest.$ac_objext conftest$ac_exeext
17219 if { (eval echo "$as_me:17219: \"$ac_link\"") >&5
17220   (eval $ac_link) 2>&5
17221   ac_status=$?
17222   echo "$as_me:17222: \$? = $ac_status" >&5
17223   (exit $ac_status); } &&
17224          { ac_try='test -s conftest$ac_exeext'
17225   { (eval echo "$as_me:17225: \"$ac_try\"") >&5
17226   (eval $ac_try) 2>&5
17227   ac_status=$?
17228   echo "$as_me:17228: \$? = $ac_status" >&5
17229   (exit $ac_status); }; }; then
17230   ac_cv_search_vsrsqrt="-l$ac_lib"
17231 break
17232 else
17233   echo "$as_me: failed program was:" >&5
17234 cat conftest.$ac_ext >&5
17235 fi
17236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17237   done
17238 fi
17239 LIBS=$ac_func_search_save_LIBS
17240 fi
17241 echo "$as_me:17241: result: $ac_cv_search_vsrsqrt" >&5
17242 echo "${ECHO_T}$ac_cv_search_vsrsqrt" >&6
17243 if test "$ac_cv_search_vsrsqrt" != no; then
17244   test "$ac_cv_search_vsrsqrt" = "none required" || LIBS="$ac_cv_search_vsrsqrt $LIBS"
17245   vectmass=yes
17246 fi
17247  ;;
17248     *)
17249       echo "$as_me:17249: checking for vsrsqrt in -lmassv" >&5
17250 echo $ECHO_N "checking for vsrsqrt in -lmassv... $ECHO_C" >&6
17251 if test "${ac_cv_lib_massv_vsrsqrt+set}" = set; then
17252   echo $ECHO_N "(cached) $ECHO_C" >&6
17253 else
17254   ac_check_lib_save_LIBS=$LIBS
17255 LIBS="-lmassv  $LIBS"
17256 cat >conftest.$ac_ext <<_ACEOF
17257 #line 17257 "configure"
17258 #include "confdefs.h"
17259
17260 /* Override any gcc2 internal prototype to avoid an error.  */
17261 #ifdef __cplusplus
17262 extern "C"
17263 #endif
17264 /* We use char because int might match the return type of a gcc2
17265    builtin and then its argument prototype would still apply.  */
17266 char vsrsqrt ();
17267 int
17268 main ()
17269 {
17270 vsrsqrt ();
17271   ;
17272   return 0;
17273 }
17274 _ACEOF
17275 rm -f conftest.$ac_objext conftest$ac_exeext
17276 if { (eval echo "$as_me:17276: \"$ac_link\"") >&5
17277   (eval $ac_link) 2>&5
17278   ac_status=$?
17279   echo "$as_me:17279: \$? = $ac_status" >&5
17280   (exit $ac_status); } &&
17281          { ac_try='test -s conftest$ac_exeext'
17282   { (eval echo "$as_me:17282: \"$ac_try\"") >&5
17283   (eval $ac_try) 2>&5
17284   ac_status=$?
17285   echo "$as_me:17285: \$? = $ac_status" >&5
17286   (exit $ac_status); }; }; then
17287   ac_cv_lib_massv_vsrsqrt=yes
17288 else
17289   echo "$as_me: failed program was:" >&5
17290 cat conftest.$ac_ext >&5
17291 ac_cv_lib_massv_vsrsqrt=no
17292 fi
17293 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17294 LIBS=$ac_check_lib_save_LIBS
17295 fi
17296 echo "$as_me:17296: result: $ac_cv_lib_massv_vsrsqrt" >&5
17297 echo "${ECHO_T}$ac_cv_lib_massv_vsrsqrt" >&6
17298 if test $ac_cv_lib_massv_vsrsqrt = yes; then
17299   vectmass=yes LIBS="$LIBS -lmassv"
17300 fi
17301  ;;
17302   esac
17303   if test "$vectmass" = "yes"; then
17304
17305 cat >>confdefs.h <<\EOF
17306 #define HAVE_LIBMASSV_ANY
17307 EOF
17308
17309     if test "$enable_vectorized_recip" = "not_selected"; then
17310       { echo "$as_me:17310: vector MASS lib present - vectorizing 1/x inner loops" >&5
17311 echo "$as_me: vector MASS lib present - vectorizing 1/x inner loops" >&6;}
17312       enable_vectorized_recip="yes"
17313     fi
17314     if test "$enable_vectorized_sqrt" = "not_selected"; then
17315       { echo "$as_me:17315: vector MASS lib present - vectorizing 1/sqrt inner loops" >&5
17316 echo "$as_me: vector MASS lib present - vectorizing 1/sqrt inner loops" >&6;}
17317       enable_vectorized_sqrt="yes"
17318     fi
17319   else
17320     echo "******************************************************************************"
17321     echo "*Didn't find the IBM MASS library. It's not necessary, but can provide 20%   *"
17322     echo "*performance improvement by loop vectorization. Add the library search path  *"
17323     echo "*with -L in the LDFLAGS variable. If you cannot find MASS, download it from  *"
17324     echo "*http://www.research.ibm.com/mass                                            *"
17325     echo "******************************************************************************"
17326   fi
17327 fi
17328
17329 if test "$with_fftw" = "yes"; then
17330   if test "$enable_float" = "yes"; then
17331     sizeof_real=4
17332   else
17333     sizeof_real=8
17334   fi
17335
17336 if test -z "$ac_fftw_firstname"; then
17337
17338 sizeof_real=$sizeof_real
17339 if test $sizeof_real = 8; then
17340   prec="double"
17341   fftwcheckprefix=d
17342 else
17343   prec="single"
17344   fftwcheckprefix=s
17345 fi
17346
17347 usedprefix=""
17348 ok="no"
17349 # check header doesn't work, since we must use mpicc to get includes,
17350 # we cant trust cpp.
17351 echo "$as_me:17351: checking for fftw.h" >&5
17352 echo $ECHO_N "checking for fftw.h... $ECHO_C" >&6
17353 cat >conftest.$ac_ext <<_ACEOF
17354 #line 17354 "configure"
17355 #include "confdefs.h"
17356 #include <fftw.h>
17357 int
17358 main ()
17359 {
17360
17361   ;
17362   return 0;
17363 }
17364 _ACEOF
17365 rm -f conftest.$ac_objext
17366 if { (eval echo "$as_me:17366: \"$ac_compile\"") >&5
17367   (eval $ac_compile) 2>&5
17368   ac_status=$?
17369   echo "$as_me:17369: \$? = $ac_status" >&5
17370   (exit $ac_status); } &&
17371          { ac_try='test -s conftest.$ac_objext'
17372   { (eval echo "$as_me:17372: \"$ac_try\"") >&5
17373   (eval $ac_try) 2>&5
17374   ac_status=$?
17375   echo "$as_me:17375: \$? = $ac_status" >&5
17376   (exit $ac_status); }; }; then
17377
17378 fftwname=fftw
17379 echo "$as_me:17379: result: yes" >&5
17380 echo "${ECHO_T}yes" >&6
17381
17382 else
17383   echo "$as_me: failed program was:" >&5
17384 cat conftest.$ac_ext >&5
17385 echo "$as_me:17385: result: no" >&5
17386 echo "${ECHO_T}no" >&6
17387 fi
17388 rm -f conftest.$ac_objext conftest.$ac_ext
17389
17390 if test -n "$fftwname"; then
17391 # we cannot run the code since an MPI program might not be allowed
17392 # on a login node of a supercomputer
17393 cat >conftest.$ac_ext <<_ACEOF
17394 #line 17394 "configure"
17395 #include "confdefs.h"
17396 #include <$fftwname.h>
17397 int
17398 main ()
17399 {
17400 int _array_ [1 - 2 * !((sizeof(fftw_real)) == $sizeof_real)];
17401   ;
17402   return 0;
17403 }
17404 _ACEOF
17405 rm -f conftest.$ac_objext
17406 if { (eval echo "$as_me:17406: \"$ac_compile\"") >&5
17407   (eval $ac_compile) 2>&5
17408   ac_status=$?
17409   echo "$as_me:17409: \$? = $ac_status" >&5
17410   (exit $ac_status); } &&
17411          { ac_try='test -s conftest.$ac_objext'
17412   { (eval echo "$as_me:17412: \"$ac_try\"") >&5
17413   (eval $ac_try) 2>&5
17414   ac_status=$?
17415   echo "$as_me:17415: \$? = $ac_status" >&5
17416   (exit $ac_status); }; }; then
17417   ok=yes
17418 else
17419   echo "$as_me: failed program was:" >&5
17420 cat conftest.$ac_ext >&5
17421 ok=no
17422 fi
17423 rm -f conftest.$ac_objext conftest.$ac_ext
17424 fi
17425
17426 fftwname=fftw
17427
17428 if test "$ok" != "yes"; then
17429   xfftwname=${fftwcheckprefix}${fftwname}
17430   echo "$as_me:17430: checking for $xfftwname.h" >&5
17431 echo $ECHO_N "checking for $xfftwname.h... $ECHO_C" >&6
17432   cat >conftest.$ac_ext <<_ACEOF
17433 #line 17433 "configure"
17434 #include "confdefs.h"
17435 #include <$xfftwname.h>
17436 int
17437 main ()
17438 {
17439
17440   ;
17441   return 0;
17442 }
17443 _ACEOF
17444 rm -f conftest.$ac_objext
17445 if { (eval echo "$as_me:17445: \"$ac_compile\"") >&5
17446   (eval $ac_compile) 2>&5
17447   ac_status=$?
17448   echo "$as_me:17448: \$? = $ac_status" >&5
17449   (exit $ac_status); } &&
17450          { ac_try='test -s conftest.$ac_objext'
17451   { (eval echo "$as_me:17451: \"$ac_try\"") >&5
17452   (eval $ac_try) 2>&5
17453   ac_status=$?
17454   echo "$as_me:17454: \$? = $ac_status" >&5
17455   (exit $ac_status); }; }; then
17456   echo "$as_me:17456: result: yes" >&5
17457 echo "${ECHO_T}yes" >&6
17458 else
17459   echo "$as_me: failed program was:" >&5
17460 cat conftest.$ac_ext >&5
17461
17462 echo "$as_me:17462: result: no" >&5
17463 echo "${ECHO_T}no" >&6
17464 { { echo "$as_me:17464: error: Cannot find any $prec precision $fftwname.h or $xfftwname.h
17465 Do you have $prec precision FFTW installed? If you are using packages,
17466 note that you also need fftw-devel to compile GROMACS. You can find the
17467 software at www.fftw.org, and detailed instructions at www.gromacs.org.
17468 If you compiled FFTW yourself:
17469 Note that the default FFTW setup is double precision. Change the FFTW
17470 configuration to single with --enable-float. If you want MPI support,
17471 use --enable-mpi. It is a good idea to install both single & double.
17472 If your sysadm doesn't want to install it you can do it to a location
17473 in your home directory and provide the correct paths in the CPPFLAGS
17474 and LDFLAGS environment variables before running configure.
17475 That is also necessary to do if your compiler doesn't search
17476 /usr/local/include and /usr/local/lib by default.
17477 You can find information at www.gromacs.org, or in the INSTALL file." >&5
17478 echo "$as_me: error: Cannot find any $prec precision $fftwname.h or $xfftwname.h
17479 Do you have $prec precision FFTW installed? If you are using packages,
17480 note that you also need fftw-devel to compile GROMACS. You can find the
17481 software at www.fftw.org, and detailed instructions at www.gromacs.org.
17482 If you compiled FFTW yourself:
17483 Note that the default FFTW setup is double precision. Change the FFTW
17484 configuration to single with --enable-float. If you want MPI support,
17485 use --enable-mpi. It is a good idea to install both single & double.
17486 If your sysadm doesn't want to install it you can do it to a location
17487 in your home directory and provide the correct paths in the CPPFLAGS
17488 and LDFLAGS environment variables before running configure.
17489 That is also necessary to do if your compiler doesn't search
17490 /usr/local/include and /usr/local/lib by default.
17491 You can find information at www.gromacs.org, or in the INSTALL file." >&2;}
17492    { (exit 1); exit 1; }; }
17493
17494 fi
17495 rm -f conftest.$ac_objext conftest.$ac_ext
17496 cat >conftest.$ac_ext <<_ACEOF
17497 #line 17497 "configure"
17498 #include "confdefs.h"
17499 #include <$xfftwname.h>
17500 int
17501 main ()
17502 {
17503 int _array_ [1 - 2 * !((sizeof(fftw_real)) == $sizeof_real)];
17504   ;
17505   return 0;
17506 }
17507 _ACEOF
17508 rm -f conftest.$ac_objext
17509 if { (eval echo "$as_me:17509: \"$ac_compile\"") >&5
17510   (eval $ac_compile) 2>&5
17511   ac_status=$?
17512   echo "$as_me:17512: \$? = $ac_status" >&5
17513   (exit $ac_status); } &&
17514          { ac_try='test -s conftest.$ac_objext'
17515   { (eval echo "$as_me:17515: \"$ac_try\"") >&5
17516   (eval $ac_try) 2>&5
17517   ac_status=$?
17518   echo "$as_me:17518: \$? = $ac_status" >&5
17519   (exit $ac_status); }; }; then
17520
17521 fftwname=$xfftwname
17522 usedprefix=$fftwcheckprefix
17523
17524 else
17525   echo "$as_me: failed program was:" >&5
17526 cat conftest.$ac_ext >&5
17527
17528 { { echo "$as_me:17528: error: Cannot find any $prec precision $fftwname.h or $xfftwname.h
17529 Do you have $prec precision FFTW installed? If you are using packages,
17530 note that you also need fftw-devel to compile GROMACS. You can find the
17531 software at www.fftw.org, and detailed instructions at www.gromacs.org.
17532 If you compiled FFTW yourself:
17533 Note that the default FFTW setup is double precision. Change the FFTW
17534 configuration to single with --enable-float. If you want MPI support,
17535 use --enable-mpi. It is a good idea to install both single & double.
17536 If your sysadm doesn't want to install it you can do it to a location
17537 in your home directory and provide the correct paths in the CPPFLAGS
17538 and LDFLAGS environment variables before running configure.
17539 That is also necessary to do if your compiler doesn't search
17540 /usr/local/include and /usr/local/lib by default.
17541 You can find information at www.gromacs.org, or in the INSTALL file." >&5
17542 echo "$as_me: error: Cannot find any $prec precision $fftwname.h or $xfftwname.h
17543 Do you have $prec precision FFTW installed? If you are using packages,
17544 note that you also need fftw-devel to compile GROMACS. You can find the
17545 software at www.fftw.org, and detailed instructions at www.gromacs.org.
17546 If you compiled FFTW yourself:
17547 Note that the default FFTW setup is double precision. Change the FFTW
17548 configuration to single with --enable-float. If you want MPI support,
17549 use --enable-mpi. It is a good idea to install both single & double.
17550 If your sysadm doesn't want to install it you can do it to a location
17551 in your home directory and provide the correct paths in the CPPFLAGS
17552 and LDFLAGS environment variables before running configure.
17553 That is also necessary to do if your compiler doesn't search
17554 /usr/local/include and /usr/local/lib by default.
17555 You can find information at www.gromacs.org, or in the INSTALL file." >&2;}
17556    { (exit 1); exit 1; }; }
17557 fi
17558 rm -f conftest.$ac_objext conftest.$ac_ext
17559 fi
17560
17561 ac_ac_Lib=`echo "ac_cv_lib_$fftwname_main" | $ac_tr_sh`
17562 echo "$as_me:17562: checking for main in -l$fftwname" >&5
17563 echo $ECHO_N "checking for main in -l$fftwname... $ECHO_C" >&6
17564 if eval "test \"\${$ac_ac_Lib+set}\" = set"; then
17565   echo $ECHO_N "(cached) $ECHO_C" >&6
17566 else
17567   ac_check_lib_save_LIBS=$LIBS
17568 LIBS="-l$fftwname  $LIBS"
17569 cat >conftest.$ac_ext <<_ACEOF
17570 #line 17570 "configure"
17571 #include "confdefs.h"
17572
17573 int
17574 main ()
17575 {
17576 main ();
17577   ;
17578   return 0;
17579 }
17580 _ACEOF
17581 rm -f conftest.$ac_objext conftest$ac_exeext
17582 if { (eval echo "$as_me:17582: \"$ac_link\"") >&5
17583   (eval $ac_link) 2>&5
17584   ac_status=$?
17585   echo "$as_me:17585: \$? = $ac_status" >&5
17586   (exit $ac_status); } &&
17587          { ac_try='test -s conftest$ac_exeext'
17588   { (eval echo "$as_me:17588: \"$ac_try\"") >&5
17589   (eval $ac_try) 2>&5
17590   ac_status=$?
17591   echo "$as_me:17591: \$? = $ac_status" >&5
17592   (exit $ac_status); }; }; then
17593   eval "$ac_ac_Lib=yes"
17594 else
17595   echo "$as_me: failed program was:" >&5
17596 cat conftest.$ac_ext >&5
17597 eval "$ac_ac_Lib=no"
17598 fi
17599 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17600 LIBS=$ac_check_lib_save_LIBS
17601 fi
17602 echo "$as_me:17602: result: `eval echo '${'$ac_ac_Lib'}'`" >&5
17603 echo "${ECHO_T}`eval echo '${'$ac_ac_Lib'}'`" >&6
17604 if test `eval echo '${'$ac_ac_Lib'}'` = yes; then
17605   cat >>confdefs.h <<EOF
17606 #define `echo "HAVE_LIB$fftwname" | $ac_tr_cpp` 1
17607 EOF
17608
17609   LIBS="-l$fftwname $LIBS"
17610
17611 else
17612   { { echo "$as_me:17612: error: Can't find a library to match the $fftwname header" >&5
17613 echo "$as_me: error: Can't find a library to match the $fftwname header" >&2;}
17614    { (exit 1); exit 1; }; }
17615 fi
17616
17617 ac_fftw_savedprefix=$usedprefix
17618 ac_fftw_firstname=$fftwname
17619
17620 else
17621
17622 fftwname=${ac_fftw_savedprefix}fftw
17623 echo "$as_me:17623: checking for $fftwname.h" >&5
17624 echo $ECHO_N "checking for $fftwname.h... $ECHO_C" >&6
17625 cat >conftest.$ac_ext <<_ACEOF
17626 #line 17626 "configure"
17627 #include "confdefs.h"
17628 #include <$fftwname.h>
17629 int
17630 main ()
17631 {
17632
17633   ;
17634   return 0;
17635 }
17636 _ACEOF
17637 rm -f conftest.$ac_objext
17638 if { (eval echo "$as_me:17638: \"$ac_compile\"") >&5
17639   (eval $ac_compile) 2>&5
17640   ac_status=$?
17641   echo "$as_me:17641: \$? = $ac_status" >&5
17642   (exit $ac_status); } &&
17643          { ac_try='test -s conftest.$ac_objext'
17644   { (eval echo "$as_me:17644: \"$ac_try\"") >&5
17645   (eval $ac_try) 2>&5
17646   ac_status=$?
17647   echo "$as_me:17647: \$? = $ac_status" >&5
17648   (exit $ac_status); }; }; then
17649   echo "$as_me:17649: result: yes" >&5
17650 echo "${ECHO_T}yes" >&6
17651 LIBS="-l$fftwname $LIBS"
17652 cat >conftest.$ac_ext <<_ACEOF
17653 #line 17653 "configure"
17654 #include "confdefs.h"
17655
17656 int
17657 main ()
17658 {
17659 main ();
17660   ;
17661   return 0;
17662 }
17663 _ACEOF
17664 rm -f conftest.$ac_objext conftest$ac_exeext
17665 if { (eval echo "$as_me:17665: \"$ac_link\"") >&5
17666   (eval $ac_link) 2>&5
17667   ac_status=$?
17668   echo "$as_me:17668: \$? = $ac_status" >&5
17669   (exit $ac_status); } &&
17670          { ac_try='test -s conftest$ac_exeext'
17671   { (eval echo "$as_me:17671: \"$ac_try\"") >&5
17672   (eval $ac_try) 2>&5
17673   ac_status=$?
17674   echo "$as_me:17674: \$? = $ac_status" >&5
17675   (exit $ac_status); }; }; then
17676   :
17677 else
17678   echo "$as_me: failed program was:" >&5
17679 cat conftest.$ac_ext >&5
17680 fi
17681 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17682 else
17683   echo "$as_me: failed program was:" >&5
17684 cat conftest.$ac_ext >&5
17685
17686 echo "$as_me:17686: result: no" >&5
17687 echo "${ECHO_T}no" >&6
17688 { { echo "$as_me:17688: error: Cant find $fftwname.h header. Make sure all your
17689 fftw prefixes match - we already use $ac_fftw_firstname.h" >&5
17690 echo "$as_me: error: Cant find $fftwname.h header. Make sure all your
17691 fftw prefixes match - we already use $ac_fftw_firstname.h" >&2;}
17692    { (exit 1); exit 1; }; }
17693
17694 fi
17695 rm -f conftest.$ac_objext conftest.$ac_ext
17696
17697 fi
17698
17699 if test -z "$ac_fftw_firstname"; then
17700
17701 sizeof_real=$sizeof_real
17702 if test $sizeof_real = 8; then
17703   prec="double"
17704   fftwcheckprefix=d
17705 else
17706   prec="single"
17707   fftwcheckprefix=s
17708 fi
17709
17710 usedprefix=""
17711 ok="no"
17712 # check header doesn't work, since we must use mpicc to get includes,
17713 # we cant trust cpp.
17714 echo "$as_me:17714: checking for rfftw.h" >&5
17715 echo $ECHO_N "checking for rfftw.h... $ECHO_C" >&6
17716 cat >conftest.$ac_ext <<_ACEOF
17717 #line 17717 "configure"
17718 #include "confdefs.h"
17719 #include <rfftw.h>
17720 int
17721 main ()
17722 {
17723
17724   ;
17725   return 0;
17726 }
17727 _ACEOF
17728 rm -f conftest.$ac_objext
17729 if { (eval echo "$as_me:17729: \"$ac_compile\"") >&5
17730   (eval $ac_compile) 2>&5
17731   ac_status=$?
17732   echo "$as_me:17732: \$? = $ac_status" >&5
17733   (exit $ac_status); } &&
17734          { ac_try='test -s conftest.$ac_objext'
17735   { (eval echo "$as_me:17735: \"$ac_try\"") >&5
17736   (eval $ac_try) 2>&5
17737   ac_status=$?
17738   echo "$as_me:17738: \$? = $ac_status" >&5
17739   (exit $ac_status); }; }; then
17740
17741 fftwname=rfftw
17742 echo "$as_me:17742: result: yes" >&5
17743 echo "${ECHO_T}yes" >&6
17744
17745 else
17746   echo "$as_me: failed program was:" >&5
17747 cat conftest.$ac_ext >&5
17748 echo "$as_me:17748: result: no" >&5
17749 echo "${ECHO_T}no" >&6
17750 fi
17751 rm -f conftest.$ac_objext conftest.$ac_ext
17752
17753 if test -n "$fftwname"; then
17754 # we cannot run the code since an MPI program might not be allowed
17755 # on a login node of a supercomputer
17756 cat >conftest.$ac_ext <<_ACEOF
17757 #line 17757 "configure"
17758 #include "confdefs.h"
17759 #include <$fftwname.h>
17760 int
17761 main ()
17762 {
17763 int _array_ [1 - 2 * !((sizeof(fftw_real)) == $sizeof_real)];
17764   ;
17765   return 0;
17766 }
17767 _ACEOF
17768 rm -f conftest.$ac_objext
17769 if { (eval echo "$as_me:17769: \"$ac_compile\"") >&5
17770   (eval $ac_compile) 2>&5
17771   ac_status=$?
17772   echo "$as_me:17772: \$? = $ac_status" >&5
17773   (exit $ac_status); } &&
17774          { ac_try='test -s conftest.$ac_objext'
17775   { (eval echo "$as_me:17775: \"$ac_try\"") >&5
17776   (eval $ac_try) 2>&5
17777   ac_status=$?
17778   echo "$as_me:17778: \$? = $ac_status" >&5
17779   (exit $ac_status); }; }; then
17780   ok=yes
17781 else
17782   echo "$as_me: failed program was:" >&5
17783 cat conftest.$ac_ext >&5
17784 ok=no
17785 fi
17786 rm -f conftest.$ac_objext conftest.$ac_ext
17787 fi
17788
17789 fftwname=rfftw
17790
17791 if test "$ok" != "yes"; then
17792   xfftwname=${fftwcheckprefix}${fftwname}
17793   echo "$as_me:17793: checking for $xfftwname.h" >&5
17794 echo $ECHO_N "checking for $xfftwname.h... $ECHO_C" >&6
17795   cat >conftest.$ac_ext <<_ACEOF
17796 #line 17796 "configure"
17797 #include "confdefs.h"
17798 #include <$xfftwname.h>
17799 int
17800 main ()
17801 {
17802
17803   ;
17804   return 0;
17805 }
17806 _ACEOF
17807 rm -f conftest.$ac_objext
17808 if { (eval echo "$as_me:17808: \"$ac_compile\"") >&5
17809   (eval $ac_compile) 2>&5
17810   ac_status=$?
17811   echo "$as_me:17811: \$? = $ac_status" >&5
17812   (exit $ac_status); } &&
17813          { ac_try='test -s conftest.$ac_objext'
17814   { (eval echo "$as_me:17814: \"$ac_try\"") >&5
17815   (eval $ac_try) 2>&5
17816   ac_status=$?
17817   echo "$as_me:17817: \$? = $ac_status" >&5
17818   (exit $ac_status); }; }; then
17819   echo "$as_me:17819: result: yes" >&5
17820 echo "${ECHO_T}yes" >&6
17821 else
17822   echo "$as_me: failed program was:" >&5
17823 cat conftest.$ac_ext >&5
17824
17825 echo "$as_me:17825: result: no" >&5
17826 echo "${ECHO_T}no" >&6
17827 { { echo "$as_me:17827: error: Cannot find any $prec precision $fftwname.h or $xfftwname.h
17828 Do you have $prec precision FFTW installed? If you are using packages,
17829 note that you also need fftw-devel to compile GROMACS. You can find the
17830 software at www.fftw.org, and detailed instructions at www.gromacs.org.
17831 If you compiled FFTW yourself:
17832 Note that the default FFTW setup is double precision. Change the FFTW
17833 configuration to single with --enable-float. If you want MPI support,
17834 use --enable-mpi. It is a good idea to install both single & double.
17835 If your sysadm doesn't want to install it you can do it to a location
17836 in your home directory and provide the correct paths in the CPPFLAGS
17837 and LDFLAGS environment variables before running configure.
17838 That is also necessary to do if your compiler doesn't search
17839 /usr/local/include and /usr/local/lib by default.
17840 You can find information at www.gromacs.org, or in the INSTALL file." >&5
17841 echo "$as_me: error: Cannot find any $prec precision $fftwname.h or $xfftwname.h
17842 Do you have $prec precision FFTW installed? If you are using packages,
17843 note that you also need fftw-devel to compile GROMACS. You can find the
17844 software at www.fftw.org, and detailed instructions at www.gromacs.org.
17845 If you compiled FFTW yourself:
17846 Note that the default FFTW setup is double precision. Change the FFTW
17847 configuration to single with --enable-float. If you want MPI support,
17848 use --enable-mpi. It is a good idea to install both single & double.
17849 If your sysadm doesn't want to install it you can do it to a location
17850 in your home directory and provide the correct paths in the CPPFLAGS
17851 and LDFLAGS environment variables before running configure.
17852 That is also necessary to do if your compiler doesn't search
17853 /usr/local/include and /usr/local/lib by default.
17854 You can find information at www.gromacs.org, or in the INSTALL file." >&2;}
17855    { (exit 1); exit 1; }; }
17856
17857 fi
17858 rm -f conftest.$ac_objext conftest.$ac_ext
17859 cat >conftest.$ac_ext <<_ACEOF
17860 #line 17860 "configure"
17861 #include "confdefs.h"
17862 #include <$xfftwname.h>
17863 int
17864 main ()
17865 {
17866 int _array_ [1 - 2 * !((sizeof(fftw_real)) == $sizeof_real)];
17867   ;
17868   return 0;
17869 }
17870 _ACEOF
17871 rm -f conftest.$ac_objext
17872 if { (eval echo "$as_me:17872: \"$ac_compile\"") >&5
17873   (eval $ac_compile) 2>&5
17874   ac_status=$?
17875   echo "$as_me:17875: \$? = $ac_status" >&5
17876   (exit $ac_status); } &&
17877          { ac_try='test -s conftest.$ac_objext'
17878   { (eval echo "$as_me:17878: \"$ac_try\"") >&5
17879   (eval $ac_try) 2>&5
17880   ac_status=$?
17881   echo "$as_me:17881: \$? = $ac_status" >&5
17882   (exit $ac_status); }; }; then
17883
17884 fftwname=$xfftwname
17885 usedprefix=$fftwcheckprefix
17886
17887 else
17888   echo "$as_me: failed program was:" >&5
17889 cat conftest.$ac_ext >&5
17890
17891 { { echo "$as_me:17891: error: Cannot find any $prec precision $fftwname.h or $xfftwname.h
17892 Do you have $prec precision FFTW installed? If you are using packages,
17893 note that you also need fftw-devel to compile GROMACS. You can find the
17894 software at www.fftw.org, and detailed instructions at www.gromacs.org.
17895 If you compiled FFTW yourself:
17896 Note that the default FFTW setup is double precision. Change the FFTW
17897 configuration to single with --enable-float. If you want MPI support,
17898 use --enable-mpi. It is a good idea to install both single & double.
17899 If your sysadm doesn't want to install it you can do it to a location
17900 in your home directory and provide the correct paths in the CPPFLAGS
17901 and LDFLAGS environment variables before running configure.
17902 That is also necessary to do if your compiler doesn't search
17903 /usr/local/include and /usr/local/lib by default.
17904 You can find information at www.gromacs.org, or in the INSTALL file." >&5
17905 echo "$as_me: error: Cannot find any $prec precision $fftwname.h or $xfftwname.h
17906 Do you have $prec precision FFTW installed? If you are using packages,
17907 note that you also need fftw-devel to compile GROMACS. You can find the
17908 software at www.fftw.org, and detailed instructions at www.gromacs.org.
17909 If you compiled FFTW yourself:
17910 Note that the default FFTW setup is double precision. Change the FFTW
17911 configuration to single with --enable-float. If you want MPI support,
17912 use --enable-mpi. It is a good idea to install both single & double.
17913 If your sysadm doesn't want to install it you can do it to a location
17914 in your home directory and provide the correct paths in the CPPFLAGS
17915 and LDFLAGS environment variables before running configure.
17916 That is also necessary to do if your compiler doesn't search
17917 /usr/local/include and /usr/local/lib by default.
17918 You can find information at www.gromacs.org, or in the INSTALL file." >&2;}
17919    { (exit 1); exit 1; }; }
17920 fi
17921 rm -f conftest.$ac_objext conftest.$ac_ext
17922 fi
17923
17924 ac_ac_Lib=`echo "ac_cv_lib_$fftwname_main" | $ac_tr_sh`
17925 echo "$as_me:17925: checking for main in -l$fftwname" >&5
17926 echo $ECHO_N "checking for main in -l$fftwname... $ECHO_C" >&6
17927 if eval "test \"\${$ac_ac_Lib+set}\" = set"; then
17928   echo $ECHO_N "(cached) $ECHO_C" >&6
17929 else
17930   ac_check_lib_save_LIBS=$LIBS
17931 LIBS="-l$fftwname  $LIBS"
17932 cat >conftest.$ac_ext <<_ACEOF
17933 #line 17933 "configure"
17934 #include "confdefs.h"
17935
17936 int
17937 main ()
17938 {
17939 main ();
17940   ;
17941   return 0;
17942 }
17943 _ACEOF
17944 rm -f conftest.$ac_objext conftest$ac_exeext
17945 if { (eval echo "$as_me:17945: \"$ac_link\"") >&5
17946   (eval $ac_link) 2>&5
17947   ac_status=$?
17948   echo "$as_me:17948: \$? = $ac_status" >&5
17949   (exit $ac_status); } &&
17950          { ac_try='test -s conftest$ac_exeext'
17951   { (eval echo "$as_me:17951: \"$ac_try\"") >&5
17952   (eval $ac_try) 2>&5
17953   ac_status=$?
17954   echo "$as_me:17954: \$? = $ac_status" >&5
17955   (exit $ac_status); }; }; then
17956   eval "$ac_ac_Lib=yes"
17957 else
17958   echo "$as_me: failed program was:" >&5
17959 cat conftest.$ac_ext >&5
17960 eval "$ac_ac_Lib=no"
17961 fi
17962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17963 LIBS=$ac_check_lib_save_LIBS
17964 fi
17965 echo "$as_me:17965: result: `eval echo '${'$ac_ac_Lib'}'`" >&5
17966 echo "${ECHO_T}`eval echo '${'$ac_ac_Lib'}'`" >&6
17967 if test `eval echo '${'$ac_ac_Lib'}'` = yes; then
17968   cat >>confdefs.h <<EOF
17969 #define `echo "HAVE_LIB$fftwname" | $ac_tr_cpp` 1
17970 EOF
17971
17972   LIBS="-l$fftwname $LIBS"
17973
17974 else
17975   { { echo "$as_me:17975: error: Can't find a library to match the $fftwname header" >&5
17976 echo "$as_me: error: Can't find a library to match the $fftwname header" >&2;}
17977    { (exit 1); exit 1; }; }
17978 fi
17979
17980 ac_fftw_savedprefix=$usedprefix
17981 ac_fftw_firstname=$fftwname
17982
17983 else
17984
17985 fftwname=${ac_fftw_savedprefix}rfftw
17986 echo "$as_me:17986: checking for $fftwname.h" >&5
17987 echo $ECHO_N "checking for $fftwname.h... $ECHO_C" >&6
17988 cat >conftest.$ac_ext <<_ACEOF
17989 #line 17989 "configure"
17990 #include "confdefs.h"
17991 #include <$fftwname.h>
17992 int
17993 main ()
17994 {
17995
17996   ;
17997   return 0;
17998 }
17999 _ACEOF
18000 rm -f conftest.$ac_objext
18001 if { (eval echo "$as_me:18001: \"$ac_compile\"") >&5
18002   (eval $ac_compile) 2>&5
18003   ac_status=$?
18004   echo "$as_me:18004: \$? = $ac_status" >&5
18005   (exit $ac_status); } &&
18006          { ac_try='test -s conftest.$ac_objext'
18007   { (eval echo "$as_me:18007: \"$ac_try\"") >&5
18008   (eval $ac_try) 2>&5
18009   ac_status=$?
18010   echo "$as_me:18010: \$? = $ac_status" >&5
18011   (exit $ac_status); }; }; then
18012   echo "$as_me:18012: result: yes" >&5
18013 echo "${ECHO_T}yes" >&6
18014 LIBS="-l$fftwname $LIBS"
18015 cat >conftest.$ac_ext <<_ACEOF
18016 #line 18016 "configure"
18017 #include "confdefs.h"
18018
18019 int
18020 main ()
18021 {
18022 main ();
18023   ;
18024   return 0;
18025 }
18026 _ACEOF
18027 rm -f conftest.$ac_objext conftest$ac_exeext
18028 if { (eval echo "$as_me:18028: \"$ac_link\"") >&5
18029   (eval $ac_link) 2>&5
18030   ac_status=$?
18031   echo "$as_me:18031: \$? = $ac_status" >&5
18032   (exit $ac_status); } &&
18033          { ac_try='test -s conftest$ac_exeext'
18034   { (eval echo "$as_me:18034: \"$ac_try\"") >&5
18035   (eval $ac_try) 2>&5
18036   ac_status=$?
18037   echo "$as_me:18037: \$? = $ac_status" >&5
18038   (exit $ac_status); }; }; then
18039   :
18040 else
18041   echo "$as_me: failed program was:" >&5
18042 cat conftest.$ac_ext >&5
18043 fi
18044 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18045 else
18046   echo "$as_me: failed program was:" >&5
18047 cat conftest.$ac_ext >&5
18048
18049 echo "$as_me:18049: result: no" >&5
18050 echo "${ECHO_T}no" >&6
18051 { { echo "$as_me:18051: error: Cant find $fftwname.h header. Make sure all your
18052 fftw prefixes match - we already use $ac_fftw_firstname.h" >&5
18053 echo "$as_me: error: Cant find $fftwname.h header. Make sure all your
18054 fftw prefixes match - we already use $ac_fftw_firstname.h" >&2;}
18055    { (exit 1); exit 1; }; }
18056
18057 fi
18058 rm -f conftest.$ac_objext conftest.$ac_ext
18059
18060 fi
18061
18062   if test "$enable_mpi" = "yes"; then
18063
18064 if test -z "$ac_fftw_firstname"; then
18065
18066 sizeof_real=$sizeof_real
18067 if test $sizeof_real = 8; then
18068   prec="double"
18069   fftwcheckprefix=d
18070 else
18071   prec="single"
18072   fftwcheckprefix=s
18073 fi
18074
18075 usedprefix=""
18076 ok="no"
18077 # check header doesn't work, since we must use mpicc to get includes,
18078 # we cant trust cpp.
18079 echo "$as_me:18079: checking for fftw_mpi.h" >&5
18080 echo $ECHO_N "checking for fftw_mpi.h... $ECHO_C" >&6
18081 cat >conftest.$ac_ext <<_ACEOF
18082 #line 18082 "configure"
18083 #include "confdefs.h"
18084 #include <fftw_mpi.h>
18085 int
18086 main ()
18087 {
18088
18089   ;
18090   return 0;
18091 }
18092 _ACEOF
18093 rm -f conftest.$ac_objext
18094 if { (eval echo "$as_me:18094: \"$ac_compile\"") >&5
18095   (eval $ac_compile) 2>&5
18096   ac_status=$?
18097   echo "$as_me:18097: \$? = $ac_status" >&5
18098   (exit $ac_status); } &&
18099          { ac_try='test -s conftest.$ac_objext'
18100   { (eval echo "$as_me:18100: \"$ac_try\"") >&5
18101   (eval $ac_try) 2>&5
18102   ac_status=$?
18103   echo "$as_me:18103: \$? = $ac_status" >&5
18104   (exit $ac_status); }; }; then
18105
18106 fftwname=fftw_mpi
18107 echo "$as_me:18107: result: yes" >&5
18108 echo "${ECHO_T}yes" >&6
18109
18110 else
18111   echo "$as_me: failed program was:" >&5
18112 cat conftest.$ac_ext >&5
18113 echo "$as_me:18113: result: no" >&5
18114 echo "${ECHO_T}no" >&6
18115 fi
18116 rm -f conftest.$ac_objext conftest.$ac_ext
18117
18118 if test -n "$fftwname"; then
18119 # we cannot run the code since an MPI program might not be allowed
18120 # on a login node of a supercomputer
18121 cat >conftest.$ac_ext <<_ACEOF
18122 #line 18122 "configure"
18123 #include "confdefs.h"
18124 #include <$fftwname.h>
18125 int
18126 main ()
18127 {
18128 int _array_ [1 - 2 * !((sizeof(fftw_real)) == $sizeof_real)];
18129   ;
18130   return 0;
18131 }
18132 _ACEOF
18133 rm -f conftest.$ac_objext
18134 if { (eval echo "$as_me:18134: \"$ac_compile\"") >&5
18135   (eval $ac_compile) 2>&5
18136   ac_status=$?
18137   echo "$as_me:18137: \$? = $ac_status" >&5
18138   (exit $ac_status); } &&
18139          { ac_try='test -s conftest.$ac_objext'
18140   { (eval echo "$as_me:18140: \"$ac_try\"") >&5
18141   (eval $ac_try) 2>&5
18142   ac_status=$?
18143   echo "$as_me:18143: \$? = $ac_status" >&5
18144   (exit $ac_status); }; }; then
18145   ok=yes
18146 else
18147   echo "$as_me: failed program was:" >&5
18148 cat conftest.$ac_ext >&5
18149 ok=no
18150 fi
18151 rm -f conftest.$ac_objext conftest.$ac_ext
18152 fi
18153
18154 fftwname=fftw_mpi
18155
18156 if test "$ok" != "yes"; then
18157   xfftwname=${fftwcheckprefix}${fftwname}
18158   echo "$as_me:18158: checking for $xfftwname.h" >&5
18159 echo $ECHO_N "checking for $xfftwname.h... $ECHO_C" >&6
18160   cat >conftest.$ac_ext <<_ACEOF
18161 #line 18161 "configure"
18162 #include "confdefs.h"
18163 #include <$xfftwname.h>
18164 int
18165 main ()
18166 {
18167
18168   ;
18169   return 0;
18170 }
18171 _ACEOF
18172 rm -f conftest.$ac_objext
18173 if { (eval echo "$as_me:18173: \"$ac_compile\"") >&5
18174   (eval $ac_compile) 2>&5
18175   ac_status=$?
18176   echo "$as_me:18176: \$? = $ac_status" >&5
18177   (exit $ac_status); } &&
18178          { ac_try='test -s conftest.$ac_objext'
18179   { (eval echo "$as_me:18179: \"$ac_try\"") >&5
18180   (eval $ac_try) 2>&5
18181   ac_status=$?
18182   echo "$as_me:18182: \$? = $ac_status" >&5
18183   (exit $ac_status); }; }; then
18184   echo "$as_me:18184: result: yes" >&5
18185 echo "${ECHO_T}yes" >&6
18186 else
18187   echo "$as_me: failed program was:" >&5
18188 cat conftest.$ac_ext >&5
18189
18190 echo "$as_me:18190: result: no" >&5
18191 echo "${ECHO_T}no" >&6
18192 { { echo "$as_me:18192: error: Cannot find any $prec precision $fftwname.h or $xfftwname.h
18193 Do you have $prec precision FFTW installed? If you are using packages,
18194 note that you also need fftw-devel to compile GROMACS. You can find the
18195 software at www.fftw.org, and detailed instructions at www.gromacs.org.
18196 If you compiled FFTW yourself:
18197 Note that the default FFTW setup is double precision. Change the FFTW
18198 configuration to single with --enable-float. If you want MPI support,
18199 use --enable-mpi. It is a good idea to install both single & double.
18200 If your sysadm doesn't want to install it you can do it to a location
18201 in your home directory and provide the correct paths in the CPPFLAGS
18202 and LDFLAGS environment variables before running configure.
18203 That is also necessary to do if your compiler doesn't search
18204 /usr/local/include and /usr/local/lib by default.
18205 You can find information at www.gromacs.org, or in the INSTALL file." >&5
18206 echo "$as_me: error: Cannot find any $prec precision $fftwname.h or $xfftwname.h
18207 Do you have $prec precision FFTW installed? If you are using packages,
18208 note that you also need fftw-devel to compile GROMACS. You can find the
18209 software at www.fftw.org, and detailed instructions at www.gromacs.org.
18210 If you compiled FFTW yourself:
18211 Note that the default FFTW setup is double precision. Change the FFTW
18212 configuration to single with --enable-float. If you want MPI support,
18213 use --enable-mpi. It is a good idea to install both single & double.
18214 If your sysadm doesn't want to install it you can do it to a location
18215 in your home directory and provide the correct paths in the CPPFLAGS
18216 and LDFLAGS environment variables before running configure.
18217 That is also necessary to do if your compiler doesn't search
18218 /usr/local/include and /usr/local/lib by default.
18219 You can find information at www.gromacs.org, or in the INSTALL file." >&2;}
18220    { (exit 1); exit 1; }; }
18221
18222 fi
18223 rm -f conftest.$ac_objext conftest.$ac_ext
18224 cat >conftest.$ac_ext <<_ACEOF
18225 #line 18225 "configure"
18226 #include "confdefs.h"
18227 #include <$xfftwname.h>
18228 int
18229 main ()
18230 {
18231 int _array_ [1 - 2 * !((sizeof(fftw_real)) == $sizeof_real)];
18232   ;
18233   return 0;
18234 }
18235 _ACEOF
18236 rm -f conftest.$ac_objext
18237 if { (eval echo "$as_me:18237: \"$ac_compile\"") >&5
18238   (eval $ac_compile) 2>&5
18239   ac_status=$?
18240   echo "$as_me:18240: \$? = $ac_status" >&5
18241   (exit $ac_status); } &&
18242          { ac_try='test -s conftest.$ac_objext'
18243   { (eval echo "$as_me:18243: \"$ac_try\"") >&5
18244   (eval $ac_try) 2>&5
18245   ac_status=$?
18246   echo "$as_me:18246: \$? = $ac_status" >&5
18247   (exit $ac_status); }; }; then
18248
18249 fftwname=$xfftwname
18250 usedprefix=$fftwcheckprefix
18251
18252 else
18253   echo "$as_me: failed program was:" >&5
18254 cat conftest.$ac_ext >&5
18255
18256 { { echo "$as_me:18256: error: Cannot find any $prec precision $fftwname.h or $xfftwname.h
18257 Do you have $prec precision FFTW installed? If you are using packages,
18258 note that you also need fftw-devel to compile GROMACS. You can find the
18259 software at www.fftw.org, and detailed instructions at www.gromacs.org.
18260 If you compiled FFTW yourself:
18261 Note that the default FFTW setup is double precision. Change the FFTW
18262 configuration to single with --enable-float. If you want MPI support,
18263 use --enable-mpi. It is a good idea to install both single & double.
18264 If your sysadm doesn't want to install it you can do it to a location
18265 in your home directory and provide the correct paths in the CPPFLAGS
18266 and LDFLAGS environment variables before running configure.
18267 That is also necessary to do if your compiler doesn't search
18268 /usr/local/include and /usr/local/lib by default.
18269 You can find information at www.gromacs.org, or in the INSTALL file." >&5
18270 echo "$as_me: error: Cannot find any $prec precision $fftwname.h or $xfftwname.h
18271 Do you have $prec precision FFTW installed? If you are using packages,
18272 note that you also need fftw-devel to compile GROMACS. You can find the
18273 software at www.fftw.org, and detailed instructions at www.gromacs.org.
18274 If you compiled FFTW yourself:
18275 Note that the default FFTW setup is double precision. Change the FFTW
18276 configuration to single with --enable-float. If you want MPI support,
18277 use --enable-mpi. It is a good idea to install both single & double.
18278 If your sysadm doesn't want to install it you can do it to a location
18279 in your home directory and provide the correct paths in the CPPFLAGS
18280 and LDFLAGS environment variables before running configure.
18281 That is also necessary to do if your compiler doesn't search
18282 /usr/local/include and /usr/local/lib by default.
18283 You can find information at www.gromacs.org, or in the INSTALL file." >&2;}
18284    { (exit 1); exit 1; }; }
18285 fi
18286 rm -f conftest.$ac_objext conftest.$ac_ext
18287 fi
18288
18289 ac_ac_Lib=`echo "ac_cv_lib_$fftwname_main" | $ac_tr_sh`
18290 echo "$as_me:18290: checking for main in -l$fftwname" >&5
18291 echo $ECHO_N "checking for main in -l$fftwname... $ECHO_C" >&6
18292 if eval "test \"\${$ac_ac_Lib+set}\" = set"; then
18293   echo $ECHO_N "(cached) $ECHO_C" >&6
18294 else
18295   ac_check_lib_save_LIBS=$LIBS
18296 LIBS="-l$fftwname  $LIBS"
18297 cat >conftest.$ac_ext <<_ACEOF
18298 #line 18298 "configure"
18299 #include "confdefs.h"
18300
18301 int
18302 main ()
18303 {
18304 main ();
18305   ;
18306   return 0;
18307 }
18308 _ACEOF
18309 rm -f conftest.$ac_objext conftest$ac_exeext
18310 if { (eval echo "$as_me:18310: \"$ac_link\"") >&5
18311   (eval $ac_link) 2>&5
18312   ac_status=$?
18313   echo "$as_me:18313: \$? = $ac_status" >&5
18314   (exit $ac_status); } &&
18315          { ac_try='test -s conftest$ac_exeext'
18316   { (eval echo "$as_me:18316: \"$ac_try\"") >&5
18317   (eval $ac_try) 2>&5
18318   ac_status=$?
18319   echo "$as_me:18319: \$? = $ac_status" >&5
18320   (exit $ac_status); }; }; then
18321   eval "$ac_ac_Lib=yes"
18322 else
18323   echo "$as_me: failed program was:" >&5
18324 cat conftest.$ac_ext >&5
18325 eval "$ac_ac_Lib=no"
18326 fi
18327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18328 LIBS=$ac_check_lib_save_LIBS
18329 fi
18330 echo "$as_me:18330: result: `eval echo '${'$ac_ac_Lib'}'`" >&5
18331 echo "${ECHO_T}`eval echo '${'$ac_ac_Lib'}'`" >&6
18332 if test `eval echo '${'$ac_ac_Lib'}'` = yes; then
18333   cat >>confdefs.h <<EOF
18334 #define `echo "HAVE_LIB$fftwname" | $ac_tr_cpp` 1
18335 EOF
18336
18337   LIBS="-l$fftwname $LIBS"
18338
18339 else
18340   { { echo "$as_me:18340: error: Can't find a library to match the $fftwname header" >&5
18341 echo "$as_me: error: Can't find a library to match the $fftwname header" >&2;}
18342    { (exit 1); exit 1; }; }
18343 fi
18344
18345 ac_fftw_savedprefix=$usedprefix
18346 ac_fftw_firstname=$fftwname
18347
18348 else
18349
18350 fftwname=${ac_fftw_savedprefix}fftw_mpi
18351 echo "$as_me:18351: checking for $fftwname.h" >&5
18352 echo $ECHO_N "checking for $fftwname.h... $ECHO_C" >&6
18353 cat >conftest.$ac_ext <<_ACEOF
18354 #line 18354 "configure"
18355 #include "confdefs.h"
18356 #include <$fftwname.h>
18357 int
18358 main ()
18359 {
18360
18361   ;
18362   return 0;
18363 }
18364 _ACEOF
18365 rm -f conftest.$ac_objext
18366 if { (eval echo "$as_me:18366: \"$ac_compile\"") >&5
18367   (eval $ac_compile) 2>&5
18368   ac_status=$?
18369   echo "$as_me:18369: \$? = $ac_status" >&5
18370   (exit $ac_status); } &&
18371          { ac_try='test -s conftest.$ac_objext'
18372   { (eval echo "$as_me:18372: \"$ac_try\"") >&5
18373   (eval $ac_try) 2>&5
18374   ac_status=$?
18375   echo "$as_me:18375: \$? = $ac_status" >&5
18376   (exit $ac_status); }; }; then
18377   echo "$as_me:18377: result: yes" >&5
18378 echo "${ECHO_T}yes" >&6
18379 LIBS="-l$fftwname $LIBS"
18380 cat >conftest.$ac_ext <<_ACEOF
18381 #line 18381 "configure"
18382 #include "confdefs.h"
18383
18384 int
18385 main ()
18386 {
18387 main ();
18388   ;
18389   return 0;
18390 }
18391 _ACEOF
18392 rm -f conftest.$ac_objext conftest$ac_exeext
18393 if { (eval echo "$as_me:18393: \"$ac_link\"") >&5
18394   (eval $ac_link) 2>&5
18395   ac_status=$?
18396   echo "$as_me:18396: \$? = $ac_status" >&5
18397   (exit $ac_status); } &&
18398          { ac_try='test -s conftest$ac_exeext'
18399   { (eval echo "$as_me:18399: \"$ac_try\"") >&5
18400   (eval $ac_try) 2>&5
18401   ac_status=$?
18402   echo "$as_me:18402: \$? = $ac_status" >&5
18403   (exit $ac_status); }; }; then
18404   :
18405 else
18406   echo "$as_me: failed program was:" >&5
18407 cat conftest.$ac_ext >&5
18408 fi
18409 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18410 else
18411   echo "$as_me: failed program was:" >&5
18412 cat conftest.$ac_ext >&5
18413
18414 echo "$as_me:18414: result: no" >&5
18415 echo "${ECHO_T}no" >&6
18416 { { echo "$as_me:18416: error: Cant find $fftwname.h header. Make sure all your
18417 fftw prefixes match - we already use $ac_fftw_firstname.h" >&5
18418 echo "$as_me: error: Cant find $fftwname.h header. Make sure all your
18419 fftw prefixes match - we already use $ac_fftw_firstname.h" >&2;}
18420    { (exit 1); exit 1; }; }
18421
18422 fi
18423 rm -f conftest.$ac_objext conftest.$ac_ext
18424
18425 fi
18426
18427 if test -z "$ac_fftw_firstname"; then
18428
18429 sizeof_real=$sizeof_real
18430 if test $sizeof_real = 8; then
18431   prec="double"
18432   fftwcheckprefix=d
18433 else
18434   prec="single"
18435   fftwcheckprefix=s
18436 fi
18437
18438 usedprefix=""
18439 ok="no"
18440 # check header doesn't work, since we must use mpicc to get includes,
18441 # we cant trust cpp.
18442 echo "$as_me:18442: checking for rfftw_mpi.h" >&5
18443 echo $ECHO_N "checking for rfftw_mpi.h... $ECHO_C" >&6
18444 cat >conftest.$ac_ext <<_ACEOF
18445 #line 18445 "configure"
18446 #include "confdefs.h"
18447 #include <rfftw_mpi.h>
18448 int
18449 main ()
18450 {
18451
18452   ;
18453   return 0;
18454 }
18455 _ACEOF
18456 rm -f conftest.$ac_objext
18457 if { (eval echo "$as_me:18457: \"$ac_compile\"") >&5
18458   (eval $ac_compile) 2>&5
18459   ac_status=$?
18460   echo "$as_me:18460: \$? = $ac_status" >&5
18461   (exit $ac_status); } &&
18462          { ac_try='test -s conftest.$ac_objext'
18463   { (eval echo "$as_me:18463: \"$ac_try\"") >&5
18464   (eval $ac_try) 2>&5
18465   ac_status=$?
18466   echo "$as_me:18466: \$? = $ac_status" >&5
18467   (exit $ac_status); }; }; then
18468
18469 fftwname=rfftw_mpi
18470 echo "$as_me:18470: result: yes" >&5
18471 echo "${ECHO_T}yes" >&6
18472
18473 else
18474   echo "$as_me: failed program was:" >&5
18475 cat conftest.$ac_ext >&5
18476 echo "$as_me:18476: result: no" >&5
18477 echo "${ECHO_T}no" >&6
18478 fi
18479 rm -f conftest.$ac_objext conftest.$ac_ext
18480
18481 if test -n "$fftwname"; then
18482 # we cannot run the code since an MPI program might not be allowed
18483 # on a login node of a supercomputer
18484 cat >conftest.$ac_ext <<_ACEOF
18485 #line 18485 "configure"
18486 #include "confdefs.h"
18487 #include <$fftwname.h>
18488 int
18489 main ()
18490 {
18491 int _array_ [1 - 2 * !((sizeof(fftw_real)) == $sizeof_real)];
18492   ;
18493   return 0;
18494 }
18495 _ACEOF
18496 rm -f conftest.$ac_objext
18497 if { (eval echo "$as_me:18497: \"$ac_compile\"") >&5
18498   (eval $ac_compile) 2>&5
18499   ac_status=$?
18500   echo "$as_me:18500: \$? = $ac_status" >&5
18501   (exit $ac_status); } &&
18502          { ac_try='test -s conftest.$ac_objext'
18503   { (eval echo "$as_me:18503: \"$ac_try\"") >&5
18504   (eval $ac_try) 2>&5
18505   ac_status=$?
18506   echo "$as_me:18506: \$? = $ac_status" >&5
18507   (exit $ac_status); }; }; then
18508   ok=yes
18509 else
18510   echo "$as_me: failed program was:" >&5
18511 cat conftest.$ac_ext >&5
18512 ok=no
18513 fi
18514 rm -f conftest.$ac_objext conftest.$ac_ext
18515 fi
18516
18517 fftwname=rfftw_mpi
18518
18519 if test "$ok" != "yes"; then
18520   xfftwname=${fftwcheckprefix}${fftwname}
18521   echo "$as_me:18521: checking for $xfftwname.h" >&5
18522 echo $ECHO_N "checking for $xfftwname.h... $ECHO_C" >&6
18523   cat >conftest.$ac_ext <<_ACEOF
18524 #line 18524 "configure"
18525 #include "confdefs.h"
18526 #include <$xfftwname.h>
18527 int
18528 main ()
18529 {
18530
18531   ;
18532   return 0;
18533 }
18534 _ACEOF
18535 rm -f conftest.$ac_objext
18536 if { (eval echo "$as_me:18536: \"$ac_compile\"") >&5
18537   (eval $ac_compile) 2>&5
18538   ac_status=$?
18539   echo "$as_me:18539: \$? = $ac_status" >&5
18540   (exit $ac_status); } &&
18541          { ac_try='test -s conftest.$ac_objext'
18542   { (eval echo "$as_me:18542: \"$ac_try\"") >&5
18543   (eval $ac_try) 2>&5
18544   ac_status=$?
18545   echo "$as_me:18545: \$? = $ac_status" >&5
18546   (exit $ac_status); }; }; then
18547   echo "$as_me:18547: result: yes" >&5
18548 echo "${ECHO_T}yes" >&6
18549 else
18550   echo "$as_me: failed program was:" >&5
18551 cat conftest.$ac_ext >&5
18552
18553 echo "$as_me:18553: result: no" >&5
18554 echo "${ECHO_T}no" >&6
18555 { { echo "$as_me:18555: error: Cannot find any $prec precision $fftwname.h or $xfftwname.h
18556 Do you have $prec precision FFTW installed? If you are using packages,
18557 note that you also need fftw-devel to compile GROMACS. You can find the
18558 software at www.fftw.org, and detailed instructions at www.gromacs.org.
18559 If you compiled FFTW yourself:
18560 Note that the default FFTW setup is double precision. Change the FFTW
18561 configuration to single with --enable-float. If you want MPI support,
18562 use --enable-mpi. It is a good idea to install both single & double.
18563 If your sysadm doesn't want to install it you can do it to a location
18564 in your home directory and provide the correct paths in the CPPFLAGS
18565 and LDFLAGS environment variables before running configure.
18566 That is also necessary to do if your compiler doesn't search
18567 /usr/local/include and /usr/local/lib by default.
18568 You can find information at www.gromacs.org, or in the INSTALL file." >&5
18569 echo "$as_me: error: Cannot find any $prec precision $fftwname.h or $xfftwname.h
18570 Do you have $prec precision FFTW installed? If you are using packages,
18571 note that you also need fftw-devel to compile GROMACS. You can find the
18572 software at www.fftw.org, and detailed instructions at www.gromacs.org.
18573 If you compiled FFTW yourself:
18574 Note that the default FFTW setup is double precision. Change the FFTW
18575 configuration to single with --enable-float. If you want MPI support,
18576 use --enable-mpi. It is a good idea to install both single & double.
18577 If your sysadm doesn't want to install it you can do it to a location
18578 in your home directory and provide the correct paths in the CPPFLAGS
18579 and LDFLAGS environment variables before running configure.
18580 That is also necessary to do if your compiler doesn't search
18581 /usr/local/include and /usr/local/lib by default.
18582 You can find information at www.gromacs.org, or in the INSTALL file." >&2;}
18583    { (exit 1); exit 1; }; }
18584
18585 fi
18586 rm -f conftest.$ac_objext conftest.$ac_ext
18587 cat >conftest.$ac_ext <<_ACEOF
18588 #line 18588 "configure"
18589 #include "confdefs.h"
18590 #include <$xfftwname.h>
18591 int
18592 main ()
18593 {
18594 int _array_ [1 - 2 * !((sizeof(fftw_real)) == $sizeof_real)];
18595   ;
18596   return 0;
18597 }
18598 _ACEOF
18599 rm -f conftest.$ac_objext
18600 if { (eval echo "$as_me:18600: \"$ac_compile\"") >&5
18601   (eval $ac_compile) 2>&5
18602   ac_status=$?
18603   echo "$as_me:18603: \$? = $ac_status" >&5
18604   (exit $ac_status); } &&
18605          { ac_try='test -s conftest.$ac_objext'
18606   { (eval echo "$as_me:18606: \"$ac_try\"") >&5
18607   (eval $ac_try) 2>&5
18608   ac_status=$?
18609   echo "$as_me:18609: \$? = $ac_status" >&5
18610   (exit $ac_status); }; }; then
18611
18612 fftwname=$xfftwname
18613 usedprefix=$fftwcheckprefix
18614
18615 else
18616   echo "$as_me: failed program was:" >&5
18617 cat conftest.$ac_ext >&5
18618
18619 { { echo "$as_me:18619: error: Cannot find any $prec precision $fftwname.h or $xfftwname.h
18620 Do you have $prec precision FFTW installed? If you are using packages,
18621 note that you also need fftw-devel to compile GROMACS. You can find the
18622 software at www.fftw.org, and detailed instructions at www.gromacs.org.
18623 If you compiled FFTW yourself:
18624 Note that the default FFTW setup is double precision. Change the FFTW
18625 configuration to single with --enable-float. If you want MPI support,
18626 use --enable-mpi. It is a good idea to install both single & double.
18627 If your sysadm doesn't want to install it you can do it to a location
18628 in your home directory and provide the correct paths in the CPPFLAGS
18629 and LDFLAGS environment variables before running configure.
18630 That is also necessary to do if your compiler doesn't search
18631 /usr/local/include and /usr/local/lib by default.
18632 You can find information at www.gromacs.org, or in the INSTALL file." >&5
18633 echo "$as_me: error: Cannot find any $prec precision $fftwname.h or $xfftwname.h
18634 Do you have $prec precision FFTW installed? If you are using packages,
18635 note that you also need fftw-devel to compile GROMACS. You can find the
18636 software at www.fftw.org, and detailed instructions at www.gromacs.org.
18637 If you compiled FFTW yourself:
18638 Note that the default FFTW setup is double precision. Change the FFTW
18639 configuration to single with --enable-float. If you want MPI support,
18640 use --enable-mpi. It is a good idea to install both single & double.
18641 If your sysadm doesn't want to install it you can do it to a location
18642 in your home directory and provide the correct paths in the CPPFLAGS
18643 and LDFLAGS environment variables before running configure.
18644 That is also necessary to do if your compiler doesn't search
18645 /usr/local/include and /usr/local/lib by default.
18646 You can find information at www.gromacs.org, or in the INSTALL file." >&2;}
18647    { (exit 1); exit 1; }; }
18648 fi
18649 rm -f conftest.$ac_objext conftest.$ac_ext
18650 fi
18651
18652 ac_ac_Lib=`echo "ac_cv_lib_$fftwname_main" | $ac_tr_sh`
18653 echo "$as_me:18653: checking for main in -l$fftwname" >&5
18654 echo $ECHO_N "checking for main in -l$fftwname... $ECHO_C" >&6
18655 if eval "test \"\${$ac_ac_Lib+set}\" = set"; then
18656   echo $ECHO_N "(cached) $ECHO_C" >&6
18657 else
18658   ac_check_lib_save_LIBS=$LIBS
18659 LIBS="-l$fftwname  $LIBS"
18660 cat >conftest.$ac_ext <<_ACEOF
18661 #line 18661 "configure"
18662 #include "confdefs.h"
18663
18664 int
18665 main ()
18666 {
18667 main ();
18668   ;
18669   return 0;
18670 }
18671 _ACEOF
18672 rm -f conftest.$ac_objext conftest$ac_exeext
18673 if { (eval echo "$as_me:18673: \"$ac_link\"") >&5
18674   (eval $ac_link) 2>&5
18675   ac_status=$?
18676   echo "$as_me:18676: \$? = $ac_status" >&5
18677   (exit $ac_status); } &&
18678          { ac_try='test -s conftest$ac_exeext'
18679   { (eval echo "$as_me:18679: \"$ac_try\"") >&5
18680   (eval $ac_try) 2>&5
18681   ac_status=$?
18682   echo "$as_me:18682: \$? = $ac_status" >&5
18683   (exit $ac_status); }; }; then
18684   eval "$ac_ac_Lib=yes"
18685 else
18686   echo "$as_me: failed program was:" >&5
18687 cat conftest.$ac_ext >&5
18688 eval "$ac_ac_Lib=no"
18689 fi
18690 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18691 LIBS=$ac_check_lib_save_LIBS
18692 fi
18693 echo "$as_me:18693: result: `eval echo '${'$ac_ac_Lib'}'`" >&5
18694 echo "${ECHO_T}`eval echo '${'$ac_ac_Lib'}'`" >&6
18695 if test `eval echo '${'$ac_ac_Lib'}'` = yes; then
18696   cat >>confdefs.h <<EOF
18697 #define `echo "HAVE_LIB$fftwname" | $ac_tr_cpp` 1
18698 EOF
18699
18700   LIBS="-l$fftwname $LIBS"
18701
18702 else
18703   { { echo "$as_me:18703: error: Can't find a library to match the $fftwname header" >&5
18704 echo "$as_me: error: Can't find a library to match the $fftwname header" >&2;}
18705    { (exit 1); exit 1; }; }
18706 fi
18707
18708 ac_fftw_savedprefix=$usedprefix
18709 ac_fftw_firstname=$fftwname
18710
18711 else
18712
18713 fftwname=${ac_fftw_savedprefix}rfftw_mpi
18714 echo "$as_me:18714: checking for $fftwname.h" >&5
18715 echo $ECHO_N "checking for $fftwname.h... $ECHO_C" >&6
18716 cat >conftest.$ac_ext <<_ACEOF
18717 #line 18717 "configure"
18718 #include "confdefs.h"
18719 #include <$fftwname.h>
18720 int
18721 main ()
18722 {
18723
18724   ;
18725   return 0;
18726 }
18727 _ACEOF
18728 rm -f conftest.$ac_objext
18729 if { (eval echo "$as_me:18729: \"$ac_compile\"") >&5
18730   (eval $ac_compile) 2>&5
18731   ac_status=$?
18732   echo "$as_me:18732: \$? = $ac_status" >&5
18733   (exit $ac_status); } &&
18734          { ac_try='test -s conftest.$ac_objext'
18735   { (eval echo "$as_me:18735: \"$ac_try\"") >&5
18736   (eval $ac_try) 2>&5
18737   ac_status=$?
18738   echo "$as_me:18738: \$? = $ac_status" >&5
18739   (exit $ac_status); }; }; then
18740   echo "$as_me:18740: result: yes" >&5
18741 echo "${ECHO_T}yes" >&6
18742 LIBS="-l$fftwname $LIBS"
18743 cat >conftest.$ac_ext <<_ACEOF
18744 #line 18744 "configure"
18745 #include "confdefs.h"
18746
18747 int
18748 main ()
18749 {
18750 main ();
18751   ;
18752   return 0;
18753 }
18754 _ACEOF
18755 rm -f conftest.$ac_objext conftest$ac_exeext
18756 if { (eval echo "$as_me:18756: \"$ac_link\"") >&5
18757   (eval $ac_link) 2>&5
18758   ac_status=$?
18759   echo "$as_me:18759: \$? = $ac_status" >&5
18760   (exit $ac_status); } &&
18761          { ac_try='test -s conftest$ac_exeext'
18762   { (eval echo "$as_me:18762: \"$ac_try\"") >&5
18763   (eval $ac_try) 2>&5
18764   ac_status=$?
18765   echo "$as_me:18765: \$? = $ac_status" >&5
18766   (exit $ac_status); }; }; then
18767   :
18768 else
18769   echo "$as_me: failed program was:" >&5
18770 cat conftest.$ac_ext >&5
18771 fi
18772 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18773 else
18774   echo "$as_me: failed program was:" >&5
18775 cat conftest.$ac_ext >&5
18776
18777 echo "$as_me:18777: result: no" >&5
18778 echo "${ECHO_T}no" >&6
18779 { { echo "$as_me:18779: error: Cant find $fftwname.h header. Make sure all your
18780 fftw prefixes match - we already use $ac_fftw_firstname.h" >&5
18781 echo "$as_me: error: Cant find $fftwname.h header. Make sure all your
18782 fftw prefixes match - we already use $ac_fftw_firstname.h" >&2;}
18783    { (exit 1); exit 1; }; }
18784
18785 fi
18786 rm -f conftest.$ac_objext conftest.$ac_ext
18787
18788 fi
18789
18790   fi
18791
18792   case ${ac_fftw_savedprefix} in
18793    d)
18794 cat >>confdefs.h <<\EOF
18795 #define FFTW_NAME_DFFTW
18796 EOF
18797  ;;
18798    s)
18799 cat >>confdefs.h <<\EOF
18800 #define FFTW_NAME_SFFTW
18801 EOF
18802  ;;
18803    *)
18804 cat >>confdefs.h <<\EOF
18805 #define FFTW_NAME_FFTW
18806 EOF
18807  ;;
18808   esac
18809 else
18810   echo "*******************************************************************"
18811   echo "*             WARNING! You have disabled FFTW support!            *"
18812   echo "* You will not be able to use PME (Particle Mesh Ewald) summation *"
18813   echo "* in your simulations. Unless you are absolutely sure you won't   *"
18814   echo "* ever need this we suggest you install FFTW instead of compiling *"
18815   echo "* a version of GROMACS that will be crippled!                     *"
18816   echo "*******************************************************************"
18817 fi # end of fftw check
18818
18819 ######
18820 # check for xtc headers
18821
18822 for ac_header in rpc/rpc.h rpc/xdr.h
18823 do
18824 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
18825 echo "$as_me:18825: checking for $ac_header" >&5
18826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18827 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
18828   echo $ECHO_N "(cached) $ECHO_C" >&6
18829 else
18830   cat >conftest.$ac_ext <<_ACEOF
18831 #line 18831 "configure"
18832 #include "confdefs.h"
18833 #include <$ac_header>
18834 _ACEOF
18835 if { (eval echo "$as_me:18835: \"$ac_cpp conftest.$ac_ext\"") >&5
18836   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18837   ac_status=$?
18838   egrep -v '^ *\+' conftest.er1 >conftest.err
18839   rm -f conftest.er1
18840   cat conftest.err >&5
18841   echo "$as_me:18841: \$? = $ac_status" >&5
18842   (exit $ac_status); } >/dev/null; then
18843   if test -s conftest.err; then
18844     ac_cpp_err=$ac_c_preproc_warn_flag
18845   else
18846     ac_cpp_err=
18847   fi
18848 else
18849   ac_cpp_err=yes
18850 fi
18851 if test -z "$ac_cpp_err"; then
18852   eval "$ac_ac_Header=yes"
18853 else
18854   echo "$as_me: failed program was:" >&5
18855   cat conftest.$ac_ext >&5
18856   eval "$ac_ac_Header=no"
18857 fi
18858 rm -f conftest.err conftest.$ac_ext
18859 fi
18860 echo "$as_me:18860: result: `eval echo '${'$ac_ac_Header'}'`" >&5
18861 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
18862 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
18863   cat >>confdefs.h <<EOF
18864 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
18865 EOF
18866  # check for xtc libs if we found headers - on solaris the xdr stuff is in libnsl
18867
18868 echo "$as_me:18868: checking for xdr_float in -lnsl" >&5
18869 echo $ECHO_N "checking for xdr_float in -lnsl... $ECHO_C" >&6
18870 if test "${ac_cv_lib_nsl_xdr_float+set}" = set; then
18871   echo $ECHO_N "(cached) $ECHO_C" >&6
18872 else
18873   ac_check_lib_save_LIBS=$LIBS
18874 LIBS="-lnsl  $LIBS"
18875 cat >conftest.$ac_ext <<_ACEOF
18876 #line 18876 "configure"
18877 #include "confdefs.h"
18878
18879 /* Override any gcc2 internal prototype to avoid an error.  */
18880 #ifdef __cplusplus
18881 extern "C"
18882 #endif
18883 /* We use char because int might match the return type of a gcc2
18884    builtin and then its argument prototype would still apply.  */
18885 char xdr_float ();
18886 int
18887 main ()
18888 {
18889 xdr_float ();
18890   ;
18891   return 0;
18892 }
18893 _ACEOF
18894 rm -f conftest.$ac_objext conftest$ac_exeext
18895 if { (eval echo "$as_me:18895: \"$ac_link\"") >&5
18896   (eval $ac_link) 2>&5
18897   ac_status=$?
18898   echo "$as_me:18898: \$? = $ac_status" >&5
18899   (exit $ac_status); } &&
18900          { ac_try='test -s conftest$ac_exeext'
18901   { (eval echo "$as_me:18901: \"$ac_try\"") >&5
18902   (eval $ac_try) 2>&5
18903   ac_status=$?
18904   echo "$as_me:18904: \$? = $ac_status" >&5
18905   (exit $ac_status); }; }; then
18906   ac_cv_lib_nsl_xdr_float=yes
18907 else
18908   echo "$as_me: failed program was:" >&5
18909 cat conftest.$ac_ext >&5
18910 ac_cv_lib_nsl_xdr_float=no
18911 fi
18912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18913 LIBS=$ac_check_lib_save_LIBS
18914 fi
18915 echo "$as_me:18915: result: $ac_cv_lib_nsl_xdr_float" >&5
18916 echo "${ECHO_T}$ac_cv_lib_nsl_xdr_float" >&6
18917 if test $ac_cv_lib_nsl_xdr_float = yes; then
18918   cat >>confdefs.h <<EOF
18919 #define HAVE_LIBNSL 1
18920 EOF
18921
18922   LIBS="-lnsl $LIBS"
18923
18924 fi
18925
18926 cat >conftest.$ac_ext <<_ACEOF
18927 #line 18927 "configure"
18928 #include "confdefs.h"
18929 #include<rpc/rpc.h>
18930 #include<rpc/xdr.h>
18931 int
18932 main ()
18933 {
18934  XDR *xd; float f; xdr_float(xd,&f);
18935   ;
18936   return 0;
18937 }
18938 _ACEOF
18939 rm -f conftest.$ac_objext conftest$ac_exeext
18940 if { (eval echo "$as_me:18940: \"$ac_link\"") >&5
18941   (eval $ac_link) 2>&5
18942   ac_status=$?
18943   echo "$as_me:18943: \$? = $ac_status" >&5
18944   (exit $ac_status); } &&
18945          { ac_try='test -s conftest$ac_exeext'
18946   { (eval echo "$as_me:18946: \"$ac_try\"") >&5
18947   (eval $ac_try) 2>&5
18948   ac_status=$?
18949   echo "$as_me:18949: \$? = $ac_status" >&5
18950   (exit $ac_status); }; }; then
18951   have_xdr=yes
18952 else
18953   echo "$as_me: failed program was:" >&5
18954 cat conftest.$ac_ext >&5
18955 { echo "$as_me:18955: WARNING: RPC/XDR libraries not found - disabling xtc" >&5
18956 echo "$as_me: WARNING: RPC/XDR libraries not found - disabling xtc" >&2;}
18957 fi
18958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18959
18960 else
18961   { echo "$as_me:18961: WARNING: RPC/XDR include headers not found - disabling xtc" >&5
18962 echo "$as_me: WARNING: RPC/XDR include headers not found - disabling xtc" >&2;}
18963 fi
18964 done
18965
18966 if test "$have_xdr" = "yes"; then
18967
18968 cat >>confdefs.h <<\EOF
18969 #define USE_XDR
18970 EOF
18971
18972 else
18973   echo "*****************************************************************************"
18974   echo "*WARNING - XDR not found. This cripples GROMACS significantly - you cannot  *"
18975   echo "*read/write portable trajectories. No choice on windows, but locate the RPC *"
18976   echo "*header files and libraries if you run UNIX - they do exist!                *"
18977   echo "*****************************************************************************"
18978 fi
18979
18980 #####
18981 # Checks for additional and/or optional functions or libraries.
18982 #AC_FUNC_MALLOC
18983 echo "$as_me:18983: checking for working memcmp" >&5
18984 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
18985 if test "${ac_cv_func_memcmp_working+set}" = set; then
18986   echo $ECHO_N "(cached) $ECHO_C" >&6
18987 else
18988   if test "$cross_compiling" = yes; then
18989   ac_cv_func_memcmp_working=no
18990 else
18991   cat >conftest.$ac_ext <<_ACEOF
18992 #line 18992 "configure"
18993 #include "confdefs.h"
18994
18995 int
18996 main ()
18997 {
18998
18999   /* Some versions of memcmp are not 8-bit clean.  */
19000   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
19001   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
19002     exit (1);
19003
19004   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
19005      or more and with at least one buffer not starting on a 4-byte boundary.
19006      William Lewis provided this test program.   */
19007   {
19008     char foo[21];
19009     char bar[21];
19010     int i;
19011     for (i = 0; i < 4; i++)
19012       {
19013         char *a = foo + i;
19014         char *b = bar + i;
19015         strcpy (a, "--------01111111");
19016         strcpy (b, "--------10000000");
19017         if (memcmp (a, b, 16) >= 0)
19018           exit (1);
19019       }
19020     exit (0);
19021   }
19022
19023   ;
19024   return 0;
19025 }
19026 _ACEOF
19027 rm -f conftest$ac_exeext
19028 if { (eval echo "$as_me:19028: \"$ac_link\"") >&5
19029   (eval $ac_link) 2>&5
19030   ac_status=$?
19031   echo "$as_me:19031: \$? = $ac_status" >&5
19032   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19033   { (eval echo "$as_me:19033: \"$ac_try\"") >&5
19034   (eval $ac_try) 2>&5
19035   ac_status=$?
19036   echo "$as_me:19036: \$? = $ac_status" >&5
19037   (exit $ac_status); }; }; then
19038   ac_cv_func_memcmp_working=yes
19039 else
19040   echo "$as_me: program exited with status $ac_status" >&5
19041 echo "$as_me: failed program was:" >&5
19042 cat conftest.$ac_ext >&5
19043 ac_cv_func_memcmp_working=no
19044 fi
19045 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
19046 fi
19047 fi
19048 echo "$as_me:19048: result: $ac_cv_func_memcmp_working" >&5
19049 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
19050 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
19051
19052 echo "$as_me:19052: checking return type of signal handlers" >&5
19053 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
19054 if test "${ac_cv_type_signal+set}" = set; then
19055   echo $ECHO_N "(cached) $ECHO_C" >&6
19056 else
19057   cat >conftest.$ac_ext <<_ACEOF
19058 #line 19058 "configure"
19059 #include "confdefs.h"
19060 #include <sys/types.h>
19061 #include <signal.h>
19062 #ifdef signal
19063 # undef signal
19064 #endif
19065 #ifdef __cplusplus
19066 extern "C" void (*signal (int, void (*)(int)))(int);
19067 #else
19068 void (*signal ()) ();
19069 #endif
19070
19071 int
19072 main ()
19073 {
19074 int i;
19075   ;
19076   return 0;
19077 }
19078 _ACEOF
19079 rm -f conftest.$ac_objext
19080 if { (eval echo "$as_me:19080: \"$ac_compile\"") >&5
19081   (eval $ac_compile) 2>&5
19082   ac_status=$?
19083   echo "$as_me:19083: \$? = $ac_status" >&5
19084   (exit $ac_status); } &&
19085          { ac_try='test -s conftest.$ac_objext'
19086   { (eval echo "$as_me:19086: \"$ac_try\"") >&5
19087   (eval $ac_try) 2>&5
19088   ac_status=$?
19089   echo "$as_me:19089: \$? = $ac_status" >&5
19090   (exit $ac_status); }; }; then
19091   ac_cv_type_signal=void
19092 else
19093   echo "$as_me: failed program was:" >&5
19094 cat conftest.$ac_ext >&5
19095 ac_cv_type_signal=int
19096 fi
19097 rm -f conftest.$ac_objext conftest.$ac_ext
19098 fi
19099 echo "$as_me:19099: result: $ac_cv_type_signal" >&5
19100 echo "${ECHO_T}$ac_cv_type_signal" >&6
19101
19102 cat >>confdefs.h <<EOF
19103 #define RETSIGTYPE $ac_cv_type_signal
19104 EOF
19105
19106 for ac_func in vprintf
19107 do
19108 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
19109 echo "$as_me:19109: checking for $ac_func" >&5
19110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19111 if eval "test \"\${$ac_ac_var+set}\" = set"; then
19112   echo $ECHO_N "(cached) $ECHO_C" >&6
19113 else
19114   cat >conftest.$ac_ext <<_ACEOF
19115 #line 19115 "configure"
19116 #include "confdefs.h"
19117 /* System header to define __stub macros and hopefully few prototypes,
19118     which can conflict with char $ac_func (); below.  */
19119 #include <assert.h>
19120 /* Override any gcc2 internal prototype to avoid an error.  */
19121 #ifdef __cplusplus
19122 extern "C"
19123 #endif
19124 /* We use char because int might match the return type of a gcc2
19125    builtin and then its argument prototype would still apply.  */
19126 char $ac_func ();
19127 char (*f) ();
19128
19129 int
19130 main ()
19131 {
19132 /* The GNU C library defines this for functions which it implements
19133     to always fail with ENOSYS.  Some functions are actually named
19134     something starting with __ and the normal name is an alias.  */
19135 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19136 choke me
19137 #else
19138 f = $ac_func;
19139 #endif
19140
19141   ;
19142   return 0;
19143 }
19144 _ACEOF
19145 rm -f conftest.$ac_objext conftest$ac_exeext
19146 if { (eval echo "$as_me:19146: \"$ac_link\"") >&5
19147   (eval $ac_link) 2>&5
19148   ac_status=$?
19149   echo "$as_me:19149: \$? = $ac_status" >&5
19150   (exit $ac_status); } &&
19151          { ac_try='test -s conftest$ac_exeext'
19152   { (eval echo "$as_me:19152: \"$ac_try\"") >&5
19153   (eval $ac_try) 2>&5
19154   ac_status=$?
19155   echo "$as_me:19155: \$? = $ac_status" >&5
19156   (exit $ac_status); }; }; then
19157   eval "$ac_ac_var=yes"
19158 else
19159   echo "$as_me: failed program was:" >&5
19160 cat conftest.$ac_ext >&5
19161 eval "$ac_ac_var=no"
19162 fi
19163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19164 fi
19165 echo "$as_me:19165: result: `eval echo '${'$ac_ac_var'}'`" >&5
19166 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
19167 if test `eval echo '${'$ac_ac_var'}'` = yes; then
19168   cat >>confdefs.h <<EOF
19169 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
19170 EOF
19171
19172 echo "$as_me:19172: checking for _doprnt" >&5
19173 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
19174 if test "${ac_cv_func__doprnt+set}" = set; then
19175   echo $ECHO_N "(cached) $ECHO_C" >&6
19176 else
19177   cat >conftest.$ac_ext <<_ACEOF
19178 #line 19178 "configure"
19179 #include "confdefs.h"
19180 /* System header to define __stub macros and hopefully few prototypes,
19181     which can conflict with char _doprnt (); below.  */
19182 #include <assert.h>
19183 /* Override any gcc2 internal prototype to avoid an error.  */
19184 #ifdef __cplusplus
19185 extern "C"
19186 #endif
19187 /* We use char because int might match the return type of a gcc2
19188    builtin and then its argument prototype would still apply.  */
19189 char _doprnt ();
19190 char (*f) ();
19191
19192 int
19193 main ()
19194 {
19195 /* The GNU C library defines this for functions which it implements
19196     to always fail with ENOSYS.  Some functions are actually named
19197     something starting with __ and the normal name is an alias.  */
19198 #if defined (__stub__doprnt) || defined (__stub____doprnt)
19199 choke me
19200 #else
19201 f = _doprnt;
19202 #endif
19203
19204   ;
19205   return 0;
19206 }
19207 _ACEOF
19208 rm -f conftest.$ac_objext conftest$ac_exeext
19209 if { (eval echo "$as_me:19209: \"$ac_link\"") >&5
19210   (eval $ac_link) 2>&5
19211   ac_status=$?
19212   echo "$as_me:19212: \$? = $ac_status" >&5
19213   (exit $ac_status); } &&
19214          { ac_try='test -s conftest$ac_exeext'
19215   { (eval echo "$as_me:19215: \"$ac_try\"") >&5
19216   (eval $ac_try) 2>&5
19217   ac_status=$?
19218   echo "$as_me:19218: \$? = $ac_status" >&5
19219   (exit $ac_status); }; }; then
19220   ac_cv_func__doprnt=yes
19221 else
19222   echo "$as_me: failed program was:" >&5
19223 cat conftest.$ac_ext >&5
19224 ac_cv_func__doprnt=no
19225 fi
19226 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19227 fi
19228 echo "$as_me:19228: result: $ac_cv_func__doprnt" >&5
19229 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
19230 if test $ac_cv_func__doprnt = yes; then
19231
19232 cat >>confdefs.h <<\EOF
19233 #define HAVE_DOPRNT 1
19234 EOF
19235
19236 fi
19237
19238 fi
19239 done
19240
19241 echo "$as_me:19241: checking if malloc debugging is wanted" >&5
19242 echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
19243
19244 # Check whether --with-dmalloc or --without-dmalloc was given.
19245 if test "${with_dmalloc+set}" = set; then
19246   withval="$with_dmalloc"
19247   if test "$withval" = yes; then
19248   echo "$as_me:19248: result: yes" >&5
19249 echo "${ECHO_T}yes" >&6
19250
19251 cat >>confdefs.h <<\EOF
19252 #define WITH_DMALLOC 1
19253 EOF
19254
19255   LIBS="$LIBS -ldmalloc"
19256   LDFLAGS="$LDFLAGS -g"
19257 else
19258   echo "$as_me:19258: result: no" >&5
19259 echo "${ECHO_T}no" >&6
19260 fi
19261 else
19262   echo "$as_me:19262: result: no" >&5
19263 echo "${ECHO_T}no" >&6
19264 fi;
19265
19266 for ac_func in strcasecmp
19267 do
19268 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
19269 echo "$as_me:19269: checking for $ac_func" >&5
19270 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19271 if eval "test \"\${$ac_ac_var+set}\" = set"; then
19272   echo $ECHO_N "(cached) $ECHO_C" >&6
19273 else
19274   cat >conftest.$ac_ext <<_ACEOF
19275 #line 19275 "configure"
19276 #include "confdefs.h"
19277 /* System header to define __stub macros and hopefully few prototypes,
19278     which can conflict with char $ac_func (); below.  */
19279 #include <assert.h>
19280 /* Override any gcc2 internal prototype to avoid an error.  */
19281 #ifdef __cplusplus
19282 extern "C"
19283 #endif
19284 /* We use char because int might match the return type of a gcc2
19285    builtin and then its argument prototype would still apply.  */
19286 char $ac_func ();
19287 char (*f) ();
19288
19289 int
19290 main ()
19291 {
19292 /* The GNU C library defines this for functions which it implements
19293     to always fail with ENOSYS.  Some functions are actually named
19294     something starting with __ and the normal name is an alias.  */
19295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19296 choke me
19297 #else
19298 f = $ac_func;
19299 #endif
19300
19301   ;
19302   return 0;
19303 }
19304 _ACEOF
19305 rm -f conftest.$ac_objext conftest$ac_exeext
19306 if { (eval echo "$as_me:19306: \"$ac_link\"") >&5
19307   (eval $ac_link) 2>&5
19308   ac_status=$?
19309   echo "$as_me:19309: \$? = $ac_status" >&5
19310   (exit $ac_status); } &&
19311          { ac_try='test -s conftest$ac_exeext'
19312   { (eval echo "$as_me:19312: \"$ac_try\"") >&5
19313   (eval $ac_try) 2>&5
19314   ac_status=$?
19315   echo "$as_me:19315: \$? = $ac_status" >&5
19316   (exit $ac_status); }; }; then
19317   eval "$ac_ac_var=yes"
19318 else
19319   echo "$as_me: failed program was:" >&5
19320 cat conftest.$ac_ext >&5
19321 eval "$ac_ac_var=no"
19322 fi
19323 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19324 fi
19325 echo "$as_me:19325: result: `eval echo '${'$ac_ac_var'}'`" >&5
19326 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
19327 if test `eval echo '${'$ac_ac_var'}'` = yes; then
19328   cat >>confdefs.h <<EOF
19329 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
19330 EOF
19331
19332 fi
19333 done
19334
19335 for ac_func in strdup
19336 do
19337 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
19338 echo "$as_me:19338: checking for $ac_func" >&5
19339 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19340 if eval "test \"\${$ac_ac_var+set}\" = set"; then
19341   echo $ECHO_N "(cached) $ECHO_C" >&6
19342 else
19343   cat >conftest.$ac_ext <<_ACEOF
19344 #line 19344 "configure"
19345 #include "confdefs.h"
19346 /* System header to define __stub macros and hopefully few prototypes,
19347     which can conflict with char $ac_func (); below.  */
19348 #include <assert.h>
19349 /* Override any gcc2 internal prototype to avoid an error.  */
19350 #ifdef __cplusplus
19351 extern "C"
19352 #endif
19353 /* We use char because int might match the return type of a gcc2
19354    builtin and then its argument prototype would still apply.  */
19355 char $ac_func ();
19356 char (*f) ();
19357
19358 int
19359 main ()
19360 {
19361 /* The GNU C library defines this for functions which it implements
19362     to always fail with ENOSYS.  Some functions are actually named
19363     something starting with __ and the normal name is an alias.  */
19364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19365 choke me
19366 #else
19367 f = $ac_func;
19368 #endif
19369
19370   ;
19371   return 0;
19372 }
19373 _ACEOF
19374 rm -f conftest.$ac_objext conftest$ac_exeext
19375 if { (eval echo "$as_me:19375: \"$ac_link\"") >&5
19376   (eval $ac_link) 2>&5
19377   ac_status=$?
19378   echo "$as_me:19378: \$? = $ac_status" >&5
19379   (exit $ac_status); } &&
19380          { ac_try='test -s conftest$ac_exeext'
19381   { (eval echo "$as_me:19381: \"$ac_try\"") >&5
19382   (eval $ac_try) 2>&5
19383   ac_status=$?
19384   echo "$as_me:19384: \$? = $ac_status" >&5
19385   (exit $ac_status); }; }; then
19386   eval "$ac_ac_var=yes"
19387 else
19388   echo "$as_me: failed program was:" >&5
19389 cat conftest.$ac_ext >&5
19390 eval "$ac_ac_var=no"
19391 fi
19392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19393 fi
19394 echo "$as_me:19394: result: `eval echo '${'$ac_ac_var'}'`" >&5
19395 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
19396 if test `eval echo '${'$ac_ac_var'}'` = yes; then
19397   cat >>confdefs.h <<EOF
19398 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
19399 EOF
19400
19401 fi
19402 done
19403
19404 #####
19405 # Look for X
19406 echo "$as_me:19406: checking for X" >&5
19407 echo $ECHO_N "checking for X... $ECHO_C" >&6
19408
19409 # Check whether --with-x or --without-x was given.
19410 if test "${with_x+set}" = set; then
19411   withval="$with_x"
19412
19413 fi;
19414 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19415 if test "x$with_x" = xno; then
19416   # The user explicitly disabled X.
19417   have_x=disabled
19418 else
19419   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
19420     # Both variables are already set.
19421     have_x=yes
19422   else
19423     if test "${ac_cv_have_x+set}" = set; then
19424   echo $ECHO_N "(cached) $ECHO_C" >&6
19425 else
19426   # One or both of the vars are not set, and there is no cached value.
19427 ac_x_includes=no ac_x_libraries=no
19428 rm -fr conftest.dir
19429 if mkdir conftest.dir; then
19430   cd conftest.dir
19431   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
19432   cat >Imakefile <<'EOF'
19433 acfindx:
19434         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
19435 EOF
19436   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
19437     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19438     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
19439     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19440     for ac_extension in a so sl; do
19441       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
19442          test -f $ac_im_libdir/libX11.$ac_extension; then
19443         ac_im_usrlibdir=$ac_im_libdir; break
19444       fi
19445     done
19446     # Screen out bogus values from the imake configuration.  They are
19447     # bogus both because they are the default anyway, and because
19448     # using them would break gcc on systems where it needs fixed includes.
19449     case $ac_im_incroot in
19450         /usr/include) ;;
19451         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19452     esac
19453     case $ac_im_usrlibdir in
19454         /usr/lib | /lib) ;;
19455         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19456     esac
19457   fi
19458   cd ..
19459   rm -fr conftest.dir
19460 fi
19461
19462 # Standard set of common directories for X headers.
19463 # Check X11 before X11Rn because it is often a symlink to the current release.
19464 ac_x_header_dirs='
19465 /usr/X11/include
19466 /usr/X11R6/include
19467 /usr/X11R5/include
19468 /usr/X11R4/include
19469
19470 /usr/include/X11
19471 /usr/include/X11R6
19472 /usr/include/X11R5
19473 /usr/include/X11R4
19474
19475 /usr/local/X11/include
19476 /usr/local/X11R6/include
19477 /usr/local/X11R5/include
19478 /usr/local/X11R4/include
19479
19480 /usr/local/include/X11
19481 /usr/local/include/X11R6
19482 /usr/local/include/X11R5
19483 /usr/local/include/X11R4
19484
19485 /usr/X386/include
19486 /usr/x386/include
19487 /usr/XFree86/include/X11
19488
19489 /usr/include
19490 /usr/local/include
19491 /usr/unsupported/include
19492 /usr/athena/include
19493 /usr/local/x11r5/include
19494 /usr/lpp/Xamples/include
19495
19496 /usr/openwin/include
19497 /usr/openwin/share/include'
19498
19499 if test "$ac_x_includes" = no; then
19500   # Guess where to find include files, by looking for Intrinsic.h.
19501   # First, try using that file with no special directory specified.
19502   cat >conftest.$ac_ext <<_ACEOF
19503 #line 19503 "configure"
19504 #include "confdefs.h"
19505 #include <X11/Intrinsic.h>
19506 _ACEOF
19507 if { (eval echo "$as_me:19507: \"$ac_cpp conftest.$ac_ext\"") >&5
19508   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19509   ac_status=$?
19510   egrep -v '^ *\+' conftest.er1 >conftest.err
19511   rm -f conftest.er1
19512   cat conftest.err >&5
19513   echo "$as_me:19513: \$? = $ac_status" >&5
19514   (exit $ac_status); } >/dev/null; then
19515   if test -s conftest.err; then
19516     ac_cpp_err=$ac_c_preproc_warn_flag
19517   else
19518     ac_cpp_err=
19519   fi
19520 else
19521   ac_cpp_err=yes
19522 fi
19523 if test -z "$ac_cpp_err"; then
19524   # We can compile using X headers with no special include directory.
19525 ac_x_includes=
19526 else
19527   echo "$as_me: failed program was:" >&5
19528   cat conftest.$ac_ext >&5
19529   for ac_dir in $ac_x_header_dirs; do
19530   if test -r "$ac_dir/X11/Intrinsic.h"; then
19531     ac_x_includes=$ac_dir
19532     break
19533   fi
19534 done
19535 fi
19536 rm -f conftest.err conftest.$ac_ext
19537 fi # $ac_x_includes = no
19538
19539 if test "$ac_x_libraries" = no; then
19540   # Check for the libraries.
19541   # See if we find them without any special options.
19542   # Don't add to $LIBS permanently.
19543   ac_save_LIBS=$LIBS
19544   LIBS="-lXt $LIBS"
19545   cat >conftest.$ac_ext <<_ACEOF
19546 #line 19546 "configure"
19547 #include "confdefs.h"
19548 #include <X11/Intrinsic.h>
19549 int
19550 main ()
19551 {
19552 XtMalloc (0)
19553   ;
19554   return 0;
19555 }
19556 _ACEOF
19557 rm -f conftest.$ac_objext conftest$ac_exeext
19558 if { (eval echo "$as_me:19558: \"$ac_link\"") >&5
19559   (eval $ac_link) 2>&5
19560   ac_status=$?
19561   echo "$as_me:19561: \$? = $ac_status" >&5
19562   (exit $ac_status); } &&
19563          { ac_try='test -s conftest$ac_exeext'
19564   { (eval echo "$as_me:19564: \"$ac_try\"") >&5
19565   (eval $ac_try) 2>&5
19566   ac_status=$?
19567   echo "$as_me:19567: \$? = $ac_status" >&5
19568   (exit $ac_status); }; }; then
19569   LIBS=$ac_save_LIBS
19570 # We can link X programs with no special library path.
19571 ac_x_libraries=
19572 else
19573   echo "$as_me: failed program was:" >&5
19574 cat conftest.$ac_ext >&5
19575 LIBS=$ac_save_LIBS
19576 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19577 do
19578   # Don't even attempt the hair of trying to link an X program!
19579   for ac_extension in a so sl; do
19580     if test -r $ac_dir/libXt.$ac_extension; then
19581       ac_x_libraries=$ac_dir
19582       break 2
19583     fi
19584   done
19585 done
19586 fi
19587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19588 fi # $ac_x_libraries = no
19589
19590 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
19591   # Didn't find X anywhere.  Cache the known absence of X.
19592   ac_cv_have_x="have_x=no"
19593 else
19594   # Record where we found X for the cache.
19595   ac_cv_have_x="have_x=yes \
19596                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
19597 fi
19598 fi
19599
19600   fi
19601   eval "$ac_cv_have_x"
19602 fi # $with_x != no
19603
19604 if test "$have_x" != yes; then
19605   echo "$as_me:19605: result: $have_x" >&5
19606 echo "${ECHO_T}$have_x" >&6
19607   no_x=yes
19608 else
19609   # If each of the values was on the command line, it overrides each guess.
19610   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19611   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19612   # Update the cache value to reflect the command line values.
19613   ac_cv_have_x="have_x=yes \
19614                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
19615   echo "$as_me:19615: result: libraries $x_libraries, headers $x_includes" >&5
19616 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
19617 fi
19618
19619 if test "$no_x" = yes; then
19620   # Not all programs may use this symbol, but it does not hurt to define it.
19621
19622 cat >>confdefs.h <<\EOF
19623 #define X_DISPLAY_MISSING 1
19624 EOF
19625
19626   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19627 else
19628   if test -n "$x_includes"; then
19629     X_CFLAGS="$X_CFLAGS -I$x_includes"
19630   fi
19631
19632   # It would also be nice to do this for all -L options, not just this one.
19633   if test -n "$x_libraries"; then
19634     X_LIBS="$X_LIBS -L$x_libraries"
19635     # For Solaris; some versions of Sun CC require a space after -R and
19636     # others require no space.  Words are not sufficient . . . .
19637     case `(uname -sr) 2>/dev/null` in
19638     "SunOS 5"*)
19639       echo "$as_me:19639: checking whether -R must be followed by a space" >&5
19640 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
19641       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19642       cat >conftest.$ac_ext <<_ACEOF
19643 #line 19643 "configure"
19644 #include "confdefs.h"
19645
19646 int
19647 main ()
19648 {
19649
19650   ;
19651   return 0;
19652 }
19653 _ACEOF
19654 rm -f conftest.$ac_objext conftest$ac_exeext
19655 if { (eval echo "$as_me:19655: \"$ac_link\"") >&5
19656   (eval $ac_link) 2>&5
19657   ac_status=$?
19658   echo "$as_me:19658: \$? = $ac_status" >&5
19659   (exit $ac_status); } &&
19660          { ac_try='test -s conftest$ac_exeext'
19661   { (eval echo "$as_me:19661: \"$ac_try\"") >&5
19662   (eval $ac_try) 2>&5
19663   ac_status=$?
19664   echo "$as_me:19664: \$? = $ac_status" >&5
19665   (exit $ac_status); }; }; then
19666   ac_R_nospace=yes
19667 else
19668   echo "$as_me: failed program was:" >&5
19669 cat conftest.$ac_ext >&5
19670 ac_R_nospace=no
19671 fi
19672 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19673       if test $ac_R_nospace = yes; then
19674         echo "$as_me:19674: result: no" >&5
19675 echo "${ECHO_T}no" >&6
19676         X_LIBS="$X_LIBS -R$x_libraries"
19677       else
19678         LIBS="$ac_xsave_LIBS -R $x_libraries"
19679         cat >conftest.$ac_ext <<_ACEOF
19680 #line 19680 "configure"
19681 #include "confdefs.h"
19682
19683 int
19684 main ()
19685 {
19686
19687   ;
19688   return 0;
19689 }
19690 _ACEOF
19691 rm -f conftest.$ac_objext conftest$ac_exeext
19692 if { (eval echo "$as_me:19692: \"$ac_link\"") >&5
19693   (eval $ac_link) 2>&5
19694   ac_status=$?
19695   echo "$as_me:19695: \$? = $ac_status" >&5
19696   (exit $ac_status); } &&
19697          { ac_try='test -s conftest$ac_exeext'
19698   { (eval echo "$as_me:19698: \"$ac_try\"") >&5
19699   (eval $ac_try) 2>&5
19700   ac_status=$?
19701   echo "$as_me:19701: \$? = $ac_status" >&5
19702   (exit $ac_status); }; }; then
19703   ac_R_space=yes
19704 else
19705   echo "$as_me: failed program was:" >&5
19706 cat conftest.$ac_ext >&5
19707 ac_R_space=no
19708 fi
19709 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19710         if test $ac_R_space = yes; then
19711           echo "$as_me:19711: result: yes" >&5
19712 echo "${ECHO_T}yes" >&6
19713           X_LIBS="$X_LIBS -R $x_libraries"
19714         else
19715           echo "$as_me:19715: result: neither works" >&5
19716 echo "${ECHO_T}neither works" >&6
19717         fi
19718       fi
19719       LIBS=$ac_xsave_LIBS
19720     esac
19721   fi
19722
19723   # Check for system-dependent libraries X programs must link with.
19724   # Do this before checking for the system-independent R6 libraries
19725   # (-lICE), since we may need -lsocket or whatever for X linking.
19726
19727   if test "$ISC" = yes; then
19728     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19729   else
19730     # Martyn Johnson says this is needed for Ultrix, if the X
19731     # libraries were built with DECnet support.  And Karl Berry says
19732     # the Alpha needs dnet_stub (dnet does not exist).
19733     echo "$as_me:19733: checking for dnet_ntoa in -ldnet" >&5
19734 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
19735 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
19736   echo $ECHO_N "(cached) $ECHO_C" >&6
19737 else
19738   ac_check_lib_save_LIBS=$LIBS
19739 LIBS="-ldnet  $LIBS"
19740 cat >conftest.$ac_ext <<_ACEOF
19741 #line 19741 "configure"
19742 #include "confdefs.h"
19743
19744 /* Override any gcc2 internal prototype to avoid an error.  */
19745 #ifdef __cplusplus
19746 extern "C"
19747 #endif
19748 /* We use char because int might match the return type of a gcc2
19749    builtin and then its argument prototype would still apply.  */
19750 char dnet_ntoa ();
19751 int
19752 main ()
19753 {
19754 dnet_ntoa ();
19755   ;
19756   return 0;
19757 }
19758 _ACEOF
19759 rm -f conftest.$ac_objext conftest$ac_exeext
19760 if { (eval echo "$as_me:19760: \"$ac_link\"") >&5
19761   (eval $ac_link) 2>&5
19762   ac_status=$?
19763   echo "$as_me:19763: \$? = $ac_status" >&5
19764   (exit $ac_status); } &&
19765          { ac_try='test -s conftest$ac_exeext'
19766   { (eval echo "$as_me:19766: \"$ac_try\"") >&5
19767   (eval $ac_try) 2>&5
19768   ac_status=$?
19769   echo "$as_me:19769: \$? = $ac_status" >&5
19770   (exit $ac_status); }; }; then
19771   ac_cv_lib_dnet_dnet_ntoa=yes
19772 else
19773   echo "$as_me: failed program was:" >&5
19774 cat conftest.$ac_ext >&5
19775 ac_cv_lib_dnet_dnet_ntoa=no
19776 fi
19777 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19778 LIBS=$ac_check_lib_save_LIBS
19779 fi
19780 echo "$as_me:19780: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19781 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
19782 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
19783   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19784 fi
19785
19786     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19787       echo "$as_me:19787: checking for dnet_ntoa in -ldnet_stub" >&5
19788 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
19789 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19790   echo $ECHO_N "(cached) $ECHO_C" >&6
19791 else
19792   ac_check_lib_save_LIBS=$LIBS
19793 LIBS="-ldnet_stub  $LIBS"
19794 cat >conftest.$ac_ext <<_ACEOF
19795 #line 19795 "configure"
19796 #include "confdefs.h"
19797
19798 /* Override any gcc2 internal prototype to avoid an error.  */
19799 #ifdef __cplusplus
19800 extern "C"
19801 #endif
19802 /* We use char because int might match the return type of a gcc2
19803    builtin and then its argument prototype would still apply.  */
19804 char dnet_ntoa ();
19805 int
19806 main ()
19807 {
19808 dnet_ntoa ();
19809   ;
19810   return 0;
19811 }
19812 _ACEOF
19813 rm -f conftest.$ac_objext conftest$ac_exeext
19814 if { (eval echo "$as_me:19814: \"$ac_link\"") >&5
19815   (eval $ac_link) 2>&5
19816   ac_status=$?
19817   echo "$as_me:19817: \$? = $ac_status" >&5
19818   (exit $ac_status); } &&
19819          { ac_try='test -s conftest$ac_exeext'
19820   { (eval echo "$as_me:19820: \"$ac_try\"") >&5
19821   (eval $ac_try) 2>&5
19822   ac_status=$?
19823   echo "$as_me:19823: \$? = $ac_status" >&5
19824   (exit $ac_status); }; }; then
19825   ac_cv_lib_dnet_stub_dnet_ntoa=yes
19826 else
19827   echo "$as_me: failed program was:" >&5
19828 cat conftest.$ac_ext >&5
19829 ac_cv_lib_dnet_stub_dnet_ntoa=no
19830 fi
19831 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19832 LIBS=$ac_check_lib_save_LIBS
19833 fi
19834 echo "$as_me:19834: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19835 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
19836 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
19837   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19838 fi
19839
19840     fi
19841
19842     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19843     # to get the SysV transport functions.
19844     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19845     # needs -lnsl.
19846     # The nsl library prevents programs from opening the X display
19847     # on Irix 5.2, according to T.E. Dickey.
19848     # The functions gethostbyname, getservbyname, and inet_addr are
19849     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19850     echo "$as_me:19850: checking for gethostbyname" >&5
19851 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
19852 if test "${ac_cv_func_gethostbyname+set}" = set; then
19853   echo $ECHO_N "(cached) $ECHO_C" >&6
19854 else
19855   cat >conftest.$ac_ext <<_ACEOF
19856 #line 19856 "configure"
19857 #include "confdefs.h"
19858 /* System header to define __stub macros and hopefully few prototypes,
19859     which can conflict with char gethostbyname (); below.  */
19860 #include <assert.h>
19861 /* Override any gcc2 internal prototype to avoid an error.  */
19862 #ifdef __cplusplus
19863 extern "C"
19864 #endif
19865 /* We use char because int might match the return type of a gcc2
19866    builtin and then its argument prototype would still apply.  */
19867 char gethostbyname ();
19868 char (*f) ();
19869
19870 int
19871 main ()
19872 {
19873 /* The GNU C library defines this for functions which it implements
19874     to always fail with ENOSYS.  Some functions are actually named
19875     something starting with __ and the normal name is an alias.  */
19876 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
19877 choke me
19878 #else
19879 f = gethostbyname;
19880 #endif
19881
19882   ;
19883   return 0;
19884 }
19885 _ACEOF
19886 rm -f conftest.$ac_objext conftest$ac_exeext
19887 if { (eval echo "$as_me:19887: \"$ac_link\"") >&5
19888   (eval $ac_link) 2>&5
19889   ac_status=$?
19890   echo "$as_me:19890: \$? = $ac_status" >&5
19891   (exit $ac_status); } &&
19892          { ac_try='test -s conftest$ac_exeext'
19893   { (eval echo "$as_me:19893: \"$ac_try\"") >&5
19894   (eval $ac_try) 2>&5
19895   ac_status=$?
19896   echo "$as_me:19896: \$? = $ac_status" >&5
19897   (exit $ac_status); }; }; then
19898   ac_cv_func_gethostbyname=yes
19899 else
19900   echo "$as_me: failed program was:" >&5
19901 cat conftest.$ac_ext >&5
19902 ac_cv_func_gethostbyname=no
19903 fi
19904 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19905 fi
19906 echo "$as_me:19906: result: $ac_cv_func_gethostbyname" >&5
19907 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
19908
19909     if test $ac_cv_func_gethostbyname = no; then
19910       echo "$as_me:19910: checking for gethostbyname in -lnsl" >&5
19911 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
19912 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19913   echo $ECHO_N "(cached) $ECHO_C" >&6
19914 else
19915   ac_check_lib_save_LIBS=$LIBS
19916 LIBS="-lnsl  $LIBS"
19917 cat >conftest.$ac_ext <<_ACEOF
19918 #line 19918 "configure"
19919 #include "confdefs.h"
19920
19921 /* Override any gcc2 internal prototype to avoid an error.  */
19922 #ifdef __cplusplus
19923 extern "C"
19924 #endif
19925 /* We use char because int might match the return type of a gcc2
19926    builtin and then its argument prototype would still apply.  */
19927 char gethostbyname ();
19928 int
19929 main ()
19930 {
19931 gethostbyname ();
19932   ;
19933   return 0;
19934 }
19935 _ACEOF
19936 rm -f conftest.$ac_objext conftest$ac_exeext
19937 if { (eval echo "$as_me:19937: \"$ac_link\"") >&5
19938   (eval $ac_link) 2>&5
19939   ac_status=$?
19940   echo "$as_me:19940: \$? = $ac_status" >&5
19941   (exit $ac_status); } &&
19942          { ac_try='test -s conftest$ac_exeext'
19943   { (eval echo "$as_me:19943: \"$ac_try\"") >&5
19944   (eval $ac_try) 2>&5
19945   ac_status=$?
19946   echo "$as_me:19946: \$? = $ac_status" >&5
19947   (exit $ac_status); }; }; then
19948   ac_cv_lib_nsl_gethostbyname=yes
19949 else
19950   echo "$as_me: failed program was:" >&5
19951 cat conftest.$ac_ext >&5
19952 ac_cv_lib_nsl_gethostbyname=no
19953 fi
19954 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19955 LIBS=$ac_check_lib_save_LIBS
19956 fi
19957 echo "$as_me:19957: result: $ac_cv_lib_nsl_gethostbyname" >&5
19958 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
19959 if test $ac_cv_lib_nsl_gethostbyname = yes; then
19960   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19961 fi
19962
19963       if test $ac_cv_lib_nsl_gethostbyname = no; then
19964         echo "$as_me:19964: checking for gethostbyname in -lbsd" >&5
19965 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
19966 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
19967   echo $ECHO_N "(cached) $ECHO_C" >&6
19968 else
19969   ac_check_lib_save_LIBS=$LIBS
19970 LIBS="-lbsd  $LIBS"
19971 cat >conftest.$ac_ext <<_ACEOF
19972 #line 19972 "configure"
19973 #include "confdefs.h"
19974
19975 /* Override any gcc2 internal prototype to avoid an error.  */
19976 #ifdef __cplusplus
19977 extern "C"
19978 #endif
19979 /* We use char because int might match the return type of a gcc2
19980    builtin and then its argument prototype would still apply.  */
19981 char gethostbyname ();
19982 int
19983 main ()
19984 {
19985 gethostbyname ();
19986   ;
19987   return 0;
19988 }
19989 _ACEOF
19990 rm -f conftest.$ac_objext conftest$ac_exeext
19991 if { (eval echo "$as_me:19991: \"$ac_link\"") >&5
19992   (eval $ac_link) 2>&5
19993   ac_status=$?
19994   echo "$as_me:19994: \$? = $ac_status" >&5
19995   (exit $ac_status); } &&
19996          { ac_try='test -s conftest$ac_exeext'
19997   { (eval echo "$as_me:19997: \"$ac_try\"") >&5
19998   (eval $ac_try) 2>&5
19999   ac_status=$?
20000   echo "$as_me:20000: \$? = $ac_status" >&5
20001   (exit $ac_status); }; }; then
20002   ac_cv_lib_bsd_gethostbyname=yes
20003 else
20004   echo "$as_me: failed program was:" >&5
20005 cat conftest.$ac_ext >&5
20006 ac_cv_lib_bsd_gethostbyname=no
20007 fi
20008 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20009 LIBS=$ac_check_lib_save_LIBS
20010 fi
20011 echo "$as_me:20011: result: $ac_cv_lib_bsd_gethostbyname" >&5
20012 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
20013 if test $ac_cv_lib_bsd_gethostbyname = yes; then
20014   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20015 fi
20016
20017       fi
20018     fi
20019
20020     # lieder@skyler.mavd.honeywell.com says without -lsocket,
20021     # socket/setsockopt and other routines are undefined under SCO ODT
20022     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
20023     # on later versions), says Simon Leinen: it contains gethostby*
20024     # variants that don't use the nameserver (or something).  -lsocket
20025     # must be given before -lnsl if both are needed.  We assume that
20026     # if connect needs -lnsl, so does gethostbyname.
20027     echo "$as_me:20027: checking for connect" >&5
20028 echo $ECHO_N "checking for connect... $ECHO_C" >&6
20029 if test "${ac_cv_func_connect+set}" = set; then
20030   echo $ECHO_N "(cached) $ECHO_C" >&6
20031 else
20032   cat >conftest.$ac_ext <<_ACEOF
20033 #line 20033 "configure"
20034 #include "confdefs.h"
20035 /* System header to define __stub macros and hopefully few prototypes,
20036     which can conflict with char connect (); below.  */
20037 #include <assert.h>
20038 /* Override any gcc2 internal prototype to avoid an error.  */
20039 #ifdef __cplusplus
20040 extern "C"
20041 #endif
20042 /* We use char because int might match the return type of a gcc2
20043    builtin and then its argument prototype would still apply.  */
20044 char connect ();
20045 char (*f) ();
20046
20047 int
20048 main ()
20049 {
20050 /* The GNU C library defines this for functions which it implements
20051     to always fail with ENOSYS.  Some functions are actually named
20052     something starting with __ and the normal name is an alias.  */
20053 #if defined (__stub_connect) || defined (__stub___connect)
20054 choke me
20055 #else
20056 f = connect;
20057 #endif
20058
20059   ;
20060   return 0;
20061 }
20062 _ACEOF
20063 rm -f conftest.$ac_objext conftest$ac_exeext
20064 if { (eval echo "$as_me:20064: \"$ac_link\"") >&5
20065   (eval $ac_link) 2>&5
20066   ac_status=$?
20067   echo "$as_me:20067: \$? = $ac_status" >&5
20068   (exit $ac_status); } &&
20069          { ac_try='test -s conftest$ac_exeext'
20070   { (eval echo "$as_me:20070: \"$ac_try\"") >&5
20071   (eval $ac_try) 2>&5
20072   ac_status=$?
20073   echo "$as_me:20073: \$? = $ac_status" >&5
20074   (exit $ac_status); }; }; then
20075   ac_cv_func_connect=yes
20076 else
20077   echo "$as_me: failed program was:" >&5
20078 cat conftest.$ac_ext >&5
20079 ac_cv_func_connect=no
20080 fi
20081 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20082 fi
20083 echo "$as_me:20083: result: $ac_cv_func_connect" >&5
20084 echo "${ECHO_T}$ac_cv_func_connect" >&6
20085
20086     if test $ac_cv_func_connect = no; then
20087       echo "$as_me:20087: checking for connect in -lsocket" >&5
20088 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
20089 if test "${ac_cv_lib_socket_connect+set}" = set; then
20090   echo $ECHO_N "(cached) $ECHO_C" >&6
20091 else
20092   ac_check_lib_save_LIBS=$LIBS
20093 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20094 cat >conftest.$ac_ext <<_ACEOF
20095 #line 20095 "configure"
20096 #include "confdefs.h"
20097
20098 /* Override any gcc2 internal prototype to avoid an error.  */
20099 #ifdef __cplusplus
20100 extern "C"
20101 #endif
20102 /* We use char because int might match the return type of a gcc2
20103    builtin and then its argument prototype would still apply.  */
20104 char connect ();
20105 int
20106 main ()
20107 {
20108 connect ();
20109   ;
20110   return 0;
20111 }
20112 _ACEOF
20113 rm -f conftest.$ac_objext conftest$ac_exeext
20114 if { (eval echo "$as_me:20114: \"$ac_link\"") >&5
20115   (eval $ac_link) 2>&5
20116   ac_status=$?
20117   echo "$as_me:20117: \$? = $ac_status" >&5
20118   (exit $ac_status); } &&
20119          { ac_try='test -s conftest$ac_exeext'
20120   { (eval echo "$as_me:20120: \"$ac_try\"") >&5
20121   (eval $ac_try) 2>&5
20122   ac_status=$?
20123   echo "$as_me:20123: \$? = $ac_status" >&5
20124   (exit $ac_status); }; }; then
20125   ac_cv_lib_socket_connect=yes
20126 else
20127   echo "$as_me: failed program was:" >&5
20128 cat conftest.$ac_ext >&5
20129 ac_cv_lib_socket_connect=no
20130 fi
20131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20132 LIBS=$ac_check_lib_save_LIBS
20133 fi
20134 echo "$as_me:20134: result: $ac_cv_lib_socket_connect" >&5
20135 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
20136 if test $ac_cv_lib_socket_connect = yes; then
20137   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20138 fi
20139
20140     fi
20141
20142     # Guillermo Gomez says -lposix is necessary on A/UX.
20143     echo "$as_me:20143: checking for remove" >&5
20144 echo $ECHO_N "checking for remove... $ECHO_C" >&6
20145 if test "${ac_cv_func_remove+set}" = set; then
20146   echo $ECHO_N "(cached) $ECHO_C" >&6
20147 else
20148   cat >conftest.$ac_ext <<_ACEOF
20149 #line 20149 "configure"
20150 #include "confdefs.h"
20151 /* System header to define __stub macros and hopefully few prototypes,
20152     which can conflict with char remove (); below.  */
20153 #include <assert.h>
20154 /* Override any gcc2 internal prototype to avoid an error.  */
20155 #ifdef __cplusplus
20156 extern "C"
20157 #endif
20158 /* We use char because int might match the return type of a gcc2
20159    builtin and then its argument prototype would still apply.  */
20160 char remove ();
20161 char (*f) ();
20162
20163 int
20164 main ()
20165 {
20166 /* The GNU C library defines this for functions which it implements
20167     to always fail with ENOSYS.  Some functions are actually named
20168     something starting with __ and the normal name is an alias.  */
20169 #if defined (__stub_remove) || defined (__stub___remove)
20170 choke me
20171 #else
20172 f = remove;
20173 #endif
20174
20175   ;
20176   return 0;
20177 }
20178 _ACEOF
20179 rm -f conftest.$ac_objext conftest$ac_exeext
20180 if { (eval echo "$as_me:20180: \"$ac_link\"") >&5
20181   (eval $ac_link) 2>&5
20182   ac_status=$?
20183   echo "$as_me:20183: \$? = $ac_status" >&5
20184   (exit $ac_status); } &&
20185          { ac_try='test -s conftest$ac_exeext'
20186   { (eval echo "$as_me:20186: \"$ac_try\"") >&5
20187   (eval $ac_try) 2>&5
20188   ac_status=$?
20189   echo "$as_me:20189: \$? = $ac_status" >&5
20190   (exit $ac_status); }; }; then
20191   ac_cv_func_remove=yes
20192 else
20193   echo "$as_me: failed program was:" >&5
20194 cat conftest.$ac_ext >&5
20195 ac_cv_func_remove=no
20196 fi
20197 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20198 fi
20199 echo "$as_me:20199: result: $ac_cv_func_remove" >&5
20200 echo "${ECHO_T}$ac_cv_func_remove" >&6
20201
20202     if test $ac_cv_func_remove = no; then
20203       echo "$as_me:20203: checking for remove in -lposix" >&5
20204 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
20205 if test "${ac_cv_lib_posix_remove+set}" = set; then
20206   echo $ECHO_N "(cached) $ECHO_C" >&6
20207 else
20208   ac_check_lib_save_LIBS=$LIBS
20209 LIBS="-lposix  $LIBS"
20210 cat >conftest.$ac_ext <<_ACEOF
20211 #line 20211 "configure"
20212 #include "confdefs.h"
20213
20214 /* Override any gcc2 internal prototype to avoid an error.  */
20215 #ifdef __cplusplus
20216 extern "C"
20217 #endif
20218 /* We use char because int might match the return type of a gcc2
20219    builtin and then its argument prototype would still apply.  */
20220 char remove ();
20221 int
20222 main ()
20223 {
20224 remove ();
20225   ;
20226   return 0;
20227 }
20228 _ACEOF
20229 rm -f conftest.$ac_objext conftest$ac_exeext
20230 if { (eval echo "$as_me:20230: \"$ac_link\"") >&5
20231   (eval $ac_link) 2>&5
20232   ac_status=$?
20233   echo "$as_me:20233: \$? = $ac_status" >&5
20234   (exit $ac_status); } &&
20235          { ac_try='test -s conftest$ac_exeext'
20236   { (eval echo "$as_me:20236: \"$ac_try\"") >&5
20237   (eval $ac_try) 2>&5
20238   ac_status=$?
20239   echo "$as_me:20239: \$? = $ac_status" >&5
20240   (exit $ac_status); }; }; then
20241   ac_cv_lib_posix_remove=yes
20242 else
20243   echo "$as_me: failed program was:" >&5
20244 cat conftest.$ac_ext >&5
20245 ac_cv_lib_posix_remove=no
20246 fi
20247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20248 LIBS=$ac_check_lib_save_LIBS
20249 fi
20250 echo "$as_me:20250: result: $ac_cv_lib_posix_remove" >&5
20251 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
20252 if test $ac_cv_lib_posix_remove = yes; then
20253   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20254 fi
20255
20256     fi
20257
20258     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20259     echo "$as_me:20259: checking for shmat" >&5
20260 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
20261 if test "${ac_cv_func_shmat+set}" = set; then
20262   echo $ECHO_N "(cached) $ECHO_C" >&6
20263 else
20264   cat >conftest.$ac_ext <<_ACEOF
20265 #line 20265 "configure"
20266 #include "confdefs.h"
20267 /* System header to define __stub macros and hopefully few prototypes,
20268     which can conflict with char shmat (); below.  */
20269 #include <assert.h>
20270 /* Override any gcc2 internal prototype to avoid an error.  */
20271 #ifdef __cplusplus
20272 extern "C"
20273 #endif
20274 /* We use char because int might match the return type of a gcc2
20275    builtin and then its argument prototype would still apply.  */
20276 char shmat ();
20277 char (*f) ();
20278
20279 int
20280 main ()
20281 {
20282 /* The GNU C library defines this for functions which it implements
20283     to always fail with ENOSYS.  Some functions are actually named
20284     something starting with __ and the normal name is an alias.  */
20285 #if defined (__stub_shmat) || defined (__stub___shmat)
20286 choke me
20287 #else
20288 f = shmat;
20289 #endif
20290
20291   ;
20292   return 0;
20293 }
20294 _ACEOF
20295 rm -f conftest.$ac_objext conftest$ac_exeext
20296 if { (eval echo "$as_me:20296: \"$ac_link\"") >&5
20297   (eval $ac_link) 2>&5
20298   ac_status=$?
20299   echo "$as_me:20299: \$? = $ac_status" >&5
20300   (exit $ac_status); } &&
20301          { ac_try='test -s conftest$ac_exeext'
20302   { (eval echo "$as_me:20302: \"$ac_try\"") >&5
20303   (eval $ac_try) 2>&5
20304   ac_status=$?
20305   echo "$as_me:20305: \$? = $ac_status" >&5
20306   (exit $ac_status); }; }; then
20307   ac_cv_func_shmat=yes
20308 else
20309   echo "$as_me: failed program was:" >&5
20310 cat conftest.$ac_ext >&5
20311 ac_cv_func_shmat=no
20312 fi
20313 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20314 fi
20315 echo "$as_me:20315: result: $ac_cv_func_shmat" >&5
20316 echo "${ECHO_T}$ac_cv_func_shmat" >&6
20317
20318     if test $ac_cv_func_shmat = no; then
20319       echo "$as_me:20319: checking for shmat in -lipc" >&5
20320 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
20321 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
20322   echo $ECHO_N "(cached) $ECHO_C" >&6
20323 else
20324   ac_check_lib_save_LIBS=$LIBS
20325 LIBS="-lipc  $LIBS"
20326 cat >conftest.$ac_ext <<_ACEOF
20327 #line 20327 "configure"
20328 #include "confdefs.h"
20329
20330 /* Override any gcc2 internal prototype to avoid an error.  */
20331 #ifdef __cplusplus
20332 extern "C"
20333 #endif
20334 /* We use char because int might match the return type of a gcc2
20335    builtin and then its argument prototype would still apply.  */
20336 char shmat ();
20337 int
20338 main ()
20339 {
20340 shmat ();
20341   ;
20342   return 0;
20343 }
20344 _ACEOF
20345 rm -f conftest.$ac_objext conftest$ac_exeext
20346 if { (eval echo "$as_me:20346: \"$ac_link\"") >&5
20347   (eval $ac_link) 2>&5
20348   ac_status=$?
20349   echo "$as_me:20349: \$? = $ac_status" >&5
20350   (exit $ac_status); } &&
20351          { ac_try='test -s conftest$ac_exeext'
20352   { (eval echo "$as_me:20352: \"$ac_try\"") >&5
20353   (eval $ac_try) 2>&5
20354   ac_status=$?
20355   echo "$as_me:20355: \$? = $ac_status" >&5
20356   (exit $ac_status); }; }; then
20357   ac_cv_lib_ipc_shmat=yes
20358 else
20359   echo "$as_me: failed program was:" >&5
20360 cat conftest.$ac_ext >&5
20361 ac_cv_lib_ipc_shmat=no
20362 fi
20363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20364 LIBS=$ac_check_lib_save_LIBS
20365 fi
20366 echo "$as_me:20366: result: $ac_cv_lib_ipc_shmat" >&5
20367 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
20368 if test $ac_cv_lib_ipc_shmat = yes; then
20369   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20370 fi
20371
20372     fi
20373   fi
20374
20375   # Check for libraries that X11R6 Xt/Xaw programs need.
20376   ac_save_LDFLAGS=$LDFLAGS
20377   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20378   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20379   # check for ICE first), but we must link in the order -lSM -lICE or
20380   # we get undefined symbols.  So assume we have SM if we have ICE.
20381   # These have to be linked with before -lX11, unlike the other
20382   # libraries we check for below, so use a different variable.
20383   # John Interrante, Karl Berry
20384   echo "$as_me:20384: checking for IceConnectionNumber in -lICE" >&5
20385 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
20386 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
20387   echo $ECHO_N "(cached) $ECHO_C" >&6
20388 else
20389   ac_check_lib_save_LIBS=$LIBS
20390 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20391 cat >conftest.$ac_ext <<_ACEOF
20392 #line 20392 "configure"
20393 #include "confdefs.h"
20394
20395 /* Override any gcc2 internal prototype to avoid an error.  */
20396 #ifdef __cplusplus
20397 extern "C"
20398 #endif
20399 /* We use char because int might match the return type of a gcc2
20400    builtin and then its argument prototype would still apply.  */
20401 char IceConnectionNumber ();
20402 int
20403 main ()
20404 {
20405 IceConnectionNumber ();
20406   ;
20407   return 0;
20408 }
20409 _ACEOF
20410 rm -f conftest.$ac_objext conftest$ac_exeext
20411 if { (eval echo "$as_me:20411: \"$ac_link\"") >&5
20412   (eval $ac_link) 2>&5
20413   ac_status=$?
20414   echo "$as_me:20414: \$? = $ac_status" >&5
20415   (exit $ac_status); } &&
20416          { ac_try='test -s conftest$ac_exeext'
20417   { (eval echo "$as_me:20417: \"$ac_try\"") >&5
20418   (eval $ac_try) 2>&5
20419   ac_status=$?
20420   echo "$as_me:20420: \$? = $ac_status" >&5
20421   (exit $ac_status); }; }; then
20422   ac_cv_lib_ICE_IceConnectionNumber=yes
20423 else
20424   echo "$as_me: failed program was:" >&5
20425 cat conftest.$ac_ext >&5
20426 ac_cv_lib_ICE_IceConnectionNumber=no
20427 fi
20428 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20429 LIBS=$ac_check_lib_save_LIBS
20430 fi
20431 echo "$as_me:20431: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20432 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
20433 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
20434   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20435 fi
20436
20437   LDFLAGS=$ac_save_LDFLAGS
20438
20439 fi
20440
20441 # try to find motif headers and libraries
20442
20443 motif_includes=
20444 motif_libraries=
20445
20446 if test "$no_x" = "yes"
20447 then
20448   motif_includes=no
20449   motif_libraries=no
20450 fi
20451
20452 # Check whether --with-motif-includes or --without-motif-includes was given.
20453 if test "${with_motif_includes+set}" = set; then
20454   withval="$with_motif_includes"
20455   motif_includes="$withval"
20456 fi;
20457
20458 # Check whether --with-motif-libraries or --without-motif-libraries was given.
20459 if test "${with_motif_libraries+set}" = set; then
20460   withval="$with_motif_libraries"
20461   motif_libraries="$withval"
20462 fi;
20463
20464 echo "$as_me:20464: checking for Motif" >&5
20465 echo $ECHO_N "checking for Motif... $ECHO_C" >&6
20466
20467 #
20468 #
20469 # Search the include files.
20470 #
20471 if test "$motif_includes" = ""; then
20472 if test "${ac_cv_motif_includes+set}" = set; then
20473   echo $ECHO_N "(cached) $ECHO_C" >&6
20474 else
20475
20476 ac_motif_save_LIBS="$LIBS"
20477 ac_motif_save_INCLUDES="$INCLUDES"
20478 ac_motif_save_CPPFLAGS="$CPPFLAGS"
20479 ac_motif_save_LDFLAGS="$LDFLAGS"
20480 #
20481 LIBS="$X_PRE_LIBS -lXm -lXt -lX11 $X_EXTRA_LIBS $LIBS"
20482 INCLUDES="$X_CFLAGS $INCLUDES"
20483 CPPFLAGS="$X_CFLAGS $CPPFLAGS"
20484 LDFLAGS="$X_LIBS $LDFLAGS"
20485 #
20486 ac_cv_motif_includes="no"
20487 cat >conftest.$ac_ext <<_ACEOF
20488 #line 20488 "configure"
20489 #include "confdefs.h"
20490 #include <Xm/Xm.h>
20491 int
20492 main ()
20493 {
20494 int a;
20495   ;
20496   return 0;
20497 }
20498 _ACEOF
20499 rm -f conftest.$ac_objext
20500 if { (eval echo "$as_me:20500: \"$ac_compile\"") >&5
20501   (eval $ac_compile) 2>&5
20502   ac_status=$?
20503   echo "$as_me:20503: \$? = $ac_status" >&5
20504   (exit $ac_status); } &&
20505          { ac_try='test -s conftest.$ac_objext'
20506   { (eval echo "$as_me:20506: \"$ac_try\"") >&5
20507   (eval $ac_try) 2>&5
20508   ac_status=$?
20509   echo "$as_me:20509: \$? = $ac_status" >&5
20510   (exit $ac_status); }; }; then
20511
20512 # Xm/Xm.h is in the standard search path.
20513 ac_cv_motif_includes=
20514
20515 else
20516   echo "$as_me: failed program was:" >&5
20517 cat conftest.$ac_ext >&5
20518
20519 # Xm/Xm.h is not in the standard search path.
20520 # Locate it and put its directory in `motif_includes'
20521 #
20522 # /usr/include/Motif* are used on HP-UX (Motif).
20523 # /usr/include/X11* are used on HP-UX (X and Athena).
20524 # /usr/dt is used on Solaris (Motif).
20525 # /usr/openwin is used on Solaris (X and Athena).
20526 # Other directories are just guesses.
20527 for dir in "$x_includes" "${prefix}/include" /usr/include /usr/local/include \
20528            /usr/include/Motif2.0 /usr/include/Motif1.2 /usr/include/Motif1.1 \
20529            /usr/include/X11R6 /usr/include/X11R5 /usr/include/X11R4 \
20530            /usr/dt/include /usr/openwin/include \
20531            /usr/dt/*/include /opt/*/include /usr/include/Motif* \
20532            "${prefix}"/*/include /usr/*/include /usr/local/*/include \
20533            "${prefix}"/include/* /usr/include/* /usr/local/include/*; do
20534 if test -f "$dir/Xm/Xm.h"; then
20535 ac_cv_motif_includes="$dir"
20536 break
20537 fi
20538 done
20539
20540 fi
20541 rm -f conftest.$ac_objext conftest.$ac_ext
20542 #
20543 LIBS="$ac_motif_save_LIBS"
20544 INCLUDES="$ac_motif_save_INCLUDES"
20545 CPPFLAGS="$ac_motif_save_CPPFLAGS"
20546 LDFLAGS="$ac_motif_save_LDFLAGS"
20547
20548 fi
20549
20550 motif_includes="$ac_cv_motif_includes"
20551 fi
20552 #
20553 #
20554 # Now for the libraries.
20555 #
20556 if test "$motif_libraries" = ""; then
20557 if test "${ac_cv_motif_libraries+set}" = set; then
20558   echo $ECHO_N "(cached) $ECHO_C" >&6
20559 else
20560
20561 ac_motif_save_LIBS="$LIBS"
20562 ac_motif_save_INCLUDES="$INCLUDES"
20563 ac_motif_save_CPPFLAGS="$CPPFLAGS"
20564 ac_motif_save_LDFLAGS="$LDFLAGS"
20565 #
20566 LIBS="$X_PRE_LIBS -lXm -lXt -lX11 $X_EXTRA_LIBS $LIBS"
20567 INCLUDES="$X_CFLAGS $INCLUDES"
20568 CPPFLAGS="$X_CFLAGS $CPPFLAGS"
20569 LDFLAGS="$X_LIBS $LDFLAGS"
20570 #
20571 ac_cv_motif_libraries="no"
20572 cat >conftest.$ac_ext <<_ACEOF
20573 #line 20573 "configure"
20574 #include "confdefs.h"
20575 #include <Xm/Xm.h>
20576 int
20577 main ()
20578 {
20579 XtToolkitInitialize();
20580   ;
20581   return 0;
20582 }
20583 _ACEOF
20584 rm -f conftest.$ac_objext conftest$ac_exeext
20585 if { (eval echo "$as_me:20585: \"$ac_link\"") >&5
20586   (eval $ac_link) 2>&5
20587   ac_status=$?
20588   echo "$as_me:20588: \$? = $ac_status" >&5
20589   (exit $ac_status); } &&
20590          { ac_try='test -s conftest$ac_exeext'
20591   { (eval echo "$as_me:20591: \"$ac_try\"") >&5
20592   (eval $ac_try) 2>&5
20593   ac_status=$?
20594   echo "$as_me:20594: \$? = $ac_status" >&5
20595   (exit $ac_status); }; }; then
20596
20597 # libXm.a is in the standard search path.
20598 ac_cv_motif_libraries=
20599
20600 else
20601   echo "$as_me: failed program was:" >&5
20602 cat conftest.$ac_ext >&5
20603
20604 # libXm.a is not in the standard search path.
20605 # Locate it and put its directory in `motif_libraries'
20606 #
20607 # /usr/lib/Motif* are used on HP-UX (Motif).
20608 # /usr/lib/X11* are used on HP-UX (X and Athena).
20609 # /usr/dt is used on Solaris (Motif).
20610 # /usr/lesstif is used on Linux (Lesstif).
20611 # /usr/openwin is used on Solaris (X and Athena).
20612 # Other directories are just guesses.
20613 for dir in "$x_libraries" "${prefix}/lib" /usr/lib /usr/local/lib \
20614            /usr/lib/Motif2.0 /usr/lib/Motif1.2 /usr/lib/Motif1.1 \
20615            /usr/lib/X11R6 /usr/lib/X11R5 /usr/lib/X11R4 /usr/lib/X11 \
20616            /usr/dt/lib /usr/openwin/lib \
20617            /usr/dt/*/lib /opt/*/lib /usr/lib/Motif* \
20618            /usr/lesstif*/lib /usr/lib/Lesstif* \
20619            "${prefix}"/*/lib /usr/*/lib /usr/local/*/lib \
20620            "${prefix}"/lib/* /usr/lib/* /usr/local/lib/*; do
20621 if test -d "$dir" && test "`ls $dir/libXm.* 2> /dev/null`" != ""; then
20622 ac_cv_motif_libraries="$dir"
20623 break
20624 fi
20625 done
20626
20627 fi
20628 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20629 #
20630 LIBS="$ac_motif_save_LIBS"
20631 INCLUDES="$ac_motif_save_INCLUDES"
20632 CPPFLAGS="$ac_motif_save_CPPFLAGS"
20633 LDFLAGS="$ac_motif_save_LDFLAGS"
20634
20635 fi
20636
20637 #
20638 motif_libraries="$ac_cv_motif_libraries"
20639 fi
20640 #
20641 # Provide an easier way to link
20642 #
20643 if test "$motif_includes" = "no" -o "$motif_libraries" = "no"; then
20644         with_motif="no"
20645 else
20646         with_motif="yes"
20647 fi
20648
20649 if test "$with_motif" != "no"; then
20650         if test "$motif_libraries" = ""; then
20651                 link_motif="-lXm -lXt"
20652                 MOTIF_LIBS="-lXm -lXt"
20653         else
20654                 link_motif="-L$motif_libraries -lXm -lXt"
20655                 MOTIF_LIBS="-L$motif_libraries -lXm -lXt"
20656         fi
20657         if test "$motif_includes" != ""; then
20658                 include_motif="-I$motif_includes"
20659                 MOTIF_INCLUDES="-I$motif_includes"
20660         fi
20661         LIBS="$LIBS $MOTIF_LIBS"
20662         INCLUDES="$INCLUDES $MOTIF_INCLUDES"
20663
20664 cat >>confdefs.h <<\EOF
20665 #define HAVE_MOTIF
20666 EOF
20667
20668 else
20669         with_motif="no"
20670 fi
20671 #
20672 #
20673 #
20674 #
20675 motif_libraries_result="$motif_libraries"
20676 motif_includes_result="$motif_includes"
20677 test "$motif_libraries_result" = "" && motif_libraries_result="in default path"
20678 test "$motif_includes_result" = "" && motif_includes_result="in default path"
20679 test "$motif_libraries_result" = "no" && motif_libraries_result="(none)"
20680 test "$motif_includes_result" = "no" && motif_includes_result="(none)"
20681 echo "$as_me:20681: result: libraries $motif_libraries_result, headers $motif_includes_result" >&5
20682 echo "${ECHO_T}libraries $motif_libraries_result, headers $motif_includes_result" >&6
20683
20684 use_motif=no
20685 if test "$motif_libraries" != "no"; then
20686   if test "$motif_includes" != "no"; then
20687     GMXLIB_LIBOBJS="${GMXLIB_LIBOBJS} mgmx.lo widget.lo"
20688     use_motif=yes
20689   else
20690     { echo "$as_me:20690: Both libraries and includes are needed for Motif - disabling." >&5
20691 echo "$as_me: Both libraries and includes are needed for Motif - disabling." >&6;}
20692     motif_includes=no
20693   fi
20694 fi
20695 if test "$no_x" != "yes"; then
20696   LIBS="$X_LIBS $LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
20697   INCLUDES="$INCLUDES $X_CFLAGS $MOTIF_CFLAGS"
20698
20699 if true; then
20700   USE_X11_TRUE=
20701   USE_X11_FALSE='#'
20702 else
20703   USE_X11_TRUE='#'
20704   USE_X11_FALSE=
20705 fi
20706 else
20707
20708 if false; then
20709   USE_X11_TRUE=
20710   USE_X11_FALSE='#'
20711 else
20712   USE_X11_TRUE='#'
20713   USE_X11_FALSE=
20714 fi
20715 fi
20716
20717 ####
20718 # And collect the f77 libs to the linker - on Solaris, f77 stuff must go first,
20719 # and we need -L/usr/ucblib to find libucb... (stupid OS)
20720 # On e.g. ibm the mass libraries must come before -lm...
20721 case "${host_cpu}-${host_os}" in
20722   *-solaris*)
20723     LIBS="$FLIBS $LIBS"
20724     LDFLAGS="$LDFLAGS -L/usr/ucblib"
20725     ;;
20726   *) LIBS="$LIBS $FLIBS" ;;
20727 esac
20728
20729 ########################################################################
20730 # Checks for header files and types
20731 ########################################################################
20732
20733 for ac_header in limits.h malloc.h strings.h unistd.h
20734 do
20735 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
20736 echo "$as_me:20736: checking for $ac_header" >&5
20737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20738 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
20739   echo $ECHO_N "(cached) $ECHO_C" >&6
20740 else
20741   cat >conftest.$ac_ext <<_ACEOF
20742 #line 20742 "configure"
20743 #include "confdefs.h"
20744 #include <$ac_header>
20745 _ACEOF
20746 if { (eval echo "$as_me:20746: \"$ac_cpp conftest.$ac_ext\"") >&5
20747   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20748   ac_status=$?
20749   egrep -v '^ *\+' conftest.er1 >conftest.err
20750   rm -f conftest.er1
20751   cat conftest.err >&5
20752   echo "$as_me:20752: \$? = $ac_status" >&5
20753   (exit $ac_status); } >/dev/null; then
20754   if test -s conftest.err; then
20755     ac_cpp_err=$ac_c_preproc_warn_flag
20756   else
20757     ac_cpp_err=
20758   fi
20759 else
20760   ac_cpp_err=yes
20761 fi
20762 if test -z "$ac_cpp_err"; then
20763   eval "$ac_ac_Header=yes"
20764 else
20765   echo "$as_me: failed program was:" >&5
20766   cat conftest.$ac_ext >&5
20767   eval "$ac_ac_Header=no"
20768 fi
20769 rm -f conftest.err conftest.$ac_ext
20770 fi
20771 echo "$as_me:20771: result: `eval echo '${'$ac_ac_Header'}'`" >&5
20772 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
20773 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
20774   cat >>confdefs.h <<EOF
20775 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
20776 EOF
20777
20778 else
20779   { { echo "$as_me:20779: error: Include headers not found" >&5
20780 echo "$as_me: error: Include headers not found" >&2;}
20781    { (exit 1); exit 1; }; }
20782 fi
20783 done
20784
20785 for ac_header in unistd.h
20786 do
20787 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
20788 echo "$as_me:20788: checking for $ac_header" >&5
20789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20790 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
20791   echo $ECHO_N "(cached) $ECHO_C" >&6
20792 else
20793   cat >conftest.$ac_ext <<_ACEOF
20794 #line 20794 "configure"
20795 #include "confdefs.h"
20796 #include <$ac_header>
20797 _ACEOF
20798 if { (eval echo "$as_me:20798: \"$ac_cpp conftest.$ac_ext\"") >&5
20799   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20800   ac_status=$?
20801   egrep -v '^ *\+' conftest.er1 >conftest.err
20802   rm -f conftest.er1
20803   cat conftest.err >&5
20804   echo "$as_me:20804: \$? = $ac_status" >&5
20805   (exit $ac_status); } >/dev/null; then
20806   if test -s conftest.err; then
20807     ac_cpp_err=$ac_c_preproc_warn_flag
20808   else
20809     ac_cpp_err=
20810   fi
20811 else
20812   ac_cpp_err=yes
20813 fi
20814 if test -z "$ac_cpp_err"; then
20815   eval "$ac_ac_Header=yes"
20816 else
20817   echo "$as_me: failed program was:" >&5
20818   cat conftest.$ac_ext >&5
20819   eval "$ac_ac_Header=no"
20820 fi
20821 rm -f conftest.err conftest.$ac_ext
20822 fi
20823 echo "$as_me:20823: result: `eval echo '${'$ac_ac_Header'}'`" >&5
20824 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
20825 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
20826   cat >>confdefs.h <<EOF
20827 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
20828 EOF
20829
20830 fi
20831 done
20832
20833 #####
20834 # Checks for typedefs, structures, and compiler characteristics.
20835 echo "$as_me:20835: checking for $CC option to accept ANSI C" >&5
20836 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
20837 if test "${ac_cv_prog_cc_stdc+set}" = set; then
20838   echo $ECHO_N "(cached) $ECHO_C" >&6
20839 else
20840   ac_cv_prog_cc_stdc=no
20841 ac_save_CC=$CC
20842 cat >conftest.$ac_ext <<_ACEOF
20843 #line 20843 "configure"
20844 #include "confdefs.h"
20845 #include <stdarg.h>
20846 #include <stdio.h>
20847 #include <sys/types.h>
20848 #include <sys/stat.h>
20849 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20850 struct buf { int x; };
20851 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20852 static char *e (p, i)
20853      char **p;
20854      int i;
20855 {
20856   return p[i];
20857 }
20858 static char *f (char * (*g) (char **, int), char **p, ...)
20859 {
20860   char *s;
20861   va_list v;
20862   va_start (v,p);
20863   s = g (p, va_arg (v,int));
20864   va_end (v);
20865   return s;
20866 }
20867 int test (int i, double x);
20868 struct s1 {int (*f) (int a);};
20869 struct s2 {int (*f) (double a);};
20870 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20871 int argc;
20872 char **argv;
20873 int
20874 main ()
20875 {
20876 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
20877   ;
20878   return 0;
20879 }
20880 _ACEOF
20881 # Don't try gcc -ansi; that turns off useful extensions and
20882 # breaks some systems' header files.
20883 # AIX                   -qlanglvl=ansi
20884 # Ultrix and OSF/1      -std1
20885 # HP-UX 10.20 and later -Ae
20886 # HP-UX older versions  -Aa -D_HPUX_SOURCE
20887 # SVR4                  -Xc -D__EXTENSIONS__
20888 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20889 do
20890   CC="$ac_save_CC $ac_arg"
20891   rm -f conftest.$ac_objext
20892 if { (eval echo "$as_me:20892: \"$ac_compile\"") >&5
20893   (eval $ac_compile) 2>&5
20894   ac_status=$?
20895   echo "$as_me:20895: \$? = $ac_status" >&5
20896   (exit $ac_status); } &&
20897          { ac_try='test -s conftest.$ac_objext'
20898   { (eval echo "$as_me:20898: \"$ac_try\"") >&5
20899   (eval $ac_try) 2>&5
20900   ac_status=$?
20901   echo "$as_me:20901: \$? = $ac_status" >&5
20902   (exit $ac_status); }; }; then
20903   ac_cv_prog_cc_stdc=$ac_arg
20904 break
20905 else
20906   echo "$as_me: failed program was:" >&5
20907 cat conftest.$ac_ext >&5
20908 fi
20909 rm -f conftest.$ac_objext
20910 done
20911 rm -f conftest.$ac_ext conftest.$ac_objext
20912 CC=$ac_save_CC
20913
20914 fi
20915
20916 case "x$ac_cv_prog_cc_stdc" in
20917   x|xno)
20918     echo "$as_me:20918: result: none needed" >&5
20919 echo "${ECHO_T}none needed" >&6 ;;
20920   *)
20921     echo "$as_me:20921: result: $ac_cv_prog_cc_stdc" >&5
20922 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
20923     CC="$CC $ac_cv_prog_cc_stdc" ;;
20924 esac
20925
20926 echo "$as_me:20926: checking for an ANSI C-conforming const" >&5
20927 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20928 if test "${ac_cv_c_const+set}" = set; then
20929   echo $ECHO_N "(cached) $ECHO_C" >&6
20930 else
20931   cat >conftest.$ac_ext <<_ACEOF
20932 #line 20932 "configure"
20933 #include "confdefs.h"
20934
20935 int
20936 main ()
20937 {
20938 /* FIXME: Include the comments suggested by Paul. */
20939 #ifndef __cplusplus
20940   /* Ultrix mips cc rejects this.  */
20941   typedef int charset[2];
20942   const charset x;
20943   /* SunOS 4.1.1 cc rejects this.  */
20944   char const *const *ccp;
20945   char **p;
20946   /* NEC SVR4.0.2 mips cc rejects this.  */
20947   struct point {int x, y;};
20948   static struct point const zero = {0,0};
20949   /* AIX XL C 1.02.0.0 rejects this.
20950      It does not let you subtract one const X* pointer from another in
20951      an arm of an if-expression whose if-part is not a constant
20952      expression */
20953   const char *g = "string";
20954   ccp = &g + (g ? g-g : 0);
20955   /* HPUX 7.0 cc rejects these. */
20956   ++ccp;
20957   p = (char**) ccp;
20958   ccp = (char const *const *) p;
20959   { /* SCO 3.2v4 cc rejects this.  */
20960     char *t;
20961     char const *s = 0 ? (char *) 0 : (char const *) 0;
20962
20963     *t++ = 0;
20964   }
20965   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20966     int x[] = {25, 17};
20967     const int *foo = &x[0];
20968     ++foo;
20969   }
20970   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20971     typedef const int *iptr;
20972     iptr p = 0;
20973     ++p;
20974   }
20975   { /* AIX XL C 1.02.0.0 rejects this saying
20976        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20977     struct s { int j; const int *ap[3]; };
20978     struct s *b; b->j = 5;
20979   }
20980   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20981     const int foo = 10;
20982   }
20983 #endif
20984
20985   ;
20986   return 0;
20987 }
20988 _ACEOF
20989 rm -f conftest.$ac_objext
20990 if { (eval echo "$as_me:20990: \"$ac_compile\"") >&5
20991   (eval $ac_compile) 2>&5
20992   ac_status=$?
20993   echo "$as_me:20993: \$? = $ac_status" >&5
20994   (exit $ac_status); } &&
20995          { ac_try='test -s conftest.$ac_objext'
20996   { (eval echo "$as_me:20996: \"$ac_try\"") >&5
20997   (eval $ac_try) 2>&5
20998   ac_status=$?
20999   echo "$as_me:20999: \$? = $ac_status" >&5
21000   (exit $ac_status); }; }; then
21001   ac_cv_c_const=yes
21002 else
21003   echo "$as_me: failed program was:" >&5
21004 cat conftest.$ac_ext >&5
21005 ac_cv_c_const=no
21006 fi
21007 rm -f conftest.$ac_objext conftest.$ac_ext
21008 fi
21009 echo "$as_me:21009: result: $ac_cv_c_const" >&5
21010 echo "${ECHO_T}$ac_cv_c_const" >&6
21011 if test $ac_cv_c_const = no; then
21012
21013 cat >>confdefs.h <<\EOF
21014 #define const
21015 EOF
21016
21017 fi
21018
21019 echo "$as_me:21019: checking for ANSI C header files" >&5
21020 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
21021 if test "${ac_cv_header_stdc+set}" = set; then
21022   echo $ECHO_N "(cached) $ECHO_C" >&6
21023 else
21024   cat >conftest.$ac_ext <<_ACEOF
21025 #line 21025 "configure"
21026 #include "confdefs.h"
21027 #include <stdlib.h>
21028 #include <stdarg.h>
21029 #include <string.h>
21030 #include <float.h>
21031
21032 _ACEOF
21033 if { (eval echo "$as_me:21033: \"$ac_cpp conftest.$ac_ext\"") >&5
21034   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21035   ac_status=$?
21036   egrep -v '^ *\+' conftest.er1 >conftest.err
21037   rm -f conftest.er1
21038   cat conftest.err >&5
21039   echo "$as_me:21039: \$? = $ac_status" >&5
21040   (exit $ac_status); } >/dev/null; then
21041   if test -s conftest.err; then
21042     ac_cpp_err=$ac_c_preproc_warn_flag
21043   else
21044     ac_cpp_err=
21045   fi
21046 else
21047   ac_cpp_err=yes
21048 fi
21049 if test -z "$ac_cpp_err"; then
21050   ac_cv_header_stdc=yes
21051 else
21052   echo "$as_me: failed program was:" >&5
21053   cat conftest.$ac_ext >&5
21054   ac_cv_header_stdc=no
21055 fi
21056 rm -f conftest.err conftest.$ac_ext
21057
21058 if test $ac_cv_header_stdc = yes; then
21059   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21060   cat >conftest.$ac_ext <<_ACEOF
21061 #line 21061 "configure"
21062 #include "confdefs.h"
21063 #include <string.h>
21064
21065 _ACEOF
21066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21067   egrep "memchr" >/dev/null 2>&1; then
21068   :
21069 else
21070   ac_cv_header_stdc=no
21071 fi
21072 rm -f conftest*
21073
21074 fi
21075
21076 if test $ac_cv_header_stdc = yes; then
21077   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21078   cat >conftest.$ac_ext <<_ACEOF
21079 #line 21079 "configure"
21080 #include "confdefs.h"
21081 #include <stdlib.h>
21082
21083 _ACEOF
21084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21085   egrep "free" >/dev/null 2>&1; then
21086   :
21087 else
21088   ac_cv_header_stdc=no
21089 fi
21090 rm -f conftest*
21091
21092 fi
21093
21094 if test $ac_cv_header_stdc = yes; then
21095   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21096   if test "$cross_compiling" = yes; then
21097   :
21098 else
21099   cat >conftest.$ac_ext <<_ACEOF
21100 #line 21100 "configure"
21101 #include "confdefs.h"
21102 #include <ctype.h>
21103 #if ((' ' & 0x0FF) == 0x020)
21104 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21105 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21106 #else
21107 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
21108                      || ('j' <= (c) && (c) <= 'r') \
21109                      || ('s' <= (c) && (c) <= 'z'))
21110 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21111 #endif
21112
21113 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21114 int
21115 main ()
21116 {
21117   int i;
21118   for (i = 0; i < 256; i++)
21119     if (XOR (islower (i), ISLOWER (i))
21120         || toupper (i) != TOUPPER (i))
21121       exit(2);
21122   exit (0);
21123 }
21124 _ACEOF
21125 rm -f conftest$ac_exeext
21126 if { (eval echo "$as_me:21126: \"$ac_link\"") >&5
21127   (eval $ac_link) 2>&5
21128   ac_status=$?
21129   echo "$as_me:21129: \$? = $ac_status" >&5
21130   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21131   { (eval echo "$as_me:21131: \"$ac_try\"") >&5
21132   (eval $ac_try) 2>&5
21133   ac_status=$?
21134   echo "$as_me:21134: \$? = $ac_status" >&5
21135   (exit $ac_status); }; }; then
21136   :
21137 else
21138   echo "$as_me: program exited with status $ac_status" >&5
21139 echo "$as_me: failed program was:" >&5
21140 cat conftest.$ac_ext >&5
21141 ac_cv_header_stdc=no
21142 fi
21143 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
21144 fi
21145 fi
21146 fi
21147 echo "$as_me:21147: result: $ac_cv_header_stdc" >&5
21148 echo "${ECHO_T}$ac_cv_header_stdc" >&6
21149 if test $ac_cv_header_stdc = yes; then
21150
21151 cat >>confdefs.h <<\EOF
21152 #define STDC_HEADERS 1
21153 EOF
21154
21155 fi
21156
21157 for ac_header in stdlib.h string.h memory.h strings.h inttypes.h unistd.h
21158 do
21159 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
21160 echo "$as_me:21160: checking for $ac_header" >&5
21161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21162 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
21163   echo $ECHO_N "(cached) $ECHO_C" >&6
21164 else
21165   cat >conftest.$ac_ext <<_ACEOF
21166 #line 21166 "configure"
21167 #include "confdefs.h"
21168 #include <$ac_header>
21169 _ACEOF
21170 if { (eval echo "$as_me:21170: \"$ac_cpp conftest.$ac_ext\"") >&5
21171   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21172   ac_status=$?
21173   egrep -v '^ *\+' conftest.er1 >conftest.err
21174   rm -f conftest.er1
21175   cat conftest.err >&5
21176   echo "$as_me:21176: \$? = $ac_status" >&5
21177   (exit $ac_status); } >/dev/null; then
21178   if test -s conftest.err; then
21179     ac_cpp_err=$ac_c_preproc_warn_flag
21180   else
21181     ac_cpp_err=
21182   fi
21183 else
21184   ac_cpp_err=yes
21185 fi
21186 if test -z "$ac_cpp_err"; then
21187   eval "$ac_ac_Header=yes"
21188 else
21189   echo "$as_me: failed program was:" >&5
21190   cat conftest.$ac_ext >&5
21191   eval "$ac_ac_Header=no"
21192 fi
21193 rm -f conftest.err conftest.$ac_ext
21194 fi
21195 echo "$as_me:21195: result: `eval echo '${'$ac_ac_Header'}'`" >&5
21196 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
21197 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
21198   cat >>confdefs.h <<EOF
21199 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
21200 EOF
21201
21202 fi
21203 done
21204
21205 echo "$as_me:21205: checking for size_t" >&5
21206 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21207 if test "${ac_cv_type_size_t+set}" = set; then
21208   echo $ECHO_N "(cached) $ECHO_C" >&6
21209 else
21210   cat >conftest.$ac_ext <<_ACEOF
21211 #line 21211 "configure"
21212 #include "confdefs.h"
21213 $ac_includes_default
21214 int
21215 main ()
21216 {
21217 if ((size_t *) 0)
21218   return 0;
21219 if (sizeof (size_t))
21220   return 0;
21221   ;
21222   return 0;
21223 }
21224 _ACEOF
21225 rm -f conftest.$ac_objext
21226 if { (eval echo "$as_me:21226: \"$ac_compile\"") >&5
21227   (eval $ac_compile) 2>&5
21228   ac_status=$?
21229   echo "$as_me:21229: \$? = $ac_status" >&5
21230   (exit $ac_status); } &&
21231          { ac_try='test -s conftest.$ac_objext'
21232   { (eval echo "$as_me:21232: \"$ac_try\"") >&5
21233   (eval $ac_try) 2>&5
21234   ac_status=$?
21235   echo "$as_me:21235: \$? = $ac_status" >&5
21236   (exit $ac_status); }; }; then
21237   ac_cv_type_size_t=yes
21238 else
21239   echo "$as_me: failed program was:" >&5
21240 cat conftest.$ac_ext >&5
21241 ac_cv_type_size_t=no
21242 fi
21243 rm -f conftest.$ac_objext conftest.$ac_ext
21244 fi
21245 echo "$as_me:21245: result: $ac_cv_type_size_t" >&5
21246 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21247 if test $ac_cv_type_size_t = yes; then
21248   :
21249 else
21250
21251 cat >>confdefs.h <<EOF
21252 #define size_t unsigned
21253 EOF
21254
21255 fi
21256
21257 echo "$as_me:21257: checking whether struct tm is in sys/time.h or time.h" >&5
21258 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
21259 if test "${ac_cv_struct_tm+set}" = set; then
21260   echo $ECHO_N "(cached) $ECHO_C" >&6
21261 else
21262   cat >conftest.$ac_ext <<_ACEOF
21263 #line 21263 "configure"
21264 #include "confdefs.h"
21265 #include <sys/types.h>
21266 #include <time.h>
21267
21268 int
21269 main ()
21270 {
21271 struct tm *tp; tp->tm_sec;
21272   ;
21273   return 0;
21274 }
21275 _ACEOF
21276 rm -f conftest.$ac_objext
21277 if { (eval echo "$as_me:21277: \"$ac_compile\"") >&5
21278   (eval $ac_compile) 2>&5
21279   ac_status=$?
21280   echo "$as_me:21280: \$? = $ac_status" >&5
21281   (exit $ac_status); } &&
21282          { ac_try='test -s conftest.$ac_objext'
21283   { (eval echo "$as_me:21283: \"$ac_try\"") >&5
21284   (eval $ac_try) 2>&5
21285   ac_status=$?
21286   echo "$as_me:21286: \$? = $ac_status" >&5
21287   (exit $ac_status); }; }; then
21288   ac_cv_struct_tm=time.h
21289 else
21290   echo "$as_me: failed program was:" >&5
21291 cat conftest.$ac_ext >&5
21292 ac_cv_struct_tm=sys/time.h
21293 fi
21294 rm -f conftest.$ac_objext conftest.$ac_ext
21295 fi
21296 echo "$as_me:21296: result: $ac_cv_struct_tm" >&5
21297 echo "${ECHO_T}$ac_cv_struct_tm" >&6
21298 if test $ac_cv_struct_tm = sys/time.h; then
21299
21300 cat >>confdefs.h <<\EOF
21301 #define TM_IN_SYS_TIME 1
21302 EOF
21303
21304 fi
21305
21306 echo "$as_me:21306: checking for uid_t in sys/types.h" >&5
21307 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
21308 if test "${ac_cv_type_uid_t+set}" = set; then
21309   echo $ECHO_N "(cached) $ECHO_C" >&6
21310 else
21311   cat >conftest.$ac_ext <<_ACEOF
21312 #line 21312 "configure"
21313 #include "confdefs.h"
21314 #include <sys/types.h>
21315
21316 _ACEOF
21317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21318   egrep "uid_t" >/dev/null 2>&1; then
21319   ac_cv_type_uid_t=yes
21320 else
21321   ac_cv_type_uid_t=no
21322 fi
21323 rm -f conftest*
21324
21325 fi
21326 echo "$as_me:21326: result: $ac_cv_type_uid_t" >&5
21327 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
21328 if test $ac_cv_type_uid_t = no; then
21329
21330 cat >>confdefs.h <<\EOF
21331 #define uid_t int
21332 EOF
21333
21334 cat >>confdefs.h <<\EOF
21335 #define gid_t int
21336 EOF
21337
21338 fi
21339
21340 echo "$as_me:21340: checking for inline" >&5
21341 echo $ECHO_N "checking for inline... $ECHO_C" >&6
21342 if test "${ac_cv_c_inline+set}" = set; then
21343   echo $ECHO_N "(cached) $ECHO_C" >&6
21344 else
21345   ac_cv_c_inline=no
21346 for ac_kw in inline __inline__ __inline; do
21347   cat >conftest.$ac_ext <<_ACEOF
21348 #line 21348 "configure"
21349 #include "confdefs.h"
21350 #ifndef __cplusplus
21351 static $ac_kw int static_foo () {return 0; }
21352 $ac_kw int foo () {return 0; }
21353 #endif
21354
21355 _ACEOF
21356 rm -f conftest.$ac_objext
21357 if { (eval echo "$as_me:21357: \"$ac_compile\"") >&5
21358   (eval $ac_compile) 2>&5
21359   ac_status=$?
21360   echo "$as_me:21360: \$? = $ac_status" >&5
21361   (exit $ac_status); } &&
21362          { ac_try='test -s conftest.$ac_objext'
21363   { (eval echo "$as_me:21363: \"$ac_try\"") >&5
21364   (eval $ac_try) 2>&5
21365   ac_status=$?
21366   echo "$as_me:21366: \$? = $ac_status" >&5
21367   (exit $ac_status); }; }; then
21368   ac_cv_c_inline=$ac_kw; break
21369 else
21370   echo "$as_me: failed program was:" >&5
21371 cat conftest.$ac_ext >&5
21372 fi
21373 rm -f conftest.$ac_objext conftest.$ac_ext
21374 done
21375
21376 fi
21377 echo "$as_me:21377: result: $ac_cv_c_inline" >&5
21378 echo "${ECHO_T}$ac_cv_c_inline" >&6
21379 case $ac_cv_c_inline in
21380   inline | yes) ;;
21381   no)
21382 cat >>confdefs.h <<\EOF
21383 #define inline
21384 EOF
21385  ;;
21386   *)  cat >>confdefs.h <<EOF
21387 #define inline $ac_cv_c_inline
21388 EOF
21389  ;;
21390 esac
21391
21392 ########################################################################
21393 # Process vectorization and prefetch options for inner loops
21394 ########################################################################
21395 # check which loops to vectorize
21396 list_of_vectorized_sqrt=""
21397 if test "$enable_vectorized_sqrt" != "no"; then
21398   if test "$enable_vectorized_sqrt" = "yes" -o "$enable_vectorized_sqrt" = "all" ; then
21399     enable_vectorized_sqrt="normal,solvent,water,water-water"
21400   fi
21401   if echo $enable_vectorized_sqrt | grep "normal" >/dev/null; then
21402     list_of_vectorized_sqrt="normal "
21403
21404 cat >>confdefs.h <<\EOF
21405 #define VECTORIZE_INVSQRT
21406 EOF
21407
21408   fi
21409   if echo $enable_vectorized_sqrt | grep "solvent" >/dev/null; then
21410     list_of_vectorized_sqrt="${list_of_vectorized_sqrt}solvent "
21411
21412 cat >>confdefs.h <<\EOF
21413 #define VECTORIZE_INVSQRT_S
21414 EOF
21415
21416   fi
21417   if echo $enable_vectorized_sqrt | sed 's/water-water//' | grep "water" >/dev/null; then
21418     list_of_vectorized_sqrt="${list_of_vectorized_sqrt}water "
21419
21420 cat >>confdefs.h <<\EOF
21421 #define VECTORIZE_INVSQRT_W
21422 EOF
21423
21424   fi
21425   if echo $enable_vectorized_sqrt | grep "water-water" >/dev/null; then
21426     list_of_vectorized_sqrt="${list_of_vectorized_sqrt}water-water "
21427
21428 cat >>confdefs.h <<\EOF
21429 #define VECTORIZE_INVSQRT_WW
21430 EOF
21431
21432   fi
21433 fi
21434 if test -z "$list_of_vectorized_sqrt"; then
21435   list_of_vectorized_sqrt="no"
21436 fi
21437
21438 # check loops to prefetch coordinates in
21439 list_of_prefetch_x=""
21440 if test "$enable_prefetch_x" != "no"; then
21441   if test "$enable_prefetch_x" = "yes" -o "$enable_prefetch_x" = "all"; then
21442     enable_prefetch_x="normal,solvent,water,water-water"
21443   fi
21444   if echo $enable_prefetch_x | grep "normal" >/dev/null; then
21445     list_of_prefetch_x="normal "
21446
21447 cat >>confdefs.h <<\EOF
21448 #define PREFETCH_X
21449 EOF
21450
21451   fi
21452   if echo $enable_prefetch_x | grep "solvent" >/dev/null; then
21453     list_of_prefetch_x="${list_of_prefetch_x}solvent "
21454
21455 cat >>confdefs.h <<\EOF
21456 #define PREFETCH_X_S
21457 EOF
21458
21459   fi
21460   if echo $enable_prefetch_x | sed 's/water-water//' | grep "water" >/dev/null; then
21461     list_of_prefetch_x="${list_of_prefetch_x}water "
21462
21463 cat >>confdefs.h <<\EOF
21464 #define PREFETCH_X_W
21465 EOF
21466
21467   fi
21468   if echo $enable_prefetch_x | grep "water-water" >/dev/null; then
21469     list_of_prefetch_x="${list_of_prefetch_x}water-water "
21470
21471 cat >>confdefs.h <<\EOF
21472 #define PREFETCH_X_WW
21473 EOF
21474
21475   fi
21476 fi
21477 if test -z "$list_of_prefetch_x"; then
21478   list_of_prefetch_x="no"
21479 fi
21480
21481 # check loops to prefetch forces in
21482 list_of_prefetch_f=""
21483 if test "$enable_prefetch_f" != "no"; then
21484   if test "$enable_prefetch_f" = "yes" -o "$enable_prefetch_f" = "all"; then
21485     enable_prefetch_f="normal,solvent,water,water-water"
21486   fi
21487   if echo $enable_prefetch_f | grep "normal" >/dev/null; then
21488     list_of_prefetch_f="normal "
21489
21490 cat >>confdefs.h <<\EOF
21491 #define PREFETCH_F
21492 EOF
21493
21494   fi
21495   if echo $enable_prefetch_f | grep "solvent" >/dev/null; then
21496     list_of_prefetch_f="${list_of_prefetch_f}solvent "
21497
21498 cat >>confdefs.h <<\EOF
21499 #define PREFETCH_F_S
21500 EOF
21501
21502   fi
21503   if echo $enable_prefetch_f | sed 's/water-water//' | grep "water"; then
21504     list_of_prefetch_f="${list_of_prefetch_f}water "
21505
21506 cat >>confdefs.h <<\EOF
21507 #define PREFETCH_F_W
21508 EOF
21509
21510   fi
21511   if echo $enable_prefetch_f | grep "water-water" >/dev/null; then
21512     list_of_prefetch_f="${list_of_prefetch_f}water-water "
21513
21514 cat >>confdefs.h <<\EOF
21515 #define PREFETCH_F_WW
21516 EOF
21517
21518   fi
21519 fi
21520 if test -z "$list_of_prefetch_f"; then
21521   list_of_prefetch_f="no"
21522 fi
21523
21524 ########################################################################
21525 # Final output stage
21526 ########################################################################
21527 AS="$CC"
21528
21529           # should be automatic, but doesnt seem to be?
21530
21531 # To tell libraries apart, we use four versions of the name. For instance, libgmx:
21532 # libgmx                single prec, no mpi.
21533 # libgmx_d              double prec, no mpi.
21534 # libgmx_mpi            single prec, mpi.
21535 # libgmx_mpi_d          double prec, mpi.
21536 # However, the non-suffixed names are linked to the _mpi and/or _d suffixed
21537 # ones upon installation if that is the only version available.
21538
21539 if test "$enable_mpi" = "yes"; then
21540   LIBSUFFIX="_mpi"
21541 fi
21542 if test "$enable_float" = "no"; then
21543   LIBSUFFIX="${LIBSUFFIX}_d"
21544 fi
21545
21546 # Unless the user has explicitly requested a prefix/suffix/transform, we
21547 # use _d on double precision files. Don't add anything for mpi, but at the
21548 # end we tell the user it is possible and smart to do in some cases!
21549 if test "$program_transform_name" = "s,x,x,"; then
21550   name_transform_provided=no;
21551   if test "$enable_float" = "no"; then
21552     program_transform_name="s,\$\$,_d,"
21553   fi
21554 else
21555   name_transform_provided=yes;
21556 fi
21557
21558 # Set exec-prefix from the architecture and cpu.
21559 if test "$exec_prefix" = "NONE"; then
21560   arch_exec_prefix=yes;
21561   if test -n "$gmxcpu"; then
21562     exec_prefix="\${prefix}/${host}/${gmxcpu}"
21563   else
21564     exec_prefix="\${prefix}/${host}"
21565   fi
21566 fi
21567
21568 ac_config_files="$ac_config_files Makefile include/Makefile include/types/Makefile src/Makefile src/gmxlib/Makefile src/mdlib/Makefile src/kernel/Makefile src/tools/Makefile src/ngmx/Makefile src/contrib/Makefile scripts/Makefile admin/Makefile share/Makefile share/tutor/Makefile share/tutor/gmxdemo/Makefile share/tutor/nmr1/Makefile share/tutor/nmr2/Makefile share/tutor/water/Makefile share/tutor/speptide/Makefile share/template/Makefile share/top/Makefile share/html/Makefile share/html/images/Makefile share/html/online/Makefile man/Makefile man/man1/Makefile"
21569
21570 cat >confcache <<\_ACEOF
21571 # This file is a shell script that caches the results of configure
21572 # tests run on this system so they can be shared between configure
21573 # scripts and configure runs, see configure's option --config-cache.
21574 # It is not useful on other systems.  If it contains results you don't
21575 # want to keep, you may remove or edit it.
21576 #
21577 # config.status only pays attention to the cache file if you give it
21578 # the --recheck option to rerun configure.
21579 #
21580 # `ac_cv_env_foo' variables (set or unset) will be overriden when
21581 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21582 # following values.
21583
21584 _ACEOF
21585
21586 # The following way of writing the cache mishandles newlines in values,
21587 # but we know of no workaround that is simple, portable, and efficient.
21588 # So, don't put newlines in cache variables' values.
21589 # Ultrix sh set writes to stderr and can't be redirected directly,
21590 # and sets the high bit in the cache file unless we assign to the vars.
21591 {
21592   (set) 2>&1 |
21593     case `(ac_space=' '; set | grep ac_space) 2>&1` in
21594     *ac_space=\ *)
21595       # `set' does not quote correctly, so add quotes (double-quote
21596       # substitution turns \\\\ into \\, and sed turns \\ into \).
21597       sed -n \
21598         "s/'/'\\\\''/g;
21599           s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21600       ;;
21601     *)
21602       # `set' quotes correctly as required by POSIX, so do not add quotes.
21603       sed -n \
21604         "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21605       ;;
21606     esac;
21607 } |
21608   sed '
21609      t clear
21610      : clear
21611      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21612      t end
21613      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21614      : end' >>confcache
21615 if cmp -s $cache_file confcache; then :; else
21616   if test -w $cache_file; then
21617     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21618     cat confcache >$cache_file
21619   else
21620     echo "not updating unwritable cache $cache_file"
21621   fi
21622 fi
21623 rm -f confcache
21624
21625 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21626 # Let make expand exec_prefix.
21627 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21628
21629 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21630 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21631 # trailing colons and then remove the whole line if VPATH becomes empty
21632 # (actually we leave an empty line to preserve line numbers).
21633 if test "x$srcdir" = x.; then
21634   ac_vpsub='/^[         ]*VPATH[        ]*=/{
21635 s/:*\$(srcdir):*/:/;
21636 s/:*\${srcdir}:*/:/;
21637 s/:*@srcdir@:*/:/;
21638 s/^\([^=]*=[    ]*\):*/\1/;
21639 s/:*$//;
21640 s/^[^=]*=[      ]*$//;
21641 }'
21642 fi
21643
21644 DEFS=-DHAVE_CONFIG_H
21645
21646 : ${CONFIG_STATUS=./config.status}
21647 ac_clean_files_save=$ac_clean_files
21648 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21649 { echo "$as_me:21649: creating $CONFIG_STATUS" >&5
21650 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21651 cat >$CONFIG_STATUS <<_ACEOF
21652 #! $SHELL
21653 # Generated automatically by configure.
21654 # Run this file to recreate the current configuration.
21655 # Compiler output produced by configure, useful for debugging
21656 # configure, is in config.log if it exists.
21657
21658 debug=false
21659 SHELL=\${CONFIG_SHELL-$SHELL}
21660 ac_cs_invocation="\$0 \$@"
21661
21662 _ACEOF
21663
21664 cat >>$CONFIG_STATUS <<\_ACEOF
21665 # Be Bourne compatible
21666 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21667   emulate sh
21668   NULLCMD=:
21669 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21670   set -o posix
21671 fi
21672
21673 # Name of the executable.
21674 as_me=`echo "$0" |sed 's,.*[\\/],,'`
21675
21676 if expr a : '\(a\)' >/dev/null 2>&1; then
21677   as_expr=expr
21678 else
21679   as_expr=false
21680 fi
21681
21682 rm -f conf$$ conf$$.exe conf$$.file
21683 echo >conf$$.file
21684 if ln -s conf$$.file conf$$ 2>/dev/null; then
21685   # We could just check for DJGPP; but this test a) works b) is more generic
21686   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21687   if test -f conf$$.exe; then
21688     # Don't use ln at all; we don't have any links
21689     as_ln_s='cp -p'
21690   else
21691     as_ln_s='ln -s'
21692   fi
21693 elif ln conf$$.file conf$$ 2>/dev/null; then
21694   as_ln_s=ln
21695 else
21696   as_ln_s='cp -p'
21697 fi
21698 rm -f conf$$ conf$$.exe conf$$.file
21699
21700 as_executable_p="test -f"
21701
21702 # Support unset when possible.
21703 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
21704   as_unset=unset
21705 else
21706   as_unset=false
21707 fi
21708
21709 # NLS nuisances.
21710 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
21711 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
21712 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
21713 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
21714 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
21715 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
21716 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
21717 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
21718
21719 # IFS
21720 # We need space, tab and new line, in precisely that order.
21721 as_nl='
21722 '
21723 IFS="   $as_nl"
21724
21725 # CDPATH.
21726 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
21727
21728 exec 6>&1
21729
21730 _ACEOF
21731
21732 # Files that config.status was made for.
21733 if test -n "$ac_config_files"; then
21734   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21735 fi
21736
21737 if test -n "$ac_config_headers"; then
21738   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21739 fi
21740
21741 if test -n "$ac_config_links"; then
21742   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21743 fi
21744
21745 if test -n "$ac_config_commands"; then
21746   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21747 fi
21748
21749 cat >>$CONFIG_STATUS <<\EOF
21750
21751 ac_cs_usage="\
21752 \`$as_me' instantiates files from templates according to the
21753 current configuration.
21754
21755 Usage: $0 [OPTIONS] [FILE]...
21756
21757   -h, --help       print this help, then exit
21758   -V, --version    print version number, then exit
21759   -d, --debug      don't remove temporary files
21760       --recheck    update $as_me by reconfiguring in the same conditions
21761   --file=FILE[:TEMPLATE]
21762                    instantiate the configuration file FILE
21763   --header=FILE[:TEMPLATE]
21764                    instantiate the configuration header FILE
21765
21766 Configuration files:
21767 $config_files
21768
21769 Configuration headers:
21770 $config_headers
21771
21772 Configuration commands:
21773 $config_commands
21774
21775 Report bugs to <bug-autoconf@gnu.org>."
21776 EOF
21777
21778 cat >>$CONFIG_STATUS <<EOF
21779 ac_cs_version="\\
21780 GROMACS config.status 3.0
21781 configured by $0, generated by GNU Autoconf 2.50,
21782   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21783
21784 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
21785 Free Software Foundation, Inc.
21786 This config.status script is free software; the Free Software Foundation
21787 gives unlimited permission to copy, distribute and modify it."
21788 srcdir=$srcdir
21789 INSTALL="$INSTALL"
21790 EOF
21791
21792 cat >>$CONFIG_STATUS <<\EOF
21793 # If no file are specified by the user, then we need to provide default
21794 # value.  By we need to know if files were specified by the user.
21795 ac_need_defaults=:
21796 while test $# != 0
21797 do
21798   case $1 in
21799   --*=*)
21800     ac_option=`expr "x$1" : 'x\([^=]*\)='`
21801     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21802     shift
21803     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
21804     shift
21805     ;;
21806   -*);;
21807   *) # This is not an option, so the user has probably given explicit
21808      # arguments.
21809      ac_need_defaults=false;;
21810   esac
21811
21812   case $1 in
21813   # Handling of the options.
21814 EOF
21815 cat >>$CONFIG_STATUS <<EOF
21816   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21817     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
21818     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
21819 EOF
21820 cat >>$CONFIG_STATUS <<\EOF
21821   --version | --vers* | -V )
21822     echo "$ac_cs_version"; exit 0 ;;
21823   --he | --h)
21824     # Conflict between --help and --header
21825     { { echo "$as_me:21825: error: ambiguous option: $1
21826 Try \`$0 --help' for more information." >&5
21827 echo "$as_me: error: ambiguous option: $1
21828 Try \`$0 --help' for more information." >&2;}
21829    { (exit 1); exit 1; }; };;
21830   --help | --hel | -h )
21831     echo "$ac_cs_usage"; exit 0 ;;
21832   --debug | --d* | -d )
21833     debug=: ;;
21834   --file | --fil | --fi | --f )
21835     shift
21836     CONFIG_FILES="$CONFIG_FILES $1"
21837     ac_need_defaults=false;;
21838   --header | --heade | --head | --hea )
21839     shift
21840     CONFIG_HEADERS="$CONFIG_HEADERS $1"
21841     ac_need_defaults=false;;
21842
21843   # Handling of arguments.
21844   'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21845   'include/Makefile' ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21846   'include/types/Makefile' ) CONFIG_FILES="$CONFIG_FILES include/types/Makefile" ;;
21847   'src/Makefile' ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21848   'src/gmxlib/Makefile' ) CONFIG_FILES="$CONFIG_FILES src/gmxlib/Makefile" ;;
21849   'src/mdlib/Makefile' ) CONFIG_FILES="$CONFIG_FILES src/mdlib/Makefile" ;;
21850   'src/kernel/Makefile' ) CONFIG_FILES="$CONFIG_FILES src/kernel/Makefile" ;;
21851   'src/tools/Makefile' ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
21852   'src/ngmx/Makefile' ) CONFIG_FILES="$CONFIG_FILES src/ngmx/Makefile" ;;
21853   'src/contrib/Makefile' ) CONFIG_FILES="$CONFIG_FILES src/contrib/Makefile" ;;
21854   'scripts/Makefile' ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
21855   'admin/Makefile' ) CONFIG_FILES="$CONFIG_FILES admin/Makefile" ;;
21856   'share/Makefile' ) CONFIG_FILES="$CONFIG_FILES share/Makefile" ;;
21857   'share/tutor/Makefile' ) CONFIG_FILES="$CONFIG_FILES share/tutor/Makefile" ;;
21858   'share/tutor/gmxdemo/Makefile' ) CONFIG_FILES="$CONFIG_FILES share/tutor/gmxdemo/Makefile" ;;
21859   'share/tutor/nmr1/Makefile' ) CONFIG_FILES="$CONFIG_FILES share/tutor/nmr1/Makefile" ;;
21860   'share/tutor/nmr2/Makefile' ) CONFIG_FILES="$CONFIG_FILES share/tutor/nmr2/Makefile" ;;
21861   'share/tutor/water/Makefile' ) CONFIG_FILES="$CONFIG_FILES share/tutor/water/Makefile" ;;
21862   'share/tutor/speptide/Makefile' ) CONFIG_FILES="$CONFIG_FILES share/tutor/speptide/Makefile" ;;
21863   'share/template/Makefile' ) CONFIG_FILES="$CONFIG_FILES share/template/Makefile" ;;
21864   'share/top/Makefile' ) CONFIG_FILES="$CONFIG_FILES share/top/Makefile" ;;
21865   'share/html/Makefile' ) CONFIG_FILES="$CONFIG_FILES share/html/Makefile" ;;
21866   'share/html/images/Makefile' ) CONFIG_FILES="$CONFIG_FILES share/html/images/Makefile" ;;
21867   'share/html/online/Makefile' ) CONFIG_FILES="$CONFIG_FILES share/html/online/Makefile" ;;
21868   'man/Makefile' ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21869   'man/man1/Makefile' ) CONFIG_FILES="$CONFIG_FILES man/man1/Makefile" ;;
21870   'default-1' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
21871   'default-2' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
21872   'src/config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
21873
21874   # This is an error.
21875   -*) { { echo "$as_me:21875: error: unrecognized option: $1
21876 Try \`$0 --help' for more information." >&5
21877 echo "$as_me: error: unrecognized option: $1
21878 Try \`$0 --help' for more information." >&2;}
21879    { (exit 1); exit 1; }; } ;;
21880   *) { { echo "$as_me:21880: error: invalid argument: $1" >&5
21881 echo "$as_me: error: invalid argument: $1" >&2;}
21882    { (exit 1); exit 1; }; };;
21883   esac
21884   shift
21885 done
21886
21887 exec 5>>config.log
21888 cat >&5 << _ACEOF
21889
21890 ## ----------------------- ##
21891 ## Running config.status.  ##
21892 ## ----------------------- ##
21893
21894 This file was extended by $as_me (GROMACS 3.0) 2.50, executed with
21895   > $ac_cs_invocation
21896 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21897
21898 _ACEOF
21899 EOF
21900
21901 cat >>$CONFIG_STATUS <<\EOF
21902 # If the user did not use the arguments to specify the items to instantiate,
21903 # then the envvar interface is used.  Set only those that are not.
21904 # We use the long form for the default assignment because of an extremely
21905 # bizarre bug on SunOS 4.1.3.
21906 if $ac_need_defaults; then
21907   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21908   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21909   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21910 fi
21911
21912 # Create a temporary directory, and hook for its removal unless debugging.
21913 $debug ||
21914 {
21915   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21916   trap '{ (exit $?); exit $?; }' 1 2 13 15
21917 }
21918
21919 # Create a (secure) tmp directory for tmp files.
21920 : ${TMPDIR=/tmp}
21921 {
21922   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
21923   test -n "$tmp" && test -d "$tmp"
21924 }  ||
21925 {
21926   tmp=$TMPDIR/cs$$-$RANDOM
21927   (umask 077 && mkdir $tmp)
21928 } ||
21929 {
21930    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
21931    { (exit 1); exit 1; }
21932 }
21933
21934 EOF
21935
21936 cat >>$CONFIG_STATUS <<EOF
21937 #
21938 # INIT-COMMANDS section.
21939 #
21940
21941 am_indx=1
21942   for am_file in src/config.h; do
21943     case " $CONFIG_HEADERS " in
21944     *" $am_file "*)
21945       echo timestamp > `echo $am_file | sed 's%:.*%%;s%[^/]*$%%'`stamp-h$am_indx
21946       ;;
21947     esac
21948     am_indx=\`expr \$am_indx + 1\`
21949   done
21950 AMDEP_TRUE="$AMDEP_TRUE"
21951 ac_aux_dir="$ac_aux_dir"
21952
21953 EOF
21954
21955 cat >>$CONFIG_STATUS <<EOF
21956
21957 #
21958 # CONFIG_FILES section.
21959 #
21960
21961 # No need to generate the scripts if there are no CONFIG_FILES.
21962 # This happens for instance when ./config.status config.h
21963 if test -n "\$CONFIG_FILES"; then
21964   # Protect against being on the right side of a sed subst in config.status.
21965   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21966    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21967 s,@SHELL@,$SHELL,;t t
21968 s,@exec_prefix@,$exec_prefix,;t t
21969 s,@prefix@,$prefix,;t t
21970 s,@program_transform_name@,$program_transform_name,;t t
21971 s,@bindir@,$bindir,;t t
21972 s,@sbindir@,$sbindir,;t t
21973 s,@libexecdir@,$libexecdir,;t t
21974 s,@datadir@,$datadir,;t t
21975 s,@sysconfdir@,$sysconfdir,;t t
21976 s,@sharedstatedir@,$sharedstatedir,;t t
21977 s,@localstatedir@,$localstatedir,;t t
21978 s,@libdir@,$libdir,;t t
21979 s,@includedir@,$includedir,;t t
21980 s,@oldincludedir@,$oldincludedir,;t t
21981 s,@infodir@,$infodir,;t t
21982 s,@mandir@,$mandir,;t t
21983 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21984 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21985 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21986 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21987 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21988 s,@ECHO_C@,$ECHO_C,;t t
21989 s,@ECHO_N@,$ECHO_N,;t t
21990 s,@ECHO_T@,$ECHO_T,;t t
21991 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21992 s,@DEFS@,$DEFS,;t t
21993 s,@LIBS@,$LIBS,;t t
21994 s,@build@,$build,;t t
21995 s,@build_cpu@,$build_cpu,;t t
21996 s,@build_vendor@,$build_vendor,;t t
21997 s,@build_os@,$build_os,;t t
21998 s,@host@,$host,;t t
21999 s,@host_cpu@,$host_cpu,;t t
22000 s,@host_vendor@,$host_vendor,;t t
22001 s,@host_os@,$host_os,;t t
22002 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22003 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22004 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22005 s,@PACKAGE@,$PACKAGE,;t t
22006 s,@VERSION@,$VERSION,;t t
22007 s,@ACLOCAL@,$ACLOCAL,;t t
22008 s,@AUTOCONF@,$AUTOCONF,;t t
22009 s,@AUTOMAKE@,$AUTOMAKE,;t t
22010 s,@AUTOHEADER@,$AUTOHEADER,;t t
22011 s,@MAKEINFO@,$MAKEINFO,;t t
22012 s,@AMTAR@,$AMTAR,;t t
22013 s,@install_sh@,$install_sh,;t t
22014 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22015 s,@AWK@,$AWK,;t t
22016 s,@SET_MAKE@,$SET_MAKE,;t t
22017 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22018 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22019 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22020 s,@DEPDIR@,$DEPDIR,;t t
22021 s,@SHARED_VERSION_INFO@,$SHARED_VERSION_INFO,;t t
22022 s,@DOUBLE_TRUE@,$DOUBLE_TRUE,;t t
22023 s,@DOUBLE_FALSE@,$DOUBLE_FALSE,;t t
22024 s,@CC@,$CC,;t t
22025 s,@CFLAGS@,$CFLAGS,;t t
22026 s,@LDFLAGS@,$LDFLAGS,;t t
22027 s,@CPPFLAGS@,$CPPFLAGS,;t t
22028 s,@ac_ct_CC@,$ac_ct_CC,;t t
22029 s,@EXEEXT@,$EXEEXT,;t t
22030 s,@OBJEXT@,$OBJEXT,;t t
22031 s,@_am_include@,$_am_include,;t t
22032 s,@_am_quote@,$_am_quote,;t t
22033 s,@CCDEPMODE@,$CCDEPMODE,;t t
22034 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
22035 s,@F77@,$F77,;t t
22036 s,@FFLAGS@,$FFLAGS,;t t
22037 s,@ac_ct_F77@,$ac_ct_F77,;t t
22038 s,@CXX@,$CXX,;t t
22039 s,@CXXFLAGS@,$CXXFLAGS,;t t
22040 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22041 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22042 s,@CXXCPP@,$CXXCPP,;t t
22043 s,@MPICC@,$MPICC,;t t
22044 s,@FLIBS@,$FLIBS,;t t
22045 s,@CPP@,$CPP,;t t
22046 s,@GNU_CC_TRUE@,$GNU_CC_TRUE,;t t
22047 s,@GNU_CC_FALSE@,$GNU_CC_FALSE,;t t
22048 s,@AXP_ASM_CAPITAL_S_TRUE@,$AXP_ASM_CAPITAL_S_TRUE,;t t
22049 s,@AXP_ASM_CAPITAL_S_FALSE@,$AXP_ASM_CAPITAL_S_FALSE,;t t
22050 s,@IDENT@,$IDENT,;t t
22051 s,@LN_S@,$LN_S,;t t
22052 s,@ECHO@,$ECHO,;t t
22053 s,@RANLIB@,$RANLIB,;t t
22054 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22055 s,@STRIP@,$STRIP,;t t
22056 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22057 s,@LIBTOOL@,$LIBTOOL,;t t
22058 s,@LIBOBJS@,$LIBOBJS,;t t
22059 s,@X_CFLAGS@,$X_CFLAGS,;t t
22060 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
22061 s,@X_LIBS@,$X_LIBS,;t t
22062 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
22063 s,@USE_X11_TRUE@,$USE_X11_TRUE,;t t
22064 s,@USE_X11_FALSE@,$USE_X11_FALSE,;t t
22065 s,@ASFLAGS@,$ASFLAGS,;t t
22066 s,@AS@,$AS,;t t
22067 s,@INCLUDES@,$INCLUDES,;t t
22068 s,@GMXLIB_LIBOBJS@,$GMXLIB_LIBOBJS,;t t
22069 s,@MDLIB_LIBOBJS@,$MDLIB_LIBOBJS,;t t
22070 s,@LIBSUFFIX@,$LIBSUFFIX,;t t
22071 CEOF
22072
22073 EOF
22074
22075   cat >>$CONFIG_STATUS <<\EOF
22076   # Split the substitutions into bite-sized pieces for seds with
22077   # small command number limits, like on Digital OSF/1 and HP-UX.
22078   ac_max_sed_lines=48
22079   ac_sed_frag=1 # Number of current file.
22080   ac_beg=1 # First line for current file.
22081   ac_end=$ac_max_sed_lines # Line after last line for current file.
22082   ac_more_lines=:
22083   ac_sed_cmds=
22084   while $ac_more_lines; do
22085     if test $ac_beg -gt 1; then
22086       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22087     else
22088       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22089     fi
22090     if test ! -s $tmp/subs.frag; then
22091       ac_more_lines=false
22092     else
22093       # The purpose of the label and of the branching condition is to
22094       # speed up the sed processing (if there are no `@' at all, there
22095       # is no need to browse any of the substitutions).
22096       # These are the two extra sed commands mentioned above.
22097       (echo ':t
22098   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22099       if test -z "$ac_sed_cmds"; then
22100         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22101       else
22102         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22103       fi
22104       ac_sed_frag=`expr $ac_sed_frag + 1`
22105       ac_beg=$ac_end
22106       ac_end=`expr $ac_end + $ac_max_sed_lines`
22107     fi
22108   done
22109   if test -z "$ac_sed_cmds"; then
22110     ac_sed_cmds=cat
22111   fi
22112 fi # test -n "$CONFIG_FILES"
22113
22114 EOF
22115 cat >>$CONFIG_STATUS <<\EOF
22116 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22117   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22118   case $ac_file in
22119   - | *:- | *:-:* ) # input from stdin
22120         cat >$tmp/stdin
22121         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22122         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22123   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22124         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22125   * )   ac_file_in=$ac_file.in ;;
22126   esac
22127
22128   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22129   ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22130          X"$ac_file" : 'X\(//\)[^/]' \| \
22131          X"$ac_file" : 'X\(//\)$' \| \
22132          X"$ac_file" : 'X\(/\)' \| \
22133          .     : '\(.\)' 2>/dev/null ||
22134 echo X"$ac_file" |
22135     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22136           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22137           /^X\(\/\/\)$/{ s//\1/; q; }
22138           /^X\(\/\).*/{ s//\1/; q; }
22139           s/.*/./; q'`
22140   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22141     { case "$ac_dir" in
22142   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
22143   *)                      as_incr_dir=.;;
22144 esac
22145 as_dummy="$ac_dir"
22146 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
22147   case $as_mkdir_dir in
22148     # Skip DOS drivespec
22149     ?:) as_incr_dir=$as_mkdir_dir ;;
22150     *)
22151       as_incr_dir=$as_incr_dir/$as_mkdir_dir
22152       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
22153     ;;
22154   esac
22155 done; }
22156
22157     ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
22158     # A "../" for each directory in $ac_dir_suffix.
22159     ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
22160   else
22161     ac_dir_suffix= ac_dots=
22162   fi
22163
22164   case $srcdir in
22165   .)  ac_srcdir=.
22166       if test -z "$ac_dots"; then
22167          ac_top_srcdir=.
22168       else
22169          ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
22170       fi ;;
22171   [\\/]* | ?:[\\/]* )
22172       ac_srcdir=$srcdir$ac_dir_suffix;
22173       ac_top_srcdir=$srcdir ;;
22174   *) # Relative path.
22175     ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
22176     ac_top_srcdir=$ac_dots$srcdir ;;
22177   esac
22178
22179   case $INSTALL in
22180   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22181   *) ac_INSTALL=$ac_dots$INSTALL ;;
22182   esac
22183
22184   if test x"$ac_file" != x-; then
22185     { echo "$as_me:22185: creating $ac_file" >&5
22186 echo "$as_me: creating $ac_file" >&6;}
22187     rm -f "$ac_file"
22188   fi
22189   # Let's still pretend it is `configure' which instantiates (i.e., don't
22190   # use $as_me), people would be surprised to read:
22191   #    /* config.h.  Generated automatically by config.status.  */
22192   configure_input="Generated automatically from `echo $ac_file_in |
22193                                                  sed 's,.*/,,'` by configure."
22194
22195   # First look for the input files in the build tree, otherwise in the
22196   # src tree.
22197   ac_file_inputs=`IFS=:
22198     for f in $ac_file_in; do
22199       case $f in
22200       -) echo $tmp/stdin ;;
22201       [\\/$]*)
22202          # Absolute (can't be DOS-style, as IFS=:)
22203          test -f "$f" || { { echo "$as_me:22203: error: cannot find input file: $f" >&5
22204 echo "$as_me: error: cannot find input file: $f" >&2;}
22205    { (exit 1); exit 1; }; }
22206          echo $f;;
22207       *) # Relative
22208          if test -f "$f"; then
22209            # Build tree
22210            echo $f
22211          elif test -f "$srcdir/$f"; then
22212            # Source tree
22213            echo $srcdir/$f
22214          else
22215            # /dev/null tree
22216            { { echo "$as_me:22216: error: cannot find input file: $f" >&5
22217 echo "$as_me: error: cannot find input file: $f" >&2;}
22218    { (exit 1); exit 1; }; }
22219          fi;;
22220       esac
22221     done` || { (exit 1); exit 1; }
22222 EOF
22223 cat >>$CONFIG_STATUS <<EOF
22224   sed "$ac_vpsub
22225 $extrasub
22226 EOF
22227 cat >>$CONFIG_STATUS <<\EOF
22228 :t
22229 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22230 s,@configure_input@,$configure_input,;t t
22231 s,@srcdir@,$ac_srcdir,;t t
22232 s,@top_srcdir@,$ac_top_srcdir,;t t
22233 s,@INSTALL@,$ac_INSTALL,;t t
22234 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22235   rm -f $tmp/stdin
22236   if test x"$ac_file" != x-; then
22237     mv $tmp/out $ac_file
22238   else
22239     cat $tmp/out
22240     rm -f $tmp/out
22241   fi
22242
22243 done
22244 EOF
22245 cat >>$CONFIG_STATUS <<\EOF
22246
22247 #
22248 # CONFIG_HEADER section.
22249 #
22250
22251 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22252 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22253 #
22254 # ac_d sets the value in "#define NAME VALUE" lines.
22255 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
22256 ac_dB='[        ].*$,\1#\2'
22257 ac_dC=' '
22258 ac_dD=',;t'
22259 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22260 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22261 ac_uB='$,\1#\2define\3'
22262 ac_uC=' '
22263 ac_uD=',;t'
22264
22265 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22266   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22267   case $ac_file in
22268   - | *:- | *:-:* ) # input from stdin
22269         cat >$tmp/stdin
22270         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22271         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22272   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22273         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22274   * )   ac_file_in=$ac_file.in ;;
22275   esac
22276
22277   test x"$ac_file" != x- && { echo "$as_me:22277: creating $ac_file" >&5
22278 echo "$as_me: creating $ac_file" >&6;}
22279
22280   # First look for the input files in the build tree, otherwise in the
22281   # src tree.
22282   ac_file_inputs=`IFS=:
22283     for f in $ac_file_in; do
22284       case $f in
22285       -) echo $tmp/stdin ;;
22286       [\\/$]*)
22287          # Absolute (can't be DOS-style, as IFS=:)
22288          test -f "$f" || { { echo "$as_me:22288: error: cannot find input file: $f" >&5
22289 echo "$as_me: error: cannot find input file: $f" >&2;}
22290    { (exit 1); exit 1; }; }
22291          echo $f;;
22292       *) # Relative
22293          if test -f "$f"; then
22294            # Build tree
22295            echo $f
22296          elif test -f "$srcdir/$f"; then
22297            # Source tree
22298            echo $srcdir/$f
22299          else
22300            # /dev/null tree
22301            { { echo "$as_me:22301: error: cannot find input file: $f" >&5
22302 echo "$as_me: error: cannot find input file: $f" >&2;}
22303    { (exit 1); exit 1; }; }
22304          fi;;
22305       esac
22306     done` || { (exit 1); exit 1; }
22307   # Remove the trailing spaces.
22308   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
22309
22310 EOF
22311
22312 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22313 # `conftest.undefs', that substitutes the proper values into
22314 # config.h.in to produce config.h.  The first handles `#define'
22315 # templates, and the second `#undef' templates.
22316 # And first: Protect against being on the right side of a sed subst in
22317 # config.status.  Protect against being in an unquoted here document
22318 # in config.status.
22319 rm -f conftest.defines conftest.undefs
22320 # Using a here document instead of a string reduces the quoting nightmare.
22321 # Putting comments in sed scripts is not portable.
22322 #
22323 # `end' is used to avoid that the second main sed command (meant for
22324 # 0-ary CPP macros) applies to n-ary macro definitions.
22325 # See the Autoconf documentation for `clear'.
22326 cat >confdef2sed.sed <<\EOF
22327 s/[\\&,]/\\&/g
22328 s,[\\$`],\\&,g
22329 t clear
22330 : clear
22331 s,^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
22332 t end
22333 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22334 : end
22335 EOF
22336 # If some macros were called several times there might be several times
22337 # the same #defines, which is useless.  Nevertheless, we may not want to
22338 # sort them, since we want the *last* AC-DEFINE to be honored.
22339 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22340 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22341 rm -f confdef2sed.sed
22342
22343 # This sed command replaces #undef with comments.  This is necessary, for
22344 # example, in the case of _POSIX_SOURCE, which is predefined and required
22345 # on some systems where configure will not decide to define it.
22346 cat >>conftest.undefs <<\EOF
22347 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22348 EOF
22349
22350 # Break up conftest.defines because some shells have a limit on the size
22351 # of here documents, and old seds have small limits too (100 cmds).
22352 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22353 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22354 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22355 echo '  :' >>$CONFIG_STATUS
22356 rm -f conftest.tail
22357 while grep . conftest.defines >/dev/null
22358 do
22359   # Write a limited-size here document to $tmp/defines.sed.
22360   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22361   # Speed up: don't consider the non `#define' lines.
22362   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
22363   # Work around the forget-to-reset-the-flag bug.
22364   echo 't clr' >>$CONFIG_STATUS
22365   echo ': clr' >>$CONFIG_STATUS
22366   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22367   echo 'CEOF
22368   sed -f $tmp/defines.sed $tmp/in >$tmp/out
22369   rm -f $tmp/in
22370   mv $tmp/out $tmp/in
22371 ' >>$CONFIG_STATUS
22372   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22373   rm -f conftest.defines
22374   mv conftest.tail conftest.defines
22375 done
22376 rm -f conftest.defines
22377 echo '  fi # egrep' >>$CONFIG_STATUS
22378 echo >>$CONFIG_STATUS
22379
22380 # Break up conftest.undefs because some shells have a limit on the size
22381 # of here documents, and old seds have small limits too (100 cmds).
22382 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
22383 rm -f conftest.tail
22384 while grep . conftest.undefs >/dev/null
22385 do
22386   # Write a limited-size here document to $tmp/undefs.sed.
22387   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22388   # Speed up: don't consider the non `#undef'
22389   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
22390   # Work around the forget-to-reset-the-flag bug.
22391   echo 't clr' >>$CONFIG_STATUS
22392   echo ': clr' >>$CONFIG_STATUS
22393   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22394   echo 'CEOF
22395   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22396   rm -f $tmp/in
22397   mv $tmp/out $tmp/in
22398 ' >>$CONFIG_STATUS
22399   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22400   rm -f conftest.undefs
22401   mv conftest.tail conftest.undefs
22402 done
22403 rm -f conftest.undefs
22404
22405 cat >>$CONFIG_STATUS <<\EOF
22406   # Let's still pretend it is `configure' which instantiates (i.e., don't
22407   # use $as_me), people would be surprised to read:
22408   #    /* config.h.  Generated automatically by config.status.  */
22409   if test x"$ac_file" = x-; then
22410     echo "/* Generated automatically by configure.  */" >$tmp/config.h
22411   else
22412     echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
22413   fi
22414   cat $tmp/in >>$tmp/config.h
22415   rm -f $tmp/in
22416   if test x"$ac_file" != x-; then
22417     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
22418       { echo "$as_me:22418: $ac_file is unchanged" >&5
22419 echo "$as_me: $ac_file is unchanged" >&6;}
22420     else
22421       ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22422          X"$ac_file" : 'X\(//\)[^/]' \| \
22423          X"$ac_file" : 'X\(//\)$' \| \
22424          X"$ac_file" : 'X\(/\)' \| \
22425          .     : '\(.\)' 2>/dev/null ||
22426 echo X"$ac_file" |
22427     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22428           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22429           /^X\(\/\/\)$/{ s//\1/; q; }
22430           /^X\(\/\).*/{ s//\1/; q; }
22431           s/.*/./; q'`
22432       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22433         { case "$ac_dir" in
22434   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
22435   *)                      as_incr_dir=.;;
22436 esac
22437 as_dummy="$ac_dir"
22438 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
22439   case $as_mkdir_dir in
22440     # Skip DOS drivespec
22441     ?:) as_incr_dir=$as_mkdir_dir ;;
22442     *)
22443       as_incr_dir=$as_incr_dir/$as_mkdir_dir
22444       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
22445     ;;
22446   esac
22447 done; }
22448
22449       fi
22450       rm -f $ac_file
22451       mv $tmp/config.h $ac_file
22452     fi
22453   else
22454     cat $tmp/config.h
22455     rm -f $tmp/config.h
22456   fi
22457 done
22458 EOF
22459 cat >>$CONFIG_STATUS <<\EOF
22460
22461 #
22462 # CONFIG_COMMANDS section.
22463 #
22464 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22465   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22466   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22467
22468   case $ac_dest in
22469     default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp >      src/stamp-h ;;
22470     default-2 )
22471 test x"$AMDEP_TRUE" != x"" ||
22472 for mf in $CONFIG_FILES; do
22473   case "$mf" in
22474   Makefile) dirpart=.;;
22475   */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
22476   *) continue;;
22477   esac
22478   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
22479   # Extract the definition of DEP_FILES from the Makefile without
22480   # running `make'.
22481   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
22482   test -z "$DEPDIR" && continue
22483   # When using ansi2knr, U may be empty or an underscore; expand it
22484   U=`sed -n -e '/^U = / s///p' < "$mf"`
22485   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
22486   # We invoke sed twice because it is the simplest approach to
22487   # changing $(DEPDIR) to its actual value in the expansion.
22488   for file in `sed -n -e '
22489     /^DEP_FILES = .*\\\\$/ {
22490       s/^DEP_FILES = //
22491       :loop
22492         s/\\\\$//
22493         p
22494         n
22495         /\\\\$/ b loop
22496       p
22497     }
22498     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
22499        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22500     # Make sure the directory exists.
22501     test -f "$dirpart/$file" && continue
22502     fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
22503     $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
22504     # echo "creating $dirpart/$file"
22505     echo '# dummy' > "$dirpart/$file"
22506   done
22507 done
22508  ;;
22509   esac
22510 done
22511 EOF
22512
22513 cat >>$CONFIG_STATUS <<\EOF
22514
22515 { (exit 0); exit 0; }
22516 EOF
22517 chmod +x $CONFIG_STATUS
22518 ac_clean_files=$ac_clean_files_save
22519
22520 # configure is writing to config.log, and then calls config.status.
22521 # config.status does its own redirection, appending to config.log.
22522 # Unfortunately, on DOS this fails, as config.log is still kept open
22523 # by configure, so config.status won't be able to write to it; its
22524 # output is simply discarded.  So we exec the FD to /dev/null,
22525 # effectively closing config.log, so it can be properly (re)opened and
22526 # appended to by config.status.  When coming back to configure, we
22527 # need to make the FD available again.
22528 if test "$no_create" != yes; then
22529   ac_cs_success=:
22530   exec 5>/dev/null
22531   $SHELL $CONFIG_STATUS || ac_cs_success=false
22532   exec 5>>config.log
22533   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22534   # would make configure fail if this is the last instruction.
22535   $ac_cs_success || { (exit 1); exit 1; }
22536 fi
22537
22538 #########################################################
22539 # Echo some important info, to avoid stupid mistakes
22540 #
22541
22542 echo ""
22543 echo "GROMACS is ready to compile."
22544
22545 eval "show_path=`echo ${exec_prefix} | sed -e s,NONE,${ac_default_prefix},`"
22546 echo ""
22547 echo "* Binaries and libraries for this host will be installed under"
22548 echo "  ${show_path}"
22549 echo "  (You can set it with the --prefix and --exec-prefix options.)"
22550
22551 if test "$enable_float" = "no" -a "$name_transform_provided" = "no"; then
22552   echo ""
22553   echo "* You are compiling a double precision version of the package -"
22554   echo "  program names will be suffixed with _d to avoid overwriting single"
22555   echo "  precision files. You can override it with --program-suffix"
22556 fi
22557
22558 if test "$name_transform_provided" = "no" -a "$enable_mpi" = "yes"; then
22559   echo ""
22560   echo "* Seems you are compiling with MPI support. You can install the MPI-"
22561   echo "  enabled programs with suffixed names to have both MPI and non-MPI"
22562   echo "  versions. This is useful e.g. on supercomputers where you usually"
22563   echo "  cannot run MPI-linked programs on the login node."
22564   echo "  Set a suffix with e.g. --program-suffix=_mpi (or _mpi_d for double)."
22565   echo "  You only need MPI for mdrun, so if you already have non-MPI stuff"
22566   echo "  installed you can issue make mdrun; make install-mdrun."
22567 fi
22568
22569 if test "$enable_shared" = "yes"; then
22570   echo ""
22571   echo "* To save space, we use shared libraries. If this causes any problems,"
22572   echo "  you can turn it off with --disable-shared."
22573 fi
22574 echo ""
22575