Generated from configure.in
[swftools.git] / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --enable-checkmem       turn on ccmalloc debugging"
16 ac_help="$ac_help
17   --enable-debug          turn on debugging"
18 ac_help="$ac_help
19   --enable-shared[=PKGS]  build shared libraries [default=yes]"
20 ac_help="$ac_help
21   --enable-static[=PKGS]  build static libraries [default=yes]"
22 ac_help="$ac_help
23   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
24 ac_help="$ac_help
25   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
26
27 # Find the correct PATH separator.  Usually this is `:', but
28 # DJGPP uses `;' like DOS.
29 if test "X${PATH_SEPARATOR+set}" != Xset; then
30   UNAME=${UNAME-`uname 2>/dev/null`}
31   case X$UNAME in
32     *-DOS) lt_cv_sys_path_separator=';' ;;
33     *)     lt_cv_sys_path_separator=':' ;;
34   esac
35   PATH_SEPARATOR=$lt_cv_sys_path_separator
36 fi
37
38
39 # Check that we are running under the correct shell.
40 SHELL=${CONFIG_SHELL-/bin/sh}
41
42 case X$ECHO in
43 X*--fallback-echo)
44   # Remove one level of quotation (which was required for Make).
45   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
46   ;;
47 esac
48
49 echo=${ECHO-echo}
50 if test "X$1" = X--no-reexec; then
51   # Discard the --no-reexec flag, and continue.
52   shift
53 elif test "X$1" = X--fallback-echo; then
54   # Avoid inline document here, it may be left over
55   :
56 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
57   # Yippee, $echo works!
58   :
59 else
60   # Restart under the correct shell.
61   exec $SHELL "$0" --no-reexec ${1+"$@"}
62 fi
63
64 if test "X$1" = X--fallback-echo; then
65   # used as fallback echo
66   shift
67   cat <<EOF
68
69 EOF
70   exit 0
71 fi
72
73 # The HP-UX ksh and POSIX shell print the target directory to stdout
74 # if CDPATH is set.
75 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
76
77 if test -z "$ECHO"; then
78 if test "X${echo_test_string+set}" != Xset; then
79 # find a string as large as possible, as long as the shell can cope with it
80   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
81     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
82     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
83        echo_test_string="`eval $cmd`" &&
84        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
85     then
86       break
87     fi
88   done
89 fi
90
91 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
92    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
93    test "X$echo_testing_string" = "X$echo_test_string"; then
94   :
95 else
96   # The Solaris, AIX, and Digital Unix default echo programs unquote
97   # backslashes.  This makes it impossible to quote backslashes using
98   #   echo "$something" | sed 's/\\/\\\\/g'
99   #
100   # So, first we look for a working echo in the user's PATH.
101
102   IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
103   for dir in $PATH /usr/ucb; do
104     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
105        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
106        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
107        test "X$echo_testing_string" = "X$echo_test_string"; then
108       echo="$dir/echo"
109       break
110     fi
111   done
112   IFS="$save_ifs"
113
114   if test "X$echo" = Xecho; then
115     # We didn't find a better echo, so look for alternatives.
116     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
117        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
118        test "X$echo_testing_string" = "X$echo_test_string"; then
119       # This shell has a builtin print -r that does the trick.
120       echo='print -r'
121     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
122          test "X$CONFIG_SHELL" != X/bin/ksh; then
123       # If we have ksh, try running configure again with it.
124       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
125       export ORIGINAL_CONFIG_SHELL
126       CONFIG_SHELL=/bin/ksh
127       export CONFIG_SHELL
128       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
129     else
130       # Try using printf.
131       echo='printf %s\n'
132       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
133          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
134          test "X$echo_testing_string" = "X$echo_test_string"; then
135         # Cool, printf works
136         :
137       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
138            test "X$echo_testing_string" = 'X\t' &&
139            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
140            test "X$echo_testing_string" = "X$echo_test_string"; then
141         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
142         export CONFIG_SHELL
143         SHELL="$CONFIG_SHELL"
144         export SHELL
145         echo="$CONFIG_SHELL $0 --fallback-echo"
146       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
147            test "X$echo_testing_string" = 'X\t' &&
148            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
149            test "X$echo_testing_string" = "X$echo_test_string"; then
150         echo="$CONFIG_SHELL $0 --fallback-echo"
151       else
152         # maybe with a smaller string...
153         prev=:
154
155         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
156           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
157           then
158             break
159           fi
160           prev="$cmd"
161         done
162
163         if test "$prev" != 'sed 50q "$0"'; then
164           echo_test_string=`eval $prev`
165           export echo_test_string
166           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
167         else
168           # Oops.  We lost completely, so just stick with echo.
169           echo=echo
170         fi
171       fi
172     fi
173   fi
174 fi
175 fi
176
177 # Copy echo and quote the copy suitably for passing to libtool from
178 # the Makefile, instead of quoting the original, which is used later.
179 ECHO=$echo
180 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
181    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
182 fi
183
184
185 ac_help="$ac_help
186   --disable-libtool-lock  avoid locking (might break parallel builds)"
187 ac_help="$ac_help
188   --with-pic              try to use only PIC/non-PIC objects [default=use both]"
189
190 # Initialize some variables set by options.
191 # The variables have the same names as the options, with
192 # dashes changed to underlines.
193 build=NONE
194 cache_file=./config.cache
195 exec_prefix=NONE
196 host=NONE
197 no_create=
198 nonopt=NONE
199 no_recursion=
200 prefix=NONE
201 program_prefix=NONE
202 program_suffix=NONE
203 program_transform_name=s,x,x,
204 silent=
205 site=
206 srcdir=
207 target=NONE
208 verbose=
209 x_includes=NONE
210 x_libraries=NONE
211 bindir='${exec_prefix}/bin'
212 sbindir='${exec_prefix}/sbin'
213 libexecdir='${exec_prefix}/libexec'
214 datadir='${prefix}/share'
215 sysconfdir='${prefix}/etc'
216 sharedstatedir='${prefix}/com'
217 localstatedir='${prefix}/var'
218 libdir='${exec_prefix}/lib'
219 includedir='${prefix}/include'
220 oldincludedir='/usr/include'
221 infodir='${prefix}/info'
222 mandir='${prefix}/man'
223
224 # Initialize some other variables.
225 subdirs=
226 MFLAGS= MAKEFLAGS=
227 SHELL=${CONFIG_SHELL-/bin/sh}
228 # Maximum number of lines to put in a shell here document.
229 ac_max_here_lines=12
230
231 ac_prev=
232 for ac_option
233 do
234
235   # If the previous option needs an argument, assign it.
236   if test -n "$ac_prev"; then
237     eval "$ac_prev=\$ac_option"
238     ac_prev=
239     continue
240   fi
241
242   case "$ac_option" in
243   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
244   *) ac_optarg= ;;
245   esac
246
247   # Accept the important Cygnus configure options, so we can diagnose typos.
248
249   case "$ac_option" in
250
251   -bindir | --bindir | --bindi | --bind | --bin | --bi)
252     ac_prev=bindir ;;
253   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
254     bindir="$ac_optarg" ;;
255
256   -build | --build | --buil | --bui | --bu)
257     ac_prev=build ;;
258   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
259     build="$ac_optarg" ;;
260
261   -cache-file | --cache-file | --cache-fil | --cache-fi \
262   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
263     ac_prev=cache_file ;;
264   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
265   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
266     cache_file="$ac_optarg" ;;
267
268   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
269     ac_prev=datadir ;;
270   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
271   | --da=*)
272     datadir="$ac_optarg" ;;
273
274   -disable-* | --disable-*)
275     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
276     # Reject names that are not valid shell variable names.
277     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
278       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
279     fi
280     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
281     eval "enable_${ac_feature}=no" ;;
282
283   -enable-* | --enable-*)
284     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
285     # Reject names that are not valid shell variable names.
286     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
287       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
288     fi
289     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
290     case "$ac_option" in
291       *=*) ;;
292       *) ac_optarg=yes ;;
293     esac
294     eval "enable_${ac_feature}='$ac_optarg'" ;;
295
296   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
297   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
298   | --exec | --exe | --ex)
299     ac_prev=exec_prefix ;;
300   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
301   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
302   | --exec=* | --exe=* | --ex=*)
303     exec_prefix="$ac_optarg" ;;
304
305   -gas | --gas | --ga | --g)
306     # Obsolete; use --with-gas.
307     with_gas=yes ;;
308
309   -help | --help | --hel | --he)
310     # Omit some internal or obsolete options to make the list less imposing.
311     # This message is too long to be a string in the A/UX 3.1 sh.
312     cat << EOF
313 Usage: configure [options] [host]
314 Options: [defaults in brackets after descriptions]
315 Configuration:
316   --cache-file=FILE       cache test results in FILE
317   --help                  print this message
318   --no-create             do not create output files
319   --quiet, --silent       do not print \`checking...' messages
320   --version               print the version of autoconf that created configure
321 Directory and file names:
322   --prefix=PREFIX         install architecture-independent files in PREFIX
323                           [$ac_default_prefix]
324   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
325                           [same as prefix]
326   --bindir=DIR            user executables in DIR [EPREFIX/bin]
327   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
328   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
329   --datadir=DIR           read-only architecture-independent data in DIR
330                           [PREFIX/share]
331   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
332   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
333                           [PREFIX/com]
334   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
335   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
336   --includedir=DIR        C header files in DIR [PREFIX/include]
337   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
338   --infodir=DIR           info documentation in DIR [PREFIX/info]
339   --mandir=DIR            man documentation in DIR [PREFIX/man]
340   --srcdir=DIR            find the sources in DIR [configure dir or ..]
341   --program-prefix=PREFIX prepend PREFIX to installed program names
342   --program-suffix=SUFFIX append SUFFIX to installed program names
343   --program-transform-name=PROGRAM
344                           run sed PROGRAM on installed program names
345 EOF
346     cat << EOF
347 Host type:
348   --build=BUILD           configure for building on BUILD [BUILD=HOST]
349   --host=HOST             configure for HOST [guessed]
350   --target=TARGET         configure for TARGET [TARGET=HOST]
351 Features and packages:
352   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
353   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
354   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
355   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
356   --x-includes=DIR        X include files are in DIR
357   --x-libraries=DIR       X library files are in DIR
358 EOF
359     if test -n "$ac_help"; then
360       echo "--enable and --with options recognized:$ac_help"
361     fi
362     exit 0 ;;
363
364   -host | --host | --hos | --ho)
365     ac_prev=host ;;
366   -host=* | --host=* | --hos=* | --ho=*)
367     host="$ac_optarg" ;;
368
369   -includedir | --includedir | --includedi | --included | --include \
370   | --includ | --inclu | --incl | --inc)
371     ac_prev=includedir ;;
372   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
373   | --includ=* | --inclu=* | --incl=* | --inc=*)
374     includedir="$ac_optarg" ;;
375
376   -infodir | --infodir | --infodi | --infod | --info | --inf)
377     ac_prev=infodir ;;
378   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
379     infodir="$ac_optarg" ;;
380
381   -libdir | --libdir | --libdi | --libd)
382     ac_prev=libdir ;;
383   -libdir=* | --libdir=* | --libdi=* | --libd=*)
384     libdir="$ac_optarg" ;;
385
386   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
387   | --libexe | --libex | --libe)
388     ac_prev=libexecdir ;;
389   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
390   | --libexe=* | --libex=* | --libe=*)
391     libexecdir="$ac_optarg" ;;
392
393   -localstatedir | --localstatedir | --localstatedi | --localstated \
394   | --localstate | --localstat | --localsta | --localst \
395   | --locals | --local | --loca | --loc | --lo)
396     ac_prev=localstatedir ;;
397   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
398   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
399   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
400     localstatedir="$ac_optarg" ;;
401
402   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
403     ac_prev=mandir ;;
404   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
405     mandir="$ac_optarg" ;;
406
407   -nfp | --nfp | --nf)
408     # Obsolete; use --without-fp.
409     with_fp=no ;;
410
411   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
412   | --no-cr | --no-c)
413     no_create=yes ;;
414
415   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
416   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
417     no_recursion=yes ;;
418
419   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
420   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
421   | --oldin | --oldi | --old | --ol | --o)
422     ac_prev=oldincludedir ;;
423   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
424   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
425   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
426     oldincludedir="$ac_optarg" ;;
427
428   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
429     ac_prev=prefix ;;
430   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
431     prefix="$ac_optarg" ;;
432
433   -program-prefix | --program-prefix | --program-prefi | --program-pref \
434   | --program-pre | --program-pr | --program-p)
435     ac_prev=program_prefix ;;
436   -program-prefix=* | --program-prefix=* | --program-prefi=* \
437   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
438     program_prefix="$ac_optarg" ;;
439
440   -program-suffix | --program-suffix | --program-suffi | --program-suff \
441   | --program-suf | --program-su | --program-s)
442     ac_prev=program_suffix ;;
443   -program-suffix=* | --program-suffix=* | --program-suffi=* \
444   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
445     program_suffix="$ac_optarg" ;;
446
447   -program-transform-name | --program-transform-name \
448   | --program-transform-nam | --program-transform-na \
449   | --program-transform-n | --program-transform- \
450   | --program-transform | --program-transfor \
451   | --program-transfo | --program-transf \
452   | --program-trans | --program-tran \
453   | --progr-tra | --program-tr | --program-t)
454     ac_prev=program_transform_name ;;
455   -program-transform-name=* | --program-transform-name=* \
456   | --program-transform-nam=* | --program-transform-na=* \
457   | --program-transform-n=* | --program-transform-=* \
458   | --program-transform=* | --program-transfor=* \
459   | --program-transfo=* | --program-transf=* \
460   | --program-trans=* | --program-tran=* \
461   | --progr-tra=* | --program-tr=* | --program-t=*)
462     program_transform_name="$ac_optarg" ;;
463
464   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
465   | -silent | --silent | --silen | --sile | --sil)
466     silent=yes ;;
467
468   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
469     ac_prev=sbindir ;;
470   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
471   | --sbi=* | --sb=*)
472     sbindir="$ac_optarg" ;;
473
474   -sharedstatedir | --sharedstatedir | --sharedstatedi \
475   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
476   | --sharedst | --shareds | --shared | --share | --shar \
477   | --sha | --sh)
478     ac_prev=sharedstatedir ;;
479   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
480   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
481   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
482   | --sha=* | --sh=*)
483     sharedstatedir="$ac_optarg" ;;
484
485   -site | --site | --sit)
486     ac_prev=site ;;
487   -site=* | --site=* | --sit=*)
488     site="$ac_optarg" ;;
489
490   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
491     ac_prev=srcdir ;;
492   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
493     srcdir="$ac_optarg" ;;
494
495   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
496   | --syscon | --sysco | --sysc | --sys | --sy)
497     ac_prev=sysconfdir ;;
498   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
499   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
500     sysconfdir="$ac_optarg" ;;
501
502   -target | --target | --targe | --targ | --tar | --ta | --t)
503     ac_prev=target ;;
504   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
505     target="$ac_optarg" ;;
506
507   -v | -verbose | --verbose | --verbos | --verbo | --verb)
508     verbose=yes ;;
509
510   -version | --version | --versio | --versi | --vers)
511     echo "configure generated by autoconf version 2.13"
512     exit 0 ;;
513
514   -with-* | --with-*)
515     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
516     # Reject names that are not valid shell variable names.
517     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
518       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
519     fi
520     ac_package=`echo $ac_package| sed 's/-/_/g'`
521     case "$ac_option" in
522       *=*) ;;
523       *) ac_optarg=yes ;;
524     esac
525     eval "with_${ac_package}='$ac_optarg'" ;;
526
527   -without-* | --without-*)
528     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
529     # Reject names that are not valid shell variable names.
530     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
531       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
532     fi
533     ac_package=`echo $ac_package| sed 's/-/_/g'`
534     eval "with_${ac_package}=no" ;;
535
536   --x)
537     # Obsolete; use --with-x.
538     with_x=yes ;;
539
540   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
541   | --x-incl | --x-inc | --x-in | --x-i)
542     ac_prev=x_includes ;;
543   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
544   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
545     x_includes="$ac_optarg" ;;
546
547   -x-libraries | --x-libraries | --x-librarie | --x-librari \
548   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
549     ac_prev=x_libraries ;;
550   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
551   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
552     x_libraries="$ac_optarg" ;;
553
554   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
555     ;;
556
557   *)
558     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
559       echo "configure: warning: $ac_option: invalid host type" 1>&2
560     fi
561     if test "x$nonopt" != xNONE; then
562       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
563     fi
564     nonopt="$ac_option"
565     ;;
566
567   esac
568 done
569
570 if test -n "$ac_prev"; then
571   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
572 fi
573
574 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
575
576 # File descriptor usage:
577 # 0 standard input
578 # 1 file creation
579 # 2 errors and warnings
580 # 3 some systems may open it to /dev/tty
581 # 4 used on the Kubota Titan
582 # 6 checking for... messages and results
583 # 5 compiler messages saved in config.log
584 if test "$silent" = yes; then
585   exec 6>/dev/null
586 else
587   exec 6>&1
588 fi
589 exec 5>./config.log
590
591 echo "\
592 This file contains any messages produced by compilers while
593 running configure, to aid debugging if configure makes a mistake.
594 " 1>&5
595
596 # Strip out --no-create and --no-recursion so they do not pile up.
597 # Also quote any args containing shell metacharacters.
598 ac_configure_args=
599 for ac_arg
600 do
601   case "$ac_arg" in
602   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
603   | --no-cr | --no-c) ;;
604   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
605   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
606   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
607   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
608   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
609   esac
610 done
611
612 # NLS nuisances.
613 # Only set these to C if already set.  These must not be set unconditionally
614 # because not all systems understand e.g. LANG=C (notably SCO).
615 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
616 # Non-C LC_CTYPE values break the ctype check.
617 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
618 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
619 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
620 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
621
622 # confdefs.h avoids OS command line length limits that DEFS can exceed.
623 rm -rf conftest* confdefs.h
624 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
625 echo > confdefs.h
626
627 # A filename unique to this package, relative to the directory that
628 # configure is in, which we can look for to find out if srcdir is correct.
629 ac_unique_file=src/
630
631 # Find the source files, if location was not specified.
632 if test -z "$srcdir"; then
633   ac_srcdir_defaulted=yes
634   # Try the directory containing this script, then its parent.
635   ac_prog=$0
636   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
637   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
638   srcdir=$ac_confdir
639   if test ! -r $srcdir/$ac_unique_file; then
640     srcdir=..
641   fi
642 else
643   ac_srcdir_defaulted=no
644 fi
645 if test ! -r $srcdir/$ac_unique_file; then
646   if test "$ac_srcdir_defaulted" = yes; then
647     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
648   else
649     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
650   fi
651 fi
652 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
653
654 # Prefer explicitly selected file to automatically selected ones.
655 if test -z "$CONFIG_SITE"; then
656   if test "x$prefix" != xNONE; then
657     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
658   else
659     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
660   fi
661 fi
662 for ac_site_file in $CONFIG_SITE; do
663   if test -r "$ac_site_file"; then
664     echo "loading site script $ac_site_file"
665     . "$ac_site_file"
666   fi
667 done
668
669 if test -r "$cache_file"; then
670   echo "loading cache $cache_file"
671   . $cache_file
672 else
673   echo "creating cache $cache_file"
674   > $cache_file
675 fi
676
677 ac_ext=c
678 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
679 ac_cpp='$CPP $CPPFLAGS'
680 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
681 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
682 cross_compiling=$ac_cv_prog_cc_cross
683
684 ac_exeext=
685 ac_objext=o
686 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
687   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
688   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
689     ac_n= ac_c='
690 ' ac_t='        '
691   else
692     ac_n=-n ac_c= ac_t=
693   fi
694 else
695   ac_n= ac_c='\c' ac_t=
696 fi
697
698
699
700 # Check whether --enable-checkmem or --disable-checkmem was given.
701 if test "${enable_checkmem+set}" = set; then
702   enableval="$enable_checkmem"
703   CHECKMEM=true
704 fi
705
706 # Check whether --enable-debug or --disable-debug was given.
707 if test "${enable_debug+set}" = set; then
708   enableval="$enable_debug"
709   DEBUG=true
710 fi
711
712
713 PACKAGE=swftools
714 VERSION=0.4.4-pre12
715 # -Winline?
716
717 if test "x$CHECKMEM" '!=' "x";then
718     DEBUG=yes
719 fi
720 if test "x$DEBUG" '!=' "x";then
721     CFLAGS="-Wparentheses -Wimplicit -Wreturn-type -g $CFLAGS"
722     CXXFLAGS="-Wparentheses -Wimplicit -Wreturn-type -g $CXXFLAGS"
723     STRIP="@echo debug enabled, not stripping "
724     export STRIP
725     
726 else
727     CFLAGS="-Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer $CFLAGS"
728     CXXFLAGS="-Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer $CXXFLAGS"
729 fi
730
731 export PACKAGE VERSION CFLAGS CXXFLAGS
732
733  ac_aux_dir=
734 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
735   if test -f $ac_dir/install-sh; then
736     ac_aux_dir=$ac_dir
737     ac_install_sh="$ac_aux_dir/install-sh -c"
738     break
739   elif test -f $ac_dir/install.sh; then
740     ac_aux_dir=$ac_dir
741     ac_install_sh="$ac_aux_dir/install.sh -c"
742     break
743   fi
744 done
745 if test -z "$ac_aux_dir"; then
746   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
747 fi
748 ac_config_guess=$ac_aux_dir/config.guess
749 ac_config_sub=$ac_aux_dir/config.sub
750 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
751
752
753 # Make sure we can run config.sub.
754 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
755 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
756 fi
757
758 echo $ac_n "checking host system type""... $ac_c" 1>&6
759 echo "configure:760: checking host system type" >&5
760
761 host_alias=$host
762 case "$host_alias" in
763 NONE)
764   case $nonopt in
765   NONE)
766     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
767     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
768     fi ;;
769   *) host_alias=$nonopt ;;
770   esac ;;
771 esac
772
773 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
774 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
775 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
776 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
777 echo "$ac_t""$host" 1>&6
778
779 MACOSX=
780 case $host_os in
781     *darwin* ) 
782         MACOSX=yes
783         CFLAGS="$CFLAGS -fno-rtti"
784         CXXFLAGS="$CXXFLAGS -fno-rtti"
785         ;;
786 esac
787  # Extract the first word of "gcc", so it can be a program name with args.
788 set dummy gcc; ac_word=$2
789 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
790 echo "configure:791: checking for $ac_word" >&5
791 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
792   echo $ac_n "(cached) $ac_c" 1>&6
793 else
794   if test -n "$CC"; then
795   ac_cv_prog_CC="$CC" # Let the user override the test.
796 else
797   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
798   ac_dummy="$PATH"
799   for ac_dir in $ac_dummy; do
800     test -z "$ac_dir" && ac_dir=.
801     if test -f $ac_dir/$ac_word; then
802       ac_cv_prog_CC="gcc"
803       break
804     fi
805   done
806   IFS="$ac_save_ifs"
807 fi
808 fi
809 CC="$ac_cv_prog_CC"
810 if test -n "$CC"; then
811   echo "$ac_t""$CC" 1>&6
812 else
813   echo "$ac_t""no" 1>&6
814 fi
815
816 if test -z "$CC"; then
817   # Extract the first word of "cc", so it can be a program name with args.
818 set dummy cc; ac_word=$2
819 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
820 echo "configure:821: checking for $ac_word" >&5
821 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
822   echo $ac_n "(cached) $ac_c" 1>&6
823 else
824   if test -n "$CC"; then
825   ac_cv_prog_CC="$CC" # Let the user override the test.
826 else
827   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
828   ac_prog_rejected=no
829   ac_dummy="$PATH"
830   for ac_dir in $ac_dummy; do
831     test -z "$ac_dir" && ac_dir=.
832     if test -f $ac_dir/$ac_word; then
833       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
834         ac_prog_rejected=yes
835         continue
836       fi
837       ac_cv_prog_CC="cc"
838       break
839     fi
840   done
841   IFS="$ac_save_ifs"
842 if test $ac_prog_rejected = yes; then
843   # We found a bogon in the path, so make sure we never use it.
844   set dummy $ac_cv_prog_CC
845   shift
846   if test $# -gt 0; then
847     # We chose a different compiler from the bogus one.
848     # However, it has the same basename, so the bogon will be chosen
849     # first if we set CC to just the basename; use the full file name.
850     shift
851     set dummy "$ac_dir/$ac_word" "$@"
852     shift
853     ac_cv_prog_CC="$@"
854   fi
855 fi
856 fi
857 fi
858 CC="$ac_cv_prog_CC"
859 if test -n "$CC"; then
860   echo "$ac_t""$CC" 1>&6
861 else
862   echo "$ac_t""no" 1>&6
863 fi
864
865   if test -z "$CC"; then
866     case "`uname -s`" in
867     *win32* | *WIN32*)
868       # Extract the first word of "cl", so it can be a program name with args.
869 set dummy cl; ac_word=$2
870 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
871 echo "configure:872: checking for $ac_word" >&5
872 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
873   echo $ac_n "(cached) $ac_c" 1>&6
874 else
875   if test -n "$CC"; then
876   ac_cv_prog_CC="$CC" # Let the user override the test.
877 else
878   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
879   ac_dummy="$PATH"
880   for ac_dir in $ac_dummy; do
881     test -z "$ac_dir" && ac_dir=.
882     if test -f $ac_dir/$ac_word; then
883       ac_cv_prog_CC="cl"
884       break
885     fi
886   done
887   IFS="$ac_save_ifs"
888 fi
889 fi
890 CC="$ac_cv_prog_CC"
891 if test -n "$CC"; then
892   echo "$ac_t""$CC" 1>&6
893 else
894   echo "$ac_t""no" 1>&6
895 fi
896  ;;
897     esac
898   fi
899   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
900 fi
901
902 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
903 echo "configure:904: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
904
905 ac_ext=c
906 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
907 ac_cpp='$CPP $CPPFLAGS'
908 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
909 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
910 cross_compiling=$ac_cv_prog_cc_cross
911
912 cat > conftest.$ac_ext << EOF
913
914 #line 915 "configure"
915 #include "confdefs.h"
916
917 main(){return(0);}
918 EOF
919 if { (eval echo configure:920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
920   ac_cv_prog_cc_works=yes
921   # If we can't run a trivial program, we are probably using a cross compiler.
922   if (./conftest; exit) 2>/dev/null; then
923     ac_cv_prog_cc_cross=no
924   else
925     ac_cv_prog_cc_cross=yes
926   fi
927 else
928   echo "configure: failed program was:" >&5
929   cat conftest.$ac_ext >&5
930   ac_cv_prog_cc_works=no
931 fi
932 rm -fr conftest*
933 ac_ext=c
934 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
935 ac_cpp='$CPP $CPPFLAGS'
936 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
937 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
938 cross_compiling=$ac_cv_prog_cc_cross
939
940 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
941 if test $ac_cv_prog_cc_works = no; then
942   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
943 fi
944 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
945 echo "configure:946: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
946 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
947 cross_compiling=$ac_cv_prog_cc_cross
948
949 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
950 echo "configure:951: checking whether we are using GNU C" >&5
951 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
952   echo $ac_n "(cached) $ac_c" 1>&6
953 else
954   cat > conftest.c <<EOF
955 #ifdef __GNUC__
956   yes;
957 #endif
958 EOF
959 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
960   ac_cv_prog_gcc=yes
961 else
962   ac_cv_prog_gcc=no
963 fi
964 fi
965
966 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
967
968 if test $ac_cv_prog_gcc = yes; then
969   GCC=yes
970 else
971   GCC=
972 fi
973
974 ac_test_CFLAGS="${CFLAGS+set}"
975 ac_save_CFLAGS="$CFLAGS"
976 CFLAGS=
977 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
978 echo "configure:979: checking whether ${CC-cc} accepts -g" >&5
979 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
980   echo $ac_n "(cached) $ac_c" 1>&6
981 else
982   echo 'void f(){}' > conftest.c
983 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
984   ac_cv_prog_cc_g=yes
985 else
986   ac_cv_prog_cc_g=no
987 fi
988 rm -f conftest*
989
990 fi
991
992 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
993 if test "$ac_test_CFLAGS" = set; then
994   CFLAGS="$ac_save_CFLAGS"
995 elif test $ac_cv_prog_cc_g = yes; then
996   if test "$GCC" = yes; then
997     CFLAGS="-g -O2"
998   else
999     CFLAGS="-g"
1000   fi
1001 else
1002   if test "$GCC" = yes; then
1003     CFLAGS="-O2"
1004   else
1005     CFLAGS=
1006   fi
1007 fi
1008
1009  for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1010 do
1011 # Extract the first word of "$ac_prog", so it can be a program name with args.
1012 set dummy $ac_prog; ac_word=$2
1013 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1014 echo "configure:1015: checking for $ac_word" >&5
1015 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1016   echo $ac_n "(cached) $ac_c" 1>&6
1017 else
1018   if test -n "$CXX"; then
1019   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1020 else
1021   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1022   ac_dummy="$PATH"
1023   for ac_dir in $ac_dummy; do
1024     test -z "$ac_dir" && ac_dir=.
1025     if test -f $ac_dir/$ac_word; then
1026       ac_cv_prog_CXX="$ac_prog"
1027       break
1028     fi
1029   done
1030   IFS="$ac_save_ifs"
1031 fi
1032 fi
1033 CXX="$ac_cv_prog_CXX"
1034 if test -n "$CXX"; then
1035   echo "$ac_t""$CXX" 1>&6
1036 else
1037   echo "$ac_t""no" 1>&6
1038 fi
1039
1040 test -n "$CXX" && break
1041 done
1042 test -n "$CXX" || CXX="gcc"
1043
1044
1045 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1046 echo "configure:1047: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1047
1048 ac_ext=C
1049 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1050 ac_cpp='$CXXCPP $CPPFLAGS'
1051 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1052 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1053 cross_compiling=$ac_cv_prog_cxx_cross
1054
1055 cat > conftest.$ac_ext << EOF
1056
1057 #line 1058 "configure"
1058 #include "confdefs.h"
1059
1060 int main(){return(0);}
1061 EOF
1062 if { (eval echo configure:1063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1063   ac_cv_prog_cxx_works=yes
1064   # If we can't run a trivial program, we are probably using a cross compiler.
1065   if (./conftest; exit) 2>/dev/null; then
1066     ac_cv_prog_cxx_cross=no
1067   else
1068     ac_cv_prog_cxx_cross=yes
1069   fi
1070 else
1071   echo "configure: failed program was:" >&5
1072   cat conftest.$ac_ext >&5
1073   ac_cv_prog_cxx_works=no
1074 fi
1075 rm -fr conftest*
1076 ac_ext=c
1077 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1078 ac_cpp='$CPP $CPPFLAGS'
1079 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1080 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1081 cross_compiling=$ac_cv_prog_cc_cross
1082
1083 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1084 if test $ac_cv_prog_cxx_works = no; then
1085   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1086 fi
1087 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1088 echo "configure:1089: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1089 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1090 cross_compiling=$ac_cv_prog_cxx_cross
1091
1092 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1093 echo "configure:1094: checking whether we are using GNU C++" >&5
1094 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1095   echo $ac_n "(cached) $ac_c" 1>&6
1096 else
1097   cat > conftest.C <<EOF
1098 #ifdef __GNUC__
1099   yes;
1100 #endif
1101 EOF
1102 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1103   ac_cv_prog_gxx=yes
1104 else
1105   ac_cv_prog_gxx=no
1106 fi
1107 fi
1108
1109 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1110
1111 if test $ac_cv_prog_gxx = yes; then
1112   GXX=yes
1113 else
1114   GXX=
1115 fi
1116
1117 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1118 ac_save_CXXFLAGS="$CXXFLAGS"
1119 CXXFLAGS=
1120 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1121 echo "configure:1122: checking whether ${CXX-g++} accepts -g" >&5
1122 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1123   echo $ac_n "(cached) $ac_c" 1>&6
1124 else
1125   echo 'void f(){}' > conftest.cc
1126 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1127   ac_cv_prog_cxx_g=yes
1128 else
1129   ac_cv_prog_cxx_g=no
1130 fi
1131 rm -f conftest*
1132
1133 fi
1134
1135 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1136 if test "$ac_test_CXXFLAGS" = set; then
1137   CXXFLAGS="$ac_save_CXXFLAGS"
1138 elif test $ac_cv_prog_cxx_g = yes; then
1139   if test "$GXX" = yes; then
1140     CXXFLAGS="-g -O2"
1141   else
1142     CXXFLAGS="-g"
1143   fi
1144 else
1145   if test "$GXX" = yes; then
1146     CXXFLAGS="-O2"
1147   else
1148     CXXFLAGS=
1149   fi
1150 fi
1151
1152
1153 if test "x$CHECKMEM" '!=' "x";then
1154     CC="ccmalloc $CC"
1155     CXX="ccmalloc $CXX"
1156     #echo running again
1157     #unset ac_cv_prog_CC
1158     #unset ac_cv_prog_CXX
1159     #AC_PROG_CC
1160     #AC_PROG_CXX
1161 fi
1162  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1163 echo "configure:1164: checking how to run the C preprocessor" >&5
1164 # On Suns, sometimes $CPP names a directory.
1165 if test -n "$CPP" && test -d "$CPP"; then
1166   CPP=
1167 fi
1168 if test -z "$CPP"; then
1169 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1170   echo $ac_n "(cached) $ac_c" 1>&6
1171 else
1172     # This must be in double quotes, not single quotes, because CPP may get
1173   # substituted into the Makefile and "${CC-cc}" will confuse make.
1174   CPP="${CC-cc} -E"
1175   # On the NeXT, cc -E runs the code through the compiler's parser,
1176   # not just through cpp.
1177   cat > conftest.$ac_ext <<EOF
1178 #line 1179 "configure"
1179 #include "confdefs.h"
1180 #include <assert.h>
1181 Syntax Error
1182 EOF
1183 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1184 { (eval echo configure:1185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1185 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1186 if test -z "$ac_err"; then
1187   :
1188 else
1189   echo "$ac_err" >&5
1190   echo "configure: failed program was:" >&5
1191   cat conftest.$ac_ext >&5
1192   rm -rf conftest*
1193   CPP="${CC-cc} -E -traditional-cpp"
1194   cat > conftest.$ac_ext <<EOF
1195 #line 1196 "configure"
1196 #include "confdefs.h"
1197 #include <assert.h>
1198 Syntax Error
1199 EOF
1200 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1201 { (eval echo configure:1202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1202 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1203 if test -z "$ac_err"; then
1204   :
1205 else
1206   echo "$ac_err" >&5
1207   echo "configure: failed program was:" >&5
1208   cat conftest.$ac_ext >&5
1209   rm -rf conftest*
1210   CPP="${CC-cc} -nologo -E"
1211   cat > conftest.$ac_ext <<EOF
1212 #line 1213 "configure"
1213 #include "confdefs.h"
1214 #include <assert.h>
1215 Syntax Error
1216 EOF
1217 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1218 { (eval echo configure:1219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1219 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1220 if test -z "$ac_err"; then
1221   :
1222 else
1223   echo "$ac_err" >&5
1224   echo "configure: failed program was:" >&5
1225   cat conftest.$ac_ext >&5
1226   rm -rf conftest*
1227   CPP=/lib/cpp
1228 fi
1229 rm -f conftest*
1230 fi
1231 rm -f conftest*
1232 fi
1233 rm -f conftest*
1234   ac_cv_prog_CPP="$CPP"
1235 fi
1236   CPP="$ac_cv_prog_CPP"
1237 else
1238   ac_cv_prog_CPP="$CPP"
1239 fi
1240 echo "$ac_t""$CPP" 1>&6
1241
1242
1243  # Extract the first word of "ranlib", so it can be a program name with args.
1244 set dummy ranlib; ac_word=$2
1245 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1246 echo "configure:1247: checking for $ac_word" >&5
1247 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1248   echo $ac_n "(cached) $ac_c" 1>&6
1249 else
1250   if test -n "$RANLIB"; then
1251   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1252 else
1253   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1254   ac_dummy="$PATH"
1255   for ac_dir in $ac_dummy; do
1256     test -z "$ac_dir" && ac_dir=.
1257     if test -f $ac_dir/$ac_word; then
1258       ac_cv_prog_RANLIB="ranlib"
1259       break
1260     fi
1261   done
1262   IFS="$ac_save_ifs"
1263   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1264 fi
1265 fi
1266 RANLIB="$ac_cv_prog_RANLIB"
1267 if test -n "$RANLIB"; then
1268   echo "$ac_t""$RANLIB" 1>&6
1269 else
1270   echo "$ac_t""no" 1>&6
1271 fi
1272
1273  echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1274 echo "configure:1275: checking whether ${MAKE-make} sets \${MAKE}" >&5
1275 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1276 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1277   echo $ac_n "(cached) $ac_c" 1>&6
1278 else
1279   cat > conftestmake <<\EOF
1280 all:
1281         @echo 'ac_maketemp="${MAKE}"'
1282 EOF
1283 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1284 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1285 if test -n "$ac_maketemp"; then
1286   eval ac_cv_prog_make_${ac_make}_set=yes
1287 else
1288   eval ac_cv_prog_make_${ac_make}_set=no
1289 fi
1290 rm -f conftestmake
1291 fi
1292 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1293   echo "$ac_t""yes" 1>&6
1294   SET_MAKE=
1295 else
1296   echo "$ac_t""no" 1>&6
1297   SET_MAKE="MAKE=${MAKE-make}"
1298 fi
1299
1300  # Find a good install program.  We prefer a C program (faster),
1301 # so one script is as good as another.  But avoid the broken or
1302 # incompatible versions:
1303 # SysV /etc/install, /usr/sbin/install
1304 # SunOS /usr/etc/install
1305 # IRIX /sbin/install
1306 # AIX /bin/install
1307 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1308 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1309 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1310 # ./install, which can be erroneously created by make from ./install.sh.
1311 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1312 echo "configure:1313: checking for a BSD compatible install" >&5
1313 if test -z "$INSTALL"; then
1314 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1315   echo $ac_n "(cached) $ac_c" 1>&6
1316 else
1317     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1318   for ac_dir in $PATH; do
1319     # Account for people who put trailing slashes in PATH elements.
1320     case "$ac_dir/" in
1321     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1322     *)
1323       # OSF1 and SCO ODT 3.0 have their own names for install.
1324       # Don't use installbsd from OSF since it installs stuff as root
1325       # by default.
1326       for ac_prog in ginstall scoinst install; do
1327         if test -f $ac_dir/$ac_prog; then
1328           if test $ac_prog = install &&
1329             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1330             # AIX install.  It has an incompatible calling convention.
1331             :
1332           else
1333             ac_cv_path_install="$ac_dir/$ac_prog -c"
1334             break 2
1335           fi
1336         fi
1337       done
1338       ;;
1339     esac
1340   done
1341   IFS="$ac_save_IFS"
1342
1343 fi
1344   if test "${ac_cv_path_install+set}" = set; then
1345     INSTALL="$ac_cv_path_install"
1346   else
1347     # As a last resort, use the slow shell script.  We don't cache a
1348     # path for INSTALL within a source directory, because that will
1349     # break other packages using the cache if that directory is
1350     # removed, or if the path is relative.
1351     INSTALL="$ac_install_sh"
1352   fi
1353 fi
1354 echo "$ac_t""$INSTALL" 1>&6
1355
1356 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1357 # It thinks the first close brace ends the variable substitution.
1358 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1359
1360 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1361
1362 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1363
1364  echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1365 echo "configure:1366: checking whether ln -s works" >&5
1366 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1367   echo $ac_n "(cached) $ac_c" 1>&6
1368 else
1369   rm -f conftestdata
1370 if ln -s X conftestdata 2>/dev/null
1371 then
1372   rm -f conftestdata
1373   ac_cv_prog_LN_S="ln -s"
1374 else
1375   ac_cv_prog_LN_S=ln
1376 fi
1377 fi
1378 LN_S="$ac_cv_prog_LN_S"
1379 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1380   echo "$ac_t""yes" 1>&6
1381 else
1382   echo "$ac_t""no" 1>&6
1383 fi
1384
1385  # Find the correct PATH separator.  Usually this is `:', but
1386 # DJGPP uses `;' like DOS.
1387 if test "X${PATH_SEPARATOR+set}" != Xset; then
1388   UNAME=${UNAME-`uname 2>/dev/null`}
1389   case X$UNAME in
1390     *-DOS) lt_cv_sys_path_separator=';' ;;
1391     *)     lt_cv_sys_path_separator=':' ;;
1392   esac
1393   PATH_SEPARATOR=$lt_cv_sys_path_separator
1394 fi
1395
1396 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1397 echo "configure:1398: checking for Cygwin environment" >&5
1398 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1399   echo $ac_n "(cached) $ac_c" 1>&6
1400 else
1401   cat > conftest.$ac_ext <<EOF
1402 #line 1403 "configure"
1403 #include "confdefs.h"
1404
1405 int main() {
1406
1407 #ifndef __CYGWIN__
1408 #define __CYGWIN__ __CYGWIN32__
1409 #endif
1410 return __CYGWIN__;
1411 ; return 0; }
1412 EOF
1413 if { (eval echo configure:1414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1414   rm -rf conftest*
1415   ac_cv_cygwin=yes
1416 else
1417   echo "configure: failed program was:" >&5
1418   cat conftest.$ac_ext >&5
1419   rm -rf conftest*
1420   ac_cv_cygwin=no
1421 fi
1422 rm -f conftest*
1423 rm -f conftest*
1424 fi
1425
1426 echo "$ac_t""$ac_cv_cygwin" 1>&6
1427 CYGWIN=
1428 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1429 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1430 echo "configure:1431: checking for mingw32 environment" >&5
1431 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1432   echo $ac_n "(cached) $ac_c" 1>&6
1433 else
1434   cat > conftest.$ac_ext <<EOF
1435 #line 1436 "configure"
1436 #include "confdefs.h"
1437
1438 int main() {
1439 return __MINGW32__;
1440 ; return 0; }
1441 EOF
1442 if { (eval echo configure:1443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1443   rm -rf conftest*
1444   ac_cv_mingw32=yes
1445 else
1446   echo "configure: failed program was:" >&5
1447   cat conftest.$ac_ext >&5
1448   rm -rf conftest*
1449   ac_cv_mingw32=no
1450 fi
1451 rm -f conftest*
1452 rm -f conftest*
1453 fi
1454
1455 echo "$ac_t""$ac_cv_mingw32" 1>&6
1456 MINGW32=
1457 test "$ac_cv_mingw32" = yes && MINGW32=yes
1458 # Check whether --enable-shared or --disable-shared was given.
1459 if test "${enable_shared+set}" = set; then
1460   enableval="$enable_shared"
1461   p=${PACKAGE-default}
1462 case $enableval in
1463 yes) enable_shared=yes ;;
1464 no) enable_shared=no ;;
1465 *)
1466   enable_shared=no
1467   # Look at the argument we got.  We use all the common list separators.
1468   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1469   for pkg in $enableval; do
1470     if test "X$pkg" = "X$p"; then
1471       enable_shared=yes
1472     fi
1473   done
1474   IFS="$ac_save_ifs"
1475   ;;
1476 esac
1477 else
1478   enable_shared=yes
1479 fi
1480
1481 # Check whether --enable-static or --disable-static was given.
1482 if test "${enable_static+set}" = set; then
1483   enableval="$enable_static"
1484   p=${PACKAGE-default}
1485 case $enableval in
1486 yes) enable_static=yes ;;
1487 no) enable_static=no ;;
1488 *)
1489   enable_static=no
1490   # Look at the argument we got.  We use all the common list separators.
1491   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1492   for pkg in $enableval; do
1493     if test "X$pkg" = "X$p"; then
1494       enable_static=yes
1495     fi
1496   done
1497   IFS="$ac_save_ifs"
1498   ;;
1499 esac
1500 else
1501   enable_static=yes
1502 fi
1503
1504 # Check whether --enable-fast-install or --disable-fast-install was given.
1505 if test "${enable_fast_install+set}" = set; then
1506   enableval="$enable_fast_install"
1507   p=${PACKAGE-default}
1508 case $enableval in
1509 yes) enable_fast_install=yes ;;
1510 no) enable_fast_install=no ;;
1511 *)
1512   enable_fast_install=no
1513   # Look at the argument we got.  We use all the common list separators.
1514   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1515   for pkg in $enableval; do
1516     if test "X$pkg" = "X$p"; then
1517       enable_fast_install=yes
1518     fi
1519   done
1520   IFS="$ac_save_ifs"
1521   ;;
1522 esac
1523 else
1524   enable_fast_install=yes
1525 fi
1526
1527 echo $ac_n "checking build system type""... $ac_c" 1>&6
1528 echo "configure:1529: checking build system type" >&5
1529
1530 build_alias=$build
1531 case "$build_alias" in
1532 NONE)
1533   case $nonopt in
1534   NONE) build_alias=$host_alias ;;
1535   *) build_alias=$nonopt ;;
1536   esac ;;
1537 esac
1538
1539 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1540 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1541 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1542 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1543 echo "$ac_t""$build" 1>&6
1544
1545 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1546 if test "${with_gnu_ld+set}" = set; then
1547   withval="$with_gnu_ld"
1548   test "$withval" = no || with_gnu_ld=yes
1549 else
1550   with_gnu_ld=no
1551 fi
1552
1553 ac_prog=ld
1554 if test "$GCC" = yes; then
1555   # Check if gcc -print-prog-name=ld gives a path.
1556   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1557 echo "configure:1558: checking for ld used by GCC" >&5
1558   case $host in
1559   *-*-mingw*)
1560     # gcc leaves a trailing carriage return which upsets mingw
1561     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1562   *)
1563     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1564   esac
1565   case $ac_prog in
1566     # Accept absolute paths.
1567     [\\/]* | [A-Za-z]:[\\/]*)
1568       re_direlt='/[^/][^/]*/\.\./'
1569       # Canonicalize the path of ld
1570       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1571       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1572         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1573       done
1574       test -z "$LD" && LD="$ac_prog"
1575       ;;
1576   "")
1577     # If it fails, then pretend we aren't using GCC.
1578     ac_prog=ld
1579     ;;
1580   *)
1581     # If it is relative, then search for the first ld in PATH.
1582     with_gnu_ld=unknown
1583     ;;
1584   esac
1585 elif test "$with_gnu_ld" = yes; then
1586   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1587 echo "configure:1588: checking for GNU ld" >&5
1588 else
1589   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1590 echo "configure:1591: checking for non-GNU ld" >&5
1591 fi
1592 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1593   echo $ac_n "(cached) $ac_c" 1>&6
1594 else
1595   if test -z "$LD"; then
1596   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1597   for ac_dir in $PATH; do
1598     test -z "$ac_dir" && ac_dir=.
1599     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1600       lt_cv_path_LD="$ac_dir/$ac_prog"
1601       # Check to see if the program is GNU ld.  I'd rather use --version,
1602       # but apparently some GNU ld's only accept -v.
1603       # Break only if it was the GNU/non-GNU ld that we prefer.
1604       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1605         test "$with_gnu_ld" != no && break
1606       else
1607         test "$with_gnu_ld" != yes && break
1608       fi
1609     fi
1610   done
1611   IFS="$ac_save_ifs"
1612 else
1613   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1614 fi
1615 fi
1616
1617 LD="$lt_cv_path_LD"
1618 if test -n "$LD"; then
1619   echo "$ac_t""$LD" 1>&6
1620 else
1621   echo "$ac_t""no" 1>&6
1622 fi
1623 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1624 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1625 echo "configure:1626: checking if the linker ($LD) is GNU ld" >&5
1626 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1627   echo $ac_n "(cached) $ac_c" 1>&6
1628 else
1629   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1630 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1631   lt_cv_prog_gnu_ld=yes
1632 else
1633   lt_cv_prog_gnu_ld=no
1634 fi
1635 fi
1636
1637 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1638 with_gnu_ld=$lt_cv_prog_gnu_ld
1639
1640
1641 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1642 echo "configure:1643: checking for $LD option to reload object files" >&5
1643 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1644   echo $ac_n "(cached) $ac_c" 1>&6
1645 else
1646   lt_cv_ld_reload_flag='-r'
1647 fi
1648
1649 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1650 reload_flag=$lt_cv_ld_reload_flag
1651 test -n "$reload_flag" && reload_flag=" $reload_flag"
1652
1653 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1654 echo "configure:1655: checking for BSD-compatible nm" >&5
1655 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1656   echo $ac_n "(cached) $ac_c" 1>&6
1657 else
1658   if test -n "$NM"; then
1659   # Let the user override the test.
1660   lt_cv_path_NM="$NM"
1661 else
1662   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1663   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1664     test -z "$ac_dir" && ac_dir=.
1665     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1666     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1667       # Check to see if the nm accepts a BSD-compat flag.
1668       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1669       #   nm: unknown option "B" ignored
1670       # Tru64's nm complains that /dev/null is an invalid object file
1671       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1672         lt_cv_path_NM="$tmp_nm -B"
1673         break
1674       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1675         lt_cv_path_NM="$tmp_nm -p"
1676         break
1677       else
1678         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1679         continue # so that we can try to find one that supports BSD flags
1680       fi
1681     fi
1682   done
1683   IFS="$ac_save_ifs"
1684   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1685 fi
1686 fi
1687
1688 NM="$lt_cv_path_NM"
1689 echo "$ac_t""$NM" 1>&6
1690
1691 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1692 echo "configure:1693: checking how to recognise dependant libraries" >&5
1693 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1694   echo $ac_n "(cached) $ac_c" 1>&6
1695 else
1696   lt_cv_file_magic_cmd='$MAGIC_CMD'
1697 lt_cv_file_magic_test_file=
1698 lt_cv_deplibs_check_method='unknown'
1699 # Need to set the preceding variable on all platforms that support
1700 # interlibrary dependencies.
1701 # 'none' -- dependencies not supported.
1702 # `unknown' -- same as none, but documents that we really don't know.
1703 # 'pass_all' -- all dependencies passed with no checks.
1704 # 'test_compile' -- check by making test program.
1705 # 'file_magic [[regex]]' -- check by looking for files in library path
1706 # which responds to the $file_magic_cmd with a given egrep regex.
1707 # If you have `file' or equivalent on your system and you're not sure
1708 # whether `pass_all' will *always* work, you probably want this one.
1709
1710 case $host_os in
1711 aix4* | aix5*)
1712   lt_cv_deplibs_check_method=pass_all
1713   ;;
1714
1715 beos*)
1716   lt_cv_deplibs_check_method=pass_all
1717   ;;
1718
1719 bsdi4*)
1720   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1721   lt_cv_file_magic_cmd='/usr/bin/file -L'
1722   lt_cv_file_magic_test_file=/shlib/libc.so
1723   ;;
1724
1725 cygwin* | mingw* | pw32*)
1726   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1727   lt_cv_file_magic_cmd='$OBJDUMP -f'
1728   ;;
1729
1730 darwin* | rhapsody*)
1731   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1732   lt_cv_file_magic_cmd='/usr/bin/file -L'
1733   case "$host_os" in
1734   rhapsody* | darwin1.[012])
1735     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
1736     ;;
1737   *) # Darwin 1.3 on
1738     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1739     ;;
1740   esac
1741   ;;
1742
1743 freebsd*)
1744   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1745     case $host_cpu in
1746     i*86 )
1747       # Not sure whether the presence of OpenBSD here was a mistake.
1748       # Let's accept both of them until this is cleared up.
1749       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1750       lt_cv_file_magic_cmd=/usr/bin/file
1751       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1752       ;;
1753     esac
1754   else
1755     lt_cv_deplibs_check_method=pass_all
1756   fi
1757   ;;
1758
1759 gnu*)
1760   lt_cv_deplibs_check_method=pass_all
1761   ;;
1762
1763 hpux10.20*|hpux11*)
1764   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1765   lt_cv_file_magic_cmd=/usr/bin/file
1766   lt_cv_file_magic_test_file=/usr/lib/libc.sl
1767   ;;
1768
1769 irix5* | irix6* | nonstopux*)
1770   case $host_os in
1771   irix5* | nonstopux*)
1772     # this will be overridden with pass_all, but let us keep it just in case
1773     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1774     ;;
1775   *)
1776     case $LD in
1777     *-32|*"-32 ") libmagic=32-bit;;
1778     *-n32|*"-n32 ") libmagic=N32;;
1779     *-64|*"-64 ") libmagic=64-bit;;
1780     *) libmagic=never-match;;
1781     esac
1782     # this will be overridden with pass_all, but let us keep it just in case
1783     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1784     ;;
1785   esac
1786   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1787   lt_cv_deplibs_check_method=pass_all
1788   ;;
1789
1790 # This must be Linux ELF.
1791 linux-gnu*)
1792   case $host_cpu in
1793   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1794     lt_cv_deplibs_check_method=pass_all ;;
1795   *)
1796     # glibc up to 2.1.1 does not perform some relocations on ARM
1797     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1798   esac
1799   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1800   ;;
1801
1802 netbsd*)
1803   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1804     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1805   else
1806     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1807   fi
1808   ;;
1809
1810 newos6*)
1811   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1812   lt_cv_file_magic_cmd=/usr/bin/file
1813   lt_cv_file_magic_test_file=/usr/lib/libnls.so
1814   ;;
1815
1816 openbsd*)
1817   lt_cv_file_magic_cmd=/usr/bin/file
1818   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1819   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1820     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1821   else
1822     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
1823   fi
1824   ;;
1825
1826 osf3* | osf4* | osf5*)
1827   # this will be overridden with pass_all, but let us keep it just in case
1828   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1829   lt_cv_file_magic_test_file=/shlib/libc.so
1830   lt_cv_deplibs_check_method=pass_all
1831   ;;
1832
1833 sco3.2v5*)
1834   lt_cv_deplibs_check_method=pass_all
1835   ;;
1836
1837 solaris*)
1838   lt_cv_deplibs_check_method=pass_all
1839   lt_cv_file_magic_test_file=/lib/libc.so
1840   ;;
1841
1842 sysv5uw[78]* | sysv4*uw2*)
1843   lt_cv_deplibs_check_method=pass_all
1844   ;;
1845
1846 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1847   case $host_vendor in
1848   motorola)
1849     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]'
1850     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1851     ;;
1852   ncr)
1853     lt_cv_deplibs_check_method=pass_all
1854     ;;
1855   sequent)
1856     lt_cv_file_magic_cmd='/bin/file'
1857     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
1858     ;;
1859   sni)
1860     lt_cv_file_magic_cmd='/bin/file'
1861     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
1862     lt_cv_file_magic_test_file=/lib/libc.so
1863     ;;
1864   esac
1865   ;;
1866 esac
1867
1868 fi
1869
1870 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1871 file_magic_cmd=$lt_cv_file_magic_cmd
1872 deplibs_check_method=$lt_cv_deplibs_check_method
1873
1874 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1875 echo "configure:1876: checking for object suffix" >&5
1876 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1877   echo $ac_n "(cached) $ac_c" 1>&6
1878 else
1879   rm -f conftest*
1880 echo 'int i = 1;' > conftest.$ac_ext
1881 if { (eval echo configure:1882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1882   for ac_file in conftest.*; do
1883     case $ac_file in
1884     *.c) ;;
1885     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1886     esac
1887   done
1888 else
1889   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1890 fi
1891 rm -f conftest*
1892 fi
1893
1894 echo "$ac_t""$ac_cv_objext" 1>&6
1895 OBJEXT=$ac_cv_objext
1896 ac_objext=$ac_cv_objext
1897
1898
1899
1900 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1901 echo "configure:1902: checking for executable suffix" >&5
1902 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1903   echo $ac_n "(cached) $ac_c" 1>&6
1904 else
1905   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1906   ac_cv_exeext=.exe
1907 else
1908   rm -f conftest*
1909   echo 'int main () { return 0; }' > conftest.$ac_ext
1910   ac_cv_exeext=
1911   if { (eval echo configure:1912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1912     for file in conftest.*; do
1913       case $file in
1914       *.c | *.o | *.obj) ;;
1915       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1916       esac
1917     done
1918   else
1919     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1920   fi
1921   rm -f conftest*
1922   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1923 fi
1924 fi
1925
1926 EXEEXT=""
1927 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1928 echo "$ac_t""${ac_cv_exeext}" 1>&6
1929 ac_exeext=$EXEEXT
1930
1931 if test $host != $build; then
1932   ac_tool_prefix=${host_alias}-
1933 else
1934   ac_tool_prefix=
1935 fi
1936
1937
1938
1939
1940 # Check for command to grab the raw symbol name followed by C symbol from nm.
1941 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
1942 echo "configure:1943: checking command to parse $NM output" >&5
1943 if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
1944   echo $ac_n "(cached) $ac_c" 1>&6
1945 else
1946   
1947 # These are sane defaults that work on at least a few old systems.
1948 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
1949
1950 # Character class describing NM global symbol codes.
1951 symcode='[BCDEGRST]'
1952
1953 # Regexp to match symbols that can be accessed directly from C.
1954 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1955
1956 # Transform the above into a raw symbol and a C symbol.
1957 symxfrm='\1 \2\3 \3'
1958
1959 # Transform an extracted symbol line into a proper C declaration
1960 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
1961
1962 # Transform an extracted symbol line into symbol name and symbol address
1963 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
1964
1965 # Define system-specific variables.
1966 case $host_os in
1967 aix*)
1968   symcode='[BCDT]'
1969   ;;
1970 cygwin* | mingw* | pw32*)
1971   symcode='[ABCDGISTW]'
1972   ;;
1973 hpux*) # Its linker distinguishes data from code symbols
1974   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
1975   lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
1976   ;;
1977 irix* | nonstopux*)
1978   symcode='[BCDEGRST]'
1979   ;;
1980 solaris* | sysv5*)
1981   symcode='[BDT]'
1982   ;;
1983 sysv4)
1984   symcode='[DFNSTU]'
1985   ;;
1986 esac
1987
1988 # Handle CRLF in mingw tool chain
1989 opt_cr=
1990 case $host_os in
1991 mingw*)
1992   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
1993   ;;
1994 esac
1995
1996 # If we're using GNU nm, then use its standard symbol codes.
1997 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
1998   symcode='[ABCDGISTW]'
1999 fi
2000
2001 # Try without a prefix undercore, then with it.
2002 for ac_symprfx in "" "_"; do
2003
2004   # Write the raw and C identifiers.
2005 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2006
2007   # Check to see that the pipe works correctly.
2008   pipe_works=no
2009   rm -f conftest*
2010   cat > conftest.$ac_ext <<EOF
2011 #ifdef __cplusplus
2012 extern "C" {
2013 #endif
2014 char nm_test_var;
2015 void nm_test_func(){}
2016 #ifdef __cplusplus
2017 }
2018 #endif
2019 int main(){nm_test_var='a';nm_test_func();return(0);}
2020 EOF
2021
2022   if { (eval echo configure:2023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2023     # Now try to grab the symbols.
2024     nlist=conftest.nm
2025     if { (eval echo configure:2026: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then
2026       # Try sorting and uniquifying the output.
2027       if sort "$nlist" | uniq > "$nlist"T; then
2028         mv -f "$nlist"T "$nlist"
2029       else
2030         rm -f "$nlist"T
2031       fi
2032
2033       # Make sure that we snagged all the symbols we need.
2034       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
2035         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
2036           cat <<EOF > conftest.$ac_ext
2037 #ifdef __cplusplus
2038 extern "C" {
2039 #endif
2040
2041 EOF
2042           # Now generate the symbol file.
2043           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
2044
2045           cat <<EOF >> conftest.$ac_ext
2046 #if defined (__STDC__) && __STDC__
2047 # define lt_ptr void *
2048 #else
2049 # define lt_ptr char *
2050 # define const
2051 #endif
2052
2053 /* The mapping between symbol names and symbols. */
2054 const struct {
2055   const char *name;
2056   lt_ptr address;
2057 }
2058 lt_preloaded_symbols[] =
2059 {
2060 EOF
2061           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
2062           cat <<\EOF >> conftest.$ac_ext
2063   {0, (lt_ptr) 0}
2064 };
2065
2066 #ifdef __cplusplus
2067 }
2068 #endif
2069 EOF
2070           # Now try linking the two files.
2071           mv conftest.$ac_objext conftstm.$ac_objext
2072           save_LIBS="$LIBS"
2073           save_CFLAGS="$CFLAGS"
2074           LIBS="conftstm.$ac_objext"
2075           CFLAGS="$CFLAGS$no_builtin_flag"
2076           if { (eval echo configure:2077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2077             pipe_works=yes
2078           fi
2079           LIBS="$save_LIBS"
2080           CFLAGS="$save_CFLAGS"
2081         else
2082           echo "cannot find nm_test_func in $nlist" >&5
2083         fi
2084       else
2085         echo "cannot find nm_test_var in $nlist" >&5
2086       fi
2087     else
2088       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
2089     fi
2090   else
2091     echo "$progname: failed program was:" >&5
2092     cat conftest.$ac_ext >&5
2093   fi
2094   rm -f conftest* conftst*
2095
2096   # Do not use the global_symbol_pipe unless it works.
2097   if test "$pipe_works" = yes; then
2098     break
2099   else
2100     lt_cv_sys_global_symbol_pipe=
2101   fi
2102 done
2103
2104 fi
2105
2106 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
2107 if test -z "$lt_cv_sys_global_symbol_pipe"; then
2108   global_symbol_to_cdecl=
2109   global_symbol_to_c_name_address=
2110 else
2111   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
2112   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
2113 fi
2114 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
2115 then
2116   echo "$ac_t""failed" 1>&6
2117 else
2118   echo "$ac_t""ok" 1>&6
2119 fi
2120
2121 for ac_hdr in dlfcn.h
2122 do
2123 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2124 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2125 echo "configure:2126: checking for $ac_hdr" >&5
2126 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2127   echo $ac_n "(cached) $ac_c" 1>&6
2128 else
2129   cat > conftest.$ac_ext <<EOF
2130 #line 2131 "configure"
2131 #include "confdefs.h"
2132 #include <$ac_hdr>
2133 EOF
2134 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2135 { (eval echo configure:2136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2136 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2137 if test -z "$ac_err"; then
2138   rm -rf conftest*
2139   eval "ac_cv_header_$ac_safe=yes"
2140 else
2141   echo "$ac_err" >&5
2142   echo "configure: failed program was:" >&5
2143   cat conftest.$ac_ext >&5
2144   rm -rf conftest*
2145   eval "ac_cv_header_$ac_safe=no"
2146 fi
2147 rm -f conftest*
2148 fi
2149 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2150   echo "$ac_t""yes" 1>&6
2151     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2152   cat >> confdefs.h <<EOF
2153 #define $ac_tr_hdr 1
2154 EOF
2155  
2156 else
2157   echo "$ac_t""no" 1>&6
2158 fi
2159 done
2160
2161
2162
2163
2164
2165 # Only perform the check for file, if the check method requires it
2166 case $deplibs_check_method in
2167 file_magic*)
2168   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2169     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2170 echo "configure:2171: checking for ${ac_tool_prefix}file" >&5
2171 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2172   echo $ac_n "(cached) $ac_c" 1>&6
2173 else
2174   case $MAGIC_CMD in
2175   /*)
2176   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2177   ;;
2178   ?:/*)
2179   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2180   ;;
2181   *)
2182   ac_save_MAGIC_CMD="$MAGIC_CMD"
2183   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2184   ac_dummy="/usr/bin:$PATH"
2185   for ac_dir in $ac_dummy; do
2186     test -z "$ac_dir" && ac_dir=.
2187     if test -f $ac_dir/${ac_tool_prefix}file; then
2188       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2189       if test -n "$file_magic_test_file"; then
2190         case $deplibs_check_method in
2191         "file_magic "*)
2192           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2193           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2194           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2195             egrep "$file_magic_regex" > /dev/null; then
2196             :
2197           else
2198             cat <<EOF 1>&2
2199
2200 *** Warning: the command libtool uses to detect shared libraries,
2201 *** $file_magic_cmd, produces output that libtool cannot recognize.
2202 *** The result is that libtool may fail to recognize shared libraries
2203 *** as such.  This will affect the creation of libtool libraries that
2204 *** depend on shared libraries, but programs linked with such libtool
2205 *** libraries will work regardless of this problem.  Nevertheless, you
2206 *** may want to report the problem to your system manager and/or to
2207 *** bug-libtool@gnu.org
2208
2209 EOF
2210           fi ;;
2211         esac
2212       fi
2213       break
2214     fi
2215   done
2216   IFS="$ac_save_ifs"
2217   MAGIC_CMD="$ac_save_MAGIC_CMD"
2218   ;;
2219 esac
2220 fi
2221
2222 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2223 if test -n "$MAGIC_CMD"; then
2224   echo "$ac_t""$MAGIC_CMD" 1>&6
2225 else
2226   echo "$ac_t""no" 1>&6
2227 fi
2228
2229 if test -z "$lt_cv_path_MAGIC_CMD"; then
2230   if test -n "$ac_tool_prefix"; then
2231     echo $ac_n "checking for file""... $ac_c" 1>&6
2232 echo "configure:2233: checking for file" >&5
2233 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2234   echo $ac_n "(cached) $ac_c" 1>&6
2235 else
2236   case $MAGIC_CMD in
2237   /*)
2238   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2239   ;;
2240   ?:/*)
2241   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2242   ;;
2243   *)
2244   ac_save_MAGIC_CMD="$MAGIC_CMD"
2245   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2246   ac_dummy="/usr/bin:$PATH"
2247   for ac_dir in $ac_dummy; do
2248     test -z "$ac_dir" && ac_dir=.
2249     if test -f $ac_dir/file; then
2250       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2251       if test -n "$file_magic_test_file"; then
2252         case $deplibs_check_method in
2253         "file_magic "*)
2254           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2255           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2256           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2257             egrep "$file_magic_regex" > /dev/null; then
2258             :
2259           else
2260             cat <<EOF 1>&2
2261
2262 *** Warning: the command libtool uses to detect shared libraries,
2263 *** $file_magic_cmd, produces output that libtool cannot recognize.
2264 *** The result is that libtool may fail to recognize shared libraries
2265 *** as such.  This will affect the creation of libtool libraries that
2266 *** depend on shared libraries, but programs linked with such libtool
2267 *** libraries will work regardless of this problem.  Nevertheless, you
2268 *** may want to report the problem to your system manager and/or to
2269 *** bug-libtool@gnu.org
2270
2271 EOF
2272           fi ;;
2273         esac
2274       fi
2275       break
2276     fi
2277   done
2278   IFS="$ac_save_ifs"
2279   MAGIC_CMD="$ac_save_MAGIC_CMD"
2280   ;;
2281 esac
2282 fi
2283
2284 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2285 if test -n "$MAGIC_CMD"; then
2286   echo "$ac_t""$MAGIC_CMD" 1>&6
2287 else
2288   echo "$ac_t""no" 1>&6
2289 fi
2290
2291   else
2292     MAGIC_CMD=:
2293   fi
2294 fi
2295
2296   fi
2297   ;;
2298 esac
2299
2300 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2301 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2302 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2303 echo "configure:2304: checking for $ac_word" >&5
2304 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2305   echo $ac_n "(cached) $ac_c" 1>&6
2306 else
2307   if test -n "$RANLIB"; then
2308   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2309 else
2310   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2311   ac_dummy="$PATH"
2312   for ac_dir in $ac_dummy; do
2313     test -z "$ac_dir" && ac_dir=.
2314     if test -f $ac_dir/$ac_word; then
2315       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2316       break
2317     fi
2318   done
2319   IFS="$ac_save_ifs"
2320 fi
2321 fi
2322 RANLIB="$ac_cv_prog_RANLIB"
2323 if test -n "$RANLIB"; then
2324   echo "$ac_t""$RANLIB" 1>&6
2325 else
2326   echo "$ac_t""no" 1>&6
2327 fi
2328
2329
2330 if test -z "$ac_cv_prog_RANLIB"; then
2331 if test -n "$ac_tool_prefix"; then
2332   # Extract the first word of "ranlib", so it can be a program name with args.
2333 set dummy ranlib; ac_word=$2
2334 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2335 echo "configure:2336: checking for $ac_word" >&5
2336 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2337   echo $ac_n "(cached) $ac_c" 1>&6
2338 else
2339   if test -n "$RANLIB"; then
2340   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2341 else
2342   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2343   ac_dummy="$PATH"
2344   for ac_dir in $ac_dummy; do
2345     test -z "$ac_dir" && ac_dir=.
2346     if test -f $ac_dir/$ac_word; then
2347       ac_cv_prog_RANLIB="ranlib"
2348       break
2349     fi
2350   done
2351   IFS="$ac_save_ifs"
2352   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2353 fi
2354 fi
2355 RANLIB="$ac_cv_prog_RANLIB"
2356 if test -n "$RANLIB"; then
2357   echo "$ac_t""$RANLIB" 1>&6
2358 else
2359   echo "$ac_t""no" 1>&6
2360 fi
2361
2362 else
2363   RANLIB=":"
2364 fi
2365 fi
2366
2367 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2368 set dummy ${ac_tool_prefix}strip; ac_word=$2
2369 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2370 echo "configure:2371: checking for $ac_word" >&5
2371 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2372   echo $ac_n "(cached) $ac_c" 1>&6
2373 else
2374   if test -n "$STRIP"; then
2375   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2376 else
2377   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2378   ac_dummy="$PATH"
2379   for ac_dir in $ac_dummy; do
2380     test -z "$ac_dir" && ac_dir=.
2381     if test -f $ac_dir/$ac_word; then
2382       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2383       break
2384     fi
2385   done
2386   IFS="$ac_save_ifs"
2387 fi
2388 fi
2389 STRIP="$ac_cv_prog_STRIP"
2390 if test -n "$STRIP"; then
2391   echo "$ac_t""$STRIP" 1>&6
2392 else
2393   echo "$ac_t""no" 1>&6
2394 fi
2395
2396
2397 if test -z "$ac_cv_prog_STRIP"; then
2398 if test -n "$ac_tool_prefix"; then
2399   # Extract the first word of "strip", so it can be a program name with args.
2400 set dummy strip; ac_word=$2
2401 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2402 echo "configure:2403: checking for $ac_word" >&5
2403 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2404   echo $ac_n "(cached) $ac_c" 1>&6
2405 else
2406   if test -n "$STRIP"; then
2407   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2408 else
2409   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2410   ac_dummy="$PATH"
2411   for ac_dir in $ac_dummy; do
2412     test -z "$ac_dir" && ac_dir=.
2413     if test -f $ac_dir/$ac_word; then
2414       ac_cv_prog_STRIP="strip"
2415       break
2416     fi
2417   done
2418   IFS="$ac_save_ifs"
2419   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2420 fi
2421 fi
2422 STRIP="$ac_cv_prog_STRIP"
2423 if test -n "$STRIP"; then
2424   echo "$ac_t""$STRIP" 1>&6
2425 else
2426   echo "$ac_t""no" 1>&6
2427 fi
2428
2429 else
2430   STRIP=":"
2431 fi
2432 fi
2433
2434
2435 enable_dlopen=no
2436 enable_win32_dll=no
2437
2438 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2439 if test "${enable_libtool_lock+set}" = set; then
2440   enableval="$enable_libtool_lock"
2441   :
2442 fi
2443
2444 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2445
2446 # Some flags need to be propagated to the compiler or linker for good
2447 # libtool support.
2448 case $host in
2449 *-*-irix6*)
2450   # Find out which ABI we are using.
2451   echo '#line 2452 "configure"' > conftest.$ac_ext
2452   if { (eval echo configure:2453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2453     case `/usr/bin/file conftest.$ac_objext` in
2454     *32-bit*)
2455       LD="${LD-ld} -32"
2456       ;;
2457     *N32*)
2458       LD="${LD-ld} -n32"
2459       ;;
2460     *64-bit*)
2461       LD="${LD-ld} -64"
2462       ;;
2463     esac
2464   fi
2465   rm -rf conftest*
2466   ;;
2467
2468 *-*-sco3.2v5*)
2469   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2470   SAVE_CFLAGS="$CFLAGS"
2471   CFLAGS="$CFLAGS -belf"
2472   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2473 echo "configure:2474: checking whether the C compiler needs -belf" >&5
2474 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2475   echo $ac_n "(cached) $ac_c" 1>&6
2476 else
2477   
2478      ac_ext=c
2479 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2480 ac_cpp='$CPP $CPPFLAGS'
2481 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2482 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2483 cross_compiling=$ac_cv_prog_cc_cross
2484
2485      cat > conftest.$ac_ext <<EOF
2486 #line 2487 "configure"
2487 #include "confdefs.h"
2488
2489 int main() {
2490
2491 ; return 0; }
2492 EOF
2493 if { (eval echo configure:2494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2494   rm -rf conftest*
2495   lt_cv_cc_needs_belf=yes
2496 else
2497   echo "configure: failed program was:" >&5
2498   cat conftest.$ac_ext >&5
2499   rm -rf conftest*
2500   lt_cv_cc_needs_belf=no
2501 fi
2502 rm -f conftest*
2503      ac_ext=c
2504 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2505 ac_cpp='$CPP $CPPFLAGS'
2506 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2507 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2508 cross_compiling=$ac_cv_prog_cc_cross
2509
2510 fi
2511
2512 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2513   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2514     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2515     CFLAGS="$SAVE_CFLAGS"
2516   fi
2517   ;;
2518
2519
2520 esac
2521
2522 # Sed substitution that helps us do robust quoting.  It backslashifies
2523 # metacharacters that are still active within double-quoted strings.
2524 Xsed='sed -e s/^X//'
2525 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
2526
2527 # Same as above, but do not quote variable references.
2528 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
2529
2530 # Sed substitution to delay expansion of an escaped shell variable in a
2531 # double_quote_subst'ed string.
2532 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2533
2534 # Constants:
2535 rm="rm -f"
2536
2537 # Global variables:
2538 default_ofile=libtool
2539 can_build_shared=yes
2540
2541 # All known linkers require a `.a' archive for static linking (except M$VC,
2542 # which needs '.lib').
2543 libext=a
2544 ltmain="$ac_aux_dir/ltmain.sh"
2545 ofile="$default_ofile"
2546 with_gnu_ld="$lt_cv_prog_gnu_ld"
2547 need_locks="$enable_libtool_lock"
2548
2549 old_CC="$CC"
2550 old_CFLAGS="$CFLAGS"
2551
2552 # Set sane defaults for various variables
2553 test -z "$AR" && AR=ar
2554 test -z "$AR_FLAGS" && AR_FLAGS=cru
2555 test -z "$AS" && AS=as
2556 test -z "$CC" && CC=cc
2557 test -z "$DLLTOOL" && DLLTOOL=dlltool
2558 test -z "$LD" && LD=ld
2559 test -z "$LN_S" && LN_S="ln -s"
2560 test -z "$MAGIC_CMD" && MAGIC_CMD=file
2561 test -z "$NM" && NM=nm
2562 test -z "$OBJDUMP" && OBJDUMP=objdump
2563 test -z "$RANLIB" && RANLIB=:
2564 test -z "$STRIP" && STRIP=:
2565 test -z "$ac_objext" && ac_objext=o
2566
2567 if test x"$host" != x"$build"; then
2568   ac_tool_prefix=${host_alias}-
2569 else
2570   ac_tool_prefix=
2571 fi
2572
2573 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
2574 case $host_os in
2575 linux-gnu*) ;;
2576 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
2577 esac
2578
2579 case $host_os in
2580 aix3*)
2581   # AIX sometimes has problems with the GCC collect2 program.  For some
2582   # reason, if we set the COLLECT_NAMES environment variable, the problems
2583   # vanish in a puff of smoke.
2584   if test "X${COLLECT_NAMES+set}" != Xset; then
2585     COLLECT_NAMES=
2586     export COLLECT_NAMES
2587   fi
2588   ;;
2589 esac
2590
2591 # Determine commands to create old-style static archives.
2592 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
2593 old_postinstall_cmds='chmod 644 $oldlib'
2594 old_postuninstall_cmds=
2595
2596 if test -n "$RANLIB"; then
2597   case $host_os in
2598   openbsd*)
2599     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
2600     ;;
2601   *)
2602     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
2603     ;;
2604   esac
2605   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2606 fi
2607
2608 # Allow CC to be a program name with arguments.
2609 set dummy $CC
2610 compiler="$2"
2611
2612 echo $ac_n "checking for objdir""... $ac_c" 1>&6
2613 echo "configure:2614: checking for objdir" >&5
2614 rm -f .libs 2>/dev/null
2615 mkdir .libs 2>/dev/null
2616 if test -d .libs; then
2617   objdir=.libs
2618 else
2619   # MS-DOS does not allow filenames that begin with a dot.
2620   objdir=_libs
2621 fi
2622 rmdir .libs 2>/dev/null
2623 echo "$ac_t""$objdir" 1>&6
2624
2625
2626 # Check whether --with-pic or --without-pic was given.
2627 if test "${with_pic+set}" = set; then
2628   withval="$with_pic"
2629   pic_mode="$withval"
2630 else
2631   pic_mode=default
2632 fi
2633
2634 test -z "$pic_mode" && pic_mode=default
2635
2636 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
2637 # in isolation, and that seeing it set (from the cache) indicates that
2638 # the associated values are set (in the cache) correctly too.
2639 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
2640 echo "configure:2641: checking for $compiler option to produce PIC" >&5
2641 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
2642   echo $ac_n "(cached) $ac_c" 1>&6
2643 else
2644    lt_cv_prog_cc_pic=
2645   lt_cv_prog_cc_shlib=
2646   lt_cv_prog_cc_wl=
2647   lt_cv_prog_cc_static=
2648   lt_cv_prog_cc_no_builtin=
2649   lt_cv_prog_cc_can_build_shared=$can_build_shared
2650
2651   if test "$GCC" = yes; then
2652     lt_cv_prog_cc_wl='-Wl,'
2653     lt_cv_prog_cc_static='-static'
2654
2655     case $host_os in
2656     aix*)
2657       # Below there is a dirty hack to force normal static linking with -ldl
2658       # The problem is because libdl dynamically linked with both libc and
2659       # libC (AIX C++ library), which obviously doesn't included in libraries
2660       # list by gcc. This cause undefined symbols with -static flags.
2661       # This hack allows C programs to be linked with "-static -ldl", but
2662       # not sure about C++ programs.
2663       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
2664       ;;
2665     amigaos*)
2666       # FIXME: we need at least 68020 code to build shared libraries, but
2667       # adding the `-m68020' flag to GCC prevents building anything better,
2668       # like `-m68040'.
2669       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
2670       ;;
2671     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
2672       # PIC is the default for these OSes.
2673       ;;
2674     darwin* | rhapsody*)
2675       # PIC is the default on this platform
2676       # Common symbols not allowed in MH_DYLIB files
2677       lt_cv_prog_cc_pic='-fno-common'
2678       ;;
2679     cygwin* | mingw* | pw32* | os2*)
2680       # This hack is so that the source file can tell whether it is being
2681       # built for inclusion in a dll (and should export symbols for example).
2682       lt_cv_prog_cc_pic='-DDLL_EXPORT'
2683       ;;
2684     sysv4*MP*)
2685       if test -d /usr/nec; then
2686          lt_cv_prog_cc_pic=-Kconform_pic
2687       fi
2688       ;;
2689     *)
2690       lt_cv_prog_cc_pic='-fPIC'
2691       ;;
2692     esac
2693   else
2694     # PORTME Check for PIC flags for the system compiler.
2695     case $host_os in
2696     aix3* | aix4* | aix5*)
2697       lt_cv_prog_cc_wl='-Wl,'
2698       # All AIX code is PIC.
2699       if test "$host_cpu" = ia64; then
2700         # AIX 5 now supports IA64 processor
2701         lt_cv_prog_cc_static='-Bstatic'
2702       else
2703         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
2704       fi
2705       ;;
2706
2707     hpux9* | hpux10* | hpux11*)
2708       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
2709       lt_cv_prog_cc_wl='-Wl,'
2710       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
2711       lt_cv_prog_cc_pic='+Z'
2712       ;;
2713
2714     irix5* | irix6* | nonstopux*)
2715       lt_cv_prog_cc_wl='-Wl,'
2716       lt_cv_prog_cc_static='-non_shared'
2717       # PIC (with -KPIC) is the default.
2718       ;;
2719
2720     cygwin* | mingw* | pw32* | os2*)
2721       # This hack is so that the source file can tell whether it is being
2722       # built for inclusion in a dll (and should export symbols for example).
2723       lt_cv_prog_cc_pic='-DDLL_EXPORT'
2724       ;;
2725
2726     newsos6)
2727       lt_cv_prog_cc_pic='-KPIC'
2728       lt_cv_prog_cc_static='-Bstatic'
2729       ;;
2730
2731     osf3* | osf4* | osf5*)
2732       # All OSF/1 code is PIC.
2733       lt_cv_prog_cc_wl='-Wl,'
2734       lt_cv_prog_cc_static='-non_shared'
2735       ;;
2736
2737     sco3.2v5*)
2738       lt_cv_prog_cc_pic='-Kpic'
2739       lt_cv_prog_cc_static='-dn'
2740       lt_cv_prog_cc_shlib='-belf'
2741       ;;
2742
2743     solaris*)
2744       lt_cv_prog_cc_pic='-KPIC'
2745       lt_cv_prog_cc_static='-Bstatic'
2746       lt_cv_prog_cc_wl='-Wl,'
2747       ;;
2748
2749     sunos4*)
2750       lt_cv_prog_cc_pic='-PIC'
2751       lt_cv_prog_cc_static='-Bstatic'
2752       lt_cv_prog_cc_wl='-Qoption ld '
2753       ;;
2754
2755     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2756       lt_cv_prog_cc_pic='-KPIC'
2757       lt_cv_prog_cc_static='-Bstatic'
2758       if test "x$host_vendor" = xsni; then
2759         lt_cv_prog_cc_wl='-LD'
2760       else
2761         lt_cv_prog_cc_wl='-Wl,'
2762       fi
2763       ;;
2764
2765     uts4*)
2766       lt_cv_prog_cc_pic='-pic'
2767       lt_cv_prog_cc_static='-Bstatic'
2768       ;;
2769
2770     sysv4*MP*)
2771       if test -d /usr/nec ;then
2772         lt_cv_prog_cc_pic='-Kconform_pic'
2773         lt_cv_prog_cc_static='-Bstatic'
2774       fi
2775       ;;
2776
2777     *)
2778       lt_cv_prog_cc_can_build_shared=no
2779       ;;
2780     esac
2781   fi
2782
2783 fi
2784
2785 if test -z "$lt_cv_prog_cc_pic"; then
2786   echo "$ac_t""none" 1>&6
2787 else
2788   echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
2789
2790   # Check to make sure the pic_flag actually works.
2791   echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
2792 echo "configure:2793: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
2793   if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
2794   echo $ac_n "(cached) $ac_c" 1>&6
2795 else
2796       save_CFLAGS="$CFLAGS"
2797     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
2798     cat > conftest.$ac_ext <<EOF
2799 #line 2800 "configure"
2800 #include "confdefs.h"
2801
2802 int main() {
2803
2804 ; return 0; }
2805 EOF
2806 if { (eval echo configure:2807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2807   rm -rf conftest*
2808         case $host_os in
2809       hpux9* | hpux10* | hpux11*)
2810         # On HP-UX, both CC and GCC only warn that PIC is supported... then
2811         # they create non-PIC objects.  So, if there were any warnings, we
2812         # assume that PIC is not supported.
2813         if test -s conftest.err; then
2814           lt_cv_prog_cc_pic_works=no
2815         else
2816           lt_cv_prog_cc_pic_works=yes
2817         fi
2818         ;;
2819       *)
2820         lt_cv_prog_cc_pic_works=yes
2821         ;;
2822       esac
2823     
2824 else
2825   echo "configure: failed program was:" >&5
2826   cat conftest.$ac_ext >&5
2827   rm -rf conftest*
2828         lt_cv_prog_cc_pic_works=no
2829     
2830 fi
2831 rm -f conftest*
2832     CFLAGS="$save_CFLAGS"
2833   
2834 fi
2835
2836
2837   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
2838     lt_cv_prog_cc_pic=
2839     lt_cv_prog_cc_can_build_shared=no
2840   else
2841     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
2842   fi
2843
2844   echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
2845 fi
2846
2847 # Check for any special shared library compilation flags.
2848 if test -n "$lt_cv_prog_cc_shlib"; then
2849   echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
2850   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
2851   else
2852    echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
2853     lt_cv_prog_cc_can_build_shared=no
2854   fi
2855 fi
2856
2857 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
2858 echo "configure:2859: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
2859 if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
2860   echo $ac_n "(cached) $ac_c" 1>&6
2861 else
2862     lt_cv_prog_cc_static_works=no
2863   save_LDFLAGS="$LDFLAGS"
2864   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
2865   cat > conftest.$ac_ext <<EOF
2866 #line 2867 "configure"
2867 #include "confdefs.h"
2868
2869 int main() {
2870
2871 ; return 0; }
2872 EOF
2873 if { (eval echo configure:2874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2874   rm -rf conftest*
2875   lt_cv_prog_cc_static_works=yes
2876 else
2877   echo "configure: failed program was:" >&5
2878   cat conftest.$ac_ext >&5
2879 fi
2880 rm -f conftest*
2881   LDFLAGS="$save_LDFLAGS"
2882
2883 fi
2884
2885
2886 # Belt *and* braces to stop my trousers falling down:
2887 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
2888 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
2889
2890 pic_flag="$lt_cv_prog_cc_pic"
2891 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
2892 wl="$lt_cv_prog_cc_wl"
2893 link_static_flag="$lt_cv_prog_cc_static"
2894 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
2895 can_build_shared="$lt_cv_prog_cc_can_build_shared"
2896
2897
2898 # Check to see if options -o and -c are simultaneously supported by compiler
2899 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
2900 echo "configure:2901: checking if $compiler supports -c -o file.$ac_objext" >&5
2901 if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then
2902   echo $ac_n "(cached) $ac_c" 1>&6
2903 else
2904   
2905 $rm -r conftest 2>/dev/null
2906 mkdir conftest
2907 cd conftest
2908 echo "int some_variable = 0;" > conftest.$ac_ext
2909 mkdir out
2910 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
2911 # that will create temporary files in the current directory regardless of
2912 # the output directory.  Thus, making CWD read-only will cause this test
2913 # to fail, enabling locking or at least warning the user not to do parallel
2914 # builds.
2915 chmod -w .
2916 save_CFLAGS="$CFLAGS"
2917 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
2918 compiler_c_o=no
2919 if { (eval echo configure:2920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
2920   # The compiler can only warn and ignore the option if not recognized
2921   # So say no if there are warnings
2922   if test -s out/conftest.err; then
2923     lt_cv_compiler_c_o=no
2924   else
2925     lt_cv_compiler_c_o=yes
2926   fi
2927 else
2928   # Append any errors to the config.log.
2929   cat out/conftest.err 1>&5
2930   lt_cv_compiler_c_o=no
2931 fi
2932 CFLAGS="$save_CFLAGS"
2933 chmod u+w .
2934 $rm conftest* out/*
2935 rmdir out
2936 cd ..
2937 rmdir conftest
2938 $rm -r conftest 2>/dev/null
2939
2940 fi
2941
2942 compiler_c_o=$lt_cv_compiler_c_o
2943 echo "$ac_t""$compiler_c_o" 1>&6
2944
2945 if test x"$compiler_c_o" = x"yes"; then
2946   # Check to see if we can write to a .lo
2947   echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
2948 echo "configure:2949: checking if $compiler supports -c -o file.lo" >&5
2949   if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then
2950   echo $ac_n "(cached) $ac_c" 1>&6
2951 else
2952   
2953   lt_cv_compiler_o_lo=no
2954   save_CFLAGS="$CFLAGS"
2955   CFLAGS="$CFLAGS -c -o conftest.lo"
2956   save_objext="$ac_objext"
2957   ac_objext=lo
2958   cat > conftest.$ac_ext <<EOF
2959 #line 2960 "configure"
2960 #include "confdefs.h"
2961
2962 int main() {
2963 int some_variable = 0;
2964 ; return 0; }
2965 EOF
2966 if { (eval echo configure:2967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2967   rm -rf conftest*
2968       # The compiler can only warn and ignore the option if not recognized
2969     # So say no if there are warnings
2970     if test -s conftest.err; then
2971       lt_cv_compiler_o_lo=no
2972     else
2973       lt_cv_compiler_o_lo=yes
2974     fi
2975   
2976 else
2977   echo "configure: failed program was:" >&5
2978   cat conftest.$ac_ext >&5
2979 fi
2980 rm -f conftest*
2981   ac_objext="$save_objext"
2982   CFLAGS="$save_CFLAGS"
2983   
2984 fi
2985
2986   compiler_o_lo=$lt_cv_compiler_o_lo
2987   echo "$ac_t""$compiler_o_lo" 1>&6
2988 else
2989   compiler_o_lo=no
2990 fi
2991
2992 # Check to see if we can do hard links to lock some files if needed
2993 hard_links="nottested"
2994 if test "$compiler_c_o" = no && test "$need_locks" != no; then
2995   # do not overwrite the value of need_locks provided by the user
2996   echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
2997 echo "configure:2998: checking if we can lock with hard links" >&5
2998   hard_links=yes
2999   $rm conftest*
3000   ln conftest.a conftest.b 2>/dev/null && hard_links=no
3001   touch conftest.a
3002   ln conftest.a conftest.b 2>&5 || hard_links=no
3003   ln conftest.a conftest.b 2>/dev/null && hard_links=no
3004   echo "$ac_t""$hard_links" 1>&6
3005   if test "$hard_links" = no; then
3006     echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
3007     need_locks=warn
3008   fi
3009 else
3010   need_locks=no
3011 fi
3012
3013 if test "$GCC" = yes; then
3014   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
3015   echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
3016 echo "configure:3017: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
3017   echo "int some_variable = 0;" > conftest.$ac_ext
3018   save_CFLAGS="$CFLAGS"
3019   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
3020   compiler_rtti_exceptions=no
3021   cat > conftest.$ac_ext <<EOF
3022 #line 3023 "configure"
3023 #include "confdefs.h"
3024
3025 int main() {
3026 int some_variable = 0;
3027 ; return 0; }
3028 EOF
3029 if { (eval echo configure:3030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3030   rm -rf conftest*
3031       # The compiler can only warn and ignore the option if not recognized
3032     # So say no if there are warnings
3033     if test -s conftest.err; then
3034       compiler_rtti_exceptions=no
3035     else
3036       compiler_rtti_exceptions=yes
3037     fi
3038   
3039 else
3040   echo "configure: failed program was:" >&5
3041   cat conftest.$ac_ext >&5
3042 fi
3043 rm -f conftest*
3044   CFLAGS="$save_CFLAGS"
3045   echo "$ac_t""$compiler_rtti_exceptions" 1>&6
3046
3047   if test "$compiler_rtti_exceptions" = "yes"; then
3048     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
3049   else
3050     no_builtin_flag=' -fno-builtin'
3051   fi
3052 fi
3053
3054 # See if the linker supports building shared libraries.
3055 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
3056 echo "configure:3057: checking whether the linker ($LD) supports shared libraries" >&5
3057
3058 allow_undefined_flag=
3059 no_undefined_flag=
3060 need_lib_prefix=unknown
3061 need_version=unknown
3062 # when you set need_version to no, make sure it does not cause -set_version
3063 # flags to be left without arguments
3064 archive_cmds=
3065 archive_expsym_cmds=
3066 old_archive_from_new_cmds=
3067 old_archive_from_expsyms_cmds=
3068 export_dynamic_flag_spec=
3069 whole_archive_flag_spec=
3070 thread_safe_flag_spec=
3071 hardcode_into_libs=no
3072 hardcode_libdir_flag_spec=
3073 hardcode_libdir_separator=
3074 hardcode_direct=no
3075 hardcode_minus_L=no
3076 hardcode_shlibpath_var=unsupported
3077 runpath_var=
3078 link_all_deplibs=unknown
3079 always_export_symbols=no
3080 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
3081 # include_expsyms should be a list of space-separated symbols to be *always*
3082 # included in the symbol list
3083 include_expsyms=
3084 # exclude_expsyms can be an egrep regular expression of symbols to exclude
3085 # it will be wrapped by ` (' and `)$', so one must not match beginning or
3086 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
3087 # as well as any symbol that contains `d'.
3088 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
3089 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
3090 # platforms (ab)use it in PIC code, but their linkers get confused if
3091 # the symbol is explicitly referenced.  Since portable code cannot
3092 # rely on this symbol name, it's probably fine to never include it in
3093 # preloaded symbol tables.
3094 extract_expsyms_cmds=
3095
3096 case $host_os in
3097 cygwin* | mingw* | pw32*)
3098   # FIXME: the MSVC++ port hasn't been tested in a loooong time
3099   # When not using gcc, we currently assume that we are using
3100   # Microsoft Visual C++.
3101   if test "$GCC" != yes; then
3102     with_gnu_ld=no
3103   fi
3104   ;;
3105 openbsd*)
3106   with_gnu_ld=no
3107   ;;
3108 esac
3109
3110 ld_shlibs=yes
3111 if test "$with_gnu_ld" = yes; then
3112   # If archive_cmds runs LD, not CC, wlarc should be empty
3113   wlarc='${wl}'
3114
3115   # See if GNU ld supports shared libraries.
3116   case $host_os in
3117   aix3* | aix4* | aix5*)
3118     # On AIX, the GNU linker is very broken
3119     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
3120     ld_shlibs=no
3121     cat <<EOF 1>&2
3122
3123 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
3124 *** to be unable to reliably create shared libraries on AIX.
3125 *** Therefore, libtool is disabling shared libraries support.  If you
3126 *** really care for shared libraries, you may want to modify your PATH
3127 *** so that a non-GNU linker is found, and then restart.
3128
3129 EOF
3130     ;;
3131
3132   amigaos*)
3133     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)'
3134     hardcode_libdir_flag_spec='-L$libdir'
3135     hardcode_minus_L=yes
3136
3137     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
3138     # that the semantics of dynamic libraries on AmigaOS, at least up
3139     # to version 4, is to share data among multiple programs linked
3140     # with the same dynamic library.  Since this doesn't match the
3141     # behavior of shared libraries on other platforms, we can use
3142     # them.
3143     ld_shlibs=no
3144     ;;
3145
3146   beos*)
3147     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3148       allow_undefined_flag=unsupported
3149       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3150       # support --undefined.  This deserves some investigation.  FIXME
3151       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3152     else
3153       ld_shlibs=no
3154     fi
3155     ;;
3156
3157   cygwin* | mingw* | pw32*)
3158     # hardcode_libdir_flag_spec is actually meaningless, as there is
3159     # no search path for DLLs.
3160     hardcode_libdir_flag_spec='-L$libdir'
3161     allow_undefined_flag=unsupported
3162     always_export_symbols=yes
3163
3164     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
3165       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
3166       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
3167       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
3168       else $CC -o impgen impgen.c ; fi)~
3169       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
3170
3171     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
3172
3173     # cygwin and mingw dlls have different entry points and sets of symbols
3174     # to exclude.
3175     # FIXME: what about values for MSVC?
3176     dll_entry=__cygwin_dll_entry@12
3177     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
3178     case $host_os in
3179     mingw*)
3180       # mingw values
3181       dll_entry=_DllMainCRTStartup@12
3182       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
3183       ;;
3184     esac
3185
3186     # mingw and cygwin differ, and it's simplest to just exclude the union
3187     # of the two symbol sets.
3188     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
3189
3190     # recent cygwin and mingw systems supply a stub DllMain which the user
3191     # can override, but on older systems we have to supply one (in ltdll.c)
3192     if test "x$lt_cv_need_dllmain" = "xyes"; then
3193       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
3194       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~
3195         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
3196     else
3197       ltdll_obj=
3198       ltdll_cmds=
3199     fi
3200
3201     # Extract the symbol export list from an `--export-all' def file,
3202     # then regenerate the def file from the symbol export list, so that
3203     # the compiled dll only exports the symbol export list.
3204     # Be careful not to strip the DATA tag left be newer dlltools.
3205     export_symbols_cmds="$ltdll_cmds"'
3206       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
3207       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
3208
3209     # If the export-symbols file already is a .def file (1st line
3210     # is EXPORTS), use it as is.
3211     # If DATA tags from a recent dlltool are present, honour them!
3212     archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
3213         cp $export_symbols $output_objdir/$soname-def;
3214       else
3215         echo EXPORTS > $output_objdir/$soname-def;
3216         _lt_hint=1;
3217         cat $export_symbols | while read symbol; do
3218          set dummy \$symbol;
3219          case \$# in
3220            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
3221            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
3222          esac;
3223          _lt_hint=`expr 1 + \$_lt_hint`;
3224         done;
3225       fi~
3226       '"$ltdll_cmds"'
3227       $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~
3228       $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~
3229       $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~
3230       $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~
3231       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
3232     ;;
3233
3234   netbsd*)
3235     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3236       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
3237       wlarc=
3238     else
3239       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3240       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3241     fi
3242     ;;
3243
3244   solaris* | sysv5*)
3245     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
3246       ld_shlibs=no
3247       cat <<EOF 1>&2
3248
3249 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
3250 *** create shared libraries on Solaris systems.  Therefore, libtool
3251 *** is disabling shared libraries support.  We urge you to upgrade GNU
3252 *** binutils to release 2.9.1 or newer.  Another option is to modify
3253 *** your PATH or compiler configuration so that the native linker is
3254 *** used, and then restart.
3255
3256 EOF
3257     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3258       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3259       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3260     else
3261       ld_shlibs=no
3262     fi
3263     ;;
3264
3265   sunos4*)
3266     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3267     wlarc=
3268     hardcode_direct=yes
3269     hardcode_shlibpath_var=no
3270     ;;
3271
3272   *)
3273     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3274       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3275       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3276     else
3277       ld_shlibs=no
3278     fi
3279     ;;
3280   esac
3281
3282   if test "$ld_shlibs" = yes; then
3283     runpath_var=LD_RUN_PATH
3284     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
3285     export_dynamic_flag_spec='${wl}--export-dynamic'
3286     case $host_os in
3287     cygwin* | mingw* | pw32*)
3288       # dlltool doesn't understand --whole-archive et. al.
3289       whole_archive_flag_spec=
3290       ;;
3291     *)
3292       # ancient GNU ld didn't support --whole-archive et. al.
3293       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
3294         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3295       else
3296         whole_archive_flag_spec=
3297       fi
3298       ;;
3299     esac
3300   fi
3301 else
3302   # PORTME fill in a description of your system's linker (not GNU ld)
3303   case $host_os in
3304   aix3*)
3305     allow_undefined_flag=unsupported
3306     always_export_symbols=yes
3307     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'
3308     # Note: this linker hardcodes the directories in LIBPATH if there
3309     # are no directories specified by -L.
3310     hardcode_minus_L=yes
3311     if test "$GCC" = yes && test -z "$link_static_flag"; then
3312       # Neither direct hardcoding nor static linking is supported with a
3313       # broken collect2.
3314       hardcode_direct=unsupported
3315     fi
3316     ;;
3317
3318   aix4* | aix5*)
3319     if test "$host_cpu" = ia64; then
3320       # On IA64, the linker does run time linking by default, so we don't
3321       # have to do anything special.
3322       aix_use_runtimelinking=no
3323       exp_sym_flag='-Bexport'
3324       no_entry_flag=""
3325     else
3326       aix_use_runtimelinking=no
3327
3328       # Test if we are trying to use run time linking or normal
3329       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3330       # need to do runtime linking.
3331       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
3332         for ld_flag in $LDFLAGS; do
3333           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
3334             aix_use_runtimelinking=yes
3335             break
3336           fi
3337         done
3338       esac
3339
3340       exp_sym_flag='-bexport'
3341       no_entry_flag='-bnoentry'
3342     fi
3343
3344     # When large executables or shared objects are built, AIX ld can
3345     # have problems creating the table of contents.  If linking a library
3346     # or program results in "error TOC overflow" add -mminimal-toc to
3347     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
3348     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3349
3350     hardcode_direct=yes
3351     archive_cmds=''
3352     hardcode_libdir_separator=':'
3353     if test "$GCC" = yes; then
3354       case $host_os in aix4.[012]|aix4.[012].*)
3355         collect2name=`${CC} -print-prog-name=collect2`
3356         if test -f "$collect2name" && \
3357           strings "$collect2name" | grep resolve_lib_name >/dev/null
3358         then
3359           # We have reworked collect2
3360           hardcode_direct=yes
3361         else
3362           # We have old collect2
3363           hardcode_direct=unsupported
3364           # It fails to find uninstalled libraries when the uninstalled
3365           # path is not listed in the libpath.  Setting hardcode_minus_L
3366           # to unsupported forces relinking
3367           hardcode_minus_L=yes
3368           hardcode_libdir_flag_spec='-L$libdir'
3369           hardcode_libdir_separator=
3370         fi
3371       esac
3372
3373       shared_flag='-shared'
3374     else
3375       # not using gcc
3376       if test "$host_cpu" = ia64; then
3377         shared_flag='${wl}-G'
3378       else
3379         if test "$aix_use_runtimelinking" = yes; then
3380           shared_flag='${wl}-G'
3381         else
3382           shared_flag='${wl}-bM:SRE'
3383         fi
3384       fi
3385     fi
3386
3387     # It seems that -bexpall can do strange things, so it is better to
3388     # generate a list of symbols to export.
3389     always_export_symbols=yes
3390     if test "$aix_use_runtimelinking" = yes; then
3391       # Warning - without using the other runtime loading flags (-brtl),
3392       # -berok will link without error, but may produce a broken library.
3393       allow_undefined_flag='-berok'
3394       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
3395       archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3396     else
3397       if test "$host_cpu" = ia64; then
3398         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
3399         allow_undefined_flag="-z nodefs"
3400         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
3401       else
3402         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
3403         # Warning - without using the other run time loading flags,
3404         # -berok will link without error, but may produce a broken library.
3405         allow_undefined_flag='${wl}-berok'
3406         # This is a bit strange, but is similar to how AIX traditionally builds
3407         # it's shared libraries.
3408         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
3409       fi
3410     fi
3411     ;;
3412
3413   amigaos*)
3414     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)'
3415     hardcode_libdir_flag_spec='-L$libdir'
3416     hardcode_minus_L=yes
3417     # see comment about different semantics on the GNU ld section
3418     ld_shlibs=no
3419     ;;
3420
3421   cygwin* | mingw* | pw32*)
3422     # When not using gcc, we currently assume that we are using
3423     # Microsoft Visual C++.
3424     # hardcode_libdir_flag_spec is actually meaningless, as there is
3425     # no search path for DLLs.
3426     hardcode_libdir_flag_spec=' '
3427     allow_undefined_flag=unsupported
3428     # Tell ltmain to make .lib files, not .a files.
3429     libext=lib
3430     # FIXME: Setting linknames here is a bad hack.
3431     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
3432     # The linker will automatically build a .lib file if we build a DLL.
3433     old_archive_from_new_cmds='true'
3434     # FIXME: Should let the user specify the lib program.
3435     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
3436     fix_srcfile_path='`cygpath -w "$srcfile"`'
3437     ;;
3438
3439   darwin* | rhapsody*)
3440     case "$host_os" in
3441     rhapsody* | darwin1.[012])
3442       allow_undefined_flag='-undefined suppress'
3443       ;;
3444     *) # Darwin 1.3 on
3445       allow_undefined_flag='-flat_namespace -undefined suppress'
3446       ;;
3447     esac
3448     # FIXME: Relying on posixy $() will cause problems for
3449     #        cross-compilation, but unfortunately the echo tests do not
3450     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
3451     #        `"' quotes if we put them in here... so don't!
3452     archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
3453     # We need to add '_' to the symbols in $export_symbols first
3454     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
3455     hardcode_direct=yes
3456     hardcode_shlibpath_var=no
3457     whole_archive_flag_spec='-all_load $convenience'
3458     ;;
3459
3460   freebsd1*)
3461     ld_shlibs=no
3462     ;;
3463
3464   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
3465   # support.  Future versions do this automatically, but an explicit c++rt0.o
3466   # does not break anything, and helps significantly (at the cost of a little
3467   # extra space).
3468   freebsd2.2*)
3469     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
3470     hardcode_libdir_flag_spec='-R$libdir'
3471     hardcode_direct=yes
3472     hardcode_shlibpath_var=no
3473     ;;
3474
3475   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
3476   freebsd2*)
3477     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3478     hardcode_direct=yes
3479     hardcode_minus_L=yes
3480     hardcode_shlibpath_var=no
3481     ;;
3482
3483   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
3484   freebsd*)
3485     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
3486     hardcode_libdir_flag_spec='-R$libdir'
3487     hardcode_direct=yes
3488     hardcode_shlibpath_var=no
3489     ;;
3490
3491   hpux9* | hpux10* | hpux11*)
3492     case $host_os in
3493     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' ;;
3494     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
3495     esac
3496     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
3497     hardcode_libdir_separator=:
3498     hardcode_direct=yes
3499     hardcode_minus_L=yes # Not in the search PATH, but as the default
3500                          # location of the library.
3501     export_dynamic_flag_spec='${wl}-E'
3502     ;;
3503
3504   irix5* | irix6* | nonstopux*)
3505     if test "$GCC" = yes; then
3506       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'
3507     else
3508       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'
3509     fi
3510     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3511     hardcode_libdir_separator=:
3512     link_all_deplibs=yes
3513     ;;
3514
3515   netbsd*)
3516     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3517       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
3518     else
3519       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
3520     fi
3521     hardcode_libdir_flag_spec='-R$libdir'
3522     hardcode_direct=yes
3523     hardcode_shlibpath_var=no
3524     ;;
3525
3526   newsos6)
3527     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3528     hardcode_direct=yes
3529     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3530     hardcode_libdir_separator=:
3531     hardcode_shlibpath_var=no
3532     ;;
3533
3534   openbsd*)
3535     hardcode_direct=yes
3536     hardcode_shlibpath_var=no
3537     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3538       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
3539       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
3540       export_dynamic_flag_spec='${wl}-E'
3541     else
3542       case "$host_os" in
3543       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
3544         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3545         hardcode_libdir_flag_spec='-R$libdir'
3546         ;;
3547       *)
3548         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
3549         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
3550         ;;
3551       esac
3552     fi
3553     ;;
3554
3555   os2*)
3556     hardcode_libdir_flag_spec='-L$libdir'
3557     hardcode_minus_L=yes
3558     allow_undefined_flag=unsupported
3559     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'
3560     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
3561     ;;
3562
3563   osf3*)
3564     if test "$GCC" = yes; then
3565       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3566       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'
3567     else
3568       allow_undefined_flag=' -expect_unresolved \*'
3569       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'
3570     fi
3571     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3572     hardcode_libdir_separator=:
3573     ;;
3574
3575   osf4* | osf5*)        # as osf3* with the addition of -msym flag
3576     if test "$GCC" = yes; then
3577       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3578       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'
3579       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3580     else
3581       allow_undefined_flag=' -expect_unresolved \*'
3582       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'
3583       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
3584       $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'
3585
3586       #Both c and cxx compiler support -rpath directly
3587       hardcode_libdir_flag_spec='-rpath $libdir'
3588     fi
3589     hardcode_libdir_separator=:
3590     ;;
3591
3592   sco3.2v5*)
3593     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3594     hardcode_shlibpath_var=no
3595     runpath_var=LD_RUN_PATH
3596     hardcode_runpath_var=yes
3597     export_dynamic_flag_spec='${wl}-Bexport'
3598     ;;
3599
3600   solaris*)
3601     # gcc --version < 3.0 without binutils cannot create self contained
3602     # shared libraries reliably, requiring libgcc.a to resolve some of
3603     # the object symbols generated in some cases.  Libraries that use
3604     # assert need libgcc.a to resolve __eprintf, for example.  Linking
3605     # a copy of libgcc.a into every shared library to guarantee resolving
3606     # such symbols causes other problems:  According to Tim Van Holder
3607     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
3608     # (to the application) exception stack for one thing.
3609     no_undefined_flag=' -z defs'
3610     if test "$GCC" = yes; then
3611       case `$CC --version 2>/dev/null` in
3612       [12].*)
3613         cat <<EOF 1>&2
3614
3615 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
3616 *** create self contained shared libraries on Solaris systems, without
3617 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
3618 *** -no-undefined support, which will at least allow you to build shared
3619 *** libraries.  However, you may find that when you link such libraries
3620 *** into an application without using GCC, you have to manually add
3621 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
3622 *** upgrade to a newer version of GCC.  Another option is to rebuild your
3623 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
3624
3625 EOF
3626         no_undefined_flag=
3627         ;;
3628       esac
3629     fi
3630     # $CC -shared without GNU ld will not create a library from C++
3631     # object files and a static libstdc++, better avoid it by now
3632     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3633     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3634                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3635     hardcode_libdir_flag_spec='-R$libdir'
3636     hardcode_shlibpath_var=no
3637     case $host_os in
3638     solaris2.[0-5] | solaris2.[0-5].*) ;;
3639     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
3640       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
3641     esac
3642     link_all_deplibs=yes
3643     ;;
3644
3645   sunos4*)
3646     if test "x$host_vendor" = xsequent; then
3647       # Use $CC to link under sequent, because it throws in some extra .o
3648       # files that make .init and .fini sections work.
3649       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
3650     else
3651       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
3652     fi
3653     hardcode_libdir_flag_spec='-L$libdir'
3654     hardcode_direct=yes
3655     hardcode_minus_L=yes
3656     hardcode_shlibpath_var=no
3657     ;;
3658
3659   sysv4)
3660     if test "x$host_vendor" = xsno; then
3661       archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
3662       hardcode_direct=yes # is this really true???
3663     else
3664       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3665       hardcode_direct=no #Motorola manual says yes, but my tests say they lie
3666     fi
3667     runpath_var='LD_RUN_PATH'
3668     hardcode_shlibpath_var=no
3669     ;;
3670
3671   sysv4.3*)
3672     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3673     hardcode_shlibpath_var=no
3674     export_dynamic_flag_spec='-Bexport'
3675     ;;
3676
3677   sysv5*)
3678     no_undefined_flag=' -z text'
3679     # $CC -shared without GNU ld will not create a library from C++
3680     # object files and a static libstdc++, better avoid it by now
3681     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3682     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3683                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3684     hardcode_libdir_flag_spec=
3685     hardcode_shlibpath_var=no
3686     runpath_var='LD_RUN_PATH'
3687     ;;
3688
3689   uts4*)
3690     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3691     hardcode_libdir_flag_spec='-L$libdir'
3692     hardcode_shlibpath_var=no
3693     ;;
3694
3695   dgux*)
3696     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3697     hardcode_libdir_flag_spec='-L$libdir'
3698     hardcode_shlibpath_var=no
3699     ;;
3700
3701   sysv4*MP*)
3702     if test -d /usr/nec; then
3703       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3704       hardcode_shlibpath_var=no
3705       runpath_var=LD_RUN_PATH
3706       hardcode_runpath_var=yes
3707       ld_shlibs=yes
3708     fi
3709     ;;
3710
3711   sysv4.2uw2*)
3712     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
3713     hardcode_direct=yes
3714     hardcode_minus_L=no
3715     hardcode_shlibpath_var=no
3716     hardcode_runpath_var=yes
3717     runpath_var=LD_RUN_PATH
3718     ;;
3719
3720   sysv5uw7* | unixware7*)
3721     no_undefined_flag='${wl}-z ${wl}text'
3722     if test "$GCC" = yes; then
3723       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3724     else
3725       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3726     fi
3727     runpath_var='LD_RUN_PATH'
3728     hardcode_shlibpath_var=no
3729     ;;
3730
3731   *)
3732     ld_shlibs=no
3733     ;;
3734   esac
3735 fi
3736 echo "$ac_t""$ld_shlibs" 1>&6
3737 test "$ld_shlibs" = no && can_build_shared=no
3738
3739 # Check hardcoding attributes.
3740 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
3741 echo "configure:3742: checking how to hardcode library paths into programs" >&5
3742 hardcode_action=
3743 if test -n "$hardcode_libdir_flag_spec" || \
3744    test -n "$runpath_var"; then
3745
3746   # We can hardcode non-existant directories.
3747   if test "$hardcode_direct" != no &&
3748      # If the only mechanism to avoid hardcoding is shlibpath_var, we
3749      # have to relink, otherwise we might link with an installed library
3750      # when we should be linking with a yet-to-be-installed one
3751      ## test "$hardcode_shlibpath_var" != no &&
3752      test "$hardcode_minus_L" != no; then
3753     # Linking always hardcodes the temporary library directory.
3754     hardcode_action=relink
3755   else
3756     # We can link without hardcoding, and we can hardcode nonexisting dirs.
3757     hardcode_action=immediate
3758   fi
3759 else
3760   # We cannot hardcode anything, or else we can only hardcode existing
3761   # directories.
3762   hardcode_action=unsupported
3763 fi
3764 echo "$ac_t""$hardcode_action" 1>&6
3765
3766 striplib=
3767 old_striplib=
3768 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
3769 echo "configure:3770: checking whether stripping libraries is possible" >&5
3770 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
3771   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3772   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3773   echo "$ac_t""yes" 1>&6
3774 else
3775   echo "$ac_t""no" 1>&6
3776 fi
3777
3778 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3779 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3780
3781 # PORTME Fill in your ld.so characteristics
3782 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
3783 echo "configure:3784: checking dynamic linker characteristics" >&5
3784 library_names_spec=
3785 libname_spec='lib$name'
3786 soname_spec=
3787 postinstall_cmds=
3788 postuninstall_cmds=
3789 finish_cmds=
3790 finish_eval=
3791 shlibpath_var=
3792 shlibpath_overrides_runpath=unknown
3793 version_type=none
3794 dynamic_linker="$host_os ld.so"
3795 sys_lib_dlsearch_path_spec="/lib /usr/lib"
3796 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
3797
3798 case $host_os in
3799 aix3*)
3800   version_type=linux
3801   library_names_spec='${libname}${release}.so$versuffix $libname.a'
3802   shlibpath_var=LIBPATH
3803
3804   # AIX has no versioning support, so we append a major version to the name.
3805   soname_spec='${libname}${release}.so$major'
3806   ;;
3807
3808 aix4* | aix5*)
3809   version_type=linux
3810   if test "$host_cpu" = ia64; then
3811     # AIX 5 supports IA64
3812     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
3813     shlibpath_var=LD_LIBRARY_PATH
3814   else
3815     # With GCC up to 2.95.x, collect2 would create an import file
3816     # for dependence libraries.  The import file would start with
3817     # the line `#! .'.  This would cause the generated library to
3818     # depend on `.', always an invalid library.  This was fixed in
3819     # development snapshots of GCC prior to 3.0.
3820     case $host_os in
3821       aix4 | aix4.[01] | aix4.[01].*)
3822         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
3823              echo ' yes '
3824              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
3825           :
3826         else
3827           can_build_shared=no
3828         fi
3829         ;;
3830     esac
3831     # AIX (on Power*) has no versioning support, so currently we can
3832     # not hardcode correct soname into executable. Probably we can
3833     # add versioning support to collect2, so additional links can
3834     # be useful in future.
3835     if test "$aix_use_runtimelinking" = yes; then
3836       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
3837       # instead of lib<name>.a to let people know that these are not
3838       # typical AIX shared libraries.
3839       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3840     else
3841       # We preserve .a as extension for shared libraries through AIX4.2
3842       # and later when we are not doing run time linking.
3843       library_names_spec='${libname}${release}.a $libname.a'
3844       soname_spec='${libname}${release}.so$major'
3845     fi
3846     shlibpath_var=LIBPATH
3847   fi
3848   ;;
3849
3850 amigaos*)
3851   library_names_spec='$libname.ixlibrary $libname.a'
3852   # Create ${libname}_ixlibrary.a entries in /sys/libs.
3853   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'
3854   ;;
3855
3856 beos*)
3857   library_names_spec='${libname}.so'
3858   dynamic_linker="$host_os ld.so"
3859   shlibpath_var=LIBRARY_PATH
3860   ;;
3861
3862 bsdi4*)
3863   version_type=linux
3864   need_version=no
3865   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3866   soname_spec='${libname}${release}.so$major'
3867   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
3868   shlibpath_var=LD_LIBRARY_PATH
3869   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
3870   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
3871   export_dynamic_flag_spec=-rdynamic
3872   # the default ld.so.conf also contains /usr/contrib/lib and
3873   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
3874   # libtool to hard-code these into programs
3875   ;;
3876
3877 cygwin* | mingw* | pw32*)
3878   version_type=windows
3879   need_version=no
3880   need_lib_prefix=no
3881   case $GCC,$host_os in
3882   yes,cygwin*)
3883     library_names_spec='$libname.dll.a'
3884     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
3885     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
3886       dldir=$destdir/`dirname \$dlpath`~
3887       test -d \$dldir || mkdir -p \$dldir~
3888       $install_prog .libs/$dlname \$dldir/$dlname'
3889     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
3890       dlpath=$dir/\$dldll~
3891        $rm \$dlpath'
3892     ;;
3893   yes,mingw*)
3894     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
3895     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
3896     ;;
3897   yes,pw32*)
3898     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
3899     ;;
3900   *)
3901     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
3902     ;;
3903   esac
3904   dynamic_linker='Win32 ld.exe'
3905   # FIXME: first we should search . and the directory the executable is in
3906   shlibpath_var=PATH
3907   ;;
3908
3909 darwin* | rhapsody*)
3910   dynamic_linker="$host_os dyld"
3911   version_type=darwin
3912   need_lib_prefix=no
3913   need_version=no
3914   # FIXME: Relying on posixy $() will cause problems for
3915   #        cross-compilation, but unfortunately the echo tests do not
3916   #        yet detect zsh echo's removal of \ escapes.
3917   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)'
3918   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
3919   shlibpath_overrides_runpath=yes
3920   shlibpath_var=DYLD_LIBRARY_PATH
3921   ;;
3922
3923 freebsd1*)
3924   dynamic_linker=no
3925   ;;
3926
3927 freebsd*)
3928   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
3929   version_type=freebsd-$objformat
3930   case $version_type in
3931     freebsd-elf*)
3932       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
3933       need_version=no
3934       need_lib_prefix=no
3935       ;;
3936     freebsd-*)
3937       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
3938       need_version=yes
3939       ;;
3940   esac
3941   shlibpath_var=LD_LIBRARY_PATH
3942   case $host_os in
3943   freebsd2*)
3944     shlibpath_overrides_runpath=yes
3945     ;;
3946   *)
3947     shlibpath_overrides_runpath=no
3948     hardcode_into_libs=yes
3949     ;;
3950   esac
3951   ;;
3952
3953 gnu*)
3954   version_type=linux
3955   need_lib_prefix=no
3956   need_version=no
3957   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
3958   soname_spec='${libname}${release}.so$major'
3959   shlibpath_var=LD_LIBRARY_PATH
3960   hardcode_into_libs=yes
3961   ;;
3962
3963 hpux9* | hpux10* | hpux11*)
3964   # Give a soname corresponding to the major version so that dld.sl refuses to
3965   # link against other versions.
3966   dynamic_linker="$host_os dld.sl"
3967   version_type=sunos
3968   need_lib_prefix=no
3969   need_version=no
3970   shlibpath_var=SHLIB_PATH
3971   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
3972   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
3973   soname_spec='${libname}${release}.sl$major'
3974   # HP-UX runs *really* slowly unless shared libraries are mode 555.
3975   postinstall_cmds='chmod 555 $lib'
3976   ;;
3977
3978 irix5* | irix6* | nonstopux*)
3979   case $host_os in
3980     nonstopux*) version_type=nonstopux ;;
3981     *)          version_type=irix ;;
3982   esac
3983   need_lib_prefix=no
3984   need_version=no
3985   soname_spec='${libname}${release}.so$major'
3986   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
3987   case $host_os in
3988   irix5* | nonstopux*)
3989     libsuff= shlibsuff=
3990     ;;
3991   *)
3992     case $LD in # libtool.m4 will add one of these switches to LD
3993     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
3994     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
3995     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
3996     *) libsuff= shlibsuff= libmagic=never-match;;
3997     esac
3998     ;;
3999   esac
4000   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4001   shlibpath_overrides_runpath=no
4002   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4003   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4004   ;;
4005
4006 # No shared lib support for Linux oldld, aout, or coff.
4007 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
4008   dynamic_linker=no
4009   ;;
4010
4011 # This must be Linux ELF.
4012 linux-gnu*)
4013   version_type=linux
4014   need_lib_prefix=no
4015   need_version=no
4016   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4017   soname_spec='${libname}${release}.so$major'
4018   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4019   shlibpath_var=LD_LIBRARY_PATH
4020   shlibpath_overrides_runpath=no
4021   # This implies no fast_install, which is unacceptable.
4022   # Some rework will be needed to allow for fast_install
4023   # before this can be enabled.
4024   hardcode_into_libs=yes
4025
4026   # We used to test for /lib/ld.so.1 and disable shared libraries on
4027   # powerpc, because MkLinux only supported shared libraries with the
4028   # GNU dynamic linker.  Since this was broken with cross compilers,
4029   # most powerpc-linux boxes support dynamic linking these days and
4030   # people can always --disable-shared, the test was removed, and we
4031   # assume the GNU/Linux dynamic linker is in use.
4032   dynamic_linker='GNU/Linux ld.so'
4033   ;;
4034
4035 netbsd*)
4036   version_type=sunos
4037   need_lib_prefix=no
4038   need_version=no
4039   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4040     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4041     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4042     dynamic_linker='NetBSD (a.out) ld.so'
4043   else
4044     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
4045     soname_spec='${libname}${release}.so$major'
4046     dynamic_linker='NetBSD ld.elf_so'
4047   fi
4048   shlibpath_var=LD_LIBRARY_PATH
4049   shlibpath_overrides_runpath=yes
4050   hardcode_into_libs=yes
4051   ;;
4052
4053 newsos6)
4054   version_type=linux
4055   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4056   shlibpath_var=LD_LIBRARY_PATH
4057   shlibpath_overrides_runpath=yes
4058   ;;
4059
4060 openbsd*)
4061   version_type=sunos
4062   need_lib_prefix=no
4063   need_version=no
4064   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4065     case "$host_os" in
4066     openbsd2.[89] | openbsd2.[89].*)
4067       shlibpath_overrides_runpath=no
4068       ;;
4069     *)
4070       shlibpath_overrides_runpath=yes
4071       ;;
4072     esac
4073   else
4074     shlibpath_overrides_runpath=yes
4075   fi
4076   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4077   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4078   shlibpath_var=LD_LIBRARY_PATH
4079   ;;
4080
4081 os2*)
4082   libname_spec='$name'
4083   need_lib_prefix=no
4084   library_names_spec='$libname.dll $libname.a'
4085   dynamic_linker='OS/2 ld.exe'
4086   shlibpath_var=LIBPATH
4087   ;;
4088
4089 osf3* | osf4* | osf5*)
4090   version_type=osf
4091   need_version=no
4092   soname_spec='${libname}${release}.so'
4093   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
4094   shlibpath_var=LD_LIBRARY_PATH
4095   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4096   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4097   ;;
4098
4099 sco3.2v5*)
4100   version_type=osf
4101   soname_spec='${libname}${release}.so$major'
4102   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4103   shlibpath_var=LD_LIBRARY_PATH
4104   ;;
4105
4106 solaris*)
4107   version_type=linux
4108   need_lib_prefix=no
4109   need_version=no
4110   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4111   soname_spec='${libname}${release}.so$major'
4112   shlibpath_var=LD_LIBRARY_PATH
4113   shlibpath_overrides_runpath=yes
4114   hardcode_into_libs=yes
4115   # ldd complains unless libraries are executable
4116   postinstall_cmds='chmod +x $lib'
4117   ;;
4118
4119 sunos4*)
4120   version_type=sunos
4121   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4122   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4123   shlibpath_var=LD_LIBRARY_PATH
4124   shlibpath_overrides_runpath=yes
4125   if test "$with_gnu_ld" = yes; then
4126     need_lib_prefix=no
4127   fi
4128   need_version=yes
4129   ;;
4130
4131 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4132   version_type=linux
4133   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4134   soname_spec='${libname}${release}.so$major'
4135   shlibpath_var=LD_LIBRARY_PATH
4136   case $host_vendor in
4137     sni)
4138       shlibpath_overrides_runpath=no
4139       ;;
4140     motorola)
4141       need_lib_prefix=no
4142       need_version=no
4143       shlibpath_overrides_runpath=no
4144       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4145       ;;
4146   esac
4147   ;;
4148
4149 uts4*)
4150   version_type=linux
4151   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4152   soname_spec='${libname}${release}.so$major'
4153   shlibpath_var=LD_LIBRARY_PATH
4154   ;;
4155
4156 dgux*)
4157   version_type=linux
4158   need_lib_prefix=no
4159   need_version=no
4160   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4161   soname_spec='${libname}${release}.so$major'
4162   shlibpath_var=LD_LIBRARY_PATH
4163   ;;
4164
4165 sysv4*MP*)
4166   if test -d /usr/nec ;then
4167     version_type=linux
4168     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
4169     soname_spec='$libname.so.$major'
4170     shlibpath_var=LD_LIBRARY_PATH
4171   fi
4172   ;;
4173
4174 *)
4175   dynamic_linker=no
4176   ;;
4177 esac
4178 echo "$ac_t""$dynamic_linker" 1>&6
4179 test "$dynamic_linker" = no && can_build_shared=no
4180
4181 # Report the final consequences.
4182 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
4183 echo "configure:4184: checking if libtool supports shared libraries" >&5
4184 echo "$ac_t""$can_build_shared" 1>&6
4185
4186 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
4187 echo "configure:4188: checking whether to build shared libraries" >&5
4188 test "$can_build_shared" = "no" && enable_shared=no
4189
4190 # On AIX, shared libraries and static libraries use the same namespace, and
4191 # are all built from PIC.
4192 case "$host_os" in
4193 aix3*)
4194   test "$enable_shared" = yes && enable_static=no
4195   if test -n "$RANLIB"; then
4196     archive_cmds="$archive_cmds~\$RANLIB \$lib"
4197     postinstall_cmds='$RANLIB $lib'
4198   fi
4199   ;;
4200
4201 aix4*)
4202   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4203     test "$enable_shared" = yes && enable_static=no
4204   fi
4205   ;;
4206 esac
4207 echo "$ac_t""$enable_shared" 1>&6
4208
4209 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
4210 echo "configure:4211: checking whether to build static libraries" >&5
4211 # Make sure either enable_shared or enable_static is yes.
4212 test "$enable_shared" = yes || enable_static=yes
4213 echo "$ac_t""$enable_static" 1>&6
4214
4215 if test "$hardcode_action" = relink; then
4216   # Fast installation is not supported
4217   enable_fast_install=no
4218 elif test "$shlibpath_overrides_runpath" = yes ||
4219      test "$enable_shared" = no; then
4220   # Fast installation is not necessary
4221   enable_fast_install=needless
4222 fi
4223
4224 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
4225 if test "$GCC" = yes; then
4226   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
4227 fi
4228
4229 if test "x$enable_dlopen" != xyes; then
4230   enable_dlopen=unknown
4231   enable_dlopen_self=unknown
4232   enable_dlopen_self_static=unknown
4233 else
4234   lt_cv_dlopen=no
4235   lt_cv_dlopen_libs=
4236
4237   case $host_os in
4238   beos*)
4239     lt_cv_dlopen="load_add_on"
4240     lt_cv_dlopen_libs=
4241     lt_cv_dlopen_self=yes
4242     ;;
4243
4244   cygwin* | mingw* | pw32*)
4245     lt_cv_dlopen="LoadLibrary"
4246     lt_cv_dlopen_libs=
4247    ;;
4248
4249   *)
4250     echo $ac_n "checking for shl_load""... $ac_c" 1>&6
4251 echo "configure:4252: checking for shl_load" >&5
4252 if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
4253   echo $ac_n "(cached) $ac_c" 1>&6
4254 else
4255   cat > conftest.$ac_ext <<EOF
4256 #line 4257 "configure"
4257 #include "confdefs.h"
4258 /* System header to define __stub macros and hopefully few prototypes,
4259     which can conflict with char shl_load(); below.  */
4260 #include <assert.h>
4261 /* Override any gcc2 internal prototype to avoid an error.  */
4262 /* We use char because int might match the return type of a gcc2
4263     builtin and then its argument prototype would still apply.  */
4264 char shl_load();
4265
4266 int main() {
4267
4268 /* The GNU C library defines this for functions which it implements
4269     to always fail with ENOSYS.  Some functions are actually named
4270     something starting with __ and the normal name is an alias.  */
4271 #if defined (__stub_shl_load) || defined (__stub___shl_load)
4272 choke me
4273 #else
4274 shl_load();
4275 #endif
4276
4277 ; return 0; }
4278 EOF
4279 if { (eval echo configure:4280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4280   rm -rf conftest*
4281   eval "ac_cv_func_shl_load=yes"
4282 else
4283   echo "configure: failed program was:" >&5
4284   cat conftest.$ac_ext >&5
4285   rm -rf conftest*
4286   eval "ac_cv_func_shl_load=no"
4287 fi
4288 rm -f conftest*
4289 fi
4290
4291 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
4292   echo "$ac_t""yes" 1>&6
4293   lt_cv_dlopen="shl_load"
4294 else
4295   echo "$ac_t""no" 1>&6
4296 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
4297 echo "configure:4298: checking for shl_load in -ldld" >&5
4298 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
4299 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4300   echo $ac_n "(cached) $ac_c" 1>&6
4301 else
4302   ac_save_LIBS="$LIBS"
4303 LIBS="-ldld  $LIBS"
4304 cat > conftest.$ac_ext <<EOF
4305 #line 4306 "configure"
4306 #include "confdefs.h"
4307 /* Override any gcc2 internal prototype to avoid an error.  */
4308 /* We use char because int might match the return type of a gcc2
4309     builtin and then its argument prototype would still apply.  */
4310 char shl_load();
4311
4312 int main() {
4313 shl_load()
4314 ; return 0; }
4315 EOF
4316 if { (eval echo configure:4317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4317   rm -rf conftest*
4318   eval "ac_cv_lib_$ac_lib_var=yes"
4319 else
4320   echo "configure: failed program was:" >&5
4321   cat conftest.$ac_ext >&5
4322   rm -rf conftest*
4323   eval "ac_cv_lib_$ac_lib_var=no"
4324 fi
4325 rm -f conftest*
4326 LIBS="$ac_save_LIBS"
4327
4328 fi
4329 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4330   echo "$ac_t""yes" 1>&6
4331   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
4332 else
4333   echo "$ac_t""no" 1>&6
4334 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
4335 echo "configure:4336: checking for dlopen" >&5
4336 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
4337   echo $ac_n "(cached) $ac_c" 1>&6
4338 else
4339   cat > conftest.$ac_ext <<EOF
4340 #line 4341 "configure"
4341 #include "confdefs.h"
4342 /* System header to define __stub macros and hopefully few prototypes,
4343     which can conflict with char dlopen(); below.  */
4344 #include <assert.h>
4345 /* Override any gcc2 internal prototype to avoid an error.  */
4346 /* We use char because int might match the return type of a gcc2
4347     builtin and then its argument prototype would still apply.  */
4348 char dlopen();
4349
4350 int main() {
4351
4352 /* The GNU C library defines this for functions which it implements
4353     to always fail with ENOSYS.  Some functions are actually named
4354     something starting with __ and the normal name is an alias.  */
4355 #if defined (__stub_dlopen) || defined (__stub___dlopen)
4356 choke me
4357 #else
4358 dlopen();
4359 #endif
4360
4361 ; return 0; }
4362 EOF
4363 if { (eval echo configure:4364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4364   rm -rf conftest*
4365   eval "ac_cv_func_dlopen=yes"
4366 else
4367   echo "configure: failed program was:" >&5
4368   cat conftest.$ac_ext >&5
4369   rm -rf conftest*
4370   eval "ac_cv_func_dlopen=no"
4371 fi
4372 rm -f conftest*
4373 fi
4374
4375 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
4376   echo "$ac_t""yes" 1>&6
4377   lt_cv_dlopen="dlopen"
4378 else
4379   echo "$ac_t""no" 1>&6
4380 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4381 echo "configure:4382: checking for dlopen in -ldl" >&5
4382 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4383 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4384   echo $ac_n "(cached) $ac_c" 1>&6
4385 else
4386   ac_save_LIBS="$LIBS"
4387 LIBS="-ldl  $LIBS"
4388 cat > conftest.$ac_ext <<EOF
4389 #line 4390 "configure"
4390 #include "confdefs.h"
4391 /* Override any gcc2 internal prototype to avoid an error.  */
4392 /* We use char because int might match the return type of a gcc2
4393     builtin and then its argument prototype would still apply.  */
4394 char dlopen();
4395
4396 int main() {
4397 dlopen()
4398 ; return 0; }
4399 EOF
4400 if { (eval echo configure:4401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4401   rm -rf conftest*
4402   eval "ac_cv_lib_$ac_lib_var=yes"
4403 else
4404   echo "configure: failed program was:" >&5
4405   cat conftest.$ac_ext >&5
4406   rm -rf conftest*
4407   eval "ac_cv_lib_$ac_lib_var=no"
4408 fi
4409 rm -f conftest*
4410 LIBS="$ac_save_LIBS"
4411
4412 fi
4413 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4414   echo "$ac_t""yes" 1>&6
4415   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
4416 else
4417   echo "$ac_t""no" 1>&6
4418 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
4419 echo "configure:4420: checking for dlopen in -lsvld" >&5
4420 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
4421 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4422   echo $ac_n "(cached) $ac_c" 1>&6
4423 else
4424   ac_save_LIBS="$LIBS"
4425 LIBS="-lsvld  $LIBS"
4426 cat > conftest.$ac_ext <<EOF
4427 #line 4428 "configure"
4428 #include "confdefs.h"
4429 /* Override any gcc2 internal prototype to avoid an error.  */
4430 /* We use char because int might match the return type of a gcc2
4431     builtin and then its argument prototype would still apply.  */
4432 char dlopen();
4433
4434 int main() {
4435 dlopen()
4436 ; return 0; }
4437 EOF
4438 if { (eval echo configure:4439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4439   rm -rf conftest*
4440   eval "ac_cv_lib_$ac_lib_var=yes"
4441 else
4442   echo "configure: failed program was:" >&5
4443   cat conftest.$ac_ext >&5
4444   rm -rf conftest*
4445   eval "ac_cv_lib_$ac_lib_var=no"
4446 fi
4447 rm -f conftest*
4448 LIBS="$ac_save_LIBS"
4449
4450 fi
4451 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4452   echo "$ac_t""yes" 1>&6
4453   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
4454 else
4455   echo "$ac_t""no" 1>&6
4456 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
4457 echo "configure:4458: checking for dld_link in -ldld" >&5
4458 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
4459 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4460   echo $ac_n "(cached) $ac_c" 1>&6
4461 else
4462   ac_save_LIBS="$LIBS"
4463 LIBS="-ldld  $LIBS"
4464 cat > conftest.$ac_ext <<EOF
4465 #line 4466 "configure"
4466 #include "confdefs.h"
4467 /* Override any gcc2 internal prototype to avoid an error.  */
4468 /* We use char because int might match the return type of a gcc2
4469     builtin and then its argument prototype would still apply.  */
4470 char dld_link();
4471
4472 int main() {
4473 dld_link()
4474 ; return 0; }
4475 EOF
4476 if { (eval echo configure:4477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4477   rm -rf conftest*
4478   eval "ac_cv_lib_$ac_lib_var=yes"
4479 else
4480   echo "configure: failed program was:" >&5
4481   cat conftest.$ac_ext >&5
4482   rm -rf conftest*
4483   eval "ac_cv_lib_$ac_lib_var=no"
4484 fi
4485 rm -f conftest*
4486 LIBS="$ac_save_LIBS"
4487
4488 fi
4489 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4490   echo "$ac_t""yes" 1>&6
4491   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
4492 else
4493   echo "$ac_t""no" 1>&6
4494 fi
4495
4496               
4497 fi
4498
4499             
4500 fi
4501
4502           
4503 fi
4504
4505         
4506 fi
4507
4508       
4509 fi
4510
4511     ;;
4512   esac
4513
4514   if test "x$lt_cv_dlopen" != xno; then
4515     enable_dlopen=yes
4516   else
4517     enable_dlopen=no
4518   fi
4519
4520   case $lt_cv_dlopen in
4521   dlopen)
4522     save_CPPFLAGS="$CPPFLAGS"
4523         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
4524
4525     save_LDFLAGS="$LDFLAGS"
4526     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
4527
4528     save_LIBS="$LIBS"
4529     LIBS="$lt_cv_dlopen_libs $LIBS"
4530
4531     echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
4532 echo "configure:4533: checking whether a program can dlopen itself" >&5
4533 if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then
4534   echo $ac_n "(cached) $ac_c" 1>&6
4535 else
4536           if test "$cross_compiling" = yes; then :
4537   lt_cv_dlopen_self=cross
4538 else
4539     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4540   lt_status=$lt_dlunknown
4541   cat > conftest.$ac_ext <<EOF
4542 #line 4543 "configure"
4543 #include "confdefs.h"
4544
4545 #if HAVE_DLFCN_H
4546 #include <dlfcn.h>
4547 #endif
4548
4549 #include <stdio.h>
4550
4551 #ifdef RTLD_GLOBAL
4552 #  define LT_DLGLOBAL           RTLD_GLOBAL
4553 #else
4554 #  ifdef DL_GLOBAL
4555 #    define LT_DLGLOBAL         DL_GLOBAL
4556 #  else
4557 #    define LT_DLGLOBAL         0
4558 #  endif
4559 #endif
4560
4561 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
4562    find out it does not work in some platform. */
4563 #ifndef LT_DLLAZY_OR_NOW
4564 #  ifdef RTLD_LAZY
4565 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
4566 #  else
4567 #    ifdef DL_LAZY
4568 #      define LT_DLLAZY_OR_NOW          DL_LAZY
4569 #    else
4570 #      ifdef RTLD_NOW
4571 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
4572 #      else
4573 #        ifdef DL_NOW
4574 #          define LT_DLLAZY_OR_NOW      DL_NOW
4575 #        else
4576 #          define LT_DLLAZY_OR_NOW      0
4577 #        endif
4578 #      endif
4579 #    endif
4580 #  endif
4581 #endif
4582
4583 #ifdef __cplusplus
4584 extern "C" void exit (int);
4585 #endif
4586
4587 void fnord() { int i=42;}
4588 int main ()
4589 {
4590   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
4591   int status = $lt_dlunknown;
4592
4593   if (self)
4594     {
4595       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
4596       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
4597       /* dlclose (self); */
4598     }
4599
4600     exit (status);
4601 }
4602 EOF
4603   if { (eval echo configure:4604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
4604     (./conftest; exit; ) 2>/dev/null
4605     lt_status=$?
4606     case x$lt_status in
4607       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
4608       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
4609       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
4610     esac
4611   else :
4612     # compilation failed
4613     lt_cv_dlopen_self=no
4614   fi
4615 fi
4616 rm -fr conftest*
4617
4618     
4619 fi
4620
4621 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
4622
4623     if test "x$lt_cv_dlopen_self" = xyes; then
4624       LDFLAGS="$LDFLAGS $link_static_flag"
4625       echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
4626 echo "configure:4627: checking whether a statically linked program can dlopen itself" >&5
4627 if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then
4628   echo $ac_n "(cached) $ac_c" 1>&6
4629 else
4630           if test "$cross_compiling" = yes; then :
4631   lt_cv_dlopen_self_static=cross
4632 else
4633     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4634   lt_status=$lt_dlunknown
4635   cat > conftest.$ac_ext <<EOF
4636 #line 4637 "configure"
4637 #include "confdefs.h"
4638
4639 #if HAVE_DLFCN_H
4640 #include <dlfcn.h>
4641 #endif
4642
4643 #include <stdio.h>
4644
4645 #ifdef RTLD_GLOBAL
4646 #  define LT_DLGLOBAL           RTLD_GLOBAL
4647 #else
4648 #  ifdef DL_GLOBAL
4649 #    define LT_DLGLOBAL         DL_GLOBAL
4650 #  else
4651 #    define LT_DLGLOBAL         0
4652 #  endif
4653 #endif
4654
4655 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
4656    find out it does not work in some platform. */
4657 #ifndef LT_DLLAZY_OR_NOW
4658 #  ifdef RTLD_LAZY
4659 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
4660 #  else
4661 #    ifdef DL_LAZY
4662 #      define LT_DLLAZY_OR_NOW          DL_LAZY
4663 #    else
4664 #      ifdef RTLD_NOW
4665 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
4666 #      else
4667 #        ifdef DL_NOW
4668 #          define LT_DLLAZY_OR_NOW      DL_NOW
4669 #        else
4670 #          define LT_DLLAZY_OR_NOW      0
4671 #        endif
4672 #      endif
4673 #    endif
4674 #  endif
4675 #endif
4676
4677 #ifdef __cplusplus
4678 extern "C" void exit (int);
4679 #endif
4680
4681 void fnord() { int i=42;}
4682 int main ()
4683 {
4684   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
4685   int status = $lt_dlunknown;
4686
4687   if (self)
4688     {
4689       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
4690       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
4691       /* dlclose (self); */
4692     }
4693
4694     exit (status);
4695 }
4696 EOF
4697   if { (eval echo configure:4698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
4698     (./conftest; exit; ) 2>/dev/null
4699     lt_status=$?
4700     case x$lt_status in
4701       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
4702       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
4703       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
4704     esac
4705   else :
4706     # compilation failed
4707     lt_cv_dlopen_self_static=no
4708   fi
4709 fi
4710 rm -fr conftest*
4711
4712       
4713 fi
4714
4715 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
4716     fi
4717
4718     CPPFLAGS="$save_CPPFLAGS"
4719     LDFLAGS="$save_LDFLAGS"
4720     LIBS="$save_LIBS"
4721     ;;
4722   esac
4723
4724   case $lt_cv_dlopen_self in
4725   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
4726   *) enable_dlopen_self=unknown ;;
4727   esac
4728
4729   case $lt_cv_dlopen_self_static in
4730   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
4731   *) enable_dlopen_self_static=unknown ;;
4732   esac
4733 fi
4734
4735
4736 if test "$enable_shared" = yes && test "$GCC" = yes; then
4737   case $archive_cmds in
4738   *'~'*)
4739     # FIXME: we may have to deal with multi-command sequences.
4740     ;;
4741   '$CC '*)
4742     # Test whether the compiler implicitly links with -lc since on some
4743     # systems, -lgcc has to come before -lc. If gcc already passes -lc
4744     # to ld, don't add -lc before -lgcc.
4745     echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
4746 echo "configure:4747: checking whether -lc should be explicitly linked in" >&5
4747     if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then
4748   echo $ac_n "(cached) $ac_c" 1>&6
4749 else
4750   $rm conftest*
4751     echo 'static int dummy;' > conftest.$ac_ext
4752
4753     if { (eval echo configure:4754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4754       soname=conftest
4755       lib=conftest
4756       libobjs=conftest.$ac_objext
4757       deplibs=
4758       wl=$lt_cv_prog_cc_wl
4759       compiler_flags=-v
4760       linker_flags=-v
4761       verstring=
4762       output_objdir=.
4763       libname=conftest
4764       save_allow_undefined_flag=$allow_undefined_flag
4765       allow_undefined_flag=
4766       if { (eval echo configure:4767: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; }
4767       then
4768         lt_cv_archive_cmds_need_lc=no
4769       else
4770         lt_cv_archive_cmds_need_lc=yes
4771       fi
4772       allow_undefined_flag=$save_allow_undefined_flag
4773     else
4774       cat conftest.err 1>&5
4775     fi
4776 fi
4777
4778     echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
4779     ;;
4780   esac
4781 fi
4782 need_lc=${lt_cv_archive_cmds_need_lc-yes}
4783
4784 # The second clause should only fire when bootstrapping the
4785 # libtool distribution, otherwise you forgot to ship ltmain.sh
4786 # with your package, and you will get complaints that there are
4787 # no rules to generate ltmain.sh.
4788 if test -f "$ltmain"; then
4789   :
4790 else
4791   # If there is no Makefile yet, we rely on a make rule to execute
4792   # `config.status --recheck' to rerun these tests and create the
4793   # libtool script then.
4794   test -f Makefile && make "$ltmain"
4795 fi
4796
4797 if test -f "$ltmain"; then
4798   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
4799   $rm -f "${ofile}T"
4800
4801   echo creating $ofile
4802
4803   # Now quote all the things that may contain metacharacters while being
4804   # careful not to overquote the AC_SUBSTed values.  We take copies of the
4805   # variables and quote the copies for generation of the libtool script.
4806   for var in echo old_CC old_CFLAGS \
4807     AR AR_FLAGS CC LD LN_S NM SHELL \
4808     reload_flag reload_cmds wl \
4809     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
4810     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
4811     library_names_spec soname_spec \
4812     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
4813     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
4814     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
4815     old_striplib striplib file_magic_cmd export_symbols_cmds \
4816     deplibs_check_method allow_undefined_flag no_undefined_flag \
4817     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
4818     global_symbol_to_c_name_address \
4819     hardcode_libdir_flag_spec hardcode_libdir_separator  \
4820     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4821     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
4822
4823     case $var in
4824     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
4825     old_postinstall_cmds | old_postuninstall_cmds | \
4826     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
4827     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
4828     postinstall_cmds | postuninstall_cmds | \
4829     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4830       # Double-quote double-evaled strings.
4831       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4832       ;;
4833     *)
4834       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4835       ;;
4836     esac
4837   done
4838
4839   cat <<__EOF__ > "${ofile}T"
4840 #! $SHELL
4841
4842 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4843 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4844 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
4845 #
4846 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
4847 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4848 #
4849 # This program is free software; you can redistribute it and/or modify
4850 # it under the terms of the GNU General Public License as published by
4851 # the Free Software Foundation; either version 2 of the License, or
4852 # (at your option) any later version.
4853 #
4854 # This program is distributed in the hope that it will be useful, but
4855 # WITHOUT ANY WARRANTY; without even the implied warranty of
4856 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
4857 # General Public License for more details.
4858 #
4859 # You should have received a copy of the GNU General Public License
4860 # along with this program; if not, write to the Free Software
4861 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
4862 #
4863 # As a special exception to the GNU General Public License, if you
4864 # distribute this file as part of a program that contains a
4865 # configuration script generated by Autoconf, you may include it under
4866 # the same distribution terms that you use for the rest of that program.
4867
4868 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
4869 Xsed="sed -e s/^X//"
4870
4871 # The HP-UX ksh and POSIX shell print the target directory to stdout
4872 # if CDPATH is set.
4873 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
4874
4875 # ### BEGIN LIBTOOL CONFIG
4876
4877 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4878
4879 # Shell to use when invoking shell scripts.
4880 SHELL=$lt_SHELL
4881
4882 # Whether or not to build shared libraries.
4883 build_libtool_libs=$enable_shared
4884
4885 # Whether or not to build static libraries.
4886 build_old_libs=$enable_static
4887
4888 # Whether or not to add -lc for building shared libraries.
4889 build_libtool_need_lc=$need_lc
4890
4891 # Whether or not to optimize for fast installation.
4892 fast_install=$enable_fast_install
4893
4894 # The host system.
4895 host_alias=$host_alias
4896 host=$host
4897
4898 # An echo program that does not interpret backslashes.
4899 echo=$lt_echo
4900
4901 # The archiver.
4902 AR=$lt_AR
4903 AR_FLAGS=$lt_AR_FLAGS
4904
4905 # The default C compiler.
4906 CC=$lt_CC
4907
4908 # Is the compiler the GNU C compiler?
4909 with_gcc=$GCC
4910
4911 # The linker used to build libraries.
4912 LD=$lt_LD
4913
4914 # Whether we need hard or soft links.
4915 LN_S=$lt_LN_S
4916
4917 # A BSD-compatible nm program.
4918 NM=$lt_NM
4919
4920 # A symbol stripping program
4921 STRIP=$STRIP
4922
4923 # Used to examine libraries when file_magic_cmd begins "file"
4924 MAGIC_CMD=$MAGIC_CMD
4925
4926 # Used on cygwin: DLL creation program.
4927 DLLTOOL="$DLLTOOL"
4928
4929 # Used on cygwin: object dumper.
4930 OBJDUMP="$OBJDUMP"
4931
4932 # Used on cygwin: assembler.
4933 AS="$AS"
4934
4935 # The name of the directory that contains temporary libtool files.
4936 objdir=$objdir
4937
4938 # How to create reloadable object files.
4939 reload_flag=$lt_reload_flag
4940 reload_cmds=$lt_reload_cmds
4941
4942 # How to pass a linker flag through the compiler.
4943 wl=$lt_wl
4944
4945 # Object file suffix (normally "o").
4946 objext="$ac_objext"
4947
4948 # Old archive suffix (normally "a").
4949 libext="$libext"
4950
4951 # Executable file suffix (normally "").
4952 exeext="$exeext"
4953
4954 # Additional compiler flags for building library objects.
4955 pic_flag=$lt_pic_flag
4956 pic_mode=$pic_mode
4957
4958 # Does compiler simultaneously support -c and -o options?
4959 compiler_c_o=$lt_compiler_c_o
4960
4961 # Can we write directly to a .lo ?
4962 compiler_o_lo=$lt_compiler_o_lo
4963
4964 # Must we lock files when doing compilation ?
4965 need_locks=$lt_need_locks
4966
4967 # Do we need the lib prefix for modules?
4968 need_lib_prefix=$need_lib_prefix
4969
4970 # Do we need a version for libraries?
4971 need_version=$need_version
4972
4973 # Whether dlopen is supported.
4974 dlopen_support=$enable_dlopen
4975
4976 # Whether dlopen of programs is supported.
4977 dlopen_self=$enable_dlopen_self
4978
4979 # Whether dlopen of statically linked programs is supported.
4980 dlopen_self_static=$enable_dlopen_self_static
4981
4982 # Compiler flag to prevent dynamic linking.
4983 link_static_flag=$lt_link_static_flag
4984
4985 # Compiler flag to turn off builtin functions.
4986 no_builtin_flag=$lt_no_builtin_flag
4987
4988 # Compiler flag to allow reflexive dlopens.
4989 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
4990
4991 # Compiler flag to generate shared objects directly from archives.
4992 whole_archive_flag_spec=$lt_whole_archive_flag_spec
4993
4994 # Compiler flag to generate thread-safe objects.
4995 thread_safe_flag_spec=$lt_thread_safe_flag_spec
4996
4997 # Library versioning type.
4998 version_type=$version_type
4999
5000 # Format of library name prefix.
5001 libname_spec=$lt_libname_spec
5002
5003 # List of archive names.  First name is the real one, the rest are links.
5004 # The last name is the one that the linker finds with -lNAME.
5005 library_names_spec=$lt_library_names_spec
5006
5007 # The coded name of the library, if different from the real name.
5008 soname_spec=$lt_soname_spec
5009
5010 # Commands used to build and install an old-style archive.
5011 RANLIB=$lt_RANLIB
5012 old_archive_cmds=$lt_old_archive_cmds
5013 old_postinstall_cmds=$lt_old_postinstall_cmds
5014 old_postuninstall_cmds=$lt_old_postuninstall_cmds
5015
5016 # Create an old-style archive from a shared archive.
5017 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
5018
5019 # Create a temporary old-style archive to link instead of a shared archive.
5020 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
5021
5022 # Commands used to build and install a shared archive.
5023 archive_cmds=$lt_archive_cmds
5024 archive_expsym_cmds=$lt_archive_expsym_cmds
5025 postinstall_cmds=$lt_postinstall_cmds
5026 postuninstall_cmds=$lt_postuninstall_cmds
5027
5028 # Commands to strip libraries.
5029 old_striplib=$lt_old_striplib
5030 striplib=$lt_striplib
5031
5032 # Method to check whether dependent libraries are shared objects.
5033 deplibs_check_method=$lt_deplibs_check_method
5034
5035 # Command to use when deplibs_check_method == file_magic.
5036 file_magic_cmd=$lt_file_magic_cmd
5037
5038 # Flag that allows shared libraries with undefined symbols to be built.
5039 allow_undefined_flag=$lt_allow_undefined_flag
5040
5041 # Flag that forces no undefined symbols.
5042 no_undefined_flag=$lt_no_undefined_flag
5043
5044 # Commands used to finish a libtool library installation in a directory.
5045 finish_cmds=$lt_finish_cmds
5046
5047 # Same as above, but a single script fragment to be evaled but not shown.
5048 finish_eval=$lt_finish_eval
5049
5050 # Take the output of nm and produce a listing of raw symbols and C names.
5051 global_symbol_pipe=$lt_global_symbol_pipe
5052
5053 # Transform the output of nm in a proper C declaration
5054 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
5055
5056 # Transform the output of nm in a C name address pair
5057 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
5058
5059 # This is the shared library runtime path variable.
5060 runpath_var=$runpath_var
5061
5062 # This is the shared library path variable.
5063 shlibpath_var=$shlibpath_var
5064
5065 # Is shlibpath searched before the hard-coded library search path?
5066 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5067
5068 # How to hardcode a shared library path into an executable.
5069 hardcode_action=$hardcode_action
5070
5071 # Whether we should hardcode library paths into libraries.
5072 hardcode_into_libs=$hardcode_into_libs
5073
5074 # Flag to hardcode \$libdir into a binary during linking.
5075 # This must work even if \$libdir does not exist.
5076 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
5077
5078 # Whether we need a single -rpath flag with a separated argument.
5079 hardcode_libdir_separator=$lt_hardcode_libdir_separator
5080
5081 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
5082 # resulting binary.
5083 hardcode_direct=$hardcode_direct
5084
5085 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5086 # resulting binary.
5087 hardcode_minus_L=$hardcode_minus_L
5088
5089 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5090 # the resulting binary.
5091 hardcode_shlibpath_var=$hardcode_shlibpath_var
5092
5093 # Variables whose values should be saved in libtool wrapper scripts and
5094 # restored at relink time.
5095 variables_saved_for_relink="$variables_saved_for_relink"
5096
5097 # Whether libtool must link a program against all its dependency libraries.
5098 link_all_deplibs=$link_all_deplibs
5099
5100 # Compile-time system search path for libraries
5101 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5102
5103 # Run-time system search path for libraries
5104 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5105
5106 # Fix the shell variable \$srcfile for the compiler.
5107 fix_srcfile_path="$fix_srcfile_path"
5108
5109 # Set to yes if exported symbols are required.
5110 always_export_symbols=$always_export_symbols
5111
5112 # The commands to list exported symbols.
5113 export_symbols_cmds=$lt_export_symbols_cmds
5114
5115 # The commands to extract the exported symbol list from a shared archive.
5116 extract_expsyms_cmds=$lt_extract_expsyms_cmds
5117
5118 # Symbols that should not be listed in the preloaded symbols.
5119 exclude_expsyms=$lt_exclude_expsyms
5120
5121 # Symbols that must always be exported.
5122 include_expsyms=$lt_include_expsyms
5123
5124 # ### END LIBTOOL CONFIG
5125
5126 __EOF__
5127
5128   case $host_os in
5129   aix3*)
5130     cat <<\EOF >> "${ofile}T"
5131
5132 # AIX sometimes has problems with the GCC collect2 program.  For some
5133 # reason, if we set the COLLECT_NAMES environment variable, the problems
5134 # vanish in a puff of smoke.
5135 if test "X${COLLECT_NAMES+set}" != Xset; then
5136   COLLECT_NAMES=
5137   export COLLECT_NAMES
5138 fi
5139 EOF
5140     ;;
5141   esac
5142
5143   case $host_os in
5144   cygwin* | mingw* | pw32* | os2*)
5145     cat <<'EOF' >> "${ofile}T"
5146       # This is a source program that is used to create dlls on Windows
5147       # Don't remove nor modify the starting and closing comments
5148 # /* ltdll.c starts here */
5149 # #define WIN32_LEAN_AND_MEAN
5150 # #include <windows.h>
5151 # #undef WIN32_LEAN_AND_MEAN
5152 # #include <stdio.h>
5153 #
5154 # #ifndef __CYGWIN__
5155 # #  ifdef __CYGWIN32__
5156 # #    define __CYGWIN__ __CYGWIN32__
5157 # #  endif
5158 # #endif
5159 #
5160 # #ifdef __cplusplus
5161 # extern "C" {
5162 # #endif
5163 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
5164 # #ifdef __cplusplus
5165 # }
5166 # #endif
5167 #
5168 # #ifdef __CYGWIN__
5169 # #include <cygwin/cygwin_dll.h>
5170 # DECLARE_CYGWIN_DLL( DllMain );
5171 # #endif
5172 # HINSTANCE __hDllInstance_base;
5173 #
5174 # BOOL APIENTRY
5175 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
5176 # {
5177 #   __hDllInstance_base = hInst;
5178 #   return TRUE;
5179 # }
5180 # /* ltdll.c ends here */
5181         # This is a source program that is used to create import libraries
5182         # on Windows for dlls which lack them. Don't remove nor modify the
5183         # starting and closing comments
5184 # /* impgen.c starts here */
5185 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
5186 #
5187 #  This file is part of GNU libtool.
5188 #
5189 #  This program is free software; you can redistribute it and/or modify
5190 #  it under the terms of the GNU General Public License as published by
5191 #  the Free Software Foundation; either version 2 of the License, or
5192 #  (at your option) any later version.
5193 #
5194 #  This program is distributed in the hope that it will be useful,
5195 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
5196 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
5197 #  GNU General Public License for more details.
5198 #
5199 #  You should have received a copy of the GNU General Public License
5200 #  along with this program; if not, write to the Free Software
5201 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5202 #  */
5203 #
5204 # #include <stdio.h>            /* for printf() */
5205 # #include <unistd.h>           /* for open(), lseek(), read() */
5206 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
5207 # #include <string.h>           /* for strdup() */
5208 #
5209 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
5210 # #ifndef O_BINARY
5211 # #define O_BINARY 0
5212 # #endif
5213 #
5214 # static unsigned int
5215 # pe_get16 (fd, offset)
5216 #      int fd;
5217 #      int offset;
5218 # {
5219 #   unsigned char b[2];
5220 #   lseek (fd, offset, SEEK_SET);
5221 #   read (fd, b, 2);
5222 #   return b[0] + (b[1]<<8);
5223 # }
5224 #
5225 # static unsigned int
5226 # pe_get32 (fd, offset)
5227 #     int fd;
5228 #     int offset;
5229 # {
5230 #   unsigned char b[4];
5231 #   lseek (fd, offset, SEEK_SET);
5232 #   read (fd, b, 4);
5233 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5234 # }
5235 #
5236 # static unsigned int
5237 # pe_as32 (ptr)
5238 #      void *ptr;
5239 # {
5240 #   unsigned char *b = ptr;
5241 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5242 # }
5243 #
5244 # int
5245 # main (argc, argv)
5246 #     int argc;
5247 #     char *argv[];
5248 # {
5249 #     int dll;
5250 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
5251 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
5252 #     unsigned long name_rvas, nexp;
5253 #     unsigned char *expdata, *erva;
5254 #     char *filename, *dll_name;
5255 #
5256 #     filename = argv[1];
5257 #
5258 #     dll = open(filename, O_RDONLY|O_BINARY);
5259 #     if (dll < 1)
5260 #       return 1;
5261 #
5262 #     dll_name = filename;
5263 #
5264 #     for (i=0; filename[i]; i++)
5265 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
5266 #           dll_name = filename + i +1;
5267 #
5268 #     pe_header_offset = pe_get32 (dll, 0x3c);
5269 #     opthdr_ofs = pe_header_offset + 4 + 20;
5270 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
5271 #
5272 #     if (num_entries < 1) /* no exports */
5273 #       return 1;
5274 #
5275 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
5276 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
5277 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
5278 #     secptr = (pe_header_offset + 4 + 20 +
5279 #             pe_get16 (dll, pe_header_offset + 4 + 16));
5280 #
5281 #     expptr = 0;
5282 #     for (i = 0; i < nsections; i++)
5283 #     {
5284 #       char sname[8];
5285 #       unsigned long secptr1 = secptr + 40 * i;
5286 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
5287 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
5288 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
5289 #       lseek(dll, secptr1, SEEK_SET);
5290 #       read(dll, sname, 8);
5291 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
5292 #       {
5293 #           expptr = fptr + (export_rva - vaddr);
5294 #           if (export_rva + export_size > vaddr + vsize)
5295 #               export_size = vsize - (export_rva - vaddr);
5296 #           break;
5297 #       }
5298 #     }
5299 #
5300 #     expdata = (unsigned char*)malloc(export_size);
5301 #     lseek (dll, expptr, SEEK_SET);
5302 #     read (dll, expdata, export_size);
5303 #     erva = expdata - export_rva;
5304 #
5305 #     nexp = pe_as32 (expdata+24);
5306 #     name_rvas = pe_as32 (expdata+32);
5307 #
5308 #     printf ("EXPORTS\n");
5309 #     for (i = 0; i<nexp; i++)
5310 #     {
5311 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
5312 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
5313 #     }
5314 #
5315 #     return 0;
5316 # }
5317 # /* impgen.c ends here */
5318
5319 EOF
5320     ;;
5321   esac
5322
5323   # We use sed instead of cat because bash on DJGPP gets confused if
5324   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
5325   # text mode, it properly converts lines to CR/LF.  This bash problem
5326   # is reportedly fixed, but why not run on old versions too?
5327   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
5328
5329   mv -f "${ofile}T" "$ofile" || \
5330     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
5331   chmod +x "$ofile"
5332 fi
5333
5334
5335
5336
5337
5338 # This can be used to rebuild libtool when needed
5339 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
5340
5341 # Always use our own libtool.
5342 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5343
5344 # Prevent multiple expansion
5345
5346
5347  for ac_prog in gzip uncompress compress
5348 do
5349 # Extract the first word of "$ac_prog", so it can be a program name with args.
5350 set dummy $ac_prog; ac_word=$2
5351 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5352 echo "configure:5353: checking for $ac_word" >&5
5353 if eval "test \"`echo '$''{'ac_cv_prog_UNCOMPRESS'+set}'`\" = set"; then
5354   echo $ac_n "(cached) $ac_c" 1>&6
5355 else
5356   if test -n "$UNCOMPRESS"; then
5357   ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
5358 else
5359   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5360   ac_dummy="$PATH"
5361   for ac_dir in $ac_dummy; do
5362     test -z "$ac_dir" && ac_dir=.
5363     if test -f $ac_dir/$ac_word; then
5364       ac_cv_prog_UNCOMPRESS="$ac_prog"
5365       break
5366     fi
5367   done
5368   IFS="$ac_save_ifs"
5369 fi
5370 fi
5371 UNCOMPRESS="$ac_cv_prog_UNCOMPRESS"
5372 if test -n "$UNCOMPRESS"; then
5373   echo "$ac_t""$UNCOMPRESS" 1>&6
5374 else
5375   echo "$ac_t""no" 1>&6
5376 fi
5377
5378 test -n "$UNCOMPRESS" && break
5379 done
5380
5381
5382  
5383
5384 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
5385 echo "configure:5386: checking for executable suffix" >&5
5386 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
5387   echo $ac_n "(cached) $ac_c" 1>&6
5388 else
5389   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
5390   ac_cv_exeext=.exe
5391 else
5392   rm -f conftest*
5393   echo 'int main () { return 0; }' > conftest.$ac_ext
5394   ac_cv_exeext=
5395   if { (eval echo configure:5396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
5396     for file in conftest.*; do
5397       case $file in
5398       *.c | *.o | *.obj) ;;
5399       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
5400       esac
5401     done
5402   else
5403     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
5404   fi
5405   rm -f conftest*
5406   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
5407 fi
5408 fi
5409
5410 EXEEXT=""
5411 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
5412 echo "$ac_t""${ac_cv_exeext}" 1>&6
5413 ac_exeext=$EXEEXT
5414
5415
5416
5417
5418 # Make sure we can run config.sub.
5419 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
5420 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
5421 fi
5422
5423 echo $ac_n "checking host system type""... $ac_c" 1>&6
5424 echo "configure:5425: checking host system type" >&5
5425
5426 host_alias=$host
5427 case "$host_alias" in
5428 NONE)
5429   case $nonopt in
5430   NONE)
5431     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
5432     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
5433     fi ;;
5434   *) host_alias=$nonopt ;;
5435   esac ;;
5436 esac
5437
5438 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
5439 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5440 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5441 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5442 echo "$ac_t""$host" 1>&6
5443
5444
5445
5446 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
5447 echo "configure:5448: checking for executable suffix" >&5
5448 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
5449   echo $ac_n "(cached) $ac_c" 1>&6
5450 else
5451   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
5452   ac_cv_exeext=.exe
5453 else
5454   rm -f conftest*
5455   echo 'int main () { return 0; }' > conftest.$ac_ext
5456   ac_cv_exeext=
5457   if { (eval echo configure:5458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
5458     for file in conftest.*; do
5459       case $file in
5460       *.c | *.o | *.obj) ;;
5461       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
5462       esac
5463     done
5464   else
5465     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
5466   fi
5467   rm -f conftest*
5468   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
5469 fi
5470 fi
5471
5472 EXEEXT=""
5473 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
5474 echo "$ac_t""${ac_cv_exeext}" 1>&6
5475 ac_exeext=$EXEEXT
5476
5477
5478 echo $ac_n "checking for target system""... $ac_c" 1>&6
5479 echo "configure:5480: checking for target system" >&5
5480 CYGWIN=
5481 MINGW=
5482 case $host_os in
5483     *cygwin* ) CYGWIN=yes;;
5484     *mingw* ) MINGW=yes;;
5485 esac
5486
5487 AR=ar
5488 if test "x$CXX" == "xi586-mingw32msvc-g++"; then
5489 #fix for the debian distribution of mingw
5490     if test -x "/usr/i586-mingw32msvc/bin/ar";then
5491         AR="/usr/i586-mingw32msvc/bin/ar"
5492     fi
5493     if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
5494         RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
5495     fi
5496 fi
5497
5498
5499
5500 if test "x${CYGWIN}" = "xyes"; then
5501     cat >> confdefs.h <<EOF
5502 #define CYGWIN 1
5503 EOF
5504
5505     echo "$ac_t""cygwin" 1>&6
5506 else
5507     if test "x${MINGW}" = "xyes"; then
5508         cat >> confdefs.h <<EOF
5509 #define MINGW 1
5510 EOF
5511
5512         WIN32=1
5513         cat >> confdefs.h <<EOF
5514 #define WIN32 1
5515 EOF
5516
5517         LIBS="$LIBS -lws2_32"
5518         echo "$ac_t""mingw" 1>&6
5519     else
5520         LINUX=1
5521         export LINUX
5522         cat >> confdefs.h <<EOF
5523 #define LINUX 1
5524 EOF
5525
5526         echo "$ac_t""" 1>&6
5527     fi
5528 fi
5529
5530
5531 if test "x${MINGW}" != "xyes"; then
5532     cat >> confdefs.h <<EOF
5533 #define O_BINARY 0
5534 EOF
5535
5536 fi
5537 # The following tries to make use of includes and libraries in
5538 # /usr/local, too. Notice: A -I/usr/local/include might break
5539 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include, 
5540 # especially on systems which link /usr/local to /usr, so it has yet
5541 # to be seen how useful this is.
5542 if test -d /usr/local/lib; then
5543     LDFLAGS="$LDFLAGS -L/usr/local/lib"
5544 fi
5545 if test -d /usr/local/include; then
5546 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
5547 #   CPPFLAGS="$CPPFLAGS -I/usr/local/include"
5548     echo > /dev/null
5549 fi
5550 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
5551     # if the user has a special prefix (like /opt), there might also be $prefix/lib
5552     # and $prefix/include, which should be included in our search paths for libraries
5553     # and includes.
5554     LDFLAGS="$LDFLAGS -L${libdir}"
5555     CPPFLAGS="$CPPFLAGS -I${includedir}"
5556     # TODO- test whether gcc still works after this
5557 fi
5558
5559  echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
5560 echo "configure:5561: checking for sin in -lm" >&5
5561 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
5562 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5563   echo $ac_n "(cached) $ac_c" 1>&6
5564 else
5565   ac_save_LIBS="$LIBS"
5566 LIBS="-lm  $LIBS"
5567 cat > conftest.$ac_ext <<EOF
5568 #line 5569 "configure"
5569 #include "confdefs.h"
5570 /* Override any gcc2 internal prototype to avoid an error.  */
5571 /* We use char because int might match the return type of a gcc2
5572     builtin and then its argument prototype would still apply.  */
5573 char sin();
5574
5575 int main() {
5576 sin()
5577 ; return 0; }
5578 EOF
5579 if { (eval echo configure:5580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5580   rm -rf conftest*
5581   eval "ac_cv_lib_$ac_lib_var=yes"
5582 else
5583   echo "configure: failed program was:" >&5
5584   cat conftest.$ac_ext >&5
5585   rm -rf conftest*
5586   eval "ac_cv_lib_$ac_lib_var=no"
5587 fi
5588 rm -f conftest*
5589 LIBS="$ac_save_LIBS"
5590
5591 fi
5592 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5593   echo "$ac_t""yes" 1>&6
5594     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5595     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5596   cat >> confdefs.h <<EOF
5597 #define $ac_tr_lib 1
5598 EOF
5599
5600   LIBS="-lm $LIBS"
5601
5602 else
5603   echo "$ac_t""no" 1>&6
5604 echo "Error: Math library not found.";
5605  exit;
5606  
5607 fi
5608
5609  echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
5610 echo "configure:5611: checking for deflate in -lz" >&5
5611 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
5612 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5613   echo $ac_n "(cached) $ac_c" 1>&6
5614 else
5615   ac_save_LIBS="$LIBS"
5616 LIBS="-lz  $LIBS"
5617 cat > conftest.$ac_ext <<EOF
5618 #line 5619 "configure"
5619 #include "confdefs.h"
5620 /* Override any gcc2 internal prototype to avoid an error.  */
5621 /* We use char because int might match the return type of a gcc2
5622     builtin and then its argument prototype would still apply.  */
5623 char deflate();
5624
5625 int main() {
5626 deflate()
5627 ; return 0; }
5628 EOF
5629 if { (eval echo configure:5630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5630   rm -rf conftest*
5631   eval "ac_cv_lib_$ac_lib_var=yes"
5632 else
5633   echo "configure: failed program was:" >&5
5634   cat conftest.$ac_ext >&5
5635   rm -rf conftest*
5636   eval "ac_cv_lib_$ac_lib_var=no"
5637 fi
5638 rm -f conftest*
5639 LIBS="$ac_save_LIBS"
5640
5641 fi
5642 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5643   echo "$ac_t""yes" 1>&6
5644     ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5645     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5646   cat >> confdefs.h <<EOF
5647 #define $ac_tr_lib 1
5648 EOF
5649
5650   LIBS="-lz $LIBS"
5651
5652 else
5653   echo "$ac_t""no" 1>&6
5654 DISABLEPNG2SWF=true;
5655  MISSINGLIBS="${MISSINGLIBS} zlib"
5656  ZLIBMISSING=true;
5657  
5658 fi
5659
5660  echo $ac_n "checking for jpeg_write_raw_data in -ljpeg""... $ac_c" 1>&6
5661 echo "configure:5662: checking for jpeg_write_raw_data in -ljpeg" >&5
5662 ac_lib_var=`echo jpeg'_'jpeg_write_raw_data | sed 'y%./+-%__p_%'`
5663 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5664   echo $ac_n "(cached) $ac_c" 1>&6
5665 else
5666   ac_save_LIBS="$LIBS"
5667 LIBS="-ljpeg  $LIBS"
5668 cat > conftest.$ac_ext <<EOF
5669 #line 5670 "configure"
5670 #include "confdefs.h"
5671 /* Override any gcc2 internal prototype to avoid an error.  */
5672 /* We use char because int might match the return type of a gcc2
5673     builtin and then its argument prototype would still apply.  */
5674 char jpeg_write_raw_data();
5675
5676 int main() {
5677 jpeg_write_raw_data()
5678 ; return 0; }
5679 EOF
5680 if { (eval echo configure:5681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5681   rm -rf conftest*
5682   eval "ac_cv_lib_$ac_lib_var=yes"
5683 else
5684   echo "configure: failed program was:" >&5
5685   cat conftest.$ac_ext >&5
5686   rm -rf conftest*
5687   eval "ac_cv_lib_$ac_lib_var=no"
5688 fi
5689 rm -f conftest*
5690 LIBS="$ac_save_LIBS"
5691
5692 fi
5693 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5694   echo "$ac_t""yes" 1>&6
5695     ac_tr_lib=HAVE_LIB`echo jpeg | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5696     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5697   cat >> confdefs.h <<EOF
5698 #define $ac_tr_lib 1
5699 EOF
5700
5701   LIBS="-ljpeg $LIBS"
5702
5703 else
5704   echo "$ac_t""no" 1>&6
5705 DISABLEPDF2SWF=true;
5706  DISABLEJPEG2SWF=true;
5707  MISSINGLIBS="${MISSINGLIBS} jpeglib"
5708  
5709 fi
5710
5711  echo $ac_n "checking for T1_LoadFont in -lt1""... $ac_c" 1>&6
5712 echo "configure:5713: checking for T1_LoadFont in -lt1" >&5
5713 ac_lib_var=`echo t1'_'T1_LoadFont | sed 'y%./+-%__p_%'`
5714 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5715   echo $ac_n "(cached) $ac_c" 1>&6
5716 else
5717   ac_save_LIBS="$LIBS"
5718 LIBS="-lt1  $LIBS"
5719 cat > conftest.$ac_ext <<EOF
5720 #line 5721 "configure"
5721 #include "confdefs.h"
5722 /* Override any gcc2 internal prototype to avoid an error.  */
5723 /* We use char because int might match the return type of a gcc2
5724     builtin and then its argument prototype would still apply.  */
5725 char T1_LoadFont();
5726
5727 int main() {
5728 T1_LoadFont()
5729 ; return 0; }
5730 EOF
5731 if { (eval echo configure:5732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5732   rm -rf conftest*
5733   eval "ac_cv_lib_$ac_lib_var=yes"
5734 else
5735   echo "configure: failed program was:" >&5
5736   cat conftest.$ac_ext >&5
5737   rm -rf conftest*
5738   eval "ac_cv_lib_$ac_lib_var=no"
5739 fi
5740 rm -f conftest*
5741 LIBS="$ac_save_LIBS"
5742
5743 fi
5744 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5745   echo "$ac_t""yes" 1>&6
5746     ac_tr_lib=HAVE_LIB`echo t1 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5747     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5748   cat >> confdefs.h <<EOF
5749 #define $ac_tr_lib 1
5750 EOF
5751
5752   LIBS="-lt1 $LIBS"
5753
5754 else
5755   echo "$ac_t""no" 1>&6
5756 DISABLEPDF2SWF=true;
5757  MISSINGLIBS="${MISSINGLIBS} t1lib"
5758  
5759 fi
5760
5761
5762
5763 echo $ac_n "checking for byte order""... $ac_c" 1>&6
5764 echo "configure:5765: checking for byte order" >&5
5765 if test "$cross_compiling" = yes; then
5766   CROSSCOMPILE=1
5767 else
5768   cat > conftest.$ac_ext <<EOF
5769 #line 5770 "configure"
5770 #include "confdefs.h"
5771
5772 int main (int argc, char *argv[])
5773 {
5774     int i = 1;
5775     return *(char*)&i;
5776 }
5777
5778 EOF
5779 if { (eval echo configure:5780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5780 then
5781   BIGENDIAN=1
5782 else
5783   echo "configure: failed program was:" >&5
5784   cat conftest.$ac_ext >&5
5785   rm -fr conftest*
5786   LITTLEENDIAN=1
5787 fi
5788 rm -fr conftest*
5789 fi
5790
5791 export CROSSCOMPILE 
5792
5793 if test "x${CROSSCOMPILE}" = "x1"; then
5794  echo "$ac_t""we are cross compiling- trying to guess from system type" 1>&6
5795  
5796 # Do some error checking and defaulting for the host and target type.
5797 # The inputs are:
5798 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
5799 #
5800 # The rules are:
5801 # 1. You are not allowed to specify --host, --target, and nonopt at the
5802 #    same time.
5803 # 2. Host defaults to nonopt.
5804 # 3. If nonopt is not specified, then host defaults to the current host,
5805 #    as determined by config.guess.
5806 # 4. Target and build default to nonopt.
5807 # 5. If nonopt is not specified, then target and build default to host.
5808
5809 # The aliases save the names the user supplied, while $host etc.
5810 # will get canonicalized.
5811 case $host---$target---$nonopt in
5812 NONE---*---* | *---NONE---* | *---*---NONE) ;;
5813 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
5814 esac
5815
5816
5817 # Make sure we can run config.sub.
5818 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
5819 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
5820 fi
5821
5822 echo $ac_n "checking host system type""... $ac_c" 1>&6
5823 echo "configure:5824: checking host system type" >&5
5824
5825 host_alias=$host
5826 case "$host_alias" in
5827 NONE)
5828   case $nonopt in
5829   NONE)
5830     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
5831     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
5832     fi ;;
5833   *) host_alias=$nonopt ;;
5834   esac ;;
5835 esac
5836
5837 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
5838 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5839 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5840 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5841 echo "$ac_t""$host" 1>&6
5842
5843 echo $ac_n "checking target system type""... $ac_c" 1>&6
5844 echo "configure:5845: checking target system type" >&5
5845
5846 target_alias=$target
5847 case "$target_alias" in
5848 NONE)
5849   case $nonopt in
5850   NONE) target_alias=$host_alias ;;
5851   *) target_alias=$nonopt ;;
5852   esac ;;
5853 esac
5854
5855 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
5856 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5857 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5858 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5859 echo "$ac_t""$target" 1>&6
5860
5861 echo $ac_n "checking build system type""... $ac_c" 1>&6
5862 echo "configure:5863: checking build system type" >&5
5863
5864 build_alias=$build
5865 case "$build_alias" in
5866 NONE)
5867   case $nonopt in
5868   NONE) build_alias=$host_alias ;;
5869   *) build_alias=$nonopt ;;
5870   esac ;;
5871 esac
5872
5873 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
5874 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5875 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5876 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5877 echo "$ac_t""$build" 1>&6
5878
5879 test "$host_alias" != "$target_alias" &&
5880   test "$program_prefix$program_suffix$program_transform_name" = \
5881     NONENONEs,x,x, &&
5882   program_prefix=${target_alias}-
5883
5884  echo $ac_n "checking for byte order, try 2""... $ac_c" 1>&6
5885 echo "configure:5886: checking for byte order, try 2" >&5
5886  case "${target}" in
5887   *86* | *-pc-* )
5888      LITTLEENDIAN=1
5889      ;;
5890   *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
5891      BIGENDIAN=1
5892      ;;
5893  esac
5894 fi
5895
5896 export LITTLEENDIAN
5897 if test "x${LITTLEENDIAN}" = "x1"; then
5898 echo "$ac_t""little endian" 1>&6
5899 BYTEORDERCHECKOK=1
5900 fi
5901 export BIGENDIAN
5902 if test "x${BIGENDIAN}" = "x1"; then
5903 echo "$ac_t""big endian" 1>&6
5904 BYTEORDERCHECKOK=1
5905 WORDS_BIGENDIAN=1
5906 export WORDS_BIGENDIAN
5907 cat >> confdefs.h <<EOF
5908 #define WORDS_BIGENDIAN 1
5909 EOF
5910
5911 fi
5912 if test "x${BYTEORDERCHECKOK}" != "x1"; then
5913 echo "$ac_t""unknown" 1>&6
5914 echo Byte order could not determined.
5915 exit 1
5916 fi
5917
5918
5919
5920 echo $ac_n "checking whether system() can handle command substitution""... $ac_c" 1>&6
5921 echo "configure:5922: checking whether system() can handle command substitution" >&5
5922 if test "$cross_compiling" = yes; then
5923   CROSSCOMPILE=1
5924 else
5925   cat > conftest.$ac_ext <<EOF
5926 #line 5927 "configure"
5927 #include "confdefs.h"
5928
5929 #include "stdlib.h"
5930 int main (int argc, char*argv[])
5931 {
5932     return system("test `touch config.tmp2`");
5933 }
5934
5935 EOF
5936 if { (eval echo configure:5937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5937 then
5938   OK=OK
5939 else
5940   echo "configure: failed program was:" >&5
5941   cat conftest.$ac_ext >&5
5942 fi
5943 rm -fr conftest*
5944 fi
5945
5946
5947 if test "x${OK}" = "xOK";then
5948     test -f config.tmp2 || OK=
5949 fi
5950
5951 if test "x${CROSSCOMPILE}" = "x1";then
5952     OK=OK;
5953 fi
5954 if test "x${OK}" = "xOK";then
5955 rm -f config.tmp2
5956 echo "$ac_t""yes" 1>&6
5957 SYSTEM_BACKTICKS=1
5958 export SYSTEM_BACKTICKS
5959 cat >> confdefs.h <<EOF
5960 #define SYSTEM_BACKTICKS 1
5961 EOF
5962
5963 else
5964 echo "$ac_t""no" 1>&6
5965 fi
5966
5967
5968
5969 if test "$program_transform_name" = s,x,x,; then
5970   program_transform_name=
5971 else
5972   # Double any \ or $.  echo might interpret backslashes.
5973   cat <<\EOF_SED > conftestsed
5974 s,\\,\\\\,g; s,\$,$$,g
5975 EOF_SED
5976   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
5977   rm -f conftestsed
5978 fi
5979 test "$program_prefix" != NONE &&
5980   program_transform_name="s,^,${program_prefix},; $program_transform_name"
5981 # Use a double $ so make ignores it.
5982 test "$program_suffix" != NONE &&
5983   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
5984
5985 # sed with no file args requires a program.
5986 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
5987
5988
5989  
5990  ac_header_dirent=no
5991 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
5992 do
5993 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5994 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
5995 echo "configure:5996: checking for $ac_hdr that defines DIR" >&5
5996 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
5997   echo $ac_n "(cached) $ac_c" 1>&6
5998 else
5999   cat > conftest.$ac_ext <<EOF
6000 #line 6001 "configure"
6001 #include "confdefs.h"
6002 #include <sys/types.h>
6003 #include <$ac_hdr>
6004 int main() {
6005 DIR *dirp = 0;
6006 ; return 0; }
6007 EOF
6008 if { (eval echo configure:6009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6009   rm -rf conftest*
6010   eval "ac_cv_header_dirent_$ac_safe=yes"
6011 else
6012   echo "configure: failed program was:" >&5
6013   cat conftest.$ac_ext >&5
6014   rm -rf conftest*
6015   eval "ac_cv_header_dirent_$ac_safe=no"
6016 fi
6017 rm -f conftest*
6018 fi
6019 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
6020   echo "$ac_t""yes" 1>&6
6021     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6022   cat >> confdefs.h <<EOF
6023 #define $ac_tr_hdr 1
6024 EOF
6025  ac_header_dirent=$ac_hdr; break
6026 else
6027   echo "$ac_t""no" 1>&6
6028 fi
6029 done
6030 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6031 if test $ac_header_dirent = dirent.h; then
6032 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
6033 echo "configure:6034: checking for opendir in -ldir" >&5
6034 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
6035 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6036   echo $ac_n "(cached) $ac_c" 1>&6
6037 else
6038   ac_save_LIBS="$LIBS"
6039 LIBS="-ldir  $LIBS"
6040 cat > conftest.$ac_ext <<EOF
6041 #line 6042 "configure"
6042 #include "confdefs.h"
6043 /* Override any gcc2 internal prototype to avoid an error.  */
6044 /* We use char because int might match the return type of a gcc2
6045     builtin and then its argument prototype would still apply.  */
6046 char opendir();
6047
6048 int main() {
6049 opendir()
6050 ; return 0; }
6051 EOF
6052 if { (eval echo configure:6053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6053   rm -rf conftest*
6054   eval "ac_cv_lib_$ac_lib_var=yes"
6055 else
6056   echo "configure: failed program was:" >&5
6057   cat conftest.$ac_ext >&5
6058   rm -rf conftest*
6059   eval "ac_cv_lib_$ac_lib_var=no"
6060 fi
6061 rm -f conftest*
6062 LIBS="$ac_save_LIBS"
6063
6064 fi
6065 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6066   echo "$ac_t""yes" 1>&6
6067   LIBS="$LIBS -ldir"
6068 else
6069   echo "$ac_t""no" 1>&6
6070 fi
6071
6072 else
6073 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
6074 echo "configure:6075: checking for opendir in -lx" >&5
6075 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
6076 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6077   echo $ac_n "(cached) $ac_c" 1>&6
6078 else
6079   ac_save_LIBS="$LIBS"
6080 LIBS="-lx  $LIBS"
6081 cat > conftest.$ac_ext <<EOF
6082 #line 6083 "configure"
6083 #include "confdefs.h"
6084 /* Override any gcc2 internal prototype to avoid an error.  */
6085 /* We use char because int might match the return type of a gcc2
6086     builtin and then its argument prototype would still apply.  */
6087 char opendir();
6088
6089 int main() {
6090 opendir()
6091 ; return 0; }
6092 EOF
6093 if { (eval echo configure:6094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6094   rm -rf conftest*
6095   eval "ac_cv_lib_$ac_lib_var=yes"
6096 else
6097   echo "configure: failed program was:" >&5
6098   cat conftest.$ac_ext >&5
6099   rm -rf conftest*
6100   eval "ac_cv_lib_$ac_lib_var=no"
6101 fi
6102 rm -f conftest*
6103 LIBS="$ac_save_LIBS"
6104
6105 fi
6106 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6107   echo "$ac_t""yes" 1>&6
6108   LIBS="$LIBS -lx"
6109 else
6110   echo "$ac_t""no" 1>&6
6111 fi
6112
6113 fi
6114
6115  echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
6116 echo "configure:6117: checking for ANSI C header files" >&5
6117 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
6118   echo $ac_n "(cached) $ac_c" 1>&6
6119 else
6120   cat > conftest.$ac_ext <<EOF
6121 #line 6122 "configure"
6122 #include "confdefs.h"
6123 #include <stdlib.h>
6124 #include <stdarg.h>
6125 #include <string.h>
6126 #include <float.h>
6127 EOF
6128 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6129 { (eval echo configure:6130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6130 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6131 if test -z "$ac_err"; then
6132   rm -rf conftest*
6133   ac_cv_header_stdc=yes
6134 else
6135   echo "$ac_err" >&5
6136   echo "configure: failed program was:" >&5
6137   cat conftest.$ac_ext >&5
6138   rm -rf conftest*
6139   ac_cv_header_stdc=no
6140 fi
6141 rm -f conftest*
6142
6143 if test $ac_cv_header_stdc = yes; then
6144   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6145 cat > conftest.$ac_ext <<EOF
6146 #line 6147 "configure"
6147 #include "confdefs.h"
6148 #include <string.h>
6149 EOF
6150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6151   egrep "memchr" >/dev/null 2>&1; then
6152   :
6153 else
6154   rm -rf conftest*
6155   ac_cv_header_stdc=no
6156 fi
6157 rm -f conftest*
6158
6159 fi
6160
6161 if test $ac_cv_header_stdc = yes; then
6162   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6163 cat > conftest.$ac_ext <<EOF
6164 #line 6165 "configure"
6165 #include "confdefs.h"
6166 #include <stdlib.h>
6167 EOF
6168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6169   egrep "free" >/dev/null 2>&1; then
6170   :
6171 else
6172   rm -rf conftest*
6173   ac_cv_header_stdc=no
6174 fi
6175 rm -f conftest*
6176
6177 fi
6178
6179 if test $ac_cv_header_stdc = yes; then
6180   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6181 if test "$cross_compiling" = yes; then
6182   :
6183 else
6184   cat > conftest.$ac_ext <<EOF
6185 #line 6186 "configure"
6186 #include "confdefs.h"
6187 #include <ctype.h>
6188 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6189 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6190 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6191 int main () { int i; for (i = 0; i < 256; i++)
6192 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
6193 exit (0); }
6194
6195 EOF
6196 if { (eval echo configure:6197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6197 then
6198   :
6199 else
6200   echo "configure: failed program was:" >&5
6201   cat conftest.$ac_ext >&5
6202   rm -fr conftest*
6203   ac_cv_header_stdc=no
6204 fi
6205 rm -fr conftest*
6206 fi
6207
6208 fi
6209 fi
6210
6211 echo "$ac_t""$ac_cv_header_stdc" 1>&6
6212 if test $ac_cv_header_stdc = yes; then
6213   cat >> confdefs.h <<\EOF
6214 #define STDC_HEADERS 1
6215 EOF
6216
6217 fi
6218
6219  for ac_hdr in zlib.h jpeglib.h t1lib.h sys/stat.h sys/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h
6220 do
6221 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6222 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6223 echo "configure:6224: checking for $ac_hdr" >&5
6224 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6225   echo $ac_n "(cached) $ac_c" 1>&6
6226 else
6227   cat > conftest.$ac_ext <<EOF
6228 #line 6229 "configure"
6229 #include "confdefs.h"
6230 #include <$ac_hdr>
6231 EOF
6232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6233 { (eval echo configure:6234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6234 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6235 if test -z "$ac_err"; then
6236   rm -rf conftest*
6237   eval "ac_cv_header_$ac_safe=yes"
6238 else
6239   echo "$ac_err" >&5
6240   echo "configure: failed program was:" >&5
6241   cat conftest.$ac_ext >&5
6242   rm -rf conftest*
6243   eval "ac_cv_header_$ac_safe=no"
6244 fi
6245 rm -f conftest*
6246 fi
6247 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6248   echo "$ac_t""yes" 1>&6
6249     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6250   cat >> confdefs.h <<EOF
6251 #define $ac_tr_hdr 1
6252 EOF
6253  
6254 else
6255   echo "$ac_t""no" 1>&6
6256 fi
6257 done
6258
6259
6260 if test "x${ac_cv_header_jpeglib_h}" != "xyes"; then
6261  DISABLEPDF2SWF=true;
6262  DISABLEJPEG2SWF=true;
6263  MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
6264 fi
6265 if test "x${ac_cv_header_t1lib_h}" != "xyes"; then
6266  DISABLEPDF2SWF=true;
6267  MISSINGLIBS="${MISSINGLIBS} t1lib.h"
6268 fi
6269 if test "x${ac_cv_header_zlib_h}" != "xyes"; then
6270  DISABLEPNG2SWF=true;
6271  MISSINGLIBS="${MISSINGLIBS} zlib.h"
6272  ZLIBMISSING=true;
6273 fi
6274
6275 cat >> confdefs.h <<EOF
6276 #define PACKAGE "$PACKAGE"
6277 EOF
6278
6279 cat >> confdefs.h <<EOF
6280 #define VERSION "$VERSION"
6281 EOF
6282
6283
6284
6285
6286
6287
6288
6289  echo $ac_n "checking for working const""... $ac_c" 1>&6
6290 echo "configure:6291: checking for working const" >&5
6291 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6292   echo $ac_n "(cached) $ac_c" 1>&6
6293 else
6294   cat > conftest.$ac_ext <<EOF
6295 #line 6296 "configure"
6296 #include "confdefs.h"
6297
6298 int main() {
6299
6300 /* Ultrix mips cc rejects this.  */
6301 typedef int charset[2]; const charset x;
6302 /* SunOS 4.1.1 cc rejects this.  */
6303 char const *const *ccp;
6304 char **p;
6305 /* NEC SVR4.0.2 mips cc rejects this.  */
6306 struct point {int x, y;};
6307 static struct point const zero = {0,0};
6308 /* AIX XL C 1.02.0.0 rejects this.
6309    It does not let you subtract one const X* pointer from another in an arm
6310    of an if-expression whose if-part is not a constant expression */
6311 const char *g = "string";
6312 ccp = &g + (g ? g-g : 0);
6313 /* HPUX 7.0 cc rejects these. */
6314 ++ccp;
6315 p = (char**) ccp;
6316 ccp = (char const *const *) p;
6317 { /* SCO 3.2v4 cc rejects this.  */
6318   char *t;
6319   char const *s = 0 ? (char *) 0 : (char const *) 0;
6320
6321   *t++ = 0;
6322 }
6323 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6324   int x[] = {25, 17};
6325   const int *foo = &x[0];
6326   ++foo;
6327 }
6328 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6329   typedef const int *iptr;
6330   iptr p = 0;
6331   ++p;
6332 }
6333 { /* AIX XL C 1.02.0.0 rejects this saying
6334      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6335   struct s { int j; const int *ap[3]; };
6336   struct s *b; b->j = 5;
6337 }
6338 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6339   const int foo = 10;
6340 }
6341
6342 ; return 0; }
6343 EOF
6344 if { (eval echo configure:6345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6345   rm -rf conftest*
6346   ac_cv_c_const=yes
6347 else
6348   echo "configure: failed program was:" >&5
6349   cat conftest.$ac_ext >&5
6350   rm -rf conftest*
6351   ac_cv_c_const=no
6352 fi
6353 rm -f conftest*
6354 fi
6355
6356 echo "$ac_t""$ac_cv_c_const" 1>&6
6357 if test $ac_cv_c_const = no; then
6358   cat >> confdefs.h <<\EOF
6359 #define const 
6360 EOF
6361
6362 fi
6363
6364  echo $ac_n "checking for inline""... $ac_c" 1>&6
6365 echo "configure:6366: checking for inline" >&5
6366 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6367   echo $ac_n "(cached) $ac_c" 1>&6
6368 else
6369   ac_cv_c_inline=no
6370 for ac_kw in inline __inline__ __inline; do
6371   cat > conftest.$ac_ext <<EOF
6372 #line 6373 "configure"
6373 #include "confdefs.h"
6374
6375 int main() {
6376 } $ac_kw foo() {
6377 ; return 0; }
6378 EOF
6379 if { (eval echo configure:6380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6380   rm -rf conftest*
6381   ac_cv_c_inline=$ac_kw; break
6382 else
6383   echo "configure: failed program was:" >&5
6384   cat conftest.$ac_ext >&5
6385 fi
6386 rm -f conftest*
6387 done
6388
6389 fi
6390
6391 echo "$ac_t""$ac_cv_c_inline" 1>&6
6392 case "$ac_cv_c_inline" in
6393   inline | yes) ;;
6394   no) cat >> confdefs.h <<\EOF
6395 #define inline 
6396 EOF
6397  ;;
6398   *)  cat >> confdefs.h <<EOF
6399 #define inline $ac_cv_c_inline
6400 EOF
6401  ;;
6402 esac
6403
6404  echo $ac_n "checking for off_t""... $ac_c" 1>&6
6405 echo "configure:6406: checking for off_t" >&5
6406 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6407   echo $ac_n "(cached) $ac_c" 1>&6
6408 else
6409   cat > conftest.$ac_ext <<EOF
6410 #line 6411 "configure"
6411 #include "confdefs.h"
6412 #include <sys/types.h>
6413 #if STDC_HEADERS
6414 #include <stdlib.h>
6415 #include <stddef.h>
6416 #endif
6417 EOF
6418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6419   egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6420   rm -rf conftest*
6421   ac_cv_type_off_t=yes
6422 else
6423   rm -rf conftest*
6424   ac_cv_type_off_t=no
6425 fi
6426 rm -f conftest*
6427
6428 fi
6429 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6430 if test $ac_cv_type_off_t = no; then
6431   cat >> confdefs.h <<\EOF
6432 #define off_t long
6433 EOF
6434
6435 fi
6436
6437  echo $ac_n "checking for size_t""... $ac_c" 1>&6
6438 echo "configure:6439: checking for size_t" >&5
6439 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6440   echo $ac_n "(cached) $ac_c" 1>&6
6441 else
6442   cat > conftest.$ac_ext <<EOF
6443 #line 6444 "configure"
6444 #include "confdefs.h"
6445 #include <sys/types.h>
6446 #if STDC_HEADERS
6447 #include <stdlib.h>
6448 #include <stddef.h>
6449 #endif
6450 EOF
6451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6452   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6453   rm -rf conftest*
6454   ac_cv_type_size_t=yes
6455 else
6456   rm -rf conftest*
6457   ac_cv_type_size_t=no
6458 fi
6459 rm -f conftest*
6460
6461 fi
6462 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6463 if test $ac_cv_type_size_t = no; then
6464   cat >> confdefs.h <<\EOF
6465 #define size_t unsigned
6466 EOF
6467
6468 fi
6469
6470  echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
6471 echo "configure:6472: checking whether struct tm is in sys/time.h or time.h" >&5
6472 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
6473   echo $ac_n "(cached) $ac_c" 1>&6
6474 else
6475   cat > conftest.$ac_ext <<EOF
6476 #line 6477 "configure"
6477 #include "confdefs.h"
6478 #include <sys/types.h>
6479 #include <time.h>
6480 int main() {
6481 struct tm *tp; tp->tm_sec;
6482 ; return 0; }
6483 EOF
6484 if { (eval echo configure:6485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6485   rm -rf conftest*
6486   ac_cv_struct_tm=time.h
6487 else
6488   echo "configure: failed program was:" >&5
6489   cat conftest.$ac_ext >&5
6490   rm -rf conftest*
6491   ac_cv_struct_tm=sys/time.h
6492 fi
6493 rm -f conftest*
6494 fi
6495
6496 echo "$ac_t""$ac_cv_struct_tm" 1>&6
6497 if test $ac_cv_struct_tm = sys/time.h; then
6498   cat >> confdefs.h <<\EOF
6499 #define TM_IN_SYS_TIME 1
6500 EOF
6501
6502 fi
6503
6504  echo $ac_n "checking for boolean""... $ac_c" 1>&6
6505 echo "configure:6506: checking for boolean" >&5
6506 if eval "test \"`echo '$''{'ac_cv_type_boolean'+set}'`\" = set"; then
6507   echo $ac_n "(cached) $ac_c" 1>&6
6508 else
6509   cat > conftest.$ac_ext <<EOF
6510 #line 6511 "configure"
6511 #include "confdefs.h"
6512 #include <sys/types.h>
6513 #if STDC_HEADERS
6514 #include <stdlib.h>
6515 #include <stddef.h>
6516 #endif
6517 EOF
6518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6519   egrep "(^|[^a-zA-Z_0-9])boolean[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6520   rm -rf conftest*
6521   ac_cv_type_boolean=yes
6522 else
6523   rm -rf conftest*
6524   ac_cv_type_boolean=no
6525 fi
6526 rm -f conftest*
6527
6528 fi
6529 echo "$ac_t""$ac_cv_type_boolean" 1>&6
6530 if test $ac_cv_type_boolean = no; then
6531   cat >> confdefs.h <<\EOF
6532 #define boolean int
6533 EOF
6534
6535 fi
6536
6537  echo $ac_n "checking for bool""... $ac_c" 1>&6
6538 echo "configure:6539: checking for bool" >&5
6539 if eval "test \"`echo '$''{'ac_cv_type_bool'+set}'`\" = set"; then
6540   echo $ac_n "(cached) $ac_c" 1>&6
6541 else
6542   cat > conftest.$ac_ext <<EOF
6543 #line 6544 "configure"
6544 #include "confdefs.h"
6545 #include <sys/types.h>
6546 #if STDC_HEADERS
6547 #include <stdlib.h>
6548 #include <stddef.h>
6549 #endif
6550 EOF
6551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6552   egrep "(^|[^a-zA-Z_0-9])bool[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6553   rm -rf conftest*
6554   ac_cv_type_bool=yes
6555 else
6556   rm -rf conftest*
6557   ac_cv_type_bool=no
6558 fi
6559 rm -f conftest*
6560
6561 fi
6562 echo "$ac_t""$ac_cv_type_bool" 1>&6
6563 if test $ac_cv_type_bool = no; then
6564   cat >> confdefs.h <<\EOF
6565 #define bool char
6566 EOF
6567
6568 fi
6569
6570      
6571  for ac_func in popen mkstemp stat lrand48 rand srand48 srand
6572 do
6573 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6574 echo "configure:6575: checking for $ac_func" >&5
6575 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6576   echo $ac_n "(cached) $ac_c" 1>&6
6577 else
6578   cat > conftest.$ac_ext <<EOF
6579 #line 6580 "configure"
6580 #include "confdefs.h"
6581 /* System header to define __stub macros and hopefully few prototypes,
6582     which can conflict with char $ac_func(); below.  */
6583 #include <assert.h>
6584 /* Override any gcc2 internal prototype to avoid an error.  */
6585 /* We use char because int might match the return type of a gcc2
6586     builtin and then its argument prototype would still apply.  */
6587 char $ac_func();
6588
6589 int main() {
6590
6591 /* The GNU C library defines this for functions which it implements
6592     to always fail with ENOSYS.  Some functions are actually named
6593     something starting with __ and the normal name is an alias.  */
6594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6595 choke me
6596 #else
6597 $ac_func();
6598 #endif
6599
6600 ; return 0; }
6601 EOF
6602 if { (eval echo configure:6603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6603   rm -rf conftest*
6604   eval "ac_cv_func_$ac_func=yes"
6605 else
6606   echo "configure: failed program was:" >&5
6607   cat conftest.$ac_ext >&5
6608   rm -rf conftest*
6609   eval "ac_cv_func_$ac_func=no"
6610 fi
6611 rm -f conftest*
6612 fi
6613
6614 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6615   echo "$ac_t""yes" 1>&6
6616     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6617   cat >> confdefs.h <<EOF
6618 #define $ac_tr_func 1
6619 EOF
6620  
6621 else
6622   echo "$ac_t""no" 1>&6
6623 fi
6624 done
6625
6626  
6627 echo $ac_n "checking whether we can compile the avifile test program""... $ac_c" 1>&6
6628 echo "configure:6629: checking whether we can compile the avifile test program" >&5
6629
6630 cat > conftest.cpp << EOF
6631 #include <avifile/version.h>
6632 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6) 
6633    #include <avifile.h>
6634    #include <aviplay.h>
6635    #include <fourcc.h>
6636    #include <creators.h>
6637    #include <StreamInfo.h>
6638    #define VERSION6
6639 #else
6640    #include <avifile.h>
6641    #include <aviplay.h>
6642    #include <aviutil.h>
6643    #define Width width
6644    #define Height height
6645    #define Data data
6646    #define Bpp bpp
6647 #endif
6648
6649 int main (int argc, char*argv)
6650 {
6651   IAviReadFile* player;
6652   IAviReadStream* astream;
6653   IAviReadStream* vstream;
6654   player = CreateIAviReadFile(0);
6655   astream = player->GetStream(0, AviStream::Audio);
6656   vstream = player->GetStream(0, AviStream::Video);
6657   vstream -> StartStreaming();
6658   astream -> StartStreaming();
6659 #ifndef VERSION6
6660   MainAVIHeader head;
6661   player->GetFileHeader(&head);
6662   head.dwMicroSecPerFrame;
6663   head.dwTotalFrames;
6664   head.dwStreams;
6665   head.dwWidth;
6666   head.dwHeight;
6667   head.dwMicroSecPerFrame;
6668   astream->GetEndPos(),
6669   astream->GetEndTime());
6670   player->StreamCount();
6671 #else
6672   StreamInfo*audioinfo;
6673   StreamInfo*videoinfo;
6674   audioinfo = astream->GetStreamInfo();
6675   videoinfo = vstream->GetStreamInfo();
6676   videoinfo->GetVideoWidth();
6677   videoinfo->GetVideoHeight();
6678   audioinfo->GetAudioSamplesPerSec();
6679   videoinfo->GetFps();
6680 #endif
6681   CImage*img = vstream->GetFrame();
6682   img->ToRGB();
6683   img->Data();
6684   img->Bpp();
6685   img->Width();
6686   img->Height();
6687   WAVEFORMATEX wave;
6688   astream->GetAudioFormatInfo(&wave,0);
6689   uint_t a,b;
6690   astream->ReadFrames(0,0,0,a,b);
6691 }
6692 EOF
6693
6694 ac_link='$CXX $CPPFLAGS $CXXFLAGS `avifile-config --cflags` `avifile-config --libs` conftest.cpp -o conftest${ac_exeext}'
6695 if { (eval echo avi2swf.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6696   echo "$ac_t""yes" 1>&6
6697   AVIFILE=true
6698   export AVIFILE
6699   cat >> confdefs.h <<EOF
6700 #define AVIFILE true
6701 EOF
6702
6703 else
6704   echo "configure: failed program was:" >&5
6705   cat conftest.$ac_ext >&5
6706   echo "$ac_t""no" 1>&6
6707 fi
6708 rm -f conftest*
6709
6710
6711 avi2swf="avi2swf/Makefile"
6712 if test "x${AVIFILE}" != "xtrue"; then
6713  echo "* Couldn't compile the avifile test program."
6714  echo "* Disabling avi2swf tool..."
6715  echo all install uninstall clean: > avi2swf/Makefile
6716  avi2swf=
6717 fi
6718
6719 if test "x${UNCOMPRESS}" = "xgzip"; then
6720     cat >> confdefs.h <<EOF
6721 #define USE_GZIP 1
6722 EOF
6723
6724 fi
6725
6726
6727 JPEG2SWF='jpeg2swf' #$(EXEEXT)
6728 export JPEG2SWF
6729 PNG2SWF='png2swf' #$(EXEEXT)
6730 export PNG2SWF
6731 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
6732   echo "***************************************************"
6733   echo "The following headers/libraries are missing: " ${MISSINGLIBS}
6734   if test "x${DISABLEPDF2SWF}" = "xtrue"; then
6735     echo "Disabling pdf2swf tool..."
6736     rm -f pdf2swf/Makefile
6737     echo all install uninstall clean: > pdf2swf/Makefile
6738   fi
6739   if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
6740     echo "Disabling jpeg2swf tool..."
6741     JPEG2SWF=
6742     export JPEG2SWF
6743   fi
6744   if test "x${DISABLEPNG2SWF}" = "xtrue"; then
6745     echo "Disabling png2swf tool..."
6746     PNG2SWF=
6747     export PNG2SWF
6748   fi
6749   if test "x${ZLIBMISSING}" = "xtrue"; then
6750     echo
6751     echo "Warning! Without zlib, you will not be able to read"
6752     echo "or write compressed Flash MX files!"
6753   fi
6754   echo "***************************************************"
6755   FILES="./release Makefile.common ${avi2swf} Makefile lib/lame/Makefile lib/Makefile src/Makefile swfs/Makefile"
6756 else
6757   FILES="./release Makefile.common ${avi2swf} Makefile lib/lame/Makefile lib/Makefile src/Makefile pdf2swf/Makefile pdf2swf/xpdf/Makefile pdf2swf/ttf2pt1/Makefile swfs/Makefile"
6758 fi
6759
6760
6761
6762 trap '' 1 2 15
6763 cat > confcache <<\EOF
6764 # This file is a shell script that caches the results of configure
6765 # tests run on this system so they can be shared between configure
6766 # scripts and configure runs.  It is not useful on other systems.
6767 # If it contains results you don't want to keep, you may remove or edit it.
6768 #
6769 # By default, configure uses ./config.cache as the cache file,
6770 # creating it if it does not exist already.  You can give configure
6771 # the --cache-file=FILE option to use a different cache file; that is
6772 # what configure does when it calls configure scripts in
6773 # subdirectories, so they share the cache.
6774 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6775 # config.status only pays attention to the cache file if you give it the
6776 # --recheck option to rerun configure.
6777 #
6778 EOF
6779 # The following way of writing the cache mishandles newlines in values,
6780 # but we know of no workaround that is simple, portable, and efficient.
6781 # So, don't put newlines in cache variables' values.
6782 # Ultrix sh set writes to stderr and can't be redirected directly,
6783 # and sets the high bit in the cache file unless we assign to the vars.
6784 (set) 2>&1 |
6785   case `(ac_space=' '; set | grep ac_space) 2>&1` in
6786   *ac_space=\ *)
6787     # `set' does not quote correctly, so add quotes (double-quote substitution
6788     # turns \\\\ into \\, and sed turns \\ into \).
6789     sed -n \
6790       -e "s/'/'\\\\''/g" \
6791       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6792     ;;
6793   *)
6794     # `set' quotes correctly as required by POSIX, so do not add quotes.
6795     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6796     ;;
6797   esac >> confcache
6798 if cmp -s $cache_file confcache; then
6799   :
6800 else
6801   if test -w $cache_file; then
6802     echo "updating cache $cache_file"
6803     cat confcache > $cache_file
6804   else
6805     echo "not updating unwritable cache $cache_file"
6806   fi
6807 fi
6808 rm -f confcache
6809
6810 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6811
6812 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6813 # Let make expand exec_prefix.
6814 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6815
6816 # Any assignment to VPATH causes Sun make to only execute
6817 # the first set of double-colon rules, so remove it if not needed.
6818 # If there is a colon in the path, we need to keep it.
6819 if test "x$srcdir" = x.; then
6820   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
6821 fi
6822
6823 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6824
6825 DEFS=-DHAVE_CONFIG_H
6826
6827 # Without the "./", some shells look in PATH for config.status.
6828 : ${CONFIG_STATUS=./config.status}
6829
6830 echo creating $CONFIG_STATUS
6831 rm -f $CONFIG_STATUS
6832 cat > $CONFIG_STATUS <<EOF
6833 #! /bin/sh
6834 # Generated automatically by configure.
6835 # Run this file to recreate the current configuration.
6836 # This directory was configured as follows,
6837 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6838 #
6839 # $0 $ac_configure_args
6840 #
6841 # Compiler output produced by configure, useful for debugging
6842 # configure, is in ./config.log if it exists.
6843
6844 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6845 for ac_option
6846 do
6847   case "\$ac_option" in
6848   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6849     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6850     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6851   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6852     echo "$CONFIG_STATUS generated by autoconf version 2.13"
6853     exit 0 ;;
6854   -help | --help | --hel | --he | --h)
6855     echo "\$ac_cs_usage"; exit 0 ;;
6856   *) echo "\$ac_cs_usage"; exit 1 ;;
6857   esac
6858 done
6859
6860 ac_given_srcdir=$srcdir
6861 ac_given_INSTALL="$INSTALL"
6862
6863 trap 'rm -fr `echo "${FILES} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6864 EOF
6865 cat >> $CONFIG_STATUS <<EOF
6866
6867 # Protect against being on the right side of a sed subst in config.status.
6868 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6869  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6870 $ac_vpsub
6871 $extrasub
6872 s%@SHELL@%$SHELL%g
6873 s%@CFLAGS@%$CFLAGS%g
6874 s%@CPPFLAGS@%$CPPFLAGS%g
6875 s%@CXXFLAGS@%$CXXFLAGS%g
6876 s%@FFLAGS@%$FFLAGS%g
6877 s%@DEFS@%$DEFS%g
6878 s%@LDFLAGS@%$LDFLAGS%g
6879 s%@LIBS@%$LIBS%g
6880 s%@exec_prefix@%$exec_prefix%g
6881 s%@prefix@%$prefix%g
6882 s%@program_transform_name@%$program_transform_name%g
6883 s%@bindir@%$bindir%g
6884 s%@sbindir@%$sbindir%g
6885 s%@libexecdir@%$libexecdir%g
6886 s%@datadir@%$datadir%g
6887 s%@sysconfdir@%$sysconfdir%g
6888 s%@sharedstatedir@%$sharedstatedir%g
6889 s%@localstatedir@%$localstatedir%g
6890 s%@libdir@%$libdir%g
6891 s%@includedir@%$includedir%g
6892 s%@oldincludedir@%$oldincludedir%g
6893 s%@infodir@%$infodir%g
6894 s%@mandir@%$mandir%g
6895 s%@STRIP@%$STRIP%g
6896 s%@host@%$host%g
6897 s%@host_alias@%$host_alias%g
6898 s%@host_cpu@%$host_cpu%g
6899 s%@host_vendor@%$host_vendor%g
6900 s%@host_os@%$host_os%g
6901 s%@CC@%$CC%g
6902 s%@CXX@%$CXX%g
6903 s%@CPP@%$CPP%g
6904 s%@RANLIB@%$RANLIB%g
6905 s%@SET_MAKE@%$SET_MAKE%g
6906 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6907 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6908 s%@INSTALL_DATA@%$INSTALL_DATA%g
6909 s%@LN_S@%$LN_S%g
6910 s%@build@%$build%g
6911 s%@build_alias@%$build_alias%g
6912 s%@build_cpu@%$build_cpu%g
6913 s%@build_vendor@%$build_vendor%g
6914 s%@build_os@%$build_os%g
6915 s%@OBJEXT@%$OBJEXT%g
6916 s%@EXEEXT@%$EXEEXT%g
6917 s%@ECHO@%$ECHO%g
6918 s%@LIBTOOL@%$LIBTOOL%g
6919 s%@UNCOMPRESS@%$UNCOMPRESS%g
6920 s%@AR@%$AR%g
6921 s%@target@%$target%g
6922 s%@target_alias@%$target_alias%g
6923 s%@target_cpu@%$target_cpu%g
6924 s%@target_vendor@%$target_vendor%g
6925 s%@target_os@%$target_os%g
6926 s%@WORDS_BIGENDIAN@%$WORDS_BIGENDIAN%g
6927 s%@SYSTEM_BACKTICKS@%$SYSTEM_BACKTICKS%g
6928 s%@PACKAGE@%$PACKAGE%g
6929 s%@VERSION@%$VERSION%g
6930 s%@HAVE_UNISTD_H@%$HAVE_UNISTD_H%g
6931 s%@USE_GZIP@%$USE_GZIP%g
6932 s%@JPEG2SWF@%$JPEG2SWF%g
6933 s%@PNG2SWF@%$PNG2SWF%g
6934
6935 CEOF
6936 EOF
6937
6938 cat >> $CONFIG_STATUS <<\EOF
6939
6940 # Split the substitutions into bite-sized pieces for seds with
6941 # small command number limits, like on Digital OSF/1 and HP-UX.
6942 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6943 ac_file=1 # Number of current file.
6944 ac_beg=1 # First line for current file.
6945 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6946 ac_more_lines=:
6947 ac_sed_cmds=""
6948 while $ac_more_lines; do
6949   if test $ac_beg -gt 1; then
6950     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6951   else
6952     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6953   fi
6954   if test ! -s conftest.s$ac_file; then
6955     ac_more_lines=false
6956     rm -f conftest.s$ac_file
6957   else
6958     if test -z "$ac_sed_cmds"; then
6959       ac_sed_cmds="sed -f conftest.s$ac_file"
6960     else
6961       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6962     fi
6963     ac_file=`expr $ac_file + 1`
6964     ac_beg=$ac_end
6965     ac_end=`expr $ac_end + $ac_max_sed_cmds`
6966   fi
6967 done
6968 if test -z "$ac_sed_cmds"; then
6969   ac_sed_cmds=cat
6970 fi
6971 EOF
6972
6973 cat >> $CONFIG_STATUS <<EOF
6974
6975 CONFIG_FILES=\${CONFIG_FILES-"${FILES}"}
6976 EOF
6977 cat >> $CONFIG_STATUS <<\EOF
6978 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6979   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6980   case "$ac_file" in
6981   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6982        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6983   *) ac_file_in="${ac_file}.in" ;;
6984   esac
6985
6986   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6987
6988   # Remove last slash and all that follows it.  Not all systems have dirname.
6989   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6990   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6991     # The file is in a subdirectory.
6992     test ! -d "$ac_dir" && mkdir "$ac_dir"
6993     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6994     # A "../" for each directory in $ac_dir_suffix.
6995     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6996   else
6997     ac_dir_suffix= ac_dots=
6998   fi
6999
7000   case "$ac_given_srcdir" in
7001   .)  srcdir=.
7002       if test -z "$ac_dots"; then top_srcdir=.
7003       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7004   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7005   *) # Relative path.
7006     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7007     top_srcdir="$ac_dots$ac_given_srcdir" ;;
7008   esac
7009
7010   case "$ac_given_INSTALL" in
7011   [/$]*) INSTALL="$ac_given_INSTALL" ;;
7012   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7013   esac
7014
7015   echo creating "$ac_file"
7016   rm -f "$ac_file"
7017   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7018   case "$ac_file" in
7019   *Makefile*) ac_comsub="1i\\
7020 # $configure_input" ;;
7021   *) ac_comsub= ;;
7022   esac
7023
7024   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7025   sed -e "$ac_comsub
7026 s%@configure_input@%$configure_input%g
7027 s%@srcdir@%$srcdir%g
7028 s%@top_srcdir@%$top_srcdir%g
7029 s%@INSTALL@%$INSTALL%g
7030 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7031 fi; done
7032 rm -f conftest.s*
7033
7034 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7035 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7036 #
7037 # ac_d sets the value in "#define NAME VALUE" lines.
7038 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
7039 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
7040 ac_dC='\3'
7041 ac_dD='%g'
7042 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7043 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
7044 ac_uB='\([      ]\)%\1#\2define\3'
7045 ac_uC=' '
7046 ac_uD='\4%g'
7047 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7048 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
7049 ac_eB='$%\1#\2define\3'
7050 ac_eC=' '
7051 ac_eD='%g'
7052
7053 if test "${CONFIG_HEADERS+set}" != set; then
7054 EOF
7055 cat >> $CONFIG_STATUS <<EOF
7056   CONFIG_HEADERS="config.h"
7057 EOF
7058 cat >> $CONFIG_STATUS <<\EOF
7059 fi
7060 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7061   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7062   case "$ac_file" in
7063   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7064        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7065   *) ac_file_in="${ac_file}.in" ;;
7066   esac
7067
7068   echo creating $ac_file
7069
7070   rm -f conftest.frag conftest.in conftest.out
7071   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7072   cat $ac_file_inputs > conftest.in
7073
7074 EOF
7075
7076 # Transform confdefs.h into a sed script conftest.vals that substitutes
7077 # the proper values into config.h.in to produce config.h.  And first:
7078 # Protect against being on the right side of a sed subst in config.status.
7079 # Protect against being in an unquoted here document in config.status.
7080 rm -f conftest.vals
7081 cat > conftest.hdr <<\EOF
7082 s/[\\&%]/\\&/g
7083 s%[\\$`]%\\&%g
7084 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7085 s%ac_d%ac_u%gp
7086 s%ac_u%ac_e%gp
7087 EOF
7088 sed -n -f conftest.hdr confdefs.h > conftest.vals
7089 rm -f conftest.hdr
7090
7091 # This sed command replaces #undef with comments.  This is necessary, for
7092 # example, in the case of _POSIX_SOURCE, which is predefined and required
7093 # on some systems where configure will not decide to define it.
7094 cat >> conftest.vals <<\EOF
7095 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7096 EOF
7097
7098 # Break up conftest.vals because some shells have a limit on
7099 # the size of here documents, and old seds have small limits too.
7100
7101 rm -f conftest.tail
7102 while :
7103 do
7104   ac_lines=`grep -c . conftest.vals`
7105   # grep -c gives empty output for an empty file on some AIX systems.
7106   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7107   # Write a limited-size here document to conftest.frag.
7108   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7109   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7110   echo 'CEOF
7111   sed -f conftest.frag conftest.in > conftest.out
7112   rm -f conftest.in
7113   mv conftest.out conftest.in
7114 ' >> $CONFIG_STATUS
7115   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7116   rm -f conftest.vals
7117   mv conftest.tail conftest.vals
7118 done
7119 rm -f conftest.vals
7120
7121 cat >> $CONFIG_STATUS <<\EOF
7122   rm -f conftest.frag conftest.h
7123   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
7124   cat conftest.in >> conftest.h
7125   rm -f conftest.in
7126   if cmp -s $ac_file conftest.h 2>/dev/null; then
7127     echo "$ac_file is unchanged"
7128     rm -f conftest.h
7129   else
7130     # Remove last slash and all that follows it.  Not all systems have dirname.
7131       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7132       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7133       # The file is in a subdirectory.
7134       test ! -d "$ac_dir" && mkdir "$ac_dir"
7135     fi
7136     rm -f $ac_file
7137     mv conftest.h $ac_file
7138   fi
7139 fi; done
7140
7141 EOF
7142 cat >> $CONFIG_STATUS <<EOF
7143
7144 EOF
7145 cat >> $CONFIG_STATUS <<\EOF
7146
7147 exit 0
7148 EOF
7149 chmod +x $CONFIG_STATUS
7150 rm -fr confdefs* $ac_clean_files
7151 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7152
7153
7154 if test "x${srcdir}" != "x."; then
7155     echo "Warning: --srcdir is not supported"
7156 fi