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