Develop and Download Open Source Software

Browse CVS Repository

Contents of /freewnn/FreeWnn/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.27 - (show annotations) (download)
Mon Jun 17 17:28:52 2002 UTC (21 years, 9 months ago) by hiroo
Branch: MAIN
Changes since 1.26: +2333 -5236 lines
configure.in:
 * Passes autoconf 2.13 again. cf.[freewnn:00872]
 * look for getopt().
Wnn/include/wnn_os.h:
 * forgot to put #endif. cf.[freewnn:00874]
Wnn/jlib/getopt.c:
 * Only used when getopt() does not exist. cf.[freewnn:00874]
config.h.in, configure:
 * Regenerate (GNU Autoconf 2.53).

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-debug enable debug options [default=no]"
16 ac_help="$ac_help
17 --enable-libraries build and install libraries [default=yes]"
18 ac_help="$ac_help
19 --enable-server build and install server [default=yes]"
20 ac_help="$ac_help
21 --enable-client build and install clients [default=no]"
22 ac_help="$ac_help
23 --enable-Wnn build and install Wnn [default=yes]"
24 ac_help="$ac_help
25 --enable-cWnn build and install cWnn [default=yes]"
26 ac_help="$ac_help
27 --enable-kWnn build and install kWnn [default=yes]"
28 ac_help="$ac_help
29 --with-libwnn use installed Wnn library [default=no]"
30 ac_help="$ac_help
31 --with-wnn-includes=DIR WNN include files are in DIR"
32 ac_help="$ac_help
33 --with-wnn-libraries=DIR Search for WNN libraries in DIR[default=/usr/local/lib]"
34 ac_help="$ac_help
35 --with-libcwnn use installed cWnn library [default=no]"
36 ac_help="$ac_help
37 --with-cwnn-includes=DIR CWNN include files are in DIR"
38 ac_help="$ac_help
39 --with-cwnn-libraries=DIR Search for CWNN libraries in DIR[default=/usr/local/lib]"
40 ac_help="$ac_help
41 --with-libkwnn use installed kWnn library [default=no]"
42 ac_help="$ac_help
43 --with-kwnn-includes=DIR KWNN include files are in DIR"
44 ac_help="$ac_help
45 --with-kwnn-libraries=DIR Search for KWNN libraries in DIR[default=/usr/local/lib]"
46 ac_help="$ac_help
47 --enable-ipv6 build and install IPv6 [default=no]"
48 ac_help="$ac_help
49 --enable-unsafe-path allow creating files in an arbitrary path [default=no]"
50 ac_help="$ac_help
51 --enable-shared[=PKGS] build shared libraries [default=yes]"
52 ac_help="$ac_help
53 --enable-static[=PKGS] build static libraries [default=yes]"
54 ac_help="$ac_help
55 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
56 ac_help="$ac_help
57 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
58
59 # Find the correct PATH separator. Usually this is `:', but
60 # DJGPP uses `;' like DOS.
61 if test "X${PATH_SEPARATOR+set}" != Xset; then
62 UNAME=${UNAME-`uname 2>/dev/null`}
63 case X$UNAME in
64 *-DOS) lt_cv_sys_path_separator=';' ;;
65 *) lt_cv_sys_path_separator=':' ;;
66 esac
67 fi
68
69
70 # Check that we are running under the correct shell.
71 SHELL=${CONFIG_SHELL-/bin/sh}
72
73 case X$ECHO in
74 X*--fallback-echo)
75 # Remove one level of quotation (which was required for Make).
76 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
77 ;;
78 esac
79
80 echo=${ECHO-echo}
81 if test "X$1" = X--no-reexec; then
82 # Discard the --no-reexec flag, and continue.
83 shift
84 elif test "X$1" = X--fallback-echo; then
85 # Avoid inline document here, it may be left over
86 :
87 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
88 # Yippee, $echo works!
89 :
90 else
91 # Restart under the correct shell.
92 exec $SHELL "$0" --no-reexec ${1+"$@"}
93 fi
94
95 if test "X$1" = X--fallback-echo; then
96 # used as fallback echo
97 shift
98 cat <<EOF
99
100 EOF
101 exit 0
102 fi
103
104 # The HP-UX ksh and POSIX shell print the target directory to stdout
105 # if CDPATH is set.
106 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
107
108 if test -z "$ECHO"; then
109 if test "X${echo_test_string+set}" != Xset; then
110 # find a string as large as possible, as long as the shell can cope with it
111 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
112 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
113 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
114 echo_test_string="`eval $cmd`" &&
115 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
116 then
117 break
118 fi
119 done
120 fi
121
122 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
123 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
124 test "X$echo_testing_string" = "X$echo_test_string"; then
125 :
126 else
127 # The Solaris, AIX, and Digital Unix default echo programs unquote
128 # backslashes. This makes it impossible to quote backslashes using
129 # echo "$something" | sed 's/\\/\\\\/g'
130 #
131 # So, first we look for a working echo in the user's PATH.
132
133 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
134 for dir in $PATH /usr/ucb; do
135 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
136 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
137 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
138 test "X$echo_testing_string" = "X$echo_test_string"; then
139 echo="$dir/echo"
140 break
141 fi
142 done
143 IFS="$save_ifs"
144
145 if test "X$echo" = Xecho; then
146 # We didn't find a better echo, so look for alternatives.
147 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
148 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
149 test "X$echo_testing_string" = "X$echo_test_string"; then
150 # This shell has a builtin print -r that does the trick.
151 echo='print -r'
152 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
153 test "X$CONFIG_SHELL" != X/bin/ksh; then
154 # If we have ksh, try running configure again with it.
155 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
156 export ORIGINAL_CONFIG_SHELL
157 CONFIG_SHELL=/bin/ksh
158 export CONFIG_SHELL
159 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
160 else
161 # Try using printf.
162 echo='printf %s\n'
163 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
164 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
165 test "X$echo_testing_string" = "X$echo_test_string"; then
166 # Cool, printf works
167 :
168 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
169 test "X$echo_testing_string" = 'X\t' &&
170 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
171 test "X$echo_testing_string" = "X$echo_test_string"; then
172 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
173 export CONFIG_SHELL
174 SHELL="$CONFIG_SHELL"
175 export SHELL
176 echo="$CONFIG_SHELL $0 --fallback-echo"
177 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
178 test "X$echo_testing_string" = 'X\t' &&
179 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
180 test "X$echo_testing_string" = "X$echo_test_string"; then
181 echo="$CONFIG_SHELL $0 --fallback-echo"
182 else
183 # maybe with a smaller string...
184 prev=:
185
186 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
187 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
188 then
189 break
190 fi
191 prev="$cmd"
192 done
193
194 if test "$prev" != 'sed 50q "$0"'; then
195 echo_test_string=`eval $prev`
196 export echo_test_string
197 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
198 else
199 # Oops. We lost completely, so just stick with echo.
200 echo=echo
201 fi
202 fi
203 fi
204 fi
205 fi
206 fi
207
208 # Copy echo and quote the copy suitably for passing to libtool from
209 # the Makefile, instead of quoting the original, which is used later.
210 ECHO=$echo
211 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
212 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
213 fi
214
215
216 ac_help="$ac_help
217 --disable-libtool-lock avoid locking (might break parallel builds)"
218 ac_help="$ac_help
219 --with-pic try to use only PIC/non-PIC objects [default=use both]"
220 ac_help="$ac_help
221 --with-x use the X Window System"
222
223 # Initialize some variables set by options.
224 # The variables have the same names as the options, with
225 # dashes changed to underlines.
226 build=NONE
227 cache_file=./config.cache
228 exec_prefix=NONE
229 host=NONE
230 no_create=
231 nonopt=NONE
232 no_recursion=
233 prefix=NONE
234 program_prefix=NONE
235 program_suffix=NONE
236 program_transform_name=s,x,x,
237 silent=
238 site=
239 sitefile=
240 srcdir=
241 target=NONE
242 verbose=
243 x_includes=NONE
244 x_libraries=NONE
245 bindir='${exec_prefix}/bin'
246 sbindir='${exec_prefix}/sbin'
247 libexecdir='${exec_prefix}/libexec'
248 datadir='${prefix}/share'
249 sysconfdir='${prefix}/etc'
250 sharedstatedir='${prefix}/com'
251 localstatedir='${prefix}/var'
252 libdir='${exec_prefix}/lib'
253 includedir='${prefix}/include'
254 oldincludedir='/usr/include'
255 infodir='${prefix}/info'
256 mandir='${prefix}/man'
257
258 # Initialize some other variables.
259 subdirs=
260 MFLAGS= MAKEFLAGS=
261 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 ac_max_here_lines=12
264
265 ac_prev=
266 for ac_option
267 do
268
269 # If the previous option needs an argument, assign it.
270 if test -n "$ac_prev"; then
271 eval "$ac_prev=\$ac_option"
272 ac_prev=
273 continue
274 fi
275
276 case "$ac_option" in
277 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
278 *) ac_optarg= ;;
279 esac
280
281 # Accept the important Cygnus configure options, so we can diagnose typos.
282
283 case "$ac_option" in
284
285 -bindir | --bindir | --bindi | --bind | --bin | --bi)
286 ac_prev=bindir ;;
287 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
288 bindir="$ac_optarg" ;;
289
290 -build | --build | --buil | --bui | --bu)
291 ac_prev=build ;;
292 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
293 build="$ac_optarg" ;;
294
295 -cache-file | --cache-file | --cache-fil | --cache-fi \
296 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
297 ac_prev=cache_file ;;
298 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
299 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
300 cache_file="$ac_optarg" ;;
301
302 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
303 ac_prev=datadir ;;
304 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
305 | --da=*)
306 datadir="$ac_optarg" ;;
307
308 -disable-* | --disable-*)
309 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
310 # Reject names that are not valid shell variable names.
311 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
312 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
313 fi
314 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
315 eval "enable_${ac_feature}=no" ;;
316
317 -enable-* | --enable-*)
318 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
319 # Reject names that are not valid shell variable names.
320 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
321 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
322 fi
323 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
324 case "$ac_option" in
325 *=*) ;;
326 *) ac_optarg=yes ;;
327 esac
328 eval "enable_${ac_feature}='$ac_optarg'" ;;
329
330 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
331 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
332 | --exec | --exe | --ex)
333 ac_prev=exec_prefix ;;
334 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
335 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
336 | --exec=* | --exe=* | --ex=*)
337 exec_prefix="$ac_optarg" ;;
338
339 -gas | --gas | --ga | --g)
340 # Obsolete; use --with-gas.
341 with_gas=yes ;;
342
343 -help | --help | --hel | --he)
344 # Omit some internal or obsolete options to make the list less imposing.
345 # This message is too long to be a string in the A/UX 3.1 sh.
346 cat << EOF
347 Usage: configure [options] [host]
348 Options: [defaults in brackets after descriptions]
349 Configuration:
350 --cache-file=FILE cache test results in FILE
351 --help print this message
352 --no-create do not create output files
353 --quiet, --silent do not print \`checking...' messages
354 --site-file=FILE use FILE as the site file
355 --version print the version of autoconf that created configure
356 Directory and file names:
357 --prefix=PREFIX install architecture-independent files in PREFIX
358 [$ac_default_prefix]
359 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
360 [same as prefix]
361 --bindir=DIR user executables in DIR [EPREFIX/bin]
362 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
363 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
364 --datadir=DIR read-only architecture-independent data in DIR
365 [PREFIX/share]
366 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
367 --sharedstatedir=DIR modifiable architecture-independent data in DIR
368 [PREFIX/com]
369 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
370 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
371 --includedir=DIR C header files in DIR [PREFIX/include]
372 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
373 --infodir=DIR info documentation in DIR [PREFIX/info]
374 --mandir=DIR man documentation in DIR [PREFIX/man]
375 --srcdir=DIR find the sources in DIR [configure dir or ..]
376 --program-prefix=PREFIX prepend PREFIX to installed program names
377 --program-suffix=SUFFIX append SUFFIX to installed program names
378 --program-transform-name=PROGRAM
379 run sed PROGRAM on installed program names
380 EOF
381 cat << EOF
382 Host type:
383 --build=BUILD configure for building on BUILD [BUILD=HOST]
384 --host=HOST configure for HOST [guessed]
385 --target=TARGET configure for TARGET [TARGET=HOST]
386 Features and packages:
387 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
388 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
389 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
390 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
391 --x-includes=DIR X include files are in DIR
392 --x-libraries=DIR X library files are in DIR
393 EOF
394 if test -n "$ac_help"; then
395 echo "--enable and --with options recognized:$ac_help"
396 fi
397 exit 0 ;;
398
399 -host | --host | --hos | --ho)
400 ac_prev=host ;;
401 -host=* | --host=* | --hos=* | --ho=*)
402 host="$ac_optarg" ;;
403
404 -includedir | --includedir | --includedi | --included | --include \
405 | --includ | --inclu | --incl | --inc)
406 ac_prev=includedir ;;
407 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
408 | --includ=* | --inclu=* | --incl=* | --inc=*)
409 includedir="$ac_optarg" ;;
410
411 -infodir | --infodir | --infodi | --infod | --info | --inf)
412 ac_prev=infodir ;;
413 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
414 infodir="$ac_optarg" ;;
415
416 -libdir | --libdir | --libdi | --libd)
417 ac_prev=libdir ;;
418 -libdir=* | --libdir=* | --libdi=* | --libd=*)
419 libdir="$ac_optarg" ;;
420
421 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
422 | --libexe | --libex | --libe)
423 ac_prev=libexecdir ;;
424 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
425 | --libexe=* | --libex=* | --libe=*)
426 libexecdir="$ac_optarg" ;;
427
428 -localstatedir | --localstatedir | --localstatedi | --localstated \
429 | --localstate | --localstat | --localsta | --localst \
430 | --locals | --local | --loca | --loc | --lo)
431 ac_prev=localstatedir ;;
432 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
433 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
434 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
435 localstatedir="$ac_optarg" ;;
436
437 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
438 ac_prev=mandir ;;
439 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
440 mandir="$ac_optarg" ;;
441
442 -nfp | --nfp | --nf)
443 # Obsolete; use --without-fp.
444 with_fp=no ;;
445
446 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
447 | --no-cr | --no-c)
448 no_create=yes ;;
449
450 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
451 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
452 no_recursion=yes ;;
453
454 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
455 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
456 | --oldin | --oldi | --old | --ol | --o)
457 ac_prev=oldincludedir ;;
458 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
459 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
460 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
461 oldincludedir="$ac_optarg" ;;
462
463 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
464 ac_prev=prefix ;;
465 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
466 prefix="$ac_optarg" ;;
467
468 -program-prefix | --program-prefix | --program-prefi | --program-pref \
469 | --program-pre | --program-pr | --program-p)
470 ac_prev=program_prefix ;;
471 -program-prefix=* | --program-prefix=* | --program-prefi=* \
472 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
473 program_prefix="$ac_optarg" ;;
474
475 -program-suffix | --program-suffix | --program-suffi | --program-suff \
476 | --program-suf | --program-su | --program-s)
477 ac_prev=program_suffix ;;
478 -program-suffix=* | --program-suffix=* | --program-suffi=* \
479 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
480 program_suffix="$ac_optarg" ;;
481
482 -program-transform-name | --program-transform-name \
483 | --program-transform-nam | --program-transform-na \
484 | --program-transform-n | --program-transform- \
485 | --program-transform | --program-transfor \
486 | --program-transfo | --program-transf \
487 | --program-trans | --program-tran \
488 | --progr-tra | --program-tr | --program-t)
489 ac_prev=program_transform_name ;;
490 -program-transform-name=* | --program-transform-name=* \
491 | --program-transform-nam=* | --program-transform-na=* \
492 | --program-transform-n=* | --program-transform-=* \
493 | --program-transform=* | --program-transfor=* \
494 | --program-transfo=* | --program-transf=* \
495 | --program-trans=* | --program-tran=* \
496 | --progr-tra=* | --program-tr=* | --program-t=*)
497 program_transform_name="$ac_optarg" ;;
498
499 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
500 | -silent | --silent | --silen | --sile | --sil)
501 silent=yes ;;
502
503 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
504 ac_prev=sbindir ;;
505 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
506 | --sbi=* | --sb=*)
507 sbindir="$ac_optarg" ;;
508
509 -sharedstatedir | --sharedstatedir | --sharedstatedi \
510 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
511 | --sharedst | --shareds | --shared | --share | --shar \
512 | --sha | --sh)
513 ac_prev=sharedstatedir ;;
514 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
515 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
516 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
517 | --sha=* | --sh=*)
518 sharedstatedir="$ac_optarg" ;;
519
520 -site | --site | --sit)
521 ac_prev=site ;;
522 -site=* | --site=* | --sit=*)
523 site="$ac_optarg" ;;
524
525 -site-file | --site-file | --site-fil | --site-fi | --site-f)
526 ac_prev=sitefile ;;
527 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
528 sitefile="$ac_optarg" ;;
529
530 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
531 ac_prev=srcdir ;;
532 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
533 srcdir="$ac_optarg" ;;
534
535 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
536 | --syscon | --sysco | --sysc | --sys | --sy)
537 ac_prev=sysconfdir ;;
538 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
539 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
540 sysconfdir="$ac_optarg" ;;
541
542 -target | --target | --targe | --targ | --tar | --ta | --t)
543 ac_prev=target ;;
544 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
545 target="$ac_optarg" ;;
546
547 -v | -verbose | --verbose | --verbos | --verbo | --verb)
548 verbose=yes ;;
549
550 -version | --version | --versio | --versi | --vers)
551 echo "configure generated by autoconf version 2.13"
552 exit 0 ;;
553
554 -with-* | --with-*)
555 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
556 # Reject names that are not valid shell variable names.
557 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
558 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
559 fi
560 ac_package=`echo $ac_package| sed 's/-/_/g'`
561 case "$ac_option" in
562 *=*) ;;
563 *) ac_optarg=yes ;;
564 esac
565 eval "with_${ac_package}='$ac_optarg'" ;;
566
567 -without-* | --without-*)
568 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
569 # Reject names that are not valid shell variable names.
570 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
571 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
572 fi
573 ac_package=`echo $ac_package| sed 's/-/_/g'`
574 eval "with_${ac_package}=no" ;;
575
576 --x)
577 # Obsolete; use --with-x.
578 with_x=yes ;;
579
580 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
581 | --x-incl | --x-inc | --x-in | --x-i)
582 ac_prev=x_includes ;;
583 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
584 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
585 x_includes="$ac_optarg" ;;
586
587 -x-libraries | --x-libraries | --x-librarie | --x-librari \
588 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
589 ac_prev=x_libraries ;;
590 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
591 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
592 x_libraries="$ac_optarg" ;;
593
594 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
595 ;;
596
597 *)
598 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
599 echo "configure: warning: $ac_option: invalid host type" 1>&2
600 fi
601 if test "x$nonopt" != xNONE; then
602 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
603 fi
604 nonopt="$ac_option"
605 ;;
606
607 esac
608 done
609
610 if test -n "$ac_prev"; then
611 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
612 fi
613
614 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
615
616 # File descriptor usage:
617 # 0 standard input
618 # 1 file creation
619 # 2 errors and warnings
620 # 3 some systems may open it to /dev/tty
621 # 4 used on the Kubota Titan
622 # 6 checking for... messages and results
623 # 5 compiler messages saved in config.log
624 if test "$silent" = yes; then
625 exec 6>/dev/null
626 else
627 exec 6>&1
628 fi
629 exec 5>./config.log
630
631 echo "\
632 This file contains any messages produced by compilers while
633 running configure, to aid debugging if configure makes a mistake.
634 " 1>&5
635
636 # Strip out --no-create and --no-recursion so they do not pile up.
637 # Also quote any args containing shell metacharacters.
638 ac_configure_args=
639 for ac_arg
640 do
641 case "$ac_arg" in
642 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
643 | --no-cr | --no-c) ;;
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
646 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
647 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
648 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
649 esac
650 done
651
652 # NLS nuisances.
653 # Only set these to C if already set. These must not be set unconditionally
654 # because not all systems understand e.g. LANG=C (notably SCO).
655 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
656 # Non-C LC_CTYPE values break the ctype check.
657 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
658 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
659 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
660 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
661
662 # confdefs.h avoids OS command line length limits that DEFS can exceed.
663 rm -rf conftest* confdefs.h
664 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
665 echo > confdefs.h
666
667 # A filename unique to this package, relative to the directory that
668 # configure is in, which we can look for to find out if srcdir is correct.
669 ac_unique_file=Wnn/conv/cvt_head.h
670
671 # Find the source files, if location was not specified.
672 if test -z "$srcdir"; then
673 ac_srcdir_defaulted=yes
674 # Try the directory containing this script, then its parent.
675 ac_prog=$0
676 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
677 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
678 srcdir=$ac_confdir
679 if test ! -r $srcdir/$ac_unique_file; then
680 srcdir=..
681 fi
682 else
683 ac_srcdir_defaulted=no
684 fi
685 if test ! -r $srcdir/$ac_unique_file; then
686 if test "$ac_srcdir_defaulted" = yes; then
687 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
688 else
689 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
690 fi
691 fi
692 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
693
694 # Prefer explicitly selected file to automatically selected ones.
695 if test -z "$sitefile"; then
696 if test -z "$CONFIG_SITE"; then
697 if test "x$prefix" != xNONE; then
698 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
699 else
700 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
701 fi
702 fi
703 else
704 CONFIG_SITE="$sitefile"
705 fi
706 for ac_site_file in $CONFIG_SITE; do
707 if test -r "$ac_site_file"; then
708 echo "loading site script $ac_site_file"
709 . "$ac_site_file"
710 fi
711 done
712
713 if test -r "$cache_file"; then
714 echo "loading cache $cache_file"
715 . $cache_file
716 else
717 echo "creating cache $cache_file"
718 > $cache_file
719 fi
720
721 ac_ext=c
722 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
723 ac_cpp='$CPP $CPPFLAGS'
724 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
725 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
726 cross_compiling=$ac_cv_prog_cc_cross
727
728 ac_exeext=
729 ac_objext=o
730 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
731 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
732 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
733 ac_n= ac_c='
734 ' ac_t=' '
735 else
736 ac_n=-n ac_c= ac_t=
737 fi
738 else
739 ac_n= ac_c='\c' ac_t=
740 fi
741
742
743
744
745
746 ac_aux_dir=
747 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
748 if test -f $ac_dir/install-sh; then
749 ac_aux_dir=$ac_dir
750 ac_install_sh="$ac_aux_dir/install-sh -c"
751 break
752 elif test -f $ac_dir/install.sh; then
753 ac_aux_dir=$ac_dir
754 ac_install_sh="$ac_aux_dir/install.sh -c"
755 break
756 fi
757 done
758 if test -z "$ac_aux_dir"; then
759 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
760 fi
761 ac_config_guess=$ac_aux_dir/config.guess
762 ac_config_sub=$ac_aux_dir/config.sub
763 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
764
765
766 # Make sure we can run config.sub.
767 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
768 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
769 fi
770
771 echo $ac_n "checking host system type""... $ac_c" 1>&6
772 echo "configure:773: checking host system type" >&5
773
774 host_alias=$host
775 case "$host_alias" in
776 NONE)
777 case $nonopt in
778 NONE)
779 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
780 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
781 fi ;;
782 *) host_alias=$nonopt ;;
783 esac ;;
784 esac
785
786 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
787 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
788 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
789 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
790 echo "$ac_t""$host" 1>&6
791
792
793
794 # Check whether --enable-debug or --disable-debug was given.
795 if test "${enable_debug+set}" = set; then
796 enableval="$enable_debug"
797 case "${enableval}" in
798 yes) debug=true ;;
799 no) debug=false ;;
800 *) { echo "configure: error: bad value for --enable-debug" 1>&2; exit 1; }
801 esac
802 else
803 debug=false
804 fi
805
806
807 # Check whether --enable-libraries or --disable-libraries was given.
808 if test "${enable_libraries+set}" = set; then
809 enableval="$enable_libraries"
810 case "${enableval}" in
811 yes) libraries=true ;;
812 no) libraries=false ;;
813 *) { echo "configure: error: bad value for --enable-libraries" 1>&2; exit 1; } ;;
814 esac
815 else
816 libraries=true
817 fi
818
819
820 # Check whether --enable-server or --disable-server was given.
821 if test "${enable_server+set}" = set; then
822 enableval="$enable_server"
823 case "${enableval}" in
824 yes) server=true ;;
825 no) server=false ;;
826 *) { echo "configure: error: bad value for --enable-server" 1>&2; exit 1; } ;;
827 esac
828 else
829 server=true
830 fi
831
832
833 # Check whether --enable-client or --disable-client was given.
834 if test "${enable_client+set}" = set; then
835 enableval="$enable_client"
836 case "${enableval}" in
837 yes) client=true ;;
838 no) client=false ;;
839 *) { echo "configure: error: bad value for --enable-client" 1>&2; exit 1; } ;;
840 esac
841 else
842 client=false
843 fi
844
845
846 if test $libraries = true; then
847 SUBDIRS="\$(LIB_SUBDIRS)"
848 WNNMANDIR="\$(LIB_WNNMANDIR)"
849 fi
850 if test $server = true; then
851 SUBDIRS="$SUBDIRS \$(SERVER_SUBDIRS)"
852 WNNMANDIR="$WNNMANDIR \$(SERVER_WNNMANDIR)"
853 fi
854 if test $client = true; then
855 SUBDIRS="$SUBDIRS \$(CLIENT_SUBDIRS)"
856 fi
857
858
859
860
861
862 # Check whether --enable-Wnn or --disable-Wnn was given.
863 if test "${enable_Wnn+set}" = set; then
864 enableval="$enable_Wnn"
865 case "${enableval}" in
866 yes) Wnn="Wnn";;
867 no) Wnn="" ;;
868 *) { echo "configure: error: bad value for --enable-Wnn" 1>&2; exit 1; } ;;
869 esac
870 else
871 Wnn="Wnn"
872 fi
873
874
875
876 if test "$server" = true -a "$Wnn" = Wnn; then
877 # JSERVER_SUBDIRS1="\$(JSERVER_SUBDIRS1)"
878 JSERVER_SUBDIRS2="\$(JSERVER_SUBDIRS2)"
879 else
880 # JSERVER_SUBDIRS1=""
881 JSERVER_SUBDIRS2=""
882 fi
883
884
885 # Check whether --enable-cWnn or --disable-cWnn was given.
886 if test "${enable_cWnn+set}" = set; then
887 enableval="$enable_cWnn"
888 case "${enableval}" in
889 yes) cWnn="cWnn" ;;
890 no) cWnn="" ;;
891 *) { echo "configure: error: bad value for --enable-cWnn" 1>&2; exit 1; } ;;
892 esac
893 else
894 cWnn="cWnn"
895 fi
896
897
898
899 # Check whether --enable-kWnn or --disable-kWnn was given.
900 if test "${enable_kWnn+set}" = set; then
901 enableval="$enable_kWnn"
902 case "${enableval}" in
903 yes) kWnn="kWnn" ;;
904 no) kWnn="" ;;
905 *) { echo "configure: error: bad value for --enable-kWnn" 1>&2; exit 1; } ;;
906 esac
907 else
908 kWnn="kWnn"
909 fi
910
911
912
913
914
915 # Check whether --with-libwnn or --without-libwnn was given.
916 if test "${with_libwnn+set}" = set; then
917 withval="$with_libwnn"
918 with_libwnn="${withval}"
919 # Check whether --with-wnn-includes or --without-wnn-includes was given.
920 if test "${with_wnn_includes+set}" = set; then
921 withval="$with_wnn_includes"
922 wnnincludedir="-I${withval}"
923 else
924 wnnincludedir=''
925 fi
926
927 # Check whether --with-wnn-libraries or --without-wnn-libraries was given.
928 if test "${with_wnn_libraries+set}" = set; then
929 withval="$with_wnn_libraries"
930 wnnlibdir="${withval}"
931 else
932 wnnlibdir='/usr/local/lib'
933 fi
934
935 if test "X${with_libwnn}" = X-lwnn; then
936 WNNJLIB="-L${wnnlibdir} -lwnn"
937 elif test X"`echo ${with_libwnn} | grep '^/.*'`" != X ; then
938 WNNJLIB="${with_libwnn}"
939 else
940 WNNJLIB="${wnnlibdir}/libwnn.a"
941 fi
942 DEPWNNJLIB=""
943 HINSI_DATA="\$(JWNNWNNDIR)/hinsi.data"
944
945 else
946 WNNJLIB="\$(WNNJLIBSRC)/libwnn.la"
947 DEPWNNJLIB="\$(WNNJLIB)"
948 HINSI_DATA="\$(WNNJDSRC)/hinsi.data"
949
950 fi
951
952
953
954
955
956 # Check whether --with-libcwnn or --without-libcwnn was given.
957 if test "${with_libcwnn+set}" = set; then
958 withval="$with_libcwnn"
959
960 # Check whether --with-cwnn-includes or --without-cwnn-includes was given.
961 if test "${with_cwnn_includes+set}" = set; then
962 withval="$with_cwnn_includes"
963 cwnnincludedir="-I${withval}"
964 else
965 cwnnincludedir=''
966 fi
967
968 # Check whether --with-cwnn-libraries or --without-cwnn-libraries was given.
969 if test "${with_cwnn_libraries+set}" = set; then
970 withval="$with_cwnn_libraries"
971 cwnnlibdir="${withval}"
972 else
973 cwnnlibdir='/usr/local/lib'
974 fi
975
976 if test "X${with_libcwnn}" = X-lcwnn; then
977 CWNNJLIB="-L${cwnnlibdir} -lcwnn"
978 elif test X"`echo ${with_libcwnn} | grep '^/.*'`" != X ; then
979 CWNNJLIB="${with_libcwnn}"
980 else
981 CWNNJLIB="${cwnnlibdir}/libcwnn.a"
982 fi
983 DEPCWNNJLIB=""
984 CHINSI_DATA="\$(CWNNWNNDIR)/cixing.data"
985 THINSI_DATA="\$(TWNNTDSRC)/cixing.data"
986
987 else
988 CWNNJLIB="\$(CWNNJLIBSRC)/libcwnn.la"
989 DEPCWNNJLIB="\$(CWNNJLIB)"
990 CHINSI_DATA="\$(CWNNCDSRC)/cixing.data"
991 THINSI_DATA="\$(TWNNTDSRC)/cixing.data"
992
993 fi
994
995
996
997
998
999
1000 # Check whether --with-libkwnn or --without-libkwnn was given.
1001 if test "${with_libkwnn+set}" = set; then
1002 withval="$with_libkwnn"
1003
1004 # Check whether --with-kwnn-includes or --without-kwnn-includes was given.
1005 if test "${with_kwnn_includes+set}" = set; then
1006 withval="$with_kwnn_includes"
1007 kwnnincludedir="-I${withval}"
1008 else
1009 kwnnincludedir=''
1010 fi
1011
1012 # Check whether --with-kwnn-libraries or --without-kwnn-libraries was given.
1013 if test "${with_kwnn_libraries+set}" = set; then
1014 withval="$with_kwnn_libraries"
1015 kwnnlibdir="${withval}"
1016 else
1017 kwnnlibdir='/usr/local/lib'
1018 fi
1019
1020 if test "X${with_libkwnn}" = X-lkwnn; then
1021 KWNNJLIB="-L${kwnnlibdir} -lkwnn"
1022 elif test X"`echo ${with_libkwnn} | grep '^/.*'`" != X ; then
1023 KWNNJLIB="${with_libkwnn}"
1024 else
1025 KWNNJLIB="${kwnnlibdir}/libkwnn.a"
1026 fi
1027 DEPKWNNJLIB=""
1028 KHINSI_DATA="\$(KWNNWNNDIR)/hinsi.data"
1029
1030 else
1031 KWNNJLIB="\$(KWNNJLIBSRC)/libkwnn.la"
1032 DEPKWNNJLIB="\$(KWNNJLIB)"
1033 KHINSI_DATA="\$(KWNNKDSRC)/hinsi.data"
1034
1035 fi
1036
1037
1038
1039
1040
1041
1042 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1043 if test "${enable_ipv6+set}" = set; then
1044 enableval="$enable_ipv6"
1045 case "${enableval}" in
1046 yes) ipv6="-DINET6";;
1047 no) ipv6="" ;;
1048 *) { echo "configure: error: bad value for --enable-ipv6" 1>&2; exit 1; } ;;
1049 esac
1050 else
1051 ipv6=""
1052 fi
1053
1054
1055
1056 # Check whether --enable-unsafe-path or --disable-unsafe-path was given.
1057 if test "${enable_unsafe_path+set}" = set; then
1058 enableval="$enable_unsafe_path"
1059 case "${enableval}" in
1060 yes) unsafe_path=true;;
1061 no) unsafe_path=false;;
1062 *) { echo "configure: error: bad value for --enable-unsafe-path" 1>&2; exit 1; } ;;
1063 esac
1064 else
1065 unsafe_path=false
1066 fi
1067
1068
1069
1070 if test ${unsafe_path} = true; then
1071 cat >> confdefs.h <<\EOF
1072 #define WNN_ALLOW_UNSAFE_PATH 1
1073 EOF
1074
1075 fi
1076
1077 # Extract the first word of "gcc", so it can be a program name with args.
1078 set dummy gcc; ac_word=$2
1079 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1080 echo "configure:1081: checking for $ac_word" >&5
1081 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1082 echo $ac_n "(cached) $ac_c" 1>&6
1083 else
1084 if test -n "$CC"; then
1085 ac_cv_prog_CC="$CC" # Let the user override the test.
1086 else
1087 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1088 ac_dummy="$PATH"
1089 for ac_dir in $ac_dummy; do
1090 test -z "$ac_dir" && ac_dir=.
1091 if test -f $ac_dir/$ac_word; then
1092 ac_cv_prog_CC="gcc"
1093 break
1094 fi
1095 done
1096 IFS="$ac_save_ifs"
1097 fi
1098 fi
1099 CC="$ac_cv_prog_CC"
1100 if test -n "$CC"; then
1101 echo "$ac_t""$CC" 1>&6
1102 else
1103 echo "$ac_t""no" 1>&6
1104 fi
1105
1106 if test -z "$CC"; then
1107 # Extract the first word of "cc", so it can be a program name with args.
1108 set dummy cc; ac_word=$2
1109 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1110 echo "configure:1111: checking for $ac_word" >&5
1111 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1112 echo $ac_n "(cached) $ac_c" 1>&6
1113 else
1114 if test -n "$CC"; then
1115 ac_cv_prog_CC="$CC" # Let the user override the test.
1116 else
1117 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1118 ac_prog_rejected=no
1119 ac_dummy="$PATH"
1120 for ac_dir in $ac_dummy; do
1121 test -z "$ac_dir" && ac_dir=.
1122 if test -f $ac_dir/$ac_word; then
1123 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1124 ac_prog_rejected=yes
1125 continue
1126 fi
1127 ac_cv_prog_CC="cc"
1128 break
1129 fi
1130 done
1131 IFS="$ac_save_ifs"
1132 if test $ac_prog_rejected = yes; then
1133 # We found a bogon in the path, so make sure we never use it.
1134 set dummy $ac_cv_prog_CC
1135 shift
1136 if test $# -gt 0; then
1137 # We chose a different compiler from the bogus one.
1138 # However, it has the same basename, so the bogon will be chosen
1139 # first if we set CC to just the basename; use the full file name.
1140 shift
1141 set dummy "$ac_dir/$ac_word" "$@"
1142 shift
1143 ac_cv_prog_CC="$@"
1144 fi
1145 fi
1146 fi
1147 fi
1148 CC="$ac_cv_prog_CC"
1149 if test -n "$CC"; then
1150 echo "$ac_t""$CC" 1>&6
1151 else
1152 echo "$ac_t""no" 1>&6
1153 fi
1154
1155 if test -z "$CC"; then
1156 case "`uname -s`" in
1157 *win32* | *WIN32*)
1158 # Extract the first word of "cl", so it can be a program name with args.
1159 set dummy cl; ac_word=$2
1160 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1161 echo "configure:1162: checking for $ac_word" >&5
1162 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1163 echo $ac_n "(cached) $ac_c" 1>&6
1164 else
1165 if test -n "$CC"; then
1166 ac_cv_prog_CC="$CC" # Let the user override the test.
1167 else
1168 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1169 ac_dummy="$PATH"
1170 for ac_dir in $ac_dummy; do
1171 test -z "$ac_dir" && ac_dir=.
1172 if test -f $ac_dir/$ac_word; then
1173 ac_cv_prog_CC="cl"
1174 break
1175 fi
1176 done
1177 IFS="$ac_save_ifs"
1178 fi
1179 fi
1180 CC="$ac_cv_prog_CC"
1181 if test -n "$CC"; then
1182 echo "$ac_t""$CC" 1>&6
1183 else
1184 echo "$ac_t""no" 1>&6
1185 fi
1186 ;;
1187 esac
1188 fi
1189 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1190 fi
1191
1192 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1193 echo "configure:1194: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1194
1195 ac_ext=c
1196 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1197 ac_cpp='$CPP $CPPFLAGS'
1198 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1199 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1200 cross_compiling=$ac_cv_prog_cc_cross
1201
1202 cat > conftest.$ac_ext << EOF
1203
1204 #line 1205 "configure"
1205 #include "confdefs.h"
1206
1207 main(){return(0);}
1208 EOF
1209 if { (eval echo configure:1210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1210 ac_cv_prog_cc_works=yes
1211 # If we can't run a trivial program, we are probably using a cross compiler.
1212 if (./conftest; exit) 2>/dev/null; then
1213 ac_cv_prog_cc_cross=no
1214 else
1215 ac_cv_prog_cc_cross=yes
1216 fi
1217 else
1218 echo "configure: failed program was:" >&5
1219 cat conftest.$ac_ext >&5
1220 ac_cv_prog_cc_works=no
1221 fi
1222 rm -fr conftest*
1223 ac_ext=c
1224 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1225 ac_cpp='$CPP $CPPFLAGS'
1226 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1227 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1228 cross_compiling=$ac_cv_prog_cc_cross
1229
1230 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1231 if test $ac_cv_prog_cc_works = no; then
1232 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1233 fi
1234 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1235 echo "configure:1236: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1236 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1237 cross_compiling=$ac_cv_prog_cc_cross
1238
1239 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1240 echo "configure:1241: checking whether we are using GNU C" >&5
1241 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1242 echo $ac_n "(cached) $ac_c" 1>&6
1243 else
1244 cat > conftest.c <<EOF
1245 #ifdef __GNUC__
1246 yes;
1247 #endif
1248 EOF
1249 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1250 ac_cv_prog_gcc=yes
1251 else
1252 ac_cv_prog_gcc=no
1253 fi
1254 fi
1255
1256 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1257
1258 if test $ac_cv_prog_gcc = yes; then
1259 GCC=yes
1260 else
1261 GCC=
1262 fi
1263
1264 ac_test_CFLAGS="${CFLAGS+set}"
1265 ac_save_CFLAGS="$CFLAGS"
1266 CFLAGS=
1267 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1268 echo "configure:1269: checking whether ${CC-cc} accepts -g" >&5
1269 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1270 echo $ac_n "(cached) $ac_c" 1>&6
1271 else
1272 echo 'void f(){}' > conftest.c
1273 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1274 ac_cv_prog_cc_g=yes
1275 else
1276 ac_cv_prog_cc_g=no
1277 fi
1278 rm -f conftest*
1279
1280 fi
1281
1282 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1283 if test "$ac_test_CFLAGS" = set; then
1284 CFLAGS="$ac_save_CFLAGS"
1285 elif test $ac_cv_prog_cc_g = yes; then
1286 if test "$GCC" = yes; then
1287 CFLAGS="-g -O2"
1288 else
1289 CFLAGS="-g"
1290 fi
1291 else
1292 if test "$GCC" = yes; then
1293 CFLAGS="-O2"
1294 else
1295 CFLAGS=
1296 fi
1297 fi
1298
1299
1300 CDEBUGFLAGS=${CDEBUGFLAGS:-"-O"}
1301 case $host in
1302 *-*-linux*)
1303 CCOPTIONS="-Dlinux -D_POSIX_SOURCE -D_BSD_SOURCE"
1304 CDEBUGFLAGS="-O2 -fno-strength-reduce"
1305 ;;
1306 *-*-freebsd*|*-*-netbsd*|*-*-openbsd*)
1307 CDEBUGFLAGS="-O2 -fno-strength-reduce"
1308 ;;
1309 *-*-bsdi*)
1310 CDEBUGFLAGS="-O2 -fno-strength-reduce"
1311 ;;
1312 *-*-sunos*)
1313 if test $GCC = yes; then
1314 CCOPTIONS="-Dsun -Dsparc"
1315 CDEBUGFLAGS=-O2
1316 else
1317 CCOPTIONS=""
1318 CDEBUGFLAGS=-O4
1319 fi
1320 ;;
1321 *-*-solaris2.*)
1322 # Will 'solaris*' be OK?
1323 if test $GCC = yes; then
1324 CCOPTIONS="-Dsun -D`uname -p` -DSVR4 -DSYSV"
1325 CDEBUGFLAGS=-O2
1326 else
1327 CCOPTIONS="-Xc -xF -xcg92 -Dsun -D`uname -p` -DSVR4 -DSYSV"
1328 CDEBUGFLAGS=-O4
1329 fi
1330 ;;
1331 *-*-hpux*)
1332 if test $GCC = yes; then
1333 CCOPTIONS="-Dhpux -DSYSV"
1334 CDEBUGFLAGS=-O2
1335 else
1336 CCOPTIONS="-Ae -Dhpux -DSYSV"
1337 fi
1338 ;;
1339 i[34567]86-pc-beos*)
1340 CCOPTIONS="-DBEOS -D_POSIX_SOURCE -D_BSD_SOURCE"
1341 CDEBUGFLAGS="-O2 -fno-strength-reduce"
1342 ;;
1343 powerpc-*-beos*)
1344 CCOPTIONS="-DBEOS -D_POSIX_SOURCE -D_BSD_SOURCE"
1345 ;;
1346 *-*-aix*)
1347 if test $GCC = yes; then
1348 CDEBUGFLAGS=-O2
1349 else
1350 CDEBUGFLAGS=-O
1351 fi
1352 CCOPTIONS="-DSYSV"
1353 ;;
1354 *)
1355 echo "configure: warning: "It is not reported if FreeWnn works on this system. But continuing..."" 1>&2
1356 echo "configure: warning: (It may or may not work if you set CCOPTIONS properly.)" 1>&2
1357 ;;
1358 esac
1359
1360 if test $debug = true; then
1361 if test $GCC = yes; then
1362 CDEBUGFLAGS="-g2 -Wall -fstack-check $CDEBUGFLAGS"
1363 fi
1364 INSTPGMFLAGS=
1365 else
1366 INSTPGMFLAGS="-s"
1367 fi
1368
1369
1370 echo "Set CDEBUGFLAGS and CCOPTIONS to following:"
1371 echo ' CDEBUGFLAGS="'"$CDEBUGFLAGS"'"'
1372 echo ' CCOPTIONS="'"$CCOPTIONS"'"'
1373
1374 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1375 echo "configure:1376: checking how to run the C preprocessor" >&5
1376 # On Suns, sometimes $CPP names a directory.
1377 if test -n "$CPP" && test -d "$CPP"; then
1378 CPP=
1379 fi
1380 if test -z "$CPP"; then
1381 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1382 echo $ac_n "(cached) $ac_c" 1>&6
1383 else
1384 # This must be in double quotes, not single quotes, because CPP may get
1385 # substituted into the Makefile and "${CC-cc}" will confuse make.
1386 CPP="${CC-cc} -E"
1387 # On the NeXT, cc -E runs the code through the compiler's parser,
1388 # not just through cpp.
1389 cat > conftest.$ac_ext <<EOF
1390 #line 1391 "configure"
1391 #include "confdefs.h"
1392 #include <assert.h>
1393 Syntax Error
1394 EOF
1395 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1396 { (eval echo configure:1397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1397 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1398 if test -z "$ac_err"; then
1399 :
1400 else
1401 echo "$ac_err" >&5
1402 echo "configure: failed program was:" >&5
1403 cat conftest.$ac_ext >&5
1404 rm -rf conftest*
1405 CPP="${CC-cc} -E -traditional-cpp"
1406 cat > conftest.$ac_ext <<EOF
1407 #line 1408 "configure"
1408 #include "confdefs.h"
1409 #include <assert.h>
1410 Syntax Error
1411 EOF
1412 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1413 { (eval echo configure:1414: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1414 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1415 if test -z "$ac_err"; then
1416 :
1417 else
1418 echo "$ac_err" >&5
1419 echo "configure: failed program was:" >&5
1420 cat conftest.$ac_ext >&5
1421 rm -rf conftest*
1422 CPP="${CC-cc} -nologo -E"
1423 cat > conftest.$ac_ext <<EOF
1424 #line 1425 "configure"
1425 #include "confdefs.h"
1426 #include <assert.h>
1427 Syntax Error
1428 EOF
1429 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1430 { (eval echo configure:1431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1431 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1432 if test -z "$ac_err"; then
1433 :
1434 else
1435 echo "$ac_err" >&5
1436 echo "configure: failed program was:" >&5
1437 cat conftest.$ac_ext >&5
1438 rm -rf conftest*
1439 CPP=/lib/cpp
1440 fi
1441 rm -f conftest*
1442 fi
1443 rm -f conftest*
1444 fi
1445 rm -f conftest*
1446 ac_cv_prog_CPP="$CPP"
1447 fi
1448 CPP="$ac_cv_prog_CPP"
1449 else
1450 ac_cv_prog_CPP="$CPP"
1451 fi
1452 echo "$ac_t""$CPP" 1>&6
1453
1454
1455 # Find a good install program. We prefer a C program (faster),
1456 # so one script is as good as another. But avoid the broken or
1457 # incompatible versions:
1458 # SysV /etc/install, /usr/sbin/install
1459 # SunOS /usr/etc/install
1460 # IRIX /sbin/install
1461 # AIX /bin/install
1462 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1463 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1464 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1465 # ./install, which can be erroneously created by make from ./install.sh.
1466 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1467 echo "configure:1468: checking for a BSD compatible install" >&5
1468 if test -z "$INSTALL"; then
1469 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1470 echo $ac_n "(cached) $ac_c" 1>&6
1471 else
1472 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1473 for ac_dir in $PATH; do
1474 # Account for people who put trailing slashes in PATH elements.
1475 case "$ac_dir/" in
1476 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1477 *)
1478 # OSF1 and SCO ODT 3.0 have their own names for install.
1479 # Don't use installbsd from OSF since it installs stuff as root
1480 # by default.
1481 for ac_prog in ginstall scoinst install; do
1482 if test -f $ac_dir/$ac_prog; then
1483 if test $ac_prog = install &&
1484 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1485 # AIX install. It has an incompatible calling convention.
1486 :
1487 else
1488 ac_cv_path_install="$ac_dir/$ac_prog -c"
1489 break 2
1490 fi
1491 fi
1492 done
1493 ;;
1494 esac
1495 done
1496 IFS="$ac_save_IFS"
1497
1498 fi
1499 if test "${ac_cv_path_install+set}" = set; then
1500 INSTALL="$ac_cv_path_install"
1501 else
1502 # As a last resort, use the slow shell script. We don't cache a
1503 # path for INSTALL within a source directory, because that will
1504 # break other packages using the cache if that directory is
1505 # removed, or if the path is relative.
1506 INSTALL="$ac_install_sh"
1507 fi
1508 fi
1509 echo "$ac_t""$INSTALL" 1>&6
1510
1511 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1512 # It thinks the first close brace ends the variable substitution.
1513 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1514
1515 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1516
1517 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1518
1519 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1520 echo "configure:1521: checking whether ln -s works" >&5
1521 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1522 echo $ac_n "(cached) $ac_c" 1>&6
1523 else
1524 rm -f conftestdata
1525 if ln -s X conftestdata 2>/dev/null
1526 then
1527 rm -f conftestdata
1528 ac_cv_prog_LN_S="ln -s"
1529 else
1530 ac_cv_prog_LN_S=ln
1531 fi
1532 fi
1533 LN_S="$ac_cv_prog_LN_S"
1534 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1535 echo "$ac_t""yes" 1>&6
1536 else
1537 echo "$ac_t""no" 1>&6
1538 fi
1539
1540 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1541 echo "configure:1542: checking whether ${MAKE-make} sets \${MAKE}" >&5
1542 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1543 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1544 echo $ac_n "(cached) $ac_c" 1>&6
1545 else
1546 cat > conftestmake <<\EOF
1547 all:
1548 @echo 'ac_maketemp="${MAKE}"'
1549 EOF
1550 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1551 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1552 if test -n "$ac_maketemp"; then
1553 eval ac_cv_prog_make_${ac_make}_set=yes
1554 else
1555 eval ac_cv_prog_make_${ac_make}_set=no
1556 fi
1557 rm -f conftestmake
1558 fi
1559 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1560 echo "$ac_t""yes" 1>&6
1561 SET_MAKE=
1562 else
1563 echo "$ac_t""no" 1>&6
1564 SET_MAKE="MAKE=${MAKE-make}"
1565 fi
1566
1567 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1568 echo "configure:1569: checking for Cygwin environment" >&5
1569 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1570 echo $ac_n "(cached) $ac_c" 1>&6
1571 else
1572 cat > conftest.$ac_ext <<EOF
1573 #line 1574 "configure"
1574 #include "confdefs.h"
1575
1576 int main() {
1577
1578 #ifndef __CYGWIN__
1579 #define __CYGWIN__ __CYGWIN32__
1580 #endif
1581 return __CYGWIN__;
1582 ; return 0; }
1583 EOF
1584 if { (eval echo configure:1585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1585 rm -rf conftest*
1586 ac_cv_cygwin=yes
1587 else
1588 echo "configure: failed program was:" >&5
1589 cat conftest.$ac_ext >&5
1590 rm -rf conftest*
1591 ac_cv_cygwin=no
1592 fi
1593 rm -f conftest*
1594 rm -f conftest*
1595 fi
1596
1597 echo "$ac_t""$ac_cv_cygwin" 1>&6
1598 CYGWIN=
1599 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1600 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1601 echo "configure:1602: checking for mingw32 environment" >&5
1602 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1603 echo $ac_n "(cached) $ac_c" 1>&6
1604 else
1605 cat > conftest.$ac_ext <<EOF
1606 #line 1607 "configure"
1607 #include "confdefs.h"
1608
1609 int main() {
1610 return __MINGW32__;
1611 ; return 0; }
1612 EOF
1613 if { (eval echo configure:1614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1614 rm -rf conftest*
1615 ac_cv_mingw32=yes
1616 else
1617 echo "configure: failed program was:" >&5
1618 cat conftest.$ac_ext >&5
1619 rm -rf conftest*
1620 ac_cv_mingw32=no
1621 fi
1622 rm -f conftest*
1623 rm -f conftest*
1624 fi
1625
1626 echo "$ac_t""$ac_cv_mingw32" 1>&6
1627 MINGW32=
1628 test "$ac_cv_mingw32" = yes && MINGW32=yes
1629 # Check whether --enable-shared or --disable-shared was given.
1630 if test "${enable_shared+set}" = set; then
1631 enableval="$enable_shared"
1632 p=${PACKAGE-default}
1633 case $enableval in
1634 yes) enable_shared=yes ;;
1635 no) enable_shared=no ;;
1636 *)
1637 enable_shared=no
1638 # Look at the argument we got. We use all the common list separators.
1639 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1640 for pkg in $enableval; do
1641 if test "X$pkg" = "X$p"; then
1642 enable_shared=yes
1643 fi
1644 done
1645 IFS="$ac_save_ifs"
1646 ;;
1647 esac
1648 else
1649 enable_shared=yes
1650 fi
1651
1652 # Check whether --enable-static or --disable-static was given.
1653 if test "${enable_static+set}" = set; then
1654 enableval="$enable_static"
1655 p=${PACKAGE-default}
1656 case $enableval in
1657 yes) enable_static=yes ;;
1658 no) enable_static=no ;;
1659 *)
1660 enable_static=no
1661 # Look at the argument we got. We use all the common list separators.
1662 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1663 for pkg in $enableval; do
1664 if test "X$pkg" = "X$p"; then
1665 enable_static=yes
1666 fi
1667 done
1668 IFS="$ac_save_ifs"
1669 ;;
1670 esac
1671 else
1672 enable_static=yes
1673 fi
1674
1675 # Check whether --enable-fast-install or --disable-fast-install was given.
1676 if test "${enable_fast_install+set}" = set; then
1677 enableval="$enable_fast_install"
1678 p=${PACKAGE-default}
1679 case $enableval in
1680 yes) enable_fast_install=yes ;;
1681 no) enable_fast_install=no ;;
1682 *)
1683 enable_fast_install=no
1684 # Look at the argument we got. We use all the common list separators.
1685 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1686 for pkg in $enableval; do
1687 if test "X$pkg" = "X$p"; then
1688 enable_fast_install=yes
1689 fi
1690 done
1691 IFS="$ac_save_ifs"
1692 ;;
1693 esac
1694 else
1695 enable_fast_install=yes
1696 fi
1697
1698 echo $ac_n "checking build system type""... $ac_c" 1>&6
1699 echo "configure:1700: checking build system type" >&5
1700
1701 build_alias=$build
1702 case "$build_alias" in
1703 NONE)
1704 case $nonopt in
1705 NONE) build_alias=$host_alias ;;
1706 *) build_alias=$nonopt ;;
1707 esac ;;
1708 esac
1709
1710 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1711 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1712 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1713 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1714 echo "$ac_t""$build" 1>&6
1715
1716 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1717 if test "${with_gnu_ld+set}" = set; then
1718 withval="$with_gnu_ld"
1719 test "$withval" = no || with_gnu_ld=yes
1720 else
1721 with_gnu_ld=no
1722 fi
1723
1724 ac_prog=ld
1725 if test "$GCC" = yes; then
1726 # Check if gcc -print-prog-name=ld gives a path.
1727 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1728 echo "configure:1729: checking for ld used by GCC" >&5
1729 case $host in
1730 *-*-mingw*)
1731 # gcc leaves a trailing carriage return which upsets mingw
1732 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1733 *)
1734 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1735 esac
1736 case $ac_prog in
1737 # Accept absolute paths.
1738 [\\/]* | [A-Za-z]:[\\/]*)
1739 re_direlt='/[^/][^/]*/\.\./'
1740 # Canonicalize the path of ld
1741 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1742 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1743 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1744 done
1745 test -z "$LD" && LD="$ac_prog"
1746 ;;
1747 "")
1748 # If it fails, then pretend we aren't using GCC.
1749 ac_prog=ld
1750 ;;
1751 *)
1752 # If it is relative, then search for the first ld in PATH.
1753 with_gnu_ld=unknown
1754 ;;
1755 esac
1756 elif test "$with_gnu_ld" = yes; then
1757 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1758 echo "configure:1759: checking for GNU ld" >&5
1759 else
1760 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1761 echo "configure:1762: checking for non-GNU ld" >&5
1762 fi
1763 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1764 echo $ac_n "(cached) $ac_c" 1>&6
1765 else
1766 if test -z "$LD"; then
1767 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1768 for ac_dir in $PATH; do
1769 test -z "$ac_dir" && ac_dir=.
1770 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1771 lt_cv_path_LD="$ac_dir/$ac_prog"
1772 # Check to see if the program is GNU ld. I'd rather use --version,
1773 # but apparently some GNU ld's only accept -v.
1774 # Break only if it was the GNU/non-GNU ld that we prefer.
1775 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1776 test "$with_gnu_ld" != no && break
1777 else
1778 test "$with_gnu_ld" != yes && break
1779 fi
1780 fi
1781 done
1782 IFS="$ac_save_ifs"
1783 else
1784 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1785 fi
1786 fi
1787
1788 LD="$lt_cv_path_LD"
1789 if test -n "$LD"; then
1790 echo "$ac_t""$LD" 1>&6
1791 else
1792 echo "$ac_t""no" 1>&6
1793 fi
1794 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1795 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1796 echo "configure:1797: checking if the linker ($LD) is GNU ld" >&5
1797 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1798 echo $ac_n "(cached) $ac_c" 1>&6
1799 else
1800 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1801 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1802 lt_cv_prog_gnu_ld=yes
1803 else
1804 lt_cv_prog_gnu_ld=no
1805 fi
1806 fi
1807
1808 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1809 with_gnu_ld=$lt_cv_prog_gnu_ld
1810
1811
1812 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1813 echo "configure:1814: checking for $LD option to reload object files" >&5
1814 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1815 echo $ac_n "(cached) $ac_c" 1>&6
1816 else
1817 lt_cv_ld_reload_flag='-r'
1818 fi
1819
1820 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1821 reload_flag=$lt_cv_ld_reload_flag
1822 test -n "$reload_flag" && reload_flag=" $reload_flag"
1823
1824 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1825 echo "configure:1826: checking for BSD-compatible nm" >&5
1826 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1827 echo $ac_n "(cached) $ac_c" 1>&6
1828 else
1829 if test -n "$NM"; then
1830 # Let the user override the test.
1831 lt_cv_path_NM="$NM"
1832 else
1833 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1834 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1835 test -z "$ac_dir" && ac_dir=.
1836 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1837 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1838 # Check to see if the nm accepts a BSD-compat flag.
1839 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1840 # nm: unknown option "B" ignored
1841 # Tru64's nm complains that /dev/null is an invalid object file
1842 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1843 lt_cv_path_NM="$tmp_nm -B"
1844 break
1845 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1846 lt_cv_path_NM="$tmp_nm -p"
1847 break
1848 else
1849 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1850 continue # so that we can try to find one that supports BSD flags
1851 fi
1852 fi
1853 done
1854 IFS="$ac_save_ifs"
1855 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1856 fi
1857 fi
1858
1859 NM="$lt_cv_path_NM"
1860 echo "$ac_t""$NM" 1>&6
1861
1862 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1863 echo "configure:1864: checking how to recognise dependant libraries" >&5
1864 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1865 echo $ac_n "(cached) $ac_c" 1>&6
1866 else
1867 lt_cv_file_magic_cmd='$MAGIC_CMD'
1868 lt_cv_file_magic_test_file=
1869 lt_cv_deplibs_check_method='unknown'
1870 # Need to set the preceding variable on all platforms that support
1871 # interlibrary dependencies.
1872 # 'none' -- dependencies not supported.
1873 # `unknown' -- same as none, but documents that we really don't know.
1874 # 'pass_all' -- all dependencies passed with no checks.
1875 # 'test_compile' -- check by making test program.
1876 # ['file_magic [regex]'] -- check by looking for files in library path
1877 # which responds to the $file_magic_cmd with a given egrep regex.
1878 # If you have `file' or equivalent on your system and you're not sure
1879 # whether `pass_all' will *always* work, you probably want this one.
1880
1881 case $host_os in
1882 aix4* | aix5*)
1883 lt_cv_deplibs_check_method=pass_all
1884 ;;
1885
1886 beos*)
1887 lt_cv_deplibs_check_method=pass_all
1888 ;;
1889
1890 bsdi4*)
1891 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1892 lt_cv_file_magic_cmd='/usr/bin/file -L'
1893 lt_cv_file_magic_test_file=/shlib/libc.so
1894 ;;
1895
1896 cygwin* | mingw* | pw32*)
1897 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1898 lt_cv_file_magic_cmd='$OBJDUMP -f'
1899 ;;
1900
1901 darwin* | rhapsody*)
1902 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1903 lt_cv_file_magic_cmd='/usr/bin/file -L'
1904 case "$host_os" in
1905 rhapsody* | darwin1.012)
1906 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
1907 ;;
1908 *) # Darwin 1.3 on
1909 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1910 ;;
1911 esac
1912 ;;
1913
1914 freebsd*)
1915 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1916 case $host_cpu in
1917 i*86 )
1918 # Not sure whether the presence of OpenBSD here was a mistake.
1919 # Let's accept both of them until this is cleared up.
1920 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1921 lt_cv_file_magic_cmd=/usr/bin/file
1922 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1923 ;;
1924 esac
1925 else
1926 lt_cv_deplibs_check_method=pass_all
1927 fi
1928 ;;
1929
1930 gnu*)
1931 lt_cv_deplibs_check_method=pass_all
1932 ;;
1933
1934 hpux10.20*|hpux11*)
1935 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1936 lt_cv_file_magic_cmd=/usr/bin/file
1937 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1938 ;;
1939
1940 irix5* | irix6*)
1941 case $host_os in
1942 irix5*)
1943 # this will be overridden with pass_all, but let us keep it just in case
1944 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1945 ;;
1946 *)
1947 case $LD in
1948 *-32|*"-32 ") libmagic=32-bit;;
1949 *-n32|*"-n32 ") libmagic=N32;;
1950 *-64|*"-64 ") libmagic=64-bit;;
1951 *) libmagic=never-match;;
1952 esac
1953 # this will be overridden with pass_all, but let us keep it just in case
1954 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1955 ;;
1956 esac
1957 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1958 lt_cv_deplibs_check_method=pass_all
1959 ;;
1960
1961 # This must be Linux ELF.
1962 linux-gnu*)
1963 case $host_cpu in
1964 alpha* | i*86 | powerpc* | sparc* | ia64* )
1965 lt_cv_deplibs_check_method=pass_all ;;
1966 *)
1967 # glibc up to 2.1.1 does not perform some relocations on ARM
1968 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1969 esac
1970 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1971 ;;
1972
1973 netbsd*)
1974 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1975 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1976 else
1977 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1978 fi
1979 ;;
1980
1981 newos6*)
1982 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1983 lt_cv_file_magic_cmd=/usr/bin/file
1984 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1985 ;;
1986
1987 osf3* | osf4* | osf5*)
1988 # this will be overridden with pass_all, but let us keep it just in case
1989 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1990 lt_cv_file_magic_test_file=/shlib/libc.so
1991 lt_cv_deplibs_check_method=pass_all
1992 ;;
1993
1994 sco3.2v5*)
1995 lt_cv_deplibs_check_method=pass_all
1996 ;;
1997
1998 solaris*)
1999 lt_cv_deplibs_check_method=pass_all
2000 lt_cv_file_magic_test_file=/lib/libc.so
2001 ;;
2002
2003 sysv5uw[78]* | sysv4*uw2*)
2004 lt_cv_deplibs_check_method=pass_all
2005 ;;
2006
2007 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2008 case $host_vendor in
2009 motorola)
2010 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]'
2011 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2012 ;;
2013 ncr)
2014 lt_cv_deplibs_check_method=pass_all
2015 ;;
2016 sequent)
2017 lt_cv_file_magic_cmd='/bin/file'
2018 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2019 ;;
2020 sni)
2021 lt_cv_file_magic_cmd='/bin/file'
2022 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2023 lt_cv_file_magic_test_file=/lib/libc.so
2024 ;;
2025 esac
2026 ;;
2027 esac
2028
2029 fi
2030
2031 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2032 file_magic_cmd=$lt_cv_file_magic_cmd
2033 deplibs_check_method=$lt_cv_deplibs_check_method
2034
2035 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2036 echo "configure:2037: checking for object suffix" >&5
2037 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2038 echo $ac_n "(cached) $ac_c" 1>&6
2039 else
2040 rm -f conftest*
2041 echo 'int i = 1;' > conftest.$ac_ext
2042 if { (eval echo configure:2043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2043 for ac_file in conftest.*; do
2044 case $ac_file in
2045 *.c) ;;
2046 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2047 esac
2048 done
2049 else
2050 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2051 fi
2052 rm -f conftest*
2053 fi
2054
2055 echo "$ac_t""$ac_cv_objext" 1>&6
2056 OBJEXT=$ac_cv_objext
2057 ac_objext=$ac_cv_objext
2058
2059
2060
2061 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2062 echo "configure:2063: checking for executable suffix" >&5
2063 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2064 echo $ac_n "(cached) $ac_c" 1>&6
2065 else
2066 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2067 ac_cv_exeext=.exe
2068 else
2069 rm -f conftest*
2070 echo 'int main () { return 0; }' > conftest.$ac_ext
2071 ac_cv_exeext=
2072 if { (eval echo configure:2073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2073 for file in conftest.*; do
2074 case $file in
2075 *.c | *.C | *.o | *.obj | *.ilk | *.pdb) ;;
2076 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2077 esac
2078 done
2079 else
2080 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2081 fi
2082 rm -f conftest*
2083 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2084 fi
2085 fi
2086
2087 EXEEXT=""
2088 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2089 echo "$ac_t""${ac_cv_exeext}" 1>&6
2090 ac_exeext=$EXEEXT
2091
2092 if test $host != $build; then
2093 ac_tool_prefix=${host_alias}-
2094 else
2095 ac_tool_prefix=
2096 fi
2097
2098
2099
2100
2101 # Check for command to grab the raw symbol name followed by C symbol from nm.
2102 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
2103 echo "configure:2104: checking command to parse $NM output" >&5
2104 if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
2105 echo $ac_n "(cached) $ac_c" 1>&6
2106 else
2107
2108 # These are sane defaults that work on at least a few old systems.
2109 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
2110
2111 # Character class describing NM global symbol codes.
2112 symcode='[BCDEGRST]'
2113
2114 # Regexp to match symbols that can be accessed directly from C.
2115 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
2116
2117 # Transform the above into a raw symbol and a C symbol.
2118 symxfrm='\1 \2\3 \3'
2119
2120 # Transform an extracted symbol line into a proper C declaration
2121 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
2122
2123 # Define system-specific variables.
2124 case $host_os in
2125 aix*)
2126 symcode='[BCDT]'
2127 ;;
2128 cygwin* | mingw* | pw32*)
2129 symcode='[ABCDGISTW]'
2130 ;;
2131 hpux*) # Its linker distinguishes data from code symbols
2132 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2133 ;;
2134 irix*)
2135 symcode='[BCDEGRST]'
2136 ;;
2137 solaris* | sysv5*)
2138 symcode='[BDT]'
2139 ;;
2140 sysv4)
2141 symcode='[DFNSTU]'
2142 ;;
2143 esac
2144
2145 # Handle CRLF in mingw tool chain
2146 opt_cr=
2147 case $host_os in
2148 mingw*)
2149 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2150 ;;
2151 esac
2152
2153 # If we're using GNU nm, then use its standard symbol codes.
2154 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2155 symcode='[ABCDGISTW]'
2156 fi
2157
2158 # Try without a prefix undercore, then with it.
2159 for ac_symprfx in "" "_"; do
2160
2161 # Write the raw and C identifiers.
2162 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2163
2164 # Check to see that the pipe works correctly.
2165 pipe_works=no
2166 rm -f conftest*
2167 cat > conftest.$ac_ext <<EOF
2168 #ifdef __cplusplus
2169 extern "C" {
2170 #endif
2171 char nm_test_var;
2172 void nm_test_func(){}
2173 #ifdef __cplusplus
2174 }
2175 #endif
2176 int main(){nm_test_var='a';nm_test_func();return(0);}
2177 EOF
2178
2179 if { (eval echo configure:2180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2180 # Now try to grab the symbols.
2181 nlist=conftest.nm
2182 if { (eval echo configure:2183: \"$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
2183 # Try sorting and uniquifying the output.
2184 if sort "$nlist" | uniq > "$nlist"T; then
2185 mv -f "$nlist"T "$nlist"
2186 else
2187 rm -f "$nlist"T
2188 fi
2189
2190 # Make sure that we snagged all the symbols we need.
2191 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
2192 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
2193 cat <<EOF > conftest.$ac_ext
2194 #ifdef __cplusplus
2195 extern "C" {
2196 #endif
2197
2198 EOF
2199 # Now generate the symbol file.
2200 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
2201
2202 cat <<EOF >> conftest.$ac_ext
2203 #if defined (__STDC__) && __STDC__
2204 # define lt_ptr_t void *
2205 #else
2206 # define lt_ptr_t char *
2207 # define const
2208 #endif
2209
2210 /* The mapping between symbol names and symbols. */
2211 const struct {
2212 const char *name;
2213 lt_ptr_t address;
2214 }
2215 lt_preloaded_symbols[] =
2216 {
2217 EOF
2218 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.$ac_ext
2219 cat <<\EOF >> conftest.$ac_ext
2220 {0, (lt_ptr_t) 0}
2221 };
2222
2223 #ifdef __cplusplus
2224 }
2225 #endif
2226 EOF
2227 # Now try linking the two files.
2228 mv conftest.$ac_objext conftstm.$ac_objext
2229 save_LIBS="$LIBS"
2230 save_CFLAGS="$CFLAGS"
2231 LIBS="conftstm.$ac_objext"
2232 CFLAGS="$CFLAGS$no_builtin_flag"
2233 if { (eval echo configure:2234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2234 pipe_works=yes
2235 fi
2236 LIBS="$save_LIBS"
2237 CFLAGS="$save_CFLAGS"
2238 else
2239 echo "cannot find nm_test_func in $nlist" >&5
2240 fi
2241 else
2242 echo "cannot find nm_test_var in $nlist" >&5
2243 fi
2244 else
2245 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
2246 fi
2247 else
2248 echo "$progname: failed program was:" >&5
2249 cat conftest.$ac_ext >&5
2250 fi
2251 rm -f conftest* conftst*
2252
2253 # Do not use the global_symbol_pipe unless it works.
2254 if test "$pipe_works" = yes; then
2255 break
2256 else
2257 lt_cv_sys_global_symbol_pipe=
2258 fi
2259 done
2260
2261 fi
2262
2263 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
2264 if test -z "$lt_cv_sys_global_symbol_pipe"; then
2265 global_symbol_to_cdecl=
2266 else
2267 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
2268 fi
2269 if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
2270 echo "$ac_t""failed" 1>&6
2271 else
2272 echo "$ac_t""ok" 1>&6
2273 fi
2274
2275 for ac_hdr in dlfcn.h
2276 do
2277 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2278 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2279 echo "configure:2280: checking for $ac_hdr" >&5
2280 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2281 echo $ac_n "(cached) $ac_c" 1>&6
2282 else
2283 cat > conftest.$ac_ext <<EOF
2284 #line 2285 "configure"
2285 #include "confdefs.h"
2286 #include <$ac_hdr>
2287 EOF
2288 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2289 { (eval echo configure:2290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2290 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2291 if test -z "$ac_err"; then
2292 rm -rf conftest*
2293 eval "ac_cv_header_$ac_safe=yes"
2294 else
2295 echo "$ac_err" >&5
2296 echo "configure: failed program was:" >&5
2297 cat conftest.$ac_ext >&5
2298 rm -rf conftest*
2299 eval "ac_cv_header_$ac_safe=no"
2300 fi
2301 rm -f conftest*
2302 fi
2303 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2304 echo "$ac_t""yes" 1>&6
2305 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2306 cat >> confdefs.h <<EOF
2307 #define $ac_tr_hdr 1
2308 EOF
2309
2310 else
2311 echo "$ac_t""no" 1>&6
2312 fi
2313 done
2314
2315
2316
2317
2318
2319 # Only perform the check for file, if the check method requires it
2320 case $deplibs_check_method in
2321 file_magic*)
2322 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2323 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2324 echo "configure:2325: checking for ${ac_tool_prefix}file" >&5
2325 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2326 echo $ac_n "(cached) $ac_c" 1>&6
2327 else
2328 case $MAGIC_CMD in
2329 /*)
2330 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2331 ;;
2332 ?:/*)
2333 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2334 ;;
2335 *)
2336 ac_save_MAGIC_CMD="$MAGIC_CMD"
2337 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2338 ac_dummy="/usr/bin:$PATH"
2339 for ac_dir in $ac_dummy; do
2340 test -z "$ac_dir" && ac_dir=.
2341 if test -f $ac_dir/${ac_tool_prefix}file; then
2342 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2343 if test -n "$file_magic_test_file"; then
2344 case $deplibs_check_method in
2345 "file_magic "*)
2346 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2347 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2348 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2349 egrep "$file_magic_regex" > /dev/null; then
2350 :
2351 else
2352 cat <<EOF 1>&2
2353
2354 *** Warning: the command libtool uses to detect shared libraries,
2355 *** $file_magic_cmd, produces output that libtool cannot recognize.
2356 *** The result is that libtool may fail to recognize shared libraries
2357 *** as such. This will affect the creation of libtool libraries that
2358 *** depend on shared libraries, but programs linked with such libtool
2359 *** libraries will work regardless of this problem. Nevertheless, you
2360 *** may want to report the problem to your system manager and/or to
2361 *** bug-libtool@gnu.org
2362
2363 EOF
2364 fi ;;
2365 esac
2366 fi
2367 break
2368 fi
2369 done
2370 IFS="$ac_save_ifs"
2371 MAGIC_CMD="$ac_save_MAGIC_CMD"
2372 ;;
2373 esac
2374 fi
2375
2376 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2377 if test -n "$MAGIC_CMD"; then
2378 echo "$ac_t""$MAGIC_CMD" 1>&6
2379 else
2380 echo "$ac_t""no" 1>&6
2381 fi
2382
2383 if test -z "$lt_cv_path_MAGIC_CMD"; then
2384 if test -n "$ac_tool_prefix"; then
2385 echo $ac_n "checking for file""... $ac_c" 1>&6
2386 echo "configure:2387: checking for file" >&5
2387 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2388 echo $ac_n "(cached) $ac_c" 1>&6
2389 else
2390 case $MAGIC_CMD in
2391 /*)
2392 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2393 ;;
2394 ?:/*)
2395 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2396 ;;
2397 *)
2398 ac_save_MAGIC_CMD="$MAGIC_CMD"
2399 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2400 ac_dummy="/usr/bin:$PATH"
2401 for ac_dir in $ac_dummy; do
2402 test -z "$ac_dir" && ac_dir=.
2403 if test -f $ac_dir/file; then
2404 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2405 if test -n "$file_magic_test_file"; then
2406 case $deplibs_check_method in
2407 "file_magic "*)
2408 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2409 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2410 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2411 egrep "$file_magic_regex" > /dev/null; then
2412 :
2413 else
2414 cat <<EOF 1>&2
2415
2416 *** Warning: the command libtool uses to detect shared libraries,
2417 *** $file_magic_cmd, produces output that libtool cannot recognize.
2418 *** The result is that libtool may fail to recognize shared libraries
2419 *** as such. This will affect the creation of libtool libraries that
2420 *** depend on shared libraries, but programs linked with such libtool
2421 *** libraries will work regardless of this problem. Nevertheless, you
2422 *** may want to report the problem to your system manager and/or to
2423 *** bug-libtool@gnu.org
2424
2425 EOF
2426 fi ;;
2427 esac
2428 fi
2429 break
2430 fi
2431 done
2432 IFS="$ac_save_ifs"
2433 MAGIC_CMD="$ac_save_MAGIC_CMD"
2434 ;;
2435 esac
2436 fi
2437
2438 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2439 if test -n "$MAGIC_CMD"; then
2440 echo "$ac_t""$MAGIC_CMD" 1>&6
2441 else
2442 echo "$ac_t""no" 1>&6
2443 fi
2444
2445 else
2446 MAGIC_CMD=:
2447 fi
2448 fi
2449
2450 fi
2451 ;;
2452 esac
2453
2454 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2455 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2456 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2457 echo "configure:2458: checking for $ac_word" >&5
2458 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2459 echo $ac_n "(cached) $ac_c" 1>&6
2460 else
2461 if test -n "$RANLIB"; then
2462 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2463 else
2464 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2465 ac_dummy="$PATH"
2466 for ac_dir in $ac_dummy; do
2467 test -z "$ac_dir" && ac_dir=.
2468 if test -f $ac_dir/$ac_word; then
2469 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2470 break
2471 fi
2472 done
2473 IFS="$ac_save_ifs"
2474 fi
2475 fi
2476 RANLIB="$ac_cv_prog_RANLIB"
2477 if test -n "$RANLIB"; then
2478 echo "$ac_t""$RANLIB" 1>&6
2479 else
2480 echo "$ac_t""no" 1>&6
2481 fi
2482
2483
2484 if test -z "$ac_cv_prog_RANLIB"; then
2485 if test -n "$ac_tool_prefix"; then
2486 # Extract the first word of "ranlib", so it can be a program name with args.
2487 set dummy ranlib; ac_word=$2
2488 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2489 echo "configure:2490: checking for $ac_word" >&5
2490 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2491 echo $ac_n "(cached) $ac_c" 1>&6
2492 else
2493 if test -n "$RANLIB"; then
2494 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2495 else
2496 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2497 ac_dummy="$PATH"
2498 for ac_dir in $ac_dummy; do
2499 test -z "$ac_dir" && ac_dir=.
2500 if test -f $ac_dir/$ac_word; then
2501 ac_cv_prog_RANLIB="ranlib"
2502 break
2503 fi
2504 done
2505 IFS="$ac_save_ifs"
2506 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2507 fi
2508 fi
2509 RANLIB="$ac_cv_prog_RANLIB"
2510 if test -n "$RANLIB"; then
2511 echo "$ac_t""$RANLIB" 1>&6
2512 else
2513 echo "$ac_t""no" 1>&6
2514 fi
2515
2516 else
2517 RANLIB=":"
2518 fi
2519 fi
2520
2521 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2522 set dummy ${ac_tool_prefix}strip; ac_word=$2
2523 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2524 echo "configure:2525: checking for $ac_word" >&5
2525 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2526 echo $ac_n "(cached) $ac_c" 1>&6
2527 else
2528 if test -n "$STRIP"; then
2529 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2530 else
2531 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2532 ac_dummy="$PATH"
2533 for ac_dir in $ac_dummy; do
2534 test -z "$ac_dir" && ac_dir=.
2535 if test -f $ac_dir/$ac_word; then
2536 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2537 break
2538 fi
2539 done
2540 IFS="$ac_save_ifs"
2541 fi
2542 fi
2543 STRIP="$ac_cv_prog_STRIP"
2544 if test -n "$STRIP"; then
2545 echo "$ac_t""$STRIP" 1>&6
2546 else
2547 echo "$ac_t""no" 1>&6
2548 fi
2549
2550
2551 if test -z "$ac_cv_prog_STRIP"; then
2552 if test -n "$ac_tool_prefix"; then
2553 # Extract the first word of "strip", so it can be a program name with args.
2554 set dummy strip; ac_word=$2
2555 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2556 echo "configure:2557: checking for $ac_word" >&5
2557 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2558 echo $ac_n "(cached) $ac_c" 1>&6
2559 else
2560 if test -n "$STRIP"; then
2561 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2562 else
2563 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2564 ac_dummy="$PATH"
2565 for ac_dir in $ac_dummy; do
2566 test -z "$ac_dir" && ac_dir=.
2567 if test -f $ac_dir/$ac_word; then
2568 ac_cv_prog_STRIP="strip"
2569 break
2570 fi
2571 done
2572 IFS="$ac_save_ifs"
2573 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2574 fi
2575 fi
2576 STRIP="$ac_cv_prog_STRIP"
2577 if test -n "$STRIP"; then
2578 echo "$ac_t""$STRIP" 1>&6
2579 else
2580 echo "$ac_t""no" 1>&6
2581 fi
2582
2583 else
2584 STRIP=":"
2585 fi
2586 fi
2587
2588
2589 enable_dlopen=no
2590 enable_win32_dll=no
2591
2592 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2593 if test "${enable_libtool_lock+set}" = set; then
2594 enableval="$enable_libtool_lock"
2595 :
2596 fi
2597
2598 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2599
2600 # Some flags need to be propagated to the compiler or linker for good
2601 # libtool support.
2602 case $host in
2603 *-*-irix6*)
2604 # Find out which ABI we are using.
2605 echo '#line 2606 "configure"' > conftest.$ac_ext
2606 if { (eval echo configure:2607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2607 case `/usr/bin/file conftest.$ac_objext` in
2608 *32-bit*)
2609 LD="${LD-ld} -32"
2610 ;;
2611 *N32*)
2612 LD="${LD-ld} -n32"
2613 ;;
2614 *64-bit*)
2615 LD="${LD-ld} -64"
2616 ;;
2617 esac
2618 fi
2619 rm -rf conftest*
2620 ;;
2621
2622 *-*-sco3.2v5*)
2623 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2624 SAVE_CFLAGS="$CFLAGS"
2625 CFLAGS="$CFLAGS -belf"
2626 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2627 echo "configure:2628: checking whether the C compiler needs -belf" >&5
2628 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2629 echo $ac_n "(cached) $ac_c" 1>&6
2630 else
2631
2632 ac_ext=c
2633 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2634 ac_cpp='$CPP $CPPFLAGS'
2635 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2636 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2637 cross_compiling=$ac_cv_prog_cc_cross
2638
2639 cat > conftest.$ac_ext <<EOF
2640 #line 2641 "configure"
2641 #include "confdefs.h"
2642
2643 int main() {
2644
2645 ; return 0; }
2646 EOF
2647 if { (eval echo configure:2648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2648 rm -rf conftest*
2649 lt_cv_cc_needs_belf=yes
2650 else
2651 echo "configure: failed program was:" >&5
2652 cat conftest.$ac_ext >&5
2653 rm -rf conftest*
2654 lt_cv_cc_needs_belf=no
2655 fi
2656 rm -f conftest*
2657 ac_ext=c
2658 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2659 ac_cpp='$CPP $CPPFLAGS'
2660 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2661 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2662 cross_compiling=$ac_cv_prog_cc_cross
2663
2664 fi
2665
2666 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2667 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2668 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2669 CFLAGS="$SAVE_CFLAGS"
2670 fi
2671 ;;
2672
2673
2674 esac
2675
2676 # Sed substitution that helps us do robust quoting. It backslashifies
2677 # metacharacters that are still active within double-quoted strings.
2678 Xsed='sed -e s/^X//'
2679 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
2680
2681 # Same as above, but do not quote variable references.
2682 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
2683
2684 # Sed substitution to delay expansion of an escaped shell variable in a
2685 # double_quote_subst'ed string.
2686 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2687
2688 # Constants:
2689 rm="rm -f"
2690
2691 # Global variables:
2692 default_ofile=libtool
2693 can_build_shared=yes
2694
2695 # All known linkers require a `.a' archive for static linking (except M$VC,
2696 # which needs '.lib').
2697 libext=a
2698 ltmain="$ac_aux_dir/ltmain.sh"
2699 ofile="$default_ofile"
2700 with_gnu_ld="$lt_cv_prog_gnu_ld"
2701 need_locks="$enable_libtool_lock"
2702
2703 old_CC="$CC"
2704 old_CFLAGS="$CFLAGS"
2705
2706 # Set sane defaults for various variables
2707 test -z "$AR" && AR=ar
2708 test -z "$AR_FLAGS" && AR_FLAGS=cru
2709 test -z "$AS" && AS=as
2710 test -z "$CC" && CC=cc
2711 test -z "$DLLTOOL" && DLLTOOL=dlltool
2712 test -z "$LD" && LD=ld
2713 test -z "$LN_S" && LN_S="ln -s"
2714 test -z "$MAGIC_CMD" && MAGIC_CMD=file
2715 test -z "$NM" && NM=nm
2716 test -z "$OBJDUMP" && OBJDUMP=objdump
2717 test -z "$RANLIB" && RANLIB=:
2718 test -z "$STRIP" && STRIP=:
2719 test -z "$ac_objext" && ac_objext=o
2720
2721 if test x"$host" != x"$build"; then
2722 ac_tool_prefix=${host_alias}-
2723 else
2724 ac_tool_prefix=
2725 fi
2726
2727 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
2728 case $host_os in
2729 linux-gnu*) ;;
2730 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
2731 esac
2732
2733 case $host_os in
2734 aix3*)
2735 # AIX sometimes has problems with the GCC collect2 program. For some
2736 # reason, if we set the COLLECT_NAMES environment variable, the problems
2737 # vanish in a puff of smoke.
2738 if test "X${COLLECT_NAMES+set}" != Xset; then
2739 COLLECT_NAMES=
2740 export COLLECT_NAMES
2741 fi
2742 ;;
2743 esac
2744
2745 # Determine commands to create old-style static archives.
2746 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
2747 old_postinstall_cmds='chmod 644 $oldlib'
2748 old_postuninstall_cmds=
2749
2750 if test -n "$RANLIB"; then
2751 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2752 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
2753 fi
2754
2755 # Allow CC to be a program name with arguments.
2756 set dummy $CC
2757 compiler="$2"
2758
2759 echo $ac_n "checking for objdir""... $ac_c" 1>&6
2760 echo "configure:2761: checking for objdir" >&5
2761 rm -f .libs 2>/dev/null
2762 mkdir .libs 2>/dev/null
2763 if test -d .libs; then
2764 objdir=.libs
2765 else
2766 # MS-DOS does not allow filenames that begin with a dot.
2767 objdir=_libs
2768 fi
2769 rmdir .libs 2>/dev/null
2770 echo "$ac_t""$objdir" 1>&6
2771
2772
2773 # Check whether --with-pic or --without-pic was given.
2774 if test "${with_pic+set}" = set; then
2775 withval="$with_pic"
2776 pic_mode="$withval"
2777 else
2778 pic_mode=default
2779 fi
2780
2781 test -z "$pic_mode" && pic_mode=default
2782
2783 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
2784 # in isolation, and that seeing it set (from the cache) indicates that
2785 # the associated values are set (in the cache) correctly too.
2786 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
2787 echo "configure:2788: checking for $compiler option to produce PIC" >&5
2788 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
2789 echo $ac_n "(cached) $ac_c" 1>&6
2790 else
2791 lt_cv_prog_cc_pic=
2792 lt_cv_prog_cc_shlib=
2793 lt_cv_prog_cc_wl=
2794 lt_cv_prog_cc_static=
2795 lt_cv_prog_cc_no_builtin=
2796 lt_cv_prog_cc_can_build_shared=$can_build_shared
2797
2798 if test "$GCC" = yes; then
2799 lt_cv_prog_cc_wl='-Wl,'
2800 lt_cv_prog_cc_static='-static'
2801
2802 case $host_os in
2803 aix*)
2804 # Below there is a dirty hack to force normal static linking with -ldl
2805 # The problem is because libdl dynamically linked with both libc and
2806 # libC (AIX C++ library), which obviously doesn't included in libraries
2807 # list by gcc. This cause undefined symbols with -static flags.
2808 # This hack allows C programs to be linked with "-static -ldl", but
2809 # we not sure about C++ programs.
2810 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
2811 ;;
2812 amigaos*)
2813 # FIXME: we need at least 68020 code to build shared libraries, but
2814 # adding the `-m68020' flag to GCC prevents building anything better,
2815 # like `-m68040'.
2816 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
2817 ;;
2818 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
2819 # PIC is the default for these OSes.
2820 ;;
2821 darwin* | rhapsody*)
2822 # PIC is the default on this platform
2823 # Common symbols not allowed in MH_DYLIB files
2824 lt_cv_prog_cc_pic='-fno-common'
2825 ;;
2826 cygwin* | mingw* | pw32* | os2*)
2827 # This hack is so that the source file can tell whether it is being
2828 # built for inclusion in a dll (and should export symbols for example).
2829 lt_cv_prog_cc_pic='-DDLL_EXPORT'
2830 ;;
2831 sysv4*MP*)
2832 if test -d /usr/nec; then
2833 lt_cv_prog_cc_pic=-Kconform_pic
2834 fi
2835 ;;
2836 *)
2837 lt_cv_prog_cc_pic='-fPIC'
2838 ;;
2839 esac
2840 else
2841 # PORTME Check for PIC flags for the system compiler.
2842 case $host_os in
2843 aix3* | aix4* | aix5*)
2844 # All AIX code is PIC.
2845 if test "$host_cpu" = ia64; then
2846 # AIX 5 now supports IA64 processor
2847 lt_cv_prog_cc_static='-Bstatic'
2848 lt_cv_prog_cc_wl='-Wl,'
2849 else
2850 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
2851 fi
2852 ;;
2853
2854 hpux9* | hpux10* | hpux11*)
2855 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
2856 lt_cv_prog_cc_wl='-Wl,'
2857 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
2858 lt_cv_prog_cc_pic='+Z'
2859 ;;
2860
2861 irix5* | irix6*)
2862 lt_cv_prog_cc_wl='-Wl,'
2863 lt_cv_prog_cc_static='-non_shared'
2864 # PIC (with -KPIC) is the default.
2865 ;;
2866
2867 cygwin* | mingw* | pw32* | os2*)
2868 # This hack is so that the source file can tell whether it is being
2869 # built for inclusion in a dll (and should export symbols for example).
2870 lt_cv_prog_cc_pic='-DDLL_EXPORT'
2871 ;;
2872
2873 newsos6)
2874 lt_cv_prog_cc_pic='-KPIC'
2875 lt_cv_prog_cc_static='-Bstatic'
2876 ;;
2877
2878 osf3* | osf4* | osf5*)
2879 # All OSF/1 code is PIC.
2880 lt_cv_prog_cc_wl='-Wl,'
2881 lt_cv_prog_cc_static='-non_shared'
2882 ;;
2883
2884 sco3.2v5*)
2885 lt_cv_prog_cc_pic='-Kpic'
2886 lt_cv_prog_cc_static='-dn'
2887 lt_cv_prog_cc_shlib='-belf'
2888 ;;
2889
2890 solaris*)
2891 lt_cv_prog_cc_pic='-KPIC'
2892 lt_cv_prog_cc_static='-Bstatic'
2893 lt_cv_prog_cc_wl='-Wl,'
2894 ;;
2895
2896 sunos4*)
2897 lt_cv_prog_cc_pic='-PIC'
2898 lt_cv_prog_cc_static='-Bstatic'
2899 lt_cv_prog_cc_wl='-Qoption ld '
2900 ;;
2901
2902 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2903 lt_cv_prog_cc_pic='-KPIC'
2904 lt_cv_prog_cc_static='-Bstatic'
2905 if test "x$host_vendor" = xsni; then
2906 lt_cv_prog_cc_wl='-LD'
2907 else
2908 lt_cv_prog_cc_wl='-Wl,'
2909 fi
2910 ;;
2911
2912 uts4*)
2913 lt_cv_prog_cc_pic='-pic'
2914 lt_cv_prog_cc_static='-Bstatic'
2915 ;;
2916
2917 sysv4*MP*)
2918 if test -d /usr/nec ;then
2919 lt_cv_prog_cc_pic='-Kconform_pic'
2920 lt_cv_prog_cc_static='-Bstatic'
2921 fi
2922 ;;
2923
2924 *)
2925 lt_cv_prog_cc_can_build_shared=no
2926 ;;
2927 esac
2928 fi
2929
2930 fi
2931
2932 if test -z "$lt_cv_prog_cc_pic"; then
2933 echo "$ac_t""none" 1>&6
2934 else
2935 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
2936
2937 # Check to make sure the pic_flag actually works.
2938 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
2939 echo "configure:2940: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
2940 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
2941 echo $ac_n "(cached) $ac_c" 1>&6
2942 else
2943 save_CFLAGS="$CFLAGS"
2944 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
2945 cat > conftest.$ac_ext <<EOF
2946 #line 2947 "configure"
2947 #include "confdefs.h"
2948
2949 int main() {
2950
2951 ; return 0; }
2952 EOF
2953 if { (eval echo configure:2954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2954 rm -rf conftest*
2955 case $host_os in
2956 hpux9* | hpux10* | hpux11*)
2957 # On HP-UX, both CC and GCC only warn that PIC is supported... then
2958 # they create non-PIC objects. So, if there were any warnings, we
2959 # assume that PIC is not supported.
2960 if test -s conftest.err; then
2961 lt_cv_prog_cc_pic_works=no
2962 else
2963 lt_cv_prog_cc_pic_works=yes
2964 fi
2965 ;;
2966 *)
2967 lt_cv_prog_cc_pic_works=yes
2968 ;;
2969 esac
2970
2971 else
2972 echo "configure: failed program was:" >&5
2973 cat conftest.$ac_ext >&5
2974 rm -rf conftest*
2975 lt_cv_prog_cc_pic_works=no
2976
2977 fi
2978 rm -f conftest*
2979 CFLAGS="$save_CFLAGS"
2980
2981 fi
2982
2983
2984 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
2985 lt_cv_prog_cc_pic=
2986 lt_cv_prog_cc_can_build_shared=no
2987 else
2988 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
2989 fi
2990
2991 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
2992 fi
2993
2994 # Check for any special shared library compilation flags.
2995 if test -n "$lt_cv_prog_cc_shlib"; then
2996 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
2997 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
2998 else
2999 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
3000 lt_cv_prog_cc_can_build_shared=no
3001 fi
3002 fi
3003
3004 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
3005 echo "configure:3006: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
3006 if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
3007 echo $ac_n "(cached) $ac_c" 1>&6
3008 else
3009 lt_cv_prog_cc_static_works=no
3010 save_LDFLAGS="$LDFLAGS"
3011 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
3012 cat > conftest.$ac_ext <<EOF
3013 #line 3014 "configure"
3014 #include "confdefs.h"
3015
3016 int main() {
3017
3018 ; return 0; }
3019 EOF
3020 if { (eval echo configure:3021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3021 rm -rf conftest*
3022 lt_cv_prog_cc_static_works=yes
3023 else
3024 echo "configure: failed program was:" >&5
3025 cat conftest.$ac_ext >&5
3026 fi
3027 rm -f conftest*
3028 LDFLAGS="$save_LDFLAGS"
3029
3030 fi
3031
3032
3033 # Belt *and* braces to stop my trousers falling down:
3034 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
3035 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
3036
3037 pic_flag="$lt_cv_prog_cc_pic"
3038 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
3039 wl="$lt_cv_prog_cc_wl"
3040 link_static_flag="$lt_cv_prog_cc_static"
3041 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
3042 can_build_shared="$lt_cv_prog_cc_can_build_shared"
3043
3044
3045 # Check to see if options -o and -c are simultaneously supported by compiler
3046 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
3047 echo "configure:3048: checking if $compiler supports -c -o file.$ac_objext" >&5
3048 if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then
3049 echo $ac_n "(cached) $ac_c" 1>&6
3050 else
3051
3052 $rm -r conftest 2>/dev/null
3053 mkdir conftest
3054 cd conftest
3055 echo "int some_variable = 0;" > conftest.$ac_ext
3056 mkdir out
3057 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
3058 # that will create temporary files in the current directory regardless of
3059 # the output directory. Thus, making CWD read-only will cause this test
3060 # to fail, enabling locking or at least warning the user not to do parallel
3061 # builds.
3062 chmod -w .
3063 save_CFLAGS="$CFLAGS"
3064 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
3065 compiler_c_o=no
3066 if { (eval echo configure:3067: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
3067 # The compiler can only warn and ignore the option if not recognized
3068 # So say no if there are warnings
3069 if test -s out/conftest.err; then
3070 lt_cv_compiler_c_o=no
3071 else
3072 lt_cv_compiler_c_o=yes
3073 fi
3074 else
3075 # Append any errors to the config.log.
3076 cat out/conftest.err 1>&5
3077 lt_cv_compiler_c_o=no
3078 fi
3079 CFLAGS="$save_CFLAGS"
3080 chmod u+w .
3081 $rm conftest* out/*
3082 rmdir out
3083 cd ..
3084 rmdir conftest
3085 $rm -r conftest 2>/dev/null
3086
3087 fi
3088
3089 compiler_c_o=$lt_cv_compiler_c_o
3090 echo "$ac_t""$compiler_c_o" 1>&6
3091
3092 if test x"$compiler_c_o" = x"yes"; then
3093 # Check to see if we can write to a .lo
3094 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
3095 echo "configure:3096: checking if $compiler supports -c -o file.lo" >&5
3096 if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then
3097 echo $ac_n "(cached) $ac_c" 1>&6
3098 else
3099
3100 lt_cv_compiler_o_lo=no
3101 save_CFLAGS="$CFLAGS"
3102 CFLAGS="$CFLAGS -c -o conftest.lo"
3103 cat > conftest.$ac_ext <<EOF
3104 #line 3105 "configure"
3105 #include "confdefs.h"
3106
3107 int main() {
3108 int some_variable = 0;
3109 ; return 0; }
3110 EOF
3111 if { (eval echo configure:3112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3112 rm -rf conftest*
3113 # The compiler can only warn and ignore the option if not recognized
3114 # So say no if there are warnings
3115 if test -s conftest.err; then
3116 lt_cv_compiler_o_lo=no
3117 else
3118 lt_cv_compiler_o_lo=yes
3119 fi
3120
3121 else
3122 echo "configure: failed program was:" >&5
3123 cat conftest.$ac_ext >&5
3124 fi
3125 rm -f conftest*
3126 CFLAGS="$save_CFLAGS"
3127
3128 fi
3129
3130 compiler_o_lo=$lt_cv_compiler_o_lo
3131 echo "$ac_t""$compiler_c_lo" 1>&6
3132 else
3133 compiler_o_lo=no
3134 fi
3135
3136 # Check to see if we can do hard links to lock some files if needed
3137 hard_links="nottested"
3138 if test "$compiler_c_o" = no && test "$need_locks" != no; then
3139 # do not overwrite the value of need_locks provided by the user
3140 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
3141 echo "configure:3142: checking if we can lock with hard links" >&5
3142 hard_links=yes
3143 $rm conftest*
3144 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3145 touch conftest.a
3146 ln conftest.a conftest.b 2>&5 || hard_links=no
3147 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3148 echo "$ac_t""$hard_links" 1>&6
3149 if test "$hard_links" = no; then
3150 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
3151 need_locks=warn
3152 fi
3153 else
3154 need_locks=no
3155 fi
3156
3157 if test "$GCC" = yes; then
3158 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
3159 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
3160 echo "configure:3161: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
3161 echo "int some_variable = 0;" > conftest.$ac_ext
3162 save_CFLAGS="$CFLAGS"
3163 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
3164 compiler_rtti_exceptions=no
3165 cat > conftest.$ac_ext <<EOF
3166 #line 3167 "configure"
3167 #include "confdefs.h"
3168
3169 int main() {
3170 int some_variable = 0;
3171 ; return 0; }
3172 EOF
3173 if { (eval echo configure:3174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3174 rm -rf conftest*
3175 # The compiler can only warn and ignore the option if not recognized
3176 # So say no if there are warnings
3177 if test -s conftest.err; then
3178 compiler_rtti_exceptions=no
3179 else
3180 compiler_rtti_exceptions=yes
3181 fi
3182
3183 else
3184 echo "configure: failed program was:" >&5
3185 cat conftest.$ac_ext >&5
3186 fi
3187 rm -f conftest*
3188 CFLAGS="$save_CFLAGS"
3189 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
3190
3191 if test "$compiler_rtti_exceptions" = "yes"; then
3192 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
3193 else
3194 no_builtin_flag=' -fno-builtin'
3195 fi
3196 fi
3197
3198 # See if the linker supports building shared libraries.
3199 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
3200 echo "configure:3201: checking whether the linker ($LD) supports shared libraries" >&5
3201
3202 allow_undefined_flag=
3203 no_undefined_flag=
3204 need_lib_prefix=unknown
3205 need_version=unknown
3206 # when you set need_version to no, make sure it does not cause -set_version
3207 # flags to be left without arguments
3208 archive_cmds=
3209 archive_expsym_cmds=
3210 old_archive_from_new_cmds=
3211 old_archive_from_expsyms_cmds=
3212 export_dynamic_flag_spec=
3213 whole_archive_flag_spec=
3214 thread_safe_flag_spec=
3215 hardcode_into_libs=no
3216 hardcode_libdir_flag_spec=
3217 hardcode_libdir_separator=
3218 hardcode_direct=no
3219 hardcode_minus_L=no
3220 hardcode_shlibpath_var=unsupported
3221 runpath_var=
3222 link_all_deplibs=unknown
3223 always_export_symbols=no
3224 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
3225 # include_expsyms should be a list of space-separated symbols to be *always*
3226 # included in the symbol list
3227 include_expsyms=
3228 # exclude_expsyms can be an egrep regular expression of symbols to exclude
3229 # it will be wrapped by ` (' and `)$', so one must not match beginning or
3230 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
3231 # as well as any symbol that contains `d'.
3232 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
3233 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
3234 # platforms (ab)use it in PIC code, but their linkers get confused if
3235 # the symbol is explicitly referenced. Since portable code cannot
3236 # rely on this symbol name, it's probably fine to never include it in
3237 # preloaded symbol tables.
3238 extract_expsyms_cmds=
3239
3240 case $host_os in
3241 cygwin* | mingw* | pw32* )
3242 # FIXME: the MSVC++ port hasn't been tested in a loooong time
3243 # When not using gcc, we currently assume that we are using
3244 # Microsoft Visual C++.
3245 if test "$GCC" != yes; then
3246 with_gnu_ld=no
3247 fi
3248 ;;
3249
3250 esac
3251
3252 ld_shlibs=yes
3253 if test "$with_gnu_ld" = yes; then
3254 # If archive_cmds runs LD, not CC, wlarc should be empty
3255 wlarc='${wl}'
3256
3257 # See if GNU ld supports shared libraries.
3258 case $host_os in
3259 aix3* | aix4* | aix5*)
3260 # On AIX, the GNU linker is very broken
3261 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
3262 ld_shlibs=no
3263 cat <<EOF 1>&2
3264
3265 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
3266 *** to be unable to reliably create shared libraries on AIX.
3267 *** Therefore, libtool is disabling shared libraries support. If you
3268 *** really care for shared libraries, you may want to modify your PATH
3269 *** so that a non-GNU linker is found, and then restart.
3270
3271 EOF
3272 ;;
3273
3274 amigaos*)
3275 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)'
3276 hardcode_libdir_flag_spec='-L$libdir'
3277 hardcode_minus_L=yes
3278
3279 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
3280 # that the semantics of dynamic libraries on AmigaOS, at least up
3281 # to version 4, is to share data among multiple programs linked
3282 # with the same dynamic library. Since this doesn't match the
3283 # behavior of shared libraries on other platforms, we can use
3284 # them.
3285 ld_shlibs=no
3286 ;;
3287
3288 beos*)
3289 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3290 allow_undefined_flag=unsupported
3291 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3292 # support --undefined. This deserves some investigation. FIXME
3293 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3294 else
3295 ld_shlibs=no
3296 fi
3297 ;;
3298
3299 cygwin* | mingw* | pw32*)
3300 # hardcode_libdir_flag_spec is actually meaningless, as there is
3301 # no search path for DLLs.
3302 hardcode_libdir_flag_spec='-L$libdir'
3303 allow_undefined_flag=unsupported
3304 always_export_symbols=yes
3305
3306 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
3307 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
3308 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
3309 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
3310 else $CC -o impgen impgen.c ; fi)~
3311 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
3312
3313 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
3314
3315 # cygwin and mingw dlls have different entry points and sets of symbols
3316 # to exclude.
3317 # FIXME: what about values for MSVC?
3318 dll_entry=__cygwin_dll_entry@12
3319 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
3320 case $host_os in
3321 mingw*)
3322 # mingw values
3323 dll_entry=_DllMainCRTStartup@12
3324 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
3325 ;;
3326 esac
3327
3328 # mingw and cygwin differ, and it's simplest to just exclude the union
3329 # of the two symbol sets.
3330 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
3331
3332 # recent cygwin and mingw systems supply a stub DllMain which the user
3333 # can override, but on older systems we have to supply one (in ltdll.c)
3334 if test "x$lt_cv_need_dllmain" = "xyes"; then
3335 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
3336 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~
3337 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
3338 else
3339 ltdll_obj=
3340 ltdll_cmds=
3341 fi
3342
3343 # Extract the symbol export list from an `--export-all' def file,
3344 # then regenerate the def file from the symbol export list, so that
3345 # the compiled dll only exports the symbol export list.
3346 # Be careful not to strip the DATA tag left be newer dlltools.
3347 export_symbols_cmds="$ltdll_cmds"'
3348 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
3349 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
3350
3351 # If the export-symbols file already is a .def file (1st line
3352 # is EXPORTS), use it as is.
3353 # If DATA tags from a recent dlltool are present, honour them!
3354 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
3355 cp $export_symbols $output_objdir/$soname-def;
3356 else
3357 echo EXPORTS > $output_objdir/$soname-def;
3358 _lt_hint=1;
3359 cat $export_symbols | while read symbol; do
3360 set dummy \$symbol;
3361 case \$# in
3362 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
3363 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
3364 esac;
3365 _lt_hint=`expr 1 + \$_lt_hint`;
3366 done;
3367 fi~
3368 '"$ltdll_cmds"'
3369 $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~
3370 $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~
3371 $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~
3372 $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~
3373 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
3374 ;;
3375
3376 netbsd*)
3377 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3378 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
3379 wlarc=
3380 else
3381 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3382 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3383 fi
3384 ;;
3385
3386 solaris* | sysv5*)
3387 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
3388 ld_shlibs=no
3389 cat <<EOF 1>&2
3390
3391 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
3392 *** create shared libraries on Solaris systems. Therefore, libtool
3393 *** is disabling shared libraries support. We urge you to upgrade GNU
3394 *** binutils to release 2.9.1 or newer. Another option is to modify
3395 *** your PATH or compiler configuration so that the native linker is
3396 *** used, and then restart.
3397
3398 EOF
3399 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3400 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3401 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3402 else
3403 ld_shlibs=no
3404 fi
3405 ;;
3406
3407 sunos4*)
3408 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3409 wlarc=
3410 hardcode_direct=yes
3411 hardcode_shlibpath_var=no
3412 ;;
3413
3414 *)
3415 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3416 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3417 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3418 else
3419 ld_shlibs=no
3420 fi
3421 ;;
3422 esac
3423
3424 if test "$ld_shlibs" = yes; then
3425 runpath_var=LD_RUN_PATH
3426 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
3427 export_dynamic_flag_spec='${wl}--export-dynamic'
3428 case $host_os in
3429 cygwin* | mingw* | pw32*)
3430 # dlltool doesn't understand --whole-archive et. al.
3431 whole_archive_flag_spec=
3432 ;;
3433 *)
3434 # ancient GNU ld didn't support --whole-archive et. al.
3435 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
3436 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3437 else
3438 whole_archive_flag_spec=
3439 fi
3440 ;;
3441 esac
3442 fi
3443 else
3444 # PORTME fill in a description of your system's linker (not GNU ld)
3445 case $host_os in
3446 aix3*)
3447 allow_undefined_flag=unsupported
3448 always_export_symbols=yes
3449 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'
3450 # Note: this linker hardcodes the directories in LIBPATH if there
3451 # are no directories specified by -L.
3452 hardcode_minus_L=yes
3453 if test "$GCC" = yes && test -z "$link_static_flag"; then
3454 # Neither direct hardcoding nor static linking is supported with a
3455 # broken collect2.
3456 hardcode_direct=unsupported
3457 fi
3458 ;;
3459
3460 aix4* | aix5*)
3461 # When large executables or shared objects are built, AIX ld can
3462 # have problems creating the table of contents. If linking a library
3463 # or program results in "error TOC overflow" add -mminimal-toc to
3464 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3465 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3466
3467 archive_cmds=''
3468 hardcode_libdir_separator=':'
3469 if test "$GCC" = yes; then
3470 collect2name=`${CC} -print-prog-name=collect2`
3471 if test -f "$collect2name" && \
3472 strings "$collect2name" | grep resolve_lib_name >/dev/null
3473 then
3474 # We have reworked collect2
3475 hardcode_direct=yes
3476 else
3477 # We have old collect2
3478 hardcode_direct=unsupported
3479 # It fails to find uninstalled libraries when the uninstalled
3480 # path is not listed in the libpath. Setting hardcode_minus_L
3481 # to unsupported forces relinking
3482 hardcode_minus_L=yes
3483 hardcode_libdir_flag_spec='-L$libdir'
3484 hardcode_libdir_separator=
3485 fi
3486 shared_flag='-shared'
3487 else
3488 if test "$host_cpu" = ia64; then
3489 shared_flag='-G'
3490 else
3491 shared_flag='${wl}-bM:SRE'
3492 fi
3493 hardcode_direct=yes
3494 fi
3495
3496 if test "$host_cpu" = ia64; then
3497 # On IA64, the linker does run time linking by default, so we don't
3498 # have to do anything special.
3499 aix_use_runtimelinking=no
3500 exp_sym_flag='-Bexport'
3501 no_entry_flag=""
3502 else
3503 # Test if we are trying to use run time linking, or normal AIX style linking.
3504 # If -brtl is somewhere in LDFLAGS, we need to do run time linking.
3505 aix_use_runtimelinking=no
3506 for ld_flag in $LDFLAGS; do
3507 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then
3508 aix_use_runtimelinking=yes
3509 break
3510 fi
3511 done
3512 exp_sym_flag='-bexport'
3513 no_entry_flag='-bnoentry'
3514 fi
3515 # It seems that -bexpall can do strange things, so it is better to
3516 # generate a list of symbols to export.
3517 always_export_symbols=yes
3518 if test "$aix_use_runtimelinking" = yes; then
3519 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
3520 allow_undefined_flag=' -Wl,-G'
3521 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"
3522 else
3523 if test "$host_cpu" = ia64; then
3524 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
3525 allow_undefined_flag="-znodefs"
3526 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"
3527 else
3528 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
3529 # Warning - without using the other run time loading flags, -berok will
3530 # link without error, but may produce a broken library.
3531 allow_undefined_flag='${wl}-berok"
3532 # This is a bit strange, but is similar to how AIX traditionally builds
3533 # it's shared libraries.
3534 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'
3535 fi
3536 fi
3537 ;;
3538
3539 amigaos*)
3540 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)'
3541 hardcode_libdir_flag_spec='-L$libdir'
3542 hardcode_minus_L=yes
3543 # see comment about different semantics on the GNU ld section
3544 ld_shlibs=no
3545 ;;
3546
3547 cygwin* | mingw* | pw32*)
3548 # When not using gcc, we currently assume that we are using
3549 # Microsoft Visual C++.
3550 # hardcode_libdir_flag_spec is actually meaningless, as there is
3551 # no search path for DLLs.
3552 hardcode_libdir_flag_spec=' '
3553 allow_undefined_flag=unsupported
3554 # Tell ltmain to make .lib files, not .a files.
3555 libext=lib
3556 # FIXME: Setting linknames here is a bad hack.
3557 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
3558 # The linker will automatically build a .lib file if we build a DLL.
3559 old_archive_from_new_cmds='true'
3560 # FIXME: Should let the user specify the lib program.
3561 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
3562 fix_srcfile_path='`cygpath -w "$srcfile"`'
3563 ;;
3564
3565 darwin* | rhapsody*)
3566 allow_undefined_flag='-undefined suppress'
3567 # FIXME: Relying on posixy $() will cause problems for
3568 # cross-compilation, but unfortunately the echo tests do not
3569 # yet detect zsh echo's removal of \ escapes.
3570 archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)'
3571 # We need to add '_' to the symbols in $export_symbols first
3572 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
3573 hardcode_direct=yes
3574 hardcode_shlibpath_var=no
3575 whole_archive_flag_spec='-all_load $convenience'
3576 ;;
3577
3578 freebsd1*)
3579 ld_shlibs=no
3580 ;;
3581
3582 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
3583 # support. Future versions do this automatically, but an explicit c++rt0.o
3584 # does not break anything, and helps significantly (at the cost of a little
3585 # extra space).
3586 freebsd2.2*)
3587 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
3588 hardcode_libdir_flag_spec='-R$libdir'
3589 hardcode_direct=yes
3590 hardcode_shlibpath_var=no
3591 ;;
3592
3593 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
3594 freebsd2*)
3595 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3596 hardcode_direct=yes
3597 hardcode_minus_L=yes
3598 hardcode_shlibpath_var=no
3599 ;;
3600
3601 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
3602 freebsd*)
3603 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
3604 hardcode_libdir_flag_spec='-R$libdir'
3605 hardcode_direct=yes
3606 hardcode_shlibpath_var=no
3607 ;;
3608
3609 hpux9* | hpux10* | hpux11*)
3610 case $host_os in
3611 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' ;;
3612 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
3613 esac
3614 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
3615 hardcode_libdir_separator=:
3616 hardcode_direct=yes
3617 hardcode_minus_L=yes # Not in the search PATH, but as the default
3618 # location of the library.
3619 export_dynamic_flag_spec='${wl}-E'
3620 ;;
3621
3622 irix5* | irix6*)
3623 if test "$GCC" = yes; then
3624 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'
3625 else
3626 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'
3627 fi
3628 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3629 hardcode_libdir_separator=:
3630 link_all_deplibs=yes
3631 ;;
3632
3633 netbsd*)
3634 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3635 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
3636 else
3637 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
3638 fi
3639 hardcode_libdir_flag_spec='-R$libdir'
3640 hardcode_direct=yes
3641 hardcode_shlibpath_var=no
3642 ;;
3643
3644 newsos6)
3645 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
3646 hardcode_direct=yes
3647 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3648 hardcode_libdir_separator=:
3649 hardcode_shlibpath_var=no
3650 ;;
3651
3652 openbsd*)
3653 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3654 hardcode_libdir_flag_spec='-R$libdir'
3655 hardcode_direct=yes
3656 hardcode_shlibpath_var=no
3657 ;;
3658
3659 os2*)
3660 hardcode_libdir_flag_spec='-L$libdir'
3661 hardcode_minus_L=yes
3662 allow_undefined_flag=unsupported
3663 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'
3664 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
3665 ;;
3666
3667 osf3*)
3668 if test "$GCC" = yes; then
3669 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3670 archive_cmds