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