cannam@89
|
1 #! /bin/sh
|
cannam@89
|
2 # Guess values for system-dependent variables and create Makefiles.
|
cannam@89
|
3 # Generated by GNU Autoconf 2.61 for liblo 0.26.
|
cannam@89
|
4 #
|
cannam@89
|
5 # Report bugs to <liblo-devel@lists.sourceforge.net>.
|
cannam@89
|
6 #
|
cannam@89
|
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
cannam@89
|
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
|
cannam@89
|
9 # This configure script is free software; the Free Software Foundation
|
cannam@89
|
10 # gives unlimited permission to copy, distribute and modify it.
|
cannam@89
|
11 ## --------------------- ##
|
cannam@89
|
12 ## M4sh Initialization. ##
|
cannam@89
|
13 ## --------------------- ##
|
cannam@89
|
14
|
cannam@89
|
15 # Be more Bourne compatible
|
cannam@89
|
16 DUALCASE=1; export DUALCASE # for MKS sh
|
cannam@89
|
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
cannam@89
|
18 emulate sh
|
cannam@89
|
19 NULLCMD=:
|
cannam@89
|
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
cannam@89
|
21 # is contrary to our usage. Disable this feature.
|
cannam@89
|
22 alias -g '${1+"$@"}'='"$@"'
|
cannam@89
|
23 setopt NO_GLOB_SUBST
|
cannam@89
|
24 else
|
cannam@89
|
25 case `(set -o) 2>/dev/null` in
|
cannam@89
|
26 *posix*) set -o posix ;;
|
cannam@89
|
27 esac
|
cannam@89
|
28
|
cannam@89
|
29 fi
|
cannam@89
|
30
|
cannam@89
|
31
|
cannam@89
|
32
|
cannam@89
|
33
|
cannam@89
|
34 # PATH needs CR
|
cannam@89
|
35 # Avoid depending upon Character Ranges.
|
cannam@89
|
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
cannam@89
|
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
cannam@89
|
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
cannam@89
|
39 as_cr_digits='0123456789'
|
cannam@89
|
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
|
cannam@89
|
41
|
cannam@89
|
42 # The user is always right.
|
cannam@89
|
43 if test "${PATH_SEPARATOR+set}" != set; then
|
cannam@89
|
44 echo "#! /bin/sh" >conf$$.sh
|
cannam@89
|
45 echo "exit 0" >>conf$$.sh
|
cannam@89
|
46 chmod +x conf$$.sh
|
cannam@89
|
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
cannam@89
|
48 PATH_SEPARATOR=';'
|
cannam@89
|
49 else
|
cannam@89
|
50 PATH_SEPARATOR=:
|
cannam@89
|
51 fi
|
cannam@89
|
52 rm -f conf$$.sh
|
cannam@89
|
53 fi
|
cannam@89
|
54
|
cannam@89
|
55 # Support unset when possible.
|
cannam@89
|
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
cannam@89
|
57 as_unset=unset
|
cannam@89
|
58 else
|
cannam@89
|
59 as_unset=false
|
cannam@89
|
60 fi
|
cannam@89
|
61
|
cannam@89
|
62
|
cannam@89
|
63 # IFS
|
cannam@89
|
64 # We need space, tab and new line, in precisely that order. Quoting is
|
cannam@89
|
65 # there to prevent editors from complaining about space-tab.
|
cannam@89
|
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
cannam@89
|
67 # splitting by setting IFS to empty value.)
|
cannam@89
|
68 as_nl='
|
cannam@89
|
69 '
|
cannam@89
|
70 IFS=" "" $as_nl"
|
cannam@89
|
71
|
cannam@89
|
72 # Find who we are. Look in the path if we contain no directory separator.
|
cannam@89
|
73 case $0 in
|
cannam@89
|
74 *[\\/]* ) as_myself=$0 ;;
|
cannam@89
|
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@89
|
76 for as_dir in $PATH
|
cannam@89
|
77 do
|
cannam@89
|
78 IFS=$as_save_IFS
|
cannam@89
|
79 test -z "$as_dir" && as_dir=.
|
cannam@89
|
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
cannam@89
|
81 done
|
cannam@89
|
82 IFS=$as_save_IFS
|
cannam@89
|
83
|
cannam@89
|
84 ;;
|
cannam@89
|
85 esac
|
cannam@89
|
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
|
cannam@89
|
87 # in which case we are not to be found in the path.
|
cannam@89
|
88 if test "x$as_myself" = x; then
|
cannam@89
|
89 as_myself=$0
|
cannam@89
|
90 fi
|
cannam@89
|
91 if test ! -f "$as_myself"; then
|
cannam@89
|
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
cannam@89
|
93 { (exit 1); exit 1; }
|
cannam@89
|
94 fi
|
cannam@89
|
95
|
cannam@89
|
96 # Work around bugs in pre-3.0 UWIN ksh.
|
cannam@89
|
97 for as_var in ENV MAIL MAILPATH
|
cannam@89
|
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
cannam@89
|
99 done
|
cannam@89
|
100 PS1='$ '
|
cannam@89
|
101 PS2='> '
|
cannam@89
|
102 PS4='+ '
|
cannam@89
|
103
|
cannam@89
|
104 # NLS nuisances.
|
cannam@89
|
105 for as_var in \
|
cannam@89
|
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
cannam@89
|
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
cannam@89
|
108 LC_TELEPHONE LC_TIME
|
cannam@89
|
109 do
|
cannam@89
|
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
cannam@89
|
111 eval $as_var=C; export $as_var
|
cannam@89
|
112 else
|
cannam@89
|
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
cannam@89
|
114 fi
|
cannam@89
|
115 done
|
cannam@89
|
116
|
cannam@89
|
117 # Required to use basename.
|
cannam@89
|
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
|
cannam@89
|
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
cannam@89
|
120 as_expr=expr
|
cannam@89
|
121 else
|
cannam@89
|
122 as_expr=false
|
cannam@89
|
123 fi
|
cannam@89
|
124
|
cannam@89
|
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
cannam@89
|
126 as_basename=basename
|
cannam@89
|
127 else
|
cannam@89
|
128 as_basename=false
|
cannam@89
|
129 fi
|
cannam@89
|
130
|
cannam@89
|
131
|
cannam@89
|
132 # Name of the executable.
|
cannam@89
|
133 as_me=`$as_basename -- "$0" ||
|
cannam@89
|
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
cannam@89
|
135 X"$0" : 'X\(//\)$' \| \
|
cannam@89
|
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
cannam@89
|
137 echo X/"$0" |
|
cannam@89
|
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
|
cannam@89
|
139 s//\1/
|
cannam@89
|
140 q
|
cannam@89
|
141 }
|
cannam@89
|
142 /^X\/\(\/\/\)$/{
|
cannam@89
|
143 s//\1/
|
cannam@89
|
144 q
|
cannam@89
|
145 }
|
cannam@89
|
146 /^X\/\(\/\).*/{
|
cannam@89
|
147 s//\1/
|
cannam@89
|
148 q
|
cannam@89
|
149 }
|
cannam@89
|
150 s/.*/./; q'`
|
cannam@89
|
151
|
cannam@89
|
152 # CDPATH.
|
cannam@89
|
153 $as_unset CDPATH
|
cannam@89
|
154
|
cannam@89
|
155
|
cannam@89
|
156 if test "x$CONFIG_SHELL" = x; then
|
cannam@89
|
157 if (eval ":") 2>/dev/null; then
|
cannam@89
|
158 as_have_required=yes
|
cannam@89
|
159 else
|
cannam@89
|
160 as_have_required=no
|
cannam@89
|
161 fi
|
cannam@89
|
162
|
cannam@89
|
163 if test $as_have_required = yes && (eval ":
|
cannam@89
|
164 (as_func_return () {
|
cannam@89
|
165 (exit \$1)
|
cannam@89
|
166 }
|
cannam@89
|
167 as_func_success () {
|
cannam@89
|
168 as_func_return 0
|
cannam@89
|
169 }
|
cannam@89
|
170 as_func_failure () {
|
cannam@89
|
171 as_func_return 1
|
cannam@89
|
172 }
|
cannam@89
|
173 as_func_ret_success () {
|
cannam@89
|
174 return 0
|
cannam@89
|
175 }
|
cannam@89
|
176 as_func_ret_failure () {
|
cannam@89
|
177 return 1
|
cannam@89
|
178 }
|
cannam@89
|
179
|
cannam@89
|
180 exitcode=0
|
cannam@89
|
181 if as_func_success; then
|
cannam@89
|
182 :
|
cannam@89
|
183 else
|
cannam@89
|
184 exitcode=1
|
cannam@89
|
185 echo as_func_success failed.
|
cannam@89
|
186 fi
|
cannam@89
|
187
|
cannam@89
|
188 if as_func_failure; then
|
cannam@89
|
189 exitcode=1
|
cannam@89
|
190 echo as_func_failure succeeded.
|
cannam@89
|
191 fi
|
cannam@89
|
192
|
cannam@89
|
193 if as_func_ret_success; then
|
cannam@89
|
194 :
|
cannam@89
|
195 else
|
cannam@89
|
196 exitcode=1
|
cannam@89
|
197 echo as_func_ret_success failed.
|
cannam@89
|
198 fi
|
cannam@89
|
199
|
cannam@89
|
200 if as_func_ret_failure; then
|
cannam@89
|
201 exitcode=1
|
cannam@89
|
202 echo as_func_ret_failure succeeded.
|
cannam@89
|
203 fi
|
cannam@89
|
204
|
cannam@89
|
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
|
cannam@89
|
206 :
|
cannam@89
|
207 else
|
cannam@89
|
208 exitcode=1
|
cannam@89
|
209 echo positional parameters were not saved.
|
cannam@89
|
210 fi
|
cannam@89
|
211
|
cannam@89
|
212 test \$exitcode = 0) || { (exit 1); exit 1; }
|
cannam@89
|
213
|
cannam@89
|
214 (
|
cannam@89
|
215 as_lineno_1=\$LINENO
|
cannam@89
|
216 as_lineno_2=\$LINENO
|
cannam@89
|
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
|
cannam@89
|
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
|
cannam@89
|
219 ") 2> /dev/null; then
|
cannam@89
|
220 :
|
cannam@89
|
221 else
|
cannam@89
|
222 as_candidate_shells=
|
cannam@89
|
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@89
|
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
cannam@89
|
225 do
|
cannam@89
|
226 IFS=$as_save_IFS
|
cannam@89
|
227 test -z "$as_dir" && as_dir=.
|
cannam@89
|
228 case $as_dir in
|
cannam@89
|
229 /*)
|
cannam@89
|
230 for as_base in sh bash ksh sh5; do
|
cannam@89
|
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
|
cannam@89
|
232 done;;
|
cannam@89
|
233 esac
|
cannam@89
|
234 done
|
cannam@89
|
235 IFS=$as_save_IFS
|
cannam@89
|
236
|
cannam@89
|
237
|
cannam@89
|
238 for as_shell in $as_candidate_shells $SHELL; do
|
cannam@89
|
239 # Try only shells that exist, to save several forks.
|
cannam@89
|
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
|
cannam@89
|
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
|
cannam@89
|
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
cannam@89
|
243 emulate sh
|
cannam@89
|
244 NULLCMD=:
|
cannam@89
|
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
cannam@89
|
246 # is contrary to our usage. Disable this feature.
|
cannam@89
|
247 alias -g '${1+"$@"}'='"$@"'
|
cannam@89
|
248 setopt NO_GLOB_SUBST
|
cannam@89
|
249 else
|
cannam@89
|
250 case `(set -o) 2>/dev/null` in
|
cannam@89
|
251 *posix*) set -o posix ;;
|
cannam@89
|
252 esac
|
cannam@89
|
253
|
cannam@89
|
254 fi
|
cannam@89
|
255
|
cannam@89
|
256
|
cannam@89
|
257 :
|
cannam@89
|
258 _ASEOF
|
cannam@89
|
259 }; then
|
cannam@89
|
260 CONFIG_SHELL=$as_shell
|
cannam@89
|
261 as_have_required=yes
|
cannam@89
|
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
|
cannam@89
|
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
cannam@89
|
264 emulate sh
|
cannam@89
|
265 NULLCMD=:
|
cannam@89
|
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
cannam@89
|
267 # is contrary to our usage. Disable this feature.
|
cannam@89
|
268 alias -g '${1+"$@"}'='"$@"'
|
cannam@89
|
269 setopt NO_GLOB_SUBST
|
cannam@89
|
270 else
|
cannam@89
|
271 case `(set -o) 2>/dev/null` in
|
cannam@89
|
272 *posix*) set -o posix ;;
|
cannam@89
|
273 esac
|
cannam@89
|
274
|
cannam@89
|
275 fi
|
cannam@89
|
276
|
cannam@89
|
277
|
cannam@89
|
278 :
|
cannam@89
|
279 (as_func_return () {
|
cannam@89
|
280 (exit $1)
|
cannam@89
|
281 }
|
cannam@89
|
282 as_func_success () {
|
cannam@89
|
283 as_func_return 0
|
cannam@89
|
284 }
|
cannam@89
|
285 as_func_failure () {
|
cannam@89
|
286 as_func_return 1
|
cannam@89
|
287 }
|
cannam@89
|
288 as_func_ret_success () {
|
cannam@89
|
289 return 0
|
cannam@89
|
290 }
|
cannam@89
|
291 as_func_ret_failure () {
|
cannam@89
|
292 return 1
|
cannam@89
|
293 }
|
cannam@89
|
294
|
cannam@89
|
295 exitcode=0
|
cannam@89
|
296 if as_func_success; then
|
cannam@89
|
297 :
|
cannam@89
|
298 else
|
cannam@89
|
299 exitcode=1
|
cannam@89
|
300 echo as_func_success failed.
|
cannam@89
|
301 fi
|
cannam@89
|
302
|
cannam@89
|
303 if as_func_failure; then
|
cannam@89
|
304 exitcode=1
|
cannam@89
|
305 echo as_func_failure succeeded.
|
cannam@89
|
306 fi
|
cannam@89
|
307
|
cannam@89
|
308 if as_func_ret_success; then
|
cannam@89
|
309 :
|
cannam@89
|
310 else
|
cannam@89
|
311 exitcode=1
|
cannam@89
|
312 echo as_func_ret_success failed.
|
cannam@89
|
313 fi
|
cannam@89
|
314
|
cannam@89
|
315 if as_func_ret_failure; then
|
cannam@89
|
316 exitcode=1
|
cannam@89
|
317 echo as_func_ret_failure succeeded.
|
cannam@89
|
318 fi
|
cannam@89
|
319
|
cannam@89
|
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
|
cannam@89
|
321 :
|
cannam@89
|
322 else
|
cannam@89
|
323 exitcode=1
|
cannam@89
|
324 echo positional parameters were not saved.
|
cannam@89
|
325 fi
|
cannam@89
|
326
|
cannam@89
|
327 test $exitcode = 0) || { (exit 1); exit 1; }
|
cannam@89
|
328
|
cannam@89
|
329 (
|
cannam@89
|
330 as_lineno_1=$LINENO
|
cannam@89
|
331 as_lineno_2=$LINENO
|
cannam@89
|
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
|
cannam@89
|
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
|
cannam@89
|
334
|
cannam@89
|
335 _ASEOF
|
cannam@89
|
336 }; then
|
cannam@89
|
337 break
|
cannam@89
|
338 fi
|
cannam@89
|
339
|
cannam@89
|
340 fi
|
cannam@89
|
341
|
cannam@89
|
342 done
|
cannam@89
|
343
|
cannam@89
|
344 if test "x$CONFIG_SHELL" != x; then
|
cannam@89
|
345 for as_var in BASH_ENV ENV
|
cannam@89
|
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
cannam@89
|
347 done
|
cannam@89
|
348 export CONFIG_SHELL
|
cannam@89
|
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
|
cannam@89
|
350 fi
|
cannam@89
|
351
|
cannam@89
|
352
|
cannam@89
|
353 if test $as_have_required = no; then
|
cannam@89
|
354 echo This script requires a shell more modern than all the
|
cannam@89
|
355 echo shells that I found on your system. Please install a
|
cannam@89
|
356 echo modern shell, or manually run the script under such a
|
cannam@89
|
357 echo shell if you do have one.
|
cannam@89
|
358 { (exit 1); exit 1; }
|
cannam@89
|
359 fi
|
cannam@89
|
360
|
cannam@89
|
361
|
cannam@89
|
362 fi
|
cannam@89
|
363
|
cannam@89
|
364 fi
|
cannam@89
|
365
|
cannam@89
|
366
|
cannam@89
|
367
|
cannam@89
|
368 (eval "as_func_return () {
|
cannam@89
|
369 (exit \$1)
|
cannam@89
|
370 }
|
cannam@89
|
371 as_func_success () {
|
cannam@89
|
372 as_func_return 0
|
cannam@89
|
373 }
|
cannam@89
|
374 as_func_failure () {
|
cannam@89
|
375 as_func_return 1
|
cannam@89
|
376 }
|
cannam@89
|
377 as_func_ret_success () {
|
cannam@89
|
378 return 0
|
cannam@89
|
379 }
|
cannam@89
|
380 as_func_ret_failure () {
|
cannam@89
|
381 return 1
|
cannam@89
|
382 }
|
cannam@89
|
383
|
cannam@89
|
384 exitcode=0
|
cannam@89
|
385 if as_func_success; then
|
cannam@89
|
386 :
|
cannam@89
|
387 else
|
cannam@89
|
388 exitcode=1
|
cannam@89
|
389 echo as_func_success failed.
|
cannam@89
|
390 fi
|
cannam@89
|
391
|
cannam@89
|
392 if as_func_failure; then
|
cannam@89
|
393 exitcode=1
|
cannam@89
|
394 echo as_func_failure succeeded.
|
cannam@89
|
395 fi
|
cannam@89
|
396
|
cannam@89
|
397 if as_func_ret_success; then
|
cannam@89
|
398 :
|
cannam@89
|
399 else
|
cannam@89
|
400 exitcode=1
|
cannam@89
|
401 echo as_func_ret_success failed.
|
cannam@89
|
402 fi
|
cannam@89
|
403
|
cannam@89
|
404 if as_func_ret_failure; then
|
cannam@89
|
405 exitcode=1
|
cannam@89
|
406 echo as_func_ret_failure succeeded.
|
cannam@89
|
407 fi
|
cannam@89
|
408
|
cannam@89
|
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
|
cannam@89
|
410 :
|
cannam@89
|
411 else
|
cannam@89
|
412 exitcode=1
|
cannam@89
|
413 echo positional parameters were not saved.
|
cannam@89
|
414 fi
|
cannam@89
|
415
|
cannam@89
|
416 test \$exitcode = 0") || {
|
cannam@89
|
417 echo No shell found that supports shell functions.
|
cannam@89
|
418 echo Please tell autoconf@gnu.org about your system,
|
cannam@89
|
419 echo including any error possibly output before this
|
cannam@89
|
420 echo message
|
cannam@89
|
421 }
|
cannam@89
|
422
|
cannam@89
|
423
|
cannam@89
|
424
|
cannam@89
|
425 as_lineno_1=$LINENO
|
cannam@89
|
426 as_lineno_2=$LINENO
|
cannam@89
|
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
|
cannam@89
|
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
|
cannam@89
|
429
|
cannam@89
|
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
cannam@89
|
431 # uniformly replaced by the line number. The first 'sed' inserts a
|
cannam@89
|
432 # line-number line after each line using $LINENO; the second 'sed'
|
cannam@89
|
433 # does the real work. The second script uses 'N' to pair each
|
cannam@89
|
434 # line-number line with the line containing $LINENO, and appends
|
cannam@89
|
435 # trailing '-' during substitution so that $LINENO is not a special
|
cannam@89
|
436 # case at line end.
|
cannam@89
|
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
cannam@89
|
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
|
cannam@89
|
439 # E. McMahon (1931-1989) for sed's syntax. :-)
|
cannam@89
|
440 sed -n '
|
cannam@89
|
441 p
|
cannam@89
|
442 /[$]LINENO/=
|
cannam@89
|
443 ' <$as_myself |
|
cannam@89
|
444 sed '
|
cannam@89
|
445 s/[$]LINENO.*/&-/
|
cannam@89
|
446 t lineno
|
cannam@89
|
447 b
|
cannam@89
|
448 :lineno
|
cannam@89
|
449 N
|
cannam@89
|
450 :loop
|
cannam@89
|
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
cannam@89
|
452 t loop
|
cannam@89
|
453 s/-\n.*//
|
cannam@89
|
454 ' >$as_me.lineno &&
|
cannam@89
|
455 chmod +x "$as_me.lineno" ||
|
cannam@89
|
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
|
cannam@89
|
457 { (exit 1); exit 1; }; }
|
cannam@89
|
458
|
cannam@89
|
459 # Don't try to exec as it changes $[0], causing all sort of problems
|
cannam@89
|
460 # (the dirname of $[0] is not the place where we might find the
|
cannam@89
|
461 # original and so on. Autoconf is especially sensitive to this).
|
cannam@89
|
462 . "./$as_me.lineno"
|
cannam@89
|
463 # Exit status is that of the last command.
|
cannam@89
|
464 exit
|
cannam@89
|
465 }
|
cannam@89
|
466
|
cannam@89
|
467
|
cannam@89
|
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
cannam@89
|
469 as_dirname=dirname
|
cannam@89
|
470 else
|
cannam@89
|
471 as_dirname=false
|
cannam@89
|
472 fi
|
cannam@89
|
473
|
cannam@89
|
474 ECHO_C= ECHO_N= ECHO_T=
|
cannam@89
|
475 case `echo -n x` in
|
cannam@89
|
476 -n*)
|
cannam@89
|
477 case `echo 'x\c'` in
|
cannam@89
|
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
cannam@89
|
479 *) ECHO_C='\c';;
|
cannam@89
|
480 esac;;
|
cannam@89
|
481 *)
|
cannam@89
|
482 ECHO_N='-n';;
|
cannam@89
|
483 esac
|
cannam@89
|
484
|
cannam@89
|
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
|
cannam@89
|
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
cannam@89
|
487 as_expr=expr
|
cannam@89
|
488 else
|
cannam@89
|
489 as_expr=false
|
cannam@89
|
490 fi
|
cannam@89
|
491
|
cannam@89
|
492 rm -f conf$$ conf$$.exe conf$$.file
|
cannam@89
|
493 if test -d conf$$.dir; then
|
cannam@89
|
494 rm -f conf$$.dir/conf$$.file
|
cannam@89
|
495 else
|
cannam@89
|
496 rm -f conf$$.dir
|
cannam@89
|
497 mkdir conf$$.dir
|
cannam@89
|
498 fi
|
cannam@89
|
499 echo >conf$$.file
|
cannam@89
|
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
|
cannam@89
|
501 as_ln_s='ln -s'
|
cannam@89
|
502 # ... but there are two gotchas:
|
cannam@89
|
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
cannam@89
|
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
cannam@89
|
505 # In both cases, we have to default to `cp -p'.
|
cannam@89
|
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
cannam@89
|
507 as_ln_s='cp -p'
|
cannam@89
|
508 elif ln conf$$.file conf$$ 2>/dev/null; then
|
cannam@89
|
509 as_ln_s=ln
|
cannam@89
|
510 else
|
cannam@89
|
511 as_ln_s='cp -p'
|
cannam@89
|
512 fi
|
cannam@89
|
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
cannam@89
|
514 rmdir conf$$.dir 2>/dev/null
|
cannam@89
|
515
|
cannam@89
|
516 if mkdir -p . 2>/dev/null; then
|
cannam@89
|
517 as_mkdir_p=:
|
cannam@89
|
518 else
|
cannam@89
|
519 test -d ./-p && rmdir ./-p
|
cannam@89
|
520 as_mkdir_p=false
|
cannam@89
|
521 fi
|
cannam@89
|
522
|
cannam@89
|
523 if test -x / >/dev/null 2>&1; then
|
cannam@89
|
524 as_test_x='test -x'
|
cannam@89
|
525 else
|
cannam@89
|
526 if ls -dL / >/dev/null 2>&1; then
|
cannam@89
|
527 as_ls_L_option=L
|
cannam@89
|
528 else
|
cannam@89
|
529 as_ls_L_option=
|
cannam@89
|
530 fi
|
cannam@89
|
531 as_test_x='
|
cannam@89
|
532 eval sh -c '\''
|
cannam@89
|
533 if test -d "$1"; then
|
cannam@89
|
534 test -d "$1/.";
|
cannam@89
|
535 else
|
cannam@89
|
536 case $1 in
|
cannam@89
|
537 -*)set "./$1";;
|
cannam@89
|
538 esac;
|
cannam@89
|
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
|
cannam@89
|
540 ???[sx]*):;;*)false;;esac;fi
|
cannam@89
|
541 '\'' sh
|
cannam@89
|
542 '
|
cannam@89
|
543 fi
|
cannam@89
|
544 as_executable_p=$as_test_x
|
cannam@89
|
545
|
cannam@89
|
546 # Sed expression to map a string onto a valid CPP name.
|
cannam@89
|
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
cannam@89
|
548
|
cannam@89
|
549 # Sed expression to map a string onto a valid variable name.
|
cannam@89
|
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
cannam@89
|
551
|
cannam@89
|
552
|
cannam@89
|
553
|
cannam@89
|
554
|
cannam@89
|
555 # Check that we are running under the correct shell.
|
cannam@89
|
556 SHELL=${CONFIG_SHELL-/bin/sh}
|
cannam@89
|
557
|
cannam@89
|
558 case X$lt_ECHO in
|
cannam@89
|
559 X*--fallback-echo)
|
cannam@89
|
560 # Remove one level of quotation (which was required for Make).
|
cannam@89
|
561 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
|
cannam@89
|
562 ;;
|
cannam@89
|
563 esac
|
cannam@89
|
564
|
cannam@89
|
565 ECHO=${lt_ECHO-echo}
|
cannam@89
|
566 if test "X$1" = X--no-reexec; then
|
cannam@89
|
567 # Discard the --no-reexec flag, and continue.
|
cannam@89
|
568 shift
|
cannam@89
|
569 elif test "X$1" = X--fallback-echo; then
|
cannam@89
|
570 # Avoid inline document here, it may be left over
|
cannam@89
|
571 :
|
cannam@89
|
572 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
|
cannam@89
|
573 # Yippee, $ECHO works!
|
cannam@89
|
574 :
|
cannam@89
|
575 else
|
cannam@89
|
576 # Restart under the correct shell.
|
cannam@89
|
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
|
cannam@89
|
578 fi
|
cannam@89
|
579
|
cannam@89
|
580 if test "X$1" = X--fallback-echo; then
|
cannam@89
|
581 # used as fallback echo
|
cannam@89
|
582 shift
|
cannam@89
|
583 cat <<_LT_EOF
|
cannam@89
|
584 $*
|
cannam@89
|
585 _LT_EOF
|
cannam@89
|
586 exit 0
|
cannam@89
|
587 fi
|
cannam@89
|
588
|
cannam@89
|
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
|
cannam@89
|
590 # if CDPATH is set.
|
cannam@89
|
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
cannam@89
|
592
|
cannam@89
|
593 if test -z "$lt_ECHO"; then
|
cannam@89
|
594 if test "X${echo_test_string+set}" != Xset; then
|
cannam@89
|
595 # find a string as large as possible, as long as the shell can cope with it
|
cannam@89
|
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
|
cannam@89
|
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
|
cannam@89
|
598 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
|
cannam@89
|
599 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
|
cannam@89
|
600 then
|
cannam@89
|
601 break
|
cannam@89
|
602 fi
|
cannam@89
|
603 done
|
cannam@89
|
604 fi
|
cannam@89
|
605
|
cannam@89
|
606 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
|
cannam@89
|
607 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
|
cannam@89
|
608 test "X$echo_testing_string" = "X$echo_test_string"; then
|
cannam@89
|
609 :
|
cannam@89
|
610 else
|
cannam@89
|
611 # The Solaris, AIX, and Digital Unix default echo programs unquote
|
cannam@89
|
612 # backslashes. This makes it impossible to quote backslashes using
|
cannam@89
|
613 # echo "$something" | sed 's/\\/\\\\/g'
|
cannam@89
|
614 #
|
cannam@89
|
615 # So, first we look for a working echo in the user's PATH.
|
cannam@89
|
616
|
cannam@89
|
617 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
cannam@89
|
618 for dir in $PATH /usr/ucb; do
|
cannam@89
|
619 IFS="$lt_save_ifs"
|
cannam@89
|
620 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
|
cannam@89
|
621 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
|
cannam@89
|
622 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
|
cannam@89
|
623 test "X$echo_testing_string" = "X$echo_test_string"; then
|
cannam@89
|
624 ECHO="$dir/echo"
|
cannam@89
|
625 break
|
cannam@89
|
626 fi
|
cannam@89
|
627 done
|
cannam@89
|
628 IFS="$lt_save_ifs"
|
cannam@89
|
629
|
cannam@89
|
630 if test "X$ECHO" = Xecho; then
|
cannam@89
|
631 # We didn't find a better echo, so look for alternatives.
|
cannam@89
|
632 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
|
cannam@89
|
633 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
|
cannam@89
|
634 test "X$echo_testing_string" = "X$echo_test_string"; then
|
cannam@89
|
635 # This shell has a builtin print -r that does the trick.
|
cannam@89
|
636 ECHO='print -r'
|
cannam@89
|
637 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
|
cannam@89
|
638 test "X$CONFIG_SHELL" != X/bin/ksh; then
|
cannam@89
|
639 # If we have ksh, try running configure again with it.
|
cannam@89
|
640 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
|
cannam@89
|
641 export ORIGINAL_CONFIG_SHELL
|
cannam@89
|
642 CONFIG_SHELL=/bin/ksh
|
cannam@89
|
643 export CONFIG_SHELL
|
cannam@89
|
644 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
|
cannam@89
|
645 else
|
cannam@89
|
646 # Try using printf.
|
cannam@89
|
647 ECHO='printf %s\n'
|
cannam@89
|
648 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
|
cannam@89
|
649 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
|
cannam@89
|
650 test "X$echo_testing_string" = "X$echo_test_string"; then
|
cannam@89
|
651 # Cool, printf works
|
cannam@89
|
652 :
|
cannam@89
|
653 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
|
cannam@89
|
654 test "X$echo_testing_string" = 'X\t' &&
|
cannam@89
|
655 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
|
cannam@89
|
656 test "X$echo_testing_string" = "X$echo_test_string"; then
|
cannam@89
|
657 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
|
cannam@89
|
658 export CONFIG_SHELL
|
cannam@89
|
659 SHELL="$CONFIG_SHELL"
|
cannam@89
|
660 export SHELL
|
cannam@89
|
661 ECHO="$CONFIG_SHELL $0 --fallback-echo"
|
cannam@89
|
662 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
|
cannam@89
|
663 test "X$echo_testing_string" = 'X\t' &&
|
cannam@89
|
664 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
|
cannam@89
|
665 test "X$echo_testing_string" = "X$echo_test_string"; then
|
cannam@89
|
666 ECHO="$CONFIG_SHELL $0 --fallback-echo"
|
cannam@89
|
667 else
|
cannam@89
|
668 # maybe with a smaller string...
|
cannam@89
|
669 prev=:
|
cannam@89
|
670
|
cannam@89
|
671 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
|
cannam@89
|
672 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
|
cannam@89
|
673 then
|
cannam@89
|
674 break
|
cannam@89
|
675 fi
|
cannam@89
|
676 prev="$cmd"
|
cannam@89
|
677 done
|
cannam@89
|
678
|
cannam@89
|
679 if test "$prev" != 'sed 50q "$0"'; then
|
cannam@89
|
680 echo_test_string=`eval $prev`
|
cannam@89
|
681 export echo_test_string
|
cannam@89
|
682 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
|
cannam@89
|
683 else
|
cannam@89
|
684 # Oops. We lost completely, so just stick with echo.
|
cannam@89
|
685 ECHO=echo
|
cannam@89
|
686 fi
|
cannam@89
|
687 fi
|
cannam@89
|
688 fi
|
cannam@89
|
689 fi
|
cannam@89
|
690 fi
|
cannam@89
|
691 fi
|
cannam@89
|
692
|
cannam@89
|
693 # Copy echo and quote the copy suitably for passing to libtool from
|
cannam@89
|
694 # the Makefile, instead of quoting the original, which is used later.
|
cannam@89
|
695 lt_ECHO=$ECHO
|
cannam@89
|
696 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
|
cannam@89
|
697 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
|
cannam@89
|
698 fi
|
cannam@89
|
699
|
cannam@89
|
700
|
cannam@89
|
701
|
cannam@89
|
702
|
cannam@89
|
703 exec 7<&0 </dev/null 6>&1
|
cannam@89
|
704
|
cannam@89
|
705 # Name of the host.
|
cannam@89
|
706 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
|
cannam@89
|
707 # so uname gets run too.
|
cannam@89
|
708 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
cannam@89
|
709
|
cannam@89
|
710 #
|
cannam@89
|
711 # Initializations.
|
cannam@89
|
712 #
|
cannam@89
|
713 ac_default_prefix=/usr/local
|
cannam@89
|
714 ac_clean_files=
|
cannam@89
|
715 ac_config_libobj_dir=.
|
cannam@89
|
716 LIBOBJS=
|
cannam@89
|
717 cross_compiling=no
|
cannam@89
|
718 subdirs=
|
cannam@89
|
719 MFLAGS=
|
cannam@89
|
720 MAKEFLAGS=
|
cannam@89
|
721 SHELL=${CONFIG_SHELL-/bin/sh}
|
cannam@89
|
722
|
cannam@89
|
723 # Identity of this package.
|
cannam@89
|
724 PACKAGE_NAME='liblo'
|
cannam@89
|
725 PACKAGE_TARNAME='liblo'
|
cannam@89
|
726 PACKAGE_VERSION='0.26'
|
cannam@89
|
727 PACKAGE_STRING='liblo 0.26'
|
cannam@89
|
728 PACKAGE_BUGREPORT='liblo-devel@lists.sourceforge.net'
|
cannam@89
|
729
|
cannam@89
|
730 ac_unique_file="src/address.c"
|
cannam@89
|
731 # Factoring default headers for most tests.
|
cannam@89
|
732 ac_includes_default="\
|
cannam@89
|
733 #include <stdio.h>
|
cannam@89
|
734 #ifdef HAVE_SYS_TYPES_H
|
cannam@89
|
735 # include <sys/types.h>
|
cannam@89
|
736 #endif
|
cannam@89
|
737 #ifdef HAVE_SYS_STAT_H
|
cannam@89
|
738 # include <sys/stat.h>
|
cannam@89
|
739 #endif
|
cannam@89
|
740 #ifdef STDC_HEADERS
|
cannam@89
|
741 # include <stdlib.h>
|
cannam@89
|
742 # include <stddef.h>
|
cannam@89
|
743 #else
|
cannam@89
|
744 # ifdef HAVE_STDLIB_H
|
cannam@89
|
745 # include <stdlib.h>
|
cannam@89
|
746 # endif
|
cannam@89
|
747 #endif
|
cannam@89
|
748 #ifdef HAVE_STRING_H
|
cannam@89
|
749 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
|
cannam@89
|
750 # include <memory.h>
|
cannam@89
|
751 # endif
|
cannam@89
|
752 # include <string.h>
|
cannam@89
|
753 #endif
|
cannam@89
|
754 #ifdef HAVE_STRINGS_H
|
cannam@89
|
755 # include <strings.h>
|
cannam@89
|
756 #endif
|
cannam@89
|
757 #ifdef HAVE_INTTYPES_H
|
cannam@89
|
758 # include <inttypes.h>
|
cannam@89
|
759 #endif
|
cannam@89
|
760 #ifdef HAVE_STDINT_H
|
cannam@89
|
761 # include <stdint.h>
|
cannam@89
|
762 #endif
|
cannam@89
|
763 #ifdef HAVE_UNISTD_H
|
cannam@89
|
764 # include <unistd.h>
|
cannam@89
|
765 #endif"
|
cannam@89
|
766
|
cannam@89
|
767 ac_subst_vars='SHELL
|
cannam@89
|
768 PATH_SEPARATOR
|
cannam@89
|
769 PACKAGE_NAME
|
cannam@89
|
770 PACKAGE_TARNAME
|
cannam@89
|
771 PACKAGE_VERSION
|
cannam@89
|
772 PACKAGE_STRING
|
cannam@89
|
773 PACKAGE_BUGREPORT
|
cannam@89
|
774 exec_prefix
|
cannam@89
|
775 prefix
|
cannam@89
|
776 program_transform_name
|
cannam@89
|
777 bindir
|
cannam@89
|
778 sbindir
|
cannam@89
|
779 libexecdir
|
cannam@89
|
780 datarootdir
|
cannam@89
|
781 datadir
|
cannam@89
|
782 sysconfdir
|
cannam@89
|
783 sharedstatedir
|
cannam@89
|
784 localstatedir
|
cannam@89
|
785 includedir
|
cannam@89
|
786 oldincludedir
|
cannam@89
|
787 docdir
|
cannam@89
|
788 infodir
|
cannam@89
|
789 htmldir
|
cannam@89
|
790 dvidir
|
cannam@89
|
791 pdfdir
|
cannam@89
|
792 psdir
|
cannam@89
|
793 libdir
|
cannam@89
|
794 localedir
|
cannam@89
|
795 mandir
|
cannam@89
|
796 DEFS
|
cannam@89
|
797 ECHO_C
|
cannam@89
|
798 ECHO_N
|
cannam@89
|
799 ECHO_T
|
cannam@89
|
800 LIBS
|
cannam@89
|
801 build_alias
|
cannam@89
|
802 host_alias
|
cannam@89
|
803 target_alias
|
cannam@89
|
804 INSTALL_PROGRAM
|
cannam@89
|
805 INSTALL_SCRIPT
|
cannam@89
|
806 INSTALL_DATA
|
cannam@89
|
807 am__isrc
|
cannam@89
|
808 CYGPATH_W
|
cannam@89
|
809 PACKAGE
|
cannam@89
|
810 VERSION
|
cannam@89
|
811 ACLOCAL
|
cannam@89
|
812 AUTOCONF
|
cannam@89
|
813 AUTOMAKE
|
cannam@89
|
814 AUTOHEADER
|
cannam@89
|
815 MAKEINFO
|
cannam@89
|
816 install_sh
|
cannam@89
|
817 STRIP
|
cannam@89
|
818 INSTALL_STRIP_PROGRAM
|
cannam@89
|
819 mkdir_p
|
cannam@89
|
820 AWK
|
cannam@89
|
821 SET_MAKE
|
cannam@89
|
822 am__leading_dot
|
cannam@89
|
823 AMTAR
|
cannam@89
|
824 am__tar
|
cannam@89
|
825 am__untar
|
cannam@89
|
826 LO_SO_VERSION
|
cannam@89
|
827 CC
|
cannam@89
|
828 CFLAGS
|
cannam@89
|
829 LDFLAGS
|
cannam@89
|
830 CPPFLAGS
|
cannam@89
|
831 ac_ct_CC
|
cannam@89
|
832 EXEEXT
|
cannam@89
|
833 OBJEXT
|
cannam@89
|
834 DEPDIR
|
cannam@89
|
835 am__include
|
cannam@89
|
836 am__quote
|
cannam@89
|
837 AMDEP_TRUE
|
cannam@89
|
838 AMDEP_FALSE
|
cannam@89
|
839 AMDEPBACKSLASH
|
cannam@89
|
840 CCDEPMODE
|
cannam@89
|
841 am__fastdepCC_TRUE
|
cannam@89
|
842 am__fastdepCC_FALSE
|
cannam@89
|
843 LIBTOOL
|
cannam@89
|
844 build
|
cannam@89
|
845 build_cpu
|
cannam@89
|
846 build_vendor
|
cannam@89
|
847 build_os
|
cannam@89
|
848 host
|
cannam@89
|
849 host_cpu
|
cannam@89
|
850 host_vendor
|
cannam@89
|
851 host_os
|
cannam@89
|
852 SED
|
cannam@89
|
853 GREP
|
cannam@89
|
854 EGREP
|
cannam@89
|
855 FGREP
|
cannam@89
|
856 LD
|
cannam@89
|
857 DUMPBIN
|
cannam@89
|
858 ac_ct_DUMPBIN
|
cannam@89
|
859 NM
|
cannam@89
|
860 LN_S
|
cannam@89
|
861 AR
|
cannam@89
|
862 RANLIB
|
cannam@89
|
863 lt_ECHO
|
cannam@89
|
864 DSYMUTIL
|
cannam@89
|
865 NMEDIT
|
cannam@89
|
866 LIPO
|
cannam@89
|
867 OTOOL
|
cannam@89
|
868 OTOOL64
|
cannam@89
|
869 CPP
|
cannam@89
|
870 DOXYGEN
|
cannam@89
|
871 LO_BIGENDIAN
|
cannam@89
|
872 LIBOBJS
|
cannam@89
|
873 LTLIBOBJS'
|
cannam@89
|
874 ac_subst_files=''
|
cannam@89
|
875 ac_precious_vars='build_alias
|
cannam@89
|
876 host_alias
|
cannam@89
|
877 target_alias
|
cannam@89
|
878 CC
|
cannam@89
|
879 CFLAGS
|
cannam@89
|
880 LDFLAGS
|
cannam@89
|
881 LIBS
|
cannam@89
|
882 CPPFLAGS
|
cannam@89
|
883 CPP'
|
cannam@89
|
884
|
cannam@89
|
885
|
cannam@89
|
886 # Initialize some variables set by options.
|
cannam@89
|
887 ac_init_help=
|
cannam@89
|
888 ac_init_version=false
|
cannam@89
|
889 # The variables have the same names as the options, with
|
cannam@89
|
890 # dashes changed to underlines.
|
cannam@89
|
891 cache_file=/dev/null
|
cannam@89
|
892 exec_prefix=NONE
|
cannam@89
|
893 no_create=
|
cannam@89
|
894 no_recursion=
|
cannam@89
|
895 prefix=NONE
|
cannam@89
|
896 program_prefix=NONE
|
cannam@89
|
897 program_suffix=NONE
|
cannam@89
|
898 program_transform_name=s,x,x,
|
cannam@89
|
899 silent=
|
cannam@89
|
900 site=
|
cannam@89
|
901 srcdir=
|
cannam@89
|
902 verbose=
|
cannam@89
|
903 x_includes=NONE
|
cannam@89
|
904 x_libraries=NONE
|
cannam@89
|
905
|
cannam@89
|
906 # Installation directory options.
|
cannam@89
|
907 # These are left unexpanded so users can "make install exec_prefix=/foo"
|
cannam@89
|
908 # and all the variables that are supposed to be based on exec_prefix
|
cannam@89
|
909 # by default will actually change.
|
cannam@89
|
910 # Use braces instead of parens because sh, perl, etc. also accept them.
|
cannam@89
|
911 # (The list follows the same order as the GNU Coding Standards.)
|
cannam@89
|
912 bindir='${exec_prefix}/bin'
|
cannam@89
|
913 sbindir='${exec_prefix}/sbin'
|
cannam@89
|
914 libexecdir='${exec_prefix}/libexec'
|
cannam@89
|
915 datarootdir='${prefix}/share'
|
cannam@89
|
916 datadir='${datarootdir}'
|
cannam@89
|
917 sysconfdir='${prefix}/etc'
|
cannam@89
|
918 sharedstatedir='${prefix}/com'
|
cannam@89
|
919 localstatedir='${prefix}/var'
|
cannam@89
|
920 includedir='${prefix}/include'
|
cannam@89
|
921 oldincludedir='/usr/include'
|
cannam@89
|
922 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
|
cannam@89
|
923 infodir='${datarootdir}/info'
|
cannam@89
|
924 htmldir='${docdir}'
|
cannam@89
|
925 dvidir='${docdir}'
|
cannam@89
|
926 pdfdir='${docdir}'
|
cannam@89
|
927 psdir='${docdir}'
|
cannam@89
|
928 libdir='${exec_prefix}/lib'
|
cannam@89
|
929 localedir='${datarootdir}/locale'
|
cannam@89
|
930 mandir='${datarootdir}/man'
|
cannam@89
|
931
|
cannam@89
|
932 ac_prev=
|
cannam@89
|
933 ac_dashdash=
|
cannam@89
|
934 for ac_option
|
cannam@89
|
935 do
|
cannam@89
|
936 # If the previous option needs an argument, assign it.
|
cannam@89
|
937 if test -n "$ac_prev"; then
|
cannam@89
|
938 eval $ac_prev=\$ac_option
|
cannam@89
|
939 ac_prev=
|
cannam@89
|
940 continue
|
cannam@89
|
941 fi
|
cannam@89
|
942
|
cannam@89
|
943 case $ac_option in
|
cannam@89
|
944 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
|
cannam@89
|
945 *) ac_optarg=yes ;;
|
cannam@89
|
946 esac
|
cannam@89
|
947
|
cannam@89
|
948 # Accept the important Cygnus configure options, so we can diagnose typos.
|
cannam@89
|
949
|
cannam@89
|
950 case $ac_dashdash$ac_option in
|
cannam@89
|
951 --)
|
cannam@89
|
952 ac_dashdash=yes ;;
|
cannam@89
|
953
|
cannam@89
|
954 -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
cannam@89
|
955 ac_prev=bindir ;;
|
cannam@89
|
956 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
cannam@89
|
957 bindir=$ac_optarg ;;
|
cannam@89
|
958
|
cannam@89
|
959 -build | --build | --buil | --bui | --bu)
|
cannam@89
|
960 ac_prev=build_alias ;;
|
cannam@89
|
961 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
cannam@89
|
962 build_alias=$ac_optarg ;;
|
cannam@89
|
963
|
cannam@89
|
964 -cache-file | --cache-file | --cache-fil | --cache-fi \
|
cannam@89
|
965 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
cannam@89
|
966 ac_prev=cache_file ;;
|
cannam@89
|
967 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
cannam@89
|
968 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
cannam@89
|
969 cache_file=$ac_optarg ;;
|
cannam@89
|
970
|
cannam@89
|
971 --config-cache | -C)
|
cannam@89
|
972 cache_file=config.cache ;;
|
cannam@89
|
973
|
cannam@89
|
974 -datadir | --datadir | --datadi | --datad)
|
cannam@89
|
975 ac_prev=datadir ;;
|
cannam@89
|
976 -datadir=* | --datadir=* | --datadi=* | --datad=*)
|
cannam@89
|
977 datadir=$ac_optarg ;;
|
cannam@89
|
978
|
cannam@89
|
979 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
|
cannam@89
|
980 | --dataroo | --dataro | --datar)
|
cannam@89
|
981 ac_prev=datarootdir ;;
|
cannam@89
|
982 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
|
cannam@89
|
983 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
|
cannam@89
|
984 datarootdir=$ac_optarg ;;
|
cannam@89
|
985
|
cannam@89
|
986 -disable-* | --disable-*)
|
cannam@89
|
987 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
cannam@89
|
988 # Reject names that are not valid shell variable names.
|
cannam@89
|
989 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
cannam@89
|
990 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
cannam@89
|
991 { (exit 1); exit 1; }; }
|
cannam@89
|
992 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
|
cannam@89
|
993 eval enable_$ac_feature=no ;;
|
cannam@89
|
994
|
cannam@89
|
995 -docdir | --docdir | --docdi | --doc | --do)
|
cannam@89
|
996 ac_prev=docdir ;;
|
cannam@89
|
997 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
|
cannam@89
|
998 docdir=$ac_optarg ;;
|
cannam@89
|
999
|
cannam@89
|
1000 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
|
cannam@89
|
1001 ac_prev=dvidir ;;
|
cannam@89
|
1002 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
|
cannam@89
|
1003 dvidir=$ac_optarg ;;
|
cannam@89
|
1004
|
cannam@89
|
1005 -enable-* | --enable-*)
|
cannam@89
|
1006 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
cannam@89
|
1007 # Reject names that are not valid shell variable names.
|
cannam@89
|
1008 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
cannam@89
|
1009 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
cannam@89
|
1010 { (exit 1); exit 1; }; }
|
cannam@89
|
1011 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
|
cannam@89
|
1012 eval enable_$ac_feature=\$ac_optarg ;;
|
cannam@89
|
1013
|
cannam@89
|
1014 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
cannam@89
|
1015 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
cannam@89
|
1016 | --exec | --exe | --ex)
|
cannam@89
|
1017 ac_prev=exec_prefix ;;
|
cannam@89
|
1018 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
cannam@89
|
1019 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
cannam@89
|
1020 | --exec=* | --exe=* | --ex=*)
|
cannam@89
|
1021 exec_prefix=$ac_optarg ;;
|
cannam@89
|
1022
|
cannam@89
|
1023 -gas | --gas | --ga | --g)
|
cannam@89
|
1024 # Obsolete; use --with-gas.
|
cannam@89
|
1025 with_gas=yes ;;
|
cannam@89
|
1026
|
cannam@89
|
1027 -help | --help | --hel | --he | -h)
|
cannam@89
|
1028 ac_init_help=long ;;
|
cannam@89
|
1029 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
cannam@89
|
1030 ac_init_help=recursive ;;
|
cannam@89
|
1031 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
cannam@89
|
1032 ac_init_help=short ;;
|
cannam@89
|
1033
|
cannam@89
|
1034 -host | --host | --hos | --ho)
|
cannam@89
|
1035 ac_prev=host_alias ;;
|
cannam@89
|
1036 -host=* | --host=* | --hos=* | --ho=*)
|
cannam@89
|
1037 host_alias=$ac_optarg ;;
|
cannam@89
|
1038
|
cannam@89
|
1039 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
|
cannam@89
|
1040 ac_prev=htmldir ;;
|
cannam@89
|
1041 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
|
cannam@89
|
1042 | --ht=*)
|
cannam@89
|
1043 htmldir=$ac_optarg ;;
|
cannam@89
|
1044
|
cannam@89
|
1045 -includedir | --includedir | --includedi | --included | --include \
|
cannam@89
|
1046 | --includ | --inclu | --incl | --inc)
|
cannam@89
|
1047 ac_prev=includedir ;;
|
cannam@89
|
1048 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
cannam@89
|
1049 | --includ=* | --inclu=* | --incl=* | --inc=*)
|
cannam@89
|
1050 includedir=$ac_optarg ;;
|
cannam@89
|
1051
|
cannam@89
|
1052 -infodir | --infodir | --infodi | --infod | --info | --inf)
|
cannam@89
|
1053 ac_prev=infodir ;;
|
cannam@89
|
1054 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
cannam@89
|
1055 infodir=$ac_optarg ;;
|
cannam@89
|
1056
|
cannam@89
|
1057 -libdir | --libdir | --libdi | --libd)
|
cannam@89
|
1058 ac_prev=libdir ;;
|
cannam@89
|
1059 -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
cannam@89
|
1060 libdir=$ac_optarg ;;
|
cannam@89
|
1061
|
cannam@89
|
1062 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
cannam@89
|
1063 | --libexe | --libex | --libe)
|
cannam@89
|
1064 ac_prev=libexecdir ;;
|
cannam@89
|
1065 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
cannam@89
|
1066 | --libexe=* | --libex=* | --libe=*)
|
cannam@89
|
1067 libexecdir=$ac_optarg ;;
|
cannam@89
|
1068
|
cannam@89
|
1069 -localedir | --localedir | --localedi | --localed | --locale)
|
cannam@89
|
1070 ac_prev=localedir ;;
|
cannam@89
|
1071 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
|
cannam@89
|
1072 localedir=$ac_optarg ;;
|
cannam@89
|
1073
|
cannam@89
|
1074 -localstatedir | --localstatedir | --localstatedi | --localstated \
|
cannam@89
|
1075 | --localstate | --localstat | --localsta | --localst | --locals)
|
cannam@89
|
1076 ac_prev=localstatedir ;;
|
cannam@89
|
1077 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
cannam@89
|
1078 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
|
cannam@89
|
1079 localstatedir=$ac_optarg ;;
|
cannam@89
|
1080
|
cannam@89
|
1081 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
cannam@89
|
1082 ac_prev=mandir ;;
|
cannam@89
|
1083 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
cannam@89
|
1084 mandir=$ac_optarg ;;
|
cannam@89
|
1085
|
cannam@89
|
1086 -nfp | --nfp | --nf)
|
cannam@89
|
1087 # Obsolete; use --without-fp.
|
cannam@89
|
1088 with_fp=no ;;
|
cannam@89
|
1089
|
cannam@89
|
1090 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
cannam@89
|
1091 | --no-cr | --no-c | -n)
|
cannam@89
|
1092 no_create=yes ;;
|
cannam@89
|
1093
|
cannam@89
|
1094 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
cannam@89
|
1095 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
cannam@89
|
1096 no_recursion=yes ;;
|
cannam@89
|
1097
|
cannam@89
|
1098 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
cannam@89
|
1099 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
cannam@89
|
1100 | --oldin | --oldi | --old | --ol | --o)
|
cannam@89
|
1101 ac_prev=oldincludedir ;;
|
cannam@89
|
1102 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
cannam@89
|
1103 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
cannam@89
|
1104 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
cannam@89
|
1105 oldincludedir=$ac_optarg ;;
|
cannam@89
|
1106
|
cannam@89
|
1107 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
cannam@89
|
1108 ac_prev=prefix ;;
|
cannam@89
|
1109 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
cannam@89
|
1110 prefix=$ac_optarg ;;
|
cannam@89
|
1111
|
cannam@89
|
1112 -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
cannam@89
|
1113 | --program-pre | --program-pr | --program-p)
|
cannam@89
|
1114 ac_prev=program_prefix ;;
|
cannam@89
|
1115 -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
cannam@89
|
1116 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
cannam@89
|
1117 program_prefix=$ac_optarg ;;
|
cannam@89
|
1118
|
cannam@89
|
1119 -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
cannam@89
|
1120 | --program-suf | --program-su | --program-s)
|
cannam@89
|
1121 ac_prev=program_suffix ;;
|
cannam@89
|
1122 -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
cannam@89
|
1123 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
cannam@89
|
1124 program_suffix=$ac_optarg ;;
|
cannam@89
|
1125
|
cannam@89
|
1126 -program-transform-name | --program-transform-name \
|
cannam@89
|
1127 | --program-transform-nam | --program-transform-na \
|
cannam@89
|
1128 | --program-transform-n | --program-transform- \
|
cannam@89
|
1129 | --program-transform | --program-transfor \
|
cannam@89
|
1130 | --program-transfo | --program-transf \
|
cannam@89
|
1131 | --program-trans | --program-tran \
|
cannam@89
|
1132 | --progr-tra | --program-tr | --program-t)
|
cannam@89
|
1133 ac_prev=program_transform_name ;;
|
cannam@89
|
1134 -program-transform-name=* | --program-transform-name=* \
|
cannam@89
|
1135 | --program-transform-nam=* | --program-transform-na=* \
|
cannam@89
|
1136 | --program-transform-n=* | --program-transform-=* \
|
cannam@89
|
1137 | --program-transform=* | --program-transfor=* \
|
cannam@89
|
1138 | --program-transfo=* | --program-transf=* \
|
cannam@89
|
1139 | --program-trans=* | --program-tran=* \
|
cannam@89
|
1140 | --progr-tra=* | --program-tr=* | --program-t=*)
|
cannam@89
|
1141 program_transform_name=$ac_optarg ;;
|
cannam@89
|
1142
|
cannam@89
|
1143 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
|
cannam@89
|
1144 ac_prev=pdfdir ;;
|
cannam@89
|
1145 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
|
cannam@89
|
1146 pdfdir=$ac_optarg ;;
|
cannam@89
|
1147
|
cannam@89
|
1148 -psdir | --psdir | --psdi | --psd | --ps)
|
cannam@89
|
1149 ac_prev=psdir ;;
|
cannam@89
|
1150 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
|
cannam@89
|
1151 psdir=$ac_optarg ;;
|
cannam@89
|
1152
|
cannam@89
|
1153 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
cannam@89
|
1154 | -silent | --silent | --silen | --sile | --sil)
|
cannam@89
|
1155 silent=yes ;;
|
cannam@89
|
1156
|
cannam@89
|
1157 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
cannam@89
|
1158 ac_prev=sbindir ;;
|
cannam@89
|
1159 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
cannam@89
|
1160 | --sbi=* | --sb=*)
|
cannam@89
|
1161 sbindir=$ac_optarg ;;
|
cannam@89
|
1162
|
cannam@89
|
1163 -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
cannam@89
|
1164 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
cannam@89
|
1165 | --sharedst | --shareds | --shared | --share | --shar \
|
cannam@89
|
1166 | --sha | --sh)
|
cannam@89
|
1167 ac_prev=sharedstatedir ;;
|
cannam@89
|
1168 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
cannam@89
|
1169 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
cannam@89
|
1170 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
cannam@89
|
1171 | --sha=* | --sh=*)
|
cannam@89
|
1172 sharedstatedir=$ac_optarg ;;
|
cannam@89
|
1173
|
cannam@89
|
1174 -site | --site | --sit)
|
cannam@89
|
1175 ac_prev=site ;;
|
cannam@89
|
1176 -site=* | --site=* | --sit=*)
|
cannam@89
|
1177 site=$ac_optarg ;;
|
cannam@89
|
1178
|
cannam@89
|
1179 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
cannam@89
|
1180 ac_prev=srcdir ;;
|
cannam@89
|
1181 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
cannam@89
|
1182 srcdir=$ac_optarg ;;
|
cannam@89
|
1183
|
cannam@89
|
1184 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
cannam@89
|
1185 | --syscon | --sysco | --sysc | --sys | --sy)
|
cannam@89
|
1186 ac_prev=sysconfdir ;;
|
cannam@89
|
1187 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
cannam@89
|
1188 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
cannam@89
|
1189 sysconfdir=$ac_optarg ;;
|
cannam@89
|
1190
|
cannam@89
|
1191 -target | --target | --targe | --targ | --tar | --ta | --t)
|
cannam@89
|
1192 ac_prev=target_alias ;;
|
cannam@89
|
1193 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
cannam@89
|
1194 target_alias=$ac_optarg ;;
|
cannam@89
|
1195
|
cannam@89
|
1196 -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
cannam@89
|
1197 verbose=yes ;;
|
cannam@89
|
1198
|
cannam@89
|
1199 -version | --version | --versio | --versi | --vers | -V)
|
cannam@89
|
1200 ac_init_version=: ;;
|
cannam@89
|
1201
|
cannam@89
|
1202 -with-* | --with-*)
|
cannam@89
|
1203 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
cannam@89
|
1204 # Reject names that are not valid shell variable names.
|
cannam@89
|
1205 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
cannam@89
|
1206 { echo "$as_me: error: invalid package name: $ac_package" >&2
|
cannam@89
|
1207 { (exit 1); exit 1; }; }
|
cannam@89
|
1208 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
|
cannam@89
|
1209 eval with_$ac_package=\$ac_optarg ;;
|
cannam@89
|
1210
|
cannam@89
|
1211 -without-* | --without-*)
|
cannam@89
|
1212 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
cannam@89
|
1213 # Reject names that are not valid shell variable names.
|
cannam@89
|
1214 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
cannam@89
|
1215 { echo "$as_me: error: invalid package name: $ac_package" >&2
|
cannam@89
|
1216 { (exit 1); exit 1; }; }
|
cannam@89
|
1217 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
|
cannam@89
|
1218 eval with_$ac_package=no ;;
|
cannam@89
|
1219
|
cannam@89
|
1220 --x)
|
cannam@89
|
1221 # Obsolete; use --with-x.
|
cannam@89
|
1222 with_x=yes ;;
|
cannam@89
|
1223
|
cannam@89
|
1224 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
cannam@89
|
1225 | --x-incl | --x-inc | --x-in | --x-i)
|
cannam@89
|
1226 ac_prev=x_includes ;;
|
cannam@89
|
1227 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
cannam@89
|
1228 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
cannam@89
|
1229 x_includes=$ac_optarg ;;
|
cannam@89
|
1230
|
cannam@89
|
1231 -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
cannam@89
|
1232 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
cannam@89
|
1233 ac_prev=x_libraries ;;
|
cannam@89
|
1234 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
cannam@89
|
1235 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
cannam@89
|
1236 x_libraries=$ac_optarg ;;
|
cannam@89
|
1237
|
cannam@89
|
1238 -*) { echo "$as_me: error: unrecognized option: $ac_option
|
cannam@89
|
1239 Try \`$0 --help' for more information." >&2
|
cannam@89
|
1240 { (exit 1); exit 1; }; }
|
cannam@89
|
1241 ;;
|
cannam@89
|
1242
|
cannam@89
|
1243 *=*)
|
cannam@89
|
1244 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
cannam@89
|
1245 # Reject names that are not valid shell variable names.
|
cannam@89
|
1246 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
|
cannam@89
|
1247 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
|
cannam@89
|
1248 { (exit 1); exit 1; }; }
|
cannam@89
|
1249 eval $ac_envvar=\$ac_optarg
|
cannam@89
|
1250 export $ac_envvar ;;
|
cannam@89
|
1251
|
cannam@89
|
1252 *)
|
cannam@89
|
1253 # FIXME: should be removed in autoconf 3.0.
|
cannam@89
|
1254 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
cannam@89
|
1255 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
cannam@89
|
1256 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
cannam@89
|
1257 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
|
cannam@89
|
1258 ;;
|
cannam@89
|
1259
|
cannam@89
|
1260 esac
|
cannam@89
|
1261 done
|
cannam@89
|
1262
|
cannam@89
|
1263 if test -n "$ac_prev"; then
|
cannam@89
|
1264 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
cannam@89
|
1265 { echo "$as_me: error: missing argument to $ac_option" >&2
|
cannam@89
|
1266 { (exit 1); exit 1; }; }
|
cannam@89
|
1267 fi
|
cannam@89
|
1268
|
cannam@89
|
1269 # Be sure to have absolute directory names.
|
cannam@89
|
1270 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
|
cannam@89
|
1271 datadir sysconfdir sharedstatedir localstatedir includedir \
|
cannam@89
|
1272 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
|
cannam@89
|
1273 libdir localedir mandir
|
cannam@89
|
1274 do
|
cannam@89
|
1275 eval ac_val=\$$ac_var
|
cannam@89
|
1276 case $ac_val in
|
cannam@89
|
1277 [\\/$]* | ?:[\\/]* ) continue;;
|
cannam@89
|
1278 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
|
cannam@89
|
1279 esac
|
cannam@89
|
1280 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
cannam@89
|
1281 { (exit 1); exit 1; }; }
|
cannam@89
|
1282 done
|
cannam@89
|
1283
|
cannam@89
|
1284 # There might be people who depend on the old broken behavior: `$host'
|
cannam@89
|
1285 # used to hold the argument of --host etc.
|
cannam@89
|
1286 # FIXME: To remove some day.
|
cannam@89
|
1287 build=$build_alias
|
cannam@89
|
1288 host=$host_alias
|
cannam@89
|
1289 target=$target_alias
|
cannam@89
|
1290
|
cannam@89
|
1291 # FIXME: To remove some day.
|
cannam@89
|
1292 if test "x$host_alias" != x; then
|
cannam@89
|
1293 if test "x$build_alias" = x; then
|
cannam@89
|
1294 cross_compiling=maybe
|
cannam@89
|
1295 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
|
cannam@89
|
1296 If a cross compiler is detected then cross compile mode will be used." >&2
|
cannam@89
|
1297 elif test "x$build_alias" != "x$host_alias"; then
|
cannam@89
|
1298 cross_compiling=yes
|
cannam@89
|
1299 fi
|
cannam@89
|
1300 fi
|
cannam@89
|
1301
|
cannam@89
|
1302 ac_tool_prefix=
|
cannam@89
|
1303 test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
cannam@89
|
1304
|
cannam@89
|
1305 test "$silent" = yes && exec 6>/dev/null
|
cannam@89
|
1306
|
cannam@89
|
1307
|
cannam@89
|
1308 ac_pwd=`pwd` && test -n "$ac_pwd" &&
|
cannam@89
|
1309 ac_ls_di=`ls -di .` &&
|
cannam@89
|
1310 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
|
cannam@89
|
1311 { echo "$as_me: error: Working directory cannot be determined" >&2
|
cannam@89
|
1312 { (exit 1); exit 1; }; }
|
cannam@89
|
1313 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
|
cannam@89
|
1314 { echo "$as_me: error: pwd does not report name of working directory" >&2
|
cannam@89
|
1315 { (exit 1); exit 1; }; }
|
cannam@89
|
1316
|
cannam@89
|
1317
|
cannam@89
|
1318 # Find the source files, if location was not specified.
|
cannam@89
|
1319 if test -z "$srcdir"; then
|
cannam@89
|
1320 ac_srcdir_defaulted=yes
|
cannam@89
|
1321 # Try the directory containing this script, then the parent directory.
|
cannam@89
|
1322 ac_confdir=`$as_dirname -- "$0" ||
|
cannam@89
|
1323 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
cannam@89
|
1324 X"$0" : 'X\(//\)[^/]' \| \
|
cannam@89
|
1325 X"$0" : 'X\(//\)$' \| \
|
cannam@89
|
1326 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
cannam@89
|
1327 echo X"$0" |
|
cannam@89
|
1328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
cannam@89
|
1329 s//\1/
|
cannam@89
|
1330 q
|
cannam@89
|
1331 }
|
cannam@89
|
1332 /^X\(\/\/\)[^/].*/{
|
cannam@89
|
1333 s//\1/
|
cannam@89
|
1334 q
|
cannam@89
|
1335 }
|
cannam@89
|
1336 /^X\(\/\/\)$/{
|
cannam@89
|
1337 s//\1/
|
cannam@89
|
1338 q
|
cannam@89
|
1339 }
|
cannam@89
|
1340 /^X\(\/\).*/{
|
cannam@89
|
1341 s//\1/
|
cannam@89
|
1342 q
|
cannam@89
|
1343 }
|
cannam@89
|
1344 s/.*/./; q'`
|
cannam@89
|
1345 srcdir=$ac_confdir
|
cannam@89
|
1346 if test ! -r "$srcdir/$ac_unique_file"; then
|
cannam@89
|
1347 srcdir=..
|
cannam@89
|
1348 fi
|
cannam@89
|
1349 else
|
cannam@89
|
1350 ac_srcdir_defaulted=no
|
cannam@89
|
1351 fi
|
cannam@89
|
1352 if test ! -r "$srcdir/$ac_unique_file"; then
|
cannam@89
|
1353 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
|
cannam@89
|
1354 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
|
cannam@89
|
1355 { (exit 1); exit 1; }; }
|
cannam@89
|
1356 fi
|
cannam@89
|
1357 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
|
cannam@89
|
1358 ac_abs_confdir=`(
|
cannam@89
|
1359 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
|
cannam@89
|
1360 { (exit 1); exit 1; }; }
|
cannam@89
|
1361 pwd)`
|
cannam@89
|
1362 # When building in place, set srcdir=.
|
cannam@89
|
1363 if test "$ac_abs_confdir" = "$ac_pwd"; then
|
cannam@89
|
1364 srcdir=.
|
cannam@89
|
1365 fi
|
cannam@89
|
1366 # Remove unnecessary trailing slashes from srcdir.
|
cannam@89
|
1367 # Double slashes in file names in object file debugging info
|
cannam@89
|
1368 # mess up M-x gdb in Emacs.
|
cannam@89
|
1369 case $srcdir in
|
cannam@89
|
1370 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
|
cannam@89
|
1371 esac
|
cannam@89
|
1372 for ac_var in $ac_precious_vars; do
|
cannam@89
|
1373 eval ac_env_${ac_var}_set=\${${ac_var}+set}
|
cannam@89
|
1374 eval ac_env_${ac_var}_value=\$${ac_var}
|
cannam@89
|
1375 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
|
cannam@89
|
1376 eval ac_cv_env_${ac_var}_value=\$${ac_var}
|
cannam@89
|
1377 done
|
cannam@89
|
1378
|
cannam@89
|
1379 #
|
cannam@89
|
1380 # Report the --help message.
|
cannam@89
|
1381 #
|
cannam@89
|
1382 if test "$ac_init_help" = "long"; then
|
cannam@89
|
1383 # Omit some internal or obsolete options to make the list less imposing.
|
cannam@89
|
1384 # This message is too long to be a string in the A/UX 3.1 sh.
|
cannam@89
|
1385 cat <<_ACEOF
|
cannam@89
|
1386 \`configure' configures liblo 0.26 to adapt to many kinds of systems.
|
cannam@89
|
1387
|
cannam@89
|
1388 Usage: $0 [OPTION]... [VAR=VALUE]...
|
cannam@89
|
1389
|
cannam@89
|
1390 To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
cannam@89
|
1391 VAR=VALUE. See below for descriptions of some of the useful variables.
|
cannam@89
|
1392
|
cannam@89
|
1393 Defaults for the options are specified in brackets.
|
cannam@89
|
1394
|
cannam@89
|
1395 Configuration:
|
cannam@89
|
1396 -h, --help display this help and exit
|
cannam@89
|
1397 --help=short display options specific to this package
|
cannam@89
|
1398 --help=recursive display the short help of all the included packages
|
cannam@89
|
1399 -V, --version display version information and exit
|
cannam@89
|
1400 -q, --quiet, --silent do not print \`checking...' messages
|
cannam@89
|
1401 --cache-file=FILE cache test results in FILE [disabled]
|
cannam@89
|
1402 -C, --config-cache alias for \`--cache-file=config.cache'
|
cannam@89
|
1403 -n, --no-create do not create output files
|
cannam@89
|
1404 --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
cannam@89
|
1405
|
cannam@89
|
1406 Installation directories:
|
cannam@89
|
1407 --prefix=PREFIX install architecture-independent files in PREFIX
|
cannam@89
|
1408 [$ac_default_prefix]
|
cannam@89
|
1409 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
cannam@89
|
1410 [PREFIX]
|
cannam@89
|
1411
|
cannam@89
|
1412 By default, \`make install' will install all the files in
|
cannam@89
|
1413 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
cannam@89
|
1414 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
cannam@89
|
1415 for instance \`--prefix=\$HOME'.
|
cannam@89
|
1416
|
cannam@89
|
1417 For better control, use the options below.
|
cannam@89
|
1418
|
cannam@89
|
1419 Fine tuning of the installation directories:
|
cannam@89
|
1420 --bindir=DIR user executables [EPREFIX/bin]
|
cannam@89
|
1421 --sbindir=DIR system admin executables [EPREFIX/sbin]
|
cannam@89
|
1422 --libexecdir=DIR program executables [EPREFIX/libexec]
|
cannam@89
|
1423 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
cannam@89
|
1424 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
cannam@89
|
1425 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
cannam@89
|
1426 --libdir=DIR object code libraries [EPREFIX/lib]
|
cannam@89
|
1427 --includedir=DIR C header files [PREFIX/include]
|
cannam@89
|
1428 --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
cannam@89
|
1429 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
|
cannam@89
|
1430 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
|
cannam@89
|
1431 --infodir=DIR info documentation [DATAROOTDIR/info]
|
cannam@89
|
1432 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
|
cannam@89
|
1433 --mandir=DIR man documentation [DATAROOTDIR/man]
|
cannam@89
|
1434 --docdir=DIR documentation root [DATAROOTDIR/doc/liblo]
|
cannam@89
|
1435 --htmldir=DIR html documentation [DOCDIR]
|
cannam@89
|
1436 --dvidir=DIR dvi documentation [DOCDIR]
|
cannam@89
|
1437 --pdfdir=DIR pdf documentation [DOCDIR]
|
cannam@89
|
1438 --psdir=DIR ps documentation [DOCDIR]
|
cannam@89
|
1439 _ACEOF
|
cannam@89
|
1440
|
cannam@89
|
1441 cat <<\_ACEOF
|
cannam@89
|
1442
|
cannam@89
|
1443 Program names:
|
cannam@89
|
1444 --program-prefix=PREFIX prepend PREFIX to installed program names
|
cannam@89
|
1445 --program-suffix=SUFFIX append SUFFIX to installed program names
|
cannam@89
|
1446 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
|
cannam@89
|
1447
|
cannam@89
|
1448 System types:
|
cannam@89
|
1449 --build=BUILD configure for building on BUILD [guessed]
|
cannam@89
|
1450 --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
cannam@89
|
1451 _ACEOF
|
cannam@89
|
1452 fi
|
cannam@89
|
1453
|
cannam@89
|
1454 if test -n "$ac_init_help"; then
|
cannam@89
|
1455 case $ac_init_help in
|
cannam@89
|
1456 short | recursive ) echo "Configuration of liblo 0.26:";;
|
cannam@89
|
1457 esac
|
cannam@89
|
1458 cat <<\_ACEOF
|
cannam@89
|
1459
|
cannam@89
|
1460 Optional Features:
|
cannam@89
|
1461 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
cannam@89
|
1462 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
cannam@89
|
1463 --enable-static[=PKGS] build static libraries [default=no]
|
cannam@89
|
1464 --enable-shared[=PKGS] build shared libraries [default=yes]
|
cannam@89
|
1465 --enable-ipv6 Enable ipv6 support
|
cannam@89
|
1466 --disable-dependency-tracking speeds up one-time build
|
cannam@89
|
1467 --enable-dependency-tracking do not reject slow dependency extractors
|
cannam@89
|
1468 --enable-fast-install[=PKGS]
|
cannam@89
|
1469 optimize for fast installation [default=yes]
|
cannam@89
|
1470 --disable-libtool-lock avoid locking (might break parallel builds)
|
cannam@89
|
1471
|
cannam@89
|
1472 Optional Packages:
|
cannam@89
|
1473 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
cannam@89
|
1474 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
cannam@89
|
1475 --with-pic try to use only PIC/non-PIC objects [default=use
|
cannam@89
|
1476 both]
|
cannam@89
|
1477 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
|
cannam@89
|
1478
|
cannam@89
|
1479 Some influential environment variables:
|
cannam@89
|
1480 CC C compiler command
|
cannam@89
|
1481 CFLAGS C compiler flags
|
cannam@89
|
1482 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
cannam@89
|
1483 nonstandard directory <lib dir>
|
cannam@89
|
1484 LIBS libraries to pass to the linker, e.g. -l<library>
|
cannam@89
|
1485 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
|
cannam@89
|
1486 you have headers in a nonstandard directory <include dir>
|
cannam@89
|
1487 CPP C preprocessor
|
cannam@89
|
1488
|
cannam@89
|
1489 Use these variables to override the choices made by `configure' or to help
|
cannam@89
|
1490 it to find libraries and programs with nonstandard names/locations.
|
cannam@89
|
1491
|
cannam@89
|
1492 Report bugs to <liblo-devel@lists.sourceforge.net>.
|
cannam@89
|
1493 _ACEOF
|
cannam@89
|
1494 ac_status=$?
|
cannam@89
|
1495 fi
|
cannam@89
|
1496
|
cannam@89
|
1497 if test "$ac_init_help" = "recursive"; then
|
cannam@89
|
1498 # If there are subdirs, report their specific --help.
|
cannam@89
|
1499 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
cannam@89
|
1500 test -d "$ac_dir" || continue
|
cannam@89
|
1501 ac_builddir=.
|
cannam@89
|
1502
|
cannam@89
|
1503 case "$ac_dir" in
|
cannam@89
|
1504 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
cannam@89
|
1505 *)
|
cannam@89
|
1506 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
cannam@89
|
1507 # A ".." for each directory in $ac_dir_suffix.
|
cannam@89
|
1508 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
|
cannam@89
|
1509 case $ac_top_builddir_sub in
|
cannam@89
|
1510 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
cannam@89
|
1511 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
cannam@89
|
1512 esac ;;
|
cannam@89
|
1513 esac
|
cannam@89
|
1514 ac_abs_top_builddir=$ac_pwd
|
cannam@89
|
1515 ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
cannam@89
|
1516 # for backward compatibility:
|
cannam@89
|
1517 ac_top_builddir=$ac_top_build_prefix
|
cannam@89
|
1518
|
cannam@89
|
1519 case $srcdir in
|
cannam@89
|
1520 .) # We are building in place.
|
cannam@89
|
1521 ac_srcdir=.
|
cannam@89
|
1522 ac_top_srcdir=$ac_top_builddir_sub
|
cannam@89
|
1523 ac_abs_top_srcdir=$ac_pwd ;;
|
cannam@89
|
1524 [\\/]* | ?:[\\/]* ) # Absolute name.
|
cannam@89
|
1525 ac_srcdir=$srcdir$ac_dir_suffix;
|
cannam@89
|
1526 ac_top_srcdir=$srcdir
|
cannam@89
|
1527 ac_abs_top_srcdir=$srcdir ;;
|
cannam@89
|
1528 *) # Relative name.
|
cannam@89
|
1529 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
cannam@89
|
1530 ac_top_srcdir=$ac_top_build_prefix$srcdir
|
cannam@89
|
1531 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
cannam@89
|
1532 esac
|
cannam@89
|
1533 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
cannam@89
|
1534
|
cannam@89
|
1535 cd "$ac_dir" || { ac_status=$?; continue; }
|
cannam@89
|
1536 # Check for guested configure.
|
cannam@89
|
1537 if test -f "$ac_srcdir/configure.gnu"; then
|
cannam@89
|
1538 echo &&
|
cannam@89
|
1539 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
|
cannam@89
|
1540 elif test -f "$ac_srcdir/configure"; then
|
cannam@89
|
1541 echo &&
|
cannam@89
|
1542 $SHELL "$ac_srcdir/configure" --help=recursive
|
cannam@89
|
1543 else
|
cannam@89
|
1544 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
cannam@89
|
1545 fi || ac_status=$?
|
cannam@89
|
1546 cd "$ac_pwd" || { ac_status=$?; break; }
|
cannam@89
|
1547 done
|
cannam@89
|
1548 fi
|
cannam@89
|
1549
|
cannam@89
|
1550 test -n "$ac_init_help" && exit $ac_status
|
cannam@89
|
1551 if $ac_init_version; then
|
cannam@89
|
1552 cat <<\_ACEOF
|
cannam@89
|
1553 liblo configure 0.26
|
cannam@89
|
1554 generated by GNU Autoconf 2.61
|
cannam@89
|
1555
|
cannam@89
|
1556 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
cannam@89
|
1557 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
|
cannam@89
|
1558 This configure script is free software; the Free Software Foundation
|
cannam@89
|
1559 gives unlimited permission to copy, distribute and modify it.
|
cannam@89
|
1560 _ACEOF
|
cannam@89
|
1561 exit
|
cannam@89
|
1562 fi
|
cannam@89
|
1563 cat >config.log <<_ACEOF
|
cannam@89
|
1564 This file contains any messages produced by compilers while
|
cannam@89
|
1565 running configure, to aid debugging if configure makes a mistake.
|
cannam@89
|
1566
|
cannam@89
|
1567 It was created by liblo $as_me 0.26, which was
|
cannam@89
|
1568 generated by GNU Autoconf 2.61. Invocation command line was
|
cannam@89
|
1569
|
cannam@89
|
1570 $ $0 $@
|
cannam@89
|
1571
|
cannam@89
|
1572 _ACEOF
|
cannam@89
|
1573 exec 5>>config.log
|
cannam@89
|
1574 {
|
cannam@89
|
1575 cat <<_ASUNAME
|
cannam@89
|
1576 ## --------- ##
|
cannam@89
|
1577 ## Platform. ##
|
cannam@89
|
1578 ## --------- ##
|
cannam@89
|
1579
|
cannam@89
|
1580 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
cannam@89
|
1581 uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
cannam@89
|
1582 uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
cannam@89
|
1583 uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
cannam@89
|
1584 uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
cannam@89
|
1585
|
cannam@89
|
1586 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
cannam@89
|
1587 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
cannam@89
|
1588
|
cannam@89
|
1589 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
cannam@89
|
1590 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
cannam@89
|
1591 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
cannam@89
|
1592 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
|
cannam@89
|
1593 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
cannam@89
|
1594 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
cannam@89
|
1595 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
cannam@89
|
1596
|
cannam@89
|
1597 _ASUNAME
|
cannam@89
|
1598
|
cannam@89
|
1599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@89
|
1600 for as_dir in $PATH
|
cannam@89
|
1601 do
|
cannam@89
|
1602 IFS=$as_save_IFS
|
cannam@89
|
1603 test -z "$as_dir" && as_dir=.
|
cannam@89
|
1604 echo "PATH: $as_dir"
|
cannam@89
|
1605 done
|
cannam@89
|
1606 IFS=$as_save_IFS
|
cannam@89
|
1607
|
cannam@89
|
1608 } >&5
|
cannam@89
|
1609
|
cannam@89
|
1610 cat >&5 <<_ACEOF
|
cannam@89
|
1611
|
cannam@89
|
1612
|
cannam@89
|
1613 ## ----------- ##
|
cannam@89
|
1614 ## Core tests. ##
|
cannam@89
|
1615 ## ----------- ##
|
cannam@89
|
1616
|
cannam@89
|
1617 _ACEOF
|
cannam@89
|
1618
|
cannam@89
|
1619
|
cannam@89
|
1620 # Keep a trace of the command line.
|
cannam@89
|
1621 # Strip out --no-create and --no-recursion so they do not pile up.
|
cannam@89
|
1622 # Strip out --silent because we don't want to record it for future runs.
|
cannam@89
|
1623 # Also quote any args containing shell meta-characters.
|
cannam@89
|
1624 # Make two passes to allow for proper duplicate-argument suppression.
|
cannam@89
|
1625 ac_configure_args=
|
cannam@89
|
1626 ac_configure_args0=
|
cannam@89
|
1627 ac_configure_args1=
|
cannam@89
|
1628 ac_must_keep_next=false
|
cannam@89
|
1629 for ac_pass in 1 2
|
cannam@89
|
1630 do
|
cannam@89
|
1631 for ac_arg
|
cannam@89
|
1632 do
|
cannam@89
|
1633 case $ac_arg in
|
cannam@89
|
1634 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
cannam@89
|
1635 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
cannam@89
|
1636 | -silent | --silent | --silen | --sile | --sil)
|
cannam@89
|
1637 continue ;;
|
cannam@89
|
1638 *\'*)
|
cannam@89
|
1639 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
cannam@89
|
1640 esac
|
cannam@89
|
1641 case $ac_pass in
|
cannam@89
|
1642 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
|
cannam@89
|
1643 2)
|
cannam@89
|
1644 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
|
cannam@89
|
1645 if test $ac_must_keep_next = true; then
|
cannam@89
|
1646 ac_must_keep_next=false # Got value, back to normal.
|
cannam@89
|
1647 else
|
cannam@89
|
1648 case $ac_arg in
|
cannam@89
|
1649 *=* | --config-cache | -C | -disable-* | --disable-* \
|
cannam@89
|
1650 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
cannam@89
|
1651 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
cannam@89
|
1652 | -with-* | --with-* | -without-* | --without-* | --x)
|
cannam@89
|
1653 case "$ac_configure_args0 " in
|
cannam@89
|
1654 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
cannam@89
|
1655 esac
|
cannam@89
|
1656 ;;
|
cannam@89
|
1657 -* ) ac_must_keep_next=true ;;
|
cannam@89
|
1658 esac
|
cannam@89
|
1659 fi
|
cannam@89
|
1660 ac_configure_args="$ac_configure_args '$ac_arg'"
|
cannam@89
|
1661 ;;
|
cannam@89
|
1662 esac
|
cannam@89
|
1663 done
|
cannam@89
|
1664 done
|
cannam@89
|
1665 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
|
cannam@89
|
1666 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
|
cannam@89
|
1667
|
cannam@89
|
1668 # When interrupted or exit'd, cleanup temporary files, and complete
|
cannam@89
|
1669 # config.log. We remove comments because anyway the quotes in there
|
cannam@89
|
1670 # would cause problems or look ugly.
|
cannam@89
|
1671 # WARNING: Use '\'' to represent an apostrophe within the trap.
|
cannam@89
|
1672 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
|
cannam@89
|
1673 trap 'exit_status=$?
|
cannam@89
|
1674 # Save into config.log some information that might help in debugging.
|
cannam@89
|
1675 {
|
cannam@89
|
1676 echo
|
cannam@89
|
1677
|
cannam@89
|
1678 cat <<\_ASBOX
|
cannam@89
|
1679 ## ---------------- ##
|
cannam@89
|
1680 ## Cache variables. ##
|
cannam@89
|
1681 ## ---------------- ##
|
cannam@89
|
1682 _ASBOX
|
cannam@89
|
1683 echo
|
cannam@89
|
1684 # The following way of writing the cache mishandles newlines in values,
|
cannam@89
|
1685 (
|
cannam@89
|
1686 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
|
cannam@89
|
1687 eval ac_val=\$$ac_var
|
cannam@89
|
1688 case $ac_val in #(
|
cannam@89
|
1689 *${as_nl}*)
|
cannam@89
|
1690 case $ac_var in #(
|
cannam@89
|
1691 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
|
cannam@89
|
1692 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
|
cannam@89
|
1693 esac
|
cannam@89
|
1694 case $ac_var in #(
|
cannam@89
|
1695 _ | IFS | as_nl) ;; #(
|
cannam@89
|
1696 *) $as_unset $ac_var ;;
|
cannam@89
|
1697 esac ;;
|
cannam@89
|
1698 esac
|
cannam@89
|
1699 done
|
cannam@89
|
1700 (set) 2>&1 |
|
cannam@89
|
1701 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
|
cannam@89
|
1702 *${as_nl}ac_space=\ *)
|
cannam@89
|
1703 sed -n \
|
cannam@89
|
1704 "s/'\''/'\''\\\\'\'''\''/g;
|
cannam@89
|
1705 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
|
cannam@89
|
1706 ;; #(
|
cannam@89
|
1707 *)
|
cannam@89
|
1708 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
cannam@89
|
1709 ;;
|
cannam@89
|
1710 esac |
|
cannam@89
|
1711 sort
|
cannam@89
|
1712 )
|
cannam@89
|
1713 echo
|
cannam@89
|
1714
|
cannam@89
|
1715 cat <<\_ASBOX
|
cannam@89
|
1716 ## ----------------- ##
|
cannam@89
|
1717 ## Output variables. ##
|
cannam@89
|
1718 ## ----------------- ##
|
cannam@89
|
1719 _ASBOX
|
cannam@89
|
1720 echo
|
cannam@89
|
1721 for ac_var in $ac_subst_vars
|
cannam@89
|
1722 do
|
cannam@89
|
1723 eval ac_val=\$$ac_var
|
cannam@89
|
1724 case $ac_val in
|
cannam@89
|
1725 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
cannam@89
|
1726 esac
|
cannam@89
|
1727 echo "$ac_var='\''$ac_val'\''"
|
cannam@89
|
1728 done | sort
|
cannam@89
|
1729 echo
|
cannam@89
|
1730
|
cannam@89
|
1731 if test -n "$ac_subst_files"; then
|
cannam@89
|
1732 cat <<\_ASBOX
|
cannam@89
|
1733 ## ------------------- ##
|
cannam@89
|
1734 ## File substitutions. ##
|
cannam@89
|
1735 ## ------------------- ##
|
cannam@89
|
1736 _ASBOX
|
cannam@89
|
1737 echo
|
cannam@89
|
1738 for ac_var in $ac_subst_files
|
cannam@89
|
1739 do
|
cannam@89
|
1740 eval ac_val=\$$ac_var
|
cannam@89
|
1741 case $ac_val in
|
cannam@89
|
1742 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
cannam@89
|
1743 esac
|
cannam@89
|
1744 echo "$ac_var='\''$ac_val'\''"
|
cannam@89
|
1745 done | sort
|
cannam@89
|
1746 echo
|
cannam@89
|
1747 fi
|
cannam@89
|
1748
|
cannam@89
|
1749 if test -s confdefs.h; then
|
cannam@89
|
1750 cat <<\_ASBOX
|
cannam@89
|
1751 ## ----------- ##
|
cannam@89
|
1752 ## confdefs.h. ##
|
cannam@89
|
1753 ## ----------- ##
|
cannam@89
|
1754 _ASBOX
|
cannam@89
|
1755 echo
|
cannam@89
|
1756 cat confdefs.h
|
cannam@89
|
1757 echo
|
cannam@89
|
1758 fi
|
cannam@89
|
1759 test "$ac_signal" != 0 &&
|
cannam@89
|
1760 echo "$as_me: caught signal $ac_signal"
|
cannam@89
|
1761 echo "$as_me: exit $exit_status"
|
cannam@89
|
1762 } >&5
|
cannam@89
|
1763 rm -f core *.core core.conftest.* &&
|
cannam@89
|
1764 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
|
cannam@89
|
1765 exit $exit_status
|
cannam@89
|
1766 ' 0
|
cannam@89
|
1767 for ac_signal in 1 2 13 15; do
|
cannam@89
|
1768 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
|
cannam@89
|
1769 done
|
cannam@89
|
1770 ac_signal=0
|
cannam@89
|
1771
|
cannam@89
|
1772 # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
cannam@89
|
1773 rm -f -r conftest* confdefs.h
|
cannam@89
|
1774
|
cannam@89
|
1775 # Predefined preprocessor variables.
|
cannam@89
|
1776
|
cannam@89
|
1777 cat >>confdefs.h <<_ACEOF
|
cannam@89
|
1778 #define PACKAGE_NAME "$PACKAGE_NAME"
|
cannam@89
|
1779 _ACEOF
|
cannam@89
|
1780
|
cannam@89
|
1781
|
cannam@89
|
1782 cat >>confdefs.h <<_ACEOF
|
cannam@89
|
1783 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
cannam@89
|
1784 _ACEOF
|
cannam@89
|
1785
|
cannam@89
|
1786
|
cannam@89
|
1787 cat >>confdefs.h <<_ACEOF
|
cannam@89
|
1788 #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
cannam@89
|
1789 _ACEOF
|
cannam@89
|
1790
|
cannam@89
|
1791
|
cannam@89
|
1792 cat >>confdefs.h <<_ACEOF
|
cannam@89
|
1793 #define PACKAGE_STRING "$PACKAGE_STRING"
|
cannam@89
|
1794 _ACEOF
|
cannam@89
|
1795
|
cannam@89
|
1796
|
cannam@89
|
1797 cat >>confdefs.h <<_ACEOF
|
cannam@89
|
1798 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
cannam@89
|
1799 _ACEOF
|
cannam@89
|
1800
|
cannam@89
|
1801
|
cannam@89
|
1802 # Let the site file select an alternate cache file if it wants to.
|
cannam@89
|
1803 # Prefer explicitly selected file to automatically selected ones.
|
cannam@89
|
1804 if test -n "$CONFIG_SITE"; then
|
cannam@89
|
1805 set x "$CONFIG_SITE"
|
cannam@89
|
1806 elif test "x$prefix" != xNONE; then
|
cannam@89
|
1807 set x "$prefix/share/config.site" "$prefix/etc/config.site"
|
cannam@89
|
1808 else
|
cannam@89
|
1809 set x "$ac_default_prefix/share/config.site" \
|
cannam@89
|
1810 "$ac_default_prefix/etc/config.site"
|
cannam@89
|
1811 fi
|
cannam@89
|
1812 shift
|
cannam@89
|
1813 for ac_site_file
|
cannam@89
|
1814 do
|
cannam@89
|
1815 if test -r "$ac_site_file"; then
|
cannam@89
|
1816 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
|
cannam@89
|
1817 echo "$as_me: loading site script $ac_site_file" >&6;}
|
cannam@89
|
1818 sed 's/^/| /' "$ac_site_file" >&5
|
cannam@89
|
1819 . "$ac_site_file"
|
cannam@89
|
1820 fi
|
cannam@89
|
1821 done
|
cannam@89
|
1822
|
cannam@89
|
1823 if test -r "$cache_file"; then
|
cannam@89
|
1824 # Some versions of bash will fail to source /dev/null (special
|
cannam@89
|
1825 # files actually), so we avoid doing that.
|
cannam@89
|
1826 if test -f "$cache_file"; then
|
cannam@89
|
1827 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
|
cannam@89
|
1828 echo "$as_me: loading cache $cache_file" >&6;}
|
cannam@89
|
1829 case $cache_file in
|
cannam@89
|
1830 [\\/]* | ?:[\\/]* ) . "$cache_file";;
|
cannam@89
|
1831 *) . "./$cache_file";;
|
cannam@89
|
1832 esac
|
cannam@89
|
1833 fi
|
cannam@89
|
1834 else
|
cannam@89
|
1835 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
|
cannam@89
|
1836 echo "$as_me: creating cache $cache_file" >&6;}
|
cannam@89
|
1837 >$cache_file
|
cannam@89
|
1838 fi
|
cannam@89
|
1839
|
cannam@89
|
1840 # Check that the precious variables saved in the cache have kept the same
|
cannam@89
|
1841 # value.
|
cannam@89
|
1842 ac_cache_corrupted=false
|
cannam@89
|
1843 for ac_var in $ac_precious_vars; do
|
cannam@89
|
1844 eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
cannam@89
|
1845 eval ac_new_set=\$ac_env_${ac_var}_set
|
cannam@89
|
1846 eval ac_old_val=\$ac_cv_env_${ac_var}_value
|
cannam@89
|
1847 eval ac_new_val=\$ac_env_${ac_var}_value
|
cannam@89
|
1848 case $ac_old_set,$ac_new_set in
|
cannam@89
|
1849 set,)
|
cannam@89
|
1850 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
cannam@89
|
1851 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
cannam@89
|
1852 ac_cache_corrupted=: ;;
|
cannam@89
|
1853 ,set)
|
cannam@89
|
1854 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
|
cannam@89
|
1855 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
cannam@89
|
1856 ac_cache_corrupted=: ;;
|
cannam@89
|
1857 ,);;
|
cannam@89
|
1858 *)
|
cannam@89
|
1859 if test "x$ac_old_val" != "x$ac_new_val"; then
|
cannam@89
|
1860 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
|
cannam@89
|
1861 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
cannam@89
|
1862 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
|
cannam@89
|
1863 echo "$as_me: former value: $ac_old_val" >&2;}
|
cannam@89
|
1864 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
|
cannam@89
|
1865 echo "$as_me: current value: $ac_new_val" >&2;}
|
cannam@89
|
1866 ac_cache_corrupted=:
|
cannam@89
|
1867 fi;;
|
cannam@89
|
1868 esac
|
cannam@89
|
1869 # Pass precious variables to config.status.
|
cannam@89
|
1870 if test "$ac_new_set" = set; then
|
cannam@89
|
1871 case $ac_new_val in
|
cannam@89
|
1872 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
cannam@89
|
1873 *) ac_arg=$ac_var=$ac_new_val ;;
|
cannam@89
|
1874 esac
|
cannam@89
|
1875 case " $ac_configure_args " in
|
cannam@89
|
1876 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
cannam@89
|
1877 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
cannam@89
|
1878 esac
|
cannam@89
|
1879 fi
|
cannam@89
|
1880 done
|
cannam@89
|
1881 if $ac_cache_corrupted; then
|
cannam@89
|
1882 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
|
cannam@89
|
1883 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
cannam@89
|
1884 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
|
cannam@89
|
1885 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
|
cannam@89
|
1886 { (exit 1); exit 1; }; }
|
cannam@89
|
1887 fi
|
cannam@89
|
1888
|
cannam@89
|
1889
|
cannam@89
|
1890
|
cannam@89
|
1891
|
cannam@89
|
1892
|
cannam@89
|
1893
|
cannam@89
|
1894
|
cannam@89
|
1895
|
cannam@89
|
1896
|
cannam@89
|
1897
|
cannam@89
|
1898
|
cannam@89
|
1899
|
cannam@89
|
1900
|
cannam@89
|
1901
|
cannam@89
|
1902
|
cannam@89
|
1903
|
cannam@89
|
1904
|
cannam@89
|
1905
|
cannam@89
|
1906
|
cannam@89
|
1907
|
cannam@89
|
1908
|
cannam@89
|
1909
|
cannam@89
|
1910
|
cannam@89
|
1911
|
cannam@89
|
1912
|
cannam@89
|
1913 ac_ext=c
|
cannam@89
|
1914 ac_cpp='$CPP $CPPFLAGS'
|
cannam@89
|
1915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
cannam@89
|
1916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
cannam@89
|
1917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
cannam@89
|
1918
|
cannam@89
|
1919
|
cannam@89
|
1920
|
cannam@89
|
1921 # libtool version: current:revision:age
|
cannam@89
|
1922 #
|
cannam@89
|
1923 # If the library source code has changed at all since the last update, then
|
cannam@89
|
1924 # increment revision (`c:r:a' becomes `c:r+1:a').
|
cannam@89
|
1925 #
|
cannam@89
|
1926 # If any interfaces have been added, removed, or changed since the last update,
|
cannam@89
|
1927 # increment current, and set revision to 0.
|
cannam@89
|
1928 #
|
cannam@89
|
1929 # If any interfaces have been added since the last public release, then
|
cannam@89
|
1930 # increment age.
|
cannam@89
|
1931 #
|
cannam@89
|
1932 # If any interfaces have been removed since the last public release, then set
|
cannam@89
|
1933 # age to 0.
|
cannam@89
|
1934 LO_SO_VERSION=7:0:0
|
cannam@89
|
1935
|
cannam@89
|
1936
|
cannam@89
|
1937 ac_config_headers="$ac_config_headers config.h"
|
cannam@89
|
1938
|
cannam@89
|
1939
|
cannam@89
|
1940 am__api_version='1.10'
|
cannam@89
|
1941
|
cannam@89
|
1942 ac_aux_dir=
|
cannam@89
|
1943 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
|
cannam@89
|
1944 if test -f "$ac_dir/install-sh"; then
|
cannam@89
|
1945 ac_aux_dir=$ac_dir
|
cannam@89
|
1946 ac_install_sh="$ac_aux_dir/install-sh -c"
|
cannam@89
|
1947 break
|
cannam@89
|
1948 elif test -f "$ac_dir/install.sh"; then
|
cannam@89
|
1949 ac_aux_dir=$ac_dir
|
cannam@89
|
1950 ac_install_sh="$ac_aux_dir/install.sh -c"
|
cannam@89
|
1951 break
|
cannam@89
|
1952 elif test -f "$ac_dir/shtool"; then
|
cannam@89
|
1953 ac_aux_dir=$ac_dir
|
cannam@89
|
1954 ac_install_sh="$ac_aux_dir/shtool install -c"
|
cannam@89
|
1955 break
|
cannam@89
|
1956 fi
|
cannam@89
|
1957 done
|
cannam@89
|
1958 if test -z "$ac_aux_dir"; then
|
cannam@89
|
1959 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
|
cannam@89
|
1960 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
|
cannam@89
|
1961 { (exit 1); exit 1; }; }
|
cannam@89
|
1962 fi
|
cannam@89
|
1963
|
cannam@89
|
1964 # These three variables are undocumented and unsupported,
|
cannam@89
|
1965 # and are intended to be withdrawn in a future Autoconf release.
|
cannam@89
|
1966 # They can cause serious problems if a builder's source tree is in a directory
|
cannam@89
|
1967 # whose full name contains unusual characters.
|
cannam@89
|
1968 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
|
cannam@89
|
1969 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
|
cannam@89
|
1970 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
cannam@89
|
1971
|
cannam@89
|
1972
|
cannam@89
|
1973 # Find a good install program. We prefer a C program (faster),
|
cannam@89
|
1974 # so one script is as good as another. But avoid the broken or
|
cannam@89
|
1975 # incompatible versions:
|
cannam@89
|
1976 # SysV /etc/install, /usr/sbin/install
|
cannam@89
|
1977 # SunOS /usr/etc/install
|
cannam@89
|
1978 # IRIX /sbin/install
|
cannam@89
|
1979 # AIX /bin/install
|
cannam@89
|
1980 # AmigaOS /C/install, which installs bootblocks on floppy discs
|
cannam@89
|
1981 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
cannam@89
|
1982 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
cannam@89
|
1983 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
cannam@89
|
1984 # OS/2's system install, which has a completely different semantic
|
cannam@89
|
1985 # ./install, which can be erroneously created by make from ./install.sh.
|
cannam@89
|
1986 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
cannam@89
|
1987 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
|
cannam@89
|
1988 if test -z "$INSTALL"; then
|
cannam@89
|
1989 if test "${ac_cv_path_install+set}" = set; then
|
cannam@89
|
1990 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
1991 else
|
cannam@89
|
1992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@89
|
1993 for as_dir in $PATH
|
cannam@89
|
1994 do
|
cannam@89
|
1995 IFS=$as_save_IFS
|
cannam@89
|
1996 test -z "$as_dir" && as_dir=.
|
cannam@89
|
1997 # Account for people who put trailing slashes in PATH elements.
|
cannam@89
|
1998 case $as_dir/ in
|
cannam@89
|
1999 ./ | .// | /cC/* | \
|
cannam@89
|
2000 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
cannam@89
|
2001 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
|
cannam@89
|
2002 /usr/ucb/* ) ;;
|
cannam@89
|
2003 *)
|
cannam@89
|
2004 # OSF1 and SCO ODT 3.0 have their own names for install.
|
cannam@89
|
2005 # Don't use installbsd from OSF since it installs stuff as root
|
cannam@89
|
2006 # by default.
|
cannam@89
|
2007 for ac_prog in ginstall scoinst install; do
|
cannam@89
|
2008 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@89
|
2009 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
|
cannam@89
|
2010 if test $ac_prog = install &&
|
cannam@89
|
2011 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
cannam@89
|
2012 # AIX install. It has an incompatible calling convention.
|
cannam@89
|
2013 :
|
cannam@89
|
2014 elif test $ac_prog = install &&
|
cannam@89
|
2015 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
cannam@89
|
2016 # program-specific install script used by HP pwplus--don't use.
|
cannam@89
|
2017 :
|
cannam@89
|
2018 else
|
cannam@89
|
2019 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
cannam@89
|
2020 break 3
|
cannam@89
|
2021 fi
|
cannam@89
|
2022 fi
|
cannam@89
|
2023 done
|
cannam@89
|
2024 done
|
cannam@89
|
2025 ;;
|
cannam@89
|
2026 esac
|
cannam@89
|
2027 done
|
cannam@89
|
2028 IFS=$as_save_IFS
|
cannam@89
|
2029
|
cannam@89
|
2030
|
cannam@89
|
2031 fi
|
cannam@89
|
2032 if test "${ac_cv_path_install+set}" = set; then
|
cannam@89
|
2033 INSTALL=$ac_cv_path_install
|
cannam@89
|
2034 else
|
cannam@89
|
2035 # As a last resort, use the slow shell script. Don't cache a
|
cannam@89
|
2036 # value for INSTALL within a source directory, because that will
|
cannam@89
|
2037 # break other packages using the cache if that directory is
|
cannam@89
|
2038 # removed, or if the value is a relative name.
|
cannam@89
|
2039 INSTALL=$ac_install_sh
|
cannam@89
|
2040 fi
|
cannam@89
|
2041 fi
|
cannam@89
|
2042 { echo "$as_me:$LINENO: result: $INSTALL" >&5
|
cannam@89
|
2043 echo "${ECHO_T}$INSTALL" >&6; }
|
cannam@89
|
2044
|
cannam@89
|
2045 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
cannam@89
|
2046 # It thinks the first close brace ends the variable substitution.
|
cannam@89
|
2047 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
cannam@89
|
2048
|
cannam@89
|
2049 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
cannam@89
|
2050
|
cannam@89
|
2051 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
cannam@89
|
2052
|
cannam@89
|
2053 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
|
cannam@89
|
2054 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
|
cannam@89
|
2055 # Just in case
|
cannam@89
|
2056 sleep 1
|
cannam@89
|
2057 echo timestamp > conftest.file
|
cannam@89
|
2058 # Do `set' in a subshell so we don't clobber the current shell's
|
cannam@89
|
2059 # arguments. Must try -L first in case configure is actually a
|
cannam@89
|
2060 # symlink; some systems play weird games with the mod time of symlinks
|
cannam@89
|
2061 # (eg FreeBSD returns the mod time of the symlink's containing
|
cannam@89
|
2062 # directory).
|
cannam@89
|
2063 if (
|
cannam@89
|
2064 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
|
cannam@89
|
2065 if test "$*" = "X"; then
|
cannam@89
|
2066 # -L didn't work.
|
cannam@89
|
2067 set X `ls -t $srcdir/configure conftest.file`
|
cannam@89
|
2068 fi
|
cannam@89
|
2069 rm -f conftest.file
|
cannam@89
|
2070 if test "$*" != "X $srcdir/configure conftest.file" \
|
cannam@89
|
2071 && test "$*" != "X conftest.file $srcdir/configure"; then
|
cannam@89
|
2072
|
cannam@89
|
2073 # If neither matched, then we have a broken ls. This can happen
|
cannam@89
|
2074 # if, for instance, CONFIG_SHELL is bash and it inherits a
|
cannam@89
|
2075 # broken ls alias from the environment. This has actually
|
cannam@89
|
2076 # happened. Such a system could not be considered "sane".
|
cannam@89
|
2077 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
|
cannam@89
|
2078 alias in your environment" >&5
|
cannam@89
|
2079 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
|
cannam@89
|
2080 alias in your environment" >&2;}
|
cannam@89
|
2081 { (exit 1); exit 1; }; }
|
cannam@89
|
2082 fi
|
cannam@89
|
2083
|
cannam@89
|
2084 test "$2" = conftest.file
|
cannam@89
|
2085 )
|
cannam@89
|
2086 then
|
cannam@89
|
2087 # Ok.
|
cannam@89
|
2088 :
|
cannam@89
|
2089 else
|
cannam@89
|
2090 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
|
cannam@89
|
2091 Check your system clock" >&5
|
cannam@89
|
2092 echo "$as_me: error: newly created file is older than distributed files!
|
cannam@89
|
2093 Check your system clock" >&2;}
|
cannam@89
|
2094 { (exit 1); exit 1; }; }
|
cannam@89
|
2095 fi
|
cannam@89
|
2096 { echo "$as_me:$LINENO: result: yes" >&5
|
cannam@89
|
2097 echo "${ECHO_T}yes" >&6; }
|
cannam@89
|
2098 test "$program_prefix" != NONE &&
|
cannam@89
|
2099 program_transform_name="s&^&$program_prefix&;$program_transform_name"
|
cannam@89
|
2100 # Use a double $ so make ignores it.
|
cannam@89
|
2101 test "$program_suffix" != NONE &&
|
cannam@89
|
2102 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
|
cannam@89
|
2103 # Double any \ or $. echo might interpret backslashes.
|
cannam@89
|
2104 # By default was `s,x,x', remove it if useless.
|
cannam@89
|
2105 cat <<\_ACEOF >conftest.sed
|
cannam@89
|
2106 s/[\\$]/&&/g;s/;s,x,x,$//
|
cannam@89
|
2107 _ACEOF
|
cannam@89
|
2108 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
|
cannam@89
|
2109 rm -f conftest.sed
|
cannam@89
|
2110
|
cannam@89
|
2111 # expand $ac_aux_dir to an absolute path
|
cannam@89
|
2112 am_aux_dir=`cd $ac_aux_dir && pwd`
|
cannam@89
|
2113
|
cannam@89
|
2114 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
|
cannam@89
|
2115 # Use eval to expand $SHELL
|
cannam@89
|
2116 if eval "$MISSING --run true"; then
|
cannam@89
|
2117 am_missing_run="$MISSING --run "
|
cannam@89
|
2118 else
|
cannam@89
|
2119 am_missing_run=
|
cannam@89
|
2120 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
|
cannam@89
|
2121 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
|
cannam@89
|
2122 fi
|
cannam@89
|
2123
|
cannam@89
|
2124 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
|
cannam@89
|
2125 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
|
cannam@89
|
2126 if test -z "$MKDIR_P"; then
|
cannam@89
|
2127 if test "${ac_cv_path_mkdir+set}" = set; then
|
cannam@89
|
2128 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
2129 else
|
cannam@89
|
2130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@89
|
2131 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
|
cannam@89
|
2132 do
|
cannam@89
|
2133 IFS=$as_save_IFS
|
cannam@89
|
2134 test -z "$as_dir" && as_dir=.
|
cannam@89
|
2135 for ac_prog in mkdir gmkdir; do
|
cannam@89
|
2136 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@89
|
2137 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
|
cannam@89
|
2138 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
|
cannam@89
|
2139 'mkdir (GNU coreutils) '* | \
|
cannam@89
|
2140 'mkdir (coreutils) '* | \
|
cannam@89
|
2141 'mkdir (fileutils) '4.1*)
|
cannam@89
|
2142 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
|
cannam@89
|
2143 break 3;;
|
cannam@89
|
2144 esac
|
cannam@89
|
2145 done
|
cannam@89
|
2146 done
|
cannam@89
|
2147 done
|
cannam@89
|
2148 IFS=$as_save_IFS
|
cannam@89
|
2149
|
cannam@89
|
2150 fi
|
cannam@89
|
2151
|
cannam@89
|
2152 if test "${ac_cv_path_mkdir+set}" = set; then
|
cannam@89
|
2153 MKDIR_P="$ac_cv_path_mkdir -p"
|
cannam@89
|
2154 else
|
cannam@89
|
2155 # As a last resort, use the slow shell script. Don't cache a
|
cannam@89
|
2156 # value for MKDIR_P within a source directory, because that will
|
cannam@89
|
2157 # break other packages using the cache if that directory is
|
cannam@89
|
2158 # removed, or if the value is a relative name.
|
cannam@89
|
2159 test -d ./--version && rmdir ./--version
|
cannam@89
|
2160 MKDIR_P="$ac_install_sh -d"
|
cannam@89
|
2161 fi
|
cannam@89
|
2162 fi
|
cannam@89
|
2163 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
|
cannam@89
|
2164 echo "${ECHO_T}$MKDIR_P" >&6; }
|
cannam@89
|
2165
|
cannam@89
|
2166 mkdir_p="$MKDIR_P"
|
cannam@89
|
2167 case $mkdir_p in
|
cannam@89
|
2168 [\\/$]* | ?:[\\/]*) ;;
|
cannam@89
|
2169 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
|
cannam@89
|
2170 esac
|
cannam@89
|
2171
|
cannam@89
|
2172 for ac_prog in gawk mawk nawk awk
|
cannam@89
|
2173 do
|
cannam@89
|
2174 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
cannam@89
|
2175 set dummy $ac_prog; ac_word=$2
|
cannam@89
|
2176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@89
|
2177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
cannam@89
|
2178 if test "${ac_cv_prog_AWK+set}" = set; then
|
cannam@89
|
2179 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
2180 else
|
cannam@89
|
2181 if test -n "$AWK"; then
|
cannam@89
|
2182 ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
cannam@89
|
2183 else
|
cannam@89
|
2184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@89
|
2185 for as_dir in $PATH
|
cannam@89
|
2186 do
|
cannam@89
|
2187 IFS=$as_save_IFS
|
cannam@89
|
2188 test -z "$as_dir" && as_dir=.
|
cannam@89
|
2189 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@89
|
2190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
cannam@89
|
2191 ac_cv_prog_AWK="$ac_prog"
|
cannam@89
|
2192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@89
|
2193 break 2
|
cannam@89
|
2194 fi
|
cannam@89
|
2195 done
|
cannam@89
|
2196 done
|
cannam@89
|
2197 IFS=$as_save_IFS
|
cannam@89
|
2198
|
cannam@89
|
2199 fi
|
cannam@89
|
2200 fi
|
cannam@89
|
2201 AWK=$ac_cv_prog_AWK
|
cannam@89
|
2202 if test -n "$AWK"; then
|
cannam@89
|
2203 { echo "$as_me:$LINENO: result: $AWK" >&5
|
cannam@89
|
2204 echo "${ECHO_T}$AWK" >&6; }
|
cannam@89
|
2205 else
|
cannam@89
|
2206 { echo "$as_me:$LINENO: result: no" >&5
|
cannam@89
|
2207 echo "${ECHO_T}no" >&6; }
|
cannam@89
|
2208 fi
|
cannam@89
|
2209
|
cannam@89
|
2210
|
cannam@89
|
2211 test -n "$AWK" && break
|
cannam@89
|
2212 done
|
cannam@89
|
2213
|
cannam@89
|
2214 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
cannam@89
|
2215 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
|
cannam@89
|
2216 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
|
cannam@89
|
2217 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
|
cannam@89
|
2218 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
2219 else
|
cannam@89
|
2220 cat >conftest.make <<\_ACEOF
|
cannam@89
|
2221 SHELL = /bin/sh
|
cannam@89
|
2222 all:
|
cannam@89
|
2223 @echo '@@@%%%=$(MAKE)=@@@%%%'
|
cannam@89
|
2224 _ACEOF
|
cannam@89
|
2225 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
cannam@89
|
2226 case `${MAKE-make} -f conftest.make 2>/dev/null` in
|
cannam@89
|
2227 *@@@%%%=?*=@@@%%%*)
|
cannam@89
|
2228 eval ac_cv_prog_make_${ac_make}_set=yes;;
|
cannam@89
|
2229 *)
|
cannam@89
|
2230 eval ac_cv_prog_make_${ac_make}_set=no;;
|
cannam@89
|
2231 esac
|
cannam@89
|
2232 rm -f conftest.make
|
cannam@89
|
2233 fi
|
cannam@89
|
2234 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
|
cannam@89
|
2235 { echo "$as_me:$LINENO: result: yes" >&5
|
cannam@89
|
2236 echo "${ECHO_T}yes" >&6; }
|
cannam@89
|
2237 SET_MAKE=
|
cannam@89
|
2238 else
|
cannam@89
|
2239 { echo "$as_me:$LINENO: result: no" >&5
|
cannam@89
|
2240 echo "${ECHO_T}no" >&6; }
|
cannam@89
|
2241 SET_MAKE="MAKE=${MAKE-make}"
|
cannam@89
|
2242 fi
|
cannam@89
|
2243
|
cannam@89
|
2244 rm -rf .tst 2>/dev/null
|
cannam@89
|
2245 mkdir .tst 2>/dev/null
|
cannam@89
|
2246 if test -d .tst; then
|
cannam@89
|
2247 am__leading_dot=.
|
cannam@89
|
2248 else
|
cannam@89
|
2249 am__leading_dot=_
|
cannam@89
|
2250 fi
|
cannam@89
|
2251 rmdir .tst 2>/dev/null
|
cannam@89
|
2252
|
cannam@89
|
2253 if test "`cd $srcdir && pwd`" != "`pwd`"; then
|
cannam@89
|
2254 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
|
cannam@89
|
2255 # is not polluted with repeated "-I."
|
cannam@89
|
2256 am__isrc=' -I$(srcdir)'
|
cannam@89
|
2257 # test to see if srcdir already configured
|
cannam@89
|
2258 if test -f $srcdir/config.status; then
|
cannam@89
|
2259 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
|
cannam@89
|
2260 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
|
cannam@89
|
2261 { (exit 1); exit 1; }; }
|
cannam@89
|
2262 fi
|
cannam@89
|
2263 fi
|
cannam@89
|
2264
|
cannam@89
|
2265 # test whether we have cygpath
|
cannam@89
|
2266 if test -z "$CYGPATH_W"; then
|
cannam@89
|
2267 if (cygpath --version) >/dev/null 2>/dev/null; then
|
cannam@89
|
2268 CYGPATH_W='cygpath -w'
|
cannam@89
|
2269 else
|
cannam@89
|
2270 CYGPATH_W=echo
|
cannam@89
|
2271 fi
|
cannam@89
|
2272 fi
|
cannam@89
|
2273
|
cannam@89
|
2274
|
cannam@89
|
2275 # Define the identity of the package.
|
cannam@89
|
2276 PACKAGE='liblo'
|
cannam@89
|
2277 VERSION='0.26'
|
cannam@89
|
2278
|
cannam@89
|
2279
|
cannam@89
|
2280 cat >>confdefs.h <<_ACEOF
|
cannam@89
|
2281 #define PACKAGE "$PACKAGE"
|
cannam@89
|
2282 _ACEOF
|
cannam@89
|
2283
|
cannam@89
|
2284
|
cannam@89
|
2285 cat >>confdefs.h <<_ACEOF
|
cannam@89
|
2286 #define VERSION "$VERSION"
|
cannam@89
|
2287 _ACEOF
|
cannam@89
|
2288
|
cannam@89
|
2289 # Some tools Automake needs.
|
cannam@89
|
2290
|
cannam@89
|
2291 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
|
cannam@89
|
2292
|
cannam@89
|
2293
|
cannam@89
|
2294 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
|
cannam@89
|
2295
|
cannam@89
|
2296
|
cannam@89
|
2297 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
|
cannam@89
|
2298
|
cannam@89
|
2299
|
cannam@89
|
2300 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
|
cannam@89
|
2301
|
cannam@89
|
2302
|
cannam@89
|
2303 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
|
cannam@89
|
2304
|
cannam@89
|
2305 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
|
cannam@89
|
2306
|
cannam@89
|
2307 # Installed binaries are usually stripped using `strip' when the user
|
cannam@89
|
2308 # run `make install-strip'. However `strip' might not be the right
|
cannam@89
|
2309 # tool to use in cross-compilation environments, therefore Automake
|
cannam@89
|
2310 # will honor the `STRIP' environment variable to overrule this program.
|
cannam@89
|
2311 if test "$cross_compiling" != no; then
|
cannam@89
|
2312 if test -n "$ac_tool_prefix"; then
|
cannam@89
|
2313 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
cannam@89
|
2314 set dummy ${ac_tool_prefix}strip; ac_word=$2
|
cannam@89
|
2315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@89
|
2316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
cannam@89
|
2317 if test "${ac_cv_prog_STRIP+set}" = set; then
|
cannam@89
|
2318 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
2319 else
|
cannam@89
|
2320 if test -n "$STRIP"; then
|
cannam@89
|
2321 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
cannam@89
|
2322 else
|
cannam@89
|
2323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@89
|
2324 for as_dir in $PATH
|
cannam@89
|
2325 do
|
cannam@89
|
2326 IFS=$as_save_IFS
|
cannam@89
|
2327 test -z "$as_dir" && as_dir=.
|
cannam@89
|
2328 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@89
|
2329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
cannam@89
|
2330 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
cannam@89
|
2331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@89
|
2332 break 2
|
cannam@89
|
2333 fi
|
cannam@89
|
2334 done
|
cannam@89
|
2335 done
|
cannam@89
|
2336 IFS=$as_save_IFS
|
cannam@89
|
2337
|
cannam@89
|
2338 fi
|
cannam@89
|
2339 fi
|
cannam@89
|
2340 STRIP=$ac_cv_prog_STRIP
|
cannam@89
|
2341 if test -n "$STRIP"; then
|
cannam@89
|
2342 { echo "$as_me:$LINENO: result: $STRIP" >&5
|
cannam@89
|
2343 echo "${ECHO_T}$STRIP" >&6; }
|
cannam@89
|
2344 else
|
cannam@89
|
2345 { echo "$as_me:$LINENO: result: no" >&5
|
cannam@89
|
2346 echo "${ECHO_T}no" >&6; }
|
cannam@89
|
2347 fi
|
cannam@89
|
2348
|
cannam@89
|
2349
|
cannam@89
|
2350 fi
|
cannam@89
|
2351 if test -z "$ac_cv_prog_STRIP"; then
|
cannam@89
|
2352 ac_ct_STRIP=$STRIP
|
cannam@89
|
2353 # Extract the first word of "strip", so it can be a program name with args.
|
cannam@89
|
2354 set dummy strip; ac_word=$2
|
cannam@89
|
2355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@89
|
2356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
cannam@89
|
2357 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
|
cannam@89
|
2358 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
2359 else
|
cannam@89
|
2360 if test -n "$ac_ct_STRIP"; then
|
cannam@89
|
2361 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
|
cannam@89
|
2362 else
|
cannam@89
|
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@89
|
2364 for as_dir in $PATH
|
cannam@89
|
2365 do
|
cannam@89
|
2366 IFS=$as_save_IFS
|
cannam@89
|
2367 test -z "$as_dir" && as_dir=.
|
cannam@89
|
2368 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@89
|
2369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
cannam@89
|
2370 ac_cv_prog_ac_ct_STRIP="strip"
|
cannam@89
|
2371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@89
|
2372 break 2
|
cannam@89
|
2373 fi
|
cannam@89
|
2374 done
|
cannam@89
|
2375 done
|
cannam@89
|
2376 IFS=$as_save_IFS
|
cannam@89
|
2377
|
cannam@89
|
2378 fi
|
cannam@89
|
2379 fi
|
cannam@89
|
2380 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
|
cannam@89
|
2381 if test -n "$ac_ct_STRIP"; then
|
cannam@89
|
2382 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
|
cannam@89
|
2383 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
|
cannam@89
|
2384 else
|
cannam@89
|
2385 { echo "$as_me:$LINENO: result: no" >&5
|
cannam@89
|
2386 echo "${ECHO_T}no" >&6; }
|
cannam@89
|
2387 fi
|
cannam@89
|
2388
|
cannam@89
|
2389 if test "x$ac_ct_STRIP" = x; then
|
cannam@89
|
2390 STRIP=":"
|
cannam@89
|
2391 else
|
cannam@89
|
2392 case $cross_compiling:$ac_tool_warned in
|
cannam@89
|
2393 yes:)
|
cannam@89
|
2394 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
cannam@89
|
2395 whose name does not start with the host triplet. If you think this
|
cannam@89
|
2396 configuration is useful to you, please write to autoconf@gnu.org." >&5
|
cannam@89
|
2397 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
cannam@89
|
2398 whose name does not start with the host triplet. If you think this
|
cannam@89
|
2399 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
cannam@89
|
2400 ac_tool_warned=yes ;;
|
cannam@89
|
2401 esac
|
cannam@89
|
2402 STRIP=$ac_ct_STRIP
|
cannam@89
|
2403 fi
|
cannam@89
|
2404 else
|
cannam@89
|
2405 STRIP="$ac_cv_prog_STRIP"
|
cannam@89
|
2406 fi
|
cannam@89
|
2407
|
cannam@89
|
2408 fi
|
cannam@89
|
2409 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
|
cannam@89
|
2410
|
cannam@89
|
2411 # We need awk for the "check" target. The system "awk" is bad on
|
cannam@89
|
2412 # some platforms.
|
cannam@89
|
2413 # Always define AMTAR for backward compatibility.
|
cannam@89
|
2414
|
cannam@89
|
2415 AMTAR=${AMTAR-"${am_missing_run}tar"}
|
cannam@89
|
2416
|
cannam@89
|
2417 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
|
cannam@89
|
2418
|
cannam@89
|
2419
|
cannam@89
|
2420
|
cannam@89
|
2421
|
cannam@89
|
2422
|
cannam@89
|
2423
|
cannam@89
|
2424 # Check whether --enable-static was given.
|
cannam@89
|
2425 if test "${enable_static+set}" = set; then
|
cannam@89
|
2426 enableval=$enable_static; p=${PACKAGE-default}
|
cannam@89
|
2427 case $enableval in
|
cannam@89
|
2428 yes) enable_static=yes ;;
|
cannam@89
|
2429 no) enable_static=no ;;
|
cannam@89
|
2430 *)
|
cannam@89
|
2431 enable_static=no
|
cannam@89
|
2432 # Look at the argument we got. We use all the common list separators.
|
cannam@89
|
2433 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
cannam@89
|
2434 for pkg in $enableval; do
|
cannam@89
|
2435 IFS="$lt_save_ifs"
|
cannam@89
|
2436 if test "X$pkg" = "X$p"; then
|
cannam@89
|
2437 enable_static=yes
|
cannam@89
|
2438 fi
|
cannam@89
|
2439 done
|
cannam@89
|
2440 IFS="$lt_save_ifs"
|
cannam@89
|
2441 ;;
|
cannam@89
|
2442 esac
|
cannam@89
|
2443 else
|
cannam@89
|
2444 enable_static=no
|
cannam@89
|
2445 fi
|
cannam@89
|
2446
|
cannam@89
|
2447
|
cannam@89
|
2448
|
cannam@89
|
2449
|
cannam@89
|
2450
|
cannam@89
|
2451
|
cannam@89
|
2452
|
cannam@89
|
2453
|
cannam@89
|
2454
|
cannam@89
|
2455 # Check whether --enable-shared was given.
|
cannam@89
|
2456 if test "${enable_shared+set}" = set; then
|
cannam@89
|
2457 enableval=$enable_shared; p=${PACKAGE-default}
|
cannam@89
|
2458 case $enableval in
|
cannam@89
|
2459 yes) enable_shared=yes ;;
|
cannam@89
|
2460 no) enable_shared=no ;;
|
cannam@89
|
2461 *)
|
cannam@89
|
2462 enable_shared=no
|
cannam@89
|
2463 # Look at the argument we got. We use all the common list separators.
|
cannam@89
|
2464 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
cannam@89
|
2465 for pkg in $enableval; do
|
cannam@89
|
2466 IFS="$lt_save_ifs"
|
cannam@89
|
2467 if test "X$pkg" = "X$p"; then
|
cannam@89
|
2468 enable_shared=yes
|
cannam@89
|
2469 fi
|
cannam@89
|
2470 done
|
cannam@89
|
2471 IFS="$lt_save_ifs"
|
cannam@89
|
2472 ;;
|
cannam@89
|
2473 esac
|
cannam@89
|
2474 else
|
cannam@89
|
2475 enable_shared=yes
|
cannam@89
|
2476 fi
|
cannam@89
|
2477
|
cannam@89
|
2478
|
cannam@89
|
2479
|
cannam@89
|
2480
|
cannam@89
|
2481
|
cannam@89
|
2482
|
cannam@89
|
2483
|
cannam@89
|
2484
|
cannam@89
|
2485
|
cannam@89
|
2486
|
cannam@89
|
2487
|
cannam@89
|
2488 # disable support for ipv6.
|
cannam@89
|
2489 # Check whether --enable-ipv6 was given.
|
cannam@89
|
2490 if test "${enable_ipv6+set}" = set; then
|
cannam@89
|
2491 enableval=$enable_ipv6; want_ipv6=yes
|
cannam@89
|
2492 fi
|
cannam@89
|
2493
|
cannam@89
|
2494 if test "$want_ipv6" = "yes"; then
|
cannam@89
|
2495
|
cannam@89
|
2496 cat >>confdefs.h <<\_ACEOF
|
cannam@89
|
2497 #define ENABLE_IPV6 1
|
cannam@89
|
2498 _ACEOF
|
cannam@89
|
2499
|
cannam@89
|
2500 fi
|
cannam@89
|
2501
|
cannam@89
|
2502 # Checks for programs.
|
cannam@89
|
2503 ac_ext=c
|
cannam@89
|
2504 ac_cpp='$CPP $CPPFLAGS'
|
cannam@89
|
2505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
cannam@89
|
2506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
cannam@89
|
2507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
cannam@89
|
2508 if test -n "$ac_tool_prefix"; then
|
cannam@89
|
2509 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
cannam@89
|
2510 set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
cannam@89
|
2511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@89
|
2512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
cannam@89
|
2513 if test "${ac_cv_prog_CC+set}" = set; then
|
cannam@89
|
2514 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
2515 else
|
cannam@89
|
2516 if test -n "$CC"; then
|
cannam@89
|
2517 ac_cv_prog_CC="$CC" # Let the user override the test.
|
cannam@89
|
2518 else
|
cannam@89
|
2519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@89
|
2520 for as_dir in $PATH
|
cannam@89
|
2521 do
|
cannam@89
|
2522 IFS=$as_save_IFS
|
cannam@89
|
2523 test -z "$as_dir" && as_dir=.
|
cannam@89
|
2524 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@89
|
2525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
cannam@89
|
2526 ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
cannam@89
|
2527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@89
|
2528 break 2
|
cannam@89
|
2529 fi
|
cannam@89
|
2530 done
|
cannam@89
|
2531 done
|
cannam@89
|
2532 IFS=$as_save_IFS
|
cannam@89
|
2533
|
cannam@89
|
2534 fi
|
cannam@89
|
2535 fi
|
cannam@89
|
2536 CC=$ac_cv_prog_CC
|
cannam@89
|
2537 if test -n "$CC"; then
|
cannam@89
|
2538 { echo "$as_me:$LINENO: result: $CC" >&5
|
cannam@89
|
2539 echo "${ECHO_T}$CC" >&6; }
|
cannam@89
|
2540 else
|
cannam@89
|
2541 { echo "$as_me:$LINENO: result: no" >&5
|
cannam@89
|
2542 echo "${ECHO_T}no" >&6; }
|
cannam@89
|
2543 fi
|
cannam@89
|
2544
|
cannam@89
|
2545
|
cannam@89
|
2546 fi
|
cannam@89
|
2547 if test -z "$ac_cv_prog_CC"; then
|
cannam@89
|
2548 ac_ct_CC=$CC
|
cannam@89
|
2549 # Extract the first word of "gcc", so it can be a program name with args.
|
cannam@89
|
2550 set dummy gcc; ac_word=$2
|
cannam@89
|
2551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@89
|
2552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
cannam@89
|
2553 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
cannam@89
|
2554 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
2555 else
|
cannam@89
|
2556 if test -n "$ac_ct_CC"; then
|
cannam@89
|
2557 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
cannam@89
|
2558 else
|
cannam@89
|
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@89
|
2560 for as_dir in $PATH
|
cannam@89
|
2561 do
|
cannam@89
|
2562 IFS=$as_save_IFS
|
cannam@89
|
2563 test -z "$as_dir" && as_dir=.
|
cannam@89
|
2564 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@89
|
2565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
cannam@89
|
2566 ac_cv_prog_ac_ct_CC="gcc"
|
cannam@89
|
2567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@89
|
2568 break 2
|
cannam@89
|
2569 fi
|
cannam@89
|
2570 done
|
cannam@89
|
2571 done
|
cannam@89
|
2572 IFS=$as_save_IFS
|
cannam@89
|
2573
|
cannam@89
|
2574 fi
|
cannam@89
|
2575 fi
|
cannam@89
|
2576 ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
cannam@89
|
2577 if test -n "$ac_ct_CC"; then
|
cannam@89
|
2578 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
cannam@89
|
2579 echo "${ECHO_T}$ac_ct_CC" >&6; }
|
cannam@89
|
2580 else
|
cannam@89
|
2581 { echo "$as_me:$LINENO: result: no" >&5
|
cannam@89
|
2582 echo "${ECHO_T}no" >&6; }
|
cannam@89
|
2583 fi
|
cannam@89
|
2584
|
cannam@89
|
2585 if test "x$ac_ct_CC" = x; then
|
cannam@89
|
2586 CC=""
|
cannam@89
|
2587 else
|
cannam@89
|
2588 case $cross_compiling:$ac_tool_warned in
|
cannam@89
|
2589 yes:)
|
cannam@89
|
2590 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
cannam@89
|
2591 whose name does not start with the host triplet. If you think this
|
cannam@89
|
2592 configuration is useful to you, please write to autoconf@gnu.org." >&5
|
cannam@89
|
2593 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
cannam@89
|
2594 whose name does not start with the host triplet. If you think this
|
cannam@89
|
2595 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
cannam@89
|
2596 ac_tool_warned=yes ;;
|
cannam@89
|
2597 esac
|
cannam@89
|
2598 CC=$ac_ct_CC
|
cannam@89
|
2599 fi
|
cannam@89
|
2600 else
|
cannam@89
|
2601 CC="$ac_cv_prog_CC"
|
cannam@89
|
2602 fi
|
cannam@89
|
2603
|
cannam@89
|
2604 if test -z "$CC"; then
|
cannam@89
|
2605 if test -n "$ac_tool_prefix"; then
|
cannam@89
|
2606 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
cannam@89
|
2607 set dummy ${ac_tool_prefix}cc; ac_word=$2
|
cannam@89
|
2608 { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@89
|
2609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
cannam@89
|
2610 if test "${ac_cv_prog_CC+set}" = set; then
|
cannam@89
|
2611 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
2612 else
|
cannam@89
|
2613 if test -n "$CC"; then
|
cannam@89
|
2614 ac_cv_prog_CC="$CC" # Let the user override the test.
|
cannam@89
|
2615 else
|
cannam@89
|
2616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@89
|
2617 for as_dir in $PATH
|
cannam@89
|
2618 do
|
cannam@89
|
2619 IFS=$as_save_IFS
|
cannam@89
|
2620 test -z "$as_dir" && as_dir=.
|
cannam@89
|
2621 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@89
|
2622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
cannam@89
|
2623 ac_cv_prog_CC="${ac_tool_prefix}cc"
|
cannam@89
|
2624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@89
|
2625 break 2
|
cannam@89
|
2626 fi
|
cannam@89
|
2627 done
|
cannam@89
|
2628 done
|
cannam@89
|
2629 IFS=$as_save_IFS
|
cannam@89
|
2630
|
cannam@89
|
2631 fi
|
cannam@89
|
2632 fi
|
cannam@89
|
2633 CC=$ac_cv_prog_CC
|
cannam@89
|
2634 if test -n "$CC"; then
|
cannam@89
|
2635 { echo "$as_me:$LINENO: result: $CC" >&5
|
cannam@89
|
2636 echo "${ECHO_T}$CC" >&6; }
|
cannam@89
|
2637 else
|
cannam@89
|
2638 { echo "$as_me:$LINENO: result: no" >&5
|
cannam@89
|
2639 echo "${ECHO_T}no" >&6; }
|
cannam@89
|
2640 fi
|
cannam@89
|
2641
|
cannam@89
|
2642
|
cannam@89
|
2643 fi
|
cannam@89
|
2644 fi
|
cannam@89
|
2645 if test -z "$CC"; then
|
cannam@89
|
2646 # Extract the first word of "cc", so it can be a program name with args.
|
cannam@89
|
2647 set dummy cc; ac_word=$2
|
cannam@89
|
2648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@89
|
2649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
cannam@89
|
2650 if test "${ac_cv_prog_CC+set}" = set; then
|
cannam@89
|
2651 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
2652 else
|
cannam@89
|
2653 if test -n "$CC"; then
|
cannam@89
|
2654 ac_cv_prog_CC="$CC" # Let the user override the test.
|
cannam@89
|
2655 else
|
cannam@89
|
2656 ac_prog_rejected=no
|
cannam@89
|
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@89
|
2658 for as_dir in $PATH
|
cannam@89
|
2659 do
|
cannam@89
|
2660 IFS=$as_save_IFS
|
cannam@89
|
2661 test -z "$as_dir" && as_dir=.
|
cannam@89
|
2662 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@89
|
2663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
cannam@89
|
2664 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
cannam@89
|
2665 ac_prog_rejected=yes
|
cannam@89
|
2666 continue
|
cannam@89
|
2667 fi
|
cannam@89
|
2668 ac_cv_prog_CC="cc"
|
cannam@89
|
2669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@89
|
2670 break 2
|
cannam@89
|
2671 fi
|
cannam@89
|
2672 done
|
cannam@89
|
2673 done
|
cannam@89
|
2674 IFS=$as_save_IFS
|
cannam@89
|
2675
|
cannam@89
|
2676 if test $ac_prog_rejected = yes; then
|
cannam@89
|
2677 # We found a bogon in the path, so make sure we never use it.
|
cannam@89
|
2678 set dummy $ac_cv_prog_CC
|
cannam@89
|
2679 shift
|
cannam@89
|
2680 if test $# != 0; then
|
cannam@89
|
2681 # We chose a different compiler from the bogus one.
|
cannam@89
|
2682 # However, it has the same basename, so the bogon will be chosen
|
cannam@89
|
2683 # first if we set CC to just the basename; use the full file name.
|
cannam@89
|
2684 shift
|
cannam@89
|
2685 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
cannam@89
|
2686 fi
|
cannam@89
|
2687 fi
|
cannam@89
|
2688 fi
|
cannam@89
|
2689 fi
|
cannam@89
|
2690 CC=$ac_cv_prog_CC
|
cannam@89
|
2691 if test -n "$CC"; then
|
cannam@89
|
2692 { echo "$as_me:$LINENO: result: $CC" >&5
|
cannam@89
|
2693 echo "${ECHO_T}$CC" >&6; }
|
cannam@89
|
2694 else
|
cannam@89
|
2695 { echo "$as_me:$LINENO: result: no" >&5
|
cannam@89
|
2696 echo "${ECHO_T}no" >&6; }
|
cannam@89
|
2697 fi
|
cannam@89
|
2698
|
cannam@89
|
2699
|
cannam@89
|
2700 fi
|
cannam@89
|
2701 if test -z "$CC"; then
|
cannam@89
|
2702 if test -n "$ac_tool_prefix"; then
|
cannam@89
|
2703 for ac_prog in cl.exe
|
cannam@89
|
2704 do
|
cannam@89
|
2705 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
cannam@89
|
2706 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
cannam@89
|
2707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@89
|
2708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
cannam@89
|
2709 if test "${ac_cv_prog_CC+set}" = set; then
|
cannam@89
|
2710 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
2711 else
|
cannam@89
|
2712 if test -n "$CC"; then
|
cannam@89
|
2713 ac_cv_prog_CC="$CC" # Let the user override the test.
|
cannam@89
|
2714 else
|
cannam@89
|
2715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@89
|
2716 for as_dir in $PATH
|
cannam@89
|
2717 do
|
cannam@89
|
2718 IFS=$as_save_IFS
|
cannam@89
|
2719 test -z "$as_dir" && as_dir=.
|
cannam@89
|
2720 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@89
|
2721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
cannam@89
|
2722 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
cannam@89
|
2723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@89
|
2724 break 2
|
cannam@89
|
2725 fi
|
cannam@89
|
2726 done
|
cannam@89
|
2727 done
|
cannam@89
|
2728 IFS=$as_save_IFS
|
cannam@89
|
2729
|
cannam@89
|
2730 fi
|
cannam@89
|
2731 fi
|
cannam@89
|
2732 CC=$ac_cv_prog_CC
|
cannam@89
|
2733 if test -n "$CC"; then
|
cannam@89
|
2734 { echo "$as_me:$LINENO: result: $CC" >&5
|
cannam@89
|
2735 echo "${ECHO_T}$CC" >&6; }
|
cannam@89
|
2736 else
|
cannam@89
|
2737 { echo "$as_me:$LINENO: result: no" >&5
|
cannam@89
|
2738 echo "${ECHO_T}no" >&6; }
|
cannam@89
|
2739 fi
|
cannam@89
|
2740
|
cannam@89
|
2741
|
cannam@89
|
2742 test -n "$CC" && break
|
cannam@89
|
2743 done
|
cannam@89
|
2744 fi
|
cannam@89
|
2745 if test -z "$CC"; then
|
cannam@89
|
2746 ac_ct_CC=$CC
|
cannam@89
|
2747 for ac_prog in cl.exe
|
cannam@89
|
2748 do
|
cannam@89
|
2749 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
cannam@89
|
2750 set dummy $ac_prog; ac_word=$2
|
cannam@89
|
2751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@89
|
2752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
cannam@89
|
2753 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
cannam@89
|
2754 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
2755 else
|
cannam@89
|
2756 if test -n "$ac_ct_CC"; then
|
cannam@89
|
2757 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
cannam@89
|
2758 else
|
cannam@89
|
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@89
|
2760 for as_dir in $PATH
|
cannam@89
|
2761 do
|
cannam@89
|
2762 IFS=$as_save_IFS
|
cannam@89
|
2763 test -z "$as_dir" && as_dir=.
|
cannam@89
|
2764 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@89
|
2765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
cannam@89
|
2766 ac_cv_prog_ac_ct_CC="$ac_prog"
|
cannam@89
|
2767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@89
|
2768 break 2
|
cannam@89
|
2769 fi
|
cannam@89
|
2770 done
|
cannam@89
|
2771 done
|
cannam@89
|
2772 IFS=$as_save_IFS
|
cannam@89
|
2773
|
cannam@89
|
2774 fi
|
cannam@89
|
2775 fi
|
cannam@89
|
2776 ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
cannam@89
|
2777 if test -n "$ac_ct_CC"; then
|
cannam@89
|
2778 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
cannam@89
|
2779 echo "${ECHO_T}$ac_ct_CC" >&6; }
|
cannam@89
|
2780 else
|
cannam@89
|
2781 { echo "$as_me:$LINENO: result: no" >&5
|
cannam@89
|
2782 echo "${ECHO_T}no" >&6; }
|
cannam@89
|
2783 fi
|
cannam@89
|
2784
|
cannam@89
|
2785
|
cannam@89
|
2786 test -n "$ac_ct_CC" && break
|
cannam@89
|
2787 done
|
cannam@89
|
2788
|
cannam@89
|
2789 if test "x$ac_ct_CC" = x; then
|
cannam@89
|
2790 CC=""
|
cannam@89
|
2791 else
|
cannam@89
|
2792 case $cross_compiling:$ac_tool_warned in
|
cannam@89
|
2793 yes:)
|
cannam@89
|
2794 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
cannam@89
|
2795 whose name does not start with the host triplet. If you think this
|
cannam@89
|
2796 configuration is useful to you, please write to autoconf@gnu.org." >&5
|
cannam@89
|
2797 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
cannam@89
|
2798 whose name does not start with the host triplet. If you think this
|
cannam@89
|
2799 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
cannam@89
|
2800 ac_tool_warned=yes ;;
|
cannam@89
|
2801 esac
|
cannam@89
|
2802 CC=$ac_ct_CC
|
cannam@89
|
2803 fi
|
cannam@89
|
2804 fi
|
cannam@89
|
2805
|
cannam@89
|
2806 fi
|
cannam@89
|
2807
|
cannam@89
|
2808
|
cannam@89
|
2809 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
cannam@89
|
2810 See \`config.log' for more details." >&5
|
cannam@89
|
2811 echo "$as_me: error: no acceptable C compiler found in \$PATH
|
cannam@89
|
2812 See \`config.log' for more details." >&2;}
|
cannam@89
|
2813 { (exit 1); exit 1; }; }
|
cannam@89
|
2814
|
cannam@89
|
2815 # Provide some information about the compiler.
|
cannam@89
|
2816 echo "$as_me:$LINENO: checking for C compiler version" >&5
|
cannam@89
|
2817 ac_compiler=`set X $ac_compile; echo $2`
|
cannam@89
|
2818 { (ac_try="$ac_compiler --version >&5"
|
cannam@89
|
2819 case "(($ac_try" in
|
cannam@89
|
2820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
2821 *) ac_try_echo=$ac_try;;
|
cannam@89
|
2822 esac
|
cannam@89
|
2823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
2824 (eval "$ac_compiler --version >&5") 2>&5
|
cannam@89
|
2825 ac_status=$?
|
cannam@89
|
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
2827 (exit $ac_status); }
|
cannam@89
|
2828 { (ac_try="$ac_compiler -v >&5"
|
cannam@89
|
2829 case "(($ac_try" in
|
cannam@89
|
2830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
2831 *) ac_try_echo=$ac_try;;
|
cannam@89
|
2832 esac
|
cannam@89
|
2833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
2834 (eval "$ac_compiler -v >&5") 2>&5
|
cannam@89
|
2835 ac_status=$?
|
cannam@89
|
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
2837 (exit $ac_status); }
|
cannam@89
|
2838 { (ac_try="$ac_compiler -V >&5"
|
cannam@89
|
2839 case "(($ac_try" in
|
cannam@89
|
2840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
2841 *) ac_try_echo=$ac_try;;
|
cannam@89
|
2842 esac
|
cannam@89
|
2843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
2844 (eval "$ac_compiler -V >&5") 2>&5
|
cannam@89
|
2845 ac_status=$?
|
cannam@89
|
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
2847 (exit $ac_status); }
|
cannam@89
|
2848
|
cannam@89
|
2849 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
2850 /* confdefs.h. */
|
cannam@89
|
2851 _ACEOF
|
cannam@89
|
2852 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
2853 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
2854 /* end confdefs.h. */
|
cannam@89
|
2855
|
cannam@89
|
2856 int
|
cannam@89
|
2857 main ()
|
cannam@89
|
2858 {
|
cannam@89
|
2859
|
cannam@89
|
2860 ;
|
cannam@89
|
2861 return 0;
|
cannam@89
|
2862 }
|
cannam@89
|
2863 _ACEOF
|
cannam@89
|
2864 ac_clean_files_save=$ac_clean_files
|
cannam@89
|
2865 ac_clean_files="$ac_clean_files a.out a.exe b.out"
|
cannam@89
|
2866 # Try to create an executable without -o first, disregard a.out.
|
cannam@89
|
2867 # It will help us diagnose broken compilers, and finding out an intuition
|
cannam@89
|
2868 # of exeext.
|
cannam@89
|
2869 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
|
cannam@89
|
2870 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
|
cannam@89
|
2871 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
cannam@89
|
2872 #
|
cannam@89
|
2873 # List of possible output files, starting from the most likely.
|
cannam@89
|
2874 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
|
cannam@89
|
2875 # only as a last resort. b.out is created by i960 compilers.
|
cannam@89
|
2876 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
|
cannam@89
|
2877 #
|
cannam@89
|
2878 # The IRIX 6 linker writes into existing files which may not be
|
cannam@89
|
2879 # executable, retaining their permissions. Remove them first so a
|
cannam@89
|
2880 # subsequent execution test works.
|
cannam@89
|
2881 ac_rmfiles=
|
cannam@89
|
2882 for ac_file in $ac_files
|
cannam@89
|
2883 do
|
cannam@89
|
2884 case $ac_file in
|
cannam@89
|
2885 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
|
cannam@89
|
2886 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
|
cannam@89
|
2887 esac
|
cannam@89
|
2888 done
|
cannam@89
|
2889 rm -f $ac_rmfiles
|
cannam@89
|
2890
|
cannam@89
|
2891 if { (ac_try="$ac_link_default"
|
cannam@89
|
2892 case "(($ac_try" in
|
cannam@89
|
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
2894 *) ac_try_echo=$ac_try;;
|
cannam@89
|
2895 esac
|
cannam@89
|
2896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
2897 (eval "$ac_link_default") 2>&5
|
cannam@89
|
2898 ac_status=$?
|
cannam@89
|
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
2900 (exit $ac_status); }; then
|
cannam@89
|
2901 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
|
cannam@89
|
2902 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
|
cannam@89
|
2903 # in a Makefile. We should not override ac_cv_exeext if it was cached,
|
cannam@89
|
2904 # so that the user can short-circuit this test for compilers unknown to
|
cannam@89
|
2905 # Autoconf.
|
cannam@89
|
2906 for ac_file in $ac_files ''
|
cannam@89
|
2907 do
|
cannam@89
|
2908 test -f "$ac_file" || continue
|
cannam@89
|
2909 case $ac_file in
|
cannam@89
|
2910 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
|
cannam@89
|
2911 ;;
|
cannam@89
|
2912 [ab].out )
|
cannam@89
|
2913 # We found the default executable, but exeext='' is most
|
cannam@89
|
2914 # certainly right.
|
cannam@89
|
2915 break;;
|
cannam@89
|
2916 *.* )
|
cannam@89
|
2917 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
|
cannam@89
|
2918 then :; else
|
cannam@89
|
2919 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
cannam@89
|
2920 fi
|
cannam@89
|
2921 # We set ac_cv_exeext here because the later test for it is not
|
cannam@89
|
2922 # safe: cross compilers may not add the suffix if given an `-o'
|
cannam@89
|
2923 # argument, so we may need to know it at that point already.
|
cannam@89
|
2924 # Even if this section looks crufty: it has the advantage of
|
cannam@89
|
2925 # actually working.
|
cannam@89
|
2926 break;;
|
cannam@89
|
2927 * )
|
cannam@89
|
2928 break;;
|
cannam@89
|
2929 esac
|
cannam@89
|
2930 done
|
cannam@89
|
2931 test "$ac_cv_exeext" = no && ac_cv_exeext=
|
cannam@89
|
2932
|
cannam@89
|
2933 else
|
cannam@89
|
2934 ac_file=''
|
cannam@89
|
2935 fi
|
cannam@89
|
2936
|
cannam@89
|
2937 { echo "$as_me:$LINENO: result: $ac_file" >&5
|
cannam@89
|
2938 echo "${ECHO_T}$ac_file" >&6; }
|
cannam@89
|
2939 if test -z "$ac_file"; then
|
cannam@89
|
2940 echo "$as_me: failed program was:" >&5
|
cannam@89
|
2941 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@89
|
2942
|
cannam@89
|
2943 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
|
cannam@89
|
2944 See \`config.log' for more details." >&5
|
cannam@89
|
2945 echo "$as_me: error: C compiler cannot create executables
|
cannam@89
|
2946 See \`config.log' for more details." >&2;}
|
cannam@89
|
2947 { (exit 77); exit 77; }; }
|
cannam@89
|
2948 fi
|
cannam@89
|
2949
|
cannam@89
|
2950 ac_exeext=$ac_cv_exeext
|
cannam@89
|
2951
|
cannam@89
|
2952 # Check that the compiler produces executables we can run. If not, either
|
cannam@89
|
2953 # the compiler is broken, or we cross compile.
|
cannam@89
|
2954 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
|
cannam@89
|
2955 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
|
cannam@89
|
2956 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
|
cannam@89
|
2957 # If not cross compiling, check that we can run a simple program.
|
cannam@89
|
2958 if test "$cross_compiling" != yes; then
|
cannam@89
|
2959 if { ac_try='./$ac_file'
|
cannam@89
|
2960 { (case "(($ac_try" in
|
cannam@89
|
2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
2962 *) ac_try_echo=$ac_try;;
|
cannam@89
|
2963 esac
|
cannam@89
|
2964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
2965 (eval "$ac_try") 2>&5
|
cannam@89
|
2966 ac_status=$?
|
cannam@89
|
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
2968 (exit $ac_status); }; }; then
|
cannam@89
|
2969 cross_compiling=no
|
cannam@89
|
2970 else
|
cannam@89
|
2971 if test "$cross_compiling" = maybe; then
|
cannam@89
|
2972 cross_compiling=yes
|
cannam@89
|
2973 else
|
cannam@89
|
2974 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
|
cannam@89
|
2975 If you meant to cross compile, use \`--host'.
|
cannam@89
|
2976 See \`config.log' for more details." >&5
|
cannam@89
|
2977 echo "$as_me: error: cannot run C compiled programs.
|
cannam@89
|
2978 If you meant to cross compile, use \`--host'.
|
cannam@89
|
2979 See \`config.log' for more details." >&2;}
|
cannam@89
|
2980 { (exit 1); exit 1; }; }
|
cannam@89
|
2981 fi
|
cannam@89
|
2982 fi
|
cannam@89
|
2983 fi
|
cannam@89
|
2984 { echo "$as_me:$LINENO: result: yes" >&5
|
cannam@89
|
2985 echo "${ECHO_T}yes" >&6; }
|
cannam@89
|
2986
|
cannam@89
|
2987 rm -f a.out a.exe conftest$ac_cv_exeext b.out
|
cannam@89
|
2988 ac_clean_files=$ac_clean_files_save
|
cannam@89
|
2989 # Check that the compiler produces executables we can run. If not, either
|
cannam@89
|
2990 # the compiler is broken, or we cross compile.
|
cannam@89
|
2991 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
|
cannam@89
|
2992 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
|
cannam@89
|
2993 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
|
cannam@89
|
2994 echo "${ECHO_T}$cross_compiling" >&6; }
|
cannam@89
|
2995
|
cannam@89
|
2996 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
|
cannam@89
|
2997 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
|
cannam@89
|
2998 if { (ac_try="$ac_link"
|
cannam@89
|
2999 case "(($ac_try" in
|
cannam@89
|
3000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
3001 *) ac_try_echo=$ac_try;;
|
cannam@89
|
3002 esac
|
cannam@89
|
3003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
3004 (eval "$ac_link") 2>&5
|
cannam@89
|
3005 ac_status=$?
|
cannam@89
|
3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
3007 (exit $ac_status); }; then
|
cannam@89
|
3008 # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
cannam@89
|
3009 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
cannam@89
|
3010 # work properly (i.e., refer to `conftest.exe'), while it won't with
|
cannam@89
|
3011 # `rm'.
|
cannam@89
|
3012 for ac_file in conftest.exe conftest conftest.*; do
|
cannam@89
|
3013 test -f "$ac_file" || continue
|
cannam@89
|
3014 case $ac_file in
|
cannam@89
|
3015 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
|
cannam@89
|
3016 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
cannam@89
|
3017 break;;
|
cannam@89
|
3018 * ) break;;
|
cannam@89
|
3019 esac
|
cannam@89
|
3020 done
|
cannam@89
|
3021 else
|
cannam@89
|
3022 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
|
cannam@89
|
3023 See \`config.log' for more details." >&5
|
cannam@89
|
3024 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
|
cannam@89
|
3025 See \`config.log' for more details." >&2;}
|
cannam@89
|
3026 { (exit 1); exit 1; }; }
|
cannam@89
|
3027 fi
|
cannam@89
|
3028
|
cannam@89
|
3029 rm -f conftest$ac_cv_exeext
|
cannam@89
|
3030 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
|
cannam@89
|
3031 echo "${ECHO_T}$ac_cv_exeext" >&6; }
|
cannam@89
|
3032
|
cannam@89
|
3033 rm -f conftest.$ac_ext
|
cannam@89
|
3034 EXEEXT=$ac_cv_exeext
|
cannam@89
|
3035 ac_exeext=$EXEEXT
|
cannam@89
|
3036 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
|
cannam@89
|
3037 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
|
cannam@89
|
3038 if test "${ac_cv_objext+set}" = set; then
|
cannam@89
|
3039 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
3040 else
|
cannam@89
|
3041 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
3042 /* confdefs.h. */
|
cannam@89
|
3043 _ACEOF
|
cannam@89
|
3044 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
3045 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
3046 /* end confdefs.h. */
|
cannam@89
|
3047
|
cannam@89
|
3048 int
|
cannam@89
|
3049 main ()
|
cannam@89
|
3050 {
|
cannam@89
|
3051
|
cannam@89
|
3052 ;
|
cannam@89
|
3053 return 0;
|
cannam@89
|
3054 }
|
cannam@89
|
3055 _ACEOF
|
cannam@89
|
3056 rm -f conftest.o conftest.obj
|
cannam@89
|
3057 if { (ac_try="$ac_compile"
|
cannam@89
|
3058 case "(($ac_try" in
|
cannam@89
|
3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
3060 *) ac_try_echo=$ac_try;;
|
cannam@89
|
3061 esac
|
cannam@89
|
3062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
3063 (eval "$ac_compile") 2>&5
|
cannam@89
|
3064 ac_status=$?
|
cannam@89
|
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
3066 (exit $ac_status); }; then
|
cannam@89
|
3067 for ac_file in conftest.o conftest.obj conftest.*; do
|
cannam@89
|
3068 test -f "$ac_file" || continue;
|
cannam@89
|
3069 case $ac_file in
|
cannam@89
|
3070 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
|
cannam@89
|
3071 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
cannam@89
|
3072 break;;
|
cannam@89
|
3073 esac
|
cannam@89
|
3074 done
|
cannam@89
|
3075 else
|
cannam@89
|
3076 echo "$as_me: failed program was:" >&5
|
cannam@89
|
3077 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@89
|
3078
|
cannam@89
|
3079 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
|
cannam@89
|
3080 See \`config.log' for more details." >&5
|
cannam@89
|
3081 echo "$as_me: error: cannot compute suffix of object files: cannot compile
|
cannam@89
|
3082 See \`config.log' for more details." >&2;}
|
cannam@89
|
3083 { (exit 1); exit 1; }; }
|
cannam@89
|
3084 fi
|
cannam@89
|
3085
|
cannam@89
|
3086 rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
cannam@89
|
3087 fi
|
cannam@89
|
3088 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
|
cannam@89
|
3089 echo "${ECHO_T}$ac_cv_objext" >&6; }
|
cannam@89
|
3090 OBJEXT=$ac_cv_objext
|
cannam@89
|
3091 ac_objext=$OBJEXT
|
cannam@89
|
3092 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
cannam@89
|
3093 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
|
cannam@89
|
3094 if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
cannam@89
|
3095 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
3096 else
|
cannam@89
|
3097 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
3098 /* confdefs.h. */
|
cannam@89
|
3099 _ACEOF
|
cannam@89
|
3100 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
3101 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
3102 /* end confdefs.h. */
|
cannam@89
|
3103
|
cannam@89
|
3104 int
|
cannam@89
|
3105 main ()
|
cannam@89
|
3106 {
|
cannam@89
|
3107 #ifndef __GNUC__
|
cannam@89
|
3108 choke me
|
cannam@89
|
3109 #endif
|
cannam@89
|
3110
|
cannam@89
|
3111 ;
|
cannam@89
|
3112 return 0;
|
cannam@89
|
3113 }
|
cannam@89
|
3114 _ACEOF
|
cannam@89
|
3115 rm -f conftest.$ac_objext
|
cannam@89
|
3116 if { (ac_try="$ac_compile"
|
cannam@89
|
3117 case "(($ac_try" in
|
cannam@89
|
3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
3119 *) ac_try_echo=$ac_try;;
|
cannam@89
|
3120 esac
|
cannam@89
|
3121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
3122 (eval "$ac_compile") 2>conftest.er1
|
cannam@89
|
3123 ac_status=$?
|
cannam@89
|
3124 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@89
|
3125 rm -f conftest.er1
|
cannam@89
|
3126 cat conftest.err >&5
|
cannam@89
|
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
3128 (exit $ac_status); } && {
|
cannam@89
|
3129 test -z "$ac_c_werror_flag" ||
|
cannam@89
|
3130 test ! -s conftest.err
|
cannam@89
|
3131 } && test -s conftest.$ac_objext; then
|
cannam@89
|
3132 ac_compiler_gnu=yes
|
cannam@89
|
3133 else
|
cannam@89
|
3134 echo "$as_me: failed program was:" >&5
|
cannam@89
|
3135 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@89
|
3136
|
cannam@89
|
3137 ac_compiler_gnu=no
|
cannam@89
|
3138 fi
|
cannam@89
|
3139
|
cannam@89
|
3140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@89
|
3141 ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
cannam@89
|
3142
|
cannam@89
|
3143 fi
|
cannam@89
|
3144 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
cannam@89
|
3145 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
|
cannam@89
|
3146 GCC=`test $ac_compiler_gnu = yes && echo yes`
|
cannam@89
|
3147 ac_test_CFLAGS=${CFLAGS+set}
|
cannam@89
|
3148 ac_save_CFLAGS=$CFLAGS
|
cannam@89
|
3149 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
cannam@89
|
3150 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
|
cannam@89
|
3151 if test "${ac_cv_prog_cc_g+set}" = set; then
|
cannam@89
|
3152 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
3153 else
|
cannam@89
|
3154 ac_save_c_werror_flag=$ac_c_werror_flag
|
cannam@89
|
3155 ac_c_werror_flag=yes
|
cannam@89
|
3156 ac_cv_prog_cc_g=no
|
cannam@89
|
3157 CFLAGS="-g"
|
cannam@89
|
3158 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
3159 /* confdefs.h. */
|
cannam@89
|
3160 _ACEOF
|
cannam@89
|
3161 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
3162 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
3163 /* end confdefs.h. */
|
cannam@89
|
3164
|
cannam@89
|
3165 int
|
cannam@89
|
3166 main ()
|
cannam@89
|
3167 {
|
cannam@89
|
3168
|
cannam@89
|
3169 ;
|
cannam@89
|
3170 return 0;
|
cannam@89
|
3171 }
|
cannam@89
|
3172 _ACEOF
|
cannam@89
|
3173 rm -f conftest.$ac_objext
|
cannam@89
|
3174 if { (ac_try="$ac_compile"
|
cannam@89
|
3175 case "(($ac_try" in
|
cannam@89
|
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
3177 *) ac_try_echo=$ac_try;;
|
cannam@89
|
3178 esac
|
cannam@89
|
3179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
3180 (eval "$ac_compile") 2>conftest.er1
|
cannam@89
|
3181 ac_status=$?
|
cannam@89
|
3182 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@89
|
3183 rm -f conftest.er1
|
cannam@89
|
3184 cat conftest.err >&5
|
cannam@89
|
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
3186 (exit $ac_status); } && {
|
cannam@89
|
3187 test -z "$ac_c_werror_flag" ||
|
cannam@89
|
3188 test ! -s conftest.err
|
cannam@89
|
3189 } && test -s conftest.$ac_objext; then
|
cannam@89
|
3190 ac_cv_prog_cc_g=yes
|
cannam@89
|
3191 else
|
cannam@89
|
3192 echo "$as_me: failed program was:" >&5
|
cannam@89
|
3193 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@89
|
3194
|
cannam@89
|
3195 CFLAGS=""
|
cannam@89
|
3196 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
3197 /* confdefs.h. */
|
cannam@89
|
3198 _ACEOF
|
cannam@89
|
3199 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
3200 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
3201 /* end confdefs.h. */
|
cannam@89
|
3202
|
cannam@89
|
3203 int
|
cannam@89
|
3204 main ()
|
cannam@89
|
3205 {
|
cannam@89
|
3206
|
cannam@89
|
3207 ;
|
cannam@89
|
3208 return 0;
|
cannam@89
|
3209 }
|
cannam@89
|
3210 _ACEOF
|
cannam@89
|
3211 rm -f conftest.$ac_objext
|
cannam@89
|
3212 if { (ac_try="$ac_compile"
|
cannam@89
|
3213 case "(($ac_try" in
|
cannam@89
|
3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
3215 *) ac_try_echo=$ac_try;;
|
cannam@89
|
3216 esac
|
cannam@89
|
3217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
3218 (eval "$ac_compile") 2>conftest.er1
|
cannam@89
|
3219 ac_status=$?
|
cannam@89
|
3220 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@89
|
3221 rm -f conftest.er1
|
cannam@89
|
3222 cat conftest.err >&5
|
cannam@89
|
3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
3224 (exit $ac_status); } && {
|
cannam@89
|
3225 test -z "$ac_c_werror_flag" ||
|
cannam@89
|
3226 test ! -s conftest.err
|
cannam@89
|
3227 } && test -s conftest.$ac_objext; then
|
cannam@89
|
3228 :
|
cannam@89
|
3229 else
|
cannam@89
|
3230 echo "$as_me: failed program was:" >&5
|
cannam@89
|
3231 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@89
|
3232
|
cannam@89
|
3233 ac_c_werror_flag=$ac_save_c_werror_flag
|
cannam@89
|
3234 CFLAGS="-g"
|
cannam@89
|
3235 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
3236 /* confdefs.h. */
|
cannam@89
|
3237 _ACEOF
|
cannam@89
|
3238 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
3239 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
3240 /* end confdefs.h. */
|
cannam@89
|
3241
|
cannam@89
|
3242 int
|
cannam@89
|
3243 main ()
|
cannam@89
|
3244 {
|
cannam@89
|
3245
|
cannam@89
|
3246 ;
|
cannam@89
|
3247 return 0;
|
cannam@89
|
3248 }
|
cannam@89
|
3249 _ACEOF
|
cannam@89
|
3250 rm -f conftest.$ac_objext
|
cannam@89
|
3251 if { (ac_try="$ac_compile"
|
cannam@89
|
3252 case "(($ac_try" in
|
cannam@89
|
3253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
3254 *) ac_try_echo=$ac_try;;
|
cannam@89
|
3255 esac
|
cannam@89
|
3256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
3257 (eval "$ac_compile") 2>conftest.er1
|
cannam@89
|
3258 ac_status=$?
|
cannam@89
|
3259 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@89
|
3260 rm -f conftest.er1
|
cannam@89
|
3261 cat conftest.err >&5
|
cannam@89
|
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
3263 (exit $ac_status); } && {
|
cannam@89
|
3264 test -z "$ac_c_werror_flag" ||
|
cannam@89
|
3265 test ! -s conftest.err
|
cannam@89
|
3266 } && test -s conftest.$ac_objext; then
|
cannam@89
|
3267 ac_cv_prog_cc_g=yes
|
cannam@89
|
3268 else
|
cannam@89
|
3269 echo "$as_me: failed program was:" >&5
|
cannam@89
|
3270 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@89
|
3271
|
cannam@89
|
3272
|
cannam@89
|
3273 fi
|
cannam@89
|
3274
|
cannam@89
|
3275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@89
|
3276 fi
|
cannam@89
|
3277
|
cannam@89
|
3278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@89
|
3279 fi
|
cannam@89
|
3280
|
cannam@89
|
3281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@89
|
3282 ac_c_werror_flag=$ac_save_c_werror_flag
|
cannam@89
|
3283 fi
|
cannam@89
|
3284 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
cannam@89
|
3285 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
|
cannam@89
|
3286 if test "$ac_test_CFLAGS" = set; then
|
cannam@89
|
3287 CFLAGS=$ac_save_CFLAGS
|
cannam@89
|
3288 elif test $ac_cv_prog_cc_g = yes; then
|
cannam@89
|
3289 if test "$GCC" = yes; then
|
cannam@89
|
3290 CFLAGS="-g -O2"
|
cannam@89
|
3291 else
|
cannam@89
|
3292 CFLAGS="-g"
|
cannam@89
|
3293 fi
|
cannam@89
|
3294 else
|
cannam@89
|
3295 if test "$GCC" = yes; then
|
cannam@89
|
3296 CFLAGS="-O2"
|
cannam@89
|
3297 else
|
cannam@89
|
3298 CFLAGS=
|
cannam@89
|
3299 fi
|
cannam@89
|
3300 fi
|
cannam@89
|
3301 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
|
cannam@89
|
3302 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
|
cannam@89
|
3303 if test "${ac_cv_prog_cc_c89+set}" = set; then
|
cannam@89
|
3304 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
3305 else
|
cannam@89
|
3306 ac_cv_prog_cc_c89=no
|
cannam@89
|
3307 ac_save_CC=$CC
|
cannam@89
|
3308 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
3309 /* confdefs.h. */
|
cannam@89
|
3310 _ACEOF
|
cannam@89
|
3311 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
3312 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
3313 /* end confdefs.h. */
|
cannam@89
|
3314 #include <stdarg.h>
|
cannam@89
|
3315 #include <stdio.h>
|
cannam@89
|
3316 #include <sys/types.h>
|
cannam@89
|
3317 #include <sys/stat.h>
|
cannam@89
|
3318 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
cannam@89
|
3319 struct buf { int x; };
|
cannam@89
|
3320 FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
cannam@89
|
3321 static char *e (p, i)
|
cannam@89
|
3322 char **p;
|
cannam@89
|
3323 int i;
|
cannam@89
|
3324 {
|
cannam@89
|
3325 return p[i];
|
cannam@89
|
3326 }
|
cannam@89
|
3327 static char *f (char * (*g) (char **, int), char **p, ...)
|
cannam@89
|
3328 {
|
cannam@89
|
3329 char *s;
|
cannam@89
|
3330 va_list v;
|
cannam@89
|
3331 va_start (v,p);
|
cannam@89
|
3332 s = g (p, va_arg (v,int));
|
cannam@89
|
3333 va_end (v);
|
cannam@89
|
3334 return s;
|
cannam@89
|
3335 }
|
cannam@89
|
3336
|
cannam@89
|
3337 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
cannam@89
|
3338 function prototypes and stuff, but not '\xHH' hex character constants.
|
cannam@89
|
3339 These don't provoke an error unfortunately, instead are silently treated
|
cannam@89
|
3340 as 'x'. The following induces an error, until -std is added to get
|
cannam@89
|
3341 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
cannam@89
|
3342 array size at least. It's necessary to write '\x00'==0 to get something
|
cannam@89
|
3343 that's true only with -std. */
|
cannam@89
|
3344 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
cannam@89
|
3345
|
cannam@89
|
3346 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
cannam@89
|
3347 inside strings and character constants. */
|
cannam@89
|
3348 #define FOO(x) 'x'
|
cannam@89
|
3349 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
cannam@89
|
3350
|
cannam@89
|
3351 int test (int i, double x);
|
cannam@89
|
3352 struct s1 {int (*f) (int a);};
|
cannam@89
|
3353 struct s2 {int (*f) (double a);};
|
cannam@89
|
3354 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
cannam@89
|
3355 int argc;
|
cannam@89
|
3356 char **argv;
|
cannam@89
|
3357 int
|
cannam@89
|
3358 main ()
|
cannam@89
|
3359 {
|
cannam@89
|
3360 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
cannam@89
|
3361 ;
|
cannam@89
|
3362 return 0;
|
cannam@89
|
3363 }
|
cannam@89
|
3364 _ACEOF
|
cannam@89
|
3365 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
cannam@89
|
3366 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
cannam@89
|
3367 do
|
cannam@89
|
3368 CC="$ac_save_CC $ac_arg"
|
cannam@89
|
3369 rm -f conftest.$ac_objext
|
cannam@89
|
3370 if { (ac_try="$ac_compile"
|
cannam@89
|
3371 case "(($ac_try" in
|
cannam@89
|
3372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
3373 *) ac_try_echo=$ac_try;;
|
cannam@89
|
3374 esac
|
cannam@89
|
3375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
3376 (eval "$ac_compile") 2>conftest.er1
|
cannam@89
|
3377 ac_status=$?
|
cannam@89
|
3378 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@89
|
3379 rm -f conftest.er1
|
cannam@89
|
3380 cat conftest.err >&5
|
cannam@89
|
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
3382 (exit $ac_status); } && {
|
cannam@89
|
3383 test -z "$ac_c_werror_flag" ||
|
cannam@89
|
3384 test ! -s conftest.err
|
cannam@89
|
3385 } && test -s conftest.$ac_objext; then
|
cannam@89
|
3386 ac_cv_prog_cc_c89=$ac_arg
|
cannam@89
|
3387 else
|
cannam@89
|
3388 echo "$as_me: failed program was:" >&5
|
cannam@89
|
3389 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@89
|
3390
|
cannam@89
|
3391
|
cannam@89
|
3392 fi
|
cannam@89
|
3393
|
cannam@89
|
3394 rm -f core conftest.err conftest.$ac_objext
|
cannam@89
|
3395 test "x$ac_cv_prog_cc_c89" != "xno" && break
|
cannam@89
|
3396 done
|
cannam@89
|
3397 rm -f conftest.$ac_ext
|
cannam@89
|
3398 CC=$ac_save_CC
|
cannam@89
|
3399
|
cannam@89
|
3400 fi
|
cannam@89
|
3401 # AC_CACHE_VAL
|
cannam@89
|
3402 case "x$ac_cv_prog_cc_c89" in
|
cannam@89
|
3403 x)
|
cannam@89
|
3404 { echo "$as_me:$LINENO: result: none needed" >&5
|
cannam@89
|
3405 echo "${ECHO_T}none needed" >&6; } ;;
|
cannam@89
|
3406 xno)
|
cannam@89
|
3407 { echo "$as_me:$LINENO: result: unsupported" >&5
|
cannam@89
|
3408 echo "${ECHO_T}unsupported" >&6; } ;;
|
cannam@89
|
3409 *)
|
cannam@89
|
3410 CC="$CC $ac_cv_prog_cc_c89"
|
cannam@89
|
3411 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
|
cannam@89
|
3412 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
|
cannam@89
|
3413 esac
|
cannam@89
|
3414
|
cannam@89
|
3415
|
cannam@89
|
3416 ac_ext=c
|
cannam@89
|
3417 ac_cpp='$CPP $CPPFLAGS'
|
cannam@89
|
3418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
cannam@89
|
3419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
cannam@89
|
3420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
cannam@89
|
3421 DEPDIR="${am__leading_dot}deps"
|
cannam@89
|
3422
|
cannam@89
|
3423 ac_config_commands="$ac_config_commands depfiles"
|
cannam@89
|
3424
|
cannam@89
|
3425
|
cannam@89
|
3426 am_make=${MAKE-make}
|
cannam@89
|
3427 cat > confinc << 'END'
|
cannam@89
|
3428 am__doit:
|
cannam@89
|
3429 @echo done
|
cannam@89
|
3430 .PHONY: am__doit
|
cannam@89
|
3431 END
|
cannam@89
|
3432 # If we don't find an include directive, just comment out the code.
|
cannam@89
|
3433 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
|
cannam@89
|
3434 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
|
cannam@89
|
3435 am__include="#"
|
cannam@89
|
3436 am__quote=
|
cannam@89
|
3437 _am_result=none
|
cannam@89
|
3438 # First try GNU make style include.
|
cannam@89
|
3439 echo "include confinc" > confmf
|
cannam@89
|
3440 # We grep out `Entering directory' and `Leaving directory'
|
cannam@89
|
3441 # messages which can occur if `w' ends up in MAKEFLAGS.
|
cannam@89
|
3442 # In particular we don't look at `^make:' because GNU make might
|
cannam@89
|
3443 # be invoked under some other name (usually "gmake"), in which
|
cannam@89
|
3444 # case it prints its new name instead of `make'.
|
cannam@89
|
3445 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
|
cannam@89
|
3446 am__include=include
|
cannam@89
|
3447 am__quote=
|
cannam@89
|
3448 _am_result=GNU
|
cannam@89
|
3449 fi
|
cannam@89
|
3450 # Now try BSD make style include.
|
cannam@89
|
3451 if test "$am__include" = "#"; then
|
cannam@89
|
3452 echo '.include "confinc"' > confmf
|
cannam@89
|
3453 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
|
cannam@89
|
3454 am__include=.include
|
cannam@89
|
3455 am__quote="\""
|
cannam@89
|
3456 _am_result=BSD
|
cannam@89
|
3457 fi
|
cannam@89
|
3458 fi
|
cannam@89
|
3459
|
cannam@89
|
3460
|
cannam@89
|
3461 { echo "$as_me:$LINENO: result: $_am_result" >&5
|
cannam@89
|
3462 echo "${ECHO_T}$_am_result" >&6; }
|
cannam@89
|
3463 rm -f confinc confmf
|
cannam@89
|
3464
|
cannam@89
|
3465 # Check whether --enable-dependency-tracking was given.
|
cannam@89
|
3466 if test "${enable_dependency_tracking+set}" = set; then
|
cannam@89
|
3467 enableval=$enable_dependency_tracking;
|
cannam@89
|
3468 fi
|
cannam@89
|
3469
|
cannam@89
|
3470 if test "x$enable_dependency_tracking" != xno; then
|
cannam@89
|
3471 am_depcomp="$ac_aux_dir/depcomp"
|
cannam@89
|
3472 AMDEPBACKSLASH='\'
|
cannam@89
|
3473 fi
|
cannam@89
|
3474 if test "x$enable_dependency_tracking" != xno; then
|
cannam@89
|
3475 AMDEP_TRUE=
|
cannam@89
|
3476 AMDEP_FALSE='#'
|
cannam@89
|
3477 else
|
cannam@89
|
3478 AMDEP_TRUE='#'
|
cannam@89
|
3479 AMDEP_FALSE=
|
cannam@89
|
3480 fi
|
cannam@89
|
3481
|
cannam@89
|
3482
|
cannam@89
|
3483
|
cannam@89
|
3484 depcc="$CC" am_compiler_list=
|
cannam@89
|
3485
|
cannam@89
|
3486 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
|
cannam@89
|
3487 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
|
cannam@89
|
3488 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
|
cannam@89
|
3489 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
3490 else
|
cannam@89
|
3491 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
cannam@89
|
3492 # We make a subdir and do the tests there. Otherwise we can end up
|
cannam@89
|
3493 # making bogus files that we don't know about and never remove. For
|
cannam@89
|
3494 # instance it was reported that on HP-UX the gcc test will end up
|
cannam@89
|
3495 # making a dummy file named `D' -- because `-MD' means `put the output
|
cannam@89
|
3496 # in D'.
|
cannam@89
|
3497 mkdir conftest.dir
|
cannam@89
|
3498 # Copy depcomp to subdir because otherwise we won't find it if we're
|
cannam@89
|
3499 # using a relative directory.
|
cannam@89
|
3500 cp "$am_depcomp" conftest.dir
|
cannam@89
|
3501 cd conftest.dir
|
cannam@89
|
3502 # We will build objects and dependencies in a subdirectory because
|
cannam@89
|
3503 # it helps to detect inapplicable dependency modes. For instance
|
cannam@89
|
3504 # both Tru64's cc and ICC support -MD to output dependencies as a
|
cannam@89
|
3505 # side effect of compilation, but ICC will put the dependencies in
|
cannam@89
|
3506 # the current directory while Tru64 will put them in the object
|
cannam@89
|
3507 # directory.
|
cannam@89
|
3508 mkdir sub
|
cannam@89
|
3509
|
cannam@89
|
3510 am_cv_CC_dependencies_compiler_type=none
|
cannam@89
|
3511 if test "$am_compiler_list" = ""; then
|
cannam@89
|
3512 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
|
cannam@89
|
3513 fi
|
cannam@89
|
3514 for depmode in $am_compiler_list; do
|
cannam@89
|
3515 # Setup a source with many dependencies, because some compilers
|
cannam@89
|
3516 # like to wrap large dependency lists on column 80 (with \), and
|
cannam@89
|
3517 # we should not choose a depcomp mode which is confused by this.
|
cannam@89
|
3518 #
|
cannam@89
|
3519 # We need to recreate these files for each test, as the compiler may
|
cannam@89
|
3520 # overwrite some of them when testing with obscure command lines.
|
cannam@89
|
3521 # This happens at least with the AIX C compiler.
|
cannam@89
|
3522 : > sub/conftest.c
|
cannam@89
|
3523 for i in 1 2 3 4 5 6; do
|
cannam@89
|
3524 echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
cannam@89
|
3525 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
|
cannam@89
|
3526 # Solaris 8's {/usr,}/bin/sh.
|
cannam@89
|
3527 touch sub/conftst$i.h
|
cannam@89
|
3528 done
|
cannam@89
|
3529 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
cannam@89
|
3530
|
cannam@89
|
3531 case $depmode in
|
cannam@89
|
3532 nosideeffect)
|
cannam@89
|
3533 # after this tag, mechanisms are not by side-effect, so they'll
|
cannam@89
|
3534 # only be used when explicitly requested
|
cannam@89
|
3535 if test "x$enable_dependency_tracking" = xyes; then
|
cannam@89
|
3536 continue
|
cannam@89
|
3537 else
|
cannam@89
|
3538 break
|
cannam@89
|
3539 fi
|
cannam@89
|
3540 ;;
|
cannam@89
|
3541 none) break ;;
|
cannam@89
|
3542 esac
|
cannam@89
|
3543 # We check with `-c' and `-o' for the sake of the "dashmstdout"
|
cannam@89
|
3544 # mode. It turns out that the SunPro C++ compiler does not properly
|
cannam@89
|
3545 # handle `-M -o', and we need to detect this.
|
cannam@89
|
3546 if depmode=$depmode \
|
cannam@89
|
3547 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
|
cannam@89
|
3548 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
cannam@89
|
3549 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
|
cannam@89
|
3550 >/dev/null 2>conftest.err &&
|
cannam@89
|
3551 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
|
cannam@89
|
3552 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
cannam@89
|
3553 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
|
cannam@89
|
3554 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
cannam@89
|
3555 # icc doesn't choke on unknown options, it will just issue warnings
|
cannam@89
|
3556 # or remarks (even with -Werror). So we grep stderr for any message
|
cannam@89
|
3557 # that says an option was ignored or not supported.
|
cannam@89
|
3558 # When given -MP, icc 7.0 and 7.1 complain thusly:
|
cannam@89
|
3559 # icc: Command line warning: ignoring option '-M'; no argument required
|
cannam@89
|
3560 # The diagnosis changed in icc 8.0:
|
cannam@89
|
3561 # icc: Command line remark: option '-MP' not supported
|
cannam@89
|
3562 if (grep 'ignoring option' conftest.err ||
|
cannam@89
|
3563 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
cannam@89
|
3564 am_cv_CC_dependencies_compiler_type=$depmode
|
cannam@89
|
3565 break
|
cannam@89
|
3566 fi
|
cannam@89
|
3567 fi
|
cannam@89
|
3568 done
|
cannam@89
|
3569
|
cannam@89
|
3570 cd ..
|
cannam@89
|
3571 rm -rf conftest.dir
|
cannam@89
|
3572 else
|
cannam@89
|
3573 am_cv_CC_dependencies_compiler_type=none
|
cannam@89
|
3574 fi
|
cannam@89
|
3575
|
cannam@89
|
3576 fi
|
cannam@89
|
3577 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
|
cannam@89
|
3578 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
|
cannam@89
|
3579 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
|
cannam@89
|
3580
|
cannam@89
|
3581 if
|
cannam@89
|
3582 test "x$enable_dependency_tracking" != xno \
|
cannam@89
|
3583 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
|
cannam@89
|
3584 am__fastdepCC_TRUE=
|
cannam@89
|
3585 am__fastdepCC_FALSE='#'
|
cannam@89
|
3586 else
|
cannam@89
|
3587 am__fastdepCC_TRUE='#'
|
cannam@89
|
3588 am__fastdepCC_FALSE=
|
cannam@89
|
3589 fi
|
cannam@89
|
3590
|
cannam@89
|
3591
|
cannam@89
|
3592 case `pwd` in
|
cannam@89
|
3593 *\ * | *\ *)
|
cannam@89
|
3594 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
|
cannam@89
|
3595 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
|
cannam@89
|
3596 esac
|
cannam@89
|
3597
|
cannam@89
|
3598
|
cannam@89
|
3599
|
cannam@89
|
3600 macro_version='2.2.4'
|
cannam@89
|
3601 macro_revision='1.2976'
|
cannam@89
|
3602
|
cannam@89
|
3603
|
cannam@89
|
3604
|
cannam@89
|
3605
|
cannam@89
|
3606
|
cannam@89
|
3607
|
cannam@89
|
3608
|
cannam@89
|
3609
|
cannam@89
|
3610
|
cannam@89
|
3611
|
cannam@89
|
3612
|
cannam@89
|
3613
|
cannam@89
|
3614
|
cannam@89
|
3615 ltmain="$ac_aux_dir/ltmain.sh"
|
cannam@89
|
3616
|
cannam@89
|
3617 # Make sure we can run config.sub.
|
cannam@89
|
3618 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
|
cannam@89
|
3619 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
|
cannam@89
|
3620 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
|
cannam@89
|
3621 { (exit 1); exit 1; }; }
|
cannam@89
|
3622
|
cannam@89
|
3623 { echo "$as_me:$LINENO: checking build system type" >&5
|
cannam@89
|
3624 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
|
cannam@89
|
3625 if test "${ac_cv_build+set}" = set; then
|
cannam@89
|
3626 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
3627 else
|
cannam@89
|
3628 ac_build_alias=$build_alias
|
cannam@89
|
3629 test "x$ac_build_alias" = x &&
|
cannam@89
|
3630 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
|
cannam@89
|
3631 test "x$ac_build_alias" = x &&
|
cannam@89
|
3632 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
|
cannam@89
|
3633 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
|
cannam@89
|
3634 { (exit 1); exit 1; }; }
|
cannam@89
|
3635 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
|
cannam@89
|
3636 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
|
cannam@89
|
3637 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
|
cannam@89
|
3638 { (exit 1); exit 1; }; }
|
cannam@89
|
3639
|
cannam@89
|
3640 fi
|
cannam@89
|
3641 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
|
cannam@89
|
3642 echo "${ECHO_T}$ac_cv_build" >&6; }
|
cannam@89
|
3643 case $ac_cv_build in
|
cannam@89
|
3644 *-*-*) ;;
|
cannam@89
|
3645 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
|
cannam@89
|
3646 echo "$as_me: error: invalid value of canonical build" >&2;}
|
cannam@89
|
3647 { (exit 1); exit 1; }; };;
|
cannam@89
|
3648 esac
|
cannam@89
|
3649 build=$ac_cv_build
|
cannam@89
|
3650 ac_save_IFS=$IFS; IFS='-'
|
cannam@89
|
3651 set x $ac_cv_build
|
cannam@89
|
3652 shift
|
cannam@89
|
3653 build_cpu=$1
|
cannam@89
|
3654 build_vendor=$2
|
cannam@89
|
3655 shift; shift
|
cannam@89
|
3656 # Remember, the first character of IFS is used to create $*,
|
cannam@89
|
3657 # except with old shells:
|
cannam@89
|
3658 build_os=$*
|
cannam@89
|
3659 IFS=$ac_save_IFS
|
cannam@89
|
3660 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
|
cannam@89
|
3661
|
cannam@89
|
3662
|
cannam@89
|
3663 { echo "$as_me:$LINENO: checking host system type" >&5
|
cannam@89
|
3664 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
|
cannam@89
|
3665 if test "${ac_cv_host+set}" = set; then
|
cannam@89
|
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
3667 else
|
cannam@89
|
3668 if test "x$host_alias" = x; then
|
cannam@89
|
3669 ac_cv_host=$ac_cv_build
|
cannam@89
|
3670 else
|
cannam@89
|
3671 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
|
cannam@89
|
3672 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
|
cannam@89
|
3673 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
|
cannam@89
|
3674 { (exit 1); exit 1; }; }
|
cannam@89
|
3675 fi
|
cannam@89
|
3676
|
cannam@89
|
3677 fi
|
cannam@89
|
3678 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
|
cannam@89
|
3679 echo "${ECHO_T}$ac_cv_host" >&6; }
|
cannam@89
|
3680 case $ac_cv_host in
|
cannam@89
|
3681 *-*-*) ;;
|
cannam@89
|
3682 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
|
cannam@89
|
3683 echo "$as_me: error: invalid value of canonical host" >&2;}
|
cannam@89
|
3684 { (exit 1); exit 1; }; };;
|
cannam@89
|
3685 esac
|
cannam@89
|
3686 host=$ac_cv_host
|
cannam@89
|
3687 ac_save_IFS=$IFS; IFS='-'
|
cannam@89
|
3688 set x $ac_cv_host
|
cannam@89
|
3689 shift
|
cannam@89
|
3690 host_cpu=$1
|
cannam@89
|
3691 host_vendor=$2
|
cannam@89
|
3692 shift; shift
|
cannam@89
|
3693 # Remember, the first character of IFS is used to create $*,
|
cannam@89
|
3694 # except with old shells:
|
cannam@89
|
3695 host_os=$*
|
cannam@89
|
3696 IFS=$ac_save_IFS
|
cannam@89
|
3697 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
|
cannam@89
|
3698
|
cannam@89
|
3699
|
cannam@89
|
3700 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
|
cannam@89
|
3701 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
|
cannam@89
|
3702 if test "${ac_cv_path_SED+set}" = set; then
|
cannam@89
|
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
3704 else
|
cannam@89
|
3705 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
|
cannam@89
|
3706 for ac_i in 1 2 3 4 5 6 7; do
|
cannam@89
|
3707 ac_script="$ac_script$as_nl$ac_script"
|
cannam@89
|
3708 done
|
cannam@89
|
3709 echo "$ac_script" | sed 99q >conftest.sed
|
cannam@89
|
3710 $as_unset ac_script || ac_script=
|
cannam@89
|
3711 # Extract the first word of "sed gsed" to use in msg output
|
cannam@89
|
3712 if test -z "$SED"; then
|
cannam@89
|
3713 set dummy sed gsed; ac_prog_name=$2
|
cannam@89
|
3714 if test "${ac_cv_path_SED+set}" = set; then
|
cannam@89
|
3715 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
3716 else
|
cannam@89
|
3717 ac_path_SED_found=false
|
cannam@89
|
3718 # Loop through the user's path and test for each of PROGNAME-LIST
|
cannam@89
|
3719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@89
|
3720 for as_dir in $PATH
|
cannam@89
|
3721 do
|
cannam@89
|
3722 IFS=$as_save_IFS
|
cannam@89
|
3723 test -z "$as_dir" && as_dir=.
|
cannam@89
|
3724 for ac_prog in sed gsed; do
|
cannam@89
|
3725 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@89
|
3726 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
|
cannam@89
|
3727 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
|
cannam@89
|
3728 # Check for GNU ac_path_SED and select it if it is found.
|
cannam@89
|
3729 # Check for GNU $ac_path_SED
|
cannam@89
|
3730 case `"$ac_path_SED" --version 2>&1` in
|
cannam@89
|
3731 *GNU*)
|
cannam@89
|
3732 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
|
cannam@89
|
3733 *)
|
cannam@89
|
3734 ac_count=0
|
cannam@89
|
3735 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
|
cannam@89
|
3736 while :
|
cannam@89
|
3737 do
|
cannam@89
|
3738 cat "conftest.in" "conftest.in" >"conftest.tmp"
|
cannam@89
|
3739 mv "conftest.tmp" "conftest.in"
|
cannam@89
|
3740 cp "conftest.in" "conftest.nl"
|
cannam@89
|
3741 echo '' >> "conftest.nl"
|
cannam@89
|
3742 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
cannam@89
|
3743 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
cannam@89
|
3744 ac_count=`expr $ac_count + 1`
|
cannam@89
|
3745 if test $ac_count -gt ${ac_path_SED_max-0}; then
|
cannam@89
|
3746 # Best one so far, save it but keep looking for a better one
|
cannam@89
|
3747 ac_cv_path_SED="$ac_path_SED"
|
cannam@89
|
3748 ac_path_SED_max=$ac_count
|
cannam@89
|
3749 fi
|
cannam@89
|
3750 # 10*(2^10) chars as input seems more than enough
|
cannam@89
|
3751 test $ac_count -gt 10 && break
|
cannam@89
|
3752 done
|
cannam@89
|
3753 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
cannam@89
|
3754 esac
|
cannam@89
|
3755
|
cannam@89
|
3756
|
cannam@89
|
3757 $ac_path_SED_found && break 3
|
cannam@89
|
3758 done
|
cannam@89
|
3759 done
|
cannam@89
|
3760
|
cannam@89
|
3761 done
|
cannam@89
|
3762 IFS=$as_save_IFS
|
cannam@89
|
3763
|
cannam@89
|
3764
|
cannam@89
|
3765 fi
|
cannam@89
|
3766
|
cannam@89
|
3767 SED="$ac_cv_path_SED"
|
cannam@89
|
3768 if test -z "$SED"; then
|
cannam@89
|
3769 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
|
cannam@89
|
3770 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
|
cannam@89
|
3771 { (exit 1); exit 1; }; }
|
cannam@89
|
3772 fi
|
cannam@89
|
3773
|
cannam@89
|
3774 else
|
cannam@89
|
3775 ac_cv_path_SED=$SED
|
cannam@89
|
3776 fi
|
cannam@89
|
3777
|
cannam@89
|
3778 fi
|
cannam@89
|
3779 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
|
cannam@89
|
3780 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
|
cannam@89
|
3781 SED="$ac_cv_path_SED"
|
cannam@89
|
3782 rm -f conftest.sed
|
cannam@89
|
3783
|
cannam@89
|
3784 test -z "$SED" && SED=sed
|
cannam@89
|
3785 Xsed="$SED -e 1s/^X//"
|
cannam@89
|
3786
|
cannam@89
|
3787
|
cannam@89
|
3788
|
cannam@89
|
3789
|
cannam@89
|
3790
|
cannam@89
|
3791
|
cannam@89
|
3792
|
cannam@89
|
3793
|
cannam@89
|
3794
|
cannam@89
|
3795
|
cannam@89
|
3796
|
cannam@89
|
3797 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
|
cannam@89
|
3798 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
|
cannam@89
|
3799 if test "${ac_cv_path_GREP+set}" = set; then
|
cannam@89
|
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
3801 else
|
cannam@89
|
3802 # Extract the first word of "grep ggrep" to use in msg output
|
cannam@89
|
3803 if test -z "$GREP"; then
|
cannam@89
|
3804 set dummy grep ggrep; ac_prog_name=$2
|
cannam@89
|
3805 if test "${ac_cv_path_GREP+set}" = set; then
|
cannam@89
|
3806 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
3807 else
|
cannam@89
|
3808 ac_path_GREP_found=false
|
cannam@89
|
3809 # Loop through the user's path and test for each of PROGNAME-LIST
|
cannam@89
|
3810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@89
|
3811 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
cannam@89
|
3812 do
|
cannam@89
|
3813 IFS=$as_save_IFS
|
cannam@89
|
3814 test -z "$as_dir" && as_dir=.
|
cannam@89
|
3815 for ac_prog in grep ggrep; do
|
cannam@89
|
3816 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@89
|
3817 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
|
cannam@89
|
3818 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
|
cannam@89
|
3819 # Check for GNU ac_path_GREP and select it if it is found.
|
cannam@89
|
3820 # Check for GNU $ac_path_GREP
|
cannam@89
|
3821 case `"$ac_path_GREP" --version 2>&1` in
|
cannam@89
|
3822 *GNU*)
|
cannam@89
|
3823 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
|
cannam@89
|
3824 *)
|
cannam@89
|
3825 ac_count=0
|
cannam@89
|
3826 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
|
cannam@89
|
3827 while :
|
cannam@89
|
3828 do
|
cannam@89
|
3829 cat "conftest.in" "conftest.in" >"conftest.tmp"
|
cannam@89
|
3830 mv "conftest.tmp" "conftest.in"
|
cannam@89
|
3831 cp "conftest.in" "conftest.nl"
|
cannam@89
|
3832 echo 'GREP' >> "conftest.nl"
|
cannam@89
|
3833 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
cannam@89
|
3834 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
cannam@89
|
3835 ac_count=`expr $ac_count + 1`
|
cannam@89
|
3836 if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
cannam@89
|
3837 # Best one so far, save it but keep looking for a better one
|
cannam@89
|
3838 ac_cv_path_GREP="$ac_path_GREP"
|
cannam@89
|
3839 ac_path_GREP_max=$ac_count
|
cannam@89
|
3840 fi
|
cannam@89
|
3841 # 10*(2^10) chars as input seems more than enough
|
cannam@89
|
3842 test $ac_count -gt 10 && break
|
cannam@89
|
3843 done
|
cannam@89
|
3844 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
cannam@89
|
3845 esac
|
cannam@89
|
3846
|
cannam@89
|
3847
|
cannam@89
|
3848 $ac_path_GREP_found && break 3
|
cannam@89
|
3849 done
|
cannam@89
|
3850 done
|
cannam@89
|
3851
|
cannam@89
|
3852 done
|
cannam@89
|
3853 IFS=$as_save_IFS
|
cannam@89
|
3854
|
cannam@89
|
3855
|
cannam@89
|
3856 fi
|
cannam@89
|
3857
|
cannam@89
|
3858 GREP="$ac_cv_path_GREP"
|
cannam@89
|
3859 if test -z "$GREP"; then
|
cannam@89
|
3860 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
|
cannam@89
|
3861 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
|
cannam@89
|
3862 { (exit 1); exit 1; }; }
|
cannam@89
|
3863 fi
|
cannam@89
|
3864
|
cannam@89
|
3865 else
|
cannam@89
|
3866 ac_cv_path_GREP=$GREP
|
cannam@89
|
3867 fi
|
cannam@89
|
3868
|
cannam@89
|
3869
|
cannam@89
|
3870 fi
|
cannam@89
|
3871 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
|
cannam@89
|
3872 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
|
cannam@89
|
3873 GREP="$ac_cv_path_GREP"
|
cannam@89
|
3874
|
cannam@89
|
3875
|
cannam@89
|
3876 { echo "$as_me:$LINENO: checking for egrep" >&5
|
cannam@89
|
3877 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
|
cannam@89
|
3878 if test "${ac_cv_path_EGREP+set}" = set; then
|
cannam@89
|
3879 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
3880 else
|
cannam@89
|
3881 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
|
cannam@89
|
3882 then ac_cv_path_EGREP="$GREP -E"
|
cannam@89
|
3883 else
|
cannam@89
|
3884 # Extract the first word of "egrep" to use in msg output
|
cannam@89
|
3885 if test -z "$EGREP"; then
|
cannam@89
|
3886 set dummy egrep; ac_prog_name=$2
|
cannam@89
|
3887 if test "${ac_cv_path_EGREP+set}" = set; then
|
cannam@89
|
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
3889 else
|
cannam@89
|
3890 ac_path_EGREP_found=false
|
cannam@89
|
3891 # Loop through the user's path and test for each of PROGNAME-LIST
|
cannam@89
|
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@89
|
3893 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
cannam@89
|
3894 do
|
cannam@89
|
3895 IFS=$as_save_IFS
|
cannam@89
|
3896 test -z "$as_dir" && as_dir=.
|
cannam@89
|
3897 for ac_prog in egrep; do
|
cannam@89
|
3898 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@89
|
3899 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
|
cannam@89
|
3900 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
|
cannam@89
|
3901 # Check for GNU ac_path_EGREP and select it if it is found.
|
cannam@89
|
3902 # Check for GNU $ac_path_EGREP
|
cannam@89
|
3903 case `"$ac_path_EGREP" --version 2>&1` in
|
cannam@89
|
3904 *GNU*)
|
cannam@89
|
3905 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
|
cannam@89
|
3906 *)
|
cannam@89
|
3907 ac_count=0
|
cannam@89
|
3908 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
|
cannam@89
|
3909 while :
|
cannam@89
|
3910 do
|
cannam@89
|
3911 cat "conftest.in" "conftest.in" >"conftest.tmp"
|
cannam@89
|
3912 mv "conftest.tmp" "conftest.in"
|
cannam@89
|
3913 cp "conftest.in" "conftest.nl"
|
cannam@89
|
3914 echo 'EGREP' >> "conftest.nl"
|
cannam@89
|
3915 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
cannam@89
|
3916 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
cannam@89
|
3917 ac_count=`expr $ac_count + 1`
|
cannam@89
|
3918 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
cannam@89
|
3919 # Best one so far, save it but keep looking for a better one
|
cannam@89
|
3920 ac_cv_path_EGREP="$ac_path_EGREP"
|
cannam@89
|
3921 ac_path_EGREP_max=$ac_count
|
cannam@89
|
3922 fi
|
cannam@89
|
3923 # 10*(2^10) chars as input seems more than enough
|
cannam@89
|
3924 test $ac_count -gt 10 && break
|
cannam@89
|
3925 done
|
cannam@89
|
3926 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
cannam@89
|
3927 esac
|
cannam@89
|
3928
|
cannam@89
|
3929
|
cannam@89
|
3930 $ac_path_EGREP_found && break 3
|
cannam@89
|
3931 done
|
cannam@89
|
3932 done
|
cannam@89
|
3933
|
cannam@89
|
3934 done
|
cannam@89
|
3935 IFS=$as_save_IFS
|
cannam@89
|
3936
|
cannam@89
|
3937
|
cannam@89
|
3938 fi
|
cannam@89
|
3939
|
cannam@89
|
3940 EGREP="$ac_cv_path_EGREP"
|
cannam@89
|
3941 if test -z "$EGREP"; then
|
cannam@89
|
3942 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
|
cannam@89
|
3943 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
|
cannam@89
|
3944 { (exit 1); exit 1; }; }
|
cannam@89
|
3945 fi
|
cannam@89
|
3946
|
cannam@89
|
3947 else
|
cannam@89
|
3948 ac_cv_path_EGREP=$EGREP
|
cannam@89
|
3949 fi
|
cannam@89
|
3950
|
cannam@89
|
3951
|
cannam@89
|
3952 fi
|
cannam@89
|
3953 fi
|
cannam@89
|
3954 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
|
cannam@89
|
3955 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
|
cannam@89
|
3956 EGREP="$ac_cv_path_EGREP"
|
cannam@89
|
3957
|
cannam@89
|
3958
|
cannam@89
|
3959 { echo "$as_me:$LINENO: checking for fgrep" >&5
|
cannam@89
|
3960 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
|
cannam@89
|
3961 if test "${ac_cv_path_FGREP+set}" = set; then
|
cannam@89
|
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
3963 else
|
cannam@89
|
3964 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
|
cannam@89
|
3965 then ac_cv_path_FGREP="$GREP -F"
|
cannam@89
|
3966 else
|
cannam@89
|
3967 # Extract the first word of "fgrep" to use in msg output
|
cannam@89
|
3968 if test -z "$FGREP"; then
|
cannam@89
|
3969 set dummy fgrep; ac_prog_name=$2
|
cannam@89
|
3970 if test "${ac_cv_path_FGREP+set}" = set; then
|
cannam@89
|
3971 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
3972 else
|
cannam@89
|
3973 ac_path_FGREP_found=false
|
cannam@89
|
3974 # Loop through the user's path and test for each of PROGNAME-LIST
|
cannam@89
|
3975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@89
|
3976 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
cannam@89
|
3977 do
|
cannam@89
|
3978 IFS=$as_save_IFS
|
cannam@89
|
3979 test -z "$as_dir" && as_dir=.
|
cannam@89
|
3980 for ac_prog in fgrep; do
|
cannam@89
|
3981 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@89
|
3982 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
|
cannam@89
|
3983 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
|
cannam@89
|
3984 # Check for GNU ac_path_FGREP and select it if it is found.
|
cannam@89
|
3985 # Check for GNU $ac_path_FGREP
|
cannam@89
|
3986 case `"$ac_path_FGREP" --version 2>&1` in
|
cannam@89
|
3987 *GNU*)
|
cannam@89
|
3988 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
|
cannam@89
|
3989 *)
|
cannam@89
|
3990 ac_count=0
|
cannam@89
|
3991 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
|
cannam@89
|
3992 while :
|
cannam@89
|
3993 do
|
cannam@89
|
3994 cat "conftest.in" "conftest.in" >"conftest.tmp"
|
cannam@89
|
3995 mv "conftest.tmp" "conftest.in"
|
cannam@89
|
3996 cp "conftest.in" "conftest.nl"
|
cannam@89
|
3997 echo 'FGREP' >> "conftest.nl"
|
cannam@89
|
3998 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
cannam@89
|
3999 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
cannam@89
|
4000 ac_count=`expr $ac_count + 1`
|
cannam@89
|
4001 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
|
cannam@89
|
4002 # Best one so far, save it but keep looking for a better one
|
cannam@89
|
4003 ac_cv_path_FGREP="$ac_path_FGREP"
|
cannam@89
|
4004 ac_path_FGREP_max=$ac_count
|
cannam@89
|
4005 fi
|
cannam@89
|
4006 # 10*(2^10) chars as input seems more than enough
|
cannam@89
|
4007 test $ac_count -gt 10 && break
|
cannam@89
|
4008 done
|
cannam@89
|
4009 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
cannam@89
|
4010 esac
|
cannam@89
|
4011
|
cannam@89
|
4012
|
cannam@89
|
4013 $ac_path_FGREP_found && break 3
|
cannam@89
|
4014 done
|
cannam@89
|
4015 done
|
cannam@89
|
4016
|
cannam@89
|
4017 done
|
cannam@89
|
4018 IFS=$as_save_IFS
|
cannam@89
|
4019
|
cannam@89
|
4020
|
cannam@89
|
4021 fi
|
cannam@89
|
4022
|
cannam@89
|
4023 FGREP="$ac_cv_path_FGREP"
|
cannam@89
|
4024 if test -z "$FGREP"; then
|
cannam@89
|
4025 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
|
cannam@89
|
4026 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
|
cannam@89
|
4027 { (exit 1); exit 1; }; }
|
cannam@89
|
4028 fi
|
cannam@89
|
4029
|
cannam@89
|
4030 else
|
cannam@89
|
4031 ac_cv_path_FGREP=$FGREP
|
cannam@89
|
4032 fi
|
cannam@89
|
4033
|
cannam@89
|
4034
|
cannam@89
|
4035 fi
|
cannam@89
|
4036 fi
|
cannam@89
|
4037 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
|
cannam@89
|
4038 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
|
cannam@89
|
4039 FGREP="$ac_cv_path_FGREP"
|
cannam@89
|
4040
|
cannam@89
|
4041
|
cannam@89
|
4042 test -z "$GREP" && GREP=grep
|
cannam@89
|
4043
|
cannam@89
|
4044
|
cannam@89
|
4045
|
cannam@89
|
4046
|
cannam@89
|
4047
|
cannam@89
|
4048
|
cannam@89
|
4049
|
cannam@89
|
4050
|
cannam@89
|
4051
|
cannam@89
|
4052
|
cannam@89
|
4053
|
cannam@89
|
4054
|
cannam@89
|
4055
|
cannam@89
|
4056
|
cannam@89
|
4057
|
cannam@89
|
4058
|
cannam@89
|
4059
|
cannam@89
|
4060
|
cannam@89
|
4061
|
cannam@89
|
4062 # Check whether --with-gnu-ld was given.
|
cannam@89
|
4063 if test "${with_gnu_ld+set}" = set; then
|
cannam@89
|
4064 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
|
cannam@89
|
4065 else
|
cannam@89
|
4066 with_gnu_ld=no
|
cannam@89
|
4067 fi
|
cannam@89
|
4068
|
cannam@89
|
4069 ac_prog=ld
|
cannam@89
|
4070 if test "$GCC" = yes; then
|
cannam@89
|
4071 # Check if gcc -print-prog-name=ld gives a path.
|
cannam@89
|
4072 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
|
cannam@89
|
4073 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
|
cannam@89
|
4074 case $host in
|
cannam@89
|
4075 *-*-mingw*)
|
cannam@89
|
4076 # gcc leaves a trailing carriage return which upsets mingw
|
cannam@89
|
4077 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
cannam@89
|
4078 *)
|
cannam@89
|
4079 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
cannam@89
|
4080 esac
|
cannam@89
|
4081 case $ac_prog in
|
cannam@89
|
4082 # Accept absolute paths.
|
cannam@89
|
4083 [\\/]* | ?:[\\/]*)
|
cannam@89
|
4084 re_direlt='/[^/][^/]*/\.\./'
|
cannam@89
|
4085 # Canonicalize the pathname of ld
|
cannam@89
|
4086 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
|
cannam@89
|
4087 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
|
cannam@89
|
4088 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
|
cannam@89
|
4089 done
|
cannam@89
|
4090 test -z "$LD" && LD="$ac_prog"
|
cannam@89
|
4091 ;;
|
cannam@89
|
4092 "")
|
cannam@89
|
4093 # If it fails, then pretend we aren't using GCC.
|
cannam@89
|
4094 ac_prog=ld
|
cannam@89
|
4095 ;;
|
cannam@89
|
4096 *)
|
cannam@89
|
4097 # If it is relative, then search for the first ld in PATH.
|
cannam@89
|
4098 with_gnu_ld=unknown
|
cannam@89
|
4099 ;;
|
cannam@89
|
4100 esac
|
cannam@89
|
4101 elif test "$with_gnu_ld" = yes; then
|
cannam@89
|
4102 { echo "$as_me:$LINENO: checking for GNU ld" >&5
|
cannam@89
|
4103 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
|
cannam@89
|
4104 else
|
cannam@89
|
4105 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
|
cannam@89
|
4106 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
|
cannam@89
|
4107 fi
|
cannam@89
|
4108 if test "${lt_cv_path_LD+set}" = set; then
|
cannam@89
|
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
4110 else
|
cannam@89
|
4111 if test -z "$LD"; then
|
cannam@89
|
4112 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
cannam@89
|
4113 for ac_dir in $PATH; do
|
cannam@89
|
4114 IFS="$lt_save_ifs"
|
cannam@89
|
4115 test -z "$ac_dir" && ac_dir=.
|
cannam@89
|
4116 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
cannam@89
|
4117 lt_cv_path_LD="$ac_dir/$ac_prog"
|
cannam@89
|
4118 # Check to see if the program is GNU ld. I'd rather use --version,
|
cannam@89
|
4119 # but apparently some variants of GNU ld only accept -v.
|
cannam@89
|
4120 # Break only if it was the GNU/non-GNU ld that we prefer.
|
cannam@89
|
4121 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
|
cannam@89
|
4122 *GNU* | *'with BFD'*)
|
cannam@89
|
4123 test "$with_gnu_ld" != no && break
|
cannam@89
|
4124 ;;
|
cannam@89
|
4125 *)
|
cannam@89
|
4126 test "$with_gnu_ld" != yes && break
|
cannam@89
|
4127 ;;
|
cannam@89
|
4128 esac
|
cannam@89
|
4129 fi
|
cannam@89
|
4130 done
|
cannam@89
|
4131 IFS="$lt_save_ifs"
|
cannam@89
|
4132 else
|
cannam@89
|
4133 lt_cv_path_LD="$LD" # Let the user override the test with a path.
|
cannam@89
|
4134 fi
|
cannam@89
|
4135 fi
|
cannam@89
|
4136
|
cannam@89
|
4137 LD="$lt_cv_path_LD"
|
cannam@89
|
4138 if test -n "$LD"; then
|
cannam@89
|
4139 { echo "$as_me:$LINENO: result: $LD" >&5
|
cannam@89
|
4140 echo "${ECHO_T}$LD" >&6; }
|
cannam@89
|
4141 else
|
cannam@89
|
4142 { echo "$as_me:$LINENO: result: no" >&5
|
cannam@89
|
4143 echo "${ECHO_T}no" >&6; }
|
cannam@89
|
4144 fi
|
cannam@89
|
4145 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
|
cannam@89
|
4146 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
|
cannam@89
|
4147 { (exit 1); exit 1; }; }
|
cannam@89
|
4148 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
|
cannam@89
|
4149 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
|
cannam@89
|
4150 if test "${lt_cv_prog_gnu_ld+set}" = set; then
|
cannam@89
|
4151 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
4152 else
|
cannam@89
|
4153 # I'd rather use --version here, but apparently some GNU lds only accept -v.
|
cannam@89
|
4154 case `$LD -v 2>&1 </dev/null` in
|
cannam@89
|
4155 *GNU* | *'with BFD'*)
|
cannam@89
|
4156 lt_cv_prog_gnu_ld=yes
|
cannam@89
|
4157 ;;
|
cannam@89
|
4158 *)
|
cannam@89
|
4159 lt_cv_prog_gnu_ld=no
|
cannam@89
|
4160 ;;
|
cannam@89
|
4161 esac
|
cannam@89
|
4162 fi
|
cannam@89
|
4163 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
|
cannam@89
|
4164 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
|
cannam@89
|
4165 with_gnu_ld=$lt_cv_prog_gnu_ld
|
cannam@89
|
4166
|
cannam@89
|
4167
|
cannam@89
|
4168
|
cannam@89
|
4169
|
cannam@89
|
4170
|
cannam@89
|
4171
|
cannam@89
|
4172
|
cannam@89
|
4173
|
cannam@89
|
4174
|
cannam@89
|
4175 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
|
cannam@89
|
4176 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
|
cannam@89
|
4177 if test "${lt_cv_path_NM+set}" = set; then
|
cannam@89
|
4178 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
4179 else
|
cannam@89
|
4180 if test -n "$NM"; then
|
cannam@89
|
4181 # Let the user override the test.
|
cannam@89
|
4182 lt_cv_path_NM="$NM"
|
cannam@89
|
4183 else
|
cannam@89
|
4184 lt_nm_to_check="${ac_tool_prefix}nm"
|
cannam@89
|
4185 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
|
cannam@89
|
4186 lt_nm_to_check="$lt_nm_to_check nm"
|
cannam@89
|
4187 fi
|
cannam@89
|
4188 for lt_tmp_nm in $lt_nm_to_check; do
|
cannam@89
|
4189 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
cannam@89
|
4190 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
|
cannam@89
|
4191 IFS="$lt_save_ifs"
|
cannam@89
|
4192 test -z "$ac_dir" && ac_dir=.
|
cannam@89
|
4193 tmp_nm="$ac_dir/$lt_tmp_nm"
|
cannam@89
|
4194 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
|
cannam@89
|
4195 # Check to see if the nm accepts a BSD-compat flag.
|
cannam@89
|
4196 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
|
cannam@89
|
4197 # nm: unknown option "B" ignored
|
cannam@89
|
4198 # Tru64's nm complains that /dev/null is an invalid object file
|
cannam@89
|
4199 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
|
cannam@89
|
4200 */dev/null* | *'Invalid file or object type'*)
|
cannam@89
|
4201 lt_cv_path_NM="$tmp_nm -B"
|
cannam@89
|
4202 break
|
cannam@89
|
4203 ;;
|
cannam@89
|
4204 *)
|
cannam@89
|
4205 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
|
cannam@89
|
4206 */dev/null*)
|
cannam@89
|
4207 lt_cv_path_NM="$tmp_nm -p"
|
cannam@89
|
4208 break
|
cannam@89
|
4209 ;;
|
cannam@89
|
4210 *)
|
cannam@89
|
4211 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
|
cannam@89
|
4212 continue # so that we can try to find one that supports BSD flags
|
cannam@89
|
4213 ;;
|
cannam@89
|
4214 esac
|
cannam@89
|
4215 ;;
|
cannam@89
|
4216 esac
|
cannam@89
|
4217 fi
|
cannam@89
|
4218 done
|
cannam@89
|
4219 IFS="$lt_save_ifs"
|
cannam@89
|
4220 done
|
cannam@89
|
4221 : ${lt_cv_path_NM=no}
|
cannam@89
|
4222 fi
|
cannam@89
|
4223 fi
|
cannam@89
|
4224 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
|
cannam@89
|
4225 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
|
cannam@89
|
4226 if test "$lt_cv_path_NM" != "no"; then
|
cannam@89
|
4227 NM="$lt_cv_path_NM"
|
cannam@89
|
4228 else
|
cannam@89
|
4229 # Didn't find any BSD compatible name lister, look for dumpbin.
|
cannam@89
|
4230 if test -n "$ac_tool_prefix"; then
|
cannam@89
|
4231 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
|
cannam@89
|
4232 do
|
cannam@89
|
4233 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
cannam@89
|
4234 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
cannam@89
|
4235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@89
|
4236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
cannam@89
|
4237 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
|
cannam@89
|
4238 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
4239 else
|
cannam@89
|
4240 if test -n "$DUMPBIN"; then
|
cannam@89
|
4241 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
|
cannam@89
|
4242 else
|
cannam@89
|
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@89
|
4244 for as_dir in $PATH
|
cannam@89
|
4245 do
|
cannam@89
|
4246 IFS=$as_save_IFS
|
cannam@89
|
4247 test -z "$as_dir" && as_dir=.
|
cannam@89
|
4248 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@89
|
4249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
cannam@89
|
4250 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
|
cannam@89
|
4251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@89
|
4252 break 2
|
cannam@89
|
4253 fi
|
cannam@89
|
4254 done
|
cannam@89
|
4255 done
|
cannam@89
|
4256 IFS=$as_save_IFS
|
cannam@89
|
4257
|
cannam@89
|
4258 fi
|
cannam@89
|
4259 fi
|
cannam@89
|
4260 DUMPBIN=$ac_cv_prog_DUMPBIN
|
cannam@89
|
4261 if test -n "$DUMPBIN"; then
|
cannam@89
|
4262 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
|
cannam@89
|
4263 echo "${ECHO_T}$DUMPBIN" >&6; }
|
cannam@89
|
4264 else
|
cannam@89
|
4265 { echo "$as_me:$LINENO: result: no" >&5
|
cannam@89
|
4266 echo "${ECHO_T}no" >&6; }
|
cannam@89
|
4267 fi
|
cannam@89
|
4268
|
cannam@89
|
4269
|
cannam@89
|
4270 test -n "$DUMPBIN" && break
|
cannam@89
|
4271 done
|
cannam@89
|
4272 fi
|
cannam@89
|
4273 if test -z "$DUMPBIN"; then
|
cannam@89
|
4274 ac_ct_DUMPBIN=$DUMPBIN
|
cannam@89
|
4275 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
|
cannam@89
|
4276 do
|
cannam@89
|
4277 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
cannam@89
|
4278 set dummy $ac_prog; ac_word=$2
|
cannam@89
|
4279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@89
|
4280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
cannam@89
|
4281 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
|
cannam@89
|
4282 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
4283 else
|
cannam@89
|
4284 if test -n "$ac_ct_DUMPBIN"; then
|
cannam@89
|
4285 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
|
cannam@89
|
4286 else
|
cannam@89
|
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@89
|
4288 for as_dir in $PATH
|
cannam@89
|
4289 do
|
cannam@89
|
4290 IFS=$as_save_IFS
|
cannam@89
|
4291 test -z "$as_dir" && as_dir=.
|
cannam@89
|
4292 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@89
|
4293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
cannam@89
|
4294 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
|
cannam@89
|
4295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@89
|
4296 break 2
|
cannam@89
|
4297 fi
|
cannam@89
|
4298 done
|
cannam@89
|
4299 done
|
cannam@89
|
4300 IFS=$as_save_IFS
|
cannam@89
|
4301
|
cannam@89
|
4302 fi
|
cannam@89
|
4303 fi
|
cannam@89
|
4304 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
|
cannam@89
|
4305 if test -n "$ac_ct_DUMPBIN"; then
|
cannam@89
|
4306 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
|
cannam@89
|
4307 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
|
cannam@89
|
4308 else
|
cannam@89
|
4309 { echo "$as_me:$LINENO: result: no" >&5
|
cannam@89
|
4310 echo "${ECHO_T}no" >&6; }
|
cannam@89
|
4311 fi
|
cannam@89
|
4312
|
cannam@89
|
4313
|
cannam@89
|
4314 test -n "$ac_ct_DUMPBIN" && break
|
cannam@89
|
4315 done
|
cannam@89
|
4316
|
cannam@89
|
4317 if test "x$ac_ct_DUMPBIN" = x; then
|
cannam@89
|
4318 DUMPBIN=":"
|
cannam@89
|
4319 else
|
cannam@89
|
4320 case $cross_compiling:$ac_tool_warned in
|
cannam@89
|
4321 yes:)
|
cannam@89
|
4322 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
cannam@89
|
4323 whose name does not start with the host triplet. If you think this
|
cannam@89
|
4324 configuration is useful to you, please write to autoconf@gnu.org." >&5
|
cannam@89
|
4325 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
cannam@89
|
4326 whose name does not start with the host triplet. If you think this
|
cannam@89
|
4327 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
cannam@89
|
4328 ac_tool_warned=yes ;;
|
cannam@89
|
4329 esac
|
cannam@89
|
4330 DUMPBIN=$ac_ct_DUMPBIN
|
cannam@89
|
4331 fi
|
cannam@89
|
4332 fi
|
cannam@89
|
4333
|
cannam@89
|
4334
|
cannam@89
|
4335 if test "$DUMPBIN" != ":"; then
|
cannam@89
|
4336 NM="$DUMPBIN"
|
cannam@89
|
4337 fi
|
cannam@89
|
4338 fi
|
cannam@89
|
4339 test -z "$NM" && NM=nm
|
cannam@89
|
4340
|
cannam@89
|
4341
|
cannam@89
|
4342
|
cannam@89
|
4343
|
cannam@89
|
4344
|
cannam@89
|
4345
|
cannam@89
|
4346 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
|
cannam@89
|
4347 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
|
cannam@89
|
4348 if test "${lt_cv_nm_interface+set}" = set; then
|
cannam@89
|
4349 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
4350 else
|
cannam@89
|
4351 lt_cv_nm_interface="BSD nm"
|
cannam@89
|
4352 echo "int some_variable = 0;" > conftest.$ac_ext
|
cannam@89
|
4353 (eval echo "\"\$as_me:4353: $ac_compile\"" >&5)
|
cannam@89
|
4354 (eval "$ac_compile" 2>conftest.err)
|
cannam@89
|
4355 cat conftest.err >&5
|
cannam@89
|
4356 (eval echo "\"\$as_me:4356: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
|
cannam@89
|
4357 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
|
cannam@89
|
4358 cat conftest.err >&5
|
cannam@89
|
4359 (eval echo "\"\$as_me:4359: output\"" >&5)
|
cannam@89
|
4360 cat conftest.out >&5
|
cannam@89
|
4361 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
|
cannam@89
|
4362 lt_cv_nm_interface="MS dumpbin"
|
cannam@89
|
4363 fi
|
cannam@89
|
4364 rm -f conftest*
|
cannam@89
|
4365 fi
|
cannam@89
|
4366 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
|
cannam@89
|
4367 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
|
cannam@89
|
4368
|
cannam@89
|
4369 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
|
cannam@89
|
4370 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
|
cannam@89
|
4371 LN_S=$as_ln_s
|
cannam@89
|
4372 if test "$LN_S" = "ln -s"; then
|
cannam@89
|
4373 { echo "$as_me:$LINENO: result: yes" >&5
|
cannam@89
|
4374 echo "${ECHO_T}yes" >&6; }
|
cannam@89
|
4375 else
|
cannam@89
|
4376 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
|
cannam@89
|
4377 echo "${ECHO_T}no, using $LN_S" >&6; }
|
cannam@89
|
4378 fi
|
cannam@89
|
4379
|
cannam@89
|
4380 # find the maximum length of command line arguments
|
cannam@89
|
4381 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
|
cannam@89
|
4382 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
|
cannam@89
|
4383 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
|
cannam@89
|
4384 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
4385 else
|
cannam@89
|
4386 i=0
|
cannam@89
|
4387 teststring="ABCD"
|
cannam@89
|
4388
|
cannam@89
|
4389 case $build_os in
|
cannam@89
|
4390 msdosdjgpp*)
|
cannam@89
|
4391 # On DJGPP, this test can blow up pretty badly due to problems in libc
|
cannam@89
|
4392 # (any single argument exceeding 2000 bytes causes a buffer overrun
|
cannam@89
|
4393 # during glob expansion). Even if it were fixed, the result of this
|
cannam@89
|
4394 # check would be larger than it should be.
|
cannam@89
|
4395 lt_cv_sys_max_cmd_len=12288; # 12K is about right
|
cannam@89
|
4396 ;;
|
cannam@89
|
4397
|
cannam@89
|
4398 gnu*)
|
cannam@89
|
4399 # Under GNU Hurd, this test is not required because there is
|
cannam@89
|
4400 # no limit to the length of command line arguments.
|
cannam@89
|
4401 # Libtool will interpret -1 as no limit whatsoever
|
cannam@89
|
4402 lt_cv_sys_max_cmd_len=-1;
|
cannam@89
|
4403 ;;
|
cannam@89
|
4404
|
cannam@89
|
4405 cygwin* | mingw*)
|
cannam@89
|
4406 # On Win9x/ME, this test blows up -- it succeeds, but takes
|
cannam@89
|
4407 # about 5 minutes as the teststring grows exponentially.
|
cannam@89
|
4408 # Worse, since 9x/ME are not pre-emptively multitasking,
|
cannam@89
|
4409 # you end up with a "frozen" computer, even though with patience
|
cannam@89
|
4410 # the test eventually succeeds (with a max line length of 256k).
|
cannam@89
|
4411 # Instead, let's just punt: use the minimum linelength reported by
|
cannam@89
|
4412 # all of the supported platforms: 8192 (on NT/2K/XP).
|
cannam@89
|
4413 lt_cv_sys_max_cmd_len=8192;
|
cannam@89
|
4414 ;;
|
cannam@89
|
4415
|
cannam@89
|
4416 amigaos*)
|
cannam@89
|
4417 # On AmigaOS with pdksh, this test takes hours, literally.
|
cannam@89
|
4418 # So we just punt and use a minimum line length of 8192.
|
cannam@89
|
4419 lt_cv_sys_max_cmd_len=8192;
|
cannam@89
|
4420 ;;
|
cannam@89
|
4421
|
cannam@89
|
4422 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
|
cannam@89
|
4423 # This has been around since 386BSD, at least. Likely further.
|
cannam@89
|
4424 if test -x /sbin/sysctl; then
|
cannam@89
|
4425 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
|
cannam@89
|
4426 elif test -x /usr/sbin/sysctl; then
|
cannam@89
|
4427 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
|
cannam@89
|
4428 else
|
cannam@89
|
4429 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
|
cannam@89
|
4430 fi
|
cannam@89
|
4431 # And add a safety zone
|
cannam@89
|
4432 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
cannam@89
|
4433 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
cannam@89
|
4434 ;;
|
cannam@89
|
4435
|
cannam@89
|
4436 interix*)
|
cannam@89
|
4437 # We know the value 262144 and hardcode it with a safety zone (like BSD)
|
cannam@89
|
4438 lt_cv_sys_max_cmd_len=196608
|
cannam@89
|
4439 ;;
|
cannam@89
|
4440
|
cannam@89
|
4441 osf*)
|
cannam@89
|
4442 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
|
cannam@89
|
4443 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
|
cannam@89
|
4444 # nice to cause kernel panics so lets avoid the loop below.
|
cannam@89
|
4445 # First set a reasonable default.
|
cannam@89
|
4446 lt_cv_sys_max_cmd_len=16384
|
cannam@89
|
4447 #
|
cannam@89
|
4448 if test -x /sbin/sysconfig; then
|
cannam@89
|
4449 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
|
cannam@89
|
4450 *1*) lt_cv_sys_max_cmd_len=-1 ;;
|
cannam@89
|
4451 esac
|
cannam@89
|
4452 fi
|
cannam@89
|
4453 ;;
|
cannam@89
|
4454 sco3.2v5*)
|
cannam@89
|
4455 lt_cv_sys_max_cmd_len=102400
|
cannam@89
|
4456 ;;
|
cannam@89
|
4457 sysv5* | sco5v6* | sysv4.2uw2*)
|
cannam@89
|
4458 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
|
cannam@89
|
4459 if test -n "$kargmax"; then
|
cannam@89
|
4460 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
|
cannam@89
|
4461 else
|
cannam@89
|
4462 lt_cv_sys_max_cmd_len=32768
|
cannam@89
|
4463 fi
|
cannam@89
|
4464 ;;
|
cannam@89
|
4465 *)
|
cannam@89
|
4466 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
|
cannam@89
|
4467 if test -n "$lt_cv_sys_max_cmd_len"; then
|
cannam@89
|
4468 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
cannam@89
|
4469 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
cannam@89
|
4470 else
|
cannam@89
|
4471 # Make teststring a little bigger before we do anything with it.
|
cannam@89
|
4472 # a 1K string should be a reasonable start.
|
cannam@89
|
4473 for i in 1 2 3 4 5 6 7 8 ; do
|
cannam@89
|
4474 teststring=$teststring$teststring
|
cannam@89
|
4475 done
|
cannam@89
|
4476 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
|
cannam@89
|
4477 # If test is not a shell built-in, we'll probably end up computing a
|
cannam@89
|
4478 # maximum length that is only half of the actual maximum length, but
|
cannam@89
|
4479 # we can't tell.
|
cannam@89
|
4480 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
|
cannam@89
|
4481 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
|
cannam@89
|
4482 test $i != 17 # 1/2 MB should be enough
|
cannam@89
|
4483 do
|
cannam@89
|
4484 i=`expr $i + 1`
|
cannam@89
|
4485 teststring=$teststring$teststring
|
cannam@89
|
4486 done
|
cannam@89
|
4487 # Only check the string length outside the loop.
|
cannam@89
|
4488 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
|
cannam@89
|
4489 teststring=
|
cannam@89
|
4490 # Add a significant safety factor because C++ compilers can tack on
|
cannam@89
|
4491 # massive amounts of additional arguments before passing them to the
|
cannam@89
|
4492 # linker. It appears as though 1/2 is a usable value.
|
cannam@89
|
4493 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
|
cannam@89
|
4494 fi
|
cannam@89
|
4495 ;;
|
cannam@89
|
4496 esac
|
cannam@89
|
4497
|
cannam@89
|
4498 fi
|
cannam@89
|
4499
|
cannam@89
|
4500 if test -n $lt_cv_sys_max_cmd_len ; then
|
cannam@89
|
4501 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
|
cannam@89
|
4502 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
|
cannam@89
|
4503 else
|
cannam@89
|
4504 { echo "$as_me:$LINENO: result: none" >&5
|
cannam@89
|
4505 echo "${ECHO_T}none" >&6; }
|
cannam@89
|
4506 fi
|
cannam@89
|
4507 max_cmd_len=$lt_cv_sys_max_cmd_len
|
cannam@89
|
4508
|
cannam@89
|
4509
|
cannam@89
|
4510
|
cannam@89
|
4511
|
cannam@89
|
4512
|
cannam@89
|
4513
|
cannam@89
|
4514 : ${CP="cp -f"}
|
cannam@89
|
4515 : ${MV="mv -f"}
|
cannam@89
|
4516 : ${RM="rm -f"}
|
cannam@89
|
4517
|
cannam@89
|
4518 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
|
cannam@89
|
4519 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
|
cannam@89
|
4520 # Try some XSI features
|
cannam@89
|
4521 xsi_shell=no
|
cannam@89
|
4522 ( _lt_dummy="a/b/c"
|
cannam@89
|
4523 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
|
cannam@89
|
4524 = c,a/b,, \
|
cannam@89
|
4525 && eval 'test $(( 1 + 1 )) -eq 2 \
|
cannam@89
|
4526 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
|
cannam@89
|
4527 && xsi_shell=yes
|
cannam@89
|
4528 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
|
cannam@89
|
4529 echo "${ECHO_T}$xsi_shell" >&6; }
|
cannam@89
|
4530
|
cannam@89
|
4531
|
cannam@89
|
4532 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
|
cannam@89
|
4533 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
|
cannam@89
|
4534 lt_shell_append=no
|
cannam@89
|
4535 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
|
cannam@89
|
4536 >/dev/null 2>&1 \
|
cannam@89
|
4537 && lt_shell_append=yes
|
cannam@89
|
4538 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
|
cannam@89
|
4539 echo "${ECHO_T}$lt_shell_append" >&6; }
|
cannam@89
|
4540
|
cannam@89
|
4541
|
cannam@89
|
4542 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
cannam@89
|
4543 lt_unset=unset
|
cannam@89
|
4544 else
|
cannam@89
|
4545 lt_unset=false
|
cannam@89
|
4546 fi
|
cannam@89
|
4547
|
cannam@89
|
4548
|
cannam@89
|
4549
|
cannam@89
|
4550
|
cannam@89
|
4551
|
cannam@89
|
4552 # test EBCDIC or ASCII
|
cannam@89
|
4553 case `echo X|tr X '\101'` in
|
cannam@89
|
4554 A) # ASCII based system
|
cannam@89
|
4555 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
|
cannam@89
|
4556 lt_SP2NL='tr \040 \012'
|
cannam@89
|
4557 lt_NL2SP='tr \015\012 \040\040'
|
cannam@89
|
4558 ;;
|
cannam@89
|
4559 *) # EBCDIC based system
|
cannam@89
|
4560 lt_SP2NL='tr \100 \n'
|
cannam@89
|
4561 lt_NL2SP='tr \r\n \100\100'
|
cannam@89
|
4562 ;;
|
cannam@89
|
4563 esac
|
cannam@89
|
4564
|
cannam@89
|
4565
|
cannam@89
|
4566
|
cannam@89
|
4567
|
cannam@89
|
4568
|
cannam@89
|
4569
|
cannam@89
|
4570
|
cannam@89
|
4571
|
cannam@89
|
4572
|
cannam@89
|
4573 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
|
cannam@89
|
4574 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
|
cannam@89
|
4575 if test "${lt_cv_ld_reload_flag+set}" = set; then
|
cannam@89
|
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
4577 else
|
cannam@89
|
4578 lt_cv_ld_reload_flag='-r'
|
cannam@89
|
4579 fi
|
cannam@89
|
4580 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
|
cannam@89
|
4581 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
|
cannam@89
|
4582 reload_flag=$lt_cv_ld_reload_flag
|
cannam@89
|
4583 case $reload_flag in
|
cannam@89
|
4584 "" | " "*) ;;
|
cannam@89
|
4585 *) reload_flag=" $reload_flag" ;;
|
cannam@89
|
4586 esac
|
cannam@89
|
4587 reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
cannam@89
|
4588 case $host_os in
|
cannam@89
|
4589 darwin*)
|
cannam@89
|
4590 if test "$GCC" = yes; then
|
cannam@89
|
4591 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
|
cannam@89
|
4592 else
|
cannam@89
|
4593 reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
cannam@89
|
4594 fi
|
cannam@89
|
4595 ;;
|
cannam@89
|
4596 esac
|
cannam@89
|
4597
|
cannam@89
|
4598
|
cannam@89
|
4599
|
cannam@89
|
4600
|
cannam@89
|
4601
|
cannam@89
|
4602
|
cannam@89
|
4603
|
cannam@89
|
4604
|
cannam@89
|
4605
|
cannam@89
|
4606
|
cannam@89
|
4607 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
|
cannam@89
|
4608 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
|
cannam@89
|
4609 if test "${lt_cv_deplibs_check_method+set}" = set; then
|
cannam@89
|
4610 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
4611 else
|
cannam@89
|
4612 lt_cv_file_magic_cmd='$MAGIC_CMD'
|
cannam@89
|
4613 lt_cv_file_magic_test_file=
|
cannam@89
|
4614 lt_cv_deplibs_check_method='unknown'
|
cannam@89
|
4615 # Need to set the preceding variable on all platforms that support
|
cannam@89
|
4616 # interlibrary dependencies.
|
cannam@89
|
4617 # 'none' -- dependencies not supported.
|
cannam@89
|
4618 # `unknown' -- same as none, but documents that we really don't know.
|
cannam@89
|
4619 # 'pass_all' -- all dependencies passed with no checks.
|
cannam@89
|
4620 # 'test_compile' -- check by making test program.
|
cannam@89
|
4621 # 'file_magic [[regex]]' -- check by looking for files in library path
|
cannam@89
|
4622 # which responds to the $file_magic_cmd with a given extended regex.
|
cannam@89
|
4623 # If you have `file' or equivalent on your system and you're not sure
|
cannam@89
|
4624 # whether `pass_all' will *always* work, you probably want this one.
|
cannam@89
|
4625
|
cannam@89
|
4626 case $host_os in
|
cannam@89
|
4627 aix[4-9]*)
|
cannam@89
|
4628 lt_cv_deplibs_check_method=pass_all
|
cannam@89
|
4629 ;;
|
cannam@89
|
4630
|
cannam@89
|
4631 beos*)
|
cannam@89
|
4632 lt_cv_deplibs_check_method=pass_all
|
cannam@89
|
4633 ;;
|
cannam@89
|
4634
|
cannam@89
|
4635 bsdi[45]*)
|
cannam@89
|
4636 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
|
cannam@89
|
4637 lt_cv_file_magic_cmd='/usr/bin/file -L'
|
cannam@89
|
4638 lt_cv_file_magic_test_file=/shlib/libc.so
|
cannam@89
|
4639 ;;
|
cannam@89
|
4640
|
cannam@89
|
4641 cygwin*)
|
cannam@89
|
4642 # func_win32_libid is a shell function defined in ltmain.sh
|
cannam@89
|
4643 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
cannam@89
|
4644 lt_cv_file_magic_cmd='func_win32_libid'
|
cannam@89
|
4645 ;;
|
cannam@89
|
4646
|
cannam@89
|
4647 mingw* | pw32*)
|
cannam@89
|
4648 # Base MSYS/MinGW do not provide the 'file' command needed by
|
cannam@89
|
4649 # func_win32_libid shell function, so use a weaker test based on 'objdump',
|
cannam@89
|
4650 # unless we find 'file', for example because we are cross-compiling.
|
cannam@89
|
4651 if ( file / ) >/dev/null 2>&1; then
|
cannam@89
|
4652 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
cannam@89
|
4653 lt_cv_file_magic_cmd='func_win32_libid'
|
cannam@89
|
4654 else
|
cannam@89
|
4655 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
cannam@89
|
4656 lt_cv_file_magic_cmd='$OBJDUMP -f'
|
cannam@89
|
4657 fi
|
cannam@89
|
4658 ;;
|
cannam@89
|
4659
|
cannam@89
|
4660 darwin* | rhapsody*)
|
cannam@89
|
4661 lt_cv_deplibs_check_method=pass_all
|
cannam@89
|
4662 ;;
|
cannam@89
|
4663
|
cannam@89
|
4664 freebsd* | dragonfly*)
|
cannam@89
|
4665 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
|
cannam@89
|
4666 case $host_cpu in
|
cannam@89
|
4667 i*86 )
|
cannam@89
|
4668 # Not sure whether the presence of OpenBSD here was a mistake.
|
cannam@89
|
4669 # Let's accept both of them until this is cleared up.
|
cannam@89
|
4670 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
|
cannam@89
|
4671 lt_cv_file_magic_cmd=/usr/bin/file
|
cannam@89
|
4672 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
cannam@89
|
4673 ;;
|
cannam@89
|
4674 esac
|
cannam@89
|
4675 else
|
cannam@89
|
4676 lt_cv_deplibs_check_method=pass_all
|
cannam@89
|
4677 fi
|
cannam@89
|
4678 ;;
|
cannam@89
|
4679
|
cannam@89
|
4680 gnu*)
|
cannam@89
|
4681 lt_cv_deplibs_check_method=pass_all
|
cannam@89
|
4682 ;;
|
cannam@89
|
4683
|
cannam@89
|
4684 hpux10.20* | hpux11*)
|
cannam@89
|
4685 lt_cv_file_magic_cmd=/usr/bin/file
|
cannam@89
|
4686 case $host_cpu in
|
cannam@89
|
4687 ia64*)
|
cannam@89
|
4688 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
|
cannam@89
|
4689 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
|
cannam@89
|
4690 ;;
|
cannam@89
|
4691 hppa*64*)
|
cannam@89
|
4692 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
|
cannam@89
|
4693 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
|
cannam@89
|
4694 ;;
|
cannam@89
|
4695 *)
|
cannam@89
|
4696 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
|
cannam@89
|
4697 lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
cannam@89
|
4698 ;;
|
cannam@89
|
4699 esac
|
cannam@89
|
4700 ;;
|
cannam@89
|
4701
|
cannam@89
|
4702 interix[3-9]*)
|
cannam@89
|
4703 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
|
cannam@89
|
4704 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
|
cannam@89
|
4705 ;;
|
cannam@89
|
4706
|
cannam@89
|
4707 irix5* | irix6* | nonstopux*)
|
cannam@89
|
4708 case $LD in
|
cannam@89
|
4709 *-32|*"-32 ") libmagic=32-bit;;
|
cannam@89
|
4710 *-n32|*"-n32 ") libmagic=N32;;
|
cannam@89
|
4711 *-64|*"-64 ") libmagic=64-bit;;
|
cannam@89
|
4712 *) libmagic=never-match;;
|
cannam@89
|
4713 esac
|
cannam@89
|
4714 lt_cv_deplibs_check_method=pass_all
|
cannam@89
|
4715 ;;
|
cannam@89
|
4716
|
cannam@89
|
4717 # This must be Linux ELF.
|
cannam@89
|
4718 linux* | k*bsd*-gnu)
|
cannam@89
|
4719 lt_cv_deplibs_check_method=pass_all
|
cannam@89
|
4720 ;;
|
cannam@89
|
4721
|
cannam@89
|
4722 netbsd* | netbsdelf*-gnu)
|
cannam@89
|
4723 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
|
cannam@89
|
4724 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
|
cannam@89
|
4725 else
|
cannam@89
|
4726 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
|
cannam@89
|
4727 fi
|
cannam@89
|
4728 ;;
|
cannam@89
|
4729
|
cannam@89
|
4730 newos6*)
|
cannam@89
|
4731 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
|
cannam@89
|
4732 lt_cv_file_magic_cmd=/usr/bin/file
|
cannam@89
|
4733 lt_cv_file_magic_test_file=/usr/lib/libnls.so
|
cannam@89
|
4734 ;;
|
cannam@89
|
4735
|
cannam@89
|
4736 *nto* | *qnx*)
|
cannam@89
|
4737 lt_cv_deplibs_check_method=pass_all
|
cannam@89
|
4738 ;;
|
cannam@89
|
4739
|
cannam@89
|
4740 openbsd*)
|
cannam@89
|
4741 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
cannam@89
|
4742 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
|
cannam@89
|
4743 else
|
cannam@89
|
4744 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
|
cannam@89
|
4745 fi
|
cannam@89
|
4746 ;;
|
cannam@89
|
4747
|
cannam@89
|
4748 osf3* | osf4* | osf5*)
|
cannam@89
|
4749 lt_cv_deplibs_check_method=pass_all
|
cannam@89
|
4750 ;;
|
cannam@89
|
4751
|
cannam@89
|
4752 rdos*)
|
cannam@89
|
4753 lt_cv_deplibs_check_method=pass_all
|
cannam@89
|
4754 ;;
|
cannam@89
|
4755
|
cannam@89
|
4756 solaris*)
|
cannam@89
|
4757 lt_cv_deplibs_check_method=pass_all
|
cannam@89
|
4758 ;;
|
cannam@89
|
4759
|
cannam@89
|
4760 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
cannam@89
|
4761 lt_cv_deplibs_check_method=pass_all
|
cannam@89
|
4762 ;;
|
cannam@89
|
4763
|
cannam@89
|
4764 sysv4 | sysv4.3*)
|
cannam@89
|
4765 case $host_vendor in
|
cannam@89
|
4766 motorola)
|
cannam@89
|
4767 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]'
|
cannam@89
|
4768 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
cannam@89
|
4769 ;;
|
cannam@89
|
4770 ncr)
|
cannam@89
|
4771 lt_cv_deplibs_check_method=pass_all
|
cannam@89
|
4772 ;;
|
cannam@89
|
4773 sequent)
|
cannam@89
|
4774 lt_cv_file_magic_cmd='/bin/file'
|
cannam@89
|
4775 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
|
cannam@89
|
4776 ;;
|
cannam@89
|
4777 sni)
|
cannam@89
|
4778 lt_cv_file_magic_cmd='/bin/file'
|
cannam@89
|
4779 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
|
cannam@89
|
4780 lt_cv_file_magic_test_file=/lib/libc.so
|
cannam@89
|
4781 ;;
|
cannam@89
|
4782 siemens)
|
cannam@89
|
4783 lt_cv_deplibs_check_method=pass_all
|
cannam@89
|
4784 ;;
|
cannam@89
|
4785 pc)
|
cannam@89
|
4786 lt_cv_deplibs_check_method=pass_all
|
cannam@89
|
4787 ;;
|
cannam@89
|
4788 esac
|
cannam@89
|
4789 ;;
|
cannam@89
|
4790
|
cannam@89
|
4791 tpf*)
|
cannam@89
|
4792 lt_cv_deplibs_check_method=pass_all
|
cannam@89
|
4793 ;;
|
cannam@89
|
4794 esac
|
cannam@89
|
4795
|
cannam@89
|
4796 fi
|
cannam@89
|
4797 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
|
cannam@89
|
4798 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
|
cannam@89
|
4799 file_magic_cmd=$lt_cv_file_magic_cmd
|
cannam@89
|
4800 deplibs_check_method=$lt_cv_deplibs_check_method
|
cannam@89
|
4801 test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
cannam@89
|
4802
|
cannam@89
|
4803
|
cannam@89
|
4804
|
cannam@89
|
4805
|
cannam@89
|
4806
|
cannam@89
|
4807
|
cannam@89
|
4808
|
cannam@89
|
4809
|
cannam@89
|
4810
|
cannam@89
|
4811
|
cannam@89
|
4812
|
cannam@89
|
4813
|
cannam@89
|
4814 if test -n "$ac_tool_prefix"; then
|
cannam@89
|
4815 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
|
cannam@89
|
4816 set dummy ${ac_tool_prefix}ar; ac_word=$2
|
cannam@89
|
4817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@89
|
4818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
cannam@89
|
4819 if test "${ac_cv_prog_AR+set}" = set; then
|
cannam@89
|
4820 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
4821 else
|
cannam@89
|
4822 if test -n "$AR"; then
|
cannam@89
|
4823 ac_cv_prog_AR="$AR" # Let the user override the test.
|
cannam@89
|
4824 else
|
cannam@89
|
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@89
|
4826 for as_dir in $PATH
|
cannam@89
|
4827 do
|
cannam@89
|
4828 IFS=$as_save_IFS
|
cannam@89
|
4829 test -z "$as_dir" && as_dir=.
|
cannam@89
|
4830 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@89
|
4831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
cannam@89
|
4832 ac_cv_prog_AR="${ac_tool_prefix}ar"
|
cannam@89
|
4833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@89
|
4834 break 2
|
cannam@89
|
4835 fi
|
cannam@89
|
4836 done
|
cannam@89
|
4837 done
|
cannam@89
|
4838 IFS=$as_save_IFS
|
cannam@89
|
4839
|
cannam@89
|
4840 fi
|
cannam@89
|
4841 fi
|
cannam@89
|
4842 AR=$ac_cv_prog_AR
|
cannam@89
|
4843 if test -n "$AR"; then
|
cannam@89
|
4844 { echo "$as_me:$LINENO: result: $AR" >&5
|
cannam@89
|
4845 echo "${ECHO_T}$AR" >&6; }
|
cannam@89
|
4846 else
|
cannam@89
|
4847 { echo "$as_me:$LINENO: result: no" >&5
|
cannam@89
|
4848 echo "${ECHO_T}no" >&6; }
|
cannam@89
|
4849 fi
|
cannam@89
|
4850
|
cannam@89
|
4851
|
cannam@89
|
4852 fi
|
cannam@89
|
4853 if test -z "$ac_cv_prog_AR"; then
|
cannam@89
|
4854 ac_ct_AR=$AR
|
cannam@89
|
4855 # Extract the first word of "ar", so it can be a program name with args.
|
cannam@89
|
4856 set dummy ar; ac_word=$2
|
cannam@89
|
4857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@89
|
4858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
cannam@89
|
4859 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
|
cannam@89
|
4860 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
4861 else
|
cannam@89
|
4862 if test -n "$ac_ct_AR"; then
|
cannam@89
|
4863 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
|
cannam@89
|
4864 else
|
cannam@89
|
4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@89
|
4866 for as_dir in $PATH
|
cannam@89
|
4867 do
|
cannam@89
|
4868 IFS=$as_save_IFS
|
cannam@89
|
4869 test -z "$as_dir" && as_dir=.
|
cannam@89
|
4870 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@89
|
4871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
cannam@89
|
4872 ac_cv_prog_ac_ct_AR="ar"
|
cannam@89
|
4873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@89
|
4874 break 2
|
cannam@89
|
4875 fi
|
cannam@89
|
4876 done
|
cannam@89
|
4877 done
|
cannam@89
|
4878 IFS=$as_save_IFS
|
cannam@89
|
4879
|
cannam@89
|
4880 fi
|
cannam@89
|
4881 fi
|
cannam@89
|
4882 ac_ct_AR=$ac_cv_prog_ac_ct_AR
|
cannam@89
|
4883 if test -n "$ac_ct_AR"; then
|
cannam@89
|
4884 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
|
cannam@89
|
4885 echo "${ECHO_T}$ac_ct_AR" >&6; }
|
cannam@89
|
4886 else
|
cannam@89
|
4887 { echo "$as_me:$LINENO: result: no" >&5
|
cannam@89
|
4888 echo "${ECHO_T}no" >&6; }
|
cannam@89
|
4889 fi
|
cannam@89
|
4890
|
cannam@89
|
4891 if test "x$ac_ct_AR" = x; then
|
cannam@89
|
4892 AR="false"
|
cannam@89
|
4893 else
|
cannam@89
|
4894 case $cross_compiling:$ac_tool_warned in
|
cannam@89
|
4895 yes:)
|
cannam@89
|
4896 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
cannam@89
|
4897 whose name does not start with the host triplet. If you think this
|
cannam@89
|
4898 configuration is useful to you, please write to autoconf@gnu.org." >&5
|
cannam@89
|
4899 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
cannam@89
|
4900 whose name does not start with the host triplet. If you think this
|
cannam@89
|
4901 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
cannam@89
|
4902 ac_tool_warned=yes ;;
|
cannam@89
|
4903 esac
|
cannam@89
|
4904 AR=$ac_ct_AR
|
cannam@89
|
4905 fi
|
cannam@89
|
4906 else
|
cannam@89
|
4907 AR="$ac_cv_prog_AR"
|
cannam@89
|
4908 fi
|
cannam@89
|
4909
|
cannam@89
|
4910 test -z "$AR" && AR=ar
|
cannam@89
|
4911 test -z "$AR_FLAGS" && AR_FLAGS=cru
|
cannam@89
|
4912
|
cannam@89
|
4913
|
cannam@89
|
4914
|
cannam@89
|
4915
|
cannam@89
|
4916
|
cannam@89
|
4917
|
cannam@89
|
4918
|
cannam@89
|
4919
|
cannam@89
|
4920
|
cannam@89
|
4921
|
cannam@89
|
4922
|
cannam@89
|
4923 if test -n "$ac_tool_prefix"; then
|
cannam@89
|
4924 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
cannam@89
|
4925 set dummy ${ac_tool_prefix}strip; ac_word=$2
|
cannam@89
|
4926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@89
|
4927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
cannam@89
|
4928 if test "${ac_cv_prog_STRIP+set}" = set; then
|
cannam@89
|
4929 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
4930 else
|
cannam@89
|
4931 if test -n "$STRIP"; then
|
cannam@89
|
4932 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
cannam@89
|
4933 else
|
cannam@89
|
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@89
|
4935 for as_dir in $PATH
|
cannam@89
|
4936 do
|
cannam@89
|
4937 IFS=$as_save_IFS
|
cannam@89
|
4938 test -z "$as_dir" && as_dir=.
|
cannam@89
|
4939 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@89
|
4940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
cannam@89
|
4941 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
cannam@89
|
4942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@89
|
4943 break 2
|
cannam@89
|
4944 fi
|
cannam@89
|
4945 done
|
cannam@89
|
4946 done
|
cannam@89
|
4947 IFS=$as_save_IFS
|
cannam@89
|
4948
|
cannam@89
|
4949 fi
|
cannam@89
|
4950 fi
|
cannam@89
|
4951 STRIP=$ac_cv_prog_STRIP
|
cannam@89
|
4952 if test -n "$STRIP"; then
|
cannam@89
|
4953 { echo "$as_me:$LINENO: result: $STRIP" >&5
|
cannam@89
|
4954 echo "${ECHO_T}$STRIP" >&6; }
|
cannam@89
|
4955 else
|
cannam@89
|
4956 { echo "$as_me:$LINENO: result: no" >&5
|
cannam@89
|
4957 echo "${ECHO_T}no" >&6; }
|
cannam@89
|
4958 fi
|
cannam@89
|
4959
|
cannam@89
|
4960
|
cannam@89
|
4961 fi
|
cannam@89
|
4962 if test -z "$ac_cv_prog_STRIP"; then
|
cannam@89
|
4963 ac_ct_STRIP=$STRIP
|
cannam@89
|
4964 # Extract the first word of "strip", so it can be a program name with args.
|
cannam@89
|
4965 set dummy strip; ac_word=$2
|
cannam@89
|
4966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@89
|
4967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
cannam@89
|
4968 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
|
cannam@89
|
4969 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
4970 else
|
cannam@89
|
4971 if test -n "$ac_ct_STRIP"; then
|
cannam@89
|
4972 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
|
cannam@89
|
4973 else
|
cannam@89
|
4974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@89
|
4975 for as_dir in $PATH
|
cannam@89
|
4976 do
|
cannam@89
|
4977 IFS=$as_save_IFS
|
cannam@89
|
4978 test -z "$as_dir" && as_dir=.
|
cannam@89
|
4979 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@89
|
4980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
cannam@89
|
4981 ac_cv_prog_ac_ct_STRIP="strip"
|
cannam@89
|
4982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@89
|
4983 break 2
|
cannam@89
|
4984 fi
|
cannam@89
|
4985 done
|
cannam@89
|
4986 done
|
cannam@89
|
4987 IFS=$as_save_IFS
|
cannam@89
|
4988
|
cannam@89
|
4989 fi
|
cannam@89
|
4990 fi
|
cannam@89
|
4991 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
|
cannam@89
|
4992 if test -n "$ac_ct_STRIP"; then
|
cannam@89
|
4993 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
|
cannam@89
|
4994 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
|
cannam@89
|
4995 else
|
cannam@89
|
4996 { echo "$as_me:$LINENO: result: no" >&5
|
cannam@89
|
4997 echo "${ECHO_T}no" >&6; }
|
cannam@89
|
4998 fi
|
cannam@89
|
4999
|
cannam@89
|
5000 if test "x$ac_ct_STRIP" = x; then
|
cannam@89
|
5001 STRIP=":"
|
cannam@89
|
5002 else
|
cannam@89
|
5003 case $cross_compiling:$ac_tool_warned in
|
cannam@89
|
5004 yes:)
|
cannam@89
|
5005 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
cannam@89
|
5006 whose name does not start with the host triplet. If you think this
|
cannam@89
|
5007 configuration is useful to you, please write to autoconf@gnu.org." >&5
|
cannam@89
|
5008 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
cannam@89
|
5009 whose name does not start with the host triplet. If you think this
|
cannam@89
|
5010 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
cannam@89
|
5011 ac_tool_warned=yes ;;
|
cannam@89
|
5012 esac
|
cannam@89
|
5013 STRIP=$ac_ct_STRIP
|
cannam@89
|
5014 fi
|
cannam@89
|
5015 else
|
cannam@89
|
5016 STRIP="$ac_cv_prog_STRIP"
|
cannam@89
|
5017 fi
|
cannam@89
|
5018
|
cannam@89
|
5019 test -z "$STRIP" && STRIP=:
|
cannam@89
|
5020
|
cannam@89
|
5021
|
cannam@89
|
5022
|
cannam@89
|
5023
|
cannam@89
|
5024
|
cannam@89
|
5025
|
cannam@89
|
5026 if test -n "$ac_tool_prefix"; then
|
cannam@89
|
5027 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
cannam@89
|
5028 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
cannam@89
|
5029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@89
|
5030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
cannam@89
|
5031 if test "${ac_cv_prog_RANLIB+set}" = set; then
|
cannam@89
|
5032 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
5033 else
|
cannam@89
|
5034 if test -n "$RANLIB"; then
|
cannam@89
|
5035 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
cannam@89
|
5036 else
|
cannam@89
|
5037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@89
|
5038 for as_dir in $PATH
|
cannam@89
|
5039 do
|
cannam@89
|
5040 IFS=$as_save_IFS
|
cannam@89
|
5041 test -z "$as_dir" && as_dir=.
|
cannam@89
|
5042 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@89
|
5043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
cannam@89
|
5044 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
cannam@89
|
5045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@89
|
5046 break 2
|
cannam@89
|
5047 fi
|
cannam@89
|
5048 done
|
cannam@89
|
5049 done
|
cannam@89
|
5050 IFS=$as_save_IFS
|
cannam@89
|
5051
|
cannam@89
|
5052 fi
|
cannam@89
|
5053 fi
|
cannam@89
|
5054 RANLIB=$ac_cv_prog_RANLIB
|
cannam@89
|
5055 if test -n "$RANLIB"; then
|
cannam@89
|
5056 { echo "$as_me:$LINENO: result: $RANLIB" >&5
|
cannam@89
|
5057 echo "${ECHO_T}$RANLIB" >&6; }
|
cannam@89
|
5058 else
|
cannam@89
|
5059 { echo "$as_me:$LINENO: result: no" >&5
|
cannam@89
|
5060 echo "${ECHO_T}no" >&6; }
|
cannam@89
|
5061 fi
|
cannam@89
|
5062
|
cannam@89
|
5063
|
cannam@89
|
5064 fi
|
cannam@89
|
5065 if test -z "$ac_cv_prog_RANLIB"; then
|
cannam@89
|
5066 ac_ct_RANLIB=$RANLIB
|
cannam@89
|
5067 # Extract the first word of "ranlib", so it can be a program name with args.
|
cannam@89
|
5068 set dummy ranlib; ac_word=$2
|
cannam@89
|
5069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@89
|
5070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
cannam@89
|
5071 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
|
cannam@89
|
5072 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
5073 else
|
cannam@89
|
5074 if test -n "$ac_ct_RANLIB"; then
|
cannam@89
|
5075 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
cannam@89
|
5076 else
|
cannam@89
|
5077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@89
|
5078 for as_dir in $PATH
|
cannam@89
|
5079 do
|
cannam@89
|
5080 IFS=$as_save_IFS
|
cannam@89
|
5081 test -z "$as_dir" && as_dir=.
|
cannam@89
|
5082 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@89
|
5083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
cannam@89
|
5084 ac_cv_prog_ac_ct_RANLIB="ranlib"
|
cannam@89
|
5085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@89
|
5086 break 2
|
cannam@89
|
5087 fi
|
cannam@89
|
5088 done
|
cannam@89
|
5089 done
|
cannam@89
|
5090 IFS=$as_save_IFS
|
cannam@89
|
5091
|
cannam@89
|
5092 fi
|
cannam@89
|
5093 fi
|
cannam@89
|
5094 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
cannam@89
|
5095 if test -n "$ac_ct_RANLIB"; then
|
cannam@89
|
5096 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
|
cannam@89
|
5097 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
|
cannam@89
|
5098 else
|
cannam@89
|
5099 { echo "$as_me:$LINENO: result: no" >&5
|
cannam@89
|
5100 echo "${ECHO_T}no" >&6; }
|
cannam@89
|
5101 fi
|
cannam@89
|
5102
|
cannam@89
|
5103 if test "x$ac_ct_RANLIB" = x; then
|
cannam@89
|
5104 RANLIB=":"
|
cannam@89
|
5105 else
|
cannam@89
|
5106 case $cross_compiling:$ac_tool_warned in
|
cannam@89
|
5107 yes:)
|
cannam@89
|
5108 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
cannam@89
|
5109 whose name does not start with the host triplet. If you think this
|
cannam@89
|
5110 configuration is useful to you, please write to autoconf@gnu.org." >&5
|
cannam@89
|
5111 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
cannam@89
|
5112 whose name does not start with the host triplet. If you think this
|
cannam@89
|
5113 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
cannam@89
|
5114 ac_tool_warned=yes ;;
|
cannam@89
|
5115 esac
|
cannam@89
|
5116 RANLIB=$ac_ct_RANLIB
|
cannam@89
|
5117 fi
|
cannam@89
|
5118 else
|
cannam@89
|
5119 RANLIB="$ac_cv_prog_RANLIB"
|
cannam@89
|
5120 fi
|
cannam@89
|
5121
|
cannam@89
|
5122 test -z "$RANLIB" && RANLIB=:
|
cannam@89
|
5123
|
cannam@89
|
5124
|
cannam@89
|
5125
|
cannam@89
|
5126
|
cannam@89
|
5127
|
cannam@89
|
5128
|
cannam@89
|
5129 # Determine commands to create old-style static archives.
|
cannam@89
|
5130 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
|
cannam@89
|
5131 old_postinstall_cmds='chmod 644 $oldlib'
|
cannam@89
|
5132 old_postuninstall_cmds=
|
cannam@89
|
5133
|
cannam@89
|
5134 if test -n "$RANLIB"; then
|
cannam@89
|
5135 case $host_os in
|
cannam@89
|
5136 openbsd*)
|
cannam@89
|
5137 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
|
cannam@89
|
5138 ;;
|
cannam@89
|
5139 *)
|
cannam@89
|
5140 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
|
cannam@89
|
5141 ;;
|
cannam@89
|
5142 esac
|
cannam@89
|
5143 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
|
cannam@89
|
5144 fi
|
cannam@89
|
5145
|
cannam@89
|
5146
|
cannam@89
|
5147
|
cannam@89
|
5148
|
cannam@89
|
5149
|
cannam@89
|
5150
|
cannam@89
|
5151
|
cannam@89
|
5152
|
cannam@89
|
5153
|
cannam@89
|
5154
|
cannam@89
|
5155
|
cannam@89
|
5156
|
cannam@89
|
5157
|
cannam@89
|
5158
|
cannam@89
|
5159
|
cannam@89
|
5160
|
cannam@89
|
5161
|
cannam@89
|
5162
|
cannam@89
|
5163
|
cannam@89
|
5164
|
cannam@89
|
5165
|
cannam@89
|
5166
|
cannam@89
|
5167
|
cannam@89
|
5168
|
cannam@89
|
5169
|
cannam@89
|
5170
|
cannam@89
|
5171
|
cannam@89
|
5172
|
cannam@89
|
5173
|
cannam@89
|
5174
|
cannam@89
|
5175
|
cannam@89
|
5176
|
cannam@89
|
5177
|
cannam@89
|
5178
|
cannam@89
|
5179 # If no C compiler was specified, use CC.
|
cannam@89
|
5180 LTCC=${LTCC-"$CC"}
|
cannam@89
|
5181
|
cannam@89
|
5182 # If no C compiler flags were specified, use CFLAGS.
|
cannam@89
|
5183 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
cannam@89
|
5184
|
cannam@89
|
5185 # Allow CC to be a program name with arguments.
|
cannam@89
|
5186 compiler=$CC
|
cannam@89
|
5187
|
cannam@89
|
5188
|
cannam@89
|
5189 # Check for command to grab the raw symbol name followed by C symbol from nm.
|
cannam@89
|
5190 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
|
cannam@89
|
5191 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
|
cannam@89
|
5192 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
|
cannam@89
|
5193 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
5194 else
|
cannam@89
|
5195
|
cannam@89
|
5196 # These are sane defaults that work on at least a few old systems.
|
cannam@89
|
5197 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
|
cannam@89
|
5198
|
cannam@89
|
5199 # Character class describing NM global symbol codes.
|
cannam@89
|
5200 symcode='[BCDEGRST]'
|
cannam@89
|
5201
|
cannam@89
|
5202 # Regexp to match symbols that can be accessed directly from C.
|
cannam@89
|
5203 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
|
cannam@89
|
5204
|
cannam@89
|
5205 # Define system-specific variables.
|
cannam@89
|
5206 case $host_os in
|
cannam@89
|
5207 aix*)
|
cannam@89
|
5208 symcode='[BCDT]'
|
cannam@89
|
5209 ;;
|
cannam@89
|
5210 cygwin* | mingw* | pw32*)
|
cannam@89
|
5211 symcode='[ABCDGISTW]'
|
cannam@89
|
5212 ;;
|
cannam@89
|
5213 hpux*)
|
cannam@89
|
5214 if test "$host_cpu" = ia64; then
|
cannam@89
|
5215 symcode='[ABCDEGRST]'
|
cannam@89
|
5216 fi
|
cannam@89
|
5217 ;;
|
cannam@89
|
5218 irix* | nonstopux*)
|
cannam@89
|
5219 symcode='[BCDEGRST]'
|
cannam@89
|
5220 ;;
|
cannam@89
|
5221 osf*)
|
cannam@89
|
5222 symcode='[BCDEGQRST]'
|
cannam@89
|
5223 ;;
|
cannam@89
|
5224 solaris*)
|
cannam@89
|
5225 symcode='[BDRT]'
|
cannam@89
|
5226 ;;
|
cannam@89
|
5227 sco3.2v5*)
|
cannam@89
|
5228 symcode='[DT]'
|
cannam@89
|
5229 ;;
|
cannam@89
|
5230 sysv4.2uw2*)
|
cannam@89
|
5231 symcode='[DT]'
|
cannam@89
|
5232 ;;
|
cannam@89
|
5233 sysv5* | sco5v6* | unixware* | OpenUNIX*)
|
cannam@89
|
5234 symcode='[ABDT]'
|
cannam@89
|
5235 ;;
|
cannam@89
|
5236 sysv4)
|
cannam@89
|
5237 symcode='[DFNSTU]'
|
cannam@89
|
5238 ;;
|
cannam@89
|
5239 esac
|
cannam@89
|
5240
|
cannam@89
|
5241 # If we're using GNU nm, then use its standard symbol codes.
|
cannam@89
|
5242 case `$NM -V 2>&1` in
|
cannam@89
|
5243 *GNU* | *'with BFD'*)
|
cannam@89
|
5244 symcode='[ABCDGIRSTW]' ;;
|
cannam@89
|
5245 esac
|
cannam@89
|
5246
|
cannam@89
|
5247 # Transform an extracted symbol line into a proper C declaration.
|
cannam@89
|
5248 # Some systems (esp. on ia64) link data and code symbols differently,
|
cannam@89
|
5249 # so use this general approach.
|
cannam@89
|
5250 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
|
cannam@89
|
5251
|
cannam@89
|
5252 # Transform an extracted symbol line into symbol name and symbol address
|
cannam@89
|
5253 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
|
cannam@89
|
5254 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
|
cannam@89
|
5255
|
cannam@89
|
5256 # Handle CRLF in mingw tool chain
|
cannam@89
|
5257 opt_cr=
|
cannam@89
|
5258 case $build_os in
|
cannam@89
|
5259 mingw*)
|
cannam@89
|
5260 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
|
cannam@89
|
5261 ;;
|
cannam@89
|
5262 esac
|
cannam@89
|
5263
|
cannam@89
|
5264 # Try without a prefix underscore, then with it.
|
cannam@89
|
5265 for ac_symprfx in "" "_"; do
|
cannam@89
|
5266
|
cannam@89
|
5267 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
|
cannam@89
|
5268 symxfrm="\\1 $ac_symprfx\\2 \\2"
|
cannam@89
|
5269
|
cannam@89
|
5270 # Write the raw and C identifiers.
|
cannam@89
|
5271 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
cannam@89
|
5272 # Fake it for dumpbin and say T for any non-static function
|
cannam@89
|
5273 # and D for any global variable.
|
cannam@89
|
5274 # Also find C++ and __fastcall symbols from MSVC++,
|
cannam@89
|
5275 # which start with @ or ?.
|
cannam@89
|
5276 lt_cv_sys_global_symbol_pipe="$AWK '"\
|
cannam@89
|
5277 " {last_section=section; section=\$ 3};"\
|
cannam@89
|
5278 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
|
cannam@89
|
5279 " \$ 0!~/External *\|/{next};"\
|
cannam@89
|
5280 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
|
cannam@89
|
5281 " {if(hide[section]) next};"\
|
cannam@89
|
5282 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
|
cannam@89
|
5283 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
|
cannam@89
|
5284 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
|
cannam@89
|
5285 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
|
cannam@89
|
5286 " ' prfx=^$ac_symprfx"
|
cannam@89
|
5287 else
|
cannam@89
|
5288 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
|
cannam@89
|
5289 fi
|
cannam@89
|
5290
|
cannam@89
|
5291 # Check to see that the pipe works correctly.
|
cannam@89
|
5292 pipe_works=no
|
cannam@89
|
5293
|
cannam@89
|
5294 rm -f conftest*
|
cannam@89
|
5295 cat > conftest.$ac_ext <<_LT_EOF
|
cannam@89
|
5296 #ifdef __cplusplus
|
cannam@89
|
5297 extern "C" {
|
cannam@89
|
5298 #endif
|
cannam@89
|
5299 char nm_test_var;
|
cannam@89
|
5300 void nm_test_func(void);
|
cannam@89
|
5301 void nm_test_func(void){}
|
cannam@89
|
5302 #ifdef __cplusplus
|
cannam@89
|
5303 }
|
cannam@89
|
5304 #endif
|
cannam@89
|
5305 int main(){nm_test_var='a';nm_test_func();return(0);}
|
cannam@89
|
5306 _LT_EOF
|
cannam@89
|
5307
|
cannam@89
|
5308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@89
|
5309 (eval $ac_compile) 2>&5
|
cannam@89
|
5310 ac_status=$?
|
cannam@89
|
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
5312 (exit $ac_status); }; then
|
cannam@89
|
5313 # Now try to grab the symbols.
|
cannam@89
|
5314 nlist=conftest.nm
|
cannam@89
|
5315 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
|
cannam@89
|
5316 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
|
cannam@89
|
5317 ac_status=$?
|
cannam@89
|
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
5319 (exit $ac_status); } && test -s "$nlist"; then
|
cannam@89
|
5320 # Try sorting and uniquifying the output.
|
cannam@89
|
5321 if sort "$nlist" | uniq > "$nlist"T; then
|
cannam@89
|
5322 mv -f "$nlist"T "$nlist"
|
cannam@89
|
5323 else
|
cannam@89
|
5324 rm -f "$nlist"T
|
cannam@89
|
5325 fi
|
cannam@89
|
5326
|
cannam@89
|
5327 # Make sure that we snagged all the symbols we need.
|
cannam@89
|
5328 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
|
cannam@89
|
5329 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
|
cannam@89
|
5330 cat <<_LT_EOF > conftest.$ac_ext
|
cannam@89
|
5331 #ifdef __cplusplus
|
cannam@89
|
5332 extern "C" {
|
cannam@89
|
5333 #endif
|
cannam@89
|
5334
|
cannam@89
|
5335 _LT_EOF
|
cannam@89
|
5336 # Now generate the symbol file.
|
cannam@89
|
5337 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
|
cannam@89
|
5338
|
cannam@89
|
5339 cat <<_LT_EOF >> conftest.$ac_ext
|
cannam@89
|
5340
|
cannam@89
|
5341 /* The mapping between symbol names and symbols. */
|
cannam@89
|
5342 const struct {
|
cannam@89
|
5343 const char *name;
|
cannam@89
|
5344 void *address;
|
cannam@89
|
5345 }
|
cannam@89
|
5346 lt__PROGRAM__LTX_preloaded_symbols[] =
|
cannam@89
|
5347 {
|
cannam@89
|
5348 { "@PROGRAM@", (void *) 0 },
|
cannam@89
|
5349 _LT_EOF
|
cannam@89
|
5350 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
|
cannam@89
|
5351 cat <<\_LT_EOF >> conftest.$ac_ext
|
cannam@89
|
5352 {0, (void *) 0}
|
cannam@89
|
5353 };
|
cannam@89
|
5354
|
cannam@89
|
5355 /* This works around a problem in FreeBSD linker */
|
cannam@89
|
5356 #ifdef FREEBSD_WORKAROUND
|
cannam@89
|
5357 static const void *lt_preloaded_setup() {
|
cannam@89
|
5358 return lt__PROGRAM__LTX_preloaded_symbols;
|
cannam@89
|
5359 }
|
cannam@89
|
5360 #endif
|
cannam@89
|
5361
|
cannam@89
|
5362 #ifdef __cplusplus
|
cannam@89
|
5363 }
|
cannam@89
|
5364 #endif
|
cannam@89
|
5365 _LT_EOF
|
cannam@89
|
5366 # Now try linking the two files.
|
cannam@89
|
5367 mv conftest.$ac_objext conftstm.$ac_objext
|
cannam@89
|
5368 lt_save_LIBS="$LIBS"
|
cannam@89
|
5369 lt_save_CFLAGS="$CFLAGS"
|
cannam@89
|
5370 LIBS="conftstm.$ac_objext"
|
cannam@89
|
5371 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
|
cannam@89
|
5372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@89
|
5373 (eval $ac_link) 2>&5
|
cannam@89
|
5374 ac_status=$?
|
cannam@89
|
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
5376 (exit $ac_status); } && test -s conftest${ac_exeext}; then
|
cannam@89
|
5377 pipe_works=yes
|
cannam@89
|
5378 fi
|
cannam@89
|
5379 LIBS="$lt_save_LIBS"
|
cannam@89
|
5380 CFLAGS="$lt_save_CFLAGS"
|
cannam@89
|
5381 else
|
cannam@89
|
5382 echo "cannot find nm_test_func in $nlist" >&5
|
cannam@89
|
5383 fi
|
cannam@89
|
5384 else
|
cannam@89
|
5385 echo "cannot find nm_test_var in $nlist" >&5
|
cannam@89
|
5386 fi
|
cannam@89
|
5387 else
|
cannam@89
|
5388 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
|
cannam@89
|
5389 fi
|
cannam@89
|
5390 else
|
cannam@89
|
5391 echo "$progname: failed program was:" >&5
|
cannam@89
|
5392 cat conftest.$ac_ext >&5
|
cannam@89
|
5393 fi
|
cannam@89
|
5394 rm -rf conftest* conftst*
|
cannam@89
|
5395
|
cannam@89
|
5396 # Do not use the global_symbol_pipe unless it works.
|
cannam@89
|
5397 if test "$pipe_works" = yes; then
|
cannam@89
|
5398 break
|
cannam@89
|
5399 else
|
cannam@89
|
5400 lt_cv_sys_global_symbol_pipe=
|
cannam@89
|
5401 fi
|
cannam@89
|
5402 done
|
cannam@89
|
5403
|
cannam@89
|
5404 fi
|
cannam@89
|
5405
|
cannam@89
|
5406 if test -z "$lt_cv_sys_global_symbol_pipe"; then
|
cannam@89
|
5407 lt_cv_sys_global_symbol_to_cdecl=
|
cannam@89
|
5408 fi
|
cannam@89
|
5409 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
|
cannam@89
|
5410 { echo "$as_me:$LINENO: result: failed" >&5
|
cannam@89
|
5411 echo "${ECHO_T}failed" >&6; }
|
cannam@89
|
5412 else
|
cannam@89
|
5413 { echo "$as_me:$LINENO: result: ok" >&5
|
cannam@89
|
5414 echo "${ECHO_T}ok" >&6; }
|
cannam@89
|
5415 fi
|
cannam@89
|
5416
|
cannam@89
|
5417
|
cannam@89
|
5418
|
cannam@89
|
5419
|
cannam@89
|
5420
|
cannam@89
|
5421
|
cannam@89
|
5422
|
cannam@89
|
5423
|
cannam@89
|
5424
|
cannam@89
|
5425
|
cannam@89
|
5426
|
cannam@89
|
5427
|
cannam@89
|
5428
|
cannam@89
|
5429
|
cannam@89
|
5430
|
cannam@89
|
5431
|
cannam@89
|
5432
|
cannam@89
|
5433
|
cannam@89
|
5434
|
cannam@89
|
5435
|
cannam@89
|
5436
|
cannam@89
|
5437
|
cannam@89
|
5438
|
cannam@89
|
5439 # Check whether --enable-libtool-lock was given.
|
cannam@89
|
5440 if test "${enable_libtool_lock+set}" = set; then
|
cannam@89
|
5441 enableval=$enable_libtool_lock;
|
cannam@89
|
5442 fi
|
cannam@89
|
5443
|
cannam@89
|
5444 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
|
cannam@89
|
5445
|
cannam@89
|
5446 # Some flags need to be propagated to the compiler or linker for good
|
cannam@89
|
5447 # libtool support.
|
cannam@89
|
5448 case $host in
|
cannam@89
|
5449 ia64-*-hpux*)
|
cannam@89
|
5450 # Find out which ABI we are using.
|
cannam@89
|
5451 echo 'int i;' > conftest.$ac_ext
|
cannam@89
|
5452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@89
|
5453 (eval $ac_compile) 2>&5
|
cannam@89
|
5454 ac_status=$?
|
cannam@89
|
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
5456 (exit $ac_status); }; then
|
cannam@89
|
5457 case `/usr/bin/file conftest.$ac_objext` in
|
cannam@89
|
5458 *ELF-32*)
|
cannam@89
|
5459 HPUX_IA64_MODE="32"
|
cannam@89
|
5460 ;;
|
cannam@89
|
5461 *ELF-64*)
|
cannam@89
|
5462 HPUX_IA64_MODE="64"
|
cannam@89
|
5463 ;;
|
cannam@89
|
5464 esac
|
cannam@89
|
5465 fi
|
cannam@89
|
5466 rm -rf conftest*
|
cannam@89
|
5467 ;;
|
cannam@89
|
5468 *-*-irix6*)
|
cannam@89
|
5469 # Find out which ABI we are using.
|
cannam@89
|
5470 echo '#line 5470 "configure"' > conftest.$ac_ext
|
cannam@89
|
5471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@89
|
5472 (eval $ac_compile) 2>&5
|
cannam@89
|
5473 ac_status=$?
|
cannam@89
|
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
5475 (exit $ac_status); }; then
|
cannam@89
|
5476 if test "$lt_cv_prog_gnu_ld" = yes; then
|
cannam@89
|
5477 case `/usr/bin/file conftest.$ac_objext` in
|
cannam@89
|
5478 *32-bit*)
|
cannam@89
|
5479 LD="${LD-ld} -melf32bsmip"
|
cannam@89
|
5480 ;;
|
cannam@89
|
5481 *N32*)
|
cannam@89
|
5482 LD="${LD-ld} -melf32bmipn32"
|
cannam@89
|
5483 ;;
|
cannam@89
|
5484 *64-bit*)
|
cannam@89
|
5485 LD="${LD-ld} -melf64bmip"
|
cannam@89
|
5486 ;;
|
cannam@89
|
5487 esac
|
cannam@89
|
5488 else
|
cannam@89
|
5489 case `/usr/bin/file conftest.$ac_objext` in
|
cannam@89
|
5490 *32-bit*)
|
cannam@89
|
5491 LD="${LD-ld} -32"
|
cannam@89
|
5492 ;;
|
cannam@89
|
5493 *N32*)
|
cannam@89
|
5494 LD="${LD-ld} -n32"
|
cannam@89
|
5495 ;;
|
cannam@89
|
5496 *64-bit*)
|
cannam@89
|
5497 LD="${LD-ld} -64"
|
cannam@89
|
5498 ;;
|
cannam@89
|
5499 esac
|
cannam@89
|
5500 fi
|
cannam@89
|
5501 fi
|
cannam@89
|
5502 rm -rf conftest*
|
cannam@89
|
5503 ;;
|
cannam@89
|
5504
|
cannam@89
|
5505 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
|
cannam@89
|
5506 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
|
cannam@89
|
5507 # Find out which ABI we are using.
|
cannam@89
|
5508 echo 'int i;' > conftest.$ac_ext
|
cannam@89
|
5509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@89
|
5510 (eval $ac_compile) 2>&5
|
cannam@89
|
5511 ac_status=$?
|
cannam@89
|
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
5513 (exit $ac_status); }; then
|
cannam@89
|
5514 case `/usr/bin/file conftest.o` in
|
cannam@89
|
5515 *32-bit*)
|
cannam@89
|
5516 case $host in
|
cannam@89
|
5517 x86_64-*kfreebsd*-gnu)
|
cannam@89
|
5518 LD="${LD-ld} -m elf_i386_fbsd"
|
cannam@89
|
5519 ;;
|
cannam@89
|
5520 x86_64-*linux*)
|
cannam@89
|
5521 LD="${LD-ld} -m elf_i386"
|
cannam@89
|
5522 ;;
|
cannam@89
|
5523 ppc64-*linux*|powerpc64-*linux*)
|
cannam@89
|
5524 LD="${LD-ld} -m elf32ppclinux"
|
cannam@89
|
5525 ;;
|
cannam@89
|
5526 s390x-*linux*)
|
cannam@89
|
5527 LD="${LD-ld} -m elf_s390"
|
cannam@89
|
5528 ;;
|
cannam@89
|
5529 sparc64-*linux*)
|
cannam@89
|
5530 LD="${LD-ld} -m elf32_sparc"
|
cannam@89
|
5531 ;;
|
cannam@89
|
5532 esac
|
cannam@89
|
5533 ;;
|
cannam@89
|
5534 *64-bit*)
|
cannam@89
|
5535 case $host in
|
cannam@89
|
5536 x86_64-*kfreebsd*-gnu)
|
cannam@89
|
5537 LD="${LD-ld} -m elf_x86_64_fbsd"
|
cannam@89
|
5538 ;;
|
cannam@89
|
5539 x86_64-*linux*)
|
cannam@89
|
5540 LD="${LD-ld} -m elf_x86_64"
|
cannam@89
|
5541 ;;
|
cannam@89
|
5542 ppc*-*linux*|powerpc*-*linux*)
|
cannam@89
|
5543 LD="${LD-ld} -m elf64ppc"
|
cannam@89
|
5544 ;;
|
cannam@89
|
5545 s390*-*linux*|s390*-*tpf*)
|
cannam@89
|
5546 LD="${LD-ld} -m elf64_s390"
|
cannam@89
|
5547 ;;
|
cannam@89
|
5548 sparc*-*linux*)
|
cannam@89
|
5549 LD="${LD-ld} -m elf64_sparc"
|
cannam@89
|
5550 ;;
|
cannam@89
|
5551 esac
|
cannam@89
|
5552 ;;
|
cannam@89
|
5553 esac
|
cannam@89
|
5554 fi
|
cannam@89
|
5555 rm -rf conftest*
|
cannam@89
|
5556 ;;
|
cannam@89
|
5557
|
cannam@89
|
5558 *-*-sco3.2v5*)
|
cannam@89
|
5559 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
cannam@89
|
5560 SAVE_CFLAGS="$CFLAGS"
|
cannam@89
|
5561 CFLAGS="$CFLAGS -belf"
|
cannam@89
|
5562 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
|
cannam@89
|
5563 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
|
cannam@89
|
5564 if test "${lt_cv_cc_needs_belf+set}" = set; then
|
cannam@89
|
5565 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
5566 else
|
cannam@89
|
5567 ac_ext=c
|
cannam@89
|
5568 ac_cpp='$CPP $CPPFLAGS'
|
cannam@89
|
5569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
cannam@89
|
5570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
cannam@89
|
5571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
cannam@89
|
5572
|
cannam@89
|
5573 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
5574 /* confdefs.h. */
|
cannam@89
|
5575 _ACEOF
|
cannam@89
|
5576 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
5577 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
5578 /* end confdefs.h. */
|
cannam@89
|
5579
|
cannam@89
|
5580 int
|
cannam@89
|
5581 main ()
|
cannam@89
|
5582 {
|
cannam@89
|
5583
|
cannam@89
|
5584 ;
|
cannam@89
|
5585 return 0;
|
cannam@89
|
5586 }
|
cannam@89
|
5587 _ACEOF
|
cannam@89
|
5588 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@89
|
5589 if { (ac_try="$ac_link"
|
cannam@89
|
5590 case "(($ac_try" in
|
cannam@89
|
5591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
5592 *) ac_try_echo=$ac_try;;
|
cannam@89
|
5593 esac
|
cannam@89
|
5594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
5595 (eval "$ac_link") 2>conftest.er1
|
cannam@89
|
5596 ac_status=$?
|
cannam@89
|
5597 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@89
|
5598 rm -f conftest.er1
|
cannam@89
|
5599 cat conftest.err >&5
|
cannam@89
|
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
5601 (exit $ac_status); } && {
|
cannam@89
|
5602 test -z "$ac_c_werror_flag" ||
|
cannam@89
|
5603 test ! -s conftest.err
|
cannam@89
|
5604 } && test -s conftest$ac_exeext &&
|
cannam@89
|
5605 $as_test_x conftest$ac_exeext; then
|
cannam@89
|
5606 lt_cv_cc_needs_belf=yes
|
cannam@89
|
5607 else
|
cannam@89
|
5608 echo "$as_me: failed program was:" >&5
|
cannam@89
|
5609 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@89
|
5610
|
cannam@89
|
5611 lt_cv_cc_needs_belf=no
|
cannam@89
|
5612 fi
|
cannam@89
|
5613
|
cannam@89
|
5614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
cannam@89
|
5615 conftest$ac_exeext conftest.$ac_ext
|
cannam@89
|
5616 ac_ext=c
|
cannam@89
|
5617 ac_cpp='$CPP $CPPFLAGS'
|
cannam@89
|
5618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
cannam@89
|
5619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
cannam@89
|
5620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
cannam@89
|
5621
|
cannam@89
|
5622 fi
|
cannam@89
|
5623 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
|
cannam@89
|
5624 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
|
cannam@89
|
5625 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
cannam@89
|
5626 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
cannam@89
|
5627 CFLAGS="$SAVE_CFLAGS"
|
cannam@89
|
5628 fi
|
cannam@89
|
5629 ;;
|
cannam@89
|
5630 sparc*-*solaris*)
|
cannam@89
|
5631 # Find out which ABI we are using.
|
cannam@89
|
5632 echo 'int i;' > conftest.$ac_ext
|
cannam@89
|
5633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@89
|
5634 (eval $ac_compile) 2>&5
|
cannam@89
|
5635 ac_status=$?
|
cannam@89
|
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
5637 (exit $ac_status); }; then
|
cannam@89
|
5638 case `/usr/bin/file conftest.o` in
|
cannam@89
|
5639 *64-bit*)
|
cannam@89
|
5640 case $lt_cv_prog_gnu_ld in
|
cannam@89
|
5641 yes*) LD="${LD-ld} -m elf64_sparc" ;;
|
cannam@89
|
5642 *)
|
cannam@89
|
5643 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
|
cannam@89
|
5644 LD="${LD-ld} -64"
|
cannam@89
|
5645 fi
|
cannam@89
|
5646 ;;
|
cannam@89
|
5647 esac
|
cannam@89
|
5648 ;;
|
cannam@89
|
5649 esac
|
cannam@89
|
5650 fi
|
cannam@89
|
5651 rm -rf conftest*
|
cannam@89
|
5652 ;;
|
cannam@89
|
5653 esac
|
cannam@89
|
5654
|
cannam@89
|
5655 need_locks="$enable_libtool_lock"
|
cannam@89
|
5656
|
cannam@89
|
5657
|
cannam@89
|
5658 case $host_os in
|
cannam@89
|
5659 rhapsody* | darwin*)
|
cannam@89
|
5660 if test -n "$ac_tool_prefix"; then
|
cannam@89
|
5661 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
|
cannam@89
|
5662 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
|
cannam@89
|
5663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@89
|
5664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
cannam@89
|
5665 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
|
cannam@89
|
5666 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
5667 else
|
cannam@89
|
5668 if test -n "$DSYMUTIL"; then
|
cannam@89
|
5669 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
|
cannam@89
|
5670 else
|
cannam@89
|
5671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@89
|
5672 for as_dir in $PATH
|
cannam@89
|
5673 do
|
cannam@89
|
5674 IFS=$as_save_IFS
|
cannam@89
|
5675 test -z "$as_dir" && as_dir=.
|
cannam@89
|
5676 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@89
|
5677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
cannam@89
|
5678 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
|
cannam@89
|
5679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@89
|
5680 break 2
|
cannam@89
|
5681 fi
|
cannam@89
|
5682 done
|
cannam@89
|
5683 done
|
cannam@89
|
5684 IFS=$as_save_IFS
|
cannam@89
|
5685
|
cannam@89
|
5686 fi
|
cannam@89
|
5687 fi
|
cannam@89
|
5688 DSYMUTIL=$ac_cv_prog_DSYMUTIL
|
cannam@89
|
5689 if test -n "$DSYMUTIL"; then
|
cannam@89
|
5690 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
|
cannam@89
|
5691 echo "${ECHO_T}$DSYMUTIL" >&6; }
|
cannam@89
|
5692 else
|
cannam@89
|
5693 { echo "$as_me:$LINENO: result: no" >&5
|
cannam@89
|
5694 echo "${ECHO_T}no" >&6; }
|
cannam@89
|
5695 fi
|
cannam@89
|
5696
|
cannam@89
|
5697
|
cannam@89
|
5698 fi
|
cannam@89
|
5699 if test -z "$ac_cv_prog_DSYMUTIL"; then
|
cannam@89
|
5700 ac_ct_DSYMUTIL=$DSYMUTIL
|
cannam@89
|
5701 # Extract the first word of "dsymutil", so it can be a program name with args.
|
cannam@89
|
5702 set dummy dsymutil; ac_word=$2
|
cannam@89
|
5703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@89
|
5704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
cannam@89
|
5705 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
|
cannam@89
|
5706 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
5707 else
|
cannam@89
|
5708 if test -n "$ac_ct_DSYMUTIL"; then
|
cannam@89
|
5709 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
|
cannam@89
|
5710 else
|
cannam@89
|
5711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@89
|
5712 for as_dir in $PATH
|
cannam@89
|
5713 do
|
cannam@89
|
5714 IFS=$as_save_IFS
|
cannam@89
|
5715 test -z "$as_dir" && as_dir=.
|
cannam@89
|
5716 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@89
|
5717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
cannam@89
|
5718 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
|
cannam@89
|
5719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@89
|
5720 break 2
|
cannam@89
|
5721 fi
|
cannam@89
|
5722 done
|
cannam@89
|
5723 done
|
cannam@89
|
5724 IFS=$as_save_IFS
|
cannam@89
|
5725
|
cannam@89
|
5726 fi
|
cannam@89
|
5727 fi
|
cannam@89
|
5728 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
|
cannam@89
|
5729 if test -n "$ac_ct_DSYMUTIL"; then
|
cannam@89
|
5730 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
|
cannam@89
|
5731 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
|
cannam@89
|
5732 else
|
cannam@89
|
5733 { echo "$as_me:$LINENO: result: no" >&5
|
cannam@89
|
5734 echo "${ECHO_T}no" >&6; }
|
cannam@89
|
5735 fi
|
cannam@89
|
5736
|
cannam@89
|
5737 if test "x$ac_ct_DSYMUTIL" = x; then
|
cannam@89
|
5738 DSYMUTIL=":"
|
cannam@89
|
5739 else
|
cannam@89
|
5740 case $cross_compiling:$ac_tool_warned in
|
cannam@89
|
5741 yes:)
|
cannam@89
|
5742 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
cannam@89
|
5743 whose name does not start with the host triplet. If you think this
|
cannam@89
|
5744 configuration is useful to you, please write to autoconf@gnu.org." >&5
|
cannam@89
|
5745 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
cannam@89
|
5746 whose name does not start with the host triplet. If you think this
|
cannam@89
|
5747 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
cannam@89
|
5748 ac_tool_warned=yes ;;
|
cannam@89
|
5749 esac
|
cannam@89
|
5750 DSYMUTIL=$ac_ct_DSYMUTIL
|
cannam@89
|
5751 fi
|
cannam@89
|
5752 else
|
cannam@89
|
5753 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
|
cannam@89
|
5754 fi
|
cannam@89
|
5755
|
cannam@89
|
5756 if test -n "$ac_tool_prefix"; then
|
cannam@89
|
5757 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
|
cannam@89
|
5758 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
|
cannam@89
|
5759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@89
|
5760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
cannam@89
|
5761 if test "${ac_cv_prog_NMEDIT+set}" = set; then
|
cannam@89
|
5762 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
5763 else
|
cannam@89
|
5764 if test -n "$NMEDIT"; then
|
cannam@89
|
5765 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
|
cannam@89
|
5766 else
|
cannam@89
|
5767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@89
|
5768 for as_dir in $PATH
|
cannam@89
|
5769 do
|
cannam@89
|
5770 IFS=$as_save_IFS
|
cannam@89
|
5771 test -z "$as_dir" && as_dir=.
|
cannam@89
|
5772 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@89
|
5773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
cannam@89
|
5774 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
|
cannam@89
|
5775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@89
|
5776 break 2
|
cannam@89
|
5777 fi
|
cannam@89
|
5778 done
|
cannam@89
|
5779 done
|
cannam@89
|
5780 IFS=$as_save_IFS
|
cannam@89
|
5781
|
cannam@89
|
5782 fi
|
cannam@89
|
5783 fi
|
cannam@89
|
5784 NMEDIT=$ac_cv_prog_NMEDIT
|
cannam@89
|
5785 if test -n "$NMEDIT"; then
|
cannam@89
|
5786 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
|
cannam@89
|
5787 echo "${ECHO_T}$NMEDIT" >&6; }
|
cannam@89
|
5788 else
|
cannam@89
|
5789 { echo "$as_me:$LINENO: result: no" >&5
|
cannam@89
|
5790 echo "${ECHO_T}no" >&6; }
|
cannam@89
|
5791 fi
|
cannam@89
|
5792
|
cannam@89
|
5793
|
cannam@89
|
5794 fi
|
cannam@89
|
5795 if test -z "$ac_cv_prog_NMEDIT"; then
|
cannam@89
|
5796 ac_ct_NMEDIT=$NMEDIT
|
cannam@89
|
5797 # Extract the first word of "nmedit", so it can be a program name with args.
|
cannam@89
|
5798 set dummy nmedit; ac_word=$2
|
cannam@89
|
5799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@89
|
5800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
cannam@89
|
5801 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
|
cannam@89
|
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
5803 else
|
cannam@89
|
5804 if test -n "$ac_ct_NMEDIT"; then
|
cannam@89
|
5805 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
|
cannam@89
|
5806 else
|
cannam@89
|
5807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@89
|
5808 for as_dir in $PATH
|
cannam@89
|
5809 do
|
cannam@89
|
5810 IFS=$as_save_IFS
|
cannam@89
|
5811 test -z "$as_dir" && as_dir=.
|
cannam@89
|
5812 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@89
|
5813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
cannam@89
|
5814 ac_cv_prog_ac_ct_NMEDIT="nmedit"
|
cannam@89
|
5815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@89
|
5816 break 2
|
cannam@89
|
5817 fi
|
cannam@89
|
5818 done
|
cannam@89
|
5819 done
|
cannam@89
|
5820 IFS=$as_save_IFS
|
cannam@89
|
5821
|
cannam@89
|
5822 fi
|
cannam@89
|
5823 fi
|
cannam@89
|
5824 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
|
cannam@89
|
5825 if test -n "$ac_ct_NMEDIT"; then
|
cannam@89
|
5826 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
|
cannam@89
|
5827 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
|
cannam@89
|
5828 else
|
cannam@89
|
5829 { echo "$as_me:$LINENO: result: no" >&5
|
cannam@89
|
5830 echo "${ECHO_T}no" >&6; }
|
cannam@89
|
5831 fi
|
cannam@89
|
5832
|
cannam@89
|
5833 if test "x$ac_ct_NMEDIT" = x; then
|
cannam@89
|
5834 NMEDIT=":"
|
cannam@89
|
5835 else
|
cannam@89
|
5836 case $cross_compiling:$ac_tool_warned in
|
cannam@89
|
5837 yes:)
|
cannam@89
|
5838 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
cannam@89
|
5839 whose name does not start with the host triplet. If you think this
|
cannam@89
|
5840 configuration is useful to you, please write to autoconf@gnu.org." >&5
|
cannam@89
|
5841 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
cannam@89
|
5842 whose name does not start with the host triplet. If you think this
|
cannam@89
|
5843 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
cannam@89
|
5844 ac_tool_warned=yes ;;
|
cannam@89
|
5845 esac
|
cannam@89
|
5846 NMEDIT=$ac_ct_NMEDIT
|
cannam@89
|
5847 fi
|
cannam@89
|
5848 else
|
cannam@89
|
5849 NMEDIT="$ac_cv_prog_NMEDIT"
|
cannam@89
|
5850 fi
|
cannam@89
|
5851
|
cannam@89
|
5852 if test -n "$ac_tool_prefix"; then
|
cannam@89
|
5853 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
|
cannam@89
|
5854 set dummy ${ac_tool_prefix}lipo; ac_word=$2
|
cannam@89
|
5855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@89
|
5856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
cannam@89
|
5857 if test "${ac_cv_prog_LIPO+set}" = set; then
|
cannam@89
|
5858 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
5859 else
|
cannam@89
|
5860 if test -n "$LIPO"; then
|
cannam@89
|
5861 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
|
cannam@89
|
5862 else
|
cannam@89
|
5863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@89
|
5864 for as_dir in $PATH
|
cannam@89
|
5865 do
|
cannam@89
|
5866 IFS=$as_save_IFS
|
cannam@89
|
5867 test -z "$as_dir" && as_dir=.
|
cannam@89
|
5868 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@89
|
5869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
cannam@89
|
5870 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
|
cannam@89
|
5871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@89
|
5872 break 2
|
cannam@89
|
5873 fi
|
cannam@89
|
5874 done
|
cannam@89
|
5875 done
|
cannam@89
|
5876 IFS=$as_save_IFS
|
cannam@89
|
5877
|
cannam@89
|
5878 fi
|
cannam@89
|
5879 fi
|
cannam@89
|
5880 LIPO=$ac_cv_prog_LIPO
|
cannam@89
|
5881 if test -n "$LIPO"; then
|
cannam@89
|
5882 { echo "$as_me:$LINENO: result: $LIPO" >&5
|
cannam@89
|
5883 echo "${ECHO_T}$LIPO" >&6; }
|
cannam@89
|
5884 else
|
cannam@89
|
5885 { echo "$as_me:$LINENO: result: no" >&5
|
cannam@89
|
5886 echo "${ECHO_T}no" >&6; }
|
cannam@89
|
5887 fi
|
cannam@89
|
5888
|
cannam@89
|
5889
|
cannam@89
|
5890 fi
|
cannam@89
|
5891 if test -z "$ac_cv_prog_LIPO"; then
|
cannam@89
|
5892 ac_ct_LIPO=$LIPO
|
cannam@89
|
5893 # Extract the first word of "lipo", so it can be a program name with args.
|
cannam@89
|
5894 set dummy lipo; ac_word=$2
|
cannam@89
|
5895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@89
|
5896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
cannam@89
|
5897 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
|
cannam@89
|
5898 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
5899 else
|
cannam@89
|
5900 if test -n "$ac_ct_LIPO"; then
|
cannam@89
|
5901 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
|
cannam@89
|
5902 else
|
cannam@89
|
5903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@89
|
5904 for as_dir in $PATH
|
cannam@89
|
5905 do
|
cannam@89
|
5906 IFS=$as_save_IFS
|
cannam@89
|
5907 test -z "$as_dir" && as_dir=.
|
cannam@89
|
5908 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@89
|
5909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
cannam@89
|
5910 ac_cv_prog_ac_ct_LIPO="lipo"
|
cannam@89
|
5911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@89
|
5912 break 2
|
cannam@89
|
5913 fi
|
cannam@89
|
5914 done
|
cannam@89
|
5915 done
|
cannam@89
|
5916 IFS=$as_save_IFS
|
cannam@89
|
5917
|
cannam@89
|
5918 fi
|
cannam@89
|
5919 fi
|
cannam@89
|
5920 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
|
cannam@89
|
5921 if test -n "$ac_ct_LIPO"; then
|
cannam@89
|
5922 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
|
cannam@89
|
5923 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
|
cannam@89
|
5924 else
|
cannam@89
|
5925 { echo "$as_me:$LINENO: result: no" >&5
|
cannam@89
|
5926 echo "${ECHO_T}no" >&6; }
|
cannam@89
|
5927 fi
|
cannam@89
|
5928
|
cannam@89
|
5929 if test "x$ac_ct_LIPO" = x; then
|
cannam@89
|
5930 LIPO=":"
|
cannam@89
|
5931 else
|
cannam@89
|
5932 case $cross_compiling:$ac_tool_warned in
|
cannam@89
|
5933 yes:)
|
cannam@89
|
5934 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
cannam@89
|
5935 whose name does not start with the host triplet. If you think this
|
cannam@89
|
5936 configuration is useful to you, please write to autoconf@gnu.org." >&5
|
cannam@89
|
5937 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
cannam@89
|
5938 whose name does not start with the host triplet. If you think this
|
cannam@89
|
5939 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
cannam@89
|
5940 ac_tool_warned=yes ;;
|
cannam@89
|
5941 esac
|
cannam@89
|
5942 LIPO=$ac_ct_LIPO
|
cannam@89
|
5943 fi
|
cannam@89
|
5944 else
|
cannam@89
|
5945 LIPO="$ac_cv_prog_LIPO"
|
cannam@89
|
5946 fi
|
cannam@89
|
5947
|
cannam@89
|
5948 if test -n "$ac_tool_prefix"; then
|
cannam@89
|
5949 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
|
cannam@89
|
5950 set dummy ${ac_tool_prefix}otool; ac_word=$2
|
cannam@89
|
5951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@89
|
5952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
cannam@89
|
5953 if test "${ac_cv_prog_OTOOL+set}" = set; then
|
cannam@89
|
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
5955 else
|
cannam@89
|
5956 if test -n "$OTOOL"; then
|
cannam@89
|
5957 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
|
cannam@89
|
5958 else
|
cannam@89
|
5959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@89
|
5960 for as_dir in $PATH
|
cannam@89
|
5961 do
|
cannam@89
|
5962 IFS=$as_save_IFS
|
cannam@89
|
5963 test -z "$as_dir" && as_dir=.
|
cannam@89
|
5964 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@89
|
5965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
cannam@89
|
5966 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
|
cannam@89
|
5967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@89
|
5968 break 2
|
cannam@89
|
5969 fi
|
cannam@89
|
5970 done
|
cannam@89
|
5971 done
|
cannam@89
|
5972 IFS=$as_save_IFS
|
cannam@89
|
5973
|
cannam@89
|
5974 fi
|
cannam@89
|
5975 fi
|
cannam@89
|
5976 OTOOL=$ac_cv_prog_OTOOL
|
cannam@89
|
5977 if test -n "$OTOOL"; then
|
cannam@89
|
5978 { echo "$as_me:$LINENO: result: $OTOOL" >&5
|
cannam@89
|
5979 echo "${ECHO_T}$OTOOL" >&6; }
|
cannam@89
|
5980 else
|
cannam@89
|
5981 { echo "$as_me:$LINENO: result: no" >&5
|
cannam@89
|
5982 echo "${ECHO_T}no" >&6; }
|
cannam@89
|
5983 fi
|
cannam@89
|
5984
|
cannam@89
|
5985
|
cannam@89
|
5986 fi
|
cannam@89
|
5987 if test -z "$ac_cv_prog_OTOOL"; then
|
cannam@89
|
5988 ac_ct_OTOOL=$OTOOL
|
cannam@89
|
5989 # Extract the first word of "otool", so it can be a program name with args.
|
cannam@89
|
5990 set dummy otool; ac_word=$2
|
cannam@89
|
5991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@89
|
5992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
cannam@89
|
5993 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
|
cannam@89
|
5994 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
5995 else
|
cannam@89
|
5996 if test -n "$ac_ct_OTOOL"; then
|
cannam@89
|
5997 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
|
cannam@89
|
5998 else
|
cannam@89
|
5999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@89
|
6000 for as_dir in $PATH
|
cannam@89
|
6001 do
|
cannam@89
|
6002 IFS=$as_save_IFS
|
cannam@89
|
6003 test -z "$as_dir" && as_dir=.
|
cannam@89
|
6004 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@89
|
6005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
cannam@89
|
6006 ac_cv_prog_ac_ct_OTOOL="otool"
|
cannam@89
|
6007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@89
|
6008 break 2
|
cannam@89
|
6009 fi
|
cannam@89
|
6010 done
|
cannam@89
|
6011 done
|
cannam@89
|
6012 IFS=$as_save_IFS
|
cannam@89
|
6013
|
cannam@89
|
6014 fi
|
cannam@89
|
6015 fi
|
cannam@89
|
6016 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
|
cannam@89
|
6017 if test -n "$ac_ct_OTOOL"; then
|
cannam@89
|
6018 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
|
cannam@89
|
6019 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
|
cannam@89
|
6020 else
|
cannam@89
|
6021 { echo "$as_me:$LINENO: result: no" >&5
|
cannam@89
|
6022 echo "${ECHO_T}no" >&6; }
|
cannam@89
|
6023 fi
|
cannam@89
|
6024
|
cannam@89
|
6025 if test "x$ac_ct_OTOOL" = x; then
|
cannam@89
|
6026 OTOOL=":"
|
cannam@89
|
6027 else
|
cannam@89
|
6028 case $cross_compiling:$ac_tool_warned in
|
cannam@89
|
6029 yes:)
|
cannam@89
|
6030 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
cannam@89
|
6031 whose name does not start with the host triplet. If you think this
|
cannam@89
|
6032 configuration is useful to you, please write to autoconf@gnu.org." >&5
|
cannam@89
|
6033 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
cannam@89
|
6034 whose name does not start with the host triplet. If you think this
|
cannam@89
|
6035 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
cannam@89
|
6036 ac_tool_warned=yes ;;
|
cannam@89
|
6037 esac
|
cannam@89
|
6038 OTOOL=$ac_ct_OTOOL
|
cannam@89
|
6039 fi
|
cannam@89
|
6040 else
|
cannam@89
|
6041 OTOOL="$ac_cv_prog_OTOOL"
|
cannam@89
|
6042 fi
|
cannam@89
|
6043
|
cannam@89
|
6044 if test -n "$ac_tool_prefix"; then
|
cannam@89
|
6045 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
|
cannam@89
|
6046 set dummy ${ac_tool_prefix}otool64; ac_word=$2
|
cannam@89
|
6047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@89
|
6048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
cannam@89
|
6049 if test "${ac_cv_prog_OTOOL64+set}" = set; then
|
cannam@89
|
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
6051 else
|
cannam@89
|
6052 if test -n "$OTOOL64"; then
|
cannam@89
|
6053 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
|
cannam@89
|
6054 else
|
cannam@89
|
6055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@89
|
6056 for as_dir in $PATH
|
cannam@89
|
6057 do
|
cannam@89
|
6058 IFS=$as_save_IFS
|
cannam@89
|
6059 test -z "$as_dir" && as_dir=.
|
cannam@89
|
6060 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@89
|
6061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
cannam@89
|
6062 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
|
cannam@89
|
6063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@89
|
6064 break 2
|
cannam@89
|
6065 fi
|
cannam@89
|
6066 done
|
cannam@89
|
6067 done
|
cannam@89
|
6068 IFS=$as_save_IFS
|
cannam@89
|
6069
|
cannam@89
|
6070 fi
|
cannam@89
|
6071 fi
|
cannam@89
|
6072 OTOOL64=$ac_cv_prog_OTOOL64
|
cannam@89
|
6073 if test -n "$OTOOL64"; then
|
cannam@89
|
6074 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
|
cannam@89
|
6075 echo "${ECHO_T}$OTOOL64" >&6; }
|
cannam@89
|
6076 else
|
cannam@89
|
6077 { echo "$as_me:$LINENO: result: no" >&5
|
cannam@89
|
6078 echo "${ECHO_T}no" >&6; }
|
cannam@89
|
6079 fi
|
cannam@89
|
6080
|
cannam@89
|
6081
|
cannam@89
|
6082 fi
|
cannam@89
|
6083 if test -z "$ac_cv_prog_OTOOL64"; then
|
cannam@89
|
6084 ac_ct_OTOOL64=$OTOOL64
|
cannam@89
|
6085 # Extract the first word of "otool64", so it can be a program name with args.
|
cannam@89
|
6086 set dummy otool64; ac_word=$2
|
cannam@89
|
6087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@89
|
6088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
cannam@89
|
6089 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
|
cannam@89
|
6090 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
6091 else
|
cannam@89
|
6092 if test -n "$ac_ct_OTOOL64"; then
|
cannam@89
|
6093 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
|
cannam@89
|
6094 else
|
cannam@89
|
6095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@89
|
6096 for as_dir in $PATH
|
cannam@89
|
6097 do
|
cannam@89
|
6098 IFS=$as_save_IFS
|
cannam@89
|
6099 test -z "$as_dir" && as_dir=.
|
cannam@89
|
6100 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@89
|
6101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
cannam@89
|
6102 ac_cv_prog_ac_ct_OTOOL64="otool64"
|
cannam@89
|
6103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@89
|
6104 break 2
|
cannam@89
|
6105 fi
|
cannam@89
|
6106 done
|
cannam@89
|
6107 done
|
cannam@89
|
6108 IFS=$as_save_IFS
|
cannam@89
|
6109
|
cannam@89
|
6110 fi
|
cannam@89
|
6111 fi
|
cannam@89
|
6112 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
|
cannam@89
|
6113 if test -n "$ac_ct_OTOOL64"; then
|
cannam@89
|
6114 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
|
cannam@89
|
6115 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
|
cannam@89
|
6116 else
|
cannam@89
|
6117 { echo "$as_me:$LINENO: result: no" >&5
|
cannam@89
|
6118 echo "${ECHO_T}no" >&6; }
|
cannam@89
|
6119 fi
|
cannam@89
|
6120
|
cannam@89
|
6121 if test "x$ac_ct_OTOOL64" = x; then
|
cannam@89
|
6122 OTOOL64=":"
|
cannam@89
|
6123 else
|
cannam@89
|
6124 case $cross_compiling:$ac_tool_warned in
|
cannam@89
|
6125 yes:)
|
cannam@89
|
6126 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
cannam@89
|
6127 whose name does not start with the host triplet. If you think this
|
cannam@89
|
6128 configuration is useful to you, please write to autoconf@gnu.org." >&5
|
cannam@89
|
6129 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
cannam@89
|
6130 whose name does not start with the host triplet. If you think this
|
cannam@89
|
6131 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
cannam@89
|
6132 ac_tool_warned=yes ;;
|
cannam@89
|
6133 esac
|
cannam@89
|
6134 OTOOL64=$ac_ct_OTOOL64
|
cannam@89
|
6135 fi
|
cannam@89
|
6136 else
|
cannam@89
|
6137 OTOOL64="$ac_cv_prog_OTOOL64"
|
cannam@89
|
6138 fi
|
cannam@89
|
6139
|
cannam@89
|
6140
|
cannam@89
|
6141
|
cannam@89
|
6142
|
cannam@89
|
6143
|
cannam@89
|
6144
|
cannam@89
|
6145
|
cannam@89
|
6146
|
cannam@89
|
6147
|
cannam@89
|
6148
|
cannam@89
|
6149
|
cannam@89
|
6150
|
cannam@89
|
6151
|
cannam@89
|
6152
|
cannam@89
|
6153
|
cannam@89
|
6154
|
cannam@89
|
6155
|
cannam@89
|
6156
|
cannam@89
|
6157
|
cannam@89
|
6158
|
cannam@89
|
6159
|
cannam@89
|
6160
|
cannam@89
|
6161
|
cannam@89
|
6162
|
cannam@89
|
6163
|
cannam@89
|
6164
|
cannam@89
|
6165
|
cannam@89
|
6166 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
|
cannam@89
|
6167 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
|
cannam@89
|
6168 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
|
cannam@89
|
6169 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
6170 else
|
cannam@89
|
6171 lt_cv_apple_cc_single_mod=no
|
cannam@89
|
6172 if test -z "${LT_MULTI_MODULE}"; then
|
cannam@89
|
6173 # By default we will add the -single_module flag. You can override
|
cannam@89
|
6174 # by either setting the environment variable LT_MULTI_MODULE
|
cannam@89
|
6175 # non-empty at configure time, or by adding -multi_module to the
|
cannam@89
|
6176 # link flags.
|
cannam@89
|
6177 rm -rf libconftest.dylib*
|
cannam@89
|
6178 echo "int foo(void){return 1;}" > conftest.c
|
cannam@89
|
6179 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
|
cannam@89
|
6180 -dynamiclib -Wl,-single_module conftest.c" >&5
|
cannam@89
|
6181 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
|
cannam@89
|
6182 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
|
cannam@89
|
6183 _lt_result=$?
|
cannam@89
|
6184 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
|
cannam@89
|
6185 lt_cv_apple_cc_single_mod=yes
|
cannam@89
|
6186 else
|
cannam@89
|
6187 cat conftest.err >&5
|
cannam@89
|
6188 fi
|
cannam@89
|
6189 rm -rf libconftest.dylib*
|
cannam@89
|
6190 rm -f conftest.*
|
cannam@89
|
6191 fi
|
cannam@89
|
6192 fi
|
cannam@89
|
6193 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
|
cannam@89
|
6194 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
|
cannam@89
|
6195 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
|
cannam@89
|
6196 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
|
cannam@89
|
6197 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
|
cannam@89
|
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
6199 else
|
cannam@89
|
6200 lt_cv_ld_exported_symbols_list=no
|
cannam@89
|
6201 save_LDFLAGS=$LDFLAGS
|
cannam@89
|
6202 echo "_main" > conftest.sym
|
cannam@89
|
6203 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
|
cannam@89
|
6204 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
6205 /* confdefs.h. */
|
cannam@89
|
6206 _ACEOF
|
cannam@89
|
6207 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
6208 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
6209 /* end confdefs.h. */
|
cannam@89
|
6210
|
cannam@89
|
6211 int
|
cannam@89
|
6212 main ()
|
cannam@89
|
6213 {
|
cannam@89
|
6214
|
cannam@89
|
6215 ;
|
cannam@89
|
6216 return 0;
|
cannam@89
|
6217 }
|
cannam@89
|
6218 _ACEOF
|
cannam@89
|
6219 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@89
|
6220 if { (ac_try="$ac_link"
|
cannam@89
|
6221 case "(($ac_try" in
|
cannam@89
|
6222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
6223 *) ac_try_echo=$ac_try;;
|
cannam@89
|
6224 esac
|
cannam@89
|
6225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
6226 (eval "$ac_link") 2>conftest.er1
|
cannam@89
|
6227 ac_status=$?
|
cannam@89
|
6228 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@89
|
6229 rm -f conftest.er1
|
cannam@89
|
6230 cat conftest.err >&5
|
cannam@89
|
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
6232 (exit $ac_status); } && {
|
cannam@89
|
6233 test -z "$ac_c_werror_flag" ||
|
cannam@89
|
6234 test ! -s conftest.err
|
cannam@89
|
6235 } && test -s conftest$ac_exeext &&
|
cannam@89
|
6236 $as_test_x conftest$ac_exeext; then
|
cannam@89
|
6237 lt_cv_ld_exported_symbols_list=yes
|
cannam@89
|
6238 else
|
cannam@89
|
6239 echo "$as_me: failed program was:" >&5
|
cannam@89
|
6240 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@89
|
6241
|
cannam@89
|
6242 lt_cv_ld_exported_symbols_list=no
|
cannam@89
|
6243 fi
|
cannam@89
|
6244
|
cannam@89
|
6245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
cannam@89
|
6246 conftest$ac_exeext conftest.$ac_ext
|
cannam@89
|
6247 LDFLAGS="$save_LDFLAGS"
|
cannam@89
|
6248
|
cannam@89
|
6249 fi
|
cannam@89
|
6250 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
|
cannam@89
|
6251 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
|
cannam@89
|
6252 case $host_os in
|
cannam@89
|
6253 rhapsody* | darwin1.[012])
|
cannam@89
|
6254 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
|
cannam@89
|
6255 darwin1.*)
|
cannam@89
|
6256 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
|
cannam@89
|
6257 darwin*) # darwin 5.x on
|
cannam@89
|
6258 # if running on 10.5 or later, the deployment target defaults
|
cannam@89
|
6259 # to the OS version, if on x86, and 10.4, the deployment
|
cannam@89
|
6260 # target defaults to 10.4. Don't you love it?
|
cannam@89
|
6261 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
|
cannam@89
|
6262 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
|
cannam@89
|
6263 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
|
cannam@89
|
6264 10.[012]*)
|
cannam@89
|
6265 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
|
cannam@89
|
6266 10.*)
|
cannam@89
|
6267 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
|
cannam@89
|
6268 esac
|
cannam@89
|
6269 ;;
|
cannam@89
|
6270 esac
|
cannam@89
|
6271 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
|
cannam@89
|
6272 _lt_dar_single_mod='$single_module'
|
cannam@89
|
6273 fi
|
cannam@89
|
6274 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
|
cannam@89
|
6275 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
|
cannam@89
|
6276 else
|
cannam@89
|
6277 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
cannam@89
|
6278 fi
|
cannam@89
|
6279 if test "$DSYMUTIL" != ":"; then
|
cannam@89
|
6280 _lt_dsymutil='~$DSYMUTIL $lib || :'
|
cannam@89
|
6281 else
|
cannam@89
|
6282 _lt_dsymutil=
|
cannam@89
|
6283 fi
|
cannam@89
|
6284 ;;
|
cannam@89
|
6285 esac
|
cannam@89
|
6286
|
cannam@89
|
6287 ac_ext=c
|
cannam@89
|
6288 ac_cpp='$CPP $CPPFLAGS'
|
cannam@89
|
6289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
cannam@89
|
6290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
cannam@89
|
6291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
cannam@89
|
6292 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
cannam@89
|
6293 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
|
cannam@89
|
6294 # On Suns, sometimes $CPP names a directory.
|
cannam@89
|
6295 if test -n "$CPP" && test -d "$CPP"; then
|
cannam@89
|
6296 CPP=
|
cannam@89
|
6297 fi
|
cannam@89
|
6298 if test -z "$CPP"; then
|
cannam@89
|
6299 if test "${ac_cv_prog_CPP+set}" = set; then
|
cannam@89
|
6300 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
6301 else
|
cannam@89
|
6302 # Double quotes because CPP needs to be expanded
|
cannam@89
|
6303 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
cannam@89
|
6304 do
|
cannam@89
|
6305 ac_preproc_ok=false
|
cannam@89
|
6306 for ac_c_preproc_warn_flag in '' yes
|
cannam@89
|
6307 do
|
cannam@89
|
6308 # Use a header file that comes with gcc, so configuring glibc
|
cannam@89
|
6309 # with a fresh cross-compiler works.
|
cannam@89
|
6310 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
cannam@89
|
6311 # <limits.h> exists even on freestanding compilers.
|
cannam@89
|
6312 # On the NeXT, cc -E runs the code through the compiler's parser,
|
cannam@89
|
6313 # not just through cpp. "Syntax error" is here to catch this case.
|
cannam@89
|
6314 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
6315 /* confdefs.h. */
|
cannam@89
|
6316 _ACEOF
|
cannam@89
|
6317 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
6318 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
6319 /* end confdefs.h. */
|
cannam@89
|
6320 #ifdef __STDC__
|
cannam@89
|
6321 # include <limits.h>
|
cannam@89
|
6322 #else
|
cannam@89
|
6323 # include <assert.h>
|
cannam@89
|
6324 #endif
|
cannam@89
|
6325 Syntax error
|
cannam@89
|
6326 _ACEOF
|
cannam@89
|
6327 if { (ac_try="$ac_cpp conftest.$ac_ext"
|
cannam@89
|
6328 case "(($ac_try" in
|
cannam@89
|
6329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
6330 *) ac_try_echo=$ac_try;;
|
cannam@89
|
6331 esac
|
cannam@89
|
6332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
6333 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
cannam@89
|
6334 ac_status=$?
|
cannam@89
|
6335 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@89
|
6336 rm -f conftest.er1
|
cannam@89
|
6337 cat conftest.err >&5
|
cannam@89
|
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
6339 (exit $ac_status); } >/dev/null && {
|
cannam@89
|
6340 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
cannam@89
|
6341 test ! -s conftest.err
|
cannam@89
|
6342 }; then
|
cannam@89
|
6343 :
|
cannam@89
|
6344 else
|
cannam@89
|
6345 echo "$as_me: failed program was:" >&5
|
cannam@89
|
6346 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@89
|
6347
|
cannam@89
|
6348 # Broken: fails on valid input.
|
cannam@89
|
6349 continue
|
cannam@89
|
6350 fi
|
cannam@89
|
6351
|
cannam@89
|
6352 rm -f conftest.err conftest.$ac_ext
|
cannam@89
|
6353
|
cannam@89
|
6354 # OK, works on sane cases. Now check whether nonexistent headers
|
cannam@89
|
6355 # can be detected and how.
|
cannam@89
|
6356 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
6357 /* confdefs.h. */
|
cannam@89
|
6358 _ACEOF
|
cannam@89
|
6359 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
6360 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
6361 /* end confdefs.h. */
|
cannam@89
|
6362 #include <ac_nonexistent.h>
|
cannam@89
|
6363 _ACEOF
|
cannam@89
|
6364 if { (ac_try="$ac_cpp conftest.$ac_ext"
|
cannam@89
|
6365 case "(($ac_try" in
|
cannam@89
|
6366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
6367 *) ac_try_echo=$ac_try;;
|
cannam@89
|
6368 esac
|
cannam@89
|
6369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
6370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
cannam@89
|
6371 ac_status=$?
|
cannam@89
|
6372 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@89
|
6373 rm -f conftest.er1
|
cannam@89
|
6374 cat conftest.err >&5
|
cannam@89
|
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
6376 (exit $ac_status); } >/dev/null && {
|
cannam@89
|
6377 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
cannam@89
|
6378 test ! -s conftest.err
|
cannam@89
|
6379 }; then
|
cannam@89
|
6380 # Broken: success on invalid input.
|
cannam@89
|
6381 continue
|
cannam@89
|
6382 else
|
cannam@89
|
6383 echo "$as_me: failed program was:" >&5
|
cannam@89
|
6384 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@89
|
6385
|
cannam@89
|
6386 # Passes both tests.
|
cannam@89
|
6387 ac_preproc_ok=:
|
cannam@89
|
6388 break
|
cannam@89
|
6389 fi
|
cannam@89
|
6390
|
cannam@89
|
6391 rm -f conftest.err conftest.$ac_ext
|
cannam@89
|
6392
|
cannam@89
|
6393 done
|
cannam@89
|
6394 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
cannam@89
|
6395 rm -f conftest.err conftest.$ac_ext
|
cannam@89
|
6396 if $ac_preproc_ok; then
|
cannam@89
|
6397 break
|
cannam@89
|
6398 fi
|
cannam@89
|
6399
|
cannam@89
|
6400 done
|
cannam@89
|
6401 ac_cv_prog_CPP=$CPP
|
cannam@89
|
6402
|
cannam@89
|
6403 fi
|
cannam@89
|
6404 CPP=$ac_cv_prog_CPP
|
cannam@89
|
6405 else
|
cannam@89
|
6406 ac_cv_prog_CPP=$CPP
|
cannam@89
|
6407 fi
|
cannam@89
|
6408 { echo "$as_me:$LINENO: result: $CPP" >&5
|
cannam@89
|
6409 echo "${ECHO_T}$CPP" >&6; }
|
cannam@89
|
6410 ac_preproc_ok=false
|
cannam@89
|
6411 for ac_c_preproc_warn_flag in '' yes
|
cannam@89
|
6412 do
|
cannam@89
|
6413 # Use a header file that comes with gcc, so configuring glibc
|
cannam@89
|
6414 # with a fresh cross-compiler works.
|
cannam@89
|
6415 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
cannam@89
|
6416 # <limits.h> exists even on freestanding compilers.
|
cannam@89
|
6417 # On the NeXT, cc -E runs the code through the compiler's parser,
|
cannam@89
|
6418 # not just through cpp. "Syntax error" is here to catch this case.
|
cannam@89
|
6419 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
6420 /* confdefs.h. */
|
cannam@89
|
6421 _ACEOF
|
cannam@89
|
6422 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
6423 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
6424 /* end confdefs.h. */
|
cannam@89
|
6425 #ifdef __STDC__
|
cannam@89
|
6426 # include <limits.h>
|
cannam@89
|
6427 #else
|
cannam@89
|
6428 # include <assert.h>
|
cannam@89
|
6429 #endif
|
cannam@89
|
6430 Syntax error
|
cannam@89
|
6431 _ACEOF
|
cannam@89
|
6432 if { (ac_try="$ac_cpp conftest.$ac_ext"
|
cannam@89
|
6433 case "(($ac_try" in
|
cannam@89
|
6434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
6435 *) ac_try_echo=$ac_try;;
|
cannam@89
|
6436 esac
|
cannam@89
|
6437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
6438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
cannam@89
|
6439 ac_status=$?
|
cannam@89
|
6440 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@89
|
6441 rm -f conftest.er1
|
cannam@89
|
6442 cat conftest.err >&5
|
cannam@89
|
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
6444 (exit $ac_status); } >/dev/null && {
|
cannam@89
|
6445 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
cannam@89
|
6446 test ! -s conftest.err
|
cannam@89
|
6447 }; then
|
cannam@89
|
6448 :
|
cannam@89
|
6449 else
|
cannam@89
|
6450 echo "$as_me: failed program was:" >&5
|
cannam@89
|
6451 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@89
|
6452
|
cannam@89
|
6453 # Broken: fails on valid input.
|
cannam@89
|
6454 continue
|
cannam@89
|
6455 fi
|
cannam@89
|
6456
|
cannam@89
|
6457 rm -f conftest.err conftest.$ac_ext
|
cannam@89
|
6458
|
cannam@89
|
6459 # OK, works on sane cases. Now check whether nonexistent headers
|
cannam@89
|
6460 # can be detected and how.
|
cannam@89
|
6461 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
6462 /* confdefs.h. */
|
cannam@89
|
6463 _ACEOF
|
cannam@89
|
6464 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
6465 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
6466 /* end confdefs.h. */
|
cannam@89
|
6467 #include <ac_nonexistent.h>
|
cannam@89
|
6468 _ACEOF
|
cannam@89
|
6469 if { (ac_try="$ac_cpp conftest.$ac_ext"
|
cannam@89
|
6470 case "(($ac_try" in
|
cannam@89
|
6471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
6472 *) ac_try_echo=$ac_try;;
|
cannam@89
|
6473 esac
|
cannam@89
|
6474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
6475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
cannam@89
|
6476 ac_status=$?
|
cannam@89
|
6477 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@89
|
6478 rm -f conftest.er1
|
cannam@89
|
6479 cat conftest.err >&5
|
cannam@89
|
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
6481 (exit $ac_status); } >/dev/null && {
|
cannam@89
|
6482 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
cannam@89
|
6483 test ! -s conftest.err
|
cannam@89
|
6484 }; then
|
cannam@89
|
6485 # Broken: success on invalid input.
|
cannam@89
|
6486 continue
|
cannam@89
|
6487 else
|
cannam@89
|
6488 echo "$as_me: failed program was:" >&5
|
cannam@89
|
6489 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@89
|
6490
|
cannam@89
|
6491 # Passes both tests.
|
cannam@89
|
6492 ac_preproc_ok=:
|
cannam@89
|
6493 break
|
cannam@89
|
6494 fi
|
cannam@89
|
6495
|
cannam@89
|
6496 rm -f conftest.err conftest.$ac_ext
|
cannam@89
|
6497
|
cannam@89
|
6498 done
|
cannam@89
|
6499 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
cannam@89
|
6500 rm -f conftest.err conftest.$ac_ext
|
cannam@89
|
6501 if $ac_preproc_ok; then
|
cannam@89
|
6502 :
|
cannam@89
|
6503 else
|
cannam@89
|
6504 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
cannam@89
|
6505 See \`config.log' for more details." >&5
|
cannam@89
|
6506 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
|
cannam@89
|
6507 See \`config.log' for more details." >&2;}
|
cannam@89
|
6508 { (exit 1); exit 1; }; }
|
cannam@89
|
6509 fi
|
cannam@89
|
6510
|
cannam@89
|
6511 ac_ext=c
|
cannam@89
|
6512 ac_cpp='$CPP $CPPFLAGS'
|
cannam@89
|
6513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
cannam@89
|
6514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
cannam@89
|
6515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
cannam@89
|
6516
|
cannam@89
|
6517
|
cannam@89
|
6518 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
cannam@89
|
6519 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
|
cannam@89
|
6520 if test "${ac_cv_header_stdc+set}" = set; then
|
cannam@89
|
6521 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
6522 else
|
cannam@89
|
6523 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
6524 /* confdefs.h. */
|
cannam@89
|
6525 _ACEOF
|
cannam@89
|
6526 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
6527 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
6528 /* end confdefs.h. */
|
cannam@89
|
6529 #include <stdlib.h>
|
cannam@89
|
6530 #include <stdarg.h>
|
cannam@89
|
6531 #include <string.h>
|
cannam@89
|
6532 #include <float.h>
|
cannam@89
|
6533
|
cannam@89
|
6534 int
|
cannam@89
|
6535 main ()
|
cannam@89
|
6536 {
|
cannam@89
|
6537
|
cannam@89
|
6538 ;
|
cannam@89
|
6539 return 0;
|
cannam@89
|
6540 }
|
cannam@89
|
6541 _ACEOF
|
cannam@89
|
6542 rm -f conftest.$ac_objext
|
cannam@89
|
6543 if { (ac_try="$ac_compile"
|
cannam@89
|
6544 case "(($ac_try" in
|
cannam@89
|
6545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
6546 *) ac_try_echo=$ac_try;;
|
cannam@89
|
6547 esac
|
cannam@89
|
6548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
6549 (eval "$ac_compile") 2>conftest.er1
|
cannam@89
|
6550 ac_status=$?
|
cannam@89
|
6551 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@89
|
6552 rm -f conftest.er1
|
cannam@89
|
6553 cat conftest.err >&5
|
cannam@89
|
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
6555 (exit $ac_status); } && {
|
cannam@89
|
6556 test -z "$ac_c_werror_flag" ||
|
cannam@89
|
6557 test ! -s conftest.err
|
cannam@89
|
6558 } && test -s conftest.$ac_objext; then
|
cannam@89
|
6559 ac_cv_header_stdc=yes
|
cannam@89
|
6560 else
|
cannam@89
|
6561 echo "$as_me: failed program was:" >&5
|
cannam@89
|
6562 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@89
|
6563
|
cannam@89
|
6564 ac_cv_header_stdc=no
|
cannam@89
|
6565 fi
|
cannam@89
|
6566
|
cannam@89
|
6567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@89
|
6568
|
cannam@89
|
6569 if test $ac_cv_header_stdc = yes; then
|
cannam@89
|
6570 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
cannam@89
|
6571 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
6572 /* confdefs.h. */
|
cannam@89
|
6573 _ACEOF
|
cannam@89
|
6574 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
6575 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
6576 /* end confdefs.h. */
|
cannam@89
|
6577 #include <string.h>
|
cannam@89
|
6578
|
cannam@89
|
6579 _ACEOF
|
cannam@89
|
6580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
cannam@89
|
6581 $EGREP "memchr" >/dev/null 2>&1; then
|
cannam@89
|
6582 :
|
cannam@89
|
6583 else
|
cannam@89
|
6584 ac_cv_header_stdc=no
|
cannam@89
|
6585 fi
|
cannam@89
|
6586 rm -f conftest*
|
cannam@89
|
6587
|
cannam@89
|
6588 fi
|
cannam@89
|
6589
|
cannam@89
|
6590 if test $ac_cv_header_stdc = yes; then
|
cannam@89
|
6591 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
cannam@89
|
6592 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
6593 /* confdefs.h. */
|
cannam@89
|
6594 _ACEOF
|
cannam@89
|
6595 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
6596 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
6597 /* end confdefs.h. */
|
cannam@89
|
6598 #include <stdlib.h>
|
cannam@89
|
6599
|
cannam@89
|
6600 _ACEOF
|
cannam@89
|
6601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
cannam@89
|
6602 $EGREP "free" >/dev/null 2>&1; then
|
cannam@89
|
6603 :
|
cannam@89
|
6604 else
|
cannam@89
|
6605 ac_cv_header_stdc=no
|
cannam@89
|
6606 fi
|
cannam@89
|
6607 rm -f conftest*
|
cannam@89
|
6608
|
cannam@89
|
6609 fi
|
cannam@89
|
6610
|
cannam@89
|
6611 if test $ac_cv_header_stdc = yes; then
|
cannam@89
|
6612 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
cannam@89
|
6613 if test "$cross_compiling" = yes; then
|
cannam@89
|
6614 :
|
cannam@89
|
6615 else
|
cannam@89
|
6616 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
6617 /* confdefs.h. */
|
cannam@89
|
6618 _ACEOF
|
cannam@89
|
6619 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
6620 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
6621 /* end confdefs.h. */
|
cannam@89
|
6622 #include <ctype.h>
|
cannam@89
|
6623 #include <stdlib.h>
|
cannam@89
|
6624 #if ((' ' & 0x0FF) == 0x020)
|
cannam@89
|
6625 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
cannam@89
|
6626 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
cannam@89
|
6627 #else
|
cannam@89
|
6628 # define ISLOWER(c) \
|
cannam@89
|
6629 (('a' <= (c) && (c) <= 'i') \
|
cannam@89
|
6630 || ('j' <= (c) && (c) <= 'r') \
|
cannam@89
|
6631 || ('s' <= (c) && (c) <= 'z'))
|
cannam@89
|
6632 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
cannam@89
|
6633 #endif
|
cannam@89
|
6634
|
cannam@89
|
6635 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
cannam@89
|
6636 int
|
cannam@89
|
6637 main ()
|
cannam@89
|
6638 {
|
cannam@89
|
6639 int i;
|
cannam@89
|
6640 for (i = 0; i < 256; i++)
|
cannam@89
|
6641 if (XOR (islower (i), ISLOWER (i))
|
cannam@89
|
6642 || toupper (i) != TOUPPER (i))
|
cannam@89
|
6643 return 2;
|
cannam@89
|
6644 return 0;
|
cannam@89
|
6645 }
|
cannam@89
|
6646 _ACEOF
|
cannam@89
|
6647 rm -f conftest$ac_exeext
|
cannam@89
|
6648 if { (ac_try="$ac_link"
|
cannam@89
|
6649 case "(($ac_try" in
|
cannam@89
|
6650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
6651 *) ac_try_echo=$ac_try;;
|
cannam@89
|
6652 esac
|
cannam@89
|
6653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
6654 (eval "$ac_link") 2>&5
|
cannam@89
|
6655 ac_status=$?
|
cannam@89
|
6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
6657 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
cannam@89
|
6658 { (case "(($ac_try" in
|
cannam@89
|
6659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
6660 *) ac_try_echo=$ac_try;;
|
cannam@89
|
6661 esac
|
cannam@89
|
6662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
6663 (eval "$ac_try") 2>&5
|
cannam@89
|
6664 ac_status=$?
|
cannam@89
|
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
6666 (exit $ac_status); }; }; then
|
cannam@89
|
6667 :
|
cannam@89
|
6668 else
|
cannam@89
|
6669 echo "$as_me: program exited with status $ac_status" >&5
|
cannam@89
|
6670 echo "$as_me: failed program was:" >&5
|
cannam@89
|
6671 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@89
|
6672
|
cannam@89
|
6673 ( exit $ac_status )
|
cannam@89
|
6674 ac_cv_header_stdc=no
|
cannam@89
|
6675 fi
|
cannam@89
|
6676 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
cannam@89
|
6677 fi
|
cannam@89
|
6678
|
cannam@89
|
6679
|
cannam@89
|
6680 fi
|
cannam@89
|
6681 fi
|
cannam@89
|
6682 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
cannam@89
|
6683 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
|
cannam@89
|
6684 if test $ac_cv_header_stdc = yes; then
|
cannam@89
|
6685
|
cannam@89
|
6686 cat >>confdefs.h <<\_ACEOF
|
cannam@89
|
6687 #define STDC_HEADERS 1
|
cannam@89
|
6688 _ACEOF
|
cannam@89
|
6689
|
cannam@89
|
6690 fi
|
cannam@89
|
6691
|
cannam@89
|
6692 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
cannam@89
|
6693
|
cannam@89
|
6694
|
cannam@89
|
6695
|
cannam@89
|
6696
|
cannam@89
|
6697
|
cannam@89
|
6698
|
cannam@89
|
6699
|
cannam@89
|
6700
|
cannam@89
|
6701
|
cannam@89
|
6702 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
cannam@89
|
6703 inttypes.h stdint.h unistd.h
|
cannam@89
|
6704 do
|
cannam@89
|
6705 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
cannam@89
|
6706 { echo "$as_me:$LINENO: checking for $ac_header" >&5
|
cannam@89
|
6707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
cannam@89
|
6708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
cannam@89
|
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
6710 else
|
cannam@89
|
6711 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
6712 /* confdefs.h. */
|
cannam@89
|
6713 _ACEOF
|
cannam@89
|
6714 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
6715 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
6716 /* end confdefs.h. */
|
cannam@89
|
6717 $ac_includes_default
|
cannam@89
|
6718
|
cannam@89
|
6719 #include <$ac_header>
|
cannam@89
|
6720 _ACEOF
|
cannam@89
|
6721 rm -f conftest.$ac_objext
|
cannam@89
|
6722 if { (ac_try="$ac_compile"
|
cannam@89
|
6723 case "(($ac_try" in
|
cannam@89
|
6724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
6725 *) ac_try_echo=$ac_try;;
|
cannam@89
|
6726 esac
|
cannam@89
|
6727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
6728 (eval "$ac_compile") 2>conftest.er1
|
cannam@89
|
6729 ac_status=$?
|
cannam@89
|
6730 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@89
|
6731 rm -f conftest.er1
|
cannam@89
|
6732 cat conftest.err >&5
|
cannam@89
|
6733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
6734 (exit $ac_status); } && {
|
cannam@89
|
6735 test -z "$ac_c_werror_flag" ||
|
cannam@89
|
6736 test ! -s conftest.err
|
cannam@89
|
6737 } && test -s conftest.$ac_objext; then
|
cannam@89
|
6738 eval "$as_ac_Header=yes"
|
cannam@89
|
6739 else
|
cannam@89
|
6740 echo "$as_me: failed program was:" >&5
|
cannam@89
|
6741 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@89
|
6742
|
cannam@89
|
6743 eval "$as_ac_Header=no"
|
cannam@89
|
6744 fi
|
cannam@89
|
6745
|
cannam@89
|
6746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@89
|
6747 fi
|
cannam@89
|
6748 ac_res=`eval echo '${'$as_ac_Header'}'`
|
cannam@89
|
6749 { echo "$as_me:$LINENO: result: $ac_res" >&5
|
cannam@89
|
6750 echo "${ECHO_T}$ac_res" >&6; }
|
cannam@89
|
6751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
cannam@89
|
6752 cat >>confdefs.h <<_ACEOF
|
cannam@89
|
6753 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
cannam@89
|
6754 _ACEOF
|
cannam@89
|
6755
|
cannam@89
|
6756 fi
|
cannam@89
|
6757
|
cannam@89
|
6758 done
|
cannam@89
|
6759
|
cannam@89
|
6760
|
cannam@89
|
6761
|
cannam@89
|
6762 for ac_header in dlfcn.h
|
cannam@89
|
6763 do
|
cannam@89
|
6764 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
cannam@89
|
6765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
|
cannam@89
|
6766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
cannam@89
|
6767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
cannam@89
|
6768 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
6769 else
|
cannam@89
|
6770 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
6771 /* confdefs.h. */
|
cannam@89
|
6772 _ACEOF
|
cannam@89
|
6773 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
6774 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
6775 /* end confdefs.h. */
|
cannam@89
|
6776 $ac_includes_default
|
cannam@89
|
6777
|
cannam@89
|
6778 #include <$ac_header>
|
cannam@89
|
6779 _ACEOF
|
cannam@89
|
6780 rm -f conftest.$ac_objext
|
cannam@89
|
6781 if { (ac_try="$ac_compile"
|
cannam@89
|
6782 case "(($ac_try" in
|
cannam@89
|
6783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
6784 *) ac_try_echo=$ac_try;;
|
cannam@89
|
6785 esac
|
cannam@89
|
6786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
6787 (eval "$ac_compile") 2>conftest.er1
|
cannam@89
|
6788 ac_status=$?
|
cannam@89
|
6789 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@89
|
6790 rm -f conftest.er1
|
cannam@89
|
6791 cat conftest.err >&5
|
cannam@89
|
6792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
6793 (exit $ac_status); } && {
|
cannam@89
|
6794 test -z "$ac_c_werror_flag" ||
|
cannam@89
|
6795 test ! -s conftest.err
|
cannam@89
|
6796 } && test -s conftest.$ac_objext; then
|
cannam@89
|
6797 eval "$as_ac_Header=yes"
|
cannam@89
|
6798 else
|
cannam@89
|
6799 echo "$as_me: failed program was:" >&5
|
cannam@89
|
6800 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@89
|
6801
|
cannam@89
|
6802 eval "$as_ac_Header=no"
|
cannam@89
|
6803 fi
|
cannam@89
|
6804
|
cannam@89
|
6805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@89
|
6806 fi
|
cannam@89
|
6807 ac_res=`eval echo '${'$as_ac_Header'}'`
|
cannam@89
|
6808 { echo "$as_me:$LINENO: result: $ac_res" >&5
|
cannam@89
|
6809 echo "${ECHO_T}$ac_res" >&6; }
|
cannam@89
|
6810 if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
cannam@89
|
6811 cat >>confdefs.h <<_ACEOF
|
cannam@89
|
6812 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
cannam@89
|
6813 _ACEOF
|
cannam@89
|
6814
|
cannam@89
|
6815 fi
|
cannam@89
|
6816
|
cannam@89
|
6817 done
|
cannam@89
|
6818
|
cannam@89
|
6819
|
cannam@89
|
6820
|
cannam@89
|
6821 # Set options
|
cannam@89
|
6822
|
cannam@89
|
6823
|
cannam@89
|
6824
|
cannam@89
|
6825 enable_dlopen=no
|
cannam@89
|
6826
|
cannam@89
|
6827
|
cannam@89
|
6828 enable_win32_dll=no
|
cannam@89
|
6829
|
cannam@89
|
6830
|
cannam@89
|
6831
|
cannam@89
|
6832
|
cannam@89
|
6833
|
cannam@89
|
6834 # Check whether --with-pic was given.
|
cannam@89
|
6835 if test "${with_pic+set}" = set; then
|
cannam@89
|
6836 withval=$with_pic; pic_mode="$withval"
|
cannam@89
|
6837 else
|
cannam@89
|
6838 pic_mode=default
|
cannam@89
|
6839 fi
|
cannam@89
|
6840
|
cannam@89
|
6841
|
cannam@89
|
6842 test -z "$pic_mode" && pic_mode=default
|
cannam@89
|
6843
|
cannam@89
|
6844
|
cannam@89
|
6845
|
cannam@89
|
6846
|
cannam@89
|
6847
|
cannam@89
|
6848
|
cannam@89
|
6849
|
cannam@89
|
6850 # Check whether --enable-fast-install was given.
|
cannam@89
|
6851 if test "${enable_fast_install+set}" = set; then
|
cannam@89
|
6852 enableval=$enable_fast_install; p=${PACKAGE-default}
|
cannam@89
|
6853 case $enableval in
|
cannam@89
|
6854 yes) enable_fast_install=yes ;;
|
cannam@89
|
6855 no) enable_fast_install=no ;;
|
cannam@89
|
6856 *)
|
cannam@89
|
6857 enable_fast_install=no
|
cannam@89
|
6858 # Look at the argument we got. We use all the common list separators.
|
cannam@89
|
6859 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
cannam@89
|
6860 for pkg in $enableval; do
|
cannam@89
|
6861 IFS="$lt_save_ifs"
|
cannam@89
|
6862 if test "X$pkg" = "X$p"; then
|
cannam@89
|
6863 enable_fast_install=yes
|
cannam@89
|
6864 fi
|
cannam@89
|
6865 done
|
cannam@89
|
6866 IFS="$lt_save_ifs"
|
cannam@89
|
6867 ;;
|
cannam@89
|
6868 esac
|
cannam@89
|
6869 else
|
cannam@89
|
6870 enable_fast_install=yes
|
cannam@89
|
6871 fi
|
cannam@89
|
6872
|
cannam@89
|
6873
|
cannam@89
|
6874
|
cannam@89
|
6875
|
cannam@89
|
6876
|
cannam@89
|
6877
|
cannam@89
|
6878
|
cannam@89
|
6879
|
cannam@89
|
6880
|
cannam@89
|
6881
|
cannam@89
|
6882
|
cannam@89
|
6883 # This can be used to rebuild libtool when needed
|
cannam@89
|
6884 LIBTOOL_DEPS="$ltmain"
|
cannam@89
|
6885
|
cannam@89
|
6886 # Always use our own libtool.
|
cannam@89
|
6887 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
cannam@89
|
6888
|
cannam@89
|
6889
|
cannam@89
|
6890
|
cannam@89
|
6891
|
cannam@89
|
6892
|
cannam@89
|
6893
|
cannam@89
|
6894
|
cannam@89
|
6895
|
cannam@89
|
6896
|
cannam@89
|
6897
|
cannam@89
|
6898
|
cannam@89
|
6899
|
cannam@89
|
6900
|
cannam@89
|
6901
|
cannam@89
|
6902
|
cannam@89
|
6903
|
cannam@89
|
6904
|
cannam@89
|
6905
|
cannam@89
|
6906
|
cannam@89
|
6907
|
cannam@89
|
6908
|
cannam@89
|
6909
|
cannam@89
|
6910
|
cannam@89
|
6911
|
cannam@89
|
6912
|
cannam@89
|
6913 test -z "$LN_S" && LN_S="ln -s"
|
cannam@89
|
6914
|
cannam@89
|
6915
|
cannam@89
|
6916
|
cannam@89
|
6917
|
cannam@89
|
6918
|
cannam@89
|
6919
|
cannam@89
|
6920
|
cannam@89
|
6921
|
cannam@89
|
6922
|
cannam@89
|
6923
|
cannam@89
|
6924
|
cannam@89
|
6925
|
cannam@89
|
6926
|
cannam@89
|
6927
|
cannam@89
|
6928 if test -n "${ZSH_VERSION+set}" ; then
|
cannam@89
|
6929 setopt NO_GLOB_SUBST
|
cannam@89
|
6930 fi
|
cannam@89
|
6931
|
cannam@89
|
6932 { echo "$as_me:$LINENO: checking for objdir" >&5
|
cannam@89
|
6933 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
|
cannam@89
|
6934 if test "${lt_cv_objdir+set}" = set; then
|
cannam@89
|
6935 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
6936 else
|
cannam@89
|
6937 rm -f .libs 2>/dev/null
|
cannam@89
|
6938 mkdir .libs 2>/dev/null
|
cannam@89
|
6939 if test -d .libs; then
|
cannam@89
|
6940 lt_cv_objdir=.libs
|
cannam@89
|
6941 else
|
cannam@89
|
6942 # MS-DOS does not allow filenames that begin with a dot.
|
cannam@89
|
6943 lt_cv_objdir=_libs
|
cannam@89
|
6944 fi
|
cannam@89
|
6945 rmdir .libs 2>/dev/null
|
cannam@89
|
6946 fi
|
cannam@89
|
6947 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
|
cannam@89
|
6948 echo "${ECHO_T}$lt_cv_objdir" >&6; }
|
cannam@89
|
6949 objdir=$lt_cv_objdir
|
cannam@89
|
6950
|
cannam@89
|
6951
|
cannam@89
|
6952
|
cannam@89
|
6953
|
cannam@89
|
6954
|
cannam@89
|
6955 cat >>confdefs.h <<_ACEOF
|
cannam@89
|
6956 #define LT_OBJDIR "$lt_cv_objdir/"
|
cannam@89
|
6957 _ACEOF
|
cannam@89
|
6958
|
cannam@89
|
6959
|
cannam@89
|
6960
|
cannam@89
|
6961
|
cannam@89
|
6962
|
cannam@89
|
6963
|
cannam@89
|
6964
|
cannam@89
|
6965
|
cannam@89
|
6966
|
cannam@89
|
6967
|
cannam@89
|
6968
|
cannam@89
|
6969
|
cannam@89
|
6970
|
cannam@89
|
6971
|
cannam@89
|
6972
|
cannam@89
|
6973
|
cannam@89
|
6974
|
cannam@89
|
6975 case $host_os in
|
cannam@89
|
6976 aix3*)
|
cannam@89
|
6977 # AIX sometimes has problems with the GCC collect2 program. For some
|
cannam@89
|
6978 # reason, if we set the COLLECT_NAMES environment variable, the problems
|
cannam@89
|
6979 # vanish in a puff of smoke.
|
cannam@89
|
6980 if test "X${COLLECT_NAMES+set}" != Xset; then
|
cannam@89
|
6981 COLLECT_NAMES=
|
cannam@89
|
6982 export COLLECT_NAMES
|
cannam@89
|
6983 fi
|
cannam@89
|
6984 ;;
|
cannam@89
|
6985 esac
|
cannam@89
|
6986
|
cannam@89
|
6987 # Sed substitution that helps us do robust quoting. It backslashifies
|
cannam@89
|
6988 # metacharacters that are still active within double-quoted strings.
|
cannam@89
|
6989 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
|
cannam@89
|
6990
|
cannam@89
|
6991 # Same as above, but do not quote variable references.
|
cannam@89
|
6992 double_quote_subst='s/\(["`\\]\)/\\\1/g'
|
cannam@89
|
6993
|
cannam@89
|
6994 # Sed substitution to delay expansion of an escaped shell variable in a
|
cannam@89
|
6995 # double_quote_subst'ed string.
|
cannam@89
|
6996 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
|
cannam@89
|
6997
|
cannam@89
|
6998 # Sed substitution to delay expansion of an escaped single quote.
|
cannam@89
|
6999 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
|
cannam@89
|
7000
|
cannam@89
|
7001 # Sed substitution to avoid accidental globbing in evaled expressions
|
cannam@89
|
7002 no_glob_subst='s/\*/\\\*/g'
|
cannam@89
|
7003
|
cannam@89
|
7004 # Global variables:
|
cannam@89
|
7005 ofile=libtool
|
cannam@89
|
7006 can_build_shared=yes
|
cannam@89
|
7007
|
cannam@89
|
7008 # All known linkers require a `.a' archive for static linking (except MSVC,
|
cannam@89
|
7009 # which needs '.lib').
|
cannam@89
|
7010 libext=a
|
cannam@89
|
7011
|
cannam@89
|
7012 with_gnu_ld="$lt_cv_prog_gnu_ld"
|
cannam@89
|
7013
|
cannam@89
|
7014 old_CC="$CC"
|
cannam@89
|
7015 old_CFLAGS="$CFLAGS"
|
cannam@89
|
7016
|
cannam@89
|
7017 # Set sane defaults for various variables
|
cannam@89
|
7018 test -z "$CC" && CC=cc
|
cannam@89
|
7019 test -z "$LTCC" && LTCC=$CC
|
cannam@89
|
7020 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
|
cannam@89
|
7021 test -z "$LD" && LD=ld
|
cannam@89
|
7022 test -z "$ac_objext" && ac_objext=o
|
cannam@89
|
7023
|
cannam@89
|
7024 for cc_temp in $compiler""; do
|
cannam@89
|
7025 case $cc_temp in
|
cannam@89
|
7026 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
cannam@89
|
7027 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
cannam@89
|
7028 \-*) ;;
|
cannam@89
|
7029 *) break;;
|
cannam@89
|
7030 esac
|
cannam@89
|
7031 done
|
cannam@89
|
7032 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
cannam@89
|
7033
|
cannam@89
|
7034
|
cannam@89
|
7035 # Only perform the check for file, if the check method requires it
|
cannam@89
|
7036 test -z "$MAGIC_CMD" && MAGIC_CMD=file
|
cannam@89
|
7037 case $deplibs_check_method in
|
cannam@89
|
7038 file_magic*)
|
cannam@89
|
7039 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
cannam@89
|
7040 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
|
cannam@89
|
7041 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
|
cannam@89
|
7042 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
|
cannam@89
|
7043 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
7044 else
|
cannam@89
|
7045 case $MAGIC_CMD in
|
cannam@89
|
7046 [\\/*] | ?:[\\/]*)
|
cannam@89
|
7047 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
cannam@89
|
7048 ;;
|
cannam@89
|
7049 *)
|
cannam@89
|
7050 lt_save_MAGIC_CMD="$MAGIC_CMD"
|
cannam@89
|
7051 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
cannam@89
|
7052 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
|
cannam@89
|
7053 for ac_dir in $ac_dummy; do
|
cannam@89
|
7054 IFS="$lt_save_ifs"
|
cannam@89
|
7055 test -z "$ac_dir" && ac_dir=.
|
cannam@89
|
7056 if test -f $ac_dir/${ac_tool_prefix}file; then
|
cannam@89
|
7057 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
|
cannam@89
|
7058 if test -n "$file_magic_test_file"; then
|
cannam@89
|
7059 case $deplibs_check_method in
|
cannam@89
|
7060 "file_magic "*)
|
cannam@89
|
7061 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
|
cannam@89
|
7062 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
cannam@89
|
7063 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
cannam@89
|
7064 $EGREP "$file_magic_regex" > /dev/null; then
|
cannam@89
|
7065 :
|
cannam@89
|
7066 else
|
cannam@89
|
7067 cat <<_LT_EOF 1>&2
|
cannam@89
|
7068
|
cannam@89
|
7069 *** Warning: the command libtool uses to detect shared libraries,
|
cannam@89
|
7070 *** $file_magic_cmd, produces output that libtool cannot recognize.
|
cannam@89
|
7071 *** The result is that libtool may fail to recognize shared libraries
|
cannam@89
|
7072 *** as such. This will affect the creation of libtool libraries that
|
cannam@89
|
7073 *** depend on shared libraries, but programs linked with such libtool
|
cannam@89
|
7074 *** libraries will work regardless of this problem. Nevertheless, you
|
cannam@89
|
7075 *** may want to report the problem to your system manager and/or to
|
cannam@89
|
7076 *** bug-libtool@gnu.org
|
cannam@89
|
7077
|
cannam@89
|
7078 _LT_EOF
|
cannam@89
|
7079 fi ;;
|
cannam@89
|
7080 esac
|
cannam@89
|
7081 fi
|
cannam@89
|
7082 break
|
cannam@89
|
7083 fi
|
cannam@89
|
7084 done
|
cannam@89
|
7085 IFS="$lt_save_ifs"
|
cannam@89
|
7086 MAGIC_CMD="$lt_save_MAGIC_CMD"
|
cannam@89
|
7087 ;;
|
cannam@89
|
7088 esac
|
cannam@89
|
7089 fi
|
cannam@89
|
7090
|
cannam@89
|
7091 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
cannam@89
|
7092 if test -n "$MAGIC_CMD"; then
|
cannam@89
|
7093 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
|
cannam@89
|
7094 echo "${ECHO_T}$MAGIC_CMD" >&6; }
|
cannam@89
|
7095 else
|
cannam@89
|
7096 { echo "$as_me:$LINENO: result: no" >&5
|
cannam@89
|
7097 echo "${ECHO_T}no" >&6; }
|
cannam@89
|
7098 fi
|
cannam@89
|
7099
|
cannam@89
|
7100
|
cannam@89
|
7101
|
cannam@89
|
7102
|
cannam@89
|
7103
|
cannam@89
|
7104 if test -z "$lt_cv_path_MAGIC_CMD"; then
|
cannam@89
|
7105 if test -n "$ac_tool_prefix"; then
|
cannam@89
|
7106 { echo "$as_me:$LINENO: checking for file" >&5
|
cannam@89
|
7107 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
|
cannam@89
|
7108 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
|
cannam@89
|
7109 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
7110 else
|
cannam@89
|
7111 case $MAGIC_CMD in
|
cannam@89
|
7112 [\\/*] | ?:[\\/]*)
|
cannam@89
|
7113 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
cannam@89
|
7114 ;;
|
cannam@89
|
7115 *)
|
cannam@89
|
7116 lt_save_MAGIC_CMD="$MAGIC_CMD"
|
cannam@89
|
7117 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
cannam@89
|
7118 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
|
cannam@89
|
7119 for ac_dir in $ac_dummy; do
|
cannam@89
|
7120 IFS="$lt_save_ifs"
|
cannam@89
|
7121 test -z "$ac_dir" && ac_dir=.
|
cannam@89
|
7122 if test -f $ac_dir/file; then
|
cannam@89
|
7123 lt_cv_path_MAGIC_CMD="$ac_dir/file"
|
cannam@89
|
7124 if test -n "$file_magic_test_file"; then
|
cannam@89
|
7125 case $deplibs_check_method in
|
cannam@89
|
7126 "file_magic "*)
|
cannam@89
|
7127 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
|
cannam@89
|
7128 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
cannam@89
|
7129 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
cannam@89
|
7130 $EGREP "$file_magic_regex" > /dev/null; then
|
cannam@89
|
7131 :
|
cannam@89
|
7132 else
|
cannam@89
|
7133 cat <<_LT_EOF 1>&2
|
cannam@89
|
7134
|
cannam@89
|
7135 *** Warning: the command libtool uses to detect shared libraries,
|
cannam@89
|
7136 *** $file_magic_cmd, produces output that libtool cannot recognize.
|
cannam@89
|
7137 *** The result is that libtool may fail to recognize shared libraries
|
cannam@89
|
7138 *** as such. This will affect the creation of libtool libraries that
|
cannam@89
|
7139 *** depend on shared libraries, but programs linked with such libtool
|
cannam@89
|
7140 *** libraries will work regardless of this problem. Nevertheless, you
|
cannam@89
|
7141 *** may want to report the problem to your system manager and/or to
|
cannam@89
|
7142 *** bug-libtool@gnu.org
|
cannam@89
|
7143
|
cannam@89
|
7144 _LT_EOF
|
cannam@89
|
7145 fi ;;
|
cannam@89
|
7146 esac
|
cannam@89
|
7147 fi
|
cannam@89
|
7148 break
|
cannam@89
|
7149 fi
|
cannam@89
|
7150 done
|
cannam@89
|
7151 IFS="$lt_save_ifs"
|
cannam@89
|
7152 MAGIC_CMD="$lt_save_MAGIC_CMD"
|
cannam@89
|
7153 ;;
|
cannam@89
|
7154 esac
|
cannam@89
|
7155 fi
|
cannam@89
|
7156
|
cannam@89
|
7157 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
cannam@89
|
7158 if test -n "$MAGIC_CMD"; then
|
cannam@89
|
7159 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
|
cannam@89
|
7160 echo "${ECHO_T}$MAGIC_CMD" >&6; }
|
cannam@89
|
7161 else
|
cannam@89
|
7162 { echo "$as_me:$LINENO: result: no" >&5
|
cannam@89
|
7163 echo "${ECHO_T}no" >&6; }
|
cannam@89
|
7164 fi
|
cannam@89
|
7165
|
cannam@89
|
7166
|
cannam@89
|
7167 else
|
cannam@89
|
7168 MAGIC_CMD=:
|
cannam@89
|
7169 fi
|
cannam@89
|
7170 fi
|
cannam@89
|
7171
|
cannam@89
|
7172 fi
|
cannam@89
|
7173 ;;
|
cannam@89
|
7174 esac
|
cannam@89
|
7175
|
cannam@89
|
7176 # Use C for the default configuration in the libtool script
|
cannam@89
|
7177
|
cannam@89
|
7178 lt_save_CC="$CC"
|
cannam@89
|
7179 ac_ext=c
|
cannam@89
|
7180 ac_cpp='$CPP $CPPFLAGS'
|
cannam@89
|
7181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
cannam@89
|
7182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
cannam@89
|
7183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
cannam@89
|
7184
|
cannam@89
|
7185
|
cannam@89
|
7186 # Source file extension for C test sources.
|
cannam@89
|
7187 ac_ext=c
|
cannam@89
|
7188
|
cannam@89
|
7189 # Object file extension for compiled C test sources.
|
cannam@89
|
7190 objext=o
|
cannam@89
|
7191 objext=$objext
|
cannam@89
|
7192
|
cannam@89
|
7193 # Code to be used in simple compile tests
|
cannam@89
|
7194 lt_simple_compile_test_code="int some_variable = 0;"
|
cannam@89
|
7195
|
cannam@89
|
7196 # Code to be used in simple link tests
|
cannam@89
|
7197 lt_simple_link_test_code='int main(){return(0);}'
|
cannam@89
|
7198
|
cannam@89
|
7199
|
cannam@89
|
7200
|
cannam@89
|
7201
|
cannam@89
|
7202
|
cannam@89
|
7203
|
cannam@89
|
7204
|
cannam@89
|
7205 # If no C compiler was specified, use CC.
|
cannam@89
|
7206 LTCC=${LTCC-"$CC"}
|
cannam@89
|
7207
|
cannam@89
|
7208 # If no C compiler flags were specified, use CFLAGS.
|
cannam@89
|
7209 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
cannam@89
|
7210
|
cannam@89
|
7211 # Allow CC to be a program name with arguments.
|
cannam@89
|
7212 compiler=$CC
|
cannam@89
|
7213
|
cannam@89
|
7214 # Save the default compiler, since it gets overwritten when the other
|
cannam@89
|
7215 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
|
cannam@89
|
7216 compiler_DEFAULT=$CC
|
cannam@89
|
7217
|
cannam@89
|
7218 # save warnings/boilerplate of simple test code
|
cannam@89
|
7219 ac_outfile=conftest.$ac_objext
|
cannam@89
|
7220 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
|
cannam@89
|
7221 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
cannam@89
|
7222 _lt_compiler_boilerplate=`cat conftest.err`
|
cannam@89
|
7223 $RM conftest*
|
cannam@89
|
7224
|
cannam@89
|
7225 ac_outfile=conftest.$ac_objext
|
cannam@89
|
7226 echo "$lt_simple_link_test_code" >conftest.$ac_ext
|
cannam@89
|
7227 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
cannam@89
|
7228 _lt_linker_boilerplate=`cat conftest.err`
|
cannam@89
|
7229 $RM -r conftest*
|
cannam@89
|
7230
|
cannam@89
|
7231
|
cannam@89
|
7232 if test -n "$compiler"; then
|
cannam@89
|
7233
|
cannam@89
|
7234 lt_prog_compiler_no_builtin_flag=
|
cannam@89
|
7235
|
cannam@89
|
7236 if test "$GCC" = yes; then
|
cannam@89
|
7237 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
|
cannam@89
|
7238
|
cannam@89
|
7239 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
|
cannam@89
|
7240 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
|
cannam@89
|
7241 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
|
cannam@89
|
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
7243 else
|
cannam@89
|
7244 lt_cv_prog_compiler_rtti_exceptions=no
|
cannam@89
|
7245 ac_outfile=conftest.$ac_objext
|
cannam@89
|
7246 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
cannam@89
|
7247 lt_compiler_flag="-fno-rtti -fno-exceptions"
|
cannam@89
|
7248 # Insert the option either (1) after the last *FLAGS variable, or
|
cannam@89
|
7249 # (2) before a word containing "conftest.", or (3) at the end.
|
cannam@89
|
7250 # Note that $ac_compile itself does not contain backslashes and begins
|
cannam@89
|
7251 # with a dollar sign (not a hyphen), so the echo should work correctly.
|
cannam@89
|
7252 # The option is referenced via a variable to avoid confusing sed.
|
cannam@89
|
7253 lt_compile=`echo "$ac_compile" | $SED \
|
cannam@89
|
7254 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
cannam@89
|
7255 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
cannam@89
|
7256 -e 's:$: $lt_compiler_flag:'`
|
cannam@89
|
7257 (eval echo "\"\$as_me:7257: $lt_compile\"" >&5)
|
cannam@89
|
7258 (eval "$lt_compile" 2>conftest.err)
|
cannam@89
|
7259 ac_status=$?
|
cannam@89
|
7260 cat conftest.err >&5
|
cannam@89
|
7261 echo "$as_me:7261: \$? = $ac_status" >&5
|
cannam@89
|
7262 if (exit $ac_status) && test -s "$ac_outfile"; then
|
cannam@89
|
7263 # The compiler can only warn and ignore the option if not recognized
|
cannam@89
|
7264 # So say no if there are warnings other than the usual output.
|
cannam@89
|
7265 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
|
cannam@89
|
7266 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
cannam@89
|
7267 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
cannam@89
|
7268 lt_cv_prog_compiler_rtti_exceptions=yes
|
cannam@89
|
7269 fi
|
cannam@89
|
7270 fi
|
cannam@89
|
7271 $RM conftest*
|
cannam@89
|
7272
|
cannam@89
|
7273 fi
|
cannam@89
|
7274 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
|
cannam@89
|
7275 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
|
cannam@89
|
7276
|
cannam@89
|
7277 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
|
cannam@89
|
7278 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
|
cannam@89
|
7279 else
|
cannam@89
|
7280 :
|
cannam@89
|
7281 fi
|
cannam@89
|
7282
|
cannam@89
|
7283 fi
|
cannam@89
|
7284
|
cannam@89
|
7285
|
cannam@89
|
7286
|
cannam@89
|
7287
|
cannam@89
|
7288
|
cannam@89
|
7289
|
cannam@89
|
7290 lt_prog_compiler_wl=
|
cannam@89
|
7291 lt_prog_compiler_pic=
|
cannam@89
|
7292 lt_prog_compiler_static=
|
cannam@89
|
7293
|
cannam@89
|
7294 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
|
cannam@89
|
7295 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
|
cannam@89
|
7296
|
cannam@89
|
7297 if test "$GCC" = yes; then
|
cannam@89
|
7298 lt_prog_compiler_wl='-Wl,'
|
cannam@89
|
7299 lt_prog_compiler_static='-static'
|
cannam@89
|
7300
|
cannam@89
|
7301 case $host_os in
|
cannam@89
|
7302 aix*)
|
cannam@89
|
7303 # All AIX code is PIC.
|
cannam@89
|
7304 if test "$host_cpu" = ia64; then
|
cannam@89
|
7305 # AIX 5 now supports IA64 processor
|
cannam@89
|
7306 lt_prog_compiler_static='-Bstatic'
|
cannam@89
|
7307 fi
|
cannam@89
|
7308 ;;
|
cannam@89
|
7309
|
cannam@89
|
7310 amigaos*)
|
cannam@89
|
7311 case $host_cpu in
|
cannam@89
|
7312 powerpc)
|
cannam@89
|
7313 # see comment about AmigaOS4 .so support
|
cannam@89
|
7314 lt_prog_compiler_pic='-fPIC'
|
cannam@89
|
7315 ;;
|
cannam@89
|
7316 m68k)
|
cannam@89
|
7317 # FIXME: we need at least 68020 code to build shared libraries, but
|
cannam@89
|
7318 # adding the `-m68020' flag to GCC prevents building anything better,
|
cannam@89
|
7319 # like `-m68040'.
|
cannam@89
|
7320 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
|
cannam@89
|
7321 ;;
|
cannam@89
|
7322 esac
|
cannam@89
|
7323 ;;
|
cannam@89
|
7324
|
cannam@89
|
7325 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
cannam@89
|
7326 # PIC is the default for these OSes.
|
cannam@89
|
7327 ;;
|
cannam@89
|
7328
|
cannam@89
|
7329 mingw* | cygwin* | pw32* | os2*)
|
cannam@89
|
7330 # This hack is so that the source file can tell whether it is being
|
cannam@89
|
7331 # built for inclusion in a dll (and should export symbols for example).
|
cannam@89
|
7332 # Although the cygwin gcc ignores -fPIC, still need this for old-style
|
cannam@89
|
7333 # (--disable-auto-import) libraries
|
cannam@89
|
7334 lt_prog_compiler_pic='-DDLL_EXPORT'
|
cannam@89
|
7335 ;;
|
cannam@89
|
7336
|
cannam@89
|
7337 darwin* | rhapsody*)
|
cannam@89
|
7338 # PIC is the default on this platform
|
cannam@89
|
7339 # Common symbols not allowed in MH_DYLIB files
|
cannam@89
|
7340 lt_prog_compiler_pic='-fno-common'
|
cannam@89
|
7341 ;;
|
cannam@89
|
7342
|
cannam@89
|
7343 hpux*)
|
cannam@89
|
7344 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
cannam@89
|
7345 # not for PA HP-UX.
|
cannam@89
|
7346 case $host_cpu in
|
cannam@89
|
7347 hppa*64*|ia64*)
|
cannam@89
|
7348 # +Z the default
|
cannam@89
|
7349 ;;
|
cannam@89
|
7350 *)
|
cannam@89
|
7351 lt_prog_compiler_pic='-fPIC'
|
cannam@89
|
7352 ;;
|
cannam@89
|
7353 esac
|
cannam@89
|
7354 ;;
|
cannam@89
|
7355
|
cannam@89
|
7356 interix[3-9]*)
|
cannam@89
|
7357 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
cannam@89
|
7358 # Instead, we relocate shared libraries at runtime.
|
cannam@89
|
7359 ;;
|
cannam@89
|
7360
|
cannam@89
|
7361 msdosdjgpp*)
|
cannam@89
|
7362 # Just because we use GCC doesn't mean we suddenly get shared libraries
|
cannam@89
|
7363 # on systems that don't support them.
|
cannam@89
|
7364 lt_prog_compiler_can_build_shared=no
|
cannam@89
|
7365 enable_shared=no
|
cannam@89
|
7366 ;;
|
cannam@89
|
7367
|
cannam@89
|
7368 *nto* | *qnx*)
|
cannam@89
|
7369 # QNX uses GNU C++, but need to define -shared option too, otherwise
|
cannam@89
|
7370 # it will coredump.
|
cannam@89
|
7371 lt_prog_compiler_pic='-fPIC -shared'
|
cannam@89
|
7372 ;;
|
cannam@89
|
7373
|
cannam@89
|
7374 sysv4*MP*)
|
cannam@89
|
7375 if test -d /usr/nec; then
|
cannam@89
|
7376 lt_prog_compiler_pic=-Kconform_pic
|
cannam@89
|
7377 fi
|
cannam@89
|
7378 ;;
|
cannam@89
|
7379
|
cannam@89
|
7380 *)
|
cannam@89
|
7381 lt_prog_compiler_pic='-fPIC'
|
cannam@89
|
7382 ;;
|
cannam@89
|
7383 esac
|
cannam@89
|
7384 else
|
cannam@89
|
7385 # PORTME Check for flag to pass linker flags through the system compiler.
|
cannam@89
|
7386 case $host_os in
|
cannam@89
|
7387 aix*)
|
cannam@89
|
7388 lt_prog_compiler_wl='-Wl,'
|
cannam@89
|
7389 if test "$host_cpu" = ia64; then
|
cannam@89
|
7390 # AIX 5 now supports IA64 processor
|
cannam@89
|
7391 lt_prog_compiler_static='-Bstatic'
|
cannam@89
|
7392 else
|
cannam@89
|
7393 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
|
cannam@89
|
7394 fi
|
cannam@89
|
7395 ;;
|
cannam@89
|
7396
|
cannam@89
|
7397 mingw* | cygwin* | pw32* | os2*)
|
cannam@89
|
7398 # This hack is so that the source file can tell whether it is being
|
cannam@89
|
7399 # built for inclusion in a dll (and should export symbols for example).
|
cannam@89
|
7400 lt_prog_compiler_pic='-DDLL_EXPORT'
|
cannam@89
|
7401 ;;
|
cannam@89
|
7402
|
cannam@89
|
7403 hpux9* | hpux10* | hpux11*)
|
cannam@89
|
7404 lt_prog_compiler_wl='-Wl,'
|
cannam@89
|
7405 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
cannam@89
|
7406 # not for PA HP-UX.
|
cannam@89
|
7407 case $host_cpu in
|
cannam@89
|
7408 hppa*64*|ia64*)
|
cannam@89
|
7409 # +Z the default
|
cannam@89
|
7410 ;;
|
cannam@89
|
7411 *)
|
cannam@89
|
7412 lt_prog_compiler_pic='+Z'
|
cannam@89
|
7413 ;;
|
cannam@89
|
7414 esac
|
cannam@89
|
7415 # Is there a better lt_prog_compiler_static that works with the bundled CC?
|
cannam@89
|
7416 lt_prog_compiler_static='${wl}-a ${wl}archive'
|
cannam@89
|
7417 ;;
|
cannam@89
|
7418
|
cannam@89
|
7419 irix5* | irix6* | nonstopux*)
|
cannam@89
|
7420 lt_prog_compiler_wl='-Wl,'
|
cannam@89
|
7421 # PIC (with -KPIC) is the default.
|
cannam@89
|
7422 lt_prog_compiler_static='-non_shared'
|
cannam@89
|
7423 ;;
|
cannam@89
|
7424
|
cannam@89
|
7425 linux* | k*bsd*-gnu)
|
cannam@89
|
7426 case $cc_basename in
|
cannam@89
|
7427 icc* | ecc* | ifort*)
|
cannam@89
|
7428 lt_prog_compiler_wl='-Wl,'
|
cannam@89
|
7429 lt_prog_compiler_pic='-KPIC'
|
cannam@89
|
7430 lt_prog_compiler_static='-static'
|
cannam@89
|
7431 ;;
|
cannam@89
|
7432 pgcc* | pgf77* | pgf90* | pgf95*)
|
cannam@89
|
7433 # Portland Group compilers (*not* the Pentium gcc compiler,
|
cannam@89
|
7434 # which looks to be a dead project)
|
cannam@89
|
7435 lt_prog_compiler_wl='-Wl,'
|
cannam@89
|
7436 lt_prog_compiler_pic='-fpic'
|
cannam@89
|
7437 lt_prog_compiler_static='-Bstatic'
|
cannam@89
|
7438 ;;
|
cannam@89
|
7439 ccc*)
|
cannam@89
|
7440 lt_prog_compiler_wl='-Wl,'
|
cannam@89
|
7441 # All Alpha code is PIC.
|
cannam@89
|
7442 lt_prog_compiler_static='-non_shared'
|
cannam@89
|
7443 ;;
|
cannam@89
|
7444 xl*)
|
cannam@89
|
7445 # IBM XL C 8.0/Fortran 10.1 on PPC
|
cannam@89
|
7446 lt_prog_compiler_wl='-Wl,'
|
cannam@89
|
7447 lt_prog_compiler_pic='-qpic'
|
cannam@89
|
7448 lt_prog_compiler_static='-qstaticlink'
|
cannam@89
|
7449 ;;
|
cannam@89
|
7450 *)
|
cannam@89
|
7451 case `$CC -V 2>&1 | sed 5q` in
|
cannam@89
|
7452 *Sun\ C*)
|
cannam@89
|
7453 # Sun C 5.9
|
cannam@89
|
7454 lt_prog_compiler_pic='-KPIC'
|
cannam@89
|
7455 lt_prog_compiler_static='-Bstatic'
|
cannam@89
|
7456 lt_prog_compiler_wl='-Wl,'
|
cannam@89
|
7457 ;;
|
cannam@89
|
7458 *Sun\ F*)
|
cannam@89
|
7459 # Sun Fortran 8.3 passes all unrecognized flags to the linker
|
cannam@89
|
7460 lt_prog_compiler_pic='-KPIC'
|
cannam@89
|
7461 lt_prog_compiler_static='-Bstatic'
|
cannam@89
|
7462 lt_prog_compiler_wl=''
|
cannam@89
|
7463 ;;
|
cannam@89
|
7464 esac
|
cannam@89
|
7465 ;;
|
cannam@89
|
7466 esac
|
cannam@89
|
7467 ;;
|
cannam@89
|
7468
|
cannam@89
|
7469 newsos6)
|
cannam@89
|
7470 lt_prog_compiler_pic='-KPIC'
|
cannam@89
|
7471 lt_prog_compiler_static='-Bstatic'
|
cannam@89
|
7472 ;;
|
cannam@89
|
7473
|
cannam@89
|
7474 *nto* | *qnx*)
|
cannam@89
|
7475 # QNX uses GNU C++, but need to define -shared option too, otherwise
|
cannam@89
|
7476 # it will coredump.
|
cannam@89
|
7477 lt_prog_compiler_pic='-fPIC -shared'
|
cannam@89
|
7478 ;;
|
cannam@89
|
7479
|
cannam@89
|
7480 osf3* | osf4* | osf5*)
|
cannam@89
|
7481 lt_prog_compiler_wl='-Wl,'
|
cannam@89
|
7482 # All OSF/1 code is PIC.
|
cannam@89
|
7483 lt_prog_compiler_static='-non_shared'
|
cannam@89
|
7484 ;;
|
cannam@89
|
7485
|
cannam@89
|
7486 rdos*)
|
cannam@89
|
7487 lt_prog_compiler_static='-non_shared'
|
cannam@89
|
7488 ;;
|
cannam@89
|
7489
|
cannam@89
|
7490 solaris*)
|
cannam@89
|
7491 lt_prog_compiler_pic='-KPIC'
|
cannam@89
|
7492 lt_prog_compiler_static='-Bstatic'
|
cannam@89
|
7493 case $cc_basename in
|
cannam@89
|
7494 f77* | f90* | f95*)
|
cannam@89
|
7495 lt_prog_compiler_wl='-Qoption ld ';;
|
cannam@89
|
7496 *)
|
cannam@89
|
7497 lt_prog_compiler_wl='-Wl,';;
|
cannam@89
|
7498 esac
|
cannam@89
|
7499 ;;
|
cannam@89
|
7500
|
cannam@89
|
7501 sunos4*)
|
cannam@89
|
7502 lt_prog_compiler_wl='-Qoption ld '
|
cannam@89
|
7503 lt_prog_compiler_pic='-PIC'
|
cannam@89
|
7504 lt_prog_compiler_static='-Bstatic'
|
cannam@89
|
7505 ;;
|
cannam@89
|
7506
|
cannam@89
|
7507 sysv4 | sysv4.2uw2* | sysv4.3*)
|
cannam@89
|
7508 lt_prog_compiler_wl='-Wl,'
|
cannam@89
|
7509 lt_prog_compiler_pic='-KPIC'
|
cannam@89
|
7510 lt_prog_compiler_static='-Bstatic'
|
cannam@89
|
7511 ;;
|
cannam@89
|
7512
|
cannam@89
|
7513 sysv4*MP*)
|
cannam@89
|
7514 if test -d /usr/nec ;then
|
cannam@89
|
7515 lt_prog_compiler_pic='-Kconform_pic'
|
cannam@89
|
7516 lt_prog_compiler_static='-Bstatic'
|
cannam@89
|
7517 fi
|
cannam@89
|
7518 ;;
|
cannam@89
|
7519
|
cannam@89
|
7520 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
|
cannam@89
|
7521 lt_prog_compiler_wl='-Wl,'
|
cannam@89
|
7522 lt_prog_compiler_pic='-KPIC'
|
cannam@89
|
7523 lt_prog_compiler_static='-Bstatic'
|
cannam@89
|
7524 ;;
|
cannam@89
|
7525
|
cannam@89
|
7526 unicos*)
|
cannam@89
|
7527 lt_prog_compiler_wl='-Wl,'
|
cannam@89
|
7528 lt_prog_compiler_can_build_shared=no
|
cannam@89
|
7529 ;;
|
cannam@89
|
7530
|
cannam@89
|
7531 uts4*)
|
cannam@89
|
7532 lt_prog_compiler_pic='-pic'
|
cannam@89
|
7533 lt_prog_compiler_static='-Bstatic'
|
cannam@89
|
7534 ;;
|
cannam@89
|
7535
|
cannam@89
|
7536 *)
|
cannam@89
|
7537 lt_prog_compiler_can_build_shared=no
|
cannam@89
|
7538 ;;
|
cannam@89
|
7539 esac
|
cannam@89
|
7540 fi
|
cannam@89
|
7541
|
cannam@89
|
7542 case $host_os in
|
cannam@89
|
7543 # For platforms which do not support PIC, -DPIC is meaningless:
|
cannam@89
|
7544 *djgpp*)
|
cannam@89
|
7545 lt_prog_compiler_pic=
|
cannam@89
|
7546 ;;
|
cannam@89
|
7547 *)
|
cannam@89
|
7548 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
|
cannam@89
|
7549 ;;
|
cannam@89
|
7550 esac
|
cannam@89
|
7551 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
|
cannam@89
|
7552 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
|
cannam@89
|
7553
|
cannam@89
|
7554
|
cannam@89
|
7555
|
cannam@89
|
7556
|
cannam@89
|
7557
|
cannam@89
|
7558
|
cannam@89
|
7559 #
|
cannam@89
|
7560 # Check to make sure the PIC flag actually works.
|
cannam@89
|
7561 #
|
cannam@89
|
7562 if test -n "$lt_prog_compiler_pic"; then
|
cannam@89
|
7563 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
|
cannam@89
|
7564 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
|
cannam@89
|
7565 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
|
cannam@89
|
7566 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
7567 else
|
cannam@89
|
7568 lt_cv_prog_compiler_pic_works=no
|
cannam@89
|
7569 ac_outfile=conftest.$ac_objext
|
cannam@89
|
7570 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
cannam@89
|
7571 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
|
cannam@89
|
7572 # Insert the option either (1) after the last *FLAGS variable, or
|
cannam@89
|
7573 # (2) before a word containing "conftest.", or (3) at the end.
|
cannam@89
|
7574 # Note that $ac_compile itself does not contain backslashes and begins
|
cannam@89
|
7575 # with a dollar sign (not a hyphen), so the echo should work correctly.
|
cannam@89
|
7576 # The option is referenced via a variable to avoid confusing sed.
|
cannam@89
|
7577 lt_compile=`echo "$ac_compile" | $SED \
|
cannam@89
|
7578 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
cannam@89
|
7579 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
cannam@89
|
7580 -e 's:$: $lt_compiler_flag:'`
|
cannam@89
|
7581 (eval echo "\"\$as_me:7581: $lt_compile\"" >&5)
|
cannam@89
|
7582 (eval "$lt_compile" 2>conftest.err)
|
cannam@89
|
7583 ac_status=$?
|
cannam@89
|
7584 cat conftest.err >&5
|
cannam@89
|
7585 echo "$as_me:7585: \$? = $ac_status" >&5
|
cannam@89
|
7586 if (exit $ac_status) && test -s "$ac_outfile"; then
|
cannam@89
|
7587 # The compiler can only warn and ignore the option if not recognized
|
cannam@89
|
7588 # So say no if there are warnings other than the usual output.
|
cannam@89
|
7589 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
|
cannam@89
|
7590 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
cannam@89
|
7591 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
cannam@89
|
7592 lt_cv_prog_compiler_pic_works=yes
|
cannam@89
|
7593 fi
|
cannam@89
|
7594 fi
|
cannam@89
|
7595 $RM conftest*
|
cannam@89
|
7596
|
cannam@89
|
7597 fi
|
cannam@89
|
7598 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
|
cannam@89
|
7599 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
|
cannam@89
|
7600
|
cannam@89
|
7601 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
|
cannam@89
|
7602 case $lt_prog_compiler_pic in
|
cannam@89
|
7603 "" | " "*) ;;
|
cannam@89
|
7604 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
|
cannam@89
|
7605 esac
|
cannam@89
|
7606 else
|
cannam@89
|
7607 lt_prog_compiler_pic=
|
cannam@89
|
7608 lt_prog_compiler_can_build_shared=no
|
cannam@89
|
7609 fi
|
cannam@89
|
7610
|
cannam@89
|
7611 fi
|
cannam@89
|
7612
|
cannam@89
|
7613
|
cannam@89
|
7614
|
cannam@89
|
7615
|
cannam@89
|
7616
|
cannam@89
|
7617
|
cannam@89
|
7618 #
|
cannam@89
|
7619 # Check to make sure the static flag actually works.
|
cannam@89
|
7620 #
|
cannam@89
|
7621 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
|
cannam@89
|
7622 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
|
cannam@89
|
7623 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
|
cannam@89
|
7624 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
|
cannam@89
|
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
7626 else
|
cannam@89
|
7627 lt_cv_prog_compiler_static_works=no
|
cannam@89
|
7628 save_LDFLAGS="$LDFLAGS"
|
cannam@89
|
7629 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
|
cannam@89
|
7630 echo "$lt_simple_link_test_code" > conftest.$ac_ext
|
cannam@89
|
7631 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
cannam@89
|
7632 # The linker can only warn and ignore the option if not recognized
|
cannam@89
|
7633 # So say no if there are warnings
|
cannam@89
|
7634 if test -s conftest.err; then
|
cannam@89
|
7635 # Append any errors to the config.log.
|
cannam@89
|
7636 cat conftest.err 1>&5
|
cannam@89
|
7637 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
|
cannam@89
|
7638 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
cannam@89
|
7639 if diff conftest.exp conftest.er2 >/dev/null; then
|
cannam@89
|
7640 lt_cv_prog_compiler_static_works=yes
|
cannam@89
|
7641 fi
|
cannam@89
|
7642 else
|
cannam@89
|
7643 lt_cv_prog_compiler_static_works=yes
|
cannam@89
|
7644 fi
|
cannam@89
|
7645 fi
|
cannam@89
|
7646 $RM -r conftest*
|
cannam@89
|
7647 LDFLAGS="$save_LDFLAGS"
|
cannam@89
|
7648
|
cannam@89
|
7649 fi
|
cannam@89
|
7650 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
|
cannam@89
|
7651 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
|
cannam@89
|
7652
|
cannam@89
|
7653 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
|
cannam@89
|
7654 :
|
cannam@89
|
7655 else
|
cannam@89
|
7656 lt_prog_compiler_static=
|
cannam@89
|
7657 fi
|
cannam@89
|
7658
|
cannam@89
|
7659
|
cannam@89
|
7660
|
cannam@89
|
7661
|
cannam@89
|
7662
|
cannam@89
|
7663
|
cannam@89
|
7664
|
cannam@89
|
7665 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
|
cannam@89
|
7666 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
|
cannam@89
|
7667 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
|
cannam@89
|
7668 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
7669 else
|
cannam@89
|
7670 lt_cv_prog_compiler_c_o=no
|
cannam@89
|
7671 $RM -r conftest 2>/dev/null
|
cannam@89
|
7672 mkdir conftest
|
cannam@89
|
7673 cd conftest
|
cannam@89
|
7674 mkdir out
|
cannam@89
|
7675 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
cannam@89
|
7676
|
cannam@89
|
7677 lt_compiler_flag="-o out/conftest2.$ac_objext"
|
cannam@89
|
7678 # Insert the option either (1) after the last *FLAGS variable, or
|
cannam@89
|
7679 # (2) before a word containing "conftest.", or (3) at the end.
|
cannam@89
|
7680 # Note that $ac_compile itself does not contain backslashes and begins
|
cannam@89
|
7681 # with a dollar sign (not a hyphen), so the echo should work correctly.
|
cannam@89
|
7682 lt_compile=`echo "$ac_compile" | $SED \
|
cannam@89
|
7683 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
cannam@89
|
7684 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
cannam@89
|
7685 -e 's:$: $lt_compiler_flag:'`
|
cannam@89
|
7686 (eval echo "\"\$as_me:7686: $lt_compile\"" >&5)
|
cannam@89
|
7687 (eval "$lt_compile" 2>out/conftest.err)
|
cannam@89
|
7688 ac_status=$?
|
cannam@89
|
7689 cat out/conftest.err >&5
|
cannam@89
|
7690 echo "$as_me:7690: \$? = $ac_status" >&5
|
cannam@89
|
7691 if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
cannam@89
|
7692 then
|
cannam@89
|
7693 # The compiler can only warn and ignore the option if not recognized
|
cannam@89
|
7694 # So say no if there are warnings
|
cannam@89
|
7695 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
|
cannam@89
|
7696 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
cannam@89
|
7697 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
cannam@89
|
7698 lt_cv_prog_compiler_c_o=yes
|
cannam@89
|
7699 fi
|
cannam@89
|
7700 fi
|
cannam@89
|
7701 chmod u+w . 2>&5
|
cannam@89
|
7702 $RM conftest*
|
cannam@89
|
7703 # SGI C++ compiler will create directory out/ii_files/ for
|
cannam@89
|
7704 # template instantiation
|
cannam@89
|
7705 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
|
cannam@89
|
7706 $RM out/* && rmdir out
|
cannam@89
|
7707 cd ..
|
cannam@89
|
7708 $RM -r conftest
|
cannam@89
|
7709 $RM conftest*
|
cannam@89
|
7710
|
cannam@89
|
7711 fi
|
cannam@89
|
7712 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
|
cannam@89
|
7713 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
|
cannam@89
|
7714
|
cannam@89
|
7715
|
cannam@89
|
7716
|
cannam@89
|
7717
|
cannam@89
|
7718
|
cannam@89
|
7719
|
cannam@89
|
7720 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
|
cannam@89
|
7721 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
|
cannam@89
|
7722 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
|
cannam@89
|
7723 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
7724 else
|
cannam@89
|
7725 lt_cv_prog_compiler_c_o=no
|
cannam@89
|
7726 $RM -r conftest 2>/dev/null
|
cannam@89
|
7727 mkdir conftest
|
cannam@89
|
7728 cd conftest
|
cannam@89
|
7729 mkdir out
|
cannam@89
|
7730 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
cannam@89
|
7731
|
cannam@89
|
7732 lt_compiler_flag="-o out/conftest2.$ac_objext"
|
cannam@89
|
7733 # Insert the option either (1) after the last *FLAGS variable, or
|
cannam@89
|
7734 # (2) before a word containing "conftest.", or (3) at the end.
|
cannam@89
|
7735 # Note that $ac_compile itself does not contain backslashes and begins
|
cannam@89
|
7736 # with a dollar sign (not a hyphen), so the echo should work correctly.
|
cannam@89
|
7737 lt_compile=`echo "$ac_compile" | $SED \
|
cannam@89
|
7738 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
cannam@89
|
7739 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
cannam@89
|
7740 -e 's:$: $lt_compiler_flag:'`
|
cannam@89
|
7741 (eval echo "\"\$as_me:7741: $lt_compile\"" >&5)
|
cannam@89
|
7742 (eval "$lt_compile" 2>out/conftest.err)
|
cannam@89
|
7743 ac_status=$?
|
cannam@89
|
7744 cat out/conftest.err >&5
|
cannam@89
|
7745 echo "$as_me:7745: \$? = $ac_status" >&5
|
cannam@89
|
7746 if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
cannam@89
|
7747 then
|
cannam@89
|
7748 # The compiler can only warn and ignore the option if not recognized
|
cannam@89
|
7749 # So say no if there are warnings
|
cannam@89
|
7750 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
|
cannam@89
|
7751 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
cannam@89
|
7752 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
cannam@89
|
7753 lt_cv_prog_compiler_c_o=yes
|
cannam@89
|
7754 fi
|
cannam@89
|
7755 fi
|
cannam@89
|
7756 chmod u+w . 2>&5
|
cannam@89
|
7757 $RM conftest*
|
cannam@89
|
7758 # SGI C++ compiler will create directory out/ii_files/ for
|
cannam@89
|
7759 # template instantiation
|
cannam@89
|
7760 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
|
cannam@89
|
7761 $RM out/* && rmdir out
|
cannam@89
|
7762 cd ..
|
cannam@89
|
7763 $RM -r conftest
|
cannam@89
|
7764 $RM conftest*
|
cannam@89
|
7765
|
cannam@89
|
7766 fi
|
cannam@89
|
7767 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
|
cannam@89
|
7768 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
|
cannam@89
|
7769
|
cannam@89
|
7770
|
cannam@89
|
7771
|
cannam@89
|
7772
|
cannam@89
|
7773 hard_links="nottested"
|
cannam@89
|
7774 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
|
cannam@89
|
7775 # do not overwrite the value of need_locks provided by the user
|
cannam@89
|
7776 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
|
cannam@89
|
7777 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
|
cannam@89
|
7778 hard_links=yes
|
cannam@89
|
7779 $RM conftest*
|
cannam@89
|
7780 ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
cannam@89
|
7781 touch conftest.a
|
cannam@89
|
7782 ln conftest.a conftest.b 2>&5 || hard_links=no
|
cannam@89
|
7783 ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
cannam@89
|
7784 { echo "$as_me:$LINENO: result: $hard_links" >&5
|
cannam@89
|
7785 echo "${ECHO_T}$hard_links" >&6; }
|
cannam@89
|
7786 if test "$hard_links" = no; then
|
cannam@89
|
7787 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
|
cannam@89
|
7788 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
|
cannam@89
|
7789 need_locks=warn
|
cannam@89
|
7790 fi
|
cannam@89
|
7791 else
|
cannam@89
|
7792 need_locks=no
|
cannam@89
|
7793 fi
|
cannam@89
|
7794
|
cannam@89
|
7795
|
cannam@89
|
7796
|
cannam@89
|
7797
|
cannam@89
|
7798
|
cannam@89
|
7799
|
cannam@89
|
7800 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
|
cannam@89
|
7801 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
|
cannam@89
|
7802
|
cannam@89
|
7803 runpath_var=
|
cannam@89
|
7804 allow_undefined_flag=
|
cannam@89
|
7805 always_export_symbols=no
|
cannam@89
|
7806 archive_cmds=
|
cannam@89
|
7807 archive_expsym_cmds=
|
cannam@89
|
7808 compiler_needs_object=no
|
cannam@89
|
7809 enable_shared_with_static_runtimes=no
|
cannam@89
|
7810 export_dynamic_flag_spec=
|
cannam@89
|
7811 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
cannam@89
|
7812 hardcode_automatic=no
|
cannam@89
|
7813 hardcode_direct=no
|
cannam@89
|
7814 hardcode_direct_absolute=no
|
cannam@89
|
7815 hardcode_libdir_flag_spec=
|
cannam@89
|
7816 hardcode_libdir_flag_spec_ld=
|
cannam@89
|
7817 hardcode_libdir_separator=
|
cannam@89
|
7818 hardcode_minus_L=no
|
cannam@89
|
7819 hardcode_shlibpath_var=unsupported
|
cannam@89
|
7820 inherit_rpath=no
|
cannam@89
|
7821 link_all_deplibs=unknown
|
cannam@89
|
7822 module_cmds=
|
cannam@89
|
7823 module_expsym_cmds=
|
cannam@89
|
7824 old_archive_from_new_cmds=
|
cannam@89
|
7825 old_archive_from_expsyms_cmds=
|
cannam@89
|
7826 thread_safe_flag_spec=
|
cannam@89
|
7827 whole_archive_flag_spec=
|
cannam@89
|
7828 # include_expsyms should be a list of space-separated symbols to be *always*
|
cannam@89
|
7829 # included in the symbol list
|
cannam@89
|
7830 include_expsyms=
|
cannam@89
|
7831 # exclude_expsyms can be an extended regexp of symbols to exclude
|
cannam@89
|
7832 # it will be wrapped by ` (' and `)$', so one must not match beginning or
|
cannam@89
|
7833 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
|
cannam@89
|
7834 # as well as any symbol that contains `d'.
|
cannam@89
|
7835 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
|
cannam@89
|
7836 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
|
cannam@89
|
7837 # platforms (ab)use it in PIC code, but their linkers get confused if
|
cannam@89
|
7838 # the symbol is explicitly referenced. Since portable code cannot
|
cannam@89
|
7839 # rely on this symbol name, it's probably fine to never include it in
|
cannam@89
|
7840 # preloaded symbol tables.
|
cannam@89
|
7841 # Exclude shared library initialization/finalization symbols.
|
cannam@89
|
7842 extract_expsyms_cmds=
|
cannam@89
|
7843
|
cannam@89
|
7844 case $host_os in
|
cannam@89
|
7845 cygwin* | mingw* | pw32*)
|
cannam@89
|
7846 # FIXME: the MSVC++ port hasn't been tested in a loooong time
|
cannam@89
|
7847 # When not using gcc, we currently assume that we are using
|
cannam@89
|
7848 # Microsoft Visual C++.
|
cannam@89
|
7849 if test "$GCC" != yes; then
|
cannam@89
|
7850 with_gnu_ld=no
|
cannam@89
|
7851 fi
|
cannam@89
|
7852 ;;
|
cannam@89
|
7853 interix*)
|
cannam@89
|
7854 # we just hope/assume this is gcc and not c89 (= MSVC++)
|
cannam@89
|
7855 with_gnu_ld=yes
|
cannam@89
|
7856 ;;
|
cannam@89
|
7857 openbsd*)
|
cannam@89
|
7858 with_gnu_ld=no
|
cannam@89
|
7859 ;;
|
cannam@89
|
7860 esac
|
cannam@89
|
7861
|
cannam@89
|
7862 ld_shlibs=yes
|
cannam@89
|
7863 if test "$with_gnu_ld" = yes; then
|
cannam@89
|
7864 # If archive_cmds runs LD, not CC, wlarc should be empty
|
cannam@89
|
7865 wlarc='${wl}'
|
cannam@89
|
7866
|
cannam@89
|
7867 # Set some defaults for GNU ld with shared library support. These
|
cannam@89
|
7868 # are reset later if shared libraries are not supported. Putting them
|
cannam@89
|
7869 # here allows them to be overridden if necessary.
|
cannam@89
|
7870 runpath_var=LD_RUN_PATH
|
cannam@89
|
7871 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
cannam@89
|
7872 export_dynamic_flag_spec='${wl}--export-dynamic'
|
cannam@89
|
7873 # ancient GNU ld didn't support --whole-archive et. al.
|
cannam@89
|
7874 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
|
cannam@89
|
7875 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
cannam@89
|
7876 else
|
cannam@89
|
7877 whole_archive_flag_spec=
|
cannam@89
|
7878 fi
|
cannam@89
|
7879 supports_anon_versioning=no
|
cannam@89
|
7880 case `$LD -v 2>&1` in
|
cannam@89
|
7881 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
|
cannam@89
|
7882 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
|
cannam@89
|
7883 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
|
cannam@89
|
7884 *\ 2.11.*) ;; # other 2.11 versions
|
cannam@89
|
7885 *) supports_anon_versioning=yes ;;
|
cannam@89
|
7886 esac
|
cannam@89
|
7887
|
cannam@89
|
7888 # See if GNU ld supports shared libraries.
|
cannam@89
|
7889 case $host_os in
|
cannam@89
|
7890 aix[3-9]*)
|
cannam@89
|
7891 # On AIX/PPC, the GNU linker is very broken
|
cannam@89
|
7892 if test "$host_cpu" != ia64; then
|
cannam@89
|
7893 ld_shlibs=no
|
cannam@89
|
7894 cat <<_LT_EOF 1>&2
|
cannam@89
|
7895
|
cannam@89
|
7896 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
|
cannam@89
|
7897 *** to be unable to reliably create shared libraries on AIX.
|
cannam@89
|
7898 *** Therefore, libtool is disabling shared libraries support. If you
|
cannam@89
|
7899 *** really care for shared libraries, you may want to modify your PATH
|
cannam@89
|
7900 *** so that a non-GNU linker is found, and then restart.
|
cannam@89
|
7901
|
cannam@89
|
7902 _LT_EOF
|
cannam@89
|
7903 fi
|
cannam@89
|
7904 ;;
|
cannam@89
|
7905
|
cannam@89
|
7906 amigaos*)
|
cannam@89
|
7907 case $host_cpu in
|
cannam@89
|
7908 powerpc)
|
cannam@89
|
7909 # see comment about AmigaOS4 .so support
|
cannam@89
|
7910 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
cannam@89
|
7911 archive_expsym_cmds=''
|
cannam@89
|
7912 ;;
|
cannam@89
|
7913 m68k)
|
cannam@89
|
7914 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)'
|
cannam@89
|
7915 hardcode_libdir_flag_spec='-L$libdir'
|
cannam@89
|
7916 hardcode_minus_L=yes
|
cannam@89
|
7917 ;;
|
cannam@89
|
7918 esac
|
cannam@89
|
7919 ;;
|
cannam@89
|
7920
|
cannam@89
|
7921 beos*)
|
cannam@89
|
7922 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
cannam@89
|
7923 allow_undefined_flag=unsupported
|
cannam@89
|
7924 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
|
cannam@89
|
7925 # support --undefined. This deserves some investigation. FIXME
|
cannam@89
|
7926 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
cannam@89
|
7927 else
|
cannam@89
|
7928 ld_shlibs=no
|
cannam@89
|
7929 fi
|
cannam@89
|
7930 ;;
|
cannam@89
|
7931
|
cannam@89
|
7932 cygwin* | mingw* | pw32*)
|
cannam@89
|
7933 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
|
cannam@89
|
7934 # as there is no search path for DLLs.
|
cannam@89
|
7935 hardcode_libdir_flag_spec='-L$libdir'
|
cannam@89
|
7936 allow_undefined_flag=unsupported
|
cannam@89
|
7937 always_export_symbols=no
|
cannam@89
|
7938 enable_shared_with_static_runtimes=yes
|
cannam@89
|
7939 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
cannam@89
|
7940
|
cannam@89
|
7941 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
|
cannam@89
|
7942 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
cannam@89
|
7943 # If the export-symbols file already is a .def file (1st line
|
cannam@89
|
7944 # is EXPORTS), use it as is; otherwise, prepend...
|
cannam@89
|
7945 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
cannam@89
|
7946 cp $export_symbols $output_objdir/$soname.def;
|
cannam@89
|
7947 else
|
cannam@89
|
7948 echo EXPORTS > $output_objdir/$soname.def;
|
cannam@89
|
7949 cat $export_symbols >> $output_objdir/$soname.def;
|
cannam@89
|
7950 fi~
|
cannam@89
|
7951 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
cannam@89
|
7952 else
|
cannam@89
|
7953 ld_shlibs=no
|
cannam@89
|
7954 fi
|
cannam@89
|
7955 ;;
|
cannam@89
|
7956
|
cannam@89
|
7957 interix[3-9]*)
|
cannam@89
|
7958 hardcode_direct=no
|
cannam@89
|
7959 hardcode_shlibpath_var=no
|
cannam@89
|
7960 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
|
cannam@89
|
7961 export_dynamic_flag_spec='${wl}-E'
|
cannam@89
|
7962 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
|
cannam@89
|
7963 # Instead, shared libraries are loaded at an image base (0x10000000 by
|
cannam@89
|
7964 # default) and relocated if they conflict, which is a slow very memory
|
cannam@89
|
7965 # consuming and fragmenting process. To avoid this, we pick a random,
|
cannam@89
|
7966 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
|
cannam@89
|
7967 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
|
cannam@89
|
7968 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
cannam@89
|
7969 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
cannam@89
|
7970 ;;
|
cannam@89
|
7971
|
cannam@89
|
7972 gnu* | linux* | tpf* | k*bsd*-gnu)
|
cannam@89
|
7973 tmp_diet=no
|
cannam@89
|
7974 if test "$host_os" = linux-dietlibc; then
|
cannam@89
|
7975 case $cc_basename in
|
cannam@89
|
7976 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
|
cannam@89
|
7977 esac
|
cannam@89
|
7978 fi
|
cannam@89
|
7979 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
|
cannam@89
|
7980 && test "$tmp_diet" = no
|
cannam@89
|
7981 then
|
cannam@89
|
7982 tmp_addflag=
|
cannam@89
|
7983 tmp_sharedflag='-shared'
|
cannam@89
|
7984 case $cc_basename,$host_cpu in
|
cannam@89
|
7985 pgcc*) # Portland Group C compiler
|
cannam@89
|
7986 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
|
cannam@89
|
7987 tmp_addflag=' $pic_flag'
|
cannam@89
|
7988 ;;
|
cannam@89
|
7989 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
|
cannam@89
|
7990 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
|
cannam@89
|
7991 tmp_addflag=' $pic_flag -Mnomain' ;;
|
cannam@89
|
7992 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
|
cannam@89
|
7993 tmp_addflag=' -i_dynamic' ;;
|
cannam@89
|
7994 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
|
cannam@89
|
7995 tmp_addflag=' -i_dynamic -nofor_main' ;;
|
cannam@89
|
7996 ifc* | ifort*) # Intel Fortran compiler
|
cannam@89
|
7997 tmp_addflag=' -nofor_main' ;;
|
cannam@89
|
7998 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
|
cannam@89
|
7999 tmp_sharedflag='-qmkshrobj'
|
cannam@89
|
8000 tmp_addflag= ;;
|
cannam@89
|
8001 esac
|
cannam@89
|
8002 case `$CC -V 2>&1 | sed 5q` in
|
cannam@89
|
8003 *Sun\ C*) # Sun C 5.9
|
cannam@89
|
8004 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
|
cannam@89
|
8005 compiler_needs_object=yes
|
cannam@89
|
8006 tmp_sharedflag='-G' ;;
|
cannam@89
|
8007 *Sun\ F*) # Sun Fortran 8.3
|
cannam@89
|
8008 tmp_sharedflag='-G' ;;
|
cannam@89
|
8009 esac
|
cannam@89
|
8010 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
cannam@89
|
8011
|
cannam@89
|
8012 if test "x$supports_anon_versioning" = xyes; then
|
cannam@89
|
8013 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
|
cannam@89
|
8014 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
cannam@89
|
8015 echo "local: *; };" >> $output_objdir/$libname.ver~
|
cannam@89
|
8016 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
|
cannam@89
|
8017 fi
|
cannam@89
|
8018
|
cannam@89
|
8019 case $cc_basename in
|
cannam@89
|
8020 xlf*)
|
cannam@89
|
8021 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
|
cannam@89
|
8022 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
|
cannam@89
|
8023 hardcode_libdir_flag_spec=
|
cannam@89
|
8024 hardcode_libdir_flag_spec_ld='-rpath $libdir'
|
cannam@89
|
8025 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
|
cannam@89
|
8026 if test "x$supports_anon_versioning" = xyes; then
|
cannam@89
|
8027 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
|
cannam@89
|
8028 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
cannam@89
|
8029 echo "local: *; };" >> $output_objdir/$libname.ver~
|
cannam@89
|
8030 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
|
cannam@89
|
8031 fi
|
cannam@89
|
8032 ;;
|
cannam@89
|
8033 esac
|
cannam@89
|
8034 else
|
cannam@89
|
8035 ld_shlibs=no
|
cannam@89
|
8036 fi
|
cannam@89
|
8037 ;;
|
cannam@89
|
8038
|
cannam@89
|
8039 netbsd* | netbsdelf*-gnu)
|
cannam@89
|
8040 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
cannam@89
|
8041 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
cannam@89
|
8042 wlarc=
|
cannam@89
|
8043 else
|
cannam@89
|
8044 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
cannam@89
|
8045 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
cannam@89
|
8046 fi
|
cannam@89
|
8047 ;;
|
cannam@89
|
8048
|
cannam@89
|
8049 solaris*)
|
cannam@89
|
8050 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
|
cannam@89
|
8051 ld_shlibs=no
|
cannam@89
|
8052 cat <<_LT_EOF 1>&2
|
cannam@89
|
8053
|
cannam@89
|
8054 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
|
cannam@89
|
8055 *** create shared libraries on Solaris systems. Therefore, libtool
|
cannam@89
|
8056 *** is disabling shared libraries support. We urge you to upgrade GNU
|
cannam@89
|
8057 *** binutils to release 2.9.1 or newer. Another option is to modify
|
cannam@89
|
8058 *** your PATH or compiler configuration so that the native linker is
|
cannam@89
|
8059 *** used, and then restart.
|
cannam@89
|
8060
|
cannam@89
|
8061 _LT_EOF
|
cannam@89
|
8062 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
cannam@89
|
8063 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
cannam@89
|
8064 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
cannam@89
|
8065 else
|
cannam@89
|
8066 ld_shlibs=no
|
cannam@89
|
8067 fi
|
cannam@89
|
8068 ;;
|
cannam@89
|
8069
|
cannam@89
|
8070 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
|
cannam@89
|
8071 case `$LD -v 2>&1` in
|
cannam@89
|
8072 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
|
cannam@89
|
8073 ld_shlibs=no
|
cannam@89
|
8074 cat <<_LT_EOF 1>&2
|
cannam@89
|
8075
|
cannam@89
|
8076 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
|
cannam@89
|
8077 *** reliably create shared libraries on SCO systems. Therefore, libtool
|
cannam@89
|
8078 *** is disabling shared libraries support. We urge you to upgrade GNU
|
cannam@89
|
8079 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
|
cannam@89
|
8080 *** your PATH or compiler configuration so that the native linker is
|
cannam@89
|
8081 *** used, and then restart.
|
cannam@89
|
8082
|
cannam@89
|
8083 _LT_EOF
|
cannam@89
|
8084 ;;
|
cannam@89
|
8085 *)
|
cannam@89
|
8086 # For security reasons, it is highly recommended that you always
|
cannam@89
|
8087 # use absolute paths for naming shared libraries, and exclude the
|
cannam@89
|
8088 # DT_RUNPATH tag from executables and libraries. But doing so
|
cannam@89
|
8089 # requires that you compile everything twice, which is a pain.
|
cannam@89
|
8090 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
cannam@89
|
8091 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
cannam@89
|
8092 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
cannam@89
|
8093 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
cannam@89
|
8094 else
|
cannam@89
|
8095 ld_shlibs=no
|
cannam@89
|
8096 fi
|
cannam@89
|
8097 ;;
|
cannam@89
|
8098 esac
|
cannam@89
|
8099 ;;
|
cannam@89
|
8100
|
cannam@89
|
8101 sunos4*)
|
cannam@89
|
8102 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
cannam@89
|
8103 wlarc=
|
cannam@89
|
8104 hardcode_direct=yes
|
cannam@89
|
8105 hardcode_shlibpath_var=no
|
cannam@89
|
8106 ;;
|
cannam@89
|
8107
|
cannam@89
|
8108 *)
|
cannam@89
|
8109 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
cannam@89
|
8110 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
cannam@89
|
8111 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
cannam@89
|
8112 else
|
cannam@89
|
8113 ld_shlibs=no
|
cannam@89
|
8114 fi
|
cannam@89
|
8115 ;;
|
cannam@89
|
8116 esac
|
cannam@89
|
8117
|
cannam@89
|
8118 if test "$ld_shlibs" = no; then
|
cannam@89
|
8119 runpath_var=
|
cannam@89
|
8120 hardcode_libdir_flag_spec=
|
cannam@89
|
8121 export_dynamic_flag_spec=
|
cannam@89
|
8122 whole_archive_flag_spec=
|
cannam@89
|
8123 fi
|
cannam@89
|
8124 else
|
cannam@89
|
8125 # PORTME fill in a description of your system's linker (not GNU ld)
|
cannam@89
|
8126 case $host_os in
|
cannam@89
|
8127 aix3*)
|
cannam@89
|
8128 allow_undefined_flag=unsupported
|
cannam@89
|
8129 always_export_symbols=yes
|
cannam@89
|
8130 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'
|
cannam@89
|
8131 # Note: this linker hardcodes the directories in LIBPATH if there
|
cannam@89
|
8132 # are no directories specified by -L.
|
cannam@89
|
8133 hardcode_minus_L=yes
|
cannam@89
|
8134 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
|
cannam@89
|
8135 # Neither direct hardcoding nor static linking is supported with a
|
cannam@89
|
8136 # broken collect2.
|
cannam@89
|
8137 hardcode_direct=unsupported
|
cannam@89
|
8138 fi
|
cannam@89
|
8139 ;;
|
cannam@89
|
8140
|
cannam@89
|
8141 aix[4-9]*)
|
cannam@89
|
8142 if test "$host_cpu" = ia64; then
|
cannam@89
|
8143 # On IA64, the linker does run time linking by default, so we don't
|
cannam@89
|
8144 # have to do anything special.
|
cannam@89
|
8145 aix_use_runtimelinking=no
|
cannam@89
|
8146 exp_sym_flag='-Bexport'
|
cannam@89
|
8147 no_entry_flag=""
|
cannam@89
|
8148 else
|
cannam@89
|
8149 # If we're using GNU nm, then we don't want the "-C" option.
|
cannam@89
|
8150 # -C means demangle to AIX nm, but means don't demangle with GNU nm
|
cannam@89
|
8151 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
|
cannam@89
|
8152 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
|
cannam@89
|
8153 else
|
cannam@89
|
8154 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
|
cannam@89
|
8155 fi
|
cannam@89
|
8156 aix_use_runtimelinking=no
|
cannam@89
|
8157
|
cannam@89
|
8158 # Test if we are trying to use run time linking or normal
|
cannam@89
|
8159 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
cannam@89
|
8160 # need to do runtime linking.
|
cannam@89
|
8161 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
|
cannam@89
|
8162 for ld_flag in $LDFLAGS; do
|
cannam@89
|
8163 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
|
cannam@89
|
8164 aix_use_runtimelinking=yes
|
cannam@89
|
8165 break
|
cannam@89
|
8166 fi
|
cannam@89
|
8167 done
|
cannam@89
|
8168 ;;
|
cannam@89
|
8169 esac
|
cannam@89
|
8170
|
cannam@89
|
8171 exp_sym_flag='-bexport'
|
cannam@89
|
8172 no_entry_flag='-bnoentry'
|
cannam@89
|
8173 fi
|
cannam@89
|
8174
|
cannam@89
|
8175 # When large executables or shared objects are built, AIX ld can
|
cannam@89
|
8176 # have problems creating the table of contents. If linking a library
|
cannam@89
|
8177 # or program results in "error TOC overflow" add -mminimal-toc to
|
cannam@89
|
8178 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
cannam@89
|
8179 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
cannam@89
|
8180
|
cannam@89
|
8181 archive_cmds=''
|
cannam@89
|
8182 hardcode_direct=yes
|
cannam@89
|
8183 hardcode_direct_absolute=yes
|
cannam@89
|
8184 hardcode_libdir_separator=':'
|
cannam@89
|
8185 link_all_deplibs=yes
|
cannam@89
|
8186 file_list_spec='${wl}-f,'
|
cannam@89
|
8187
|
cannam@89
|
8188 if test "$GCC" = yes; then
|
cannam@89
|
8189 case $host_os in aix4.[012]|aix4.[012].*)
|
cannam@89
|
8190 # We only want to do this on AIX 4.2 and lower, the check
|
cannam@89
|
8191 # below for broken collect2 doesn't work under 4.3+
|
cannam@89
|
8192 collect2name=`${CC} -print-prog-name=collect2`
|
cannam@89
|
8193 if test -f "$collect2name" &&
|
cannam@89
|
8194 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
|
cannam@89
|
8195 then
|
cannam@89
|
8196 # We have reworked collect2
|
cannam@89
|
8197 :
|
cannam@89
|
8198 else
|
cannam@89
|
8199 # We have old collect2
|
cannam@89
|
8200 hardcode_direct=unsupported
|
cannam@89
|
8201 # It fails to find uninstalled libraries when the uninstalled
|
cannam@89
|
8202 # path is not listed in the libpath. Setting hardcode_minus_L
|
cannam@89
|
8203 # to unsupported forces relinking
|
cannam@89
|
8204 hardcode_minus_L=yes
|
cannam@89
|
8205 hardcode_libdir_flag_spec='-L$libdir'
|
cannam@89
|
8206 hardcode_libdir_separator=
|
cannam@89
|
8207 fi
|
cannam@89
|
8208 ;;
|
cannam@89
|
8209 esac
|
cannam@89
|
8210 shared_flag='-shared'
|
cannam@89
|
8211 if test "$aix_use_runtimelinking" = yes; then
|
cannam@89
|
8212 shared_flag="$shared_flag "'${wl}-G'
|
cannam@89
|
8213 fi
|
cannam@89
|
8214 link_all_deplibs=no
|
cannam@89
|
8215 else
|
cannam@89
|
8216 # not using gcc
|
cannam@89
|
8217 if test "$host_cpu" = ia64; then
|
cannam@89
|
8218 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
cannam@89
|
8219 # chokes on -Wl,-G. The following line is correct:
|
cannam@89
|
8220 shared_flag='-G'
|
cannam@89
|
8221 else
|
cannam@89
|
8222 if test "$aix_use_runtimelinking" = yes; then
|
cannam@89
|
8223 shared_flag='${wl}-G'
|
cannam@89
|
8224 else
|
cannam@89
|
8225 shared_flag='${wl}-bM:SRE'
|
cannam@89
|
8226 fi
|
cannam@89
|
8227 fi
|
cannam@89
|
8228 fi
|
cannam@89
|
8229
|
cannam@89
|
8230 # It seems that -bexpall does not export symbols beginning with
|
cannam@89
|
8231 # underscore (_), so it is better to generate a list of symbols to export.
|
cannam@89
|
8232 always_export_symbols=yes
|
cannam@89
|
8233 if test "$aix_use_runtimelinking" = yes; then
|
cannam@89
|
8234 # Warning - without using the other runtime loading flags (-brtl),
|
cannam@89
|
8235 # -berok will link without error, but may produce a broken library.
|
cannam@89
|
8236 allow_undefined_flag='-berok'
|
cannam@89
|
8237 # Determine the default libpath from the value encoded in an
|
cannam@89
|
8238 # empty executable.
|
cannam@89
|
8239 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
8240 /* confdefs.h. */
|
cannam@89
|
8241 _ACEOF
|
cannam@89
|
8242 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
8243 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
8244 /* end confdefs.h. */
|
cannam@89
|
8245
|
cannam@89
|
8246 int
|
cannam@89
|
8247 main ()
|
cannam@89
|
8248 {
|
cannam@89
|
8249
|
cannam@89
|
8250 ;
|
cannam@89
|
8251 return 0;
|
cannam@89
|
8252 }
|
cannam@89
|
8253 _ACEOF
|
cannam@89
|
8254 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@89
|
8255 if { (ac_try="$ac_link"
|
cannam@89
|
8256 case "(($ac_try" in
|
cannam@89
|
8257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
8258 *) ac_try_echo=$ac_try;;
|
cannam@89
|
8259 esac
|
cannam@89
|
8260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
8261 (eval "$ac_link") 2>conftest.er1
|
cannam@89
|
8262 ac_status=$?
|
cannam@89
|
8263 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@89
|
8264 rm -f conftest.er1
|
cannam@89
|
8265 cat conftest.err >&5
|
cannam@89
|
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
8267 (exit $ac_status); } && {
|
cannam@89
|
8268 test -z "$ac_c_werror_flag" ||
|
cannam@89
|
8269 test ! -s conftest.err
|
cannam@89
|
8270 } && test -s conftest$ac_exeext &&
|
cannam@89
|
8271 $as_test_x conftest$ac_exeext; then
|
cannam@89
|
8272
|
cannam@89
|
8273 lt_aix_libpath_sed='
|
cannam@89
|
8274 /Import File Strings/,/^$/ {
|
cannam@89
|
8275 /^0/ {
|
cannam@89
|
8276 s/^0 *\(.*\)$/\1/
|
cannam@89
|
8277 p
|
cannam@89
|
8278 }
|
cannam@89
|
8279 }'
|
cannam@89
|
8280 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
cannam@89
|
8281 # Check for a 64-bit object if we didn't find anything.
|
cannam@89
|
8282 if test -z "$aix_libpath"; then
|
cannam@89
|
8283 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
cannam@89
|
8284 fi
|
cannam@89
|
8285 else
|
cannam@89
|
8286 echo "$as_me: failed program was:" >&5
|
cannam@89
|
8287 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@89
|
8288
|
cannam@89
|
8289
|
cannam@89
|
8290 fi
|
cannam@89
|
8291
|
cannam@89
|
8292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
cannam@89
|
8293 conftest$ac_exeext conftest.$ac_ext
|
cannam@89
|
8294 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
cannam@89
|
8295
|
cannam@89
|
8296 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
|
cannam@89
|
8297 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
cannam@89
|
8298 else
|
cannam@89
|
8299 if test "$host_cpu" = ia64; then
|
cannam@89
|
8300 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
|
cannam@89
|
8301 allow_undefined_flag="-z nodefs"
|
cannam@89
|
8302 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
|
cannam@89
|
8303 else
|
cannam@89
|
8304 # Determine the default libpath from the value encoded in an
|
cannam@89
|
8305 # empty executable.
|
cannam@89
|
8306 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
8307 /* confdefs.h. */
|
cannam@89
|
8308 _ACEOF
|
cannam@89
|
8309 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
8310 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
8311 /* end confdefs.h. */
|
cannam@89
|
8312
|
cannam@89
|
8313 int
|
cannam@89
|
8314 main ()
|
cannam@89
|
8315 {
|
cannam@89
|
8316
|
cannam@89
|
8317 ;
|
cannam@89
|
8318 return 0;
|
cannam@89
|
8319 }
|
cannam@89
|
8320 _ACEOF
|
cannam@89
|
8321 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@89
|
8322 if { (ac_try="$ac_link"
|
cannam@89
|
8323 case "(($ac_try" in
|
cannam@89
|
8324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
8325 *) ac_try_echo=$ac_try;;
|
cannam@89
|
8326 esac
|
cannam@89
|
8327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
8328 (eval "$ac_link") 2>conftest.er1
|
cannam@89
|
8329 ac_status=$?
|
cannam@89
|
8330 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@89
|
8331 rm -f conftest.er1
|
cannam@89
|
8332 cat conftest.err >&5
|
cannam@89
|
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
8334 (exit $ac_status); } && {
|
cannam@89
|
8335 test -z "$ac_c_werror_flag" ||
|
cannam@89
|
8336 test ! -s conftest.err
|
cannam@89
|
8337 } && test -s conftest$ac_exeext &&
|
cannam@89
|
8338 $as_test_x conftest$ac_exeext; then
|
cannam@89
|
8339
|
cannam@89
|
8340 lt_aix_libpath_sed='
|
cannam@89
|
8341 /Import File Strings/,/^$/ {
|
cannam@89
|
8342 /^0/ {
|
cannam@89
|
8343 s/^0 *\(.*\)$/\1/
|
cannam@89
|
8344 p
|
cannam@89
|
8345 }
|
cannam@89
|
8346 }'
|
cannam@89
|
8347 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
cannam@89
|
8348 # Check for a 64-bit object if we didn't find anything.
|
cannam@89
|
8349 if test -z "$aix_libpath"; then
|
cannam@89
|
8350 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
cannam@89
|
8351 fi
|
cannam@89
|
8352 else
|
cannam@89
|
8353 echo "$as_me: failed program was:" >&5
|
cannam@89
|
8354 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@89
|
8355
|
cannam@89
|
8356
|
cannam@89
|
8357 fi
|
cannam@89
|
8358
|
cannam@89
|
8359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
cannam@89
|
8360 conftest$ac_exeext conftest.$ac_ext
|
cannam@89
|
8361 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
cannam@89
|
8362
|
cannam@89
|
8363 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
|
cannam@89
|
8364 # Warning - without using the other run time loading flags,
|
cannam@89
|
8365 # -berok will link without error, but may produce a broken library.
|
cannam@89
|
8366 no_undefined_flag=' ${wl}-bernotok'
|
cannam@89
|
8367 allow_undefined_flag=' ${wl}-berok'
|
cannam@89
|
8368 # Exported symbols can be pulled into shared objects from archives
|
cannam@89
|
8369 whole_archive_flag_spec='$convenience'
|
cannam@89
|
8370 archive_cmds_need_lc=yes
|
cannam@89
|
8371 # This is similar to how AIX traditionally builds its shared libraries.
|
cannam@89
|
8372 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
|
cannam@89
|
8373 fi
|
cannam@89
|
8374 fi
|
cannam@89
|
8375 ;;
|
cannam@89
|
8376
|
cannam@89
|
8377 amigaos*)
|
cannam@89
|
8378 case $host_cpu in
|
cannam@89
|
8379 powerpc)
|
cannam@89
|
8380 # see comment about AmigaOS4 .so support
|
cannam@89
|
8381 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
cannam@89
|
8382 archive_expsym_cmds=''
|
cannam@89
|
8383 ;;
|
cannam@89
|
8384 m68k)
|
cannam@89
|
8385 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)'
|
cannam@89
|
8386 hardcode_libdir_flag_spec='-L$libdir'
|
cannam@89
|
8387 hardcode_minus_L=yes
|
cannam@89
|
8388 ;;
|
cannam@89
|
8389 esac
|
cannam@89
|
8390 ;;
|
cannam@89
|
8391
|
cannam@89
|
8392 bsdi[45]*)
|
cannam@89
|
8393 export_dynamic_flag_spec=-rdynamic
|
cannam@89
|
8394 ;;
|
cannam@89
|
8395
|
cannam@89
|
8396 cygwin* | mingw* | pw32*)
|
cannam@89
|
8397 # When not using gcc, we currently assume that we are using
|
cannam@89
|
8398 # Microsoft Visual C++.
|
cannam@89
|
8399 # hardcode_libdir_flag_spec is actually meaningless, as there is
|
cannam@89
|
8400 # no search path for DLLs.
|
cannam@89
|
8401 hardcode_libdir_flag_spec=' '
|
cannam@89
|
8402 allow_undefined_flag=unsupported
|
cannam@89
|
8403 # Tell ltmain to make .lib files, not .a files.
|
cannam@89
|
8404 libext=lib
|
cannam@89
|
8405 # Tell ltmain to make .dll files, not .so files.
|
cannam@89
|
8406 shrext_cmds=".dll"
|
cannam@89
|
8407 # FIXME: Setting linknames here is a bad hack.
|
cannam@89
|
8408 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
|
cannam@89
|
8409 # The linker will automatically build a .lib file if we build a DLL.
|
cannam@89
|
8410 old_archive_from_new_cmds='true'
|
cannam@89
|
8411 # FIXME: Should let the user specify the lib program.
|
cannam@89
|
8412 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
cannam@89
|
8413 fix_srcfile_path='`cygpath -w "$srcfile"`'
|
cannam@89
|
8414 enable_shared_with_static_runtimes=yes
|
cannam@89
|
8415 ;;
|
cannam@89
|
8416
|
cannam@89
|
8417 darwin* | rhapsody*)
|
cannam@89
|
8418
|
cannam@89
|
8419
|
cannam@89
|
8420 archive_cmds_need_lc=no
|
cannam@89
|
8421 hardcode_direct=no
|
cannam@89
|
8422 hardcode_automatic=yes
|
cannam@89
|
8423 hardcode_shlibpath_var=unsupported
|
cannam@89
|
8424 whole_archive_flag_spec=''
|
cannam@89
|
8425 link_all_deplibs=yes
|
cannam@89
|
8426 allow_undefined_flag="$_lt_dar_allow_undefined"
|
cannam@89
|
8427 if test "$GCC" = "yes"; then
|
cannam@89
|
8428 output_verbose_link_cmd=echo
|
cannam@89
|
8429 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
|
cannam@89
|
8430 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
|
cannam@89
|
8431 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
|
cannam@89
|
8432 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
|
cannam@89
|
8433
|
cannam@89
|
8434 else
|
cannam@89
|
8435 ld_shlibs=no
|
cannam@89
|
8436 fi
|
cannam@89
|
8437
|
cannam@89
|
8438 ;;
|
cannam@89
|
8439
|
cannam@89
|
8440 dgux*)
|
cannam@89
|
8441 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@89
|
8442 hardcode_libdir_flag_spec='-L$libdir'
|
cannam@89
|
8443 hardcode_shlibpath_var=no
|
cannam@89
|
8444 ;;
|
cannam@89
|
8445
|
cannam@89
|
8446 freebsd1*)
|
cannam@89
|
8447 ld_shlibs=no
|
cannam@89
|
8448 ;;
|
cannam@89
|
8449
|
cannam@89
|
8450 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
|
cannam@89
|
8451 # support. Future versions do this automatically, but an explicit c++rt0.o
|
cannam@89
|
8452 # does not break anything, and helps significantly (at the cost of a little
|
cannam@89
|
8453 # extra space).
|
cannam@89
|
8454 freebsd2.2*)
|
cannam@89
|
8455 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
|
cannam@89
|
8456 hardcode_libdir_flag_spec='-R$libdir'
|
cannam@89
|
8457 hardcode_direct=yes
|
cannam@89
|
8458 hardcode_shlibpath_var=no
|
cannam@89
|
8459 ;;
|
cannam@89
|
8460
|
cannam@89
|
8461 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
|
cannam@89
|
8462 freebsd2*)
|
cannam@89
|
8463 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
cannam@89
|
8464 hardcode_direct=yes
|
cannam@89
|
8465 hardcode_minus_L=yes
|
cannam@89
|
8466 hardcode_shlibpath_var=no
|
cannam@89
|
8467 ;;
|
cannam@89
|
8468
|
cannam@89
|
8469 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
cannam@89
|
8470 freebsd* | dragonfly*)
|
cannam@89
|
8471 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@89
|
8472 hardcode_libdir_flag_spec='-R$libdir'
|
cannam@89
|
8473 hardcode_direct=yes
|
cannam@89
|
8474 hardcode_shlibpath_var=no
|
cannam@89
|
8475 ;;
|
cannam@89
|
8476
|
cannam@89
|
8477 hpux9*)
|
cannam@89
|
8478 if test "$GCC" = yes; then
|
cannam@89
|
8479 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
cannam@89
|
8480 else
|
cannam@89
|
8481 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'
|
cannam@89
|
8482 fi
|
cannam@89
|
8483 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
|
cannam@89
|
8484 hardcode_libdir_separator=:
|
cannam@89
|
8485 hardcode_direct=yes
|
cannam@89
|
8486
|
cannam@89
|
8487 # hardcode_minus_L: Not really in the search PATH,
|
cannam@89
|
8488 # but as the default location of the library.
|
cannam@89
|
8489 hardcode_minus_L=yes
|
cannam@89
|
8490 export_dynamic_flag_spec='${wl}-E'
|
cannam@89
|
8491 ;;
|
cannam@89
|
8492
|
cannam@89
|
8493 hpux10*)
|
cannam@89
|
8494 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
|
cannam@89
|
8495 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@89
|
8496 else
|
cannam@89
|
8497 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
cannam@89
|
8498 fi
|
cannam@89
|
8499 if test "$with_gnu_ld" = no; then
|
cannam@89
|
8500 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
|
cannam@89
|
8501 hardcode_libdir_flag_spec_ld='+b $libdir'
|
cannam@89
|
8502 hardcode_libdir_separator=:
|
cannam@89
|
8503 hardcode_direct=yes
|
cannam@89
|
8504 hardcode_direct_absolute=yes
|
cannam@89
|
8505 export_dynamic_flag_spec='${wl}-E'
|
cannam@89
|
8506 # hardcode_minus_L: Not really in the search PATH,
|
cannam@89
|
8507 # but as the default location of the library.
|
cannam@89
|
8508 hardcode_minus_L=yes
|
cannam@89
|
8509 fi
|
cannam@89
|
8510 ;;
|
cannam@89
|
8511
|
cannam@89
|
8512 hpux11*)
|
cannam@89
|
8513 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
|
cannam@89
|
8514 case $host_cpu in
|
cannam@89
|
8515 hppa*64*)
|
cannam@89
|
8516 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@89
|
8517 ;;
|
cannam@89
|
8518 ia64*)
|
cannam@89
|
8519 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@89
|
8520 ;;
|
cannam@89
|
8521 *)
|
cannam@89
|
8522 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@89
|
8523 ;;
|
cannam@89
|
8524 esac
|
cannam@89
|
8525 else
|
cannam@89
|
8526 case $host_cpu in
|
cannam@89
|
8527 hppa*64*)
|
cannam@89
|
8528 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@89
|
8529 ;;
|
cannam@89
|
8530 ia64*)
|
cannam@89
|
8531 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@89
|
8532 ;;
|
cannam@89
|
8533 *)
|
cannam@89
|
8534 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@89
|
8535 ;;
|
cannam@89
|
8536 esac
|
cannam@89
|
8537 fi
|
cannam@89
|
8538 if test "$with_gnu_ld" = no; then
|
cannam@89
|
8539 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
|
cannam@89
|
8540 hardcode_libdir_separator=:
|
cannam@89
|
8541
|
cannam@89
|
8542 case $host_cpu in
|
cannam@89
|
8543 hppa*64*|ia64*)
|
cannam@89
|
8544 hardcode_direct=no
|
cannam@89
|
8545 hardcode_shlibpath_var=no
|
cannam@89
|
8546 ;;
|
cannam@89
|
8547 *)
|
cannam@89
|
8548 hardcode_direct=yes
|
cannam@89
|
8549 hardcode_direct_absolute=yes
|
cannam@89
|
8550 export_dynamic_flag_spec='${wl}-E'
|
cannam@89
|
8551
|
cannam@89
|
8552 # hardcode_minus_L: Not really in the search PATH,
|
cannam@89
|
8553 # but as the default location of the library.
|
cannam@89
|
8554 hardcode_minus_L=yes
|
cannam@89
|
8555 ;;
|
cannam@89
|
8556 esac
|
cannam@89
|
8557 fi
|
cannam@89
|
8558 ;;
|
cannam@89
|
8559
|
cannam@89
|
8560 irix5* | irix6* | nonstopux*)
|
cannam@89
|
8561 if test "$GCC" = yes; then
|
cannam@89
|
8562 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
cannam@89
|
8563 # Try to use the -exported_symbol ld option, if it does not
|
cannam@89
|
8564 # work, assume that -exports_file does not work either and
|
cannam@89
|
8565 # implicitly export all symbols.
|
cannam@89
|
8566 save_LDFLAGS="$LDFLAGS"
|
cannam@89
|
8567 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
|
cannam@89
|
8568 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
8569 int foo(void) {}
|
cannam@89
|
8570 _ACEOF
|
cannam@89
|
8571 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@89
|
8572 if { (ac_try="$ac_link"
|
cannam@89
|
8573 case "(($ac_try" in
|
cannam@89
|
8574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
8575 *) ac_try_echo=$ac_try;;
|
cannam@89
|
8576 esac
|
cannam@89
|
8577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
8578 (eval "$ac_link") 2>conftest.er1
|
cannam@89
|
8579 ac_status=$?
|
cannam@89
|
8580 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@89
|
8581 rm -f conftest.er1
|
cannam@89
|
8582 cat conftest.err >&5
|
cannam@89
|
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
8584 (exit $ac_status); } && {
|
cannam@89
|
8585 test -z "$ac_c_werror_flag" ||
|
cannam@89
|
8586 test ! -s conftest.err
|
cannam@89
|
8587 } && test -s conftest$ac_exeext &&
|
cannam@89
|
8588 $as_test_x conftest$ac_exeext; then
|
cannam@89
|
8589 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
|
cannam@89
|
8590
|
cannam@89
|
8591 else
|
cannam@89
|
8592 echo "$as_me: failed program was:" >&5
|
cannam@89
|
8593 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@89
|
8594
|
cannam@89
|
8595
|
cannam@89
|
8596 fi
|
cannam@89
|
8597
|
cannam@89
|
8598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
cannam@89
|
8599 conftest$ac_exeext conftest.$ac_ext
|
cannam@89
|
8600 LDFLAGS="$save_LDFLAGS"
|
cannam@89
|
8601 else
|
cannam@89
|
8602 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
|
cannam@89
|
8603 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
|
cannam@89
|
8604 fi
|
cannam@89
|
8605 archive_cmds_need_lc='no'
|
cannam@89
|
8606 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
cannam@89
|
8607 hardcode_libdir_separator=:
|
cannam@89
|
8608 inherit_rpath=yes
|
cannam@89
|
8609 link_all_deplibs=yes
|
cannam@89
|
8610 ;;
|
cannam@89
|
8611
|
cannam@89
|
8612 netbsd* | netbsdelf*-gnu)
|
cannam@89
|
8613 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
cannam@89
|
8614 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
|
cannam@89
|
8615 else
|
cannam@89
|
8616 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
|
cannam@89
|
8617 fi
|
cannam@89
|
8618 hardcode_libdir_flag_spec='-R$libdir'
|
cannam@89
|
8619 hardcode_direct=yes
|
cannam@89
|
8620 hardcode_shlibpath_var=no
|
cannam@89
|
8621 ;;
|
cannam@89
|
8622
|
cannam@89
|
8623 newsos6)
|
cannam@89
|
8624 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@89
|
8625 hardcode_direct=yes
|
cannam@89
|
8626 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
cannam@89
|
8627 hardcode_libdir_separator=:
|
cannam@89
|
8628 hardcode_shlibpath_var=no
|
cannam@89
|
8629 ;;
|
cannam@89
|
8630
|
cannam@89
|
8631 *nto* | *qnx*)
|
cannam@89
|
8632 ;;
|
cannam@89
|
8633
|
cannam@89
|
8634 openbsd*)
|
cannam@89
|
8635 if test -f /usr/libexec/ld.so; then
|
cannam@89
|
8636 hardcode_direct=yes
|
cannam@89
|
8637 hardcode_shlibpath_var=no
|
cannam@89
|
8638 hardcode_direct_absolute=yes
|
cannam@89
|
8639 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
cannam@89
|
8640 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@89
|
8641 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
|
cannam@89
|
8642 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
|
cannam@89
|
8643 export_dynamic_flag_spec='${wl}-E'
|
cannam@89
|
8644 else
|
cannam@89
|
8645 case $host_os in
|
cannam@89
|
8646 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
|
cannam@89
|
8647 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
cannam@89
|
8648 hardcode_libdir_flag_spec='-R$libdir'
|
cannam@89
|
8649 ;;
|
cannam@89
|
8650 *)
|
cannam@89
|
8651 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@89
|
8652 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
|
cannam@89
|
8653 ;;
|
cannam@89
|
8654 esac
|
cannam@89
|
8655 fi
|
cannam@89
|
8656 else
|
cannam@89
|
8657 ld_shlibs=no
|
cannam@89
|
8658 fi
|
cannam@89
|
8659 ;;
|
cannam@89
|
8660
|
cannam@89
|
8661 os2*)
|
cannam@89
|
8662 hardcode_libdir_flag_spec='-L$libdir'
|
cannam@89
|
8663 hardcode_minus_L=yes
|
cannam@89
|
8664 allow_undefined_flag=unsupported
|
cannam@89
|
8665 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'
|
cannam@89
|
8666 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
|
cannam@89
|
8667 ;;
|
cannam@89
|
8668
|
cannam@89
|
8669 osf3*)
|
cannam@89
|
8670 if test "$GCC" = yes; then
|
cannam@89
|
8671 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
|
cannam@89
|
8672 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
cannam@89
|
8673 else
|
cannam@89
|
8674 allow_undefined_flag=' -expect_unresolved \*'
|
cannam@89
|
8675 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
|
cannam@89
|
8676 fi
|
cannam@89
|
8677 archive_cmds_need_lc='no'
|
cannam@89
|
8678 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
cannam@89
|
8679 hardcode_libdir_separator=:
|
cannam@89
|
8680 ;;
|
cannam@89
|
8681
|
cannam@89
|
8682 osf4* | osf5*) # as osf3* with the addition of -msym flag
|
cannam@89
|
8683 if test "$GCC" = yes; then
|
cannam@89
|
8684 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
|
cannam@89
|
8685 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
cannam@89
|
8686 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
cannam@89
|
8687 else
|
cannam@89
|
8688 allow_undefined_flag=' -expect_unresolved \*'
|
cannam@89
|
8689 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
|
cannam@89
|
8690 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
|
cannam@89
|
8691 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
|
cannam@89
|
8692
|
cannam@89
|
8693 # Both c and cxx compiler support -rpath directly
|
cannam@89
|
8694 hardcode_libdir_flag_spec='-rpath $libdir'
|
cannam@89
|
8695 fi
|
cannam@89
|
8696 archive_cmds_need_lc='no'
|
cannam@89
|
8697 hardcode_libdir_separator=:
|
cannam@89
|
8698 ;;
|
cannam@89
|
8699
|
cannam@89
|
8700 solaris*)
|
cannam@89
|
8701 no_undefined_flag=' -z defs'
|
cannam@89
|
8702 if test "$GCC" = yes; then
|
cannam@89
|
8703 wlarc='${wl}'
|
cannam@89
|
8704 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@89
|
8705 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
cannam@89
|
8706 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
cannam@89
|
8707 else
|
cannam@89
|
8708 case `$CC -V 2>&1` in
|
cannam@89
|
8709 *"Compilers 5.0"*)
|
cannam@89
|
8710 wlarc=''
|
cannam@89
|
8711 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@89
|
8712 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
cannam@89
|
8713 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
|
cannam@89
|
8714 ;;
|
cannam@89
|
8715 *)
|
cannam@89
|
8716 wlarc='${wl}'
|
cannam@89
|
8717 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@89
|
8718 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
cannam@89
|
8719 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
cannam@89
|
8720 ;;
|
cannam@89
|
8721 esac
|
cannam@89
|
8722 fi
|
cannam@89
|
8723 hardcode_libdir_flag_spec='-R$libdir'
|
cannam@89
|
8724 hardcode_shlibpath_var=no
|
cannam@89
|
8725 case $host_os in
|
cannam@89
|
8726 solaris2.[0-5] | solaris2.[0-5].*) ;;
|
cannam@89
|
8727 *)
|
cannam@89
|
8728 # The compiler driver will combine and reorder linker options,
|
cannam@89
|
8729 # but understands `-z linker_flag'. GCC discards it without `$wl',
|
cannam@89
|
8730 # but is careful enough not to reorder.
|
cannam@89
|
8731 # Supported since Solaris 2.6 (maybe 2.5.1?)
|
cannam@89
|
8732 if test "$GCC" = yes; then
|
cannam@89
|
8733 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
|
cannam@89
|
8734 else
|
cannam@89
|
8735 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
|
cannam@89
|
8736 fi
|
cannam@89
|
8737 ;;
|
cannam@89
|
8738 esac
|
cannam@89
|
8739 link_all_deplibs=yes
|
cannam@89
|
8740 ;;
|
cannam@89
|
8741
|
cannam@89
|
8742 sunos4*)
|
cannam@89
|
8743 if test "x$host_vendor" = xsequent; then
|
cannam@89
|
8744 # Use $CC to link under sequent, because it throws in some extra .o
|
cannam@89
|
8745 # files that make .init and .fini sections work.
|
cannam@89
|
8746 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@89
|
8747 else
|
cannam@89
|
8748 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
|
cannam@89
|
8749 fi
|
cannam@89
|
8750 hardcode_libdir_flag_spec='-L$libdir'
|
cannam@89
|
8751 hardcode_direct=yes
|
cannam@89
|
8752 hardcode_minus_L=yes
|
cannam@89
|
8753 hardcode_shlibpath_var=no
|
cannam@89
|
8754 ;;
|
cannam@89
|
8755
|
cannam@89
|
8756 sysv4)
|
cannam@89
|
8757 case $host_vendor in
|
cannam@89
|
8758 sni)
|
cannam@89
|
8759 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@89
|
8760 hardcode_direct=yes # is this really true???
|
cannam@89
|
8761 ;;
|
cannam@89
|
8762 siemens)
|
cannam@89
|
8763 ## LD is ld it makes a PLAMLIB
|
cannam@89
|
8764 ## CC just makes a GrossModule.
|
cannam@89
|
8765 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
|
cannam@89
|
8766 reload_cmds='$CC -r -o $output$reload_objs'
|
cannam@89
|
8767 hardcode_direct=no
|
cannam@89
|
8768 ;;
|
cannam@89
|
8769 motorola)
|
cannam@89
|
8770 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@89
|
8771 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
|
cannam@89
|
8772 ;;
|
cannam@89
|
8773 esac
|
cannam@89
|
8774 runpath_var='LD_RUN_PATH'
|
cannam@89
|
8775 hardcode_shlibpath_var=no
|
cannam@89
|
8776 ;;
|
cannam@89
|
8777
|
cannam@89
|
8778 sysv4.3*)
|
cannam@89
|
8779 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@89
|
8780 hardcode_shlibpath_var=no
|
cannam@89
|
8781 export_dynamic_flag_spec='-Bexport'
|
cannam@89
|
8782 ;;
|
cannam@89
|
8783
|
cannam@89
|
8784 sysv4*MP*)
|
cannam@89
|
8785 if test -d /usr/nec; then
|
cannam@89
|
8786 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@89
|
8787 hardcode_shlibpath_var=no
|
cannam@89
|
8788 runpath_var=LD_RUN_PATH
|
cannam@89
|
8789 hardcode_runpath_var=yes
|
cannam@89
|
8790 ld_shlibs=yes
|
cannam@89
|
8791 fi
|
cannam@89
|
8792 ;;
|
cannam@89
|
8793
|
cannam@89
|
8794 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
|
cannam@89
|
8795 no_undefined_flag='${wl}-z,text'
|
cannam@89
|
8796 archive_cmds_need_lc=no
|
cannam@89
|
8797 hardcode_shlibpath_var=no
|
cannam@89
|
8798 runpath_var='LD_RUN_PATH'
|
cannam@89
|
8799
|
cannam@89
|
8800 if test "$GCC" = yes; then
|
cannam@89
|
8801 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@89
|
8802 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@89
|
8803 else
|
cannam@89
|
8804 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@89
|
8805 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@89
|
8806 fi
|
cannam@89
|
8807 ;;
|
cannam@89
|
8808
|
cannam@89
|
8809 sysv5* | sco3.2v5* | sco5v6*)
|
cannam@89
|
8810 # Note: We can NOT use -z defs as we might desire, because we do not
|
cannam@89
|
8811 # link with -lc, and that would cause any symbols used from libc to
|
cannam@89
|
8812 # always be unresolved, which means just about no library would
|
cannam@89
|
8813 # ever link correctly. If we're not using GNU ld we use -z text
|
cannam@89
|
8814 # though, which does catch some bad symbols but isn't as heavy-handed
|
cannam@89
|
8815 # as -z defs.
|
cannam@89
|
8816 no_undefined_flag='${wl}-z,text'
|
cannam@89
|
8817 allow_undefined_flag='${wl}-z,nodefs'
|
cannam@89
|
8818 archive_cmds_need_lc=no
|
cannam@89
|
8819 hardcode_shlibpath_var=no
|
cannam@89
|
8820 hardcode_libdir_flag_spec='${wl}-R,$libdir'
|
cannam@89
|
8821 hardcode_libdir_separator=':'
|
cannam@89
|
8822 link_all_deplibs=yes
|
cannam@89
|
8823 export_dynamic_flag_spec='${wl}-Bexport'
|
cannam@89
|
8824 runpath_var='LD_RUN_PATH'
|
cannam@89
|
8825
|
cannam@89
|
8826 if test "$GCC" = yes; then
|
cannam@89
|
8827 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@89
|
8828 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@89
|
8829 else
|
cannam@89
|
8830 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@89
|
8831 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@89
|
8832 fi
|
cannam@89
|
8833 ;;
|
cannam@89
|
8834
|
cannam@89
|
8835 uts4*)
|
cannam@89
|
8836 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@89
|
8837 hardcode_libdir_flag_spec='-L$libdir'
|
cannam@89
|
8838 hardcode_shlibpath_var=no
|
cannam@89
|
8839 ;;
|
cannam@89
|
8840
|
cannam@89
|
8841 *)
|
cannam@89
|
8842 ld_shlibs=no
|
cannam@89
|
8843 ;;
|
cannam@89
|
8844 esac
|
cannam@89
|
8845
|
cannam@89
|
8846 if test x$host_vendor = xsni; then
|
cannam@89
|
8847 case $host in
|
cannam@89
|
8848 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
cannam@89
|
8849 export_dynamic_flag_spec='${wl}-Blargedynsym'
|
cannam@89
|
8850 ;;
|
cannam@89
|
8851 esac
|
cannam@89
|
8852 fi
|
cannam@89
|
8853 fi
|
cannam@89
|
8854
|
cannam@89
|
8855 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
|
cannam@89
|
8856 echo "${ECHO_T}$ld_shlibs" >&6; }
|
cannam@89
|
8857 test "$ld_shlibs" = no && can_build_shared=no
|
cannam@89
|
8858
|
cannam@89
|
8859 with_gnu_ld=$with_gnu_ld
|
cannam@89
|
8860
|
cannam@89
|
8861
|
cannam@89
|
8862
|
cannam@89
|
8863
|
cannam@89
|
8864
|
cannam@89
|
8865
|
cannam@89
|
8866
|
cannam@89
|
8867
|
cannam@89
|
8868
|
cannam@89
|
8869
|
cannam@89
|
8870
|
cannam@89
|
8871
|
cannam@89
|
8872
|
cannam@89
|
8873
|
cannam@89
|
8874
|
cannam@89
|
8875 #
|
cannam@89
|
8876 # Do we need to explicitly link libc?
|
cannam@89
|
8877 #
|
cannam@89
|
8878 case "x$archive_cmds_need_lc" in
|
cannam@89
|
8879 x|xyes)
|
cannam@89
|
8880 # Assume -lc should be added
|
cannam@89
|
8881 archive_cmds_need_lc=yes
|
cannam@89
|
8882
|
cannam@89
|
8883 if test "$enable_shared" = yes && test "$GCC" = yes; then
|
cannam@89
|
8884 case $archive_cmds in
|
cannam@89
|
8885 *'~'*)
|
cannam@89
|
8886 # FIXME: we may have to deal with multi-command sequences.
|
cannam@89
|
8887 ;;
|
cannam@89
|
8888 '$CC '*)
|
cannam@89
|
8889 # Test whether the compiler implicitly links with -lc since on some
|
cannam@89
|
8890 # systems, -lgcc has to come before -lc. If gcc already passes -lc
|
cannam@89
|
8891 # to ld, don't add -lc before -lgcc.
|
cannam@89
|
8892 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
|
cannam@89
|
8893 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
|
cannam@89
|
8894 $RM conftest*
|
cannam@89
|
8895 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
cannam@89
|
8896
|
cannam@89
|
8897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@89
|
8898 (eval $ac_compile) 2>&5
|
cannam@89
|
8899 ac_status=$?
|
cannam@89
|
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
8901 (exit $ac_status); } 2>conftest.err; then
|
cannam@89
|
8902 soname=conftest
|
cannam@89
|
8903 lib=conftest
|
cannam@89
|
8904 libobjs=conftest.$ac_objext
|
cannam@89
|
8905 deplibs=
|
cannam@89
|
8906 wl=$lt_prog_compiler_wl
|
cannam@89
|
8907 pic_flag=$lt_prog_compiler_pic
|
cannam@89
|
8908 compiler_flags=-v
|
cannam@89
|
8909 linker_flags=-v
|
cannam@89
|
8910 verstring=
|
cannam@89
|
8911 output_objdir=.
|
cannam@89
|
8912 libname=conftest
|
cannam@89
|
8913 lt_save_allow_undefined_flag=$allow_undefined_flag
|
cannam@89
|
8914 allow_undefined_flag=
|
cannam@89
|
8915 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
|
cannam@89
|
8916 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
|
cannam@89
|
8917 ac_status=$?
|
cannam@89
|
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
8919 (exit $ac_status); }
|
cannam@89
|
8920 then
|
cannam@89
|
8921 archive_cmds_need_lc=no
|
cannam@89
|
8922 else
|
cannam@89
|
8923 archive_cmds_need_lc=yes
|
cannam@89
|
8924 fi
|
cannam@89
|
8925 allow_undefined_flag=$lt_save_allow_undefined_flag
|
cannam@89
|
8926 else
|
cannam@89
|
8927 cat conftest.err 1>&5
|
cannam@89
|
8928 fi
|
cannam@89
|
8929 $RM conftest*
|
cannam@89
|
8930 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
|
cannam@89
|
8931 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
|
cannam@89
|
8932 ;;
|
cannam@89
|
8933 esac
|
cannam@89
|
8934 fi
|
cannam@89
|
8935 ;;
|
cannam@89
|
8936 esac
|
cannam@89
|
8937
|
cannam@89
|
8938
|
cannam@89
|
8939
|
cannam@89
|
8940
|
cannam@89
|
8941
|
cannam@89
|
8942
|
cannam@89
|
8943
|
cannam@89
|
8944
|
cannam@89
|
8945
|
cannam@89
|
8946
|
cannam@89
|
8947
|
cannam@89
|
8948
|
cannam@89
|
8949
|
cannam@89
|
8950
|
cannam@89
|
8951
|
cannam@89
|
8952
|
cannam@89
|
8953
|
cannam@89
|
8954
|
cannam@89
|
8955
|
cannam@89
|
8956
|
cannam@89
|
8957
|
cannam@89
|
8958
|
cannam@89
|
8959
|
cannam@89
|
8960
|
cannam@89
|
8961
|
cannam@89
|
8962
|
cannam@89
|
8963
|
cannam@89
|
8964
|
cannam@89
|
8965
|
cannam@89
|
8966
|
cannam@89
|
8967
|
cannam@89
|
8968
|
cannam@89
|
8969
|
cannam@89
|
8970
|
cannam@89
|
8971
|
cannam@89
|
8972
|
cannam@89
|
8973
|
cannam@89
|
8974
|
cannam@89
|
8975
|
cannam@89
|
8976
|
cannam@89
|
8977
|
cannam@89
|
8978
|
cannam@89
|
8979
|
cannam@89
|
8980
|
cannam@89
|
8981
|
cannam@89
|
8982
|
cannam@89
|
8983
|
cannam@89
|
8984
|
cannam@89
|
8985
|
cannam@89
|
8986
|
cannam@89
|
8987
|
cannam@89
|
8988
|
cannam@89
|
8989
|
cannam@89
|
8990
|
cannam@89
|
8991
|
cannam@89
|
8992
|
cannam@89
|
8993
|
cannam@89
|
8994
|
cannam@89
|
8995
|
cannam@89
|
8996
|
cannam@89
|
8997
|
cannam@89
|
8998
|
cannam@89
|
8999
|
cannam@89
|
9000
|
cannam@89
|
9001
|
cannam@89
|
9002
|
cannam@89
|
9003
|
cannam@89
|
9004
|
cannam@89
|
9005
|
cannam@89
|
9006
|
cannam@89
|
9007
|
cannam@89
|
9008
|
cannam@89
|
9009
|
cannam@89
|
9010
|
cannam@89
|
9011
|
cannam@89
|
9012
|
cannam@89
|
9013
|
cannam@89
|
9014
|
cannam@89
|
9015
|
cannam@89
|
9016
|
cannam@89
|
9017
|
cannam@89
|
9018
|
cannam@89
|
9019
|
cannam@89
|
9020
|
cannam@89
|
9021
|
cannam@89
|
9022
|
cannam@89
|
9023
|
cannam@89
|
9024
|
cannam@89
|
9025
|
cannam@89
|
9026
|
cannam@89
|
9027
|
cannam@89
|
9028
|
cannam@89
|
9029
|
cannam@89
|
9030
|
cannam@89
|
9031
|
cannam@89
|
9032
|
cannam@89
|
9033
|
cannam@89
|
9034
|
cannam@89
|
9035
|
cannam@89
|
9036
|
cannam@89
|
9037
|
cannam@89
|
9038
|
cannam@89
|
9039
|
cannam@89
|
9040
|
cannam@89
|
9041
|
cannam@89
|
9042
|
cannam@89
|
9043
|
cannam@89
|
9044
|
cannam@89
|
9045
|
cannam@89
|
9046
|
cannam@89
|
9047
|
cannam@89
|
9048
|
cannam@89
|
9049
|
cannam@89
|
9050
|
cannam@89
|
9051
|
cannam@89
|
9052
|
cannam@89
|
9053
|
cannam@89
|
9054
|
cannam@89
|
9055
|
cannam@89
|
9056
|
cannam@89
|
9057
|
cannam@89
|
9058
|
cannam@89
|
9059
|
cannam@89
|
9060
|
cannam@89
|
9061
|
cannam@89
|
9062
|
cannam@89
|
9063
|
cannam@89
|
9064
|
cannam@89
|
9065
|
cannam@89
|
9066
|
cannam@89
|
9067
|
cannam@89
|
9068
|
cannam@89
|
9069
|
cannam@89
|
9070
|
cannam@89
|
9071
|
cannam@89
|
9072
|
cannam@89
|
9073
|
cannam@89
|
9074
|
cannam@89
|
9075
|
cannam@89
|
9076
|
cannam@89
|
9077
|
cannam@89
|
9078
|
cannam@89
|
9079
|
cannam@89
|
9080
|
cannam@89
|
9081
|
cannam@89
|
9082
|
cannam@89
|
9083
|
cannam@89
|
9084
|
cannam@89
|
9085
|
cannam@89
|
9086
|
cannam@89
|
9087
|
cannam@89
|
9088
|
cannam@89
|
9089
|
cannam@89
|
9090
|
cannam@89
|
9091
|
cannam@89
|
9092
|
cannam@89
|
9093
|
cannam@89
|
9094 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
|
cannam@89
|
9095 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
|
cannam@89
|
9096
|
cannam@89
|
9097 if test "$GCC" = yes; then
|
cannam@89
|
9098 case $host_os in
|
cannam@89
|
9099 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
|
cannam@89
|
9100 *) lt_awk_arg="/^libraries:/" ;;
|
cannam@89
|
9101 esac
|
cannam@89
|
9102 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
cannam@89
|
9103 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
|
cannam@89
|
9104 # if the path contains ";" then we assume it to be the separator
|
cannam@89
|
9105 # otherwise default to the standard path separator (i.e. ":") - it is
|
cannam@89
|
9106 # assumed that no part of a normal pathname contains ";" but that should
|
cannam@89
|
9107 # okay in the real world where ";" in dirpaths is itself problematic.
|
cannam@89
|
9108 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
|
cannam@89
|
9109 else
|
cannam@89
|
9110 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
cannam@89
|
9111 fi
|
cannam@89
|
9112 # Ok, now we have the path, separated by spaces, we can step through it
|
cannam@89
|
9113 # and add multilib dir if necessary.
|
cannam@89
|
9114 lt_tmp_lt_search_path_spec=
|
cannam@89
|
9115 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
|
cannam@89
|
9116 for lt_sys_path in $lt_search_path_spec; do
|
cannam@89
|
9117 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
|
cannam@89
|
9118 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
|
cannam@89
|
9119 else
|
cannam@89
|
9120 test -d "$lt_sys_path" && \
|
cannam@89
|
9121 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
|
cannam@89
|
9122 fi
|
cannam@89
|
9123 done
|
cannam@89
|
9124 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
|
cannam@89
|
9125 BEGIN {RS=" "; FS="/|\n";} {
|
cannam@89
|
9126 lt_foo="";
|
cannam@89
|
9127 lt_count=0;
|
cannam@89
|
9128 for (lt_i = NF; lt_i > 0; lt_i--) {
|
cannam@89
|
9129 if ($lt_i != "" && $lt_i != ".") {
|
cannam@89
|
9130 if ($lt_i == "..") {
|
cannam@89
|
9131 lt_count++;
|
cannam@89
|
9132 } else {
|
cannam@89
|
9133 if (lt_count == 0) {
|
cannam@89
|
9134 lt_foo="/" $lt_i lt_foo;
|
cannam@89
|
9135 } else {
|
cannam@89
|
9136 lt_count--;
|
cannam@89
|
9137 }
|
cannam@89
|
9138 }
|
cannam@89
|
9139 }
|
cannam@89
|
9140 }
|
cannam@89
|
9141 if (lt_foo != "") { lt_freq[lt_foo]++; }
|
cannam@89
|
9142 if (lt_freq[lt_foo] == 1) { print lt_foo; }
|
cannam@89
|
9143 }'`
|
cannam@89
|
9144 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
|
cannam@89
|
9145 else
|
cannam@89
|
9146 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
|
cannam@89
|
9147 fi
|
cannam@89
|
9148 library_names_spec=
|
cannam@89
|
9149 libname_spec='lib$name'
|
cannam@89
|
9150 soname_spec=
|
cannam@89
|
9151 shrext_cmds=".so"
|
cannam@89
|
9152 postinstall_cmds=
|
cannam@89
|
9153 postuninstall_cmds=
|
cannam@89
|
9154 finish_cmds=
|
cannam@89
|
9155 finish_eval=
|
cannam@89
|
9156 shlibpath_var=
|
cannam@89
|
9157 shlibpath_overrides_runpath=unknown
|
cannam@89
|
9158 version_type=none
|
cannam@89
|
9159 dynamic_linker="$host_os ld.so"
|
cannam@89
|
9160 sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
cannam@89
|
9161 need_lib_prefix=unknown
|
cannam@89
|
9162 hardcode_into_libs=no
|
cannam@89
|
9163
|
cannam@89
|
9164 # when you set need_version to no, make sure it does not cause -set_version
|
cannam@89
|
9165 # flags to be left without arguments
|
cannam@89
|
9166 need_version=unknown
|
cannam@89
|
9167
|
cannam@89
|
9168 case $host_os in
|
cannam@89
|
9169 aix3*)
|
cannam@89
|
9170 version_type=linux
|
cannam@89
|
9171 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
|
cannam@89
|
9172 shlibpath_var=LIBPATH
|
cannam@89
|
9173
|
cannam@89
|
9174 # AIX 3 has no versioning support, so we append a major version to the name.
|
cannam@89
|
9175 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@89
|
9176 ;;
|
cannam@89
|
9177
|
cannam@89
|
9178 aix[4-9]*)
|
cannam@89
|
9179 version_type=linux
|
cannam@89
|
9180 need_lib_prefix=no
|
cannam@89
|
9181 need_version=no
|
cannam@89
|
9182 hardcode_into_libs=yes
|
cannam@89
|
9183 if test "$host_cpu" = ia64; then
|
cannam@89
|
9184 # AIX 5 supports IA64
|
cannam@89
|
9185 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
|
cannam@89
|
9186 shlibpath_var=LD_LIBRARY_PATH
|
cannam@89
|
9187 else
|
cannam@89
|
9188 # With GCC up to 2.95.x, collect2 would create an import file
|
cannam@89
|
9189 # for dependence libraries. The import file would start with
|
cannam@89
|
9190 # the line `#! .'. This would cause the generated library to
|
cannam@89
|
9191 # depend on `.', always an invalid library. This was fixed in
|
cannam@89
|
9192 # development snapshots of GCC prior to 3.0.
|
cannam@89
|
9193 case $host_os in
|
cannam@89
|
9194 aix4 | aix4.[01] | aix4.[01].*)
|
cannam@89
|
9195 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
|
cannam@89
|
9196 echo ' yes '
|
cannam@89
|
9197 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
|
cannam@89
|
9198 :
|
cannam@89
|
9199 else
|
cannam@89
|
9200 can_build_shared=no
|
cannam@89
|
9201 fi
|
cannam@89
|
9202 ;;
|
cannam@89
|
9203 esac
|
cannam@89
|
9204 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
|
cannam@89
|
9205 # soname into executable. Probably we can add versioning support to
|
cannam@89
|
9206 # collect2, so additional links can be useful in future.
|
cannam@89
|
9207 if test "$aix_use_runtimelinking" = yes; then
|
cannam@89
|
9208 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
|
cannam@89
|
9209 # instead of lib<name>.a to let people know that these are not
|
cannam@89
|
9210 # typical AIX shared libraries.
|
cannam@89
|
9211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@89
|
9212 else
|
cannam@89
|
9213 # We preserve .a as extension for shared libraries through AIX4.2
|
cannam@89
|
9214 # and later when we are not doing run time linking.
|
cannam@89
|
9215 library_names_spec='${libname}${release}.a $libname.a'
|
cannam@89
|
9216 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@89
|
9217 fi
|
cannam@89
|
9218 shlibpath_var=LIBPATH
|
cannam@89
|
9219 fi
|
cannam@89
|
9220 ;;
|
cannam@89
|
9221
|
cannam@89
|
9222 amigaos*)
|
cannam@89
|
9223 case $host_cpu in
|
cannam@89
|
9224 powerpc)
|
cannam@89
|
9225 # Since July 2007 AmigaOS4 officially supports .so libraries.
|
cannam@89
|
9226 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
|
cannam@89
|
9227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@89
|
9228 ;;
|
cannam@89
|
9229 m68k)
|
cannam@89
|
9230 library_names_spec='$libname.ixlibrary $libname.a'
|
cannam@89
|
9231 # Create ${libname}_ixlibrary.a entries in /sys/libs.
|
cannam@89
|
9232 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'
|
cannam@89
|
9233 ;;
|
cannam@89
|
9234 esac
|
cannam@89
|
9235 ;;
|
cannam@89
|
9236
|
cannam@89
|
9237 beos*)
|
cannam@89
|
9238 library_names_spec='${libname}${shared_ext}'
|
cannam@89
|
9239 dynamic_linker="$host_os ld.so"
|
cannam@89
|
9240 shlibpath_var=LIBRARY_PATH
|
cannam@89
|
9241 ;;
|
cannam@89
|
9242
|
cannam@89
|
9243 bsdi[45]*)
|
cannam@89
|
9244 version_type=linux
|
cannam@89
|
9245 need_version=no
|
cannam@89
|
9246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@89
|
9247 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@89
|
9248 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
|
cannam@89
|
9249 shlibpath_var=LD_LIBRARY_PATH
|
cannam@89
|
9250 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
|
cannam@89
|
9251 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
|
cannam@89
|
9252 # the default ld.so.conf also contains /usr/contrib/lib and
|
cannam@89
|
9253 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
|
cannam@89
|
9254 # libtool to hard-code these into programs
|
cannam@89
|
9255 ;;
|
cannam@89
|
9256
|
cannam@89
|
9257 cygwin* | mingw* | pw32*)
|
cannam@89
|
9258 version_type=windows
|
cannam@89
|
9259 shrext_cmds=".dll"
|
cannam@89
|
9260 need_version=no
|
cannam@89
|
9261 need_lib_prefix=no
|
cannam@89
|
9262
|
cannam@89
|
9263 case $GCC,$host_os in
|
cannam@89
|
9264 yes,cygwin* | yes,mingw* | yes,pw32*)
|
cannam@89
|
9265 library_names_spec='$libname.dll.a'
|
cannam@89
|
9266 # DLL is installed to $(libdir)/../bin by postinstall_cmds
|
cannam@89
|
9267 postinstall_cmds='base_file=`basename \${file}`~
|
cannam@89
|
9268 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
|
cannam@89
|
9269 dldir=$destdir/`dirname \$dlpath`~
|
cannam@89
|
9270 test -d \$dldir || mkdir -p \$dldir~
|
cannam@89
|
9271 $install_prog $dir/$dlname \$dldir/$dlname~
|
cannam@89
|
9272 chmod a+x \$dldir/$dlname~
|
cannam@89
|
9273 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
|
cannam@89
|
9274 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
|
cannam@89
|
9275 fi'
|
cannam@89
|
9276 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
cannam@89
|
9277 dlpath=$dir/\$dldll~
|
cannam@89
|
9278 $RM \$dlpath'
|
cannam@89
|
9279 shlibpath_overrides_runpath=yes
|
cannam@89
|
9280
|
cannam@89
|
9281 case $host_os in
|
cannam@89
|
9282 cygwin*)
|
cannam@89
|
9283 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
|
cannam@89
|
9284 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
cannam@89
|
9285 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
|
cannam@89
|
9286 ;;
|
cannam@89
|
9287 mingw*)
|
cannam@89
|
9288 # MinGW DLLs use traditional 'lib' prefix
|
cannam@89
|
9289 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
cannam@89
|
9290 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
cannam@89
|
9291 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
|
cannam@89
|
9292 # It is most probably a Windows format PATH printed by
|
cannam@89
|
9293 # mingw gcc, but we are running on Cygwin. Gcc prints its search
|
cannam@89
|
9294 # path with ; separators, and with drive letters. We can handle the
|
cannam@89
|
9295 # drive letters (cygwin fileutils understands them), so leave them,
|
cannam@89
|
9296 # especially as we might pass files found there to a mingw objdump,
|
cannam@89
|
9297 # which wouldn't understand a cygwinified path. Ahh.
|
cannam@89
|
9298 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
cannam@89
|
9299 else
|
cannam@89
|
9300 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
cannam@89
|
9301 fi
|
cannam@89
|
9302 ;;
|
cannam@89
|
9303 pw32*)
|
cannam@89
|
9304 # pw32 DLLs use 'pw' prefix rather than 'lib'
|
cannam@89
|
9305 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
cannam@89
|
9306 ;;
|
cannam@89
|
9307 esac
|
cannam@89
|
9308 ;;
|
cannam@89
|
9309
|
cannam@89
|
9310 *)
|
cannam@89
|
9311 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
cannam@89
|
9312 ;;
|
cannam@89
|
9313 esac
|
cannam@89
|
9314 dynamic_linker='Win32 ld.exe'
|
cannam@89
|
9315 # FIXME: first we should search . and the directory the executable is in
|
cannam@89
|
9316 shlibpath_var=PATH
|
cannam@89
|
9317 ;;
|
cannam@89
|
9318
|
cannam@89
|
9319 darwin* | rhapsody*)
|
cannam@89
|
9320 dynamic_linker="$host_os dyld"
|
cannam@89
|
9321 version_type=darwin
|
cannam@89
|
9322 need_lib_prefix=no
|
cannam@89
|
9323 need_version=no
|
cannam@89
|
9324 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
|
cannam@89
|
9325 soname_spec='${libname}${release}${major}$shared_ext'
|
cannam@89
|
9326 shlibpath_overrides_runpath=yes
|
cannam@89
|
9327 shlibpath_var=DYLD_LIBRARY_PATH
|
cannam@89
|
9328 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
|
cannam@89
|
9329
|
cannam@89
|
9330 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
|
cannam@89
|
9331 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
|
cannam@89
|
9332 ;;
|
cannam@89
|
9333
|
cannam@89
|
9334 dgux*)
|
cannam@89
|
9335 version_type=linux
|
cannam@89
|
9336 need_lib_prefix=no
|
cannam@89
|
9337 need_version=no
|
cannam@89
|
9338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
|
cannam@89
|
9339 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@89
|
9340 shlibpath_var=LD_LIBRARY_PATH
|
cannam@89
|
9341 ;;
|
cannam@89
|
9342
|
cannam@89
|
9343 freebsd1*)
|
cannam@89
|
9344 dynamic_linker=no
|
cannam@89
|
9345 ;;
|
cannam@89
|
9346
|
cannam@89
|
9347 freebsd* | dragonfly*)
|
cannam@89
|
9348 # DragonFly does not have aout. When/if they implement a new
|
cannam@89
|
9349 # versioning mechanism, adjust this.
|
cannam@89
|
9350 if test -x /usr/bin/objformat; then
|
cannam@89
|
9351 objformat=`/usr/bin/objformat`
|
cannam@89
|
9352 else
|
cannam@89
|
9353 case $host_os in
|
cannam@89
|
9354 freebsd[123]*) objformat=aout ;;
|
cannam@89
|
9355 *) objformat=elf ;;
|
cannam@89
|
9356 esac
|
cannam@89
|
9357 fi
|
cannam@89
|
9358 version_type=freebsd-$objformat
|
cannam@89
|
9359 case $version_type in
|
cannam@89
|
9360 freebsd-elf*)
|
cannam@89
|
9361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
cannam@89
|
9362 need_version=no
|
cannam@89
|
9363 need_lib_prefix=no
|
cannam@89
|
9364 ;;
|
cannam@89
|
9365 freebsd-*)
|
cannam@89
|
9366 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
|
cannam@89
|
9367 need_version=yes
|
cannam@89
|
9368 ;;
|
cannam@89
|
9369 esac
|
cannam@89
|
9370 shlibpath_var=LD_LIBRARY_PATH
|
cannam@89
|
9371 case $host_os in
|
cannam@89
|
9372 freebsd2*)
|
cannam@89
|
9373 shlibpath_overrides_runpath=yes
|
cannam@89
|
9374 ;;
|
cannam@89
|
9375 freebsd3.[01]* | freebsdelf3.[01]*)
|
cannam@89
|
9376 shlibpath_overrides_runpath=yes
|
cannam@89
|
9377 hardcode_into_libs=yes
|
cannam@89
|
9378 ;;
|
cannam@89
|
9379 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
|
cannam@89
|
9380 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
|
cannam@89
|
9381 shlibpath_overrides_runpath=no
|
cannam@89
|
9382 hardcode_into_libs=yes
|
cannam@89
|
9383 ;;
|
cannam@89
|
9384 *) # from 4.6 on, and DragonFly
|
cannam@89
|
9385 shlibpath_overrides_runpath=yes
|
cannam@89
|
9386 hardcode_into_libs=yes
|
cannam@89
|
9387 ;;
|
cannam@89
|
9388 esac
|
cannam@89
|
9389 ;;
|
cannam@89
|
9390
|
cannam@89
|
9391 gnu*)
|
cannam@89
|
9392 version_type=linux
|
cannam@89
|
9393 need_lib_prefix=no
|
cannam@89
|
9394 need_version=no
|
cannam@89
|
9395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
|
cannam@89
|
9396 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@89
|
9397 shlibpath_var=LD_LIBRARY_PATH
|
cannam@89
|
9398 hardcode_into_libs=yes
|
cannam@89
|
9399 ;;
|
cannam@89
|
9400
|
cannam@89
|
9401 hpux9* | hpux10* | hpux11*)
|
cannam@89
|
9402 # Give a soname corresponding to the major version so that dld.sl refuses to
|
cannam@89
|
9403 # link against other versions.
|
cannam@89
|
9404 version_type=sunos
|
cannam@89
|
9405 need_lib_prefix=no
|
cannam@89
|
9406 need_version=no
|
cannam@89
|
9407 case $host_cpu in
|
cannam@89
|
9408 ia64*)
|
cannam@89
|
9409 shrext_cmds='.so'
|
cannam@89
|
9410 hardcode_into_libs=yes
|
cannam@89
|
9411 dynamic_linker="$host_os dld.so"
|
cannam@89
|
9412 shlibpath_var=LD_LIBRARY_PATH
|
cannam@89
|
9413 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
cannam@89
|
9414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@89
|
9415 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@89
|
9416 if test "X$HPUX_IA64_MODE" = X32; then
|
cannam@89
|
9417 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
|
cannam@89
|
9418 else
|
cannam@89
|
9419 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
|
cannam@89
|
9420 fi
|
cannam@89
|
9421 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
cannam@89
|
9422 ;;
|
cannam@89
|
9423 hppa*64*)
|
cannam@89
|
9424 shrext_cmds='.sl'
|
cannam@89
|
9425 hardcode_into_libs=yes
|
cannam@89
|
9426 dynamic_linker="$host_os dld.sl"
|
cannam@89
|
9427 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
|
cannam@89
|
9428 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
cannam@89
|
9429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@89
|
9430 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@89
|
9431 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
|
cannam@89
|
9432 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
cannam@89
|
9433 ;;
|
cannam@89
|
9434 *)
|
cannam@89
|
9435 shrext_cmds='.sl'
|
cannam@89
|
9436 dynamic_linker="$host_os dld.sl"
|
cannam@89
|
9437 shlibpath_var=SHLIB_PATH
|
cannam@89
|
9438 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
|
cannam@89
|
9439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@89
|
9440 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@89
|
9441 ;;
|
cannam@89
|
9442 esac
|
cannam@89
|
9443 # HP-UX runs *really* slowly unless shared libraries are mode 555.
|
cannam@89
|
9444 postinstall_cmds='chmod 555 $lib'
|
cannam@89
|
9445 ;;
|
cannam@89
|
9446
|
cannam@89
|
9447 interix[3-9]*)
|
cannam@89
|
9448 version_type=linux
|
cannam@89
|
9449 need_lib_prefix=no
|
cannam@89
|
9450 need_version=no
|
cannam@89
|
9451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
cannam@89
|
9452 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@89
|
9453 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
|
cannam@89
|
9454 shlibpath_var=LD_LIBRARY_PATH
|
cannam@89
|
9455 shlibpath_overrides_runpath=no
|
cannam@89
|
9456 hardcode_into_libs=yes
|
cannam@89
|
9457 ;;
|
cannam@89
|
9458
|
cannam@89
|
9459 irix5* | irix6* | nonstopux*)
|
cannam@89
|
9460 case $host_os in
|
cannam@89
|
9461 nonstopux*) version_type=nonstopux ;;
|
cannam@89
|
9462 *)
|
cannam@89
|
9463 if test "$lt_cv_prog_gnu_ld" = yes; then
|
cannam@89
|
9464 version_type=linux
|
cannam@89
|
9465 else
|
cannam@89
|
9466 version_type=irix
|
cannam@89
|
9467 fi ;;
|
cannam@89
|
9468 esac
|
cannam@89
|
9469 need_lib_prefix=no
|
cannam@89
|
9470 need_version=no
|
cannam@89
|
9471 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@89
|
9472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
|
cannam@89
|
9473 case $host_os in
|
cannam@89
|
9474 irix5* | nonstopux*)
|
cannam@89
|
9475 libsuff= shlibsuff=
|
cannam@89
|
9476 ;;
|
cannam@89
|
9477 *)
|
cannam@89
|
9478 case $LD in # libtool.m4 will add one of these switches to LD
|
cannam@89
|
9479 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
|
cannam@89
|
9480 libsuff= shlibsuff= libmagic=32-bit;;
|
cannam@89
|
9481 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
|
cannam@89
|
9482 libsuff=32 shlibsuff=N32 libmagic=N32;;
|
cannam@89
|
9483 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
|
cannam@89
|
9484 libsuff=64 shlibsuff=64 libmagic=64-bit;;
|
cannam@89
|
9485 *) libsuff= shlibsuff= libmagic=never-match;;
|
cannam@89
|
9486 esac
|
cannam@89
|
9487 ;;
|
cannam@89
|
9488 esac
|
cannam@89
|
9489 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
|
cannam@89
|
9490 shlibpath_overrides_runpath=no
|
cannam@89
|
9491 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
|
cannam@89
|
9492 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
|
cannam@89
|
9493 hardcode_into_libs=yes
|
cannam@89
|
9494 ;;
|
cannam@89
|
9495
|
cannam@89
|
9496 # No shared lib support for Linux oldld, aout, or coff.
|
cannam@89
|
9497 linux*oldld* | linux*aout* | linux*coff*)
|
cannam@89
|
9498 dynamic_linker=no
|
cannam@89
|
9499 ;;
|
cannam@89
|
9500
|
cannam@89
|
9501 # This must be Linux ELF.
|
cannam@89
|
9502 linux* | k*bsd*-gnu)
|
cannam@89
|
9503 version_type=linux
|
cannam@89
|
9504 need_lib_prefix=no
|
cannam@89
|
9505 need_version=no
|
cannam@89
|
9506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@89
|
9507 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@89
|
9508 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
cannam@89
|
9509 shlibpath_var=LD_LIBRARY_PATH
|
cannam@89
|
9510 shlibpath_overrides_runpath=no
|
cannam@89
|
9511 # Some binutils ld are patched to set DT_RUNPATH
|
cannam@89
|
9512 save_LDFLAGS=$LDFLAGS
|
cannam@89
|
9513 save_libdir=$libdir
|
cannam@89
|
9514 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
|
cannam@89
|
9515 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
|
cannam@89
|
9516 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
9517 /* confdefs.h. */
|
cannam@89
|
9518 _ACEOF
|
cannam@89
|
9519 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
9520 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
9521 /* end confdefs.h. */
|
cannam@89
|
9522
|
cannam@89
|
9523 int
|
cannam@89
|
9524 main ()
|
cannam@89
|
9525 {
|
cannam@89
|
9526
|
cannam@89
|
9527 ;
|
cannam@89
|
9528 return 0;
|
cannam@89
|
9529 }
|
cannam@89
|
9530 _ACEOF
|
cannam@89
|
9531 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@89
|
9532 if { (ac_try="$ac_link"
|
cannam@89
|
9533 case "(($ac_try" in
|
cannam@89
|
9534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
9535 *) ac_try_echo=$ac_try;;
|
cannam@89
|
9536 esac
|
cannam@89
|
9537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
9538 (eval "$ac_link") 2>conftest.er1
|
cannam@89
|
9539 ac_status=$?
|
cannam@89
|
9540 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@89
|
9541 rm -f conftest.er1
|
cannam@89
|
9542 cat conftest.err >&5
|
cannam@89
|
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
9544 (exit $ac_status); } && {
|
cannam@89
|
9545 test -z "$ac_c_werror_flag" ||
|
cannam@89
|
9546 test ! -s conftest.err
|
cannam@89
|
9547 } && test -s conftest$ac_exeext &&
|
cannam@89
|
9548 $as_test_x conftest$ac_exeext; then
|
cannam@89
|
9549 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
|
cannam@89
|
9550 shlibpath_overrides_runpath=yes
|
cannam@89
|
9551 fi
|
cannam@89
|
9552
|
cannam@89
|
9553 else
|
cannam@89
|
9554 echo "$as_me: failed program was:" >&5
|
cannam@89
|
9555 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@89
|
9556
|
cannam@89
|
9557
|
cannam@89
|
9558 fi
|
cannam@89
|
9559
|
cannam@89
|
9560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
cannam@89
|
9561 conftest$ac_exeext conftest.$ac_ext
|
cannam@89
|
9562 LDFLAGS=$save_LDFLAGS
|
cannam@89
|
9563 libdir=$save_libdir
|
cannam@89
|
9564
|
cannam@89
|
9565 # This implies no fast_install, which is unacceptable.
|
cannam@89
|
9566 # Some rework will be needed to allow for fast_install
|
cannam@89
|
9567 # before this can be enabled.
|
cannam@89
|
9568 hardcode_into_libs=yes
|
cannam@89
|
9569
|
cannam@89
|
9570 # Append ld.so.conf contents to the search path
|
cannam@89
|
9571 if test -f /etc/ld.so.conf; then
|
cannam@89
|
9572 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
|
cannam@89
|
9573 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
|
cannam@89
|
9574 fi
|
cannam@89
|
9575
|
cannam@89
|
9576 # We used to test for /lib/ld.so.1 and disable shared libraries on
|
cannam@89
|
9577 # powerpc, because MkLinux only supported shared libraries with the
|
cannam@89
|
9578 # GNU dynamic linker. Since this was broken with cross compilers,
|
cannam@89
|
9579 # most powerpc-linux boxes support dynamic linking these days and
|
cannam@89
|
9580 # people can always --disable-shared, the test was removed, and we
|
cannam@89
|
9581 # assume the GNU/Linux dynamic linker is in use.
|
cannam@89
|
9582 dynamic_linker='GNU/Linux ld.so'
|
cannam@89
|
9583 ;;
|
cannam@89
|
9584
|
cannam@89
|
9585 netbsdelf*-gnu)
|
cannam@89
|
9586 version_type=linux
|
cannam@89
|
9587 need_lib_prefix=no
|
cannam@89
|
9588 need_version=no
|
cannam@89
|
9589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
cannam@89
|
9590 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@89
|
9591 shlibpath_var=LD_LIBRARY_PATH
|
cannam@89
|
9592 shlibpath_overrides_runpath=no
|
cannam@89
|
9593 hardcode_into_libs=yes
|
cannam@89
|
9594 dynamic_linker='NetBSD ld.elf_so'
|
cannam@89
|
9595 ;;
|
cannam@89
|
9596
|
cannam@89
|
9597 netbsd*)
|
cannam@89
|
9598 version_type=sunos
|
cannam@89
|
9599 need_lib_prefix=no
|
cannam@89
|
9600 need_version=no
|
cannam@89
|
9601 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
cannam@89
|
9602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
cannam@89
|
9603 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
cannam@89
|
9604 dynamic_linker='NetBSD (a.out) ld.so'
|
cannam@89
|
9605 else
|
cannam@89
|
9606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
cannam@89
|
9607 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@89
|
9608 dynamic_linker='NetBSD ld.elf_so'
|
cannam@89
|
9609 fi
|
cannam@89
|
9610 shlibpath_var=LD_LIBRARY_PATH
|
cannam@89
|
9611 shlibpath_overrides_runpath=yes
|
cannam@89
|
9612 hardcode_into_libs=yes
|
cannam@89
|
9613 ;;
|
cannam@89
|
9614
|
cannam@89
|
9615 newsos6)
|
cannam@89
|
9616 version_type=linux
|
cannam@89
|
9617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@89
|
9618 shlibpath_var=LD_LIBRARY_PATH
|
cannam@89
|
9619 shlibpath_overrides_runpath=yes
|
cannam@89
|
9620 ;;
|
cannam@89
|
9621
|
cannam@89
|
9622 *nto* | *qnx*)
|
cannam@89
|
9623 version_type=qnx
|
cannam@89
|
9624 need_lib_prefix=no
|
cannam@89
|
9625 need_version=no
|
cannam@89
|
9626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@89
|
9627 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@89
|
9628 shlibpath_var=LD_LIBRARY_PATH
|
cannam@89
|
9629 shlibpath_overrides_runpath=no
|
cannam@89
|
9630 hardcode_into_libs=yes
|
cannam@89
|
9631 dynamic_linker='ldqnx.so'
|
cannam@89
|
9632 ;;
|
cannam@89
|
9633
|
cannam@89
|
9634 openbsd*)
|
cannam@89
|
9635 version_type=sunos
|
cannam@89
|
9636 sys_lib_dlsearch_path_spec="/usr/lib"
|
cannam@89
|
9637 need_lib_prefix=no
|
cannam@89
|
9638 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
|
cannam@89
|
9639 case $host_os in
|
cannam@89
|
9640 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
|
cannam@89
|
9641 *) need_version=no ;;
|
cannam@89
|
9642 esac
|
cannam@89
|
9643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
cannam@89
|
9644 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
cannam@89
|
9645 shlibpath_var=LD_LIBRARY_PATH
|
cannam@89
|
9646 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
cannam@89
|
9647 case $host_os in
|
cannam@89
|
9648 openbsd2.[89] | openbsd2.[89].*)
|
cannam@89
|
9649 shlibpath_overrides_runpath=no
|
cannam@89
|
9650 ;;
|
cannam@89
|
9651 *)
|
cannam@89
|
9652 shlibpath_overrides_runpath=yes
|
cannam@89
|
9653 ;;
|
cannam@89
|
9654 esac
|
cannam@89
|
9655 else
|
cannam@89
|
9656 shlibpath_overrides_runpath=yes
|
cannam@89
|
9657 fi
|
cannam@89
|
9658 ;;
|
cannam@89
|
9659
|
cannam@89
|
9660 os2*)
|
cannam@89
|
9661 libname_spec='$name'
|
cannam@89
|
9662 shrext_cmds=".dll"
|
cannam@89
|
9663 need_lib_prefix=no
|
cannam@89
|
9664 library_names_spec='$libname${shared_ext} $libname.a'
|
cannam@89
|
9665 dynamic_linker='OS/2 ld.exe'
|
cannam@89
|
9666 shlibpath_var=LIBPATH
|
cannam@89
|
9667 ;;
|
cannam@89
|
9668
|
cannam@89
|
9669 osf3* | osf4* | osf5*)
|
cannam@89
|
9670 version_type=osf
|
cannam@89
|
9671 need_lib_prefix=no
|
cannam@89
|
9672 need_version=no
|
cannam@89
|
9673 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@89
|
9674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@89
|
9675 shlibpath_var=LD_LIBRARY_PATH
|
cannam@89
|
9676 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
|
cannam@89
|
9677 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
|
cannam@89
|
9678 ;;
|
cannam@89
|
9679
|
cannam@89
|
9680 rdos*)
|
cannam@89
|
9681 dynamic_linker=no
|
cannam@89
|
9682 ;;
|
cannam@89
|
9683
|
cannam@89
|
9684 solaris*)
|
cannam@89
|
9685 version_type=linux
|
cannam@89
|
9686 need_lib_prefix=no
|
cannam@89
|
9687 need_version=no
|
cannam@89
|
9688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@89
|
9689 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@89
|
9690 shlibpath_var=LD_LIBRARY_PATH
|
cannam@89
|
9691 shlibpath_overrides_runpath=yes
|
cannam@89
|
9692 hardcode_into_libs=yes
|
cannam@89
|
9693 # ldd complains unless libraries are executable
|
cannam@89
|
9694 postinstall_cmds='chmod +x $lib'
|
cannam@89
|
9695 ;;
|
cannam@89
|
9696
|
cannam@89
|
9697 sunos4*)
|
cannam@89
|
9698 version_type=sunos
|
cannam@89
|
9699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
cannam@89
|
9700 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
|
cannam@89
|
9701 shlibpath_var=LD_LIBRARY_PATH
|
cannam@89
|
9702 shlibpath_overrides_runpath=yes
|
cannam@89
|
9703 if test "$with_gnu_ld" = yes; then
|
cannam@89
|
9704 need_lib_prefix=no
|
cannam@89
|
9705 fi
|
cannam@89
|
9706 need_version=yes
|
cannam@89
|
9707 ;;
|
cannam@89
|
9708
|
cannam@89
|
9709 sysv4 | sysv4.3*)
|
cannam@89
|
9710 version_type=linux
|
cannam@89
|
9711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@89
|
9712 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@89
|
9713 shlibpath_var=LD_LIBRARY_PATH
|
cannam@89
|
9714 case $host_vendor in
|
cannam@89
|
9715 sni)
|
cannam@89
|
9716 shlibpath_overrides_runpath=no
|
cannam@89
|
9717 need_lib_prefix=no
|
cannam@89
|
9718 runpath_var=LD_RUN_PATH
|
cannam@89
|
9719 ;;
|
cannam@89
|
9720 siemens)
|
cannam@89
|
9721 need_lib_prefix=no
|
cannam@89
|
9722 ;;
|
cannam@89
|
9723 motorola)
|
cannam@89
|
9724 need_lib_prefix=no
|
cannam@89
|
9725 need_version=no
|
cannam@89
|
9726 shlibpath_overrides_runpath=no
|
cannam@89
|
9727 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
|
cannam@89
|
9728 ;;
|
cannam@89
|
9729 esac
|
cannam@89
|
9730 ;;
|
cannam@89
|
9731
|
cannam@89
|
9732 sysv4*MP*)
|
cannam@89
|
9733 if test -d /usr/nec ;then
|
cannam@89
|
9734 version_type=linux
|
cannam@89
|
9735 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
|
cannam@89
|
9736 soname_spec='$libname${shared_ext}.$major'
|
cannam@89
|
9737 shlibpath_var=LD_LIBRARY_PATH
|
cannam@89
|
9738 fi
|
cannam@89
|
9739 ;;
|
cannam@89
|
9740
|
cannam@89
|
9741 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
cannam@89
|
9742 version_type=freebsd-elf
|
cannam@89
|
9743 need_lib_prefix=no
|
cannam@89
|
9744 need_version=no
|
cannam@89
|
9745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
cannam@89
|
9746 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@89
|
9747 shlibpath_var=LD_LIBRARY_PATH
|
cannam@89
|
9748 shlibpath_overrides_runpath=yes
|
cannam@89
|
9749 hardcode_into_libs=yes
|
cannam@89
|
9750 if test "$with_gnu_ld" = yes; then
|
cannam@89
|
9751 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
|
cannam@89
|
9752 else
|
cannam@89
|
9753 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
|
cannam@89
|
9754 case $host_os in
|
cannam@89
|
9755 sco3.2v5*)
|
cannam@89
|
9756 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
|
cannam@89
|
9757 ;;
|
cannam@89
|
9758 esac
|
cannam@89
|
9759 fi
|
cannam@89
|
9760 sys_lib_dlsearch_path_spec='/usr/lib'
|
cannam@89
|
9761 ;;
|
cannam@89
|
9762
|
cannam@89
|
9763 tpf*)
|
cannam@89
|
9764 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
|
cannam@89
|
9765 version_type=linux
|
cannam@89
|
9766 need_lib_prefix=no
|
cannam@89
|
9767 need_version=no
|
cannam@89
|
9768 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@89
|
9769 shlibpath_var=LD_LIBRARY_PATH
|
cannam@89
|
9770 shlibpath_overrides_runpath=no
|
cannam@89
|
9771 hardcode_into_libs=yes
|
cannam@89
|
9772 ;;
|
cannam@89
|
9773
|
cannam@89
|
9774 uts4*)
|
cannam@89
|
9775 version_type=linux
|
cannam@89
|
9776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@89
|
9777 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@89
|
9778 shlibpath_var=LD_LIBRARY_PATH
|
cannam@89
|
9779 ;;
|
cannam@89
|
9780
|
cannam@89
|
9781 *)
|
cannam@89
|
9782 dynamic_linker=no
|
cannam@89
|
9783 ;;
|
cannam@89
|
9784 esac
|
cannam@89
|
9785 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
|
cannam@89
|
9786 echo "${ECHO_T}$dynamic_linker" >&6; }
|
cannam@89
|
9787 test "$dynamic_linker" = no && can_build_shared=no
|
cannam@89
|
9788
|
cannam@89
|
9789 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
cannam@89
|
9790 if test "$GCC" = yes; then
|
cannam@89
|
9791 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
cannam@89
|
9792 fi
|
cannam@89
|
9793
|
cannam@89
|
9794 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
|
cannam@89
|
9795 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
|
cannam@89
|
9796 fi
|
cannam@89
|
9797 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
|
cannam@89
|
9798 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
|
cannam@89
|
9799 fi
|
cannam@89
|
9800
|
cannam@89
|
9801
|
cannam@89
|
9802
|
cannam@89
|
9803
|
cannam@89
|
9804
|
cannam@89
|
9805
|
cannam@89
|
9806
|
cannam@89
|
9807
|
cannam@89
|
9808
|
cannam@89
|
9809
|
cannam@89
|
9810
|
cannam@89
|
9811
|
cannam@89
|
9812
|
cannam@89
|
9813
|
cannam@89
|
9814
|
cannam@89
|
9815
|
cannam@89
|
9816
|
cannam@89
|
9817
|
cannam@89
|
9818
|
cannam@89
|
9819
|
cannam@89
|
9820
|
cannam@89
|
9821
|
cannam@89
|
9822
|
cannam@89
|
9823
|
cannam@89
|
9824
|
cannam@89
|
9825
|
cannam@89
|
9826
|
cannam@89
|
9827
|
cannam@89
|
9828
|
cannam@89
|
9829
|
cannam@89
|
9830
|
cannam@89
|
9831
|
cannam@89
|
9832
|
cannam@89
|
9833
|
cannam@89
|
9834
|
cannam@89
|
9835
|
cannam@89
|
9836
|
cannam@89
|
9837
|
cannam@89
|
9838
|
cannam@89
|
9839
|
cannam@89
|
9840
|
cannam@89
|
9841
|
cannam@89
|
9842
|
cannam@89
|
9843
|
cannam@89
|
9844
|
cannam@89
|
9845
|
cannam@89
|
9846
|
cannam@89
|
9847
|
cannam@89
|
9848
|
cannam@89
|
9849
|
cannam@89
|
9850
|
cannam@89
|
9851
|
cannam@89
|
9852
|
cannam@89
|
9853
|
cannam@89
|
9854
|
cannam@89
|
9855
|
cannam@89
|
9856
|
cannam@89
|
9857
|
cannam@89
|
9858
|
cannam@89
|
9859
|
cannam@89
|
9860
|
cannam@89
|
9861
|
cannam@89
|
9862
|
cannam@89
|
9863
|
cannam@89
|
9864
|
cannam@89
|
9865
|
cannam@89
|
9866
|
cannam@89
|
9867
|
cannam@89
|
9868
|
cannam@89
|
9869
|
cannam@89
|
9870
|
cannam@89
|
9871
|
cannam@89
|
9872
|
cannam@89
|
9873
|
cannam@89
|
9874
|
cannam@89
|
9875
|
cannam@89
|
9876
|
cannam@89
|
9877
|
cannam@89
|
9878
|
cannam@89
|
9879
|
cannam@89
|
9880
|
cannam@89
|
9881
|
cannam@89
|
9882
|
cannam@89
|
9883
|
cannam@89
|
9884
|
cannam@89
|
9885
|
cannam@89
|
9886
|
cannam@89
|
9887 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
|
cannam@89
|
9888 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
|
cannam@89
|
9889 hardcode_action=
|
cannam@89
|
9890 if test -n "$hardcode_libdir_flag_spec" ||
|
cannam@89
|
9891 test -n "$runpath_var" ||
|
cannam@89
|
9892 test "X$hardcode_automatic" = "Xyes" ; then
|
cannam@89
|
9893
|
cannam@89
|
9894 # We can hardcode non-existent directories.
|
cannam@89
|
9895 if test "$hardcode_direct" != no &&
|
cannam@89
|
9896 # If the only mechanism to avoid hardcoding is shlibpath_var, we
|
cannam@89
|
9897 # have to relink, otherwise we might link with an installed library
|
cannam@89
|
9898 # when we should be linking with a yet-to-be-installed one
|
cannam@89
|
9899 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
|
cannam@89
|
9900 test "$hardcode_minus_L" != no; then
|
cannam@89
|
9901 # Linking always hardcodes the temporary library directory.
|
cannam@89
|
9902 hardcode_action=relink
|
cannam@89
|
9903 else
|
cannam@89
|
9904 # We can link without hardcoding, and we can hardcode nonexisting dirs.
|
cannam@89
|
9905 hardcode_action=immediate
|
cannam@89
|
9906 fi
|
cannam@89
|
9907 else
|
cannam@89
|
9908 # We cannot hardcode anything, or else we can only hardcode existing
|
cannam@89
|
9909 # directories.
|
cannam@89
|
9910 hardcode_action=unsupported
|
cannam@89
|
9911 fi
|
cannam@89
|
9912 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
|
cannam@89
|
9913 echo "${ECHO_T}$hardcode_action" >&6; }
|
cannam@89
|
9914
|
cannam@89
|
9915 if test "$hardcode_action" = relink ||
|
cannam@89
|
9916 test "$inherit_rpath" = yes; then
|
cannam@89
|
9917 # Fast installation is not supported
|
cannam@89
|
9918 enable_fast_install=no
|
cannam@89
|
9919 elif test "$shlibpath_overrides_runpath" = yes ||
|
cannam@89
|
9920 test "$enable_shared" = no; then
|
cannam@89
|
9921 # Fast installation is not necessary
|
cannam@89
|
9922 enable_fast_install=needless
|
cannam@89
|
9923 fi
|
cannam@89
|
9924
|
cannam@89
|
9925
|
cannam@89
|
9926
|
cannam@89
|
9927
|
cannam@89
|
9928
|
cannam@89
|
9929
|
cannam@89
|
9930 if test "x$enable_dlopen" != xyes; then
|
cannam@89
|
9931 enable_dlopen=unknown
|
cannam@89
|
9932 enable_dlopen_self=unknown
|
cannam@89
|
9933 enable_dlopen_self_static=unknown
|
cannam@89
|
9934 else
|
cannam@89
|
9935 lt_cv_dlopen=no
|
cannam@89
|
9936 lt_cv_dlopen_libs=
|
cannam@89
|
9937
|
cannam@89
|
9938 case $host_os in
|
cannam@89
|
9939 beos*)
|
cannam@89
|
9940 lt_cv_dlopen="load_add_on"
|
cannam@89
|
9941 lt_cv_dlopen_libs=
|
cannam@89
|
9942 lt_cv_dlopen_self=yes
|
cannam@89
|
9943 ;;
|
cannam@89
|
9944
|
cannam@89
|
9945 mingw* | pw32*)
|
cannam@89
|
9946 lt_cv_dlopen="LoadLibrary"
|
cannam@89
|
9947 lt_cv_dlopen_libs=
|
cannam@89
|
9948 ;;
|
cannam@89
|
9949
|
cannam@89
|
9950 cygwin*)
|
cannam@89
|
9951 lt_cv_dlopen="dlopen"
|
cannam@89
|
9952 lt_cv_dlopen_libs=
|
cannam@89
|
9953 ;;
|
cannam@89
|
9954
|
cannam@89
|
9955 darwin*)
|
cannam@89
|
9956 # if libdl is installed we need to link against it
|
cannam@89
|
9957 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
|
cannam@89
|
9958 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
|
cannam@89
|
9959 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
|
cannam@89
|
9960 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
9961 else
|
cannam@89
|
9962 ac_check_lib_save_LIBS=$LIBS
|
cannam@89
|
9963 LIBS="-ldl $LIBS"
|
cannam@89
|
9964 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
9965 /* confdefs.h. */
|
cannam@89
|
9966 _ACEOF
|
cannam@89
|
9967 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
9968 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
9969 /* end confdefs.h. */
|
cannam@89
|
9970
|
cannam@89
|
9971 /* Override any GCC internal prototype to avoid an error.
|
cannam@89
|
9972 Use char because int might match the return type of a GCC
|
cannam@89
|
9973 builtin and then its argument prototype would still apply. */
|
cannam@89
|
9974 #ifdef __cplusplus
|
cannam@89
|
9975 extern "C"
|
cannam@89
|
9976 #endif
|
cannam@89
|
9977 char dlopen ();
|
cannam@89
|
9978 int
|
cannam@89
|
9979 main ()
|
cannam@89
|
9980 {
|
cannam@89
|
9981 return dlopen ();
|
cannam@89
|
9982 ;
|
cannam@89
|
9983 return 0;
|
cannam@89
|
9984 }
|
cannam@89
|
9985 _ACEOF
|
cannam@89
|
9986 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@89
|
9987 if { (ac_try="$ac_link"
|
cannam@89
|
9988 case "(($ac_try" in
|
cannam@89
|
9989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
9990 *) ac_try_echo=$ac_try;;
|
cannam@89
|
9991 esac
|
cannam@89
|
9992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
9993 (eval "$ac_link") 2>conftest.er1
|
cannam@89
|
9994 ac_status=$?
|
cannam@89
|
9995 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@89
|
9996 rm -f conftest.er1
|
cannam@89
|
9997 cat conftest.err >&5
|
cannam@89
|
9998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
9999 (exit $ac_status); } && {
|
cannam@89
|
10000 test -z "$ac_c_werror_flag" ||
|
cannam@89
|
10001 test ! -s conftest.err
|
cannam@89
|
10002 } && test -s conftest$ac_exeext &&
|
cannam@89
|
10003 $as_test_x conftest$ac_exeext; then
|
cannam@89
|
10004 ac_cv_lib_dl_dlopen=yes
|
cannam@89
|
10005 else
|
cannam@89
|
10006 echo "$as_me: failed program was:" >&5
|
cannam@89
|
10007 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@89
|
10008
|
cannam@89
|
10009 ac_cv_lib_dl_dlopen=no
|
cannam@89
|
10010 fi
|
cannam@89
|
10011
|
cannam@89
|
10012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
cannam@89
|
10013 conftest$ac_exeext conftest.$ac_ext
|
cannam@89
|
10014 LIBS=$ac_check_lib_save_LIBS
|
cannam@89
|
10015 fi
|
cannam@89
|
10016 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
|
cannam@89
|
10017 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
|
cannam@89
|
10018 if test $ac_cv_lib_dl_dlopen = yes; then
|
cannam@89
|
10019 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
|
cannam@89
|
10020 else
|
cannam@89
|
10021
|
cannam@89
|
10022 lt_cv_dlopen="dyld"
|
cannam@89
|
10023 lt_cv_dlopen_libs=
|
cannam@89
|
10024 lt_cv_dlopen_self=yes
|
cannam@89
|
10025
|
cannam@89
|
10026 fi
|
cannam@89
|
10027
|
cannam@89
|
10028 ;;
|
cannam@89
|
10029
|
cannam@89
|
10030 *)
|
cannam@89
|
10031 { echo "$as_me:$LINENO: checking for shl_load" >&5
|
cannam@89
|
10032 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
|
cannam@89
|
10033 if test "${ac_cv_func_shl_load+set}" = set; then
|
cannam@89
|
10034 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
10035 else
|
cannam@89
|
10036 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
10037 /* confdefs.h. */
|
cannam@89
|
10038 _ACEOF
|
cannam@89
|
10039 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
10040 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
10041 /* end confdefs.h. */
|
cannam@89
|
10042 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
|
cannam@89
|
10043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
cannam@89
|
10044 #define shl_load innocuous_shl_load
|
cannam@89
|
10045
|
cannam@89
|
10046 /* System header to define __stub macros and hopefully few prototypes,
|
cannam@89
|
10047 which can conflict with char shl_load (); below.
|
cannam@89
|
10048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
cannam@89
|
10049 <limits.h> exists even on freestanding compilers. */
|
cannam@89
|
10050
|
cannam@89
|
10051 #ifdef __STDC__
|
cannam@89
|
10052 # include <limits.h>
|
cannam@89
|
10053 #else
|
cannam@89
|
10054 # include <assert.h>
|
cannam@89
|
10055 #endif
|
cannam@89
|
10056
|
cannam@89
|
10057 #undef shl_load
|
cannam@89
|
10058
|
cannam@89
|
10059 /* Override any GCC internal prototype to avoid an error.
|
cannam@89
|
10060 Use char because int might match the return type of a GCC
|
cannam@89
|
10061 builtin and then its argument prototype would still apply. */
|
cannam@89
|
10062 #ifdef __cplusplus
|
cannam@89
|
10063 extern "C"
|
cannam@89
|
10064 #endif
|
cannam@89
|
10065 char shl_load ();
|
cannam@89
|
10066 /* The GNU C library defines this for functions which it implements
|
cannam@89
|
10067 to always fail with ENOSYS. Some functions are actually named
|
cannam@89
|
10068 something starting with __ and the normal name is an alias. */
|
cannam@89
|
10069 #if defined __stub_shl_load || defined __stub___shl_load
|
cannam@89
|
10070 choke me
|
cannam@89
|
10071 #endif
|
cannam@89
|
10072
|
cannam@89
|
10073 int
|
cannam@89
|
10074 main ()
|
cannam@89
|
10075 {
|
cannam@89
|
10076 return shl_load ();
|
cannam@89
|
10077 ;
|
cannam@89
|
10078 return 0;
|
cannam@89
|
10079 }
|
cannam@89
|
10080 _ACEOF
|
cannam@89
|
10081 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@89
|
10082 if { (ac_try="$ac_link"
|
cannam@89
|
10083 case "(($ac_try" in
|
cannam@89
|
10084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
10085 *) ac_try_echo=$ac_try;;
|
cannam@89
|
10086 esac
|
cannam@89
|
10087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
10088 (eval "$ac_link") 2>conftest.er1
|
cannam@89
|
10089 ac_status=$?
|
cannam@89
|
10090 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@89
|
10091 rm -f conftest.er1
|
cannam@89
|
10092 cat conftest.err >&5
|
cannam@89
|
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
10094 (exit $ac_status); } && {
|
cannam@89
|
10095 test -z "$ac_c_werror_flag" ||
|
cannam@89
|
10096 test ! -s conftest.err
|
cannam@89
|
10097 } && test -s conftest$ac_exeext &&
|
cannam@89
|
10098 $as_test_x conftest$ac_exeext; then
|
cannam@89
|
10099 ac_cv_func_shl_load=yes
|
cannam@89
|
10100 else
|
cannam@89
|
10101 echo "$as_me: failed program was:" >&5
|
cannam@89
|
10102 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@89
|
10103
|
cannam@89
|
10104 ac_cv_func_shl_load=no
|
cannam@89
|
10105 fi
|
cannam@89
|
10106
|
cannam@89
|
10107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
cannam@89
|
10108 conftest$ac_exeext conftest.$ac_ext
|
cannam@89
|
10109 fi
|
cannam@89
|
10110 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
|
cannam@89
|
10111 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
|
cannam@89
|
10112 if test $ac_cv_func_shl_load = yes; then
|
cannam@89
|
10113 lt_cv_dlopen="shl_load"
|
cannam@89
|
10114 else
|
cannam@89
|
10115 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
|
cannam@89
|
10116 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
|
cannam@89
|
10117 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
|
cannam@89
|
10118 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
10119 else
|
cannam@89
|
10120 ac_check_lib_save_LIBS=$LIBS
|
cannam@89
|
10121 LIBS="-ldld $LIBS"
|
cannam@89
|
10122 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
10123 /* confdefs.h. */
|
cannam@89
|
10124 _ACEOF
|
cannam@89
|
10125 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
10126 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
10127 /* end confdefs.h. */
|
cannam@89
|
10128
|
cannam@89
|
10129 /* Override any GCC internal prototype to avoid an error.
|
cannam@89
|
10130 Use char because int might match the return type of a GCC
|
cannam@89
|
10131 builtin and then its argument prototype would still apply. */
|
cannam@89
|
10132 #ifdef __cplusplus
|
cannam@89
|
10133 extern "C"
|
cannam@89
|
10134 #endif
|
cannam@89
|
10135 char shl_load ();
|
cannam@89
|
10136 int
|
cannam@89
|
10137 main ()
|
cannam@89
|
10138 {
|
cannam@89
|
10139 return shl_load ();
|
cannam@89
|
10140 ;
|
cannam@89
|
10141 return 0;
|
cannam@89
|
10142 }
|
cannam@89
|
10143 _ACEOF
|
cannam@89
|
10144 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@89
|
10145 if { (ac_try="$ac_link"
|
cannam@89
|
10146 case "(($ac_try" in
|
cannam@89
|
10147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
10148 *) ac_try_echo=$ac_try;;
|
cannam@89
|
10149 esac
|
cannam@89
|
10150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
10151 (eval "$ac_link") 2>conftest.er1
|
cannam@89
|
10152 ac_status=$?
|
cannam@89
|
10153 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@89
|
10154 rm -f conftest.er1
|
cannam@89
|
10155 cat conftest.err >&5
|
cannam@89
|
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
10157 (exit $ac_status); } && {
|
cannam@89
|
10158 test -z "$ac_c_werror_flag" ||
|
cannam@89
|
10159 test ! -s conftest.err
|
cannam@89
|
10160 } && test -s conftest$ac_exeext &&
|
cannam@89
|
10161 $as_test_x conftest$ac_exeext; then
|
cannam@89
|
10162 ac_cv_lib_dld_shl_load=yes
|
cannam@89
|
10163 else
|
cannam@89
|
10164 echo "$as_me: failed program was:" >&5
|
cannam@89
|
10165 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@89
|
10166
|
cannam@89
|
10167 ac_cv_lib_dld_shl_load=no
|
cannam@89
|
10168 fi
|
cannam@89
|
10169
|
cannam@89
|
10170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
cannam@89
|
10171 conftest$ac_exeext conftest.$ac_ext
|
cannam@89
|
10172 LIBS=$ac_check_lib_save_LIBS
|
cannam@89
|
10173 fi
|
cannam@89
|
10174 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
|
cannam@89
|
10175 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
|
cannam@89
|
10176 if test $ac_cv_lib_dld_shl_load = yes; then
|
cannam@89
|
10177 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
|
cannam@89
|
10178 else
|
cannam@89
|
10179 { echo "$as_me:$LINENO: checking for dlopen" >&5
|
cannam@89
|
10180 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
|
cannam@89
|
10181 if test "${ac_cv_func_dlopen+set}" = set; then
|
cannam@89
|
10182 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
10183 else
|
cannam@89
|
10184 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
10185 /* confdefs.h. */
|
cannam@89
|
10186 _ACEOF
|
cannam@89
|
10187 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
10188 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
10189 /* end confdefs.h. */
|
cannam@89
|
10190 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
|
cannam@89
|
10191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
cannam@89
|
10192 #define dlopen innocuous_dlopen
|
cannam@89
|
10193
|
cannam@89
|
10194 /* System header to define __stub macros and hopefully few prototypes,
|
cannam@89
|
10195 which can conflict with char dlopen (); below.
|
cannam@89
|
10196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
cannam@89
|
10197 <limits.h> exists even on freestanding compilers. */
|
cannam@89
|
10198
|
cannam@89
|
10199 #ifdef __STDC__
|
cannam@89
|
10200 # include <limits.h>
|
cannam@89
|
10201 #else
|
cannam@89
|
10202 # include <assert.h>
|
cannam@89
|
10203 #endif
|
cannam@89
|
10204
|
cannam@89
|
10205 #undef dlopen
|
cannam@89
|
10206
|
cannam@89
|
10207 /* Override any GCC internal prototype to avoid an error.
|
cannam@89
|
10208 Use char because int might match the return type of a GCC
|
cannam@89
|
10209 builtin and then its argument prototype would still apply. */
|
cannam@89
|
10210 #ifdef __cplusplus
|
cannam@89
|
10211 extern "C"
|
cannam@89
|
10212 #endif
|
cannam@89
|
10213 char dlopen ();
|
cannam@89
|
10214 /* The GNU C library defines this for functions which it implements
|
cannam@89
|
10215 to always fail with ENOSYS. Some functions are actually named
|
cannam@89
|
10216 something starting with __ and the normal name is an alias. */
|
cannam@89
|
10217 #if defined __stub_dlopen || defined __stub___dlopen
|
cannam@89
|
10218 choke me
|
cannam@89
|
10219 #endif
|
cannam@89
|
10220
|
cannam@89
|
10221 int
|
cannam@89
|
10222 main ()
|
cannam@89
|
10223 {
|
cannam@89
|
10224 return dlopen ();
|
cannam@89
|
10225 ;
|
cannam@89
|
10226 return 0;
|
cannam@89
|
10227 }
|
cannam@89
|
10228 _ACEOF
|
cannam@89
|
10229 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@89
|
10230 if { (ac_try="$ac_link"
|
cannam@89
|
10231 case "(($ac_try" in
|
cannam@89
|
10232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
10233 *) ac_try_echo=$ac_try;;
|
cannam@89
|
10234 esac
|
cannam@89
|
10235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
10236 (eval "$ac_link") 2>conftest.er1
|
cannam@89
|
10237 ac_status=$?
|
cannam@89
|
10238 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@89
|
10239 rm -f conftest.er1
|
cannam@89
|
10240 cat conftest.err >&5
|
cannam@89
|
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
10242 (exit $ac_status); } && {
|
cannam@89
|
10243 test -z "$ac_c_werror_flag" ||
|
cannam@89
|
10244 test ! -s conftest.err
|
cannam@89
|
10245 } && test -s conftest$ac_exeext &&
|
cannam@89
|
10246 $as_test_x conftest$ac_exeext; then
|
cannam@89
|
10247 ac_cv_func_dlopen=yes
|
cannam@89
|
10248 else
|
cannam@89
|
10249 echo "$as_me: failed program was:" >&5
|
cannam@89
|
10250 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@89
|
10251
|
cannam@89
|
10252 ac_cv_func_dlopen=no
|
cannam@89
|
10253 fi
|
cannam@89
|
10254
|
cannam@89
|
10255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
cannam@89
|
10256 conftest$ac_exeext conftest.$ac_ext
|
cannam@89
|
10257 fi
|
cannam@89
|
10258 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
|
cannam@89
|
10259 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
|
cannam@89
|
10260 if test $ac_cv_func_dlopen = yes; then
|
cannam@89
|
10261 lt_cv_dlopen="dlopen"
|
cannam@89
|
10262 else
|
cannam@89
|
10263 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
|
cannam@89
|
10264 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
|
cannam@89
|
10265 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
|
cannam@89
|
10266 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
10267 else
|
cannam@89
|
10268 ac_check_lib_save_LIBS=$LIBS
|
cannam@89
|
10269 LIBS="-ldl $LIBS"
|
cannam@89
|
10270 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
10271 /* confdefs.h. */
|
cannam@89
|
10272 _ACEOF
|
cannam@89
|
10273 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
10274 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
10275 /* end confdefs.h. */
|
cannam@89
|
10276
|
cannam@89
|
10277 /* Override any GCC internal prototype to avoid an error.
|
cannam@89
|
10278 Use char because int might match the return type of a GCC
|
cannam@89
|
10279 builtin and then its argument prototype would still apply. */
|
cannam@89
|
10280 #ifdef __cplusplus
|
cannam@89
|
10281 extern "C"
|
cannam@89
|
10282 #endif
|
cannam@89
|
10283 char dlopen ();
|
cannam@89
|
10284 int
|
cannam@89
|
10285 main ()
|
cannam@89
|
10286 {
|
cannam@89
|
10287 return dlopen ();
|
cannam@89
|
10288 ;
|
cannam@89
|
10289 return 0;
|
cannam@89
|
10290 }
|
cannam@89
|
10291 _ACEOF
|
cannam@89
|
10292 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@89
|
10293 if { (ac_try="$ac_link"
|
cannam@89
|
10294 case "(($ac_try" in
|
cannam@89
|
10295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
10296 *) ac_try_echo=$ac_try;;
|
cannam@89
|
10297 esac
|
cannam@89
|
10298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
10299 (eval "$ac_link") 2>conftest.er1
|
cannam@89
|
10300 ac_status=$?
|
cannam@89
|
10301 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@89
|
10302 rm -f conftest.er1
|
cannam@89
|
10303 cat conftest.err >&5
|
cannam@89
|
10304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
10305 (exit $ac_status); } && {
|
cannam@89
|
10306 test -z "$ac_c_werror_flag" ||
|
cannam@89
|
10307 test ! -s conftest.err
|
cannam@89
|
10308 } && test -s conftest$ac_exeext &&
|
cannam@89
|
10309 $as_test_x conftest$ac_exeext; then
|
cannam@89
|
10310 ac_cv_lib_dl_dlopen=yes
|
cannam@89
|
10311 else
|
cannam@89
|
10312 echo "$as_me: failed program was:" >&5
|
cannam@89
|
10313 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@89
|
10314
|
cannam@89
|
10315 ac_cv_lib_dl_dlopen=no
|
cannam@89
|
10316 fi
|
cannam@89
|
10317
|
cannam@89
|
10318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
cannam@89
|
10319 conftest$ac_exeext conftest.$ac_ext
|
cannam@89
|
10320 LIBS=$ac_check_lib_save_LIBS
|
cannam@89
|
10321 fi
|
cannam@89
|
10322 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
|
cannam@89
|
10323 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
|
cannam@89
|
10324 if test $ac_cv_lib_dl_dlopen = yes; then
|
cannam@89
|
10325 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
|
cannam@89
|
10326 else
|
cannam@89
|
10327 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
|
cannam@89
|
10328 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
|
cannam@89
|
10329 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
|
cannam@89
|
10330 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
10331 else
|
cannam@89
|
10332 ac_check_lib_save_LIBS=$LIBS
|
cannam@89
|
10333 LIBS="-lsvld $LIBS"
|
cannam@89
|
10334 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
10335 /* confdefs.h. */
|
cannam@89
|
10336 _ACEOF
|
cannam@89
|
10337 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
10338 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
10339 /* end confdefs.h. */
|
cannam@89
|
10340
|
cannam@89
|
10341 /* Override any GCC internal prototype to avoid an error.
|
cannam@89
|
10342 Use char because int might match the return type of a GCC
|
cannam@89
|
10343 builtin and then its argument prototype would still apply. */
|
cannam@89
|
10344 #ifdef __cplusplus
|
cannam@89
|
10345 extern "C"
|
cannam@89
|
10346 #endif
|
cannam@89
|
10347 char dlopen ();
|
cannam@89
|
10348 int
|
cannam@89
|
10349 main ()
|
cannam@89
|
10350 {
|
cannam@89
|
10351 return dlopen ();
|
cannam@89
|
10352 ;
|
cannam@89
|
10353 return 0;
|
cannam@89
|
10354 }
|
cannam@89
|
10355 _ACEOF
|
cannam@89
|
10356 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@89
|
10357 if { (ac_try="$ac_link"
|
cannam@89
|
10358 case "(($ac_try" in
|
cannam@89
|
10359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
10360 *) ac_try_echo=$ac_try;;
|
cannam@89
|
10361 esac
|
cannam@89
|
10362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
10363 (eval "$ac_link") 2>conftest.er1
|
cannam@89
|
10364 ac_status=$?
|
cannam@89
|
10365 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@89
|
10366 rm -f conftest.er1
|
cannam@89
|
10367 cat conftest.err >&5
|
cannam@89
|
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
10369 (exit $ac_status); } && {
|
cannam@89
|
10370 test -z "$ac_c_werror_flag" ||
|
cannam@89
|
10371 test ! -s conftest.err
|
cannam@89
|
10372 } && test -s conftest$ac_exeext &&
|
cannam@89
|
10373 $as_test_x conftest$ac_exeext; then
|
cannam@89
|
10374 ac_cv_lib_svld_dlopen=yes
|
cannam@89
|
10375 else
|
cannam@89
|
10376 echo "$as_me: failed program was:" >&5
|
cannam@89
|
10377 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@89
|
10378
|
cannam@89
|
10379 ac_cv_lib_svld_dlopen=no
|
cannam@89
|
10380 fi
|
cannam@89
|
10381
|
cannam@89
|
10382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
cannam@89
|
10383 conftest$ac_exeext conftest.$ac_ext
|
cannam@89
|
10384 LIBS=$ac_check_lib_save_LIBS
|
cannam@89
|
10385 fi
|
cannam@89
|
10386 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
|
cannam@89
|
10387 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
|
cannam@89
|
10388 if test $ac_cv_lib_svld_dlopen = yes; then
|
cannam@89
|
10389 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
|
cannam@89
|
10390 else
|
cannam@89
|
10391 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
|
cannam@89
|
10392 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
|
cannam@89
|
10393 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
|
cannam@89
|
10394 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
10395 else
|
cannam@89
|
10396 ac_check_lib_save_LIBS=$LIBS
|
cannam@89
|
10397 LIBS="-ldld $LIBS"
|
cannam@89
|
10398 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
10399 /* confdefs.h. */
|
cannam@89
|
10400 _ACEOF
|
cannam@89
|
10401 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
10402 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
10403 /* end confdefs.h. */
|
cannam@89
|
10404
|
cannam@89
|
10405 /* Override any GCC internal prototype to avoid an error.
|
cannam@89
|
10406 Use char because int might match the return type of a GCC
|
cannam@89
|
10407 builtin and then its argument prototype would still apply. */
|
cannam@89
|
10408 #ifdef __cplusplus
|
cannam@89
|
10409 extern "C"
|
cannam@89
|
10410 #endif
|
cannam@89
|
10411 char dld_link ();
|
cannam@89
|
10412 int
|
cannam@89
|
10413 main ()
|
cannam@89
|
10414 {
|
cannam@89
|
10415 return dld_link ();
|
cannam@89
|
10416 ;
|
cannam@89
|
10417 return 0;
|
cannam@89
|
10418 }
|
cannam@89
|
10419 _ACEOF
|
cannam@89
|
10420 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@89
|
10421 if { (ac_try="$ac_link"
|
cannam@89
|
10422 case "(($ac_try" in
|
cannam@89
|
10423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
10424 *) ac_try_echo=$ac_try;;
|
cannam@89
|
10425 esac
|
cannam@89
|
10426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
10427 (eval "$ac_link") 2>conftest.er1
|
cannam@89
|
10428 ac_status=$?
|
cannam@89
|
10429 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@89
|
10430 rm -f conftest.er1
|
cannam@89
|
10431 cat conftest.err >&5
|
cannam@89
|
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
10433 (exit $ac_status); } && {
|
cannam@89
|
10434 test -z "$ac_c_werror_flag" ||
|
cannam@89
|
10435 test ! -s conftest.err
|
cannam@89
|
10436 } && test -s conftest$ac_exeext &&
|
cannam@89
|
10437 $as_test_x conftest$ac_exeext; then
|
cannam@89
|
10438 ac_cv_lib_dld_dld_link=yes
|
cannam@89
|
10439 else
|
cannam@89
|
10440 echo "$as_me: failed program was:" >&5
|
cannam@89
|
10441 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@89
|
10442
|
cannam@89
|
10443 ac_cv_lib_dld_dld_link=no
|
cannam@89
|
10444 fi
|
cannam@89
|
10445
|
cannam@89
|
10446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
cannam@89
|
10447 conftest$ac_exeext conftest.$ac_ext
|
cannam@89
|
10448 LIBS=$ac_check_lib_save_LIBS
|
cannam@89
|
10449 fi
|
cannam@89
|
10450 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
|
cannam@89
|
10451 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
|
cannam@89
|
10452 if test $ac_cv_lib_dld_dld_link = yes; then
|
cannam@89
|
10453 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
|
cannam@89
|
10454 fi
|
cannam@89
|
10455
|
cannam@89
|
10456
|
cannam@89
|
10457 fi
|
cannam@89
|
10458
|
cannam@89
|
10459
|
cannam@89
|
10460 fi
|
cannam@89
|
10461
|
cannam@89
|
10462
|
cannam@89
|
10463 fi
|
cannam@89
|
10464
|
cannam@89
|
10465
|
cannam@89
|
10466 fi
|
cannam@89
|
10467
|
cannam@89
|
10468
|
cannam@89
|
10469 fi
|
cannam@89
|
10470
|
cannam@89
|
10471 ;;
|
cannam@89
|
10472 esac
|
cannam@89
|
10473
|
cannam@89
|
10474 if test "x$lt_cv_dlopen" != xno; then
|
cannam@89
|
10475 enable_dlopen=yes
|
cannam@89
|
10476 else
|
cannam@89
|
10477 enable_dlopen=no
|
cannam@89
|
10478 fi
|
cannam@89
|
10479
|
cannam@89
|
10480 case $lt_cv_dlopen in
|
cannam@89
|
10481 dlopen)
|
cannam@89
|
10482 save_CPPFLAGS="$CPPFLAGS"
|
cannam@89
|
10483 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
|
cannam@89
|
10484
|
cannam@89
|
10485 save_LDFLAGS="$LDFLAGS"
|
cannam@89
|
10486 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
|
cannam@89
|
10487
|
cannam@89
|
10488 save_LIBS="$LIBS"
|
cannam@89
|
10489 LIBS="$lt_cv_dlopen_libs $LIBS"
|
cannam@89
|
10490
|
cannam@89
|
10491 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
|
cannam@89
|
10492 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
|
cannam@89
|
10493 if test "${lt_cv_dlopen_self+set}" = set; then
|
cannam@89
|
10494 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
10495 else
|
cannam@89
|
10496 if test "$cross_compiling" = yes; then :
|
cannam@89
|
10497 lt_cv_dlopen_self=cross
|
cannam@89
|
10498 else
|
cannam@89
|
10499 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
cannam@89
|
10500 lt_status=$lt_dlunknown
|
cannam@89
|
10501 cat > conftest.$ac_ext <<_LT_EOF
|
cannam@89
|
10502 #line 10502 "configure"
|
cannam@89
|
10503 #include "confdefs.h"
|
cannam@89
|
10504
|
cannam@89
|
10505 #if HAVE_DLFCN_H
|
cannam@89
|
10506 #include <dlfcn.h>
|
cannam@89
|
10507 #endif
|
cannam@89
|
10508
|
cannam@89
|
10509 #include <stdio.h>
|
cannam@89
|
10510
|
cannam@89
|
10511 #ifdef RTLD_GLOBAL
|
cannam@89
|
10512 # define LT_DLGLOBAL RTLD_GLOBAL
|
cannam@89
|
10513 #else
|
cannam@89
|
10514 # ifdef DL_GLOBAL
|
cannam@89
|
10515 # define LT_DLGLOBAL DL_GLOBAL
|
cannam@89
|
10516 # else
|
cannam@89
|
10517 # define LT_DLGLOBAL 0
|
cannam@89
|
10518 # endif
|
cannam@89
|
10519 #endif
|
cannam@89
|
10520
|
cannam@89
|
10521 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
|
cannam@89
|
10522 find out it does not work in some platform. */
|
cannam@89
|
10523 #ifndef LT_DLLAZY_OR_NOW
|
cannam@89
|
10524 # ifdef RTLD_LAZY
|
cannam@89
|
10525 # define LT_DLLAZY_OR_NOW RTLD_LAZY
|
cannam@89
|
10526 # else
|
cannam@89
|
10527 # ifdef DL_LAZY
|
cannam@89
|
10528 # define LT_DLLAZY_OR_NOW DL_LAZY
|
cannam@89
|
10529 # else
|
cannam@89
|
10530 # ifdef RTLD_NOW
|
cannam@89
|
10531 # define LT_DLLAZY_OR_NOW RTLD_NOW
|
cannam@89
|
10532 # else
|
cannam@89
|
10533 # ifdef DL_NOW
|
cannam@89
|
10534 # define LT_DLLAZY_OR_NOW DL_NOW
|
cannam@89
|
10535 # else
|
cannam@89
|
10536 # define LT_DLLAZY_OR_NOW 0
|
cannam@89
|
10537 # endif
|
cannam@89
|
10538 # endif
|
cannam@89
|
10539 # endif
|
cannam@89
|
10540 # endif
|
cannam@89
|
10541 #endif
|
cannam@89
|
10542
|
cannam@89
|
10543 #ifdef __cplusplus
|
cannam@89
|
10544 extern "C" void exit (int);
|
cannam@89
|
10545 #endif
|
cannam@89
|
10546
|
cannam@89
|
10547 void fnord() { int i=42;}
|
cannam@89
|
10548 int main ()
|
cannam@89
|
10549 {
|
cannam@89
|
10550 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
cannam@89
|
10551 int status = $lt_dlunknown;
|
cannam@89
|
10552
|
cannam@89
|
10553 if (self)
|
cannam@89
|
10554 {
|
cannam@89
|
10555 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
cannam@89
|
10556 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
cannam@89
|
10557 /* dlclose (self); */
|
cannam@89
|
10558 }
|
cannam@89
|
10559 else
|
cannam@89
|
10560 puts (dlerror ());
|
cannam@89
|
10561
|
cannam@89
|
10562 exit (status);
|
cannam@89
|
10563 }
|
cannam@89
|
10564 _LT_EOF
|
cannam@89
|
10565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@89
|
10566 (eval $ac_link) 2>&5
|
cannam@89
|
10567 ac_status=$?
|
cannam@89
|
10568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
10569 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
|
cannam@89
|
10570 (./conftest; exit; ) >&5 2>/dev/null
|
cannam@89
|
10571 lt_status=$?
|
cannam@89
|
10572 case x$lt_status in
|
cannam@89
|
10573 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
|
cannam@89
|
10574 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
|
cannam@89
|
10575 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
|
cannam@89
|
10576 esac
|
cannam@89
|
10577 else :
|
cannam@89
|
10578 # compilation failed
|
cannam@89
|
10579 lt_cv_dlopen_self=no
|
cannam@89
|
10580 fi
|
cannam@89
|
10581 fi
|
cannam@89
|
10582 rm -fr conftest*
|
cannam@89
|
10583
|
cannam@89
|
10584
|
cannam@89
|
10585 fi
|
cannam@89
|
10586 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
|
cannam@89
|
10587 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
|
cannam@89
|
10588
|
cannam@89
|
10589 if test "x$lt_cv_dlopen_self" = xyes; then
|
cannam@89
|
10590 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
|
cannam@89
|
10591 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
|
cannam@89
|
10592 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
|
cannam@89
|
10593 if test "${lt_cv_dlopen_self_static+set}" = set; then
|
cannam@89
|
10594 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
10595 else
|
cannam@89
|
10596 if test "$cross_compiling" = yes; then :
|
cannam@89
|
10597 lt_cv_dlopen_self_static=cross
|
cannam@89
|
10598 else
|
cannam@89
|
10599 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
cannam@89
|
10600 lt_status=$lt_dlunknown
|
cannam@89
|
10601 cat > conftest.$ac_ext <<_LT_EOF
|
cannam@89
|
10602 #line 10602 "configure"
|
cannam@89
|
10603 #include "confdefs.h"
|
cannam@89
|
10604
|
cannam@89
|
10605 #if HAVE_DLFCN_H
|
cannam@89
|
10606 #include <dlfcn.h>
|
cannam@89
|
10607 #endif
|
cannam@89
|
10608
|
cannam@89
|
10609 #include <stdio.h>
|
cannam@89
|
10610
|
cannam@89
|
10611 #ifdef RTLD_GLOBAL
|
cannam@89
|
10612 # define LT_DLGLOBAL RTLD_GLOBAL
|
cannam@89
|
10613 #else
|
cannam@89
|
10614 # ifdef DL_GLOBAL
|
cannam@89
|
10615 # define LT_DLGLOBAL DL_GLOBAL
|
cannam@89
|
10616 # else
|
cannam@89
|
10617 # define LT_DLGLOBAL 0
|
cannam@89
|
10618 # endif
|
cannam@89
|
10619 #endif
|
cannam@89
|
10620
|
cannam@89
|
10621 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
|
cannam@89
|
10622 find out it does not work in some platform. */
|
cannam@89
|
10623 #ifndef LT_DLLAZY_OR_NOW
|
cannam@89
|
10624 # ifdef RTLD_LAZY
|
cannam@89
|
10625 # define LT_DLLAZY_OR_NOW RTLD_LAZY
|
cannam@89
|
10626 # else
|
cannam@89
|
10627 # ifdef DL_LAZY
|
cannam@89
|
10628 # define LT_DLLAZY_OR_NOW DL_LAZY
|
cannam@89
|
10629 # else
|
cannam@89
|
10630 # ifdef RTLD_NOW
|
cannam@89
|
10631 # define LT_DLLAZY_OR_NOW RTLD_NOW
|
cannam@89
|
10632 # else
|
cannam@89
|
10633 # ifdef DL_NOW
|
cannam@89
|
10634 # define LT_DLLAZY_OR_NOW DL_NOW
|
cannam@89
|
10635 # else
|
cannam@89
|
10636 # define LT_DLLAZY_OR_NOW 0
|
cannam@89
|
10637 # endif
|
cannam@89
|
10638 # endif
|
cannam@89
|
10639 # endif
|
cannam@89
|
10640 # endif
|
cannam@89
|
10641 #endif
|
cannam@89
|
10642
|
cannam@89
|
10643 #ifdef __cplusplus
|
cannam@89
|
10644 extern "C" void exit (int);
|
cannam@89
|
10645 #endif
|
cannam@89
|
10646
|
cannam@89
|
10647 void fnord() { int i=42;}
|
cannam@89
|
10648 int main ()
|
cannam@89
|
10649 {
|
cannam@89
|
10650 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
cannam@89
|
10651 int status = $lt_dlunknown;
|
cannam@89
|
10652
|
cannam@89
|
10653 if (self)
|
cannam@89
|
10654 {
|
cannam@89
|
10655 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
cannam@89
|
10656 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
cannam@89
|
10657 /* dlclose (self); */
|
cannam@89
|
10658 }
|
cannam@89
|
10659 else
|
cannam@89
|
10660 puts (dlerror ());
|
cannam@89
|
10661
|
cannam@89
|
10662 exit (status);
|
cannam@89
|
10663 }
|
cannam@89
|
10664 _LT_EOF
|
cannam@89
|
10665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@89
|
10666 (eval $ac_link) 2>&5
|
cannam@89
|
10667 ac_status=$?
|
cannam@89
|
10668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
10669 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
|
cannam@89
|
10670 (./conftest; exit; ) >&5 2>/dev/null
|
cannam@89
|
10671 lt_status=$?
|
cannam@89
|
10672 case x$lt_status in
|
cannam@89
|
10673 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
|
cannam@89
|
10674 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
|
cannam@89
|
10675 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
|
cannam@89
|
10676 esac
|
cannam@89
|
10677 else :
|
cannam@89
|
10678 # compilation failed
|
cannam@89
|
10679 lt_cv_dlopen_self_static=no
|
cannam@89
|
10680 fi
|
cannam@89
|
10681 fi
|
cannam@89
|
10682 rm -fr conftest*
|
cannam@89
|
10683
|
cannam@89
|
10684
|
cannam@89
|
10685 fi
|
cannam@89
|
10686 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
|
cannam@89
|
10687 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
|
cannam@89
|
10688 fi
|
cannam@89
|
10689
|
cannam@89
|
10690 CPPFLAGS="$save_CPPFLAGS"
|
cannam@89
|
10691 LDFLAGS="$save_LDFLAGS"
|
cannam@89
|
10692 LIBS="$save_LIBS"
|
cannam@89
|
10693 ;;
|
cannam@89
|
10694 esac
|
cannam@89
|
10695
|
cannam@89
|
10696 case $lt_cv_dlopen_self in
|
cannam@89
|
10697 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
|
cannam@89
|
10698 *) enable_dlopen_self=unknown ;;
|
cannam@89
|
10699 esac
|
cannam@89
|
10700
|
cannam@89
|
10701 case $lt_cv_dlopen_self_static in
|
cannam@89
|
10702 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
|
cannam@89
|
10703 *) enable_dlopen_self_static=unknown ;;
|
cannam@89
|
10704 esac
|
cannam@89
|
10705 fi
|
cannam@89
|
10706
|
cannam@89
|
10707
|
cannam@89
|
10708
|
cannam@89
|
10709
|
cannam@89
|
10710
|
cannam@89
|
10711
|
cannam@89
|
10712
|
cannam@89
|
10713
|
cannam@89
|
10714
|
cannam@89
|
10715
|
cannam@89
|
10716
|
cannam@89
|
10717
|
cannam@89
|
10718
|
cannam@89
|
10719
|
cannam@89
|
10720
|
cannam@89
|
10721
|
cannam@89
|
10722
|
cannam@89
|
10723 striplib=
|
cannam@89
|
10724 old_striplib=
|
cannam@89
|
10725 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
|
cannam@89
|
10726 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
|
cannam@89
|
10727 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
|
cannam@89
|
10728 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
|
cannam@89
|
10729 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
|
cannam@89
|
10730 { echo "$as_me:$LINENO: result: yes" >&5
|
cannam@89
|
10731 echo "${ECHO_T}yes" >&6; }
|
cannam@89
|
10732 else
|
cannam@89
|
10733 # FIXME - insert some real tests, host_os isn't really good enough
|
cannam@89
|
10734 case $host_os in
|
cannam@89
|
10735 darwin*)
|
cannam@89
|
10736 if test -n "$STRIP" ; then
|
cannam@89
|
10737 striplib="$STRIP -x"
|
cannam@89
|
10738 old_striplib="$STRIP -S"
|
cannam@89
|
10739 { echo "$as_me:$LINENO: result: yes" >&5
|
cannam@89
|
10740 echo "${ECHO_T}yes" >&6; }
|
cannam@89
|
10741 else
|
cannam@89
|
10742 { echo "$as_me:$LINENO: result: no" >&5
|
cannam@89
|
10743 echo "${ECHO_T}no" >&6; }
|
cannam@89
|
10744 fi
|
cannam@89
|
10745 ;;
|
cannam@89
|
10746 *)
|
cannam@89
|
10747 { echo "$as_me:$LINENO: result: no" >&5
|
cannam@89
|
10748 echo "${ECHO_T}no" >&6; }
|
cannam@89
|
10749 ;;
|
cannam@89
|
10750 esac
|
cannam@89
|
10751 fi
|
cannam@89
|
10752
|
cannam@89
|
10753
|
cannam@89
|
10754
|
cannam@89
|
10755
|
cannam@89
|
10756
|
cannam@89
|
10757
|
cannam@89
|
10758
|
cannam@89
|
10759
|
cannam@89
|
10760
|
cannam@89
|
10761
|
cannam@89
|
10762
|
cannam@89
|
10763
|
cannam@89
|
10764 # Report which library types will actually be built
|
cannam@89
|
10765 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
|
cannam@89
|
10766 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
|
cannam@89
|
10767 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
|
cannam@89
|
10768 echo "${ECHO_T}$can_build_shared" >&6; }
|
cannam@89
|
10769
|
cannam@89
|
10770 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
|
cannam@89
|
10771 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
|
cannam@89
|
10772 test "$can_build_shared" = "no" && enable_shared=no
|
cannam@89
|
10773
|
cannam@89
|
10774 # On AIX, shared libraries and static libraries use the same namespace, and
|
cannam@89
|
10775 # are all built from PIC.
|
cannam@89
|
10776 case $host_os in
|
cannam@89
|
10777 aix3*)
|
cannam@89
|
10778 test "$enable_shared" = yes && enable_static=no
|
cannam@89
|
10779 if test -n "$RANLIB"; then
|
cannam@89
|
10780 archive_cmds="$archive_cmds~\$RANLIB \$lib"
|
cannam@89
|
10781 postinstall_cmds='$RANLIB $lib'
|
cannam@89
|
10782 fi
|
cannam@89
|
10783 ;;
|
cannam@89
|
10784
|
cannam@89
|
10785 aix[4-9]*)
|
cannam@89
|
10786 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
|
cannam@89
|
10787 test "$enable_shared" = yes && enable_static=no
|
cannam@89
|
10788 fi
|
cannam@89
|
10789 ;;
|
cannam@89
|
10790 esac
|
cannam@89
|
10791 { echo "$as_me:$LINENO: result: $enable_shared" >&5
|
cannam@89
|
10792 echo "${ECHO_T}$enable_shared" >&6; }
|
cannam@89
|
10793
|
cannam@89
|
10794 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
|
cannam@89
|
10795 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
|
cannam@89
|
10796 # Make sure either enable_shared or enable_static is yes.
|
cannam@89
|
10797 test "$enable_shared" = yes || enable_static=yes
|
cannam@89
|
10798 { echo "$as_me:$LINENO: result: $enable_static" >&5
|
cannam@89
|
10799 echo "${ECHO_T}$enable_static" >&6; }
|
cannam@89
|
10800
|
cannam@89
|
10801
|
cannam@89
|
10802
|
cannam@89
|
10803
|
cannam@89
|
10804 fi
|
cannam@89
|
10805 ac_ext=c
|
cannam@89
|
10806 ac_cpp='$CPP $CPPFLAGS'
|
cannam@89
|
10807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
cannam@89
|
10808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
cannam@89
|
10809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
cannam@89
|
10810
|
cannam@89
|
10811 CC="$lt_save_CC"
|
cannam@89
|
10812
|
cannam@89
|
10813
|
cannam@89
|
10814
|
cannam@89
|
10815
|
cannam@89
|
10816
|
cannam@89
|
10817
|
cannam@89
|
10818
|
cannam@89
|
10819
|
cannam@89
|
10820
|
cannam@89
|
10821
|
cannam@89
|
10822
|
cannam@89
|
10823
|
cannam@89
|
10824
|
cannam@89
|
10825 ac_config_commands="$ac_config_commands libtool"
|
cannam@89
|
10826
|
cannam@89
|
10827
|
cannam@89
|
10828
|
cannam@89
|
10829
|
cannam@89
|
10830 # Only expand once:
|
cannam@89
|
10831
|
cannam@89
|
10832
|
cannam@89
|
10833 if test "x$CC" != xcc; then
|
cannam@89
|
10834 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
|
cannam@89
|
10835 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
|
cannam@89
|
10836 else
|
cannam@89
|
10837 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
|
cannam@89
|
10838 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
|
cannam@89
|
10839 fi
|
cannam@89
|
10840 set dummy $CC; ac_cc=`echo $2 |
|
cannam@89
|
10841 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
|
cannam@89
|
10842 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
|
cannam@89
|
10843 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
10844 else
|
cannam@89
|
10845 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
10846 /* confdefs.h. */
|
cannam@89
|
10847 _ACEOF
|
cannam@89
|
10848 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
10849 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
10850 /* end confdefs.h. */
|
cannam@89
|
10851
|
cannam@89
|
10852 int
|
cannam@89
|
10853 main ()
|
cannam@89
|
10854 {
|
cannam@89
|
10855
|
cannam@89
|
10856 ;
|
cannam@89
|
10857 return 0;
|
cannam@89
|
10858 }
|
cannam@89
|
10859 _ACEOF
|
cannam@89
|
10860 # Make sure it works both with $CC and with simple cc.
|
cannam@89
|
10861 # We do the test twice because some compilers refuse to overwrite an
|
cannam@89
|
10862 # existing .o file with -o, though they will create one.
|
cannam@89
|
10863 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
|
cannam@89
|
10864 rm -f conftest2.*
|
cannam@89
|
10865 if { (case "(($ac_try" in
|
cannam@89
|
10866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
10867 *) ac_try_echo=$ac_try;;
|
cannam@89
|
10868 esac
|
cannam@89
|
10869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
10870 (eval "$ac_try") 2>&5
|
cannam@89
|
10871 ac_status=$?
|
cannam@89
|
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
10873 (exit $ac_status); } &&
|
cannam@89
|
10874 test -f conftest2.$ac_objext && { (case "(($ac_try" in
|
cannam@89
|
10875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
10876 *) ac_try_echo=$ac_try;;
|
cannam@89
|
10877 esac
|
cannam@89
|
10878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
10879 (eval "$ac_try") 2>&5
|
cannam@89
|
10880 ac_status=$?
|
cannam@89
|
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
10882 (exit $ac_status); };
|
cannam@89
|
10883 then
|
cannam@89
|
10884 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
|
cannam@89
|
10885 if test "x$CC" != xcc; then
|
cannam@89
|
10886 # Test first that cc exists at all.
|
cannam@89
|
10887 if { ac_try='cc -c conftest.$ac_ext >&5'
|
cannam@89
|
10888 { (case "(($ac_try" in
|
cannam@89
|
10889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
10890 *) ac_try_echo=$ac_try;;
|
cannam@89
|
10891 esac
|
cannam@89
|
10892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
10893 (eval "$ac_try") 2>&5
|
cannam@89
|
10894 ac_status=$?
|
cannam@89
|
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
10896 (exit $ac_status); }; }; then
|
cannam@89
|
10897 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
|
cannam@89
|
10898 rm -f conftest2.*
|
cannam@89
|
10899 if { (case "(($ac_try" in
|
cannam@89
|
10900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
10901 *) ac_try_echo=$ac_try;;
|
cannam@89
|
10902 esac
|
cannam@89
|
10903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
10904 (eval "$ac_try") 2>&5
|
cannam@89
|
10905 ac_status=$?
|
cannam@89
|
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
10907 (exit $ac_status); } &&
|
cannam@89
|
10908 test -f conftest2.$ac_objext && { (case "(($ac_try" in
|
cannam@89
|
10909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
10910 *) ac_try_echo=$ac_try;;
|
cannam@89
|
10911 esac
|
cannam@89
|
10912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
10913 (eval "$ac_try") 2>&5
|
cannam@89
|
10914 ac_status=$?
|
cannam@89
|
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
10916 (exit $ac_status); };
|
cannam@89
|
10917 then
|
cannam@89
|
10918 # cc works too.
|
cannam@89
|
10919 :
|
cannam@89
|
10920 else
|
cannam@89
|
10921 # cc exists but doesn't like -o.
|
cannam@89
|
10922 eval ac_cv_prog_cc_${ac_cc}_c_o=no
|
cannam@89
|
10923 fi
|
cannam@89
|
10924 fi
|
cannam@89
|
10925 fi
|
cannam@89
|
10926 else
|
cannam@89
|
10927 eval ac_cv_prog_cc_${ac_cc}_c_o=no
|
cannam@89
|
10928 fi
|
cannam@89
|
10929 rm -f core conftest*
|
cannam@89
|
10930
|
cannam@89
|
10931 fi
|
cannam@89
|
10932 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
|
cannam@89
|
10933 { echo "$as_me:$LINENO: result: yes" >&5
|
cannam@89
|
10934 echo "${ECHO_T}yes" >&6; }
|
cannam@89
|
10935 else
|
cannam@89
|
10936 { echo "$as_me:$LINENO: result: no" >&5
|
cannam@89
|
10937 echo "${ECHO_T}no" >&6; }
|
cannam@89
|
10938
|
cannam@89
|
10939 cat >>confdefs.h <<\_ACEOF
|
cannam@89
|
10940 #define NO_MINUS_C_MINUS_O 1
|
cannam@89
|
10941 _ACEOF
|
cannam@89
|
10942
|
cannam@89
|
10943 fi
|
cannam@89
|
10944
|
cannam@89
|
10945 # FIXME: we rely on the cache variable name because
|
cannam@89
|
10946 # there is no other way.
|
cannam@89
|
10947 set dummy $CC
|
cannam@89
|
10948 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
|
cannam@89
|
10949 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
|
cannam@89
|
10950 # Losing compiler, so override with the script.
|
cannam@89
|
10951 # FIXME: It is wrong to rewrite CC.
|
cannam@89
|
10952 # But if we don't then we get into trouble of one sort or another.
|
cannam@89
|
10953 # A longer-term fix would be to have automake use am__CC in this case,
|
cannam@89
|
10954 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
|
cannam@89
|
10955 CC="$am_aux_dir/compile $CC"
|
cannam@89
|
10956 fi
|
cannam@89
|
10957
|
cannam@89
|
10958
|
cannam@89
|
10959 # Extract the first word of "doxygen", so it can be a program name with args.
|
cannam@89
|
10960 set dummy doxygen; ac_word=$2
|
cannam@89
|
10961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@89
|
10962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
cannam@89
|
10963 if test "${ac_cv_prog_DOXYGEN+set}" = set; then
|
cannam@89
|
10964 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
10965 else
|
cannam@89
|
10966 if test -n "$DOXYGEN"; then
|
cannam@89
|
10967 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
|
cannam@89
|
10968 else
|
cannam@89
|
10969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@89
|
10970 for as_dir in $PATH
|
cannam@89
|
10971 do
|
cannam@89
|
10972 IFS=$as_save_IFS
|
cannam@89
|
10973 test -z "$as_dir" && as_dir=.
|
cannam@89
|
10974 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@89
|
10975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
cannam@89
|
10976 ac_cv_prog_DOXYGEN="doc"
|
cannam@89
|
10977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@89
|
10978 break 2
|
cannam@89
|
10979 fi
|
cannam@89
|
10980 done
|
cannam@89
|
10981 done
|
cannam@89
|
10982 IFS=$as_save_IFS
|
cannam@89
|
10983
|
cannam@89
|
10984 fi
|
cannam@89
|
10985 fi
|
cannam@89
|
10986 DOXYGEN=$ac_cv_prog_DOXYGEN
|
cannam@89
|
10987 if test -n "$DOXYGEN"; then
|
cannam@89
|
10988 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
|
cannam@89
|
10989 echo "${ECHO_T}$DOXYGEN" >&6; }
|
cannam@89
|
10990 else
|
cannam@89
|
10991 { echo "$as_me:$LINENO: result: no" >&5
|
cannam@89
|
10992 echo "${ECHO_T}no" >&6; }
|
cannam@89
|
10993 fi
|
cannam@89
|
10994
|
cannam@89
|
10995
|
cannam@89
|
10996
|
cannam@89
|
10997
|
cannam@89
|
10998 # Checks for libraries.
|
cannam@89
|
10999
|
cannam@89
|
11000 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
|
cannam@89
|
11001 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
|
cannam@89
|
11002 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
|
cannam@89
|
11003 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
11004 else
|
cannam@89
|
11005 ac_check_lib_save_LIBS=$LIBS
|
cannam@89
|
11006 LIBS="-lpthread $LIBS"
|
cannam@89
|
11007 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
11008 /* confdefs.h. */
|
cannam@89
|
11009 _ACEOF
|
cannam@89
|
11010 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
11011 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
11012 /* end confdefs.h. */
|
cannam@89
|
11013
|
cannam@89
|
11014 /* Override any GCC internal prototype to avoid an error.
|
cannam@89
|
11015 Use char because int might match the return type of a GCC
|
cannam@89
|
11016 builtin and then its argument prototype would still apply. */
|
cannam@89
|
11017 #ifdef __cplusplus
|
cannam@89
|
11018 extern "C"
|
cannam@89
|
11019 #endif
|
cannam@89
|
11020 char pthread_create ();
|
cannam@89
|
11021 int
|
cannam@89
|
11022 main ()
|
cannam@89
|
11023 {
|
cannam@89
|
11024 return pthread_create ();
|
cannam@89
|
11025 ;
|
cannam@89
|
11026 return 0;
|
cannam@89
|
11027 }
|
cannam@89
|
11028 _ACEOF
|
cannam@89
|
11029 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@89
|
11030 if { (ac_try="$ac_link"
|
cannam@89
|
11031 case "(($ac_try" in
|
cannam@89
|
11032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
11033 *) ac_try_echo=$ac_try;;
|
cannam@89
|
11034 esac
|
cannam@89
|
11035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
11036 (eval "$ac_link") 2>conftest.er1
|
cannam@89
|
11037 ac_status=$?
|
cannam@89
|
11038 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@89
|
11039 rm -f conftest.er1
|
cannam@89
|
11040 cat conftest.err >&5
|
cannam@89
|
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
11042 (exit $ac_status); } && {
|
cannam@89
|
11043 test -z "$ac_c_werror_flag" ||
|
cannam@89
|
11044 test ! -s conftest.err
|
cannam@89
|
11045 } && test -s conftest$ac_exeext &&
|
cannam@89
|
11046 $as_test_x conftest$ac_exeext; then
|
cannam@89
|
11047 ac_cv_lib_pthread_pthread_create=yes
|
cannam@89
|
11048 else
|
cannam@89
|
11049 echo "$as_me: failed program was:" >&5
|
cannam@89
|
11050 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@89
|
11051
|
cannam@89
|
11052 ac_cv_lib_pthread_pthread_create=no
|
cannam@89
|
11053 fi
|
cannam@89
|
11054
|
cannam@89
|
11055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
cannam@89
|
11056 conftest$ac_exeext conftest.$ac_ext
|
cannam@89
|
11057 LIBS=$ac_check_lib_save_LIBS
|
cannam@89
|
11058 fi
|
cannam@89
|
11059 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
|
cannam@89
|
11060 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
|
cannam@89
|
11061 if test $ac_cv_lib_pthread_pthread_create = yes; then
|
cannam@89
|
11062 cat >>confdefs.h <<_ACEOF
|
cannam@89
|
11063 #define HAVE_LIBPTHREAD 1
|
cannam@89
|
11064 _ACEOF
|
cannam@89
|
11065
|
cannam@89
|
11066 LIBS="-lpthread $LIBS"
|
cannam@89
|
11067
|
cannam@89
|
11068 fi
|
cannam@89
|
11069
|
cannam@89
|
11070 { echo "$as_me:$LINENO: checking for library containing recvfrom" >&5
|
cannam@89
|
11071 echo $ECHO_N "checking for library containing recvfrom... $ECHO_C" >&6; }
|
cannam@89
|
11072 if test "${ac_cv_search_recvfrom+set}" = set; then
|
cannam@89
|
11073 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
11074 else
|
cannam@89
|
11075 ac_func_search_save_LIBS=$LIBS
|
cannam@89
|
11076 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
11077 /* confdefs.h. */
|
cannam@89
|
11078 _ACEOF
|
cannam@89
|
11079 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
11080 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
11081 /* end confdefs.h. */
|
cannam@89
|
11082
|
cannam@89
|
11083 /* Override any GCC internal prototype to avoid an error.
|
cannam@89
|
11084 Use char because int might match the return type of a GCC
|
cannam@89
|
11085 builtin and then its argument prototype would still apply. */
|
cannam@89
|
11086 #ifdef __cplusplus
|
cannam@89
|
11087 extern "C"
|
cannam@89
|
11088 #endif
|
cannam@89
|
11089 char recvfrom ();
|
cannam@89
|
11090 int
|
cannam@89
|
11091 main ()
|
cannam@89
|
11092 {
|
cannam@89
|
11093 return recvfrom ();
|
cannam@89
|
11094 ;
|
cannam@89
|
11095 return 0;
|
cannam@89
|
11096 }
|
cannam@89
|
11097 _ACEOF
|
cannam@89
|
11098 for ac_lib in '' socket; do
|
cannam@89
|
11099 if test -z "$ac_lib"; then
|
cannam@89
|
11100 ac_res="none required"
|
cannam@89
|
11101 else
|
cannam@89
|
11102 ac_res=-l$ac_lib
|
cannam@89
|
11103 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
cannam@89
|
11104 fi
|
cannam@89
|
11105 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@89
|
11106 if { (ac_try="$ac_link"
|
cannam@89
|
11107 case "(($ac_try" in
|
cannam@89
|
11108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
11109 *) ac_try_echo=$ac_try;;
|
cannam@89
|
11110 esac
|
cannam@89
|
11111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
11112 (eval "$ac_link") 2>conftest.er1
|
cannam@89
|
11113 ac_status=$?
|
cannam@89
|
11114 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@89
|
11115 rm -f conftest.er1
|
cannam@89
|
11116 cat conftest.err >&5
|
cannam@89
|
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
11118 (exit $ac_status); } && {
|
cannam@89
|
11119 test -z "$ac_c_werror_flag" ||
|
cannam@89
|
11120 test ! -s conftest.err
|
cannam@89
|
11121 } && test -s conftest$ac_exeext &&
|
cannam@89
|
11122 $as_test_x conftest$ac_exeext; then
|
cannam@89
|
11123 ac_cv_search_recvfrom=$ac_res
|
cannam@89
|
11124 else
|
cannam@89
|
11125 echo "$as_me: failed program was:" >&5
|
cannam@89
|
11126 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@89
|
11127
|
cannam@89
|
11128
|
cannam@89
|
11129 fi
|
cannam@89
|
11130
|
cannam@89
|
11131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
cannam@89
|
11132 conftest$ac_exeext
|
cannam@89
|
11133 if test "${ac_cv_search_recvfrom+set}" = set; then
|
cannam@89
|
11134 break
|
cannam@89
|
11135 fi
|
cannam@89
|
11136 done
|
cannam@89
|
11137 if test "${ac_cv_search_recvfrom+set}" = set; then
|
cannam@89
|
11138 :
|
cannam@89
|
11139 else
|
cannam@89
|
11140 ac_cv_search_recvfrom=no
|
cannam@89
|
11141 fi
|
cannam@89
|
11142 rm conftest.$ac_ext
|
cannam@89
|
11143 LIBS=$ac_func_search_save_LIBS
|
cannam@89
|
11144 fi
|
cannam@89
|
11145 { echo "$as_me:$LINENO: result: $ac_cv_search_recvfrom" >&5
|
cannam@89
|
11146 echo "${ECHO_T}$ac_cv_search_recvfrom" >&6; }
|
cannam@89
|
11147 ac_res=$ac_cv_search_recvfrom
|
cannam@89
|
11148 if test "$ac_res" != no; then
|
cannam@89
|
11149 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
cannam@89
|
11150
|
cannam@89
|
11151 fi
|
cannam@89
|
11152
|
cannam@89
|
11153 { echo "$as_me:$LINENO: checking for log" >&5
|
cannam@89
|
11154 echo $ECHO_N "checking for log... $ECHO_C" >&6; }
|
cannam@89
|
11155 if test "${ac_cv_func_log+set}" = set; then
|
cannam@89
|
11156 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
11157 else
|
cannam@89
|
11158 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
11159 /* confdefs.h. */
|
cannam@89
|
11160 _ACEOF
|
cannam@89
|
11161 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
11162 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
11163 /* end confdefs.h. */
|
cannam@89
|
11164 /* Define log to an innocuous variant, in case <limits.h> declares log.
|
cannam@89
|
11165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
cannam@89
|
11166 #define log innocuous_log
|
cannam@89
|
11167
|
cannam@89
|
11168 /* System header to define __stub macros and hopefully few prototypes,
|
cannam@89
|
11169 which can conflict with char log (); below.
|
cannam@89
|
11170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
cannam@89
|
11171 <limits.h> exists even on freestanding compilers. */
|
cannam@89
|
11172
|
cannam@89
|
11173 #ifdef __STDC__
|
cannam@89
|
11174 # include <limits.h>
|
cannam@89
|
11175 #else
|
cannam@89
|
11176 # include <assert.h>
|
cannam@89
|
11177 #endif
|
cannam@89
|
11178
|
cannam@89
|
11179 #undef log
|
cannam@89
|
11180
|
cannam@89
|
11181 /* Override any GCC internal prototype to avoid an error.
|
cannam@89
|
11182 Use char because int might match the return type of a GCC
|
cannam@89
|
11183 builtin and then its argument prototype would still apply. */
|
cannam@89
|
11184 #ifdef __cplusplus
|
cannam@89
|
11185 extern "C"
|
cannam@89
|
11186 #endif
|
cannam@89
|
11187 char log ();
|
cannam@89
|
11188 /* The GNU C library defines this for functions which it implements
|
cannam@89
|
11189 to always fail with ENOSYS. Some functions are actually named
|
cannam@89
|
11190 something starting with __ and the normal name is an alias. */
|
cannam@89
|
11191 #if defined __stub_log || defined __stub___log
|
cannam@89
|
11192 choke me
|
cannam@89
|
11193 #endif
|
cannam@89
|
11194
|
cannam@89
|
11195 int
|
cannam@89
|
11196 main ()
|
cannam@89
|
11197 {
|
cannam@89
|
11198 return log ();
|
cannam@89
|
11199 ;
|
cannam@89
|
11200 return 0;
|
cannam@89
|
11201 }
|
cannam@89
|
11202 _ACEOF
|
cannam@89
|
11203 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@89
|
11204 if { (ac_try="$ac_link"
|
cannam@89
|
11205 case "(($ac_try" in
|
cannam@89
|
11206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
11207 *) ac_try_echo=$ac_try;;
|
cannam@89
|
11208 esac
|
cannam@89
|
11209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
11210 (eval "$ac_link") 2>conftest.er1
|
cannam@89
|
11211 ac_status=$?
|
cannam@89
|
11212 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@89
|
11213 rm -f conftest.er1
|
cannam@89
|
11214 cat conftest.err >&5
|
cannam@89
|
11215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
11216 (exit $ac_status); } && {
|
cannam@89
|
11217 test -z "$ac_c_werror_flag" ||
|
cannam@89
|
11218 test ! -s conftest.err
|
cannam@89
|
11219 } && test -s conftest$ac_exeext &&
|
cannam@89
|
11220 $as_test_x conftest$ac_exeext; then
|
cannam@89
|
11221 ac_cv_func_log=yes
|
cannam@89
|
11222 else
|
cannam@89
|
11223 echo "$as_me: failed program was:" >&5
|
cannam@89
|
11224 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@89
|
11225
|
cannam@89
|
11226 ac_cv_func_log=no
|
cannam@89
|
11227 fi
|
cannam@89
|
11228
|
cannam@89
|
11229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
cannam@89
|
11230 conftest$ac_exeext conftest.$ac_ext
|
cannam@89
|
11231 fi
|
cannam@89
|
11232 { echo "$as_me:$LINENO: result: $ac_cv_func_log" >&5
|
cannam@89
|
11233 echo "${ECHO_T}$ac_cv_func_log" >&6; }
|
cannam@89
|
11234 if test $ac_cv_func_log = yes; then
|
cannam@89
|
11235 :
|
cannam@89
|
11236 else
|
cannam@89
|
11237
|
cannam@89
|
11238 { echo "$as_me:$LINENO: checking for log in -lm" >&5
|
cannam@89
|
11239 echo $ECHO_N "checking for log in -lm... $ECHO_C" >&6; }
|
cannam@89
|
11240 if test "${ac_cv_lib_m_log+set}" = set; then
|
cannam@89
|
11241 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
11242 else
|
cannam@89
|
11243 ac_check_lib_save_LIBS=$LIBS
|
cannam@89
|
11244 LIBS="-lm $LIBS"
|
cannam@89
|
11245 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
11246 /* confdefs.h. */
|
cannam@89
|
11247 _ACEOF
|
cannam@89
|
11248 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
11249 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
11250 /* end confdefs.h. */
|
cannam@89
|
11251
|
cannam@89
|
11252 /* Override any GCC internal prototype to avoid an error.
|
cannam@89
|
11253 Use char because int might match the return type of a GCC
|
cannam@89
|
11254 builtin and then its argument prototype would still apply. */
|
cannam@89
|
11255 #ifdef __cplusplus
|
cannam@89
|
11256 extern "C"
|
cannam@89
|
11257 #endif
|
cannam@89
|
11258 char log ();
|
cannam@89
|
11259 int
|
cannam@89
|
11260 main ()
|
cannam@89
|
11261 {
|
cannam@89
|
11262 return log ();
|
cannam@89
|
11263 ;
|
cannam@89
|
11264 return 0;
|
cannam@89
|
11265 }
|
cannam@89
|
11266 _ACEOF
|
cannam@89
|
11267 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@89
|
11268 if { (ac_try="$ac_link"
|
cannam@89
|
11269 case "(($ac_try" in
|
cannam@89
|
11270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
11271 *) ac_try_echo=$ac_try;;
|
cannam@89
|
11272 esac
|
cannam@89
|
11273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
11274 (eval "$ac_link") 2>conftest.er1
|
cannam@89
|
11275 ac_status=$?
|
cannam@89
|
11276 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@89
|
11277 rm -f conftest.er1
|
cannam@89
|
11278 cat conftest.err >&5
|
cannam@89
|
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
11280 (exit $ac_status); } && {
|
cannam@89
|
11281 test -z "$ac_c_werror_flag" ||
|
cannam@89
|
11282 test ! -s conftest.err
|
cannam@89
|
11283 } && test -s conftest$ac_exeext &&
|
cannam@89
|
11284 $as_test_x conftest$ac_exeext; then
|
cannam@89
|
11285 ac_cv_lib_m_log=yes
|
cannam@89
|
11286 else
|
cannam@89
|
11287 echo "$as_me: failed program was:" >&5
|
cannam@89
|
11288 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@89
|
11289
|
cannam@89
|
11290 ac_cv_lib_m_log=no
|
cannam@89
|
11291 fi
|
cannam@89
|
11292
|
cannam@89
|
11293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
cannam@89
|
11294 conftest$ac_exeext conftest.$ac_ext
|
cannam@89
|
11295 LIBS=$ac_check_lib_save_LIBS
|
cannam@89
|
11296 fi
|
cannam@89
|
11297 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_log" >&5
|
cannam@89
|
11298 echo "${ECHO_T}$ac_cv_lib_m_log" >&6; }
|
cannam@89
|
11299 if test $ac_cv_lib_m_log = yes; then
|
cannam@89
|
11300 cat >>confdefs.h <<_ACEOF
|
cannam@89
|
11301 #define HAVE_LIBM 1
|
cannam@89
|
11302 _ACEOF
|
cannam@89
|
11303
|
cannam@89
|
11304 LIBS="-lm $LIBS"
|
cannam@89
|
11305
|
cannam@89
|
11306 fi
|
cannam@89
|
11307
|
cannam@89
|
11308 fi
|
cannam@89
|
11309
|
cannam@89
|
11310
|
cannam@89
|
11311 # Checks for header files.
|
cannam@89
|
11312 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
cannam@89
|
11313 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
|
cannam@89
|
11314 if test "${ac_cv_header_stdc+set}" = set; then
|
cannam@89
|
11315 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
11316 else
|
cannam@89
|
11317 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
11318 /* confdefs.h. */
|
cannam@89
|
11319 _ACEOF
|
cannam@89
|
11320 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
11321 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
11322 /* end confdefs.h. */
|
cannam@89
|
11323 #include <stdlib.h>
|
cannam@89
|
11324 #include <stdarg.h>
|
cannam@89
|
11325 #include <string.h>
|
cannam@89
|
11326 #include <float.h>
|
cannam@89
|
11327
|
cannam@89
|
11328 int
|
cannam@89
|
11329 main ()
|
cannam@89
|
11330 {
|
cannam@89
|
11331
|
cannam@89
|
11332 ;
|
cannam@89
|
11333 return 0;
|
cannam@89
|
11334 }
|
cannam@89
|
11335 _ACEOF
|
cannam@89
|
11336 rm -f conftest.$ac_objext
|
cannam@89
|
11337 if { (ac_try="$ac_compile"
|
cannam@89
|
11338 case "(($ac_try" in
|
cannam@89
|
11339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
11340 *) ac_try_echo=$ac_try;;
|
cannam@89
|
11341 esac
|
cannam@89
|
11342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
11343 (eval "$ac_compile") 2>conftest.er1
|
cannam@89
|
11344 ac_status=$?
|
cannam@89
|
11345 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@89
|
11346 rm -f conftest.er1
|
cannam@89
|
11347 cat conftest.err >&5
|
cannam@89
|
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
11349 (exit $ac_status); } && {
|
cannam@89
|
11350 test -z "$ac_c_werror_flag" ||
|
cannam@89
|
11351 test ! -s conftest.err
|
cannam@89
|
11352 } && test -s conftest.$ac_objext; then
|
cannam@89
|
11353 ac_cv_header_stdc=yes
|
cannam@89
|
11354 else
|
cannam@89
|
11355 echo "$as_me: failed program was:" >&5
|
cannam@89
|
11356 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@89
|
11357
|
cannam@89
|
11358 ac_cv_header_stdc=no
|
cannam@89
|
11359 fi
|
cannam@89
|
11360
|
cannam@89
|
11361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@89
|
11362
|
cannam@89
|
11363 if test $ac_cv_header_stdc = yes; then
|
cannam@89
|
11364 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
cannam@89
|
11365 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
11366 /* confdefs.h. */
|
cannam@89
|
11367 _ACEOF
|
cannam@89
|
11368 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
11369 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
11370 /* end confdefs.h. */
|
cannam@89
|
11371 #include <string.h>
|
cannam@89
|
11372
|
cannam@89
|
11373 _ACEOF
|
cannam@89
|
11374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
cannam@89
|
11375 $EGREP "memchr" >/dev/null 2>&1; then
|
cannam@89
|
11376 :
|
cannam@89
|
11377 else
|
cannam@89
|
11378 ac_cv_header_stdc=no
|
cannam@89
|
11379 fi
|
cannam@89
|
11380 rm -f conftest*
|
cannam@89
|
11381
|
cannam@89
|
11382 fi
|
cannam@89
|
11383
|
cannam@89
|
11384 if test $ac_cv_header_stdc = yes; then
|
cannam@89
|
11385 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
cannam@89
|
11386 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
11387 /* confdefs.h. */
|
cannam@89
|
11388 _ACEOF
|
cannam@89
|
11389 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
11390 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
11391 /* end confdefs.h. */
|
cannam@89
|
11392 #include <stdlib.h>
|
cannam@89
|
11393
|
cannam@89
|
11394 _ACEOF
|
cannam@89
|
11395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
cannam@89
|
11396 $EGREP "free" >/dev/null 2>&1; then
|
cannam@89
|
11397 :
|
cannam@89
|
11398 else
|
cannam@89
|
11399 ac_cv_header_stdc=no
|
cannam@89
|
11400 fi
|
cannam@89
|
11401 rm -f conftest*
|
cannam@89
|
11402
|
cannam@89
|
11403 fi
|
cannam@89
|
11404
|
cannam@89
|
11405 if test $ac_cv_header_stdc = yes; then
|
cannam@89
|
11406 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
cannam@89
|
11407 if test "$cross_compiling" = yes; then
|
cannam@89
|
11408 :
|
cannam@89
|
11409 else
|
cannam@89
|
11410 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
11411 /* confdefs.h. */
|
cannam@89
|
11412 _ACEOF
|
cannam@89
|
11413 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
11414 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
11415 /* end confdefs.h. */
|
cannam@89
|
11416 #include <ctype.h>
|
cannam@89
|
11417 #include <stdlib.h>
|
cannam@89
|
11418 #if ((' ' & 0x0FF) == 0x020)
|
cannam@89
|
11419 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
cannam@89
|
11420 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
cannam@89
|
11421 #else
|
cannam@89
|
11422 # define ISLOWER(c) \
|
cannam@89
|
11423 (('a' <= (c) && (c) <= 'i') \
|
cannam@89
|
11424 || ('j' <= (c) && (c) <= 'r') \
|
cannam@89
|
11425 || ('s' <= (c) && (c) <= 'z'))
|
cannam@89
|
11426 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
cannam@89
|
11427 #endif
|
cannam@89
|
11428
|
cannam@89
|
11429 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
cannam@89
|
11430 int
|
cannam@89
|
11431 main ()
|
cannam@89
|
11432 {
|
cannam@89
|
11433 int i;
|
cannam@89
|
11434 for (i = 0; i < 256; i++)
|
cannam@89
|
11435 if (XOR (islower (i), ISLOWER (i))
|
cannam@89
|
11436 || toupper (i) != TOUPPER (i))
|
cannam@89
|
11437 return 2;
|
cannam@89
|
11438 return 0;
|
cannam@89
|
11439 }
|
cannam@89
|
11440 _ACEOF
|
cannam@89
|
11441 rm -f conftest$ac_exeext
|
cannam@89
|
11442 if { (ac_try="$ac_link"
|
cannam@89
|
11443 case "(($ac_try" in
|
cannam@89
|
11444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
11445 *) ac_try_echo=$ac_try;;
|
cannam@89
|
11446 esac
|
cannam@89
|
11447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
11448 (eval "$ac_link") 2>&5
|
cannam@89
|
11449 ac_status=$?
|
cannam@89
|
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
11451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
cannam@89
|
11452 { (case "(($ac_try" in
|
cannam@89
|
11453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
11454 *) ac_try_echo=$ac_try;;
|
cannam@89
|
11455 esac
|
cannam@89
|
11456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
11457 (eval "$ac_try") 2>&5
|
cannam@89
|
11458 ac_status=$?
|
cannam@89
|
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
11460 (exit $ac_status); }; }; then
|
cannam@89
|
11461 :
|
cannam@89
|
11462 else
|
cannam@89
|
11463 echo "$as_me: program exited with status $ac_status" >&5
|
cannam@89
|
11464 echo "$as_me: failed program was:" >&5
|
cannam@89
|
11465 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@89
|
11466
|
cannam@89
|
11467 ( exit $ac_status )
|
cannam@89
|
11468 ac_cv_header_stdc=no
|
cannam@89
|
11469 fi
|
cannam@89
|
11470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
cannam@89
|
11471 fi
|
cannam@89
|
11472
|
cannam@89
|
11473
|
cannam@89
|
11474 fi
|
cannam@89
|
11475 fi
|
cannam@89
|
11476 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
cannam@89
|
11477 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
|
cannam@89
|
11478 if test $ac_cv_header_stdc = yes; then
|
cannam@89
|
11479
|
cannam@89
|
11480 cat >>confdefs.h <<\_ACEOF
|
cannam@89
|
11481 #define STDC_HEADERS 1
|
cannam@89
|
11482 _ACEOF
|
cannam@89
|
11483
|
cannam@89
|
11484 fi
|
cannam@89
|
11485
|
cannam@89
|
11486
|
cannam@89
|
11487
|
cannam@89
|
11488
|
cannam@89
|
11489
|
cannam@89
|
11490
|
cannam@89
|
11491
|
cannam@89
|
11492 for ac_header in netdb.h netinet/in.h stdlib.h string.h sys/socket.h unistd.h
|
cannam@89
|
11493 do
|
cannam@89
|
11494 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
cannam@89
|
11495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
cannam@89
|
11496 { echo "$as_me:$LINENO: checking for $ac_header" >&5
|
cannam@89
|
11497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
cannam@89
|
11498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
cannam@89
|
11499 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
11500 fi
|
cannam@89
|
11501 ac_res=`eval echo '${'$as_ac_Header'}'`
|
cannam@89
|
11502 { echo "$as_me:$LINENO: result: $ac_res" >&5
|
cannam@89
|
11503 echo "${ECHO_T}$ac_res" >&6; }
|
cannam@89
|
11504 else
|
cannam@89
|
11505 # Is the header compilable?
|
cannam@89
|
11506 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
cannam@89
|
11507 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
|
cannam@89
|
11508 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
11509 /* confdefs.h. */
|
cannam@89
|
11510 _ACEOF
|
cannam@89
|
11511 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
11512 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
11513 /* end confdefs.h. */
|
cannam@89
|
11514 $ac_includes_default
|
cannam@89
|
11515 #include <$ac_header>
|
cannam@89
|
11516 _ACEOF
|
cannam@89
|
11517 rm -f conftest.$ac_objext
|
cannam@89
|
11518 if { (ac_try="$ac_compile"
|
cannam@89
|
11519 case "(($ac_try" in
|
cannam@89
|
11520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
11521 *) ac_try_echo=$ac_try;;
|
cannam@89
|
11522 esac
|
cannam@89
|
11523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
11524 (eval "$ac_compile") 2>conftest.er1
|
cannam@89
|
11525 ac_status=$?
|
cannam@89
|
11526 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@89
|
11527 rm -f conftest.er1
|
cannam@89
|
11528 cat conftest.err >&5
|
cannam@89
|
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
11530 (exit $ac_status); } && {
|
cannam@89
|
11531 test -z "$ac_c_werror_flag" ||
|
cannam@89
|
11532 test ! -s conftest.err
|
cannam@89
|
11533 } && test -s conftest.$ac_objext; then
|
cannam@89
|
11534 ac_header_compiler=yes
|
cannam@89
|
11535 else
|
cannam@89
|
11536 echo "$as_me: failed program was:" >&5
|
cannam@89
|
11537 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@89
|
11538
|
cannam@89
|
11539 ac_header_compiler=no
|
cannam@89
|
11540 fi
|
cannam@89
|
11541
|
cannam@89
|
11542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@89
|
11543 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
cannam@89
|
11544 echo "${ECHO_T}$ac_header_compiler" >&6; }
|
cannam@89
|
11545
|
cannam@89
|
11546 # Is the header present?
|
cannam@89
|
11547 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
cannam@89
|
11548 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
|
cannam@89
|
11549 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
11550 /* confdefs.h. */
|
cannam@89
|
11551 _ACEOF
|
cannam@89
|
11552 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
11553 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
11554 /* end confdefs.h. */
|
cannam@89
|
11555 #include <$ac_header>
|
cannam@89
|
11556 _ACEOF
|
cannam@89
|
11557 if { (ac_try="$ac_cpp conftest.$ac_ext"
|
cannam@89
|
11558 case "(($ac_try" in
|
cannam@89
|
11559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
11560 *) ac_try_echo=$ac_try;;
|
cannam@89
|
11561 esac
|
cannam@89
|
11562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
11563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
cannam@89
|
11564 ac_status=$?
|
cannam@89
|
11565 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@89
|
11566 rm -f conftest.er1
|
cannam@89
|
11567 cat conftest.err >&5
|
cannam@89
|
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
11569 (exit $ac_status); } >/dev/null && {
|
cannam@89
|
11570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
cannam@89
|
11571 test ! -s conftest.err
|
cannam@89
|
11572 }; then
|
cannam@89
|
11573 ac_header_preproc=yes
|
cannam@89
|
11574 else
|
cannam@89
|
11575 echo "$as_me: failed program was:" >&5
|
cannam@89
|
11576 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@89
|
11577
|
cannam@89
|
11578 ac_header_preproc=no
|
cannam@89
|
11579 fi
|
cannam@89
|
11580
|
cannam@89
|
11581 rm -f conftest.err conftest.$ac_ext
|
cannam@89
|
11582 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
cannam@89
|
11583 echo "${ECHO_T}$ac_header_preproc" >&6; }
|
cannam@89
|
11584
|
cannam@89
|
11585 # So? What about this header?
|
cannam@89
|
11586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
cannam@89
|
11587 yes:no: )
|
cannam@89
|
11588 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
cannam@89
|
11589 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
cannam@89
|
11590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
cannam@89
|
11591 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
cannam@89
|
11592 ac_header_preproc=yes
|
cannam@89
|
11593 ;;
|
cannam@89
|
11594 no:yes:* )
|
cannam@89
|
11595 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
cannam@89
|
11596 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
cannam@89
|
11597 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
cannam@89
|
11598 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
cannam@89
|
11599 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
cannam@89
|
11600 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
cannam@89
|
11601 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
cannam@89
|
11602 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
cannam@89
|
11603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
cannam@89
|
11604 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
cannam@89
|
11605 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
cannam@89
|
11606 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
cannam@89
|
11607 ( cat <<\_ASBOX
|
cannam@89
|
11608 ## ------------------------------------------------ ##
|
cannam@89
|
11609 ## Report this to liblo-devel@lists.sourceforge.net ##
|
cannam@89
|
11610 ## ------------------------------------------------ ##
|
cannam@89
|
11611 _ASBOX
|
cannam@89
|
11612 ) | sed "s/^/$as_me: WARNING: /" >&2
|
cannam@89
|
11613 ;;
|
cannam@89
|
11614 esac
|
cannam@89
|
11615 { echo "$as_me:$LINENO: checking for $ac_header" >&5
|
cannam@89
|
11616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
cannam@89
|
11617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
cannam@89
|
11618 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
11619 else
|
cannam@89
|
11620 eval "$as_ac_Header=\$ac_header_preproc"
|
cannam@89
|
11621 fi
|
cannam@89
|
11622 ac_res=`eval echo '${'$as_ac_Header'}'`
|
cannam@89
|
11623 { echo "$as_me:$LINENO: result: $ac_res" >&5
|
cannam@89
|
11624 echo "${ECHO_T}$ac_res" >&6; }
|
cannam@89
|
11625
|
cannam@89
|
11626 fi
|
cannam@89
|
11627 if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
cannam@89
|
11628 cat >>confdefs.h <<_ACEOF
|
cannam@89
|
11629 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
cannam@89
|
11630 _ACEOF
|
cannam@89
|
11631
|
cannam@89
|
11632 fi
|
cannam@89
|
11633
|
cannam@89
|
11634 done
|
cannam@89
|
11635
|
cannam@89
|
11636
|
cannam@89
|
11637 # Checks for typedefs, structures, and compiler characteristics.
|
cannam@89
|
11638 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
|
cannam@89
|
11639 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
|
cannam@89
|
11640 if test "${ac_cv_c_const+set}" = set; then
|
cannam@89
|
11641 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
11642 else
|
cannam@89
|
11643 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
11644 /* confdefs.h. */
|
cannam@89
|
11645 _ACEOF
|
cannam@89
|
11646 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
11647 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
11648 /* end confdefs.h. */
|
cannam@89
|
11649
|
cannam@89
|
11650 int
|
cannam@89
|
11651 main ()
|
cannam@89
|
11652 {
|
cannam@89
|
11653 /* FIXME: Include the comments suggested by Paul. */
|
cannam@89
|
11654 #ifndef __cplusplus
|
cannam@89
|
11655 /* Ultrix mips cc rejects this. */
|
cannam@89
|
11656 typedef int charset[2];
|
cannam@89
|
11657 const charset cs;
|
cannam@89
|
11658 /* SunOS 4.1.1 cc rejects this. */
|
cannam@89
|
11659 char const *const *pcpcc;
|
cannam@89
|
11660 char **ppc;
|
cannam@89
|
11661 /* NEC SVR4.0.2 mips cc rejects this. */
|
cannam@89
|
11662 struct point {int x, y;};
|
cannam@89
|
11663 static struct point const zero = {0,0};
|
cannam@89
|
11664 /* AIX XL C 1.02.0.0 rejects this.
|
cannam@89
|
11665 It does not let you subtract one const X* pointer from another in
|
cannam@89
|
11666 an arm of an if-expression whose if-part is not a constant
|
cannam@89
|
11667 expression */
|
cannam@89
|
11668 const char *g = "string";
|
cannam@89
|
11669 pcpcc = &g + (g ? g-g : 0);
|
cannam@89
|
11670 /* HPUX 7.0 cc rejects these. */
|
cannam@89
|
11671 ++pcpcc;
|
cannam@89
|
11672 ppc = (char**) pcpcc;
|
cannam@89
|
11673 pcpcc = (char const *const *) ppc;
|
cannam@89
|
11674 { /* SCO 3.2v4 cc rejects this. */
|
cannam@89
|
11675 char *t;
|
cannam@89
|
11676 char const *s = 0 ? (char *) 0 : (char const *) 0;
|
cannam@89
|
11677
|
cannam@89
|
11678 *t++ = 0;
|
cannam@89
|
11679 if (s) return 0;
|
cannam@89
|
11680 }
|
cannam@89
|
11681 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
cannam@89
|
11682 int x[] = {25, 17};
|
cannam@89
|
11683 const int *foo = &x[0];
|
cannam@89
|
11684 ++foo;
|
cannam@89
|
11685 }
|
cannam@89
|
11686 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
cannam@89
|
11687 typedef const int *iptr;
|
cannam@89
|
11688 iptr p = 0;
|
cannam@89
|
11689 ++p;
|
cannam@89
|
11690 }
|
cannam@89
|
11691 { /* AIX XL C 1.02.0.0 rejects this saying
|
cannam@89
|
11692 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
cannam@89
|
11693 struct s { int j; const int *ap[3]; };
|
cannam@89
|
11694 struct s *b; b->j = 5;
|
cannam@89
|
11695 }
|
cannam@89
|
11696 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
cannam@89
|
11697 const int foo = 10;
|
cannam@89
|
11698 if (!foo) return 0;
|
cannam@89
|
11699 }
|
cannam@89
|
11700 return !cs[0] && !zero.x;
|
cannam@89
|
11701 #endif
|
cannam@89
|
11702
|
cannam@89
|
11703 ;
|
cannam@89
|
11704 return 0;
|
cannam@89
|
11705 }
|
cannam@89
|
11706 _ACEOF
|
cannam@89
|
11707 rm -f conftest.$ac_objext
|
cannam@89
|
11708 if { (ac_try="$ac_compile"
|
cannam@89
|
11709 case "(($ac_try" in
|
cannam@89
|
11710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
11711 *) ac_try_echo=$ac_try;;
|
cannam@89
|
11712 esac
|
cannam@89
|
11713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
11714 (eval "$ac_compile") 2>conftest.er1
|
cannam@89
|
11715 ac_status=$?
|
cannam@89
|
11716 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@89
|
11717 rm -f conftest.er1
|
cannam@89
|
11718 cat conftest.err >&5
|
cannam@89
|
11719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
11720 (exit $ac_status); } && {
|
cannam@89
|
11721 test -z "$ac_c_werror_flag" ||
|
cannam@89
|
11722 test ! -s conftest.err
|
cannam@89
|
11723 } && test -s conftest.$ac_objext; then
|
cannam@89
|
11724 ac_cv_c_const=yes
|
cannam@89
|
11725 else
|
cannam@89
|
11726 echo "$as_me: failed program was:" >&5
|
cannam@89
|
11727 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@89
|
11728
|
cannam@89
|
11729 ac_cv_c_const=no
|
cannam@89
|
11730 fi
|
cannam@89
|
11731
|
cannam@89
|
11732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@89
|
11733 fi
|
cannam@89
|
11734 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
|
cannam@89
|
11735 echo "${ECHO_T}$ac_cv_c_const" >&6; }
|
cannam@89
|
11736 if test $ac_cv_c_const = no; then
|
cannam@89
|
11737
|
cannam@89
|
11738 cat >>confdefs.h <<\_ACEOF
|
cannam@89
|
11739 #define const
|
cannam@89
|
11740 _ACEOF
|
cannam@89
|
11741
|
cannam@89
|
11742 fi
|
cannam@89
|
11743
|
cannam@89
|
11744 { echo "$as_me:$LINENO: checking for size_t" >&5
|
cannam@89
|
11745 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
|
cannam@89
|
11746 if test "${ac_cv_type_size_t+set}" = set; then
|
cannam@89
|
11747 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
11748 else
|
cannam@89
|
11749 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
11750 /* confdefs.h. */
|
cannam@89
|
11751 _ACEOF
|
cannam@89
|
11752 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
11753 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
11754 /* end confdefs.h. */
|
cannam@89
|
11755 $ac_includes_default
|
cannam@89
|
11756 typedef size_t ac__type_new_;
|
cannam@89
|
11757 int
|
cannam@89
|
11758 main ()
|
cannam@89
|
11759 {
|
cannam@89
|
11760 if ((ac__type_new_ *) 0)
|
cannam@89
|
11761 return 0;
|
cannam@89
|
11762 if (sizeof (ac__type_new_))
|
cannam@89
|
11763 return 0;
|
cannam@89
|
11764 ;
|
cannam@89
|
11765 return 0;
|
cannam@89
|
11766 }
|
cannam@89
|
11767 _ACEOF
|
cannam@89
|
11768 rm -f conftest.$ac_objext
|
cannam@89
|
11769 if { (ac_try="$ac_compile"
|
cannam@89
|
11770 case "(($ac_try" in
|
cannam@89
|
11771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
11772 *) ac_try_echo=$ac_try;;
|
cannam@89
|
11773 esac
|
cannam@89
|
11774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
11775 (eval "$ac_compile") 2>conftest.er1
|
cannam@89
|
11776 ac_status=$?
|
cannam@89
|
11777 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@89
|
11778 rm -f conftest.er1
|
cannam@89
|
11779 cat conftest.err >&5
|
cannam@89
|
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
11781 (exit $ac_status); } && {
|
cannam@89
|
11782 test -z "$ac_c_werror_flag" ||
|
cannam@89
|
11783 test ! -s conftest.err
|
cannam@89
|
11784 } && test -s conftest.$ac_objext; then
|
cannam@89
|
11785 ac_cv_type_size_t=yes
|
cannam@89
|
11786 else
|
cannam@89
|
11787 echo "$as_me: failed program was:" >&5
|
cannam@89
|
11788 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@89
|
11789
|
cannam@89
|
11790 ac_cv_type_size_t=no
|
cannam@89
|
11791 fi
|
cannam@89
|
11792
|
cannam@89
|
11793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@89
|
11794 fi
|
cannam@89
|
11795 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
|
cannam@89
|
11796 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
|
cannam@89
|
11797 if test $ac_cv_type_size_t = yes; then
|
cannam@89
|
11798 :
|
cannam@89
|
11799 else
|
cannam@89
|
11800
|
cannam@89
|
11801 cat >>confdefs.h <<_ACEOF
|
cannam@89
|
11802 #define size_t unsigned int
|
cannam@89
|
11803 _ACEOF
|
cannam@89
|
11804
|
cannam@89
|
11805 fi
|
cannam@89
|
11806
|
cannam@89
|
11807
|
cannam@89
|
11808 # Check for features
|
cannam@89
|
11809 { echo "$as_me:$LINENO: checking for select" >&5
|
cannam@89
|
11810 echo $ECHO_N "checking for select... $ECHO_C" >&6; }
|
cannam@89
|
11811 if test "${ac_cv_func_select+set}" = set; then
|
cannam@89
|
11812 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
11813 else
|
cannam@89
|
11814 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
11815 /* confdefs.h. */
|
cannam@89
|
11816 _ACEOF
|
cannam@89
|
11817 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
11818 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
11819 /* end confdefs.h. */
|
cannam@89
|
11820 /* Define select to an innocuous variant, in case <limits.h> declares select.
|
cannam@89
|
11821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
cannam@89
|
11822 #define select innocuous_select
|
cannam@89
|
11823
|
cannam@89
|
11824 /* System header to define __stub macros and hopefully few prototypes,
|
cannam@89
|
11825 which can conflict with char select (); below.
|
cannam@89
|
11826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
cannam@89
|
11827 <limits.h> exists even on freestanding compilers. */
|
cannam@89
|
11828
|
cannam@89
|
11829 #ifdef __STDC__
|
cannam@89
|
11830 # include <limits.h>
|
cannam@89
|
11831 #else
|
cannam@89
|
11832 # include <assert.h>
|
cannam@89
|
11833 #endif
|
cannam@89
|
11834
|
cannam@89
|
11835 #undef select
|
cannam@89
|
11836
|
cannam@89
|
11837 /* Override any GCC internal prototype to avoid an error.
|
cannam@89
|
11838 Use char because int might match the return type of a GCC
|
cannam@89
|
11839 builtin and then its argument prototype would still apply. */
|
cannam@89
|
11840 #ifdef __cplusplus
|
cannam@89
|
11841 extern "C"
|
cannam@89
|
11842 #endif
|
cannam@89
|
11843 char select ();
|
cannam@89
|
11844 /* The GNU C library defines this for functions which it implements
|
cannam@89
|
11845 to always fail with ENOSYS. Some functions are actually named
|
cannam@89
|
11846 something starting with __ and the normal name is an alias. */
|
cannam@89
|
11847 #if defined __stub_select || defined __stub___select
|
cannam@89
|
11848 choke me
|
cannam@89
|
11849 #endif
|
cannam@89
|
11850
|
cannam@89
|
11851 int
|
cannam@89
|
11852 main ()
|
cannam@89
|
11853 {
|
cannam@89
|
11854 return select ();
|
cannam@89
|
11855 ;
|
cannam@89
|
11856 return 0;
|
cannam@89
|
11857 }
|
cannam@89
|
11858 _ACEOF
|
cannam@89
|
11859 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@89
|
11860 if { (ac_try="$ac_link"
|
cannam@89
|
11861 case "(($ac_try" in
|
cannam@89
|
11862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
11863 *) ac_try_echo=$ac_try;;
|
cannam@89
|
11864 esac
|
cannam@89
|
11865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
11866 (eval "$ac_link") 2>conftest.er1
|
cannam@89
|
11867 ac_status=$?
|
cannam@89
|
11868 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@89
|
11869 rm -f conftest.er1
|
cannam@89
|
11870 cat conftest.err >&5
|
cannam@89
|
11871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
11872 (exit $ac_status); } && {
|
cannam@89
|
11873 test -z "$ac_c_werror_flag" ||
|
cannam@89
|
11874 test ! -s conftest.err
|
cannam@89
|
11875 } && test -s conftest$ac_exeext &&
|
cannam@89
|
11876 $as_test_x conftest$ac_exeext; then
|
cannam@89
|
11877 ac_cv_func_select=yes
|
cannam@89
|
11878 else
|
cannam@89
|
11879 echo "$as_me: failed program was:" >&5
|
cannam@89
|
11880 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@89
|
11881
|
cannam@89
|
11882 ac_cv_func_select=no
|
cannam@89
|
11883 fi
|
cannam@89
|
11884
|
cannam@89
|
11885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
cannam@89
|
11886 conftest$ac_exeext conftest.$ac_ext
|
cannam@89
|
11887 fi
|
cannam@89
|
11888 { echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
|
cannam@89
|
11889 echo "${ECHO_T}$ac_cv_func_select" >&6; }
|
cannam@89
|
11890 if test $ac_cv_func_select = yes; then
|
cannam@89
|
11891
|
cannam@89
|
11892 cat >>confdefs.h <<\_ACEOF
|
cannam@89
|
11893 #define HAVE_SELECT 1
|
cannam@89
|
11894 _ACEOF
|
cannam@89
|
11895
|
cannam@89
|
11896 else
|
cannam@89
|
11897
|
cannam@89
|
11898 { echo "$as_me:$LINENO: checking for select in ws2_32" >&5
|
cannam@89
|
11899 echo $ECHO_N "checking for select in ws2_32... $ECHO_C" >&6; }
|
cannam@89
|
11900 LIBS="$LIBS -lws2_32"
|
cannam@89
|
11901 # some winsock2 functions require XP, so WINNT=0x501
|
cannam@89
|
11902 CFLAGS="$CFLAGS -DWIN32 -D_WIN32_WINNT=0x501"
|
cannam@89
|
11903 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
11904 /* confdefs.h. */
|
cannam@89
|
11905 _ACEOF
|
cannam@89
|
11906 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
11907 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
11908 /* end confdefs.h. */
|
cannam@89
|
11909 #include <winsock2.h>
|
cannam@89
|
11910 int
|
cannam@89
|
11911 main ()
|
cannam@89
|
11912 {
|
cannam@89
|
11913 select(0,0,0,0,0)
|
cannam@89
|
11914 ;
|
cannam@89
|
11915 return 0;
|
cannam@89
|
11916 }
|
cannam@89
|
11917 _ACEOF
|
cannam@89
|
11918 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@89
|
11919 if { (ac_try="$ac_link"
|
cannam@89
|
11920 case "(($ac_try" in
|
cannam@89
|
11921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
11922 *) ac_try_echo=$ac_try;;
|
cannam@89
|
11923 esac
|
cannam@89
|
11924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
11925 (eval "$ac_link") 2>conftest.er1
|
cannam@89
|
11926 ac_status=$?
|
cannam@89
|
11927 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@89
|
11928 rm -f conftest.er1
|
cannam@89
|
11929 cat conftest.err >&5
|
cannam@89
|
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
11931 (exit $ac_status); } && {
|
cannam@89
|
11932 test -z "$ac_c_werror_flag" ||
|
cannam@89
|
11933 test ! -s conftest.err
|
cannam@89
|
11934 } && test -s conftest$ac_exeext &&
|
cannam@89
|
11935 $as_test_x conftest$ac_exeext; then
|
cannam@89
|
11936 { echo "$as_me:$LINENO: result: yes" >&5
|
cannam@89
|
11937 echo "${ECHO_T}yes" >&6; }
|
cannam@89
|
11938
|
cannam@89
|
11939 cat >>confdefs.h <<\_ACEOF
|
cannam@89
|
11940 #define HAVE_SELECT 1
|
cannam@89
|
11941 _ACEOF
|
cannam@89
|
11942
|
cannam@89
|
11943 else
|
cannam@89
|
11944 echo "$as_me: failed program was:" >&5
|
cannam@89
|
11945 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@89
|
11946
|
cannam@89
|
11947 { echo "$as_me:$LINENO: result: no" >&5
|
cannam@89
|
11948 echo "${ECHO_T}no" >&6; }
|
cannam@89
|
11949 fi
|
cannam@89
|
11950
|
cannam@89
|
11951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
cannam@89
|
11952 conftest$ac_exeext conftest.$ac_ext
|
cannam@89
|
11953
|
cannam@89
|
11954 fi
|
cannam@89
|
11955
|
cannam@89
|
11956 { echo "$as_me:$LINENO: checking for poll" >&5
|
cannam@89
|
11957 echo $ECHO_N "checking for poll... $ECHO_C" >&6; }
|
cannam@89
|
11958 if test "${ac_cv_func_poll+set}" = set; then
|
cannam@89
|
11959 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
11960 else
|
cannam@89
|
11961 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
11962 /* confdefs.h. */
|
cannam@89
|
11963 _ACEOF
|
cannam@89
|
11964 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
11965 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
11966 /* end confdefs.h. */
|
cannam@89
|
11967 /* Define poll to an innocuous variant, in case <limits.h> declares poll.
|
cannam@89
|
11968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
cannam@89
|
11969 #define poll innocuous_poll
|
cannam@89
|
11970
|
cannam@89
|
11971 /* System header to define __stub macros and hopefully few prototypes,
|
cannam@89
|
11972 which can conflict with char poll (); below.
|
cannam@89
|
11973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
cannam@89
|
11974 <limits.h> exists even on freestanding compilers. */
|
cannam@89
|
11975
|
cannam@89
|
11976 #ifdef __STDC__
|
cannam@89
|
11977 # include <limits.h>
|
cannam@89
|
11978 #else
|
cannam@89
|
11979 # include <assert.h>
|
cannam@89
|
11980 #endif
|
cannam@89
|
11981
|
cannam@89
|
11982 #undef poll
|
cannam@89
|
11983
|
cannam@89
|
11984 /* Override any GCC internal prototype to avoid an error.
|
cannam@89
|
11985 Use char because int might match the return type of a GCC
|
cannam@89
|
11986 builtin and then its argument prototype would still apply. */
|
cannam@89
|
11987 #ifdef __cplusplus
|
cannam@89
|
11988 extern "C"
|
cannam@89
|
11989 #endif
|
cannam@89
|
11990 char poll ();
|
cannam@89
|
11991 /* The GNU C library defines this for functions which it implements
|
cannam@89
|
11992 to always fail with ENOSYS. Some functions are actually named
|
cannam@89
|
11993 something starting with __ and the normal name is an alias. */
|
cannam@89
|
11994 #if defined __stub_poll || defined __stub___poll
|
cannam@89
|
11995 choke me
|
cannam@89
|
11996 #endif
|
cannam@89
|
11997
|
cannam@89
|
11998 int
|
cannam@89
|
11999 main ()
|
cannam@89
|
12000 {
|
cannam@89
|
12001 return poll ();
|
cannam@89
|
12002 ;
|
cannam@89
|
12003 return 0;
|
cannam@89
|
12004 }
|
cannam@89
|
12005 _ACEOF
|
cannam@89
|
12006 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@89
|
12007 if { (ac_try="$ac_link"
|
cannam@89
|
12008 case "(($ac_try" in
|
cannam@89
|
12009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
12010 *) ac_try_echo=$ac_try;;
|
cannam@89
|
12011 esac
|
cannam@89
|
12012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
12013 (eval "$ac_link") 2>conftest.er1
|
cannam@89
|
12014 ac_status=$?
|
cannam@89
|
12015 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@89
|
12016 rm -f conftest.er1
|
cannam@89
|
12017 cat conftest.err >&5
|
cannam@89
|
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
12019 (exit $ac_status); } && {
|
cannam@89
|
12020 test -z "$ac_c_werror_flag" ||
|
cannam@89
|
12021 test ! -s conftest.err
|
cannam@89
|
12022 } && test -s conftest$ac_exeext &&
|
cannam@89
|
12023 $as_test_x conftest$ac_exeext; then
|
cannam@89
|
12024 ac_cv_func_poll=yes
|
cannam@89
|
12025 else
|
cannam@89
|
12026 echo "$as_me: failed program was:" >&5
|
cannam@89
|
12027 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@89
|
12028
|
cannam@89
|
12029 ac_cv_func_poll=no
|
cannam@89
|
12030 fi
|
cannam@89
|
12031
|
cannam@89
|
12032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
cannam@89
|
12033 conftest$ac_exeext conftest.$ac_ext
|
cannam@89
|
12034 fi
|
cannam@89
|
12035 { echo "$as_me:$LINENO: result: $ac_cv_func_poll" >&5
|
cannam@89
|
12036 echo "${ECHO_T}$ac_cv_func_poll" >&6; }
|
cannam@89
|
12037 if test $ac_cv_func_poll = yes; then
|
cannam@89
|
12038
|
cannam@89
|
12039 cat >>confdefs.h <<\_ACEOF
|
cannam@89
|
12040 #define HAVE_POLL 1
|
cannam@89
|
12041 _ACEOF
|
cannam@89
|
12042
|
cannam@89
|
12043 fi
|
cannam@89
|
12044
|
cannam@89
|
12045 { echo "$as_me:$LINENO: checking for inet_aton" >&5
|
cannam@89
|
12046 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
|
cannam@89
|
12047 if test "${ac_cv_func_inet_aton+set}" = set; then
|
cannam@89
|
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
12049 else
|
cannam@89
|
12050 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
12051 /* confdefs.h. */
|
cannam@89
|
12052 _ACEOF
|
cannam@89
|
12053 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
12054 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
12055 /* end confdefs.h. */
|
cannam@89
|
12056 /* Define inet_aton to an innocuous variant, in case <limits.h> declares inet_aton.
|
cannam@89
|
12057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
cannam@89
|
12058 #define inet_aton innocuous_inet_aton
|
cannam@89
|
12059
|
cannam@89
|
12060 /* System header to define __stub macros and hopefully few prototypes,
|
cannam@89
|
12061 which can conflict with char inet_aton (); below.
|
cannam@89
|
12062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
cannam@89
|
12063 <limits.h> exists even on freestanding compilers. */
|
cannam@89
|
12064
|
cannam@89
|
12065 #ifdef __STDC__
|
cannam@89
|
12066 # include <limits.h>
|
cannam@89
|
12067 #else
|
cannam@89
|
12068 # include <assert.h>
|
cannam@89
|
12069 #endif
|
cannam@89
|
12070
|
cannam@89
|
12071 #undef inet_aton
|
cannam@89
|
12072
|
cannam@89
|
12073 /* Override any GCC internal prototype to avoid an error.
|
cannam@89
|
12074 Use char because int might match the return type of a GCC
|
cannam@89
|
12075 builtin and then its argument prototype would still apply. */
|
cannam@89
|
12076 #ifdef __cplusplus
|
cannam@89
|
12077 extern "C"
|
cannam@89
|
12078 #endif
|
cannam@89
|
12079 char inet_aton ();
|
cannam@89
|
12080 /* The GNU C library defines this for functions which it implements
|
cannam@89
|
12081 to always fail with ENOSYS. Some functions are actually named
|
cannam@89
|
12082 something starting with __ and the normal name is an alias. */
|
cannam@89
|
12083 #if defined __stub_inet_aton || defined __stub___inet_aton
|
cannam@89
|
12084 choke me
|
cannam@89
|
12085 #endif
|
cannam@89
|
12086
|
cannam@89
|
12087 int
|
cannam@89
|
12088 main ()
|
cannam@89
|
12089 {
|
cannam@89
|
12090 return inet_aton ();
|
cannam@89
|
12091 ;
|
cannam@89
|
12092 return 0;
|
cannam@89
|
12093 }
|
cannam@89
|
12094 _ACEOF
|
cannam@89
|
12095 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@89
|
12096 if { (ac_try="$ac_link"
|
cannam@89
|
12097 case "(($ac_try" in
|
cannam@89
|
12098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
12099 *) ac_try_echo=$ac_try;;
|
cannam@89
|
12100 esac
|
cannam@89
|
12101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
12102 (eval "$ac_link") 2>conftest.er1
|
cannam@89
|
12103 ac_status=$?
|
cannam@89
|
12104 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@89
|
12105 rm -f conftest.er1
|
cannam@89
|
12106 cat conftest.err >&5
|
cannam@89
|
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
12108 (exit $ac_status); } && {
|
cannam@89
|
12109 test -z "$ac_c_werror_flag" ||
|
cannam@89
|
12110 test ! -s conftest.err
|
cannam@89
|
12111 } && test -s conftest$ac_exeext &&
|
cannam@89
|
12112 $as_test_x conftest$ac_exeext; then
|
cannam@89
|
12113 ac_cv_func_inet_aton=yes
|
cannam@89
|
12114 else
|
cannam@89
|
12115 echo "$as_me: failed program was:" >&5
|
cannam@89
|
12116 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@89
|
12117
|
cannam@89
|
12118 ac_cv_func_inet_aton=no
|
cannam@89
|
12119 fi
|
cannam@89
|
12120
|
cannam@89
|
12121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
cannam@89
|
12122 conftest$ac_exeext conftest.$ac_ext
|
cannam@89
|
12123 fi
|
cannam@89
|
12124 { echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton" >&5
|
cannam@89
|
12125 echo "${ECHO_T}$ac_cv_func_inet_aton" >&6; }
|
cannam@89
|
12126 if test $ac_cv_func_inet_aton = yes; then
|
cannam@89
|
12127
|
cannam@89
|
12128 cat >>confdefs.h <<\_ACEOF
|
cannam@89
|
12129 #define HAVE_INET_ATON 1
|
cannam@89
|
12130 _ACEOF
|
cannam@89
|
12131
|
cannam@89
|
12132 fi
|
cannam@89
|
12133
|
cannam@89
|
12134
|
cannam@89
|
12135 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
|
cannam@89
|
12136 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
|
cannam@89
|
12137 if test "${ac_cv_c_bigendian+set}" = set; then
|
cannam@89
|
12138 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@89
|
12139 else
|
cannam@89
|
12140 # See if sys/param.h defines the BYTE_ORDER macro.
|
cannam@89
|
12141 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
12142 /* confdefs.h. */
|
cannam@89
|
12143 _ACEOF
|
cannam@89
|
12144 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
12145 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
12146 /* end confdefs.h. */
|
cannam@89
|
12147 #include <sys/types.h>
|
cannam@89
|
12148 #include <sys/param.h>
|
cannam@89
|
12149
|
cannam@89
|
12150 int
|
cannam@89
|
12151 main ()
|
cannam@89
|
12152 {
|
cannam@89
|
12153 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
|
cannam@89
|
12154 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
|
cannam@89
|
12155 bogus endian macros
|
cannam@89
|
12156 #endif
|
cannam@89
|
12157
|
cannam@89
|
12158 ;
|
cannam@89
|
12159 return 0;
|
cannam@89
|
12160 }
|
cannam@89
|
12161 _ACEOF
|
cannam@89
|
12162 rm -f conftest.$ac_objext
|
cannam@89
|
12163 if { (ac_try="$ac_compile"
|
cannam@89
|
12164 case "(($ac_try" in
|
cannam@89
|
12165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
12166 *) ac_try_echo=$ac_try;;
|
cannam@89
|
12167 esac
|
cannam@89
|
12168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
12169 (eval "$ac_compile") 2>conftest.er1
|
cannam@89
|
12170 ac_status=$?
|
cannam@89
|
12171 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@89
|
12172 rm -f conftest.er1
|
cannam@89
|
12173 cat conftest.err >&5
|
cannam@89
|
12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
12175 (exit $ac_status); } && {
|
cannam@89
|
12176 test -z "$ac_c_werror_flag" ||
|
cannam@89
|
12177 test ! -s conftest.err
|
cannam@89
|
12178 } && test -s conftest.$ac_objext; then
|
cannam@89
|
12179 # It does; now see whether it defined to BIG_ENDIAN or not.
|
cannam@89
|
12180 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
12181 /* confdefs.h. */
|
cannam@89
|
12182 _ACEOF
|
cannam@89
|
12183 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
12184 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
12185 /* end confdefs.h. */
|
cannam@89
|
12186 #include <sys/types.h>
|
cannam@89
|
12187 #include <sys/param.h>
|
cannam@89
|
12188
|
cannam@89
|
12189 int
|
cannam@89
|
12190 main ()
|
cannam@89
|
12191 {
|
cannam@89
|
12192 #if BYTE_ORDER != BIG_ENDIAN
|
cannam@89
|
12193 not big endian
|
cannam@89
|
12194 #endif
|
cannam@89
|
12195
|
cannam@89
|
12196 ;
|
cannam@89
|
12197 return 0;
|
cannam@89
|
12198 }
|
cannam@89
|
12199 _ACEOF
|
cannam@89
|
12200 rm -f conftest.$ac_objext
|
cannam@89
|
12201 if { (ac_try="$ac_compile"
|
cannam@89
|
12202 case "(($ac_try" in
|
cannam@89
|
12203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
12204 *) ac_try_echo=$ac_try;;
|
cannam@89
|
12205 esac
|
cannam@89
|
12206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
12207 (eval "$ac_compile") 2>conftest.er1
|
cannam@89
|
12208 ac_status=$?
|
cannam@89
|
12209 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@89
|
12210 rm -f conftest.er1
|
cannam@89
|
12211 cat conftest.err >&5
|
cannam@89
|
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
12213 (exit $ac_status); } && {
|
cannam@89
|
12214 test -z "$ac_c_werror_flag" ||
|
cannam@89
|
12215 test ! -s conftest.err
|
cannam@89
|
12216 } && test -s conftest.$ac_objext; then
|
cannam@89
|
12217 ac_cv_c_bigendian=yes
|
cannam@89
|
12218 else
|
cannam@89
|
12219 echo "$as_me: failed program was:" >&5
|
cannam@89
|
12220 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@89
|
12221
|
cannam@89
|
12222 ac_cv_c_bigendian=no
|
cannam@89
|
12223 fi
|
cannam@89
|
12224
|
cannam@89
|
12225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@89
|
12226 else
|
cannam@89
|
12227 echo "$as_me: failed program was:" >&5
|
cannam@89
|
12228 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@89
|
12229
|
cannam@89
|
12230 # It does not; compile a test program.
|
cannam@89
|
12231 if test "$cross_compiling" = yes; then
|
cannam@89
|
12232 # try to guess the endianness by grepping values into an object file
|
cannam@89
|
12233 ac_cv_c_bigendian=unknown
|
cannam@89
|
12234 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
12235 /* confdefs.h. */
|
cannam@89
|
12236 _ACEOF
|
cannam@89
|
12237 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
12238 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
12239 /* end confdefs.h. */
|
cannam@89
|
12240 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
cannam@89
|
12241 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
cannam@89
|
12242 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
|
cannam@89
|
12243 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
cannam@89
|
12244 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
cannam@89
|
12245 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
|
cannam@89
|
12246 int
|
cannam@89
|
12247 main ()
|
cannam@89
|
12248 {
|
cannam@89
|
12249 _ascii (); _ebcdic ();
|
cannam@89
|
12250 ;
|
cannam@89
|
12251 return 0;
|
cannam@89
|
12252 }
|
cannam@89
|
12253 _ACEOF
|
cannam@89
|
12254 rm -f conftest.$ac_objext
|
cannam@89
|
12255 if { (ac_try="$ac_compile"
|
cannam@89
|
12256 case "(($ac_try" in
|
cannam@89
|
12257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
12258 *) ac_try_echo=$ac_try;;
|
cannam@89
|
12259 esac
|
cannam@89
|
12260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
12261 (eval "$ac_compile") 2>conftest.er1
|
cannam@89
|
12262 ac_status=$?
|
cannam@89
|
12263 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@89
|
12264 rm -f conftest.er1
|
cannam@89
|
12265 cat conftest.err >&5
|
cannam@89
|
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
12267 (exit $ac_status); } && {
|
cannam@89
|
12268 test -z "$ac_c_werror_flag" ||
|
cannam@89
|
12269 test ! -s conftest.err
|
cannam@89
|
12270 } && test -s conftest.$ac_objext; then
|
cannam@89
|
12271 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
|
cannam@89
|
12272 ac_cv_c_bigendian=yes
|
cannam@89
|
12273 fi
|
cannam@89
|
12274 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
cannam@89
|
12275 if test "$ac_cv_c_bigendian" = unknown; then
|
cannam@89
|
12276 ac_cv_c_bigendian=no
|
cannam@89
|
12277 else
|
cannam@89
|
12278 # finding both strings is unlikely to happen, but who knows?
|
cannam@89
|
12279 ac_cv_c_bigendian=unknown
|
cannam@89
|
12280 fi
|
cannam@89
|
12281 fi
|
cannam@89
|
12282 else
|
cannam@89
|
12283 echo "$as_me: failed program was:" >&5
|
cannam@89
|
12284 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@89
|
12285
|
cannam@89
|
12286
|
cannam@89
|
12287 fi
|
cannam@89
|
12288
|
cannam@89
|
12289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@89
|
12290 else
|
cannam@89
|
12291 cat >conftest.$ac_ext <<_ACEOF
|
cannam@89
|
12292 /* confdefs.h. */
|
cannam@89
|
12293 _ACEOF
|
cannam@89
|
12294 cat confdefs.h >>conftest.$ac_ext
|
cannam@89
|
12295 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@89
|
12296 /* end confdefs.h. */
|
cannam@89
|
12297 $ac_includes_default
|
cannam@89
|
12298 int
|
cannam@89
|
12299 main ()
|
cannam@89
|
12300 {
|
cannam@89
|
12301
|
cannam@89
|
12302 /* Are we little or big endian? From Harbison&Steele. */
|
cannam@89
|
12303 union
|
cannam@89
|
12304 {
|
cannam@89
|
12305 long int l;
|
cannam@89
|
12306 char c[sizeof (long int)];
|
cannam@89
|
12307 } u;
|
cannam@89
|
12308 u.l = 1;
|
cannam@89
|
12309 return u.c[sizeof (long int) - 1] == 1;
|
cannam@89
|
12310
|
cannam@89
|
12311 ;
|
cannam@89
|
12312 return 0;
|
cannam@89
|
12313 }
|
cannam@89
|
12314 _ACEOF
|
cannam@89
|
12315 rm -f conftest$ac_exeext
|
cannam@89
|
12316 if { (ac_try="$ac_link"
|
cannam@89
|
12317 case "(($ac_try" in
|
cannam@89
|
12318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
12319 *) ac_try_echo=$ac_try;;
|
cannam@89
|
12320 esac
|
cannam@89
|
12321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
12322 (eval "$ac_link") 2>&5
|
cannam@89
|
12323 ac_status=$?
|
cannam@89
|
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
12325 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
cannam@89
|
12326 { (case "(($ac_try" in
|
cannam@89
|
12327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@89
|
12328 *) ac_try_echo=$ac_try;;
|
cannam@89
|
12329 esac
|
cannam@89
|
12330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
cannam@89
|
12331 (eval "$ac_try") 2>&5
|
cannam@89
|
12332 ac_status=$?
|
cannam@89
|
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@89
|
12334 (exit $ac_status); }; }; then
|
cannam@89
|
12335 ac_cv_c_bigendian=no
|
cannam@89
|
12336 else
|
cannam@89
|
12337 echo "$as_me: program exited with status $ac_status" >&5
|
cannam@89
|
12338 echo "$as_me: failed program was:" >&5
|
cannam@89
|
12339 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@89
|
12340
|
cannam@89
|
12341 ( exit $ac_status )
|
cannam@89
|
12342 ac_cv_c_bigendian=yes
|
cannam@89
|
12343 fi
|
cannam@89
|
12344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
cannam@89
|
12345 fi
|
cannam@89
|
12346
|
cannam@89
|
12347
|
cannam@89
|
12348 fi
|
cannam@89
|
12349
|
cannam@89
|
12350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@89
|
12351 fi
|
cannam@89
|
12352 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
|
cannam@89
|
12353 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
|
cannam@89
|
12354 case $ac_cv_c_bigendian in
|
cannam@89
|
12355 yes)
|
cannam@89
|
12356 LO_BIGENDIAN="1" ;;
|
cannam@89
|
12357 no)
|
cannam@89
|
12358 LO_BIGENDIAN="0" ;;
|
cannam@89
|
12359 *)
|
cannam@89
|
12360 { { echo "$as_me:$LINENO: error: unknown endianness
|
cannam@89
|
12361 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
|
cannam@89
|
12362 echo "$as_me: error: unknown endianness
|
cannam@89
|
12363 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
|
cannam@89
|
12364 { (exit 1); exit 1; }; } ;;
|
cannam@89
|
12365 esac
|
cannam@89
|
12366
|
cannam@89
|
12367
|
cannam@89
|
12368 cat >>confdefs.h <<_ACEOF
|
cannam@89
|
12369 #define LO_BIGENDIAN "$LO_BIGENDIAN"
|
cannam@89
|
12370 _ACEOF
|
cannam@89
|
12371
|
cannam@89
|
12372
|
cannam@89
|
12373
|
cannam@89
|
12374 ac_config_files="$ac_config_files Makefile src/Makefile src/tools/Makefile examples/Makefile lo/Makefile lo/lo_endian.h liblo.pc doc/Makefile doc/reference.doxygen build/Makefile"
|
cannam@89
|
12375
|
cannam@89
|
12376 cat >confcache <<\_ACEOF
|
cannam@89
|
12377 # This file is a shell script that caches the results of configure
|
cannam@89
|
12378 # tests run on this system so they can be shared between configure
|
cannam@89
|
12379 # scripts and configure runs, see configure's option --config-cache.
|
cannam@89
|
12380 # It is not useful on other systems. If it contains results you don't
|
cannam@89
|
12381 # want to keep, you may remove or edit it.
|
cannam@89
|
12382 #
|
cannam@89
|
12383 # config.status only pays attention to the cache file if you give it
|
cannam@89
|
12384 # the --recheck option to rerun configure.
|
cannam@89
|
12385 #
|
cannam@89
|
12386 # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
cannam@89
|
12387 # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
cannam@89
|
12388 # following values.
|
cannam@89
|
12389
|
cannam@89
|
12390 _ACEOF
|
cannam@89
|
12391
|
cannam@89
|
12392 # The following way of writing the cache mishandles newlines in values,
|
cannam@89
|
12393 # but we know of no workaround that is simple, portable, and efficient.
|
cannam@89
|
12394 # So, we kill variables containing newlines.
|
cannam@89
|
12395 # Ultrix sh set writes to stderr and can't be redirected directly,
|
cannam@89
|
12396 # and sets the high bit in the cache file unless we assign to the vars.
|
cannam@89
|
12397 (
|
cannam@89
|
12398 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
|
cannam@89
|
12399 eval ac_val=\$$ac_var
|
cannam@89
|
12400 case $ac_val in #(
|
cannam@89
|
12401 *${as_nl}*)
|
cannam@89
|
12402 case $ac_var in #(
|
cannam@89
|
12403 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
|
cannam@89
|
12404 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
|
cannam@89
|
12405 esac
|
cannam@89
|
12406 case $ac_var in #(
|
cannam@89
|
12407 _ | IFS | as_nl) ;; #(
|
cannam@89
|
12408 *) $as_unset $ac_var ;;
|
cannam@89
|
12409 esac ;;
|
cannam@89
|
12410 esac
|
cannam@89
|
12411 done
|
cannam@89
|
12412
|
cannam@89
|
12413 (set) 2>&1 |
|
cannam@89
|
12414 case $as_nl`(ac_space=' '; set) 2>&1` in #(
|
cannam@89
|
12415 *${as_nl}ac_space=\ *)
|
cannam@89
|
12416 # `set' does not quote correctly, so add quotes (double-quote
|
cannam@89
|
12417 # substitution turns \\\\ into \\, and sed turns \\ into \).
|
cannam@89
|
12418 sed -n \
|
cannam@89
|
12419 "s/'/'\\\\''/g;
|
cannam@89
|
12420 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
cannam@89
|
12421 ;; #(
|
cannam@89
|
12422 *)
|
cannam@89
|
12423 # `set' quotes correctly as required by POSIX, so do not add quotes.
|
cannam@89
|
12424 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
cannam@89
|
12425 ;;
|
cannam@89
|
12426 esac |
|
cannam@89
|
12427 sort
|
cannam@89
|
12428 ) |
|
cannam@89
|
12429 sed '
|
cannam@89
|
12430 /^ac_cv_env_/b end
|
cannam@89
|
12431 t clear
|
cannam@89
|
12432 :clear
|
cannam@89
|
12433 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
cannam@89
|
12434 t end
|
cannam@89
|
12435 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
cannam@89
|
12436 :end' >>confcache
|
cannam@89
|
12437 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
|
cannam@89
|
12438 if test -w "$cache_file"; then
|
cannam@89
|
12439 test "x$cache_file" != "x/dev/null" &&
|
cannam@89
|
12440 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
|
cannam@89
|
12441 echo "$as_me: updating cache $cache_file" >&6;}
|
cannam@89
|
12442 cat confcache >$cache_file
|
cannam@89
|
12443 else
|
cannam@89
|
12444 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
|
cannam@89
|
12445 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
|
cannam@89
|
12446 fi
|
cannam@89
|
12447 fi
|
cannam@89
|
12448 rm -f confcache
|
cannam@89
|
12449
|
cannam@89
|
12450 test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
cannam@89
|
12451 # Let make expand exec_prefix.
|
cannam@89
|
12452 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
cannam@89
|
12453
|
cannam@89
|
12454 DEFS=-DHAVE_CONFIG_H
|
cannam@89
|
12455
|
cannam@89
|
12456 ac_libobjs=
|
cannam@89
|
12457 ac_ltlibobjs=
|
cannam@89
|
12458 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
cannam@89
|
12459 # 1. Remove the extension, and $U if already installed.
|
cannam@89
|
12460 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
|
cannam@89
|
12461 ac_i=`echo "$ac_i" | sed "$ac_script"`
|
cannam@89
|
12462 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
|
cannam@89
|
12463 # will be set to the directory where LIBOBJS objects are built.
|
cannam@89
|
12464 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
|
cannam@89
|
12465 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
|
cannam@89
|
12466 done
|
cannam@89
|
12467 LIBOBJS=$ac_libobjs
|
cannam@89
|
12468
|
cannam@89
|
12469 LTLIBOBJS=$ac_ltlibobjs
|
cannam@89
|
12470
|
cannam@89
|
12471
|
cannam@89
|
12472 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
|
cannam@89
|
12473 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
|
cannam@89
|
12474 Usually this means the macro was only invoked conditionally." >&5
|
cannam@89
|
12475 echo "$as_me: error: conditional \"AMDEP\" was never defined.
|
cannam@89
|
12476 Usually this means the macro was only invoked conditionally." >&2;}
|
cannam@89
|
12477 { (exit 1); exit 1; }; }
|
cannam@89
|
12478 fi
|
cannam@89
|
12479 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
|
cannam@89
|
12480 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
|
cannam@89
|
12481 Usually this means the macro was only invoked conditionally." >&5
|
cannam@89
|
12482 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
|
cannam@89
|
12483 Usually this means the macro was only invoked conditionally." >&2;}
|
cannam@89
|
12484 { (exit 1); exit 1; }; }
|
cannam@89
|
12485 fi
|
cannam@89
|
12486
|
cannam@89
|
12487 : ${CONFIG_STATUS=./config.status}
|
cannam@89
|
12488 ac_clean_files_save=$ac_clean_files
|
cannam@89
|
12489 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
cannam@89
|
12490 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
|
cannam@89
|
12491 echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
cannam@89
|
12492 cat >$CONFIG_STATUS <<_ACEOF
|
cannam@89
|
12493 #! $SHELL
|
cannam@89
|
12494 # Generated by $as_me.
|
cannam@89
|
12495 # Run this file to recreate the current configuration.
|
cannam@89
|
12496 # Compiler output produced by configure, useful for debugging
|
cannam@89
|
12497 # configure, is in config.log if it exists.
|
cannam@89
|
12498
|
cannam@89
|
12499 debug=false
|
cannam@89
|
12500 ac_cs_recheck=false
|
cannam@89
|
12501 ac_cs_silent=false
|
cannam@89
|
12502 SHELL=\${CONFIG_SHELL-$SHELL}
|
cannam@89
|
12503 _ACEOF
|
cannam@89
|
12504
|
cannam@89
|
12505 cat >>$CONFIG_STATUS <<\_ACEOF
|
cannam@89
|
12506 ## --------------------- ##
|
cannam@89
|
12507 ## M4sh Initialization. ##
|
cannam@89
|
12508 ## --------------------- ##
|
cannam@89
|
12509
|
cannam@89
|
12510 # Be more Bourne compatible
|
cannam@89
|
12511 DUALCASE=1; export DUALCASE # for MKS sh
|
cannam@89
|
12512 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
cannam@89
|
12513 emulate sh
|
cannam@89
|
12514 NULLCMD=:
|
cannam@89
|
12515 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
cannam@89
|
12516 # is contrary to our usage. Disable this feature.
|
cannam@89
|
12517 alias -g '${1+"$@"}'='"$@"'
|
cannam@89
|
12518 setopt NO_GLOB_SUBST
|
cannam@89
|
12519 else
|
cannam@89
|
12520 case `(set -o) 2>/dev/null` in
|
cannam@89
|
12521 *posix*) set -o posix ;;
|
cannam@89
|
12522 esac
|
cannam@89
|
12523
|
cannam@89
|
12524 fi
|
cannam@89
|
12525
|
cannam@89
|
12526
|
cannam@89
|
12527
|
cannam@89
|
12528
|
cannam@89
|
12529 # PATH needs CR
|
cannam@89
|
12530 # Avoid depending upon Character Ranges.
|
cannam@89
|
12531 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
cannam@89
|
12532 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
cannam@89
|
12533 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
cannam@89
|
12534 as_cr_digits='0123456789'
|
cannam@89
|
12535 as_cr_alnum=$as_cr_Letters$as_cr_digits
|
cannam@89
|
12536
|
cannam@89
|
12537 # The user is always right.
|
cannam@89
|
12538 if test "${PATH_SEPARATOR+set}" != set; then
|
cannam@89
|
12539 echo "#! /bin/sh" >conf$$.sh
|
cannam@89
|
12540 echo "exit 0" >>conf$$.sh
|
cannam@89
|
12541 chmod +x conf$$.sh
|
cannam@89
|
12542 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
cannam@89
|
12543 PATH_SEPARATOR=';'
|
cannam@89
|
12544 else
|
cannam@89
|
12545 PATH_SEPARATOR=:
|
cannam@89
|
12546 fi
|
cannam@89
|
12547 rm -f conf$$.sh
|
cannam@89
|
12548 fi
|
cannam@89
|
12549
|
cannam@89
|
12550 # Support unset when possible.
|
cannam@89
|
12551 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
cannam@89
|
12552 as_unset=unset
|
cannam@89
|
12553 else
|
cannam@89
|
12554 as_unset=false
|
cannam@89
|
12555 fi
|
cannam@89
|
12556
|
cannam@89
|
12557
|
cannam@89
|
12558 # IFS
|
cannam@89
|
12559 # We need space, tab and new line, in precisely that order. Quoting is
|
cannam@89
|
12560 # there to prevent editors from complaining about space-tab.
|
cannam@89
|
12561 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
cannam@89
|
12562 # splitting by setting IFS to empty value.)
|
cannam@89
|
12563 as_nl='
|
cannam@89
|
12564 '
|
cannam@89
|
12565 IFS=" "" $as_nl"
|
cannam@89
|
12566
|
cannam@89
|
12567 # Find who we are. Look in the path if we contain no directory separator.
|
cannam@89
|
12568 case $0 in
|
cannam@89
|
12569 *[\\/]* ) as_myself=$0 ;;
|
cannam@89
|
12570 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@89
|
12571 for as_dir in $PATH
|
cannam@89
|
12572 do
|
cannam@89
|
12573 IFS=$as_save_IFS
|
cannam@89
|
12574 test -z "$as_dir" && as_dir=.
|
cannam@89
|
12575 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
cannam@89
|
12576 done
|
cannam@89
|
12577 IFS=$as_save_IFS
|
cannam@89
|
12578
|
cannam@89
|
12579 ;;
|
cannam@89
|
12580 esac
|
cannam@89
|
12581 # We did not find ourselves, most probably we were run as `sh COMMAND'
|
cannam@89
|
12582 # in which case we are not to be found in the path.
|
cannam@89
|
12583 if test "x$as_myself" = x; then
|
cannam@89
|
12584 as_myself=$0
|
cannam@89
|
12585 fi
|
cannam@89
|
12586 if test ! -f "$as_myself"; then
|
cannam@89
|
12587 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
cannam@89
|
12588 { (exit 1); exit 1; }
|
cannam@89
|
12589 fi
|
cannam@89
|
12590
|
cannam@89
|
12591 # Work around bugs in pre-3.0 UWIN ksh.
|
cannam@89
|
12592 for as_var in ENV MAIL MAILPATH
|
cannam@89
|
12593 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
cannam@89
|
12594 done
|
cannam@89
|
12595 PS1='$ '
|
cannam@89
|
12596 PS2='> '
|
cannam@89
|
12597 PS4='+ '
|
cannam@89
|
12598
|
cannam@89
|
12599 # NLS nuisances.
|
cannam@89
|
12600 for as_var in \
|
cannam@89
|
12601 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
cannam@89
|
12602 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
cannam@89
|
12603 LC_TELEPHONE LC_TIME
|
cannam@89
|
12604 do
|
cannam@89
|
12605 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
cannam@89
|
12606 eval $as_var=C; export $as_var
|
cannam@89
|
12607 else
|
cannam@89
|
12608 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
cannam@89
|
12609 fi
|
cannam@89
|
12610 done
|
cannam@89
|
12611
|
cannam@89
|
12612 # Required to use basename.
|
cannam@89
|
12613 if expr a : '\(a\)' >/dev/null 2>&1 &&
|
cannam@89
|
12614 test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
cannam@89
|
12615 as_expr=expr
|
cannam@89
|
12616 else
|
cannam@89
|
12617 as_expr=false
|
cannam@89
|
12618 fi
|
cannam@89
|
12619
|
cannam@89
|
12620 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
cannam@89
|
12621 as_basename=basename
|
cannam@89
|
12622 else
|
cannam@89
|
12623 as_basename=false
|
cannam@89
|
12624 fi
|
cannam@89
|
12625
|
cannam@89
|
12626
|
cannam@89
|
12627 # Name of the executable.
|
cannam@89
|
12628 as_me=`$as_basename -- "$0" ||
|
cannam@89
|
12629 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
cannam@89
|
12630 X"$0" : 'X\(//\)$' \| \
|
cannam@89
|
12631 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
cannam@89
|
12632 echo X/"$0" |
|
cannam@89
|
12633 sed '/^.*\/\([^/][^/]*\)\/*$/{
|
cannam@89
|
12634 s//\1/
|
cannam@89
|
12635 q
|
cannam@89
|
12636 }
|
cannam@89
|
12637 /^X\/\(\/\/\)$/{
|
cannam@89
|
12638 s//\1/
|
cannam@89
|
12639 q
|
cannam@89
|
12640 }
|
cannam@89
|
12641 /^X\/\(\/\).*/{
|
cannam@89
|
12642 s//\1/
|
cannam@89
|
12643 q
|
cannam@89
|
12644 }
|
cannam@89
|
12645 s/.*/./; q'`
|
cannam@89
|
12646
|
cannam@89
|
12647 # CDPATH.
|
cannam@89
|
12648 $as_unset CDPATH
|
cannam@89
|
12649
|
cannam@89
|
12650
|
cannam@89
|
12651
|
cannam@89
|
12652 as_lineno_1=$LINENO
|
cannam@89
|
12653 as_lineno_2=$LINENO
|
cannam@89
|
12654 test "x$as_lineno_1" != "x$as_lineno_2" &&
|
cannam@89
|
12655 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
|
cannam@89
|
12656
|
cannam@89
|
12657 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
cannam@89
|
12658 # uniformly replaced by the line number. The first 'sed' inserts a
|
cannam@89
|
12659 # line-number line after each line using $LINENO; the second 'sed'
|
cannam@89
|
12660 # does the real work. The second script uses 'N' to pair each
|
cannam@89
|
12661 # line-number line with the line containing $LINENO, and appends
|
cannam@89
|
12662 # trailing '-' during substitution so that $LINENO is not a special
|
cannam@89
|
12663 # case at line end.
|
cannam@89
|
12664 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
cannam@89
|
12665 # scripts with optimization help from Paolo Bonzini. Blame Lee
|
cannam@89
|
12666 # E. McMahon (1931-1989) for sed's syntax. :-)
|
cannam@89
|
12667 sed -n '
|
cannam@89
|
12668 p
|
cannam@89
|
12669 /[$]LINENO/=
|
cannam@89
|
12670 ' <$as_myself |
|
cannam@89
|
12671 sed '
|
cannam@89
|
12672 s/[$]LINENO.*/&-/
|
cannam@89
|
12673 t lineno
|
cannam@89
|
12674 b
|
cannam@89
|
12675 :lineno
|
cannam@89
|
12676 N
|
cannam@89
|
12677 :loop
|
cannam@89
|
12678 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
cannam@89
|
12679 t loop
|
cannam@89
|
12680 s/-\n.*//
|
cannam@89
|
12681 ' >$as_me.lineno &&
|
cannam@89
|
12682 chmod +x "$as_me.lineno" ||
|
cannam@89
|
12683 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
|
cannam@89
|
12684 { (exit 1); exit 1; }; }
|
cannam@89
|
12685
|
cannam@89
|
12686 # Don't try to exec as it changes $[0], causing all sort of problems
|
cannam@89
|
12687 # (the dirname of $[0] is not the place where we might find the
|
cannam@89
|
12688 # original and so on. Autoconf is especially sensitive to this).
|
cannam@89
|
12689 . "./$as_me.lineno"
|
cannam@89
|
12690 # Exit status is that of the last command.
|
cannam@89
|
12691 exit
|
cannam@89
|
12692 }
|
cannam@89
|
12693
|
cannam@89
|
12694
|
cannam@89
|
12695 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
cannam@89
|
12696 as_dirname=dirname
|
cannam@89
|
12697 else
|
cannam@89
|
12698 as_dirname=false
|
cannam@89
|
12699 fi
|
cannam@89
|
12700
|
cannam@89
|
12701 ECHO_C= ECHO_N= ECHO_T=
|
cannam@89
|
12702 case `echo -n x` in
|
cannam@89
|
12703 -n*)
|
cannam@89
|
12704 case `echo 'x\c'` in
|
cannam@89
|
12705 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
cannam@89
|
12706 *) ECHO_C='\c';;
|
cannam@89
|
12707 esac;;
|
cannam@89
|
12708 *)
|
cannam@89
|
12709 ECHO_N='-n';;
|
cannam@89
|
12710 esac
|
cannam@89
|
12711
|
cannam@89
|
12712 if expr a : '\(a\)' >/dev/null 2>&1 &&
|
cannam@89
|
12713 test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
cannam@89
|
12714 as_expr=expr
|
cannam@89
|
12715 else
|
cannam@89
|
12716 as_expr=false
|
cannam@89
|
12717 fi
|
cannam@89
|
12718
|
cannam@89
|
12719 rm -f conf$$ conf$$.exe conf$$.file
|
cannam@89
|
12720 if test -d conf$$.dir; then
|
cannam@89
|
12721 rm -f conf$$.dir/conf$$.file
|
cannam@89
|
12722 else
|
cannam@89
|
12723 rm -f conf$$.dir
|
cannam@89
|
12724 mkdir conf$$.dir
|
cannam@89
|
12725 fi
|
cannam@89
|
12726 echo >conf$$.file
|
cannam@89
|
12727 if ln -s conf$$.file conf$$ 2>/dev/null; then
|
cannam@89
|
12728 as_ln_s='ln -s'
|
cannam@89
|
12729 # ... but there are two gotchas:
|
cannam@89
|
12730 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
cannam@89
|
12731 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
cannam@89
|
12732 # In both cases, we have to default to `cp -p'.
|
cannam@89
|
12733 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
cannam@89
|
12734 as_ln_s='cp -p'
|
cannam@89
|
12735 elif ln conf$$.file conf$$ 2>/dev/null; then
|
cannam@89
|
12736 as_ln_s=ln
|
cannam@89
|
12737 else
|
cannam@89
|
12738 as_ln_s='cp -p'
|
cannam@89
|
12739 fi
|
cannam@89
|
12740 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
cannam@89
|
12741 rmdir conf$$.dir 2>/dev/null
|
cannam@89
|
12742
|
cannam@89
|
12743 if mkdir -p . 2>/dev/null; then
|
cannam@89
|
12744 as_mkdir_p=:
|
cannam@89
|
12745 else
|
cannam@89
|
12746 test -d ./-p && rmdir ./-p
|
cannam@89
|
12747 as_mkdir_p=false
|
cannam@89
|
12748 fi
|
cannam@89
|
12749
|
cannam@89
|
12750 if test -x / >/dev/null 2>&1; then
|
cannam@89
|
12751 as_test_x='test -x'
|
cannam@89
|
12752 else
|
cannam@89
|
12753 if ls -dL / >/dev/null 2>&1; then
|
cannam@89
|
12754 as_ls_L_option=L
|
cannam@89
|
12755 else
|
cannam@89
|
12756 as_ls_L_option=
|
cannam@89
|
12757 fi
|
cannam@89
|
12758 as_test_x='
|
cannam@89
|
12759 eval sh -c '\''
|
cannam@89
|
12760 if test -d "$1"; then
|
cannam@89
|
12761 test -d "$1/.";
|
cannam@89
|
12762 else
|
cannam@89
|
12763 case $1 in
|
cannam@89
|
12764 -*)set "./$1";;
|
cannam@89
|
12765 esac;
|
cannam@89
|
12766 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
|
cannam@89
|
12767 ???[sx]*):;;*)false;;esac;fi
|
cannam@89
|
12768 '\'' sh
|
cannam@89
|
12769 '
|
cannam@89
|
12770 fi
|
cannam@89
|
12771 as_executable_p=$as_test_x
|
cannam@89
|
12772
|
cannam@89
|
12773 # Sed expression to map a string onto a valid CPP name.
|
cannam@89
|
12774 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
cannam@89
|
12775
|
cannam@89
|
12776 # Sed expression to map a string onto a valid variable name.
|
cannam@89
|
12777 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
cannam@89
|
12778
|
cannam@89
|
12779
|
cannam@89
|
12780 exec 6>&1
|
cannam@89
|
12781
|
cannam@89
|
12782 # Save the log message, to keep $[0] and so on meaningful, and to
|
cannam@89
|
12783 # report actual input values of CONFIG_FILES etc. instead of their
|
cannam@89
|
12784 # values after options handling.
|
cannam@89
|
12785 ac_log="
|
cannam@89
|
12786 This file was extended by liblo $as_me 0.26, which was
|
cannam@89
|
12787 generated by GNU Autoconf 2.61. Invocation command line was
|
cannam@89
|
12788
|
cannam@89
|
12789 CONFIG_FILES = $CONFIG_FILES
|
cannam@89
|
12790 CONFIG_HEADERS = $CONFIG_HEADERS
|
cannam@89
|
12791 CONFIG_LINKS = $CONFIG_LINKS
|
cannam@89
|
12792 CONFIG_COMMANDS = $CONFIG_COMMANDS
|
cannam@89
|
12793 $ $0 $@
|
cannam@89
|
12794
|
cannam@89
|
12795 on `(hostname || uname -n) 2>/dev/null | sed 1q`
|
cannam@89
|
12796 "
|
cannam@89
|
12797
|
cannam@89
|
12798 _ACEOF
|
cannam@89
|
12799
|
cannam@89
|
12800 cat >>$CONFIG_STATUS <<_ACEOF
|
cannam@89
|
12801 # Files that config.status was made for.
|
cannam@89
|
12802 config_files="$ac_config_files"
|
cannam@89
|
12803 config_headers="$ac_config_headers"
|
cannam@89
|
12804 config_commands="$ac_config_commands"
|
cannam@89
|
12805
|
cannam@89
|
12806 _ACEOF
|
cannam@89
|
12807
|
cannam@89
|
12808 cat >>$CONFIG_STATUS <<\_ACEOF
|
cannam@89
|
12809 ac_cs_usage="\
|
cannam@89
|
12810 \`$as_me' instantiates files from templates according to the
|
cannam@89
|
12811 current configuration.
|
cannam@89
|
12812
|
cannam@89
|
12813 Usage: $0 [OPTIONS] [FILE]...
|
cannam@89
|
12814
|
cannam@89
|
12815 -h, --help print this help, then exit
|
cannam@89
|
12816 -V, --version print version number and configuration settings, then exit
|
cannam@89
|
12817 -q, --quiet do not print progress messages
|
cannam@89
|
12818 -d, --debug don't remove temporary files
|
cannam@89
|
12819 --recheck update $as_me by reconfiguring in the same conditions
|
cannam@89
|
12820 --file=FILE[:TEMPLATE]
|
cannam@89
|
12821 instantiate the configuration file FILE
|
cannam@89
|
12822 --header=FILE[:TEMPLATE]
|
cannam@89
|
12823 instantiate the configuration header FILE
|
cannam@89
|
12824
|
cannam@89
|
12825 Configuration files:
|
cannam@89
|
12826 $config_files
|
cannam@89
|
12827
|
cannam@89
|
12828 Configuration headers:
|
cannam@89
|
12829 $config_headers
|
cannam@89
|
12830
|
cannam@89
|
12831 Configuration commands:
|
cannam@89
|
12832 $config_commands
|
cannam@89
|
12833
|
cannam@89
|
12834 Report bugs to <bug-autoconf@gnu.org>."
|
cannam@89
|
12835
|
cannam@89
|
12836 _ACEOF
|
cannam@89
|
12837 cat >>$CONFIG_STATUS <<_ACEOF
|
cannam@89
|
12838 ac_cs_version="\\
|
cannam@89
|
12839 liblo config.status 0.26
|
cannam@89
|
12840 configured by $0, generated by GNU Autoconf 2.61,
|
cannam@89
|
12841 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
|
cannam@89
|
12842
|
cannam@89
|
12843 Copyright (C) 2006 Free Software Foundation, Inc.
|
cannam@89
|
12844 This config.status script is free software; the Free Software Foundation
|
cannam@89
|
12845 gives unlimited permission to copy, distribute and modify it."
|
cannam@89
|
12846
|
cannam@89
|
12847 ac_pwd='$ac_pwd'
|
cannam@89
|
12848 srcdir='$srcdir'
|
cannam@89
|
12849 INSTALL='$INSTALL'
|
cannam@89
|
12850 MKDIR_P='$MKDIR_P'
|
cannam@89
|
12851 _ACEOF
|
cannam@89
|
12852
|
cannam@89
|
12853 cat >>$CONFIG_STATUS <<\_ACEOF
|
cannam@89
|
12854 # If no file are specified by the user, then we need to provide default
|
cannam@89
|
12855 # value. By we need to know if files were specified by the user.
|
cannam@89
|
12856 ac_need_defaults=:
|
cannam@89
|
12857 while test $# != 0
|
cannam@89
|
12858 do
|
cannam@89
|
12859 case $1 in
|
cannam@89
|
12860 --*=*)
|
cannam@89
|
12861 ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
cannam@89
|
12862 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
|
cannam@89
|
12863 ac_shift=:
|
cannam@89
|
12864 ;;
|
cannam@89
|
12865 *)
|
cannam@89
|
12866 ac_option=$1
|
cannam@89
|
12867 ac_optarg=$2
|
cannam@89
|
12868 ac_shift=shift
|
cannam@89
|
12869 ;;
|
cannam@89
|
12870 esac
|
cannam@89
|
12871
|
cannam@89
|
12872 case $ac_option in
|
cannam@89
|
12873 # Handling of the options.
|
cannam@89
|
12874 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
cannam@89
|
12875 ac_cs_recheck=: ;;
|
cannam@89
|
12876 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
|
cannam@89
|
12877 echo "$ac_cs_version"; exit ;;
|
cannam@89
|
12878 --debug | --debu | --deb | --de | --d | -d )
|
cannam@89
|
12879 debug=: ;;
|
cannam@89
|
12880 --file | --fil | --fi | --f )
|
cannam@89
|
12881 $ac_shift
|
cannam@89
|
12882 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
|
cannam@89
|
12883 ac_need_defaults=false;;
|
cannam@89
|
12884 --header | --heade | --head | --hea )
|
cannam@89
|
12885 $ac_shift
|
cannam@89
|
12886 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
|
cannam@89
|
12887 ac_need_defaults=false;;
|
cannam@89
|
12888 --he | --h)
|
cannam@89
|
12889 # Conflict between --help and --header
|
cannam@89
|
12890 { echo "$as_me: error: ambiguous option: $1
|
cannam@89
|
12891 Try \`$0 --help' for more information." >&2
|
cannam@89
|
12892 { (exit 1); exit 1; }; };;
|
cannam@89
|
12893 --help | --hel | -h )
|
cannam@89
|
12894 echo "$ac_cs_usage"; exit ;;
|
cannam@89
|
12895 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
cannam@89
|
12896 | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
cannam@89
|
12897 ac_cs_silent=: ;;
|
cannam@89
|
12898
|
cannam@89
|
12899 # This is an error.
|
cannam@89
|
12900 -*) { echo "$as_me: error: unrecognized option: $1
|
cannam@89
|
12901 Try \`$0 --help' for more information." >&2
|
cannam@89
|
12902 { (exit 1); exit 1; }; } ;;
|
cannam@89
|
12903
|
cannam@89
|
12904 *) ac_config_targets="$ac_config_targets $1"
|
cannam@89
|
12905 ac_need_defaults=false ;;
|
cannam@89
|
12906
|
cannam@89
|
12907 esac
|
cannam@89
|
12908 shift
|
cannam@89
|
12909 done
|
cannam@89
|
12910
|
cannam@89
|
12911 ac_configure_extra_args=
|
cannam@89
|
12912
|
cannam@89
|
12913 if $ac_cs_silent; then
|
cannam@89
|
12914 exec 6>/dev/null
|
cannam@89
|
12915 ac_configure_extra_args="$ac_configure_extra_args --silent"
|
cannam@89
|
12916 fi
|
cannam@89
|
12917
|
cannam@89
|
12918 _ACEOF
|
cannam@89
|
12919 cat >>$CONFIG_STATUS <<_ACEOF
|
cannam@89
|
12920 if \$ac_cs_recheck; then
|
cannam@89
|
12921 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
|
cannam@89
|
12922 CONFIG_SHELL=$SHELL
|
cannam@89
|
12923 export CONFIG_SHELL
|
cannam@89
|
12924 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
cannam@89
|
12925 fi
|
cannam@89
|
12926
|
cannam@89
|
12927 _ACEOF
|
cannam@89
|
12928 cat >>$CONFIG_STATUS <<\_ACEOF
|
cannam@89
|
12929 exec 5>>config.log
|
cannam@89
|
12930 {
|
cannam@89
|
12931 echo
|
cannam@89
|
12932 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
cannam@89
|
12933 ## Running $as_me. ##
|
cannam@89
|
12934 _ASBOX
|
cannam@89
|
12935 echo "$ac_log"
|
cannam@89
|
12936 } >&5
|
cannam@89
|
12937
|
cannam@89
|
12938 _ACEOF
|
cannam@89
|
12939 cat >>$CONFIG_STATUS <<_ACEOF
|
cannam@89
|
12940 #
|
cannam@89
|
12941 # INIT-COMMANDS
|
cannam@89
|
12942 #
|
cannam@89
|
12943 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
|
cannam@89
|
12944
|
cannam@89
|
12945
|
cannam@89
|
12946 # The HP-UX ksh and POSIX shell print the target directory to stdout
|
cannam@89
|
12947 # if CDPATH is set.
|
cannam@89
|
12948 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
cannam@89
|
12949
|
cannam@89
|
12950 sed_quote_subst='$sed_quote_subst'
|
cannam@89
|
12951 double_quote_subst='$double_quote_subst'
|
cannam@89
|
12952 delay_variable_subst='$delay_variable_subst'
|
cannam@89
|
12953 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
12954 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
12955 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
12956 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
12957 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
12958 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
12959 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
12960 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
12961 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
12962 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
12963 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
12964 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
12965 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
12966 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
12967 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
12968 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
12969 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
12970 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
12971 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
12972 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
12973 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
12974 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
12975 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
12976 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
12977 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
12978 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
12979 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
12980 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
12981 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
12982 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
12983 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
12984 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
12985 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
12986 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
12987 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
12988 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
12989 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
12990 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
12991 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
12992 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
12993 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
12994 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
12995 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
12996 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
12997 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
12998 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
12999 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13000 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13001 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13002 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13003 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13004 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13005 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13006 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13007 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13008 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13009 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13010 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13011 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13012 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13013 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13014 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13015 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13016 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13017 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13018 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13019 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13020 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13021 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13022 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13023 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13024 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13025 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13026 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13027 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13028 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13029 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13030 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13031 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13032 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13033 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13034 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13035 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13036 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13037 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13038 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13039 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13040 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13041 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13042 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13043 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13044 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13045 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13046 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13047 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13048 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13049 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13050 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13051 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13052 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13053 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13054 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13055 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13056 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13057 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13058 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13059 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13060 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13061 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13062 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13063 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13064 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13065 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13066 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13067 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13068 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13069 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
|
cannam@89
|
13070
|
cannam@89
|
13071 LTCC='$LTCC'
|
cannam@89
|
13072 LTCFLAGS='$LTCFLAGS'
|
cannam@89
|
13073 compiler='$compiler_DEFAULT'
|
cannam@89
|
13074
|
cannam@89
|
13075 # Quote evaled strings.
|
cannam@89
|
13076 for var in SED \
|
cannam@89
|
13077 GREP \
|
cannam@89
|
13078 EGREP \
|
cannam@89
|
13079 FGREP \
|
cannam@89
|
13080 LD \
|
cannam@89
|
13081 NM \
|
cannam@89
|
13082 LN_S \
|
cannam@89
|
13083 lt_SP2NL \
|
cannam@89
|
13084 lt_NL2SP \
|
cannam@89
|
13085 reload_flag \
|
cannam@89
|
13086 deplibs_check_method \
|
cannam@89
|
13087 file_magic_cmd \
|
cannam@89
|
13088 AR \
|
cannam@89
|
13089 AR_FLAGS \
|
cannam@89
|
13090 STRIP \
|
cannam@89
|
13091 RANLIB \
|
cannam@89
|
13092 CC \
|
cannam@89
|
13093 CFLAGS \
|
cannam@89
|
13094 compiler \
|
cannam@89
|
13095 lt_cv_sys_global_symbol_pipe \
|
cannam@89
|
13096 lt_cv_sys_global_symbol_to_cdecl \
|
cannam@89
|
13097 lt_cv_sys_global_symbol_to_c_name_address \
|
cannam@89
|
13098 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
|
cannam@89
|
13099 SHELL \
|
cannam@89
|
13100 ECHO \
|
cannam@89
|
13101 lt_prog_compiler_no_builtin_flag \
|
cannam@89
|
13102 lt_prog_compiler_wl \
|
cannam@89
|
13103 lt_prog_compiler_pic \
|
cannam@89
|
13104 lt_prog_compiler_static \
|
cannam@89
|
13105 lt_cv_prog_compiler_c_o \
|
cannam@89
|
13106 need_locks \
|
cannam@89
|
13107 DSYMUTIL \
|
cannam@89
|
13108 NMEDIT \
|
cannam@89
|
13109 LIPO \
|
cannam@89
|
13110 OTOOL \
|
cannam@89
|
13111 OTOOL64 \
|
cannam@89
|
13112 shrext_cmds \
|
cannam@89
|
13113 export_dynamic_flag_spec \
|
cannam@89
|
13114 whole_archive_flag_spec \
|
cannam@89
|
13115 compiler_needs_object \
|
cannam@89
|
13116 with_gnu_ld \
|
cannam@89
|
13117 allow_undefined_flag \
|
cannam@89
|
13118 no_undefined_flag \
|
cannam@89
|
13119 hardcode_libdir_flag_spec \
|
cannam@89
|
13120 hardcode_libdir_flag_spec_ld \
|
cannam@89
|
13121 hardcode_libdir_separator \
|
cannam@89
|
13122 fix_srcfile_path \
|
cannam@89
|
13123 exclude_expsyms \
|
cannam@89
|
13124 include_expsyms \
|
cannam@89
|
13125 file_list_spec \
|
cannam@89
|
13126 variables_saved_for_relink \
|
cannam@89
|
13127 libname_spec \
|
cannam@89
|
13128 library_names_spec \
|
cannam@89
|
13129 soname_spec \
|
cannam@89
|
13130 finish_eval \
|
cannam@89
|
13131 old_striplib \
|
cannam@89
|
13132 striplib; do
|
cannam@89
|
13133 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
|
cannam@89
|
13134 *[\\\\\\\`\\"\\\$]*)
|
cannam@89
|
13135 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
|
cannam@89
|
13136 ;;
|
cannam@89
|
13137 *)
|
cannam@89
|
13138 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
|
cannam@89
|
13139 ;;
|
cannam@89
|
13140 esac
|
cannam@89
|
13141 done
|
cannam@89
|
13142
|
cannam@89
|
13143 # Double-quote double-evaled strings.
|
cannam@89
|
13144 for var in reload_cmds \
|
cannam@89
|
13145 old_postinstall_cmds \
|
cannam@89
|
13146 old_postuninstall_cmds \
|
cannam@89
|
13147 old_archive_cmds \
|
cannam@89
|
13148 extract_expsyms_cmds \
|
cannam@89
|
13149 old_archive_from_new_cmds \
|
cannam@89
|
13150 old_archive_from_expsyms_cmds \
|
cannam@89
|
13151 archive_cmds \
|
cannam@89
|
13152 archive_expsym_cmds \
|
cannam@89
|
13153 module_cmds \
|
cannam@89
|
13154 module_expsym_cmds \
|
cannam@89
|
13155 export_symbols_cmds \
|
cannam@89
|
13156 prelink_cmds \
|
cannam@89
|
13157 postinstall_cmds \
|
cannam@89
|
13158 postuninstall_cmds \
|
cannam@89
|
13159 finish_cmds \
|
cannam@89
|
13160 sys_lib_search_path_spec \
|
cannam@89
|
13161 sys_lib_dlsearch_path_spec; do
|
cannam@89
|
13162 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
|
cannam@89
|
13163 *[\\\\\\\`\\"\\\$]*)
|
cannam@89
|
13164 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
|
cannam@89
|
13165 ;;
|
cannam@89
|
13166 *)
|
cannam@89
|
13167 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
|
cannam@89
|
13168 ;;
|
cannam@89
|
13169 esac
|
cannam@89
|
13170 done
|
cannam@89
|
13171
|
cannam@89
|
13172 # Fix-up fallback echo if it was mangled by the above quoting rules.
|
cannam@89
|
13173 case \$lt_ECHO in
|
cannam@89
|
13174 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
|
cannam@89
|
13175 ;;
|
cannam@89
|
13176 esac
|
cannam@89
|
13177
|
cannam@89
|
13178 ac_aux_dir='$ac_aux_dir'
|
cannam@89
|
13179 xsi_shell='$xsi_shell'
|
cannam@89
|
13180 lt_shell_append='$lt_shell_append'
|
cannam@89
|
13181
|
cannam@89
|
13182 # See if we are running on zsh, and set the options which allow our
|
cannam@89
|
13183 # commands through without removal of \ escapes INIT.
|
cannam@89
|
13184 if test -n "\${ZSH_VERSION+set}" ; then
|
cannam@89
|
13185 setopt NO_GLOB_SUBST
|
cannam@89
|
13186 fi
|
cannam@89
|
13187
|
cannam@89
|
13188
|
cannam@89
|
13189 PACKAGE='$PACKAGE'
|
cannam@89
|
13190 VERSION='$VERSION'
|
cannam@89
|
13191 TIMESTAMP='$TIMESTAMP'
|
cannam@89
|
13192 RM='$RM'
|
cannam@89
|
13193 ofile='$ofile'
|
cannam@89
|
13194
|
cannam@89
|
13195
|
cannam@89
|
13196
|
cannam@89
|
13197
|
cannam@89
|
13198 _ACEOF
|
cannam@89
|
13199
|
cannam@89
|
13200 cat >>$CONFIG_STATUS <<\_ACEOF
|
cannam@89
|
13201
|
cannam@89
|
13202 # Handling of arguments.
|
cannam@89
|
13203 for ac_config_target in $ac_config_targets
|
cannam@89
|
13204 do
|
cannam@89
|
13205 case $ac_config_target in
|
cannam@89
|
13206 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
cannam@89
|
13207 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
|
cannam@89
|
13208 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
|
cannam@89
|
13209 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
cannam@89
|
13210 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
|
cannam@89
|
13211 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
|
cannam@89
|
13212 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
|
cannam@89
|
13213 "lo/Makefile") CONFIG_FILES="$CONFIG_FILES lo/Makefile" ;;
|
cannam@89
|
13214 "lo/lo_endian.h") CONFIG_FILES="$CONFIG_FILES lo/lo_endian.h" ;;
|
cannam@89
|
13215 "liblo.pc") CONFIG_FILES="$CONFIG_FILES liblo.pc" ;;
|
cannam@89
|
13216 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
|
cannam@89
|
13217 "doc/reference.doxygen") CONFIG_FILES="$CONFIG_FILES doc/reference.doxygen" ;;
|
cannam@89
|
13218 "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
|
cannam@89
|
13219
|
cannam@89
|
13220 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
cannam@89
|
13221 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
cannam@89
|
13222 { (exit 1); exit 1; }; };;
|
cannam@89
|
13223 esac
|
cannam@89
|
13224 done
|
cannam@89
|
13225
|
cannam@89
|
13226
|
cannam@89
|
13227 # If the user did not use the arguments to specify the items to instantiate,
|
cannam@89
|
13228 # then the envvar interface is used. Set only those that are not.
|
cannam@89
|
13229 # We use the long form for the default assignment because of an extremely
|
cannam@89
|
13230 # bizarre bug on SunOS 4.1.3.
|
cannam@89
|
13231 if $ac_need_defaults; then
|
cannam@89
|
13232 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
cannam@89
|
13233 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
cannam@89
|
13234 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
|
cannam@89
|
13235 fi
|
cannam@89
|
13236
|
cannam@89
|
13237 # Have a temporary directory for convenience. Make it in the build tree
|
cannam@89
|
13238 # simply because there is no reason against having it here, and in addition,
|
cannam@89
|
13239 # creating and moving files from /tmp can sometimes cause problems.
|
cannam@89
|
13240 # Hook for its removal unless debugging.
|
cannam@89
|
13241 # Note that there is a small window in which the directory will not be cleaned:
|
cannam@89
|
13242 # after its creation but before its name has been assigned to `$tmp'.
|
cannam@89
|
13243 $debug ||
|
cannam@89
|
13244 {
|
cannam@89
|
13245 tmp=
|
cannam@89
|
13246 trap 'exit_status=$?
|
cannam@89
|
13247 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
|
cannam@89
|
13248 ' 0
|
cannam@89
|
13249 trap '{ (exit 1); exit 1; }' 1 2 13 15
|
cannam@89
|
13250 }
|
cannam@89
|
13251 # Create a (secure) tmp directory for tmp files.
|
cannam@89
|
13252
|
cannam@89
|
13253 {
|
cannam@89
|
13254 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
|
cannam@89
|
13255 test -n "$tmp" && test -d "$tmp"
|
cannam@89
|
13256 } ||
|
cannam@89
|
13257 {
|
cannam@89
|
13258 tmp=./conf$$-$RANDOM
|
cannam@89
|
13259 (umask 077 && mkdir "$tmp")
|
cannam@89
|
13260 } ||
|
cannam@89
|
13261 {
|
cannam@89
|
13262 echo "$me: cannot create a temporary directory in ." >&2
|
cannam@89
|
13263 { (exit 1); exit 1; }
|
cannam@89
|
13264 }
|
cannam@89
|
13265
|
cannam@89
|
13266 #
|
cannam@89
|
13267 # Set up the sed scripts for CONFIG_FILES section.
|
cannam@89
|
13268 #
|
cannam@89
|
13269
|
cannam@89
|
13270 # No need to generate the scripts if there are no CONFIG_FILES.
|
cannam@89
|
13271 # This happens for instance when ./config.status config.h
|
cannam@89
|
13272 if test -n "$CONFIG_FILES"; then
|
cannam@89
|
13273
|
cannam@89
|
13274 _ACEOF
|
cannam@89
|
13275
|
cannam@89
|
13276
|
cannam@89
|
13277
|
cannam@89
|
13278 ac_delim='%!_!# '
|
cannam@89
|
13279 for ac_last_try in false false false false false :; do
|
cannam@89
|
13280 cat >conf$$subs.sed <<_ACEOF
|
cannam@89
|
13281 SHELL!$SHELL$ac_delim
|
cannam@89
|
13282 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
|
cannam@89
|
13283 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
|
cannam@89
|
13284 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
|
cannam@89
|
13285 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
|
cannam@89
|
13286 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
|
cannam@89
|
13287 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
|
cannam@89
|
13288 exec_prefix!$exec_prefix$ac_delim
|
cannam@89
|
13289 prefix!$prefix$ac_delim
|
cannam@89
|
13290 program_transform_name!$program_transform_name$ac_delim
|
cannam@89
|
13291 bindir!$bindir$ac_delim
|
cannam@89
|
13292 sbindir!$sbindir$ac_delim
|
cannam@89
|
13293 libexecdir!$libexecdir$ac_delim
|
cannam@89
|
13294 datarootdir!$datarootdir$ac_delim
|
cannam@89
|
13295 datadir!$datadir$ac_delim
|
cannam@89
|
13296 sysconfdir!$sysconfdir$ac_delim
|
cannam@89
|
13297 sharedstatedir!$sharedstatedir$ac_delim
|
cannam@89
|
13298 localstatedir!$localstatedir$ac_delim
|
cannam@89
|
13299 includedir!$includedir$ac_delim
|
cannam@89
|
13300 oldincludedir!$oldincludedir$ac_delim
|
cannam@89
|
13301 docdir!$docdir$ac_delim
|
cannam@89
|
13302 infodir!$infodir$ac_delim
|
cannam@89
|
13303 htmldir!$htmldir$ac_delim
|
cannam@89
|
13304 dvidir!$dvidir$ac_delim
|
cannam@89
|
13305 pdfdir!$pdfdir$ac_delim
|
cannam@89
|
13306 psdir!$psdir$ac_delim
|
cannam@89
|
13307 libdir!$libdir$ac_delim
|
cannam@89
|
13308 localedir!$localedir$ac_delim
|
cannam@89
|
13309 mandir!$mandir$ac_delim
|
cannam@89
|
13310 DEFS!$DEFS$ac_delim
|
cannam@89
|
13311 ECHO_C!$ECHO_C$ac_delim
|
cannam@89
|
13312 ECHO_N!$ECHO_N$ac_delim
|
cannam@89
|
13313 ECHO_T!$ECHO_T$ac_delim
|
cannam@89
|
13314 LIBS!$LIBS$ac_delim
|
cannam@89
|
13315 build_alias!$build_alias$ac_delim
|
cannam@89
|
13316 host_alias!$host_alias$ac_delim
|
cannam@89
|
13317 target_alias!$target_alias$ac_delim
|
cannam@89
|
13318 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
|
cannam@89
|
13319 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
|
cannam@89
|
13320 INSTALL_DATA!$INSTALL_DATA$ac_delim
|
cannam@89
|
13321 am__isrc!$am__isrc$ac_delim
|
cannam@89
|
13322 CYGPATH_W!$CYGPATH_W$ac_delim
|
cannam@89
|
13323 PACKAGE!$PACKAGE$ac_delim
|
cannam@89
|
13324 VERSION!$VERSION$ac_delim
|
cannam@89
|
13325 ACLOCAL!$ACLOCAL$ac_delim
|
cannam@89
|
13326 AUTOCONF!$AUTOCONF$ac_delim
|
cannam@89
|
13327 AUTOMAKE!$AUTOMAKE$ac_delim
|
cannam@89
|
13328 AUTOHEADER!$AUTOHEADER$ac_delim
|
cannam@89
|
13329 MAKEINFO!$MAKEINFO$ac_delim
|
cannam@89
|
13330 install_sh!$install_sh$ac_delim
|
cannam@89
|
13331 STRIP!$STRIP$ac_delim
|
cannam@89
|
13332 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
|
cannam@89
|
13333 mkdir_p!$mkdir_p$ac_delim
|
cannam@89
|
13334 AWK!$AWK$ac_delim
|
cannam@89
|
13335 SET_MAKE!$SET_MAKE$ac_delim
|
cannam@89
|
13336 am__leading_dot!$am__leading_dot$ac_delim
|
cannam@89
|
13337 AMTAR!$AMTAR$ac_delim
|
cannam@89
|
13338 am__tar!$am__tar$ac_delim
|
cannam@89
|
13339 am__untar!$am__untar$ac_delim
|
cannam@89
|
13340 LO_SO_VERSION!$LO_SO_VERSION$ac_delim
|
cannam@89
|
13341 CC!$CC$ac_delim
|
cannam@89
|
13342 CFLAGS!$CFLAGS$ac_delim
|
cannam@89
|
13343 LDFLAGS!$LDFLAGS$ac_delim
|
cannam@89
|
13344 CPPFLAGS!$CPPFLAGS$ac_delim
|
cannam@89
|
13345 ac_ct_CC!$ac_ct_CC$ac_delim
|
cannam@89
|
13346 EXEEXT!$EXEEXT$ac_delim
|
cannam@89
|
13347 OBJEXT!$OBJEXT$ac_delim
|
cannam@89
|
13348 DEPDIR!$DEPDIR$ac_delim
|
cannam@89
|
13349 am__include!$am__include$ac_delim
|
cannam@89
|
13350 am__quote!$am__quote$ac_delim
|
cannam@89
|
13351 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
|
cannam@89
|
13352 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
|
cannam@89
|
13353 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
|
cannam@89
|
13354 CCDEPMODE!$CCDEPMODE$ac_delim
|
cannam@89
|
13355 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
|
cannam@89
|
13356 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
|
cannam@89
|
13357 LIBTOOL!$LIBTOOL$ac_delim
|
cannam@89
|
13358 build!$build$ac_delim
|
cannam@89
|
13359 build_cpu!$build_cpu$ac_delim
|
cannam@89
|
13360 build_vendor!$build_vendor$ac_delim
|
cannam@89
|
13361 build_os!$build_os$ac_delim
|
cannam@89
|
13362 host!$host$ac_delim
|
cannam@89
|
13363 host_cpu!$host_cpu$ac_delim
|
cannam@89
|
13364 host_vendor!$host_vendor$ac_delim
|
cannam@89
|
13365 host_os!$host_os$ac_delim
|
cannam@89
|
13366 SED!$SED$ac_delim
|
cannam@89
|
13367 GREP!$GREP$ac_delim
|
cannam@89
|
13368 EGREP!$EGREP$ac_delim
|
cannam@89
|
13369 FGREP!$FGREP$ac_delim
|
cannam@89
|
13370 LD!$LD$ac_delim
|
cannam@89
|
13371 DUMPBIN!$DUMPBIN$ac_delim
|
cannam@89
|
13372 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
|
cannam@89
|
13373 NM!$NM$ac_delim
|
cannam@89
|
13374 LN_S!$LN_S$ac_delim
|
cannam@89
|
13375 AR!$AR$ac_delim
|
cannam@89
|
13376 RANLIB!$RANLIB$ac_delim
|
cannam@89
|
13377 lt_ECHO!$lt_ECHO$ac_delim
|
cannam@89
|
13378 _ACEOF
|
cannam@89
|
13379
|
cannam@89
|
13380 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
|
cannam@89
|
13381 break
|
cannam@89
|
13382 elif $ac_last_try; then
|
cannam@89
|
13383 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
|
cannam@89
|
13384 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
|
cannam@89
|
13385 { (exit 1); exit 1; }; }
|
cannam@89
|
13386 else
|
cannam@89
|
13387 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
cannam@89
|
13388 fi
|
cannam@89
|
13389 done
|
cannam@89
|
13390
|
cannam@89
|
13391 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
|
cannam@89
|
13392 if test -n "$ac_eof"; then
|
cannam@89
|
13393 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
|
cannam@89
|
13394 ac_eof=`expr $ac_eof + 1`
|
cannam@89
|
13395 fi
|
cannam@89
|
13396
|
cannam@89
|
13397 cat >>$CONFIG_STATUS <<_ACEOF
|
cannam@89
|
13398 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
|
cannam@89
|
13399 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
cannam@89
|
13400 _ACEOF
|
cannam@89
|
13401 sed '
|
cannam@89
|
13402 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
|
cannam@89
|
13403 s/^/s,@/; s/!/@,|#_!!_#|/
|
cannam@89
|
13404 :n
|
cannam@89
|
13405 t n
|
cannam@89
|
13406 s/'"$ac_delim"'$/,g/; t
|
cannam@89
|
13407 s/$/\\/; p
|
cannam@89
|
13408 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
|
cannam@89
|
13409 ' >>$CONFIG_STATUS <conf$$subs.sed
|
cannam@89
|
13410 rm -f conf$$subs.sed
|
cannam@89
|
13411 cat >>$CONFIG_STATUS <<_ACEOF
|
cannam@89
|
13412 CEOF$ac_eof
|
cannam@89
|
13413 _ACEOF
|
cannam@89
|
13414
|
cannam@89
|
13415
|
cannam@89
|
13416 ac_delim='%!_!# '
|
cannam@89
|
13417 for ac_last_try in false false false false false :; do
|
cannam@89
|
13418 cat >conf$$subs.sed <<_ACEOF
|
cannam@89
|
13419 DSYMUTIL!$DSYMUTIL$ac_delim
|
cannam@89
|
13420 NMEDIT!$NMEDIT$ac_delim
|
cannam@89
|
13421 LIPO!$LIPO$ac_delim
|
cannam@89
|
13422 OTOOL!$OTOOL$ac_delim
|
cannam@89
|
13423 OTOOL64!$OTOOL64$ac_delim
|
cannam@89
|
13424 CPP!$CPP$ac_delim
|
cannam@89
|
13425 DOXYGEN!$DOXYGEN$ac_delim
|
cannam@89
|
13426 LO_BIGENDIAN!$LO_BIGENDIAN$ac_delim
|
cannam@89
|
13427 LIBOBJS!$LIBOBJS$ac_delim
|
cannam@89
|
13428 LTLIBOBJS!$LTLIBOBJS$ac_delim
|
cannam@89
|
13429 _ACEOF
|
cannam@89
|
13430
|
cannam@89
|
13431 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
|
cannam@89
|
13432 break
|
cannam@89
|
13433 elif $ac_last_try; then
|
cannam@89
|
13434 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
|
cannam@89
|
13435 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
|
cannam@89
|
13436 { (exit 1); exit 1; }; }
|
cannam@89
|
13437 else
|
cannam@89
|
13438 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
cannam@89
|
13439 fi
|
cannam@89
|
13440 done
|
cannam@89
|
13441
|
cannam@89
|
13442 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
|
cannam@89
|
13443 if test -n "$ac_eof"; then
|
cannam@89
|
13444 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
|
cannam@89
|
13445 ac_eof=`expr $ac_eof + 1`
|
cannam@89
|
13446 fi
|
cannam@89
|
13447
|
cannam@89
|
13448 cat >>$CONFIG_STATUS <<_ACEOF
|
cannam@89
|
13449 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
|
cannam@89
|
13450 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
|
cannam@89
|
13451 _ACEOF
|
cannam@89
|
13452 sed '
|
cannam@89
|
13453 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
|
cannam@89
|
13454 s/^/s,@/; s/!/@,|#_!!_#|/
|
cannam@89
|
13455 :n
|
cannam@89
|
13456 t n
|
cannam@89
|
13457 s/'"$ac_delim"'$/,g/; t
|
cannam@89
|
13458 s/$/\\/; p
|
cannam@89
|
13459 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
|
cannam@89
|
13460 ' >>$CONFIG_STATUS <conf$$subs.sed
|
cannam@89
|
13461 rm -f conf$$subs.sed
|
cannam@89
|
13462 cat >>$CONFIG_STATUS <<_ACEOF
|
cannam@89
|
13463 :end
|
cannam@89
|
13464 s/|#_!!_#|//g
|
cannam@89
|
13465 CEOF$ac_eof
|
cannam@89
|
13466 _ACEOF
|
cannam@89
|
13467
|
cannam@89
|
13468
|
cannam@89
|
13469 # VPATH may cause trouble with some makes, so we remove $(srcdir),
|
cannam@89
|
13470 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
cannam@89
|
13471 # trailing colons and then remove the whole line if VPATH becomes empty
|
cannam@89
|
13472 # (actually we leave an empty line to preserve line numbers).
|
cannam@89
|
13473 if test "x$srcdir" = x.; then
|
cannam@89
|
13474 ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
cannam@89
|
13475 s/:*\$(srcdir):*/:/
|
cannam@89
|
13476 s/:*\${srcdir}:*/:/
|
cannam@89
|
13477 s/:*@srcdir@:*/:/
|
cannam@89
|
13478 s/^\([^=]*=[ ]*\):*/\1/
|
cannam@89
|
13479 s/:*$//
|
cannam@89
|
13480 s/^[^=]*=[ ]*$//
|
cannam@89
|
13481 }'
|
cannam@89
|
13482 fi
|
cannam@89
|
13483
|
cannam@89
|
13484 cat >>$CONFIG_STATUS <<\_ACEOF
|
cannam@89
|
13485 fi # test -n "$CONFIG_FILES"
|
cannam@89
|
13486
|
cannam@89
|
13487
|
cannam@89
|
13488 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
|
cannam@89
|
13489 do
|
cannam@89
|
13490 case $ac_tag in
|
cannam@89
|
13491 :[FHLC]) ac_mode=$ac_tag; continue;;
|
cannam@89
|
13492 esac
|
cannam@89
|
13493 case $ac_mode$ac_tag in
|
cannam@89
|
13494 :[FHL]*:*);;
|
cannam@89
|
13495 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
|
cannam@89
|
13496 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
|
cannam@89
|
13497 { (exit 1); exit 1; }; };;
|
cannam@89
|
13498 :[FH]-) ac_tag=-:-;;
|
cannam@89
|
13499 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
|
cannam@89
|
13500 esac
|
cannam@89
|
13501 ac_save_IFS=$IFS
|
cannam@89
|
13502 IFS=:
|
cannam@89
|
13503 set x $ac_tag
|
cannam@89
|
13504 IFS=$ac_save_IFS
|
cannam@89
|
13505 shift
|
cannam@89
|
13506 ac_file=$1
|
cannam@89
|
13507 shift
|
cannam@89
|
13508
|
cannam@89
|
13509 case $ac_mode in
|
cannam@89
|
13510 :L) ac_source=$1;;
|
cannam@89
|
13511 :[FH])
|
cannam@89
|
13512 ac_file_inputs=
|
cannam@89
|
13513 for ac_f
|
cannam@89
|
13514 do
|
cannam@89
|
13515 case $ac_f in
|
cannam@89
|
13516 -) ac_f="$tmp/stdin";;
|
cannam@89
|
13517 *) # Look for the file first in the build tree, then in the source tree
|
cannam@89
|
13518 # (if the path is not absolute). The absolute path cannot be DOS-style,
|
cannam@89
|
13519 # because $ac_f cannot contain `:'.
|
cannam@89
|
13520 test -f "$ac_f" ||
|
cannam@89
|
13521 case $ac_f in
|
cannam@89
|
13522 [\\/$]*) false;;
|
cannam@89
|
13523 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
|
cannam@89
|
13524 esac ||
|
cannam@89
|
13525 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
|
cannam@89
|
13526 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
|
cannam@89
|
13527 { (exit 1); exit 1; }; };;
|
cannam@89
|
13528 esac
|
cannam@89
|
13529 ac_file_inputs="$ac_file_inputs $ac_f"
|
cannam@89
|
13530 done
|
cannam@89
|
13531
|
cannam@89
|
13532 # Let's still pretend it is `configure' which instantiates (i.e., don't
|
cannam@89
|
13533 # use $as_me), people would be surprised to read:
|
cannam@89
|
13534 # /* config.h. Generated by config.status. */
|
cannam@89
|
13535 configure_input="Generated from "`IFS=:
|
cannam@89
|
13536 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
|
cannam@89
|
13537 if test x"$ac_file" != x-; then
|
cannam@89
|
13538 configure_input="$ac_file. $configure_input"
|
cannam@89
|
13539 { echo "$as_me:$LINENO: creating $ac_file" >&5
|
cannam@89
|
13540 echo "$as_me: creating $ac_file" >&6;}
|
cannam@89
|
13541 fi
|
cannam@89
|
13542
|
cannam@89
|
13543 case $ac_tag in
|
cannam@89
|
13544 *:-:* | *:-) cat >"$tmp/stdin";;
|
cannam@89
|
13545 esac
|
cannam@89
|
13546 ;;
|
cannam@89
|
13547 esac
|
cannam@89
|
13548
|
cannam@89
|
13549 ac_dir=`$as_dirname -- "$ac_file" ||
|
cannam@89
|
13550 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
cannam@89
|
13551 X"$ac_file" : 'X\(//\)[^/]' \| \
|
cannam@89
|
13552 X"$ac_file" : 'X\(//\)$' \| \
|
cannam@89
|
13553 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
|
cannam@89
|
13554 echo X"$ac_file" |
|
cannam@89
|
13555 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
cannam@89
|
13556 s//\1/
|
cannam@89
|
13557 q
|
cannam@89
|
13558 }
|
cannam@89
|
13559 /^X\(\/\/\)[^/].*/{
|
cannam@89
|
13560 s//\1/
|
cannam@89
|
13561 q
|
cannam@89
|
13562 }
|
cannam@89
|
13563 /^X\(\/\/\)$/{
|
cannam@89
|
13564 s//\1/
|
cannam@89
|
13565 q
|
cannam@89
|
13566 }
|
cannam@89
|
13567 /^X\(\/\).*/{
|
cannam@89
|
13568 s//\1/
|
cannam@89
|
13569 q
|
cannam@89
|
13570 }
|
cannam@89
|
13571 s/.*/./; q'`
|
cannam@89
|
13572 { as_dir="$ac_dir"
|
cannam@89
|
13573 case $as_dir in #(
|
cannam@89
|
13574 -*) as_dir=./$as_dir;;
|
cannam@89
|
13575 esac
|
cannam@89
|
13576 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
|
cannam@89
|
13577 as_dirs=
|
cannam@89
|
13578 while :; do
|
cannam@89
|
13579 case $as_dir in #(
|
cannam@89
|
13580 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
|
cannam@89
|
13581 *) as_qdir=$as_dir;;
|
cannam@89
|
13582 esac
|
cannam@89
|
13583 as_dirs="'$as_qdir' $as_dirs"
|
cannam@89
|
13584 as_dir=`$as_dirname -- "$as_dir" ||
|
cannam@89
|
13585 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
cannam@89
|
13586 X"$as_dir" : 'X\(//\)[^/]' \| \
|
cannam@89
|
13587 X"$as_dir" : 'X\(//\)$' \| \
|
cannam@89
|
13588 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
cannam@89
|
13589 echo X"$as_dir" |
|
cannam@89
|
13590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
cannam@89
|
13591 s//\1/
|
cannam@89
|
13592 q
|
cannam@89
|
13593 }
|
cannam@89
|
13594 /^X\(\/\/\)[^/].*/{
|
cannam@89
|
13595 s//\1/
|
cannam@89
|
13596 q
|
cannam@89
|
13597 }
|
cannam@89
|
13598 /^X\(\/\/\)$/{
|
cannam@89
|
13599 s//\1/
|
cannam@89
|
13600 q
|
cannam@89
|
13601 }
|
cannam@89
|
13602 /^X\(\/\).*/{
|
cannam@89
|
13603 s//\1/
|
cannam@89
|
13604 q
|
cannam@89
|
13605 }
|
cannam@89
|
13606 s/.*/./; q'`
|
cannam@89
|
13607 test -d "$as_dir" && break
|
cannam@89
|
13608 done
|
cannam@89
|
13609 test -z "$as_dirs" || eval "mkdir $as_dirs"
|
cannam@89
|
13610 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
|
cannam@89
|
13611 echo "$as_me: error: cannot create directory $as_dir" >&2;}
|
cannam@89
|
13612 { (exit 1); exit 1; }; }; }
|
cannam@89
|
13613 ac_builddir=.
|
cannam@89
|
13614
|
cannam@89
|
13615 case "$ac_dir" in
|
cannam@89
|
13616 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
cannam@89
|
13617 *)
|
cannam@89
|
13618 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
cannam@89
|
13619 # A ".." for each directory in $ac_dir_suffix.
|
cannam@89
|
13620 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
|
cannam@89
|
13621 case $ac_top_builddir_sub in
|
cannam@89
|
13622 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
cannam@89
|
13623 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
cannam@89
|
13624 esac ;;
|
cannam@89
|
13625 esac
|
cannam@89
|
13626 ac_abs_top_builddir=$ac_pwd
|
cannam@89
|
13627 ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
cannam@89
|
13628 # for backward compatibility:
|
cannam@89
|
13629 ac_top_builddir=$ac_top_build_prefix
|
cannam@89
|
13630
|
cannam@89
|
13631 case $srcdir in
|
cannam@89
|
13632 .) # We are building in place.
|
cannam@89
|
13633 ac_srcdir=.
|
cannam@89
|
13634 ac_top_srcdir=$ac_top_builddir_sub
|
cannam@89
|
13635 ac_abs_top_srcdir=$ac_pwd ;;
|
cannam@89
|
13636 [\\/]* | ?:[\\/]* ) # Absolute name.
|
cannam@89
|
13637 ac_srcdir=$srcdir$ac_dir_suffix;
|
cannam@89
|
13638 ac_top_srcdir=$srcdir
|
cannam@89
|
13639 ac_abs_top_srcdir=$srcdir ;;
|
cannam@89
|
13640 *) # Relative name.
|
cannam@89
|
13641 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
cannam@89
|
13642 ac_top_srcdir=$ac_top_build_prefix$srcdir
|
cannam@89
|
13643 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
cannam@89
|
13644 esac
|
cannam@89
|
13645 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
cannam@89
|
13646
|
cannam@89
|
13647
|
cannam@89
|
13648 case $ac_mode in
|
cannam@89
|
13649 :F)
|
cannam@89
|
13650 #
|
cannam@89
|
13651 # CONFIG_FILE
|
cannam@89
|
13652 #
|
cannam@89
|
13653
|
cannam@89
|
13654 case $INSTALL in
|
cannam@89
|
13655 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
cannam@89
|
13656 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
|
cannam@89
|
13657 esac
|
cannam@89
|
13658 ac_MKDIR_P=$MKDIR_P
|
cannam@89
|
13659 case $MKDIR_P in
|
cannam@89
|
13660 [\\/$]* | ?:[\\/]* ) ;;
|
cannam@89
|
13661 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
|
cannam@89
|
13662 esac
|
cannam@89
|
13663 _ACEOF
|
cannam@89
|
13664
|
cannam@89
|
13665 cat >>$CONFIG_STATUS <<\_ACEOF
|
cannam@89
|
13666 # If the template does not know about datarootdir, expand it.
|
cannam@89
|
13667 # FIXME: This hack should be removed a few years after 2.60.
|
cannam@89
|
13668 ac_datarootdir_hack=; ac_datarootdir_seen=
|
cannam@89
|
13669
|
cannam@89
|
13670 case `sed -n '/datarootdir/ {
|
cannam@89
|
13671 p
|
cannam@89
|
13672 q
|
cannam@89
|
13673 }
|
cannam@89
|
13674 /@datadir@/p
|
cannam@89
|
13675 /@docdir@/p
|
cannam@89
|
13676 /@infodir@/p
|
cannam@89
|
13677 /@localedir@/p
|
cannam@89
|
13678 /@mandir@/p
|
cannam@89
|
13679 ' $ac_file_inputs` in
|
cannam@89
|
13680 *datarootdir*) ac_datarootdir_seen=yes;;
|
cannam@89
|
13681 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
|
cannam@89
|
13682 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
|
cannam@89
|
13683 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
|
cannam@89
|
13684 _ACEOF
|
cannam@89
|
13685 cat >>$CONFIG_STATUS <<_ACEOF
|
cannam@89
|
13686 ac_datarootdir_hack='
|
cannam@89
|
13687 s&@datadir@&$datadir&g
|
cannam@89
|
13688 s&@docdir@&$docdir&g
|
cannam@89
|
13689 s&@infodir@&$infodir&g
|
cannam@89
|
13690 s&@localedir@&$localedir&g
|
cannam@89
|
13691 s&@mandir@&$mandir&g
|
cannam@89
|
13692 s&\\\${datarootdir}&$datarootdir&g' ;;
|
cannam@89
|
13693 esac
|
cannam@89
|
13694 _ACEOF
|
cannam@89
|
13695
|
cannam@89
|
13696 # Neutralize VPATH when `$srcdir' = `.'.
|
cannam@89
|
13697 # Shell code in configure.ac might set extrasub.
|
cannam@89
|
13698 # FIXME: do we really want to maintain this feature?
|
cannam@89
|
13699 cat >>$CONFIG_STATUS <<_ACEOF
|
cannam@89
|
13700 sed "$ac_vpsub
|
cannam@89
|
13701 $extrasub
|
cannam@89
|
13702 _ACEOF
|
cannam@89
|
13703 cat >>$CONFIG_STATUS <<\_ACEOF
|
cannam@89
|
13704 :t
|
cannam@89
|
13705 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
cannam@89
|
13706 s&@configure_input@&$configure_input&;t t
|
cannam@89
|
13707 s&@top_builddir@&$ac_top_builddir_sub&;t t
|
cannam@89
|
13708 s&@srcdir@&$ac_srcdir&;t t
|
cannam@89
|
13709 s&@abs_srcdir@&$ac_abs_srcdir&;t t
|
cannam@89
|
13710 s&@top_srcdir@&$ac_top_srcdir&;t t
|
cannam@89
|
13711 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
|
cannam@89
|
13712 s&@builddir@&$ac_builddir&;t t
|
cannam@89
|
13713 s&@abs_builddir@&$ac_abs_builddir&;t t
|
cannam@89
|
13714 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
|
cannam@89
|
13715 s&@INSTALL@&$ac_INSTALL&;t t
|
cannam@89
|
13716 s&@MKDIR_P@&$ac_MKDIR_P&;t t
|
cannam@89
|
13717 $ac_datarootdir_hack
|
cannam@89
|
13718 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
|
cannam@89
|
13719
|
cannam@89
|
13720 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
|
cannam@89
|
13721 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
|
cannam@89
|
13722 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
|
cannam@89
|
13723 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
cannam@89
|
13724 which seems to be undefined. Please make sure it is defined." >&5
|
cannam@89
|
13725 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
cannam@89
|
13726 which seems to be undefined. Please make sure it is defined." >&2;}
|
cannam@89
|
13727
|
cannam@89
|
13728 rm -f "$tmp/stdin"
|
cannam@89
|
13729 case $ac_file in
|
cannam@89
|
13730 -) cat "$tmp/out"; rm -f "$tmp/out";;
|
cannam@89
|
13731 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
|
cannam@89
|
13732 esac
|
cannam@89
|
13733 ;;
|
cannam@89
|
13734 :H)
|
cannam@89
|
13735 #
|
cannam@89
|
13736 # CONFIG_HEADER
|
cannam@89
|
13737 #
|
cannam@89
|
13738 _ACEOF
|
cannam@89
|
13739
|
cannam@89
|
13740 # Transform confdefs.h into a sed script `conftest.defines', that
|
cannam@89
|
13741 # substitutes the proper values into config.h.in to produce config.h.
|
cannam@89
|
13742 rm -f conftest.defines conftest.tail
|
cannam@89
|
13743 # First, append a space to every undef/define line, to ease matching.
|
cannam@89
|
13744 echo 's/$/ /' >conftest.defines
|
cannam@89
|
13745 # Then, protect against being on the right side of a sed subst, or in
|
cannam@89
|
13746 # an unquoted here document, in config.status. If some macros were
|
cannam@89
|
13747 # called several times there might be several #defines for the same
|
cannam@89
|
13748 # symbol, which is useless. But do not sort them, since the last
|
cannam@89
|
13749 # AC_DEFINE must be honored.
|
cannam@89
|
13750 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
|
cannam@89
|
13751 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
|
cannam@89
|
13752 # NAME is the cpp macro being defined, VALUE is the value it is being given.
|
cannam@89
|
13753 # PARAMS is the parameter list in the macro definition--in most cases, it's
|
cannam@89
|
13754 # just an empty string.
|
cannam@89
|
13755 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
|
cannam@89
|
13756 ac_dB='\\)[ (].*,\\1define\\2'
|
cannam@89
|
13757 ac_dC=' '
|
cannam@89
|
13758 ac_dD=' ,'
|
cannam@89
|
13759
|
cannam@89
|
13760 uniq confdefs.h |
|
cannam@89
|
13761 sed -n '
|
cannam@89
|
13762 t rset
|
cannam@89
|
13763 :rset
|
cannam@89
|
13764 s/^[ ]*#[ ]*define[ ][ ]*//
|
cannam@89
|
13765 t ok
|
cannam@89
|
13766 d
|
cannam@89
|
13767 :ok
|
cannam@89
|
13768 s/[\\&,]/\\&/g
|
cannam@89
|
13769 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
|
cannam@89
|
13770 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
|
cannam@89
|
13771 ' >>conftest.defines
|
cannam@89
|
13772
|
cannam@89
|
13773 # Remove the space that was appended to ease matching.
|
cannam@89
|
13774 # Then replace #undef with comments. This is necessary, for
|
cannam@89
|
13775 # example, in the case of _POSIX_SOURCE, which is predefined and required
|
cannam@89
|
13776 # on some systems where configure will not decide to define it.
|
cannam@89
|
13777 # (The regexp can be short, since the line contains either #define or #undef.)
|
cannam@89
|
13778 echo 's/ $//
|
cannam@89
|
13779 s,^[ #]*u.*,/* & */,' >>conftest.defines
|
cannam@89
|
13780
|
cannam@89
|
13781 # Break up conftest.defines:
|
cannam@89
|
13782 ac_max_sed_lines=50
|
cannam@89
|
13783
|
cannam@89
|
13784 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
|
cannam@89
|
13785 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
|
cannam@89
|
13786 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
|
cannam@89
|
13787 # et cetera.
|
cannam@89
|
13788 ac_in='$ac_file_inputs'
|
cannam@89
|
13789 ac_out='"$tmp/out1"'
|
cannam@89
|
13790 ac_nxt='"$tmp/out2"'
|
cannam@89
|
13791
|
cannam@89
|
13792 while :
|
cannam@89
|
13793 do
|
cannam@89
|
13794 # Write a here document:
|
cannam@89
|
13795 cat >>$CONFIG_STATUS <<_ACEOF
|
cannam@89
|
13796 # First, check the format of the line:
|
cannam@89
|
13797 cat >"\$tmp/defines.sed" <<\\CEOF
|
cannam@89
|
13798 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
|
cannam@89
|
13799 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
|
cannam@89
|
13800 b
|
cannam@89
|
13801 :def
|
cannam@89
|
13802 _ACEOF
|
cannam@89
|
13803 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
|
cannam@89
|
13804 echo 'CEOF
|
cannam@89
|
13805 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
|
cannam@89
|
13806 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
|
cannam@89
|
13807 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
|
cannam@89
|
13808 grep . conftest.tail >/dev/null || break
|
cannam@89
|
13809 rm -f conftest.defines
|
cannam@89
|
13810 mv conftest.tail conftest.defines
|
cannam@89
|
13811 done
|
cannam@89
|
13812 rm -f conftest.defines conftest.tail
|
cannam@89
|
13813
|
cannam@89
|
13814 echo "ac_result=$ac_in" >>$CONFIG_STATUS
|
cannam@89
|
13815 cat >>$CONFIG_STATUS <<\_ACEOF
|
cannam@89
|
13816 if test x"$ac_file" != x-; then
|
cannam@89
|
13817 echo "/* $configure_input */" >"$tmp/config.h"
|
cannam@89
|
13818 cat "$ac_result" >>"$tmp/config.h"
|
cannam@89
|
13819 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
|
cannam@89
|
13820 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
|
cannam@89
|
13821 echo "$as_me: $ac_file is unchanged" >&6;}
|
cannam@89
|
13822 else
|
cannam@89
|
13823 rm -f $ac_file
|
cannam@89
|
13824 mv "$tmp/config.h" $ac_file
|
cannam@89
|
13825 fi
|
cannam@89
|
13826 else
|
cannam@89
|
13827 echo "/* $configure_input */"
|
cannam@89
|
13828 cat "$ac_result"
|
cannam@89
|
13829 fi
|
cannam@89
|
13830 rm -f "$tmp/out12"
|
cannam@89
|
13831 # Compute $ac_file's index in $config_headers.
|
cannam@89
|
13832 _am_arg=$ac_file
|
cannam@89
|
13833 _am_stamp_count=1
|
cannam@89
|
13834 for _am_header in $config_headers :; do
|
cannam@89
|
13835 case $_am_header in
|
cannam@89
|
13836 $_am_arg | $_am_arg:* )
|
cannam@89
|
13837 break ;;
|
cannam@89
|
13838 * )
|
cannam@89
|
13839 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
|
cannam@89
|
13840 esac
|
cannam@89
|
13841 done
|
cannam@89
|
13842 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
|
cannam@89
|
13843 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
cannam@89
|
13844 X"$_am_arg" : 'X\(//\)[^/]' \| \
|
cannam@89
|
13845 X"$_am_arg" : 'X\(//\)$' \| \
|
cannam@89
|
13846 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
|
cannam@89
|
13847 echo X"$_am_arg" |
|
cannam@89
|
13848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
cannam@89
|
13849 s//\1/
|
cannam@89
|
13850 q
|
cannam@89
|
13851 }
|
cannam@89
|
13852 /^X\(\/\/\)[^/].*/{
|
cannam@89
|
13853 s//\1/
|
cannam@89
|
13854 q
|
cannam@89
|
13855 }
|
cannam@89
|
13856 /^X\(\/\/\)$/{
|
cannam@89
|
13857 s//\1/
|
cannam@89
|
13858 q
|
cannam@89
|
13859 }
|
cannam@89
|
13860 /^X\(\/\).*/{
|
cannam@89
|
13861 s//\1/
|
cannam@89
|
13862 q
|
cannam@89
|
13863 }
|
cannam@89
|
13864 s/.*/./; q'`/stamp-h$_am_stamp_count
|
cannam@89
|
13865 ;;
|
cannam@89
|
13866
|
cannam@89
|
13867 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
|
cannam@89
|
13868 echo "$as_me: executing $ac_file commands" >&6;}
|
cannam@89
|
13869 ;;
|
cannam@89
|
13870 esac
|
cannam@89
|
13871
|
cannam@89
|
13872
|
cannam@89
|
13873 case $ac_file$ac_mode in
|
cannam@89
|
13874 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
|
cannam@89
|
13875 # Strip MF so we end up with the name of the file.
|
cannam@89
|
13876 mf=`echo "$mf" | sed -e 's/:.*$//'`
|
cannam@89
|
13877 # Check whether this is an Automake generated Makefile or not.
|
cannam@89
|
13878 # We used to match only the files named `Makefile.in', but
|
cannam@89
|
13879 # some people rename them; so instead we look at the file content.
|
cannam@89
|
13880 # Grep'ing the first line is not enough: some people post-process
|
cannam@89
|
13881 # each Makefile.in and add a new line on top of each file to say so.
|
cannam@89
|
13882 # Grep'ing the whole file is not good either: AIX grep has a line
|
cannam@89
|
13883 # limit of 2048, but all sed's we know have understand at least 4000.
|
cannam@89
|
13884 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
|
cannam@89
|
13885 dirpart=`$as_dirname -- "$mf" ||
|
cannam@89
|
13886 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
cannam@89
|
13887 X"$mf" : 'X\(//\)[^/]' \| \
|
cannam@89
|
13888 X"$mf" : 'X\(//\)$' \| \
|
cannam@89
|
13889 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
|
cannam@89
|
13890 echo X"$mf" |
|
cannam@89
|
13891 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
cannam@89
|
13892 s//\1/
|
cannam@89
|
13893 q
|
cannam@89
|
13894 }
|
cannam@89
|
13895 /^X\(\/\/\)[^/].*/{
|
cannam@89
|
13896 s//\1/
|
cannam@89
|
13897 q
|
cannam@89
|
13898 }
|
cannam@89
|
13899 /^X\(\/\/\)$/{
|
cannam@89
|
13900 s//\1/
|
cannam@89
|
13901 q
|
cannam@89
|
13902 }
|
cannam@89
|
13903 /^X\(\/\).*/{
|
cannam@89
|
13904 s//\1/
|
cannam@89
|
13905 q
|
cannam@89
|
13906 }
|
cannam@89
|
13907 s/.*/./; q'`
|
cannam@89
|
13908 else
|
cannam@89
|
13909 continue
|
cannam@89
|
13910 fi
|
cannam@89
|
13911 # Extract the definition of DEPDIR, am__include, and am__quote
|
cannam@89
|
13912 # from the Makefile without running `make'.
|
cannam@89
|
13913 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
|
cannam@89
|
13914 test -z "$DEPDIR" && continue
|
cannam@89
|
13915 am__include=`sed -n 's/^am__include = //p' < "$mf"`
|
cannam@89
|
13916 test -z "am__include" && continue
|
cannam@89
|
13917 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
|
cannam@89
|
13918 # When using ansi2knr, U may be empty or an underscore; expand it
|
cannam@89
|
13919 U=`sed -n 's/^U = //p' < "$mf"`
|
cannam@89
|
13920 # Find all dependency output files, they are included files with
|
cannam@89
|
13921 # $(DEPDIR) in their names. We invoke sed twice because it is the
|
cannam@89
|
13922 # simplest approach to changing $(DEPDIR) to its actual value in the
|
cannam@89
|
13923 # expansion.
|
cannam@89
|
13924 for file in `sed -n "
|
cannam@89
|
13925 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
|
cannam@89
|
13926 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
|
cannam@89
|
13927 # Make sure the directory exists.
|
cannam@89
|
13928 test -f "$dirpart/$file" && continue
|
cannam@89
|
13929 fdir=`$as_dirname -- "$file" ||
|
cannam@89
|
13930 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
cannam@89
|
13931 X"$file" : 'X\(//\)[^/]' \| \
|
cannam@89
|
13932 X"$file" : 'X\(//\)$' \| \
|
cannam@89
|
13933 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
|
cannam@89
|
13934 echo X"$file" |
|
cannam@89
|
13935 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
cannam@89
|
13936 s//\1/
|
cannam@89
|
13937 q
|
cannam@89
|
13938 }
|
cannam@89
|
13939 /^X\(\/\/\)[^/].*/{
|
cannam@89
|
13940 s//\1/
|
cannam@89
|
13941 q
|
cannam@89
|
13942 }
|
cannam@89
|
13943 /^X\(\/\/\)$/{
|
cannam@89
|
13944 s//\1/
|
cannam@89
|
13945 q
|
cannam@89
|
13946 }
|
cannam@89
|
13947 /^X\(\/\).*/{
|
cannam@89
|
13948 s//\1/
|
cannam@89
|
13949 q
|
cannam@89
|
13950 }
|
cannam@89
|
13951 s/.*/./; q'`
|
cannam@89
|
13952 { as_dir=$dirpart/$fdir
|
cannam@89
|
13953 case $as_dir in #(
|
cannam@89
|
13954 -*) as_dir=./$as_dir;;
|
cannam@89
|
13955 esac
|
cannam@89
|
13956 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
|
cannam@89
|
13957 as_dirs=
|
cannam@89
|
13958 while :; do
|
cannam@89
|
13959 case $as_dir in #(
|
cannam@89
|
13960 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
|
cannam@89
|
13961 *) as_qdir=$as_dir;;
|
cannam@89
|
13962 esac
|
cannam@89
|
13963 as_dirs="'$as_qdir' $as_dirs"
|
cannam@89
|
13964 as_dir=`$as_dirname -- "$as_dir" ||
|
cannam@89
|
13965 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
cannam@89
|
13966 X"$as_dir" : 'X\(//\)[^/]' \| \
|
cannam@89
|
13967 X"$as_dir" : 'X\(//\)$' \| \
|
cannam@89
|
13968 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
cannam@89
|
13969 echo X"$as_dir" |
|
cannam@89
|
13970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
cannam@89
|
13971 s//\1/
|
cannam@89
|
13972 q
|
cannam@89
|
13973 }
|
cannam@89
|
13974 /^X\(\/\/\)[^/].*/{
|
cannam@89
|
13975 s//\1/
|
cannam@89
|
13976 q
|
cannam@89
|
13977 }
|
cannam@89
|
13978 /^X\(\/\/\)$/{
|
cannam@89
|
13979 s//\1/
|
cannam@89
|
13980 q
|
cannam@89
|
13981 }
|
cannam@89
|
13982 /^X\(\/\).*/{
|
cannam@89
|
13983 s//\1/
|
cannam@89
|
13984 q
|
cannam@89
|
13985 }
|
cannam@89
|
13986 s/.*/./; q'`
|
cannam@89
|
13987 test -d "$as_dir" && break
|
cannam@89
|
13988 done
|
cannam@89
|
13989 test -z "$as_dirs" || eval "mkdir $as_dirs"
|
cannam@89
|
13990 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
|
cannam@89
|
13991 echo "$as_me: error: cannot create directory $as_dir" >&2;}
|
cannam@89
|
13992 { (exit 1); exit 1; }; }; }
|
cannam@89
|
13993 # echo "creating $dirpart/$file"
|
cannam@89
|
13994 echo '# dummy' > "$dirpart/$file"
|
cannam@89
|
13995 done
|
cannam@89
|
13996 done
|
cannam@89
|
13997 ;;
|
cannam@89
|
13998 "libtool":C)
|
cannam@89
|
13999
|
cannam@89
|
14000 # See if we are running on zsh, and set the options which allow our
|
cannam@89
|
14001 # commands through without removal of \ escapes.
|
cannam@89
|
14002 if test -n "${ZSH_VERSION+set}" ; then
|
cannam@89
|
14003 setopt NO_GLOB_SUBST
|
cannam@89
|
14004 fi
|
cannam@89
|
14005
|
cannam@89
|
14006 cfgfile="${ofile}T"
|
cannam@89
|
14007 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
|
cannam@89
|
14008 $RM "$cfgfile"
|
cannam@89
|
14009
|
cannam@89
|
14010 cat <<_LT_EOF >> "$cfgfile"
|
cannam@89
|
14011 #! $SHELL
|
cannam@89
|
14012
|
cannam@89
|
14013 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
|
cannam@89
|
14014 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
|
cannam@89
|
14015 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
cannam@89
|
14016 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
cannam@89
|
14017 #
|
cannam@89
|
14018 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
|
cannam@89
|
14019 # 2006, 2007, 2008 Free Software Foundation, Inc.
|
cannam@89
|
14020 # Written by Gordon Matzigkeit, 1996
|
cannam@89
|
14021 #
|
cannam@89
|
14022 # This file is part of GNU Libtool.
|
cannam@89
|
14023 #
|
cannam@89
|
14024 # GNU Libtool is free software; you can redistribute it and/or
|
cannam@89
|
14025 # modify it under the terms of the GNU General Public License as
|
cannam@89
|
14026 # published by the Free Software Foundation; either version 2 of
|
cannam@89
|
14027 # the License, or (at your option) any later version.
|
cannam@89
|
14028 #
|
cannam@89
|
14029 # As a special exception to the GNU General Public License,
|
cannam@89
|
14030 # if you distribute this file as part of a program or library that
|
cannam@89
|
14031 # is built using GNU Libtool, you may include this file under the
|
cannam@89
|
14032 # same distribution terms that you use for the rest of that program.
|
cannam@89
|
14033 #
|
cannam@89
|
14034 # GNU Libtool is distributed in the hope that it will be useful,
|
cannam@89
|
14035 # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
cannam@89
|
14036 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
cannam@89
|
14037 # GNU General Public License for more details.
|
cannam@89
|
14038 #
|
cannam@89
|
14039 # You should have received a copy of the GNU General Public License
|
cannam@89
|
14040 # along with GNU Libtool; see the file COPYING. If not, a copy
|
cannam@89
|
14041 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
|
cannam@89
|
14042 # obtained by writing to the Free Software Foundation, Inc.,
|
cannam@89
|
14043 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
cannam@89
|
14044
|
cannam@89
|
14045
|
cannam@89
|
14046 # The names of the tagged configurations supported by this script.
|
cannam@89
|
14047 available_tags=""
|
cannam@89
|
14048
|
cannam@89
|
14049 # ### BEGIN LIBTOOL CONFIG
|
cannam@89
|
14050
|
cannam@89
|
14051 # Whether or not to build static libraries.
|
cannam@89
|
14052 build_old_libs=$enable_static
|
cannam@89
|
14053
|
cannam@89
|
14054 # Whether or not to build shared libraries.
|
cannam@89
|
14055 build_libtool_libs=$enable_shared
|
cannam@89
|
14056
|
cannam@89
|
14057 # Which release of libtool.m4 was used?
|
cannam@89
|
14058 macro_version=$macro_version
|
cannam@89
|
14059 macro_revision=$macro_revision
|
cannam@89
|
14060
|
cannam@89
|
14061 # What type of objects to build.
|
cannam@89
|
14062 pic_mode=$pic_mode
|
cannam@89
|
14063
|
cannam@89
|
14064 # Whether or not to optimize for fast installation.
|
cannam@89
|
14065 fast_install=$enable_fast_install
|
cannam@89
|
14066
|
cannam@89
|
14067 # The host system.
|
cannam@89
|
14068 host_alias=$host_alias
|
cannam@89
|
14069 host=$host
|
cannam@89
|
14070 host_os=$host_os
|
cannam@89
|
14071
|
cannam@89
|
14072 # The build system.
|
cannam@89
|
14073 build_alias=$build_alias
|
cannam@89
|
14074 build=$build
|
cannam@89
|
14075 build_os=$build_os
|
cannam@89
|
14076
|
cannam@89
|
14077 # A sed program that does not truncate output.
|
cannam@89
|
14078 SED=$lt_SED
|
cannam@89
|
14079
|
cannam@89
|
14080 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
|
cannam@89
|
14081 Xsed="\$SED -e 1s/^X//"
|
cannam@89
|
14082
|
cannam@89
|
14083 # A grep program that handles long lines.
|
cannam@89
|
14084 GREP=$lt_GREP
|
cannam@89
|
14085
|
cannam@89
|
14086 # An ERE matcher.
|
cannam@89
|
14087 EGREP=$lt_EGREP
|
cannam@89
|
14088
|
cannam@89
|
14089 # A literal string matcher.
|
cannam@89
|
14090 FGREP=$lt_FGREP
|
cannam@89
|
14091
|
cannam@89
|
14092 # A BSD- or MS-compatible name lister.
|
cannam@89
|
14093 NM=$lt_NM
|
cannam@89
|
14094
|
cannam@89
|
14095 # Whether we need soft or hard links.
|
cannam@89
|
14096 LN_S=$lt_LN_S
|
cannam@89
|
14097
|
cannam@89
|
14098 # What is the maximum length of a command?
|
cannam@89
|
14099 max_cmd_len=$max_cmd_len
|
cannam@89
|
14100
|
cannam@89
|
14101 # Object file suffix (normally "o").
|
cannam@89
|
14102 objext=$ac_objext
|
cannam@89
|
14103
|
cannam@89
|
14104 # Executable file suffix (normally "").
|
cannam@89
|
14105 exeext=$exeext
|
cannam@89
|
14106
|
cannam@89
|
14107 # whether the shell understands "unset".
|
cannam@89
|
14108 lt_unset=$lt_unset
|
cannam@89
|
14109
|
cannam@89
|
14110 # turn spaces into newlines.
|
cannam@89
|
14111 SP2NL=$lt_lt_SP2NL
|
cannam@89
|
14112
|
cannam@89
|
14113 # turn newlines into spaces.
|
cannam@89
|
14114 NL2SP=$lt_lt_NL2SP
|
cannam@89
|
14115
|
cannam@89
|
14116 # How to create reloadable object files.
|
cannam@89
|
14117 reload_flag=$lt_reload_flag
|
cannam@89
|
14118 reload_cmds=$lt_reload_cmds
|
cannam@89
|
14119
|
cannam@89
|
14120 # Method to check whether dependent libraries are shared objects.
|
cannam@89
|
14121 deplibs_check_method=$lt_deplibs_check_method
|
cannam@89
|
14122
|
cannam@89
|
14123 # Command to use when deplibs_check_method == "file_magic".
|
cannam@89
|
14124 file_magic_cmd=$lt_file_magic_cmd
|
cannam@89
|
14125
|
cannam@89
|
14126 # The archiver.
|
cannam@89
|
14127 AR=$lt_AR
|
cannam@89
|
14128 AR_FLAGS=$lt_AR_FLAGS
|
cannam@89
|
14129
|
cannam@89
|
14130 # A symbol stripping program.
|
cannam@89
|
14131 STRIP=$lt_STRIP
|
cannam@89
|
14132
|
cannam@89
|
14133 # Commands used to install an old-style archive.
|
cannam@89
|
14134 RANLIB=$lt_RANLIB
|
cannam@89
|
14135 old_postinstall_cmds=$lt_old_postinstall_cmds
|
cannam@89
|
14136 old_postuninstall_cmds=$lt_old_postuninstall_cmds
|
cannam@89
|
14137
|
cannam@89
|
14138 # A C compiler.
|
cannam@89
|
14139 LTCC=$lt_CC
|
cannam@89
|
14140
|
cannam@89
|
14141 # LTCC compiler flags.
|
cannam@89
|
14142 LTCFLAGS=$lt_CFLAGS
|
cannam@89
|
14143
|
cannam@89
|
14144 # Take the output of nm and produce a listing of raw symbols and C names.
|
cannam@89
|
14145 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
|
cannam@89
|
14146
|
cannam@89
|
14147 # Transform the output of nm in a proper C declaration.
|
cannam@89
|
14148 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
|
cannam@89
|
14149
|
cannam@89
|
14150 # Transform the output of nm in a C name address pair.
|
cannam@89
|
14151 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
cannam@89
|
14152
|
cannam@89
|
14153 # Transform the output of nm in a C name address pair when lib prefix is needed.
|
cannam@89
|
14154 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
|
cannam@89
|
14155
|
cannam@89
|
14156 # The name of the directory that contains temporary libtool files.
|
cannam@89
|
14157 objdir=$objdir
|
cannam@89
|
14158
|
cannam@89
|
14159 # Shell to use when invoking shell scripts.
|
cannam@89
|
14160 SHELL=$lt_SHELL
|
cannam@89
|
14161
|
cannam@89
|
14162 # An echo program that does not interpret backslashes.
|
cannam@89
|
14163 ECHO=$lt_ECHO
|
cannam@89
|
14164
|
cannam@89
|
14165 # Used to examine libraries when file_magic_cmd begins with "file".
|
cannam@89
|
14166 MAGIC_CMD=$MAGIC_CMD
|
cannam@89
|
14167
|
cannam@89
|
14168 # Must we lock files when doing compilation?
|
cannam@89
|
14169 need_locks=$lt_need_locks
|
cannam@89
|
14170
|
cannam@89
|
14171 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
|
cannam@89
|
14172 DSYMUTIL=$lt_DSYMUTIL
|
cannam@89
|
14173
|
cannam@89
|
14174 # Tool to change global to local symbols on Mac OS X.
|
cannam@89
|
14175 NMEDIT=$lt_NMEDIT
|
cannam@89
|
14176
|
cannam@89
|
14177 # Tool to manipulate fat objects and archives on Mac OS X.
|
cannam@89
|
14178 LIPO=$lt_LIPO
|
cannam@89
|
14179
|
cannam@89
|
14180 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
|
cannam@89
|
14181 OTOOL=$lt_OTOOL
|
cannam@89
|
14182
|
cannam@89
|
14183 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
|
cannam@89
|
14184 OTOOL64=$lt_OTOOL64
|
cannam@89
|
14185
|
cannam@89
|
14186 # Old archive suffix (normally "a").
|
cannam@89
|
14187 libext=$libext
|
cannam@89
|
14188
|
cannam@89
|
14189 # Shared library suffix (normally ".so").
|
cannam@89
|
14190 shrext_cmds=$lt_shrext_cmds
|
cannam@89
|
14191
|
cannam@89
|
14192 # The commands to extract the exported symbol list from a shared archive.
|
cannam@89
|
14193 extract_expsyms_cmds=$lt_extract_expsyms_cmds
|
cannam@89
|
14194
|
cannam@89
|
14195 # Variables whose values should be saved in libtool wrapper scripts and
|
cannam@89
|
14196 # restored at link time.
|
cannam@89
|
14197 variables_saved_for_relink=$lt_variables_saved_for_relink
|
cannam@89
|
14198
|
cannam@89
|
14199 # Do we need the "lib" prefix for modules?
|
cannam@89
|
14200 need_lib_prefix=$need_lib_prefix
|
cannam@89
|
14201
|
cannam@89
|
14202 # Do we need a version for libraries?
|
cannam@89
|
14203 need_version=$need_version
|
cannam@89
|
14204
|
cannam@89
|
14205 # Library versioning type.
|
cannam@89
|
14206 version_type=$version_type
|
cannam@89
|
14207
|
cannam@89
|
14208 # Shared library runtime path variable.
|
cannam@89
|
14209 runpath_var=$runpath_var
|
cannam@89
|
14210
|
cannam@89
|
14211 # Shared library path variable.
|
cannam@89
|
14212 shlibpath_var=$shlibpath_var
|
cannam@89
|
14213
|
cannam@89
|
14214 # Is shlibpath searched before the hard-coded library search path?
|
cannam@89
|
14215 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
|
cannam@89
|
14216
|
cannam@89
|
14217 # Format of library name prefix.
|
cannam@89
|
14218 libname_spec=$lt_libname_spec
|
cannam@89
|
14219
|
cannam@89
|
14220 # List of archive names. First name is the real one, the rest are links.
|
cannam@89
|
14221 # The last name is the one that the linker finds with -lNAME
|
cannam@89
|
14222 library_names_spec=$lt_library_names_spec
|
cannam@89
|
14223
|
cannam@89
|
14224 # The coded name of the library, if different from the real name.
|
cannam@89
|
14225 soname_spec=$lt_soname_spec
|
cannam@89
|
14226
|
cannam@89
|
14227 # Command to use after installation of a shared archive.
|
cannam@89
|
14228 postinstall_cmds=$lt_postinstall_cmds
|
cannam@89
|
14229
|
cannam@89
|
14230 # Command to use after uninstallation of a shared archive.
|
cannam@89
|
14231 postuninstall_cmds=$lt_postuninstall_cmds
|
cannam@89
|
14232
|
cannam@89
|
14233 # Commands used to finish a libtool library installation in a directory.
|
cannam@89
|
14234 finish_cmds=$lt_finish_cmds
|
cannam@89
|
14235
|
cannam@89
|
14236 # As "finish_cmds", except a single script fragment to be evaled but
|
cannam@89
|
14237 # not shown.
|
cannam@89
|
14238 finish_eval=$lt_finish_eval
|
cannam@89
|
14239
|
cannam@89
|
14240 # Whether we should hardcode library paths into libraries.
|
cannam@89
|
14241 hardcode_into_libs=$hardcode_into_libs
|
cannam@89
|
14242
|
cannam@89
|
14243 # Compile-time system search path for libraries.
|
cannam@89
|
14244 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
|
cannam@89
|
14245
|
cannam@89
|
14246 # Run-time system search path for libraries.
|
cannam@89
|
14247 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
|
cannam@89
|
14248
|
cannam@89
|
14249 # Whether dlopen is supported.
|
cannam@89
|
14250 dlopen_support=$enable_dlopen
|
cannam@89
|
14251
|
cannam@89
|
14252 # Whether dlopen of programs is supported.
|
cannam@89
|
14253 dlopen_self=$enable_dlopen_self
|
cannam@89
|
14254
|
cannam@89
|
14255 # Whether dlopen of statically linked programs is supported.
|
cannam@89
|
14256 dlopen_self_static=$enable_dlopen_self_static
|
cannam@89
|
14257
|
cannam@89
|
14258 # Commands to strip libraries.
|
cannam@89
|
14259 old_striplib=$lt_old_striplib
|
cannam@89
|
14260 striplib=$lt_striplib
|
cannam@89
|
14261
|
cannam@89
|
14262
|
cannam@89
|
14263 # The linker used to build libraries.
|
cannam@89
|
14264 LD=$lt_LD
|
cannam@89
|
14265
|
cannam@89
|
14266 # Commands used to build an old-style archive.
|
cannam@89
|
14267 old_archive_cmds=$lt_old_archive_cmds
|
cannam@89
|
14268
|
cannam@89
|
14269 # A language specific compiler.
|
cannam@89
|
14270 CC=$lt_compiler
|
cannam@89
|
14271
|
cannam@89
|
14272 # Is the compiler the GNU compiler?
|
cannam@89
|
14273 with_gcc=$GCC
|
cannam@89
|
14274
|
cannam@89
|
14275 # Compiler flag to turn off builtin functions.
|
cannam@89
|
14276 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
|
cannam@89
|
14277
|
cannam@89
|
14278 # How to pass a linker flag through the compiler.
|
cannam@89
|
14279 wl=$lt_lt_prog_compiler_wl
|
cannam@89
|
14280
|
cannam@89
|
14281 # Additional compiler flags for building library objects.
|
cannam@89
|
14282 pic_flag=$lt_lt_prog_compiler_pic
|
cannam@89
|
14283
|
cannam@89
|
14284 # Compiler flag to prevent dynamic linking.
|
cannam@89
|
14285 link_static_flag=$lt_lt_prog_compiler_static
|
cannam@89
|
14286
|
cannam@89
|
14287 # Does compiler simultaneously support -c and -o options?
|
cannam@89
|
14288 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
|
cannam@89
|
14289
|
cannam@89
|
14290 # Whether or not to add -lc for building shared libraries.
|
cannam@89
|
14291 build_libtool_need_lc=$archive_cmds_need_lc
|
cannam@89
|
14292
|
cannam@89
|
14293 # Whether or not to disallow shared libs when runtime libs are static.
|
cannam@89
|
14294 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
|
cannam@89
|
14295
|
cannam@89
|
14296 # Compiler flag to allow reflexive dlopens.
|
cannam@89
|
14297 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
|
cannam@89
|
14298
|
cannam@89
|
14299 # Compiler flag to generate shared objects directly from archives.
|
cannam@89
|
14300 whole_archive_flag_spec=$lt_whole_archive_flag_spec
|
cannam@89
|
14301
|
cannam@89
|
14302 # Whether the compiler copes with passing no objects directly.
|
cannam@89
|
14303 compiler_needs_object=$lt_compiler_needs_object
|
cannam@89
|
14304
|
cannam@89
|
14305 # Create an old-style archive from a shared archive.
|
cannam@89
|
14306 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
|
cannam@89
|
14307
|
cannam@89
|
14308 # Create a temporary old-style archive to link instead of a shared archive.
|
cannam@89
|
14309 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
|
cannam@89
|
14310
|
cannam@89
|
14311 # Commands used to build a shared archive.
|
cannam@89
|
14312 archive_cmds=$lt_archive_cmds
|
cannam@89
|
14313 archive_expsym_cmds=$lt_archive_expsym_cmds
|
cannam@89
|
14314
|
cannam@89
|
14315 # Commands used to build a loadable module if different from building
|
cannam@89
|
14316 # a shared archive.
|
cannam@89
|
14317 module_cmds=$lt_module_cmds
|
cannam@89
|
14318 module_expsym_cmds=$lt_module_expsym_cmds
|
cannam@89
|
14319
|
cannam@89
|
14320 # Whether we are building with GNU ld or not.
|
cannam@89
|
14321 with_gnu_ld=$lt_with_gnu_ld
|
cannam@89
|
14322
|
cannam@89
|
14323 # Flag that allows shared libraries with undefined symbols to be built.
|
cannam@89
|
14324 allow_undefined_flag=$lt_allow_undefined_flag
|
cannam@89
|
14325
|
cannam@89
|
14326 # Flag that enforces no undefined symbols.
|
cannam@89
|
14327 no_undefined_flag=$lt_no_undefined_flag
|
cannam@89
|
14328
|
cannam@89
|
14329 # Flag to hardcode \$libdir into a binary during linking.
|
cannam@89
|
14330 # This must work even if \$libdir does not exist
|
cannam@89
|
14331 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
|
cannam@89
|
14332
|
cannam@89
|
14333 # If ld is used when linking, flag to hardcode \$libdir into a binary
|
cannam@89
|
14334 # during linking. This must work even if \$libdir does not exist.
|
cannam@89
|
14335 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
|
cannam@89
|
14336
|
cannam@89
|
14337 # Whether we need a single "-rpath" flag with a separated argument.
|
cannam@89
|
14338 hardcode_libdir_separator=$lt_hardcode_libdir_separator
|
cannam@89
|
14339
|
cannam@89
|
14340 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
|
cannam@89
|
14341 # DIR into the resulting binary.
|
cannam@89
|
14342 hardcode_direct=$hardcode_direct
|
cannam@89
|
14343
|
cannam@89
|
14344 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
|
cannam@89
|
14345 # DIR into the resulting binary and the resulting library dependency is
|
cannam@89
|
14346 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
|
cannam@89
|
14347 # library is relocated.
|
cannam@89
|
14348 hardcode_direct_absolute=$hardcode_direct_absolute
|
cannam@89
|
14349
|
cannam@89
|
14350 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
|
cannam@89
|
14351 # into the resulting binary.
|
cannam@89
|
14352 hardcode_minus_L=$hardcode_minus_L
|
cannam@89
|
14353
|
cannam@89
|
14354 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
|
cannam@89
|
14355 # into the resulting binary.
|
cannam@89
|
14356 hardcode_shlibpath_var=$hardcode_shlibpath_var
|
cannam@89
|
14357
|
cannam@89
|
14358 # Set to "yes" if building a shared library automatically hardcodes DIR
|
cannam@89
|
14359 # into the library and all subsequent libraries and executables linked
|
cannam@89
|
14360 # against it.
|
cannam@89
|
14361 hardcode_automatic=$hardcode_automatic
|
cannam@89
|
14362
|
cannam@89
|
14363 # Set to yes if linker adds runtime paths of dependent libraries
|
cannam@89
|
14364 # to runtime path list.
|
cannam@89
|
14365 inherit_rpath=$inherit_rpath
|
cannam@89
|
14366
|
cannam@89
|
14367 # Whether libtool must link a program against all its dependency libraries.
|
cannam@89
|
14368 link_all_deplibs=$link_all_deplibs
|
cannam@89
|
14369
|
cannam@89
|
14370 # Fix the shell variable \$srcfile for the compiler.
|
cannam@89
|
14371 fix_srcfile_path=$lt_fix_srcfile_path
|
cannam@89
|
14372
|
cannam@89
|
14373 # Set to "yes" if exported symbols are required.
|
cannam@89
|
14374 always_export_symbols=$always_export_symbols
|
cannam@89
|
14375
|
cannam@89
|
14376 # The commands to list exported symbols.
|
cannam@89
|
14377 export_symbols_cmds=$lt_export_symbols_cmds
|
cannam@89
|
14378
|
cannam@89
|
14379 # Symbols that should not be listed in the preloaded symbols.
|
cannam@89
|
14380 exclude_expsyms=$lt_exclude_expsyms
|
cannam@89
|
14381
|
cannam@89
|
14382 # Symbols that must always be exported.
|
cannam@89
|
14383 include_expsyms=$lt_include_expsyms
|
cannam@89
|
14384
|
cannam@89
|
14385 # Commands necessary for linking programs (against libraries) with templates.
|
cannam@89
|
14386 prelink_cmds=$lt_prelink_cmds
|
cannam@89
|
14387
|
cannam@89
|
14388 # Specify filename containing input files.
|
cannam@89
|
14389 file_list_spec=$lt_file_list_spec
|
cannam@89
|
14390
|
cannam@89
|
14391 # How to hardcode a shared library path into an executable.
|
cannam@89
|
14392 hardcode_action=$hardcode_action
|
cannam@89
|
14393
|
cannam@89
|
14394 # ### END LIBTOOL CONFIG
|
cannam@89
|
14395
|
cannam@89
|
14396 _LT_EOF
|
cannam@89
|
14397
|
cannam@89
|
14398 case $host_os in
|
cannam@89
|
14399 aix3*)
|
cannam@89
|
14400 cat <<\_LT_EOF >> "$cfgfile"
|
cannam@89
|
14401 # AIX sometimes has problems with the GCC collect2 program. For some
|
cannam@89
|
14402 # reason, if we set the COLLECT_NAMES environment variable, the problems
|
cannam@89
|
14403 # vanish in a puff of smoke.
|
cannam@89
|
14404 if test "X${COLLECT_NAMES+set}" != Xset; then
|
cannam@89
|
14405 COLLECT_NAMES=
|
cannam@89
|
14406 export COLLECT_NAMES
|
cannam@89
|
14407 fi
|
cannam@89
|
14408 _LT_EOF
|
cannam@89
|
14409 ;;
|
cannam@89
|
14410 esac
|
cannam@89
|
14411
|
cannam@89
|
14412
|
cannam@89
|
14413 ltmain="$ac_aux_dir/ltmain.sh"
|
cannam@89
|
14414
|
cannam@89
|
14415
|
cannam@89
|
14416 # We use sed instead of cat because bash on DJGPP gets confused if
|
cannam@89
|
14417 # if finds mixed CR/LF and LF-only lines. Since sed operates in
|
cannam@89
|
14418 # text mode, it properly converts lines to CR/LF. This bash problem
|
cannam@89
|
14419 # is reportedly fixed, but why not run on old versions too?
|
cannam@89
|
14420 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
|
cannam@89
|
14421 || (rm -f "$cfgfile"; exit 1)
|
cannam@89
|
14422
|
cannam@89
|
14423 case $xsi_shell in
|
cannam@89
|
14424 yes)
|
cannam@89
|
14425 cat << \_LT_EOF >> "$cfgfile"
|
cannam@89
|
14426
|
cannam@89
|
14427 # func_dirname file append nondir_replacement
|
cannam@89
|
14428 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
|
cannam@89
|
14429 # otherwise set result to NONDIR_REPLACEMENT.
|
cannam@89
|
14430 func_dirname ()
|
cannam@89
|
14431 {
|
cannam@89
|
14432 case ${1} in
|
cannam@89
|
14433 */*) func_dirname_result="${1%/*}${2}" ;;
|
cannam@89
|
14434 * ) func_dirname_result="${3}" ;;
|
cannam@89
|
14435 esac
|
cannam@89
|
14436 }
|
cannam@89
|
14437
|
cannam@89
|
14438 # func_basename file
|
cannam@89
|
14439 func_basename ()
|
cannam@89
|
14440 {
|
cannam@89
|
14441 func_basename_result="${1##*/}"
|
cannam@89
|
14442 }
|
cannam@89
|
14443
|
cannam@89
|
14444 # func_dirname_and_basename file append nondir_replacement
|
cannam@89
|
14445 # perform func_basename and func_dirname in a single function
|
cannam@89
|
14446 # call:
|
cannam@89
|
14447 # dirname: Compute the dirname of FILE. If nonempty,
|
cannam@89
|
14448 # add APPEND to the result, otherwise set result
|
cannam@89
|
14449 # to NONDIR_REPLACEMENT.
|
cannam@89
|
14450 # value returned in "$func_dirname_result"
|
cannam@89
|
14451 # basename: Compute filename of FILE.
|
cannam@89
|
14452 # value retuned in "$func_basename_result"
|
cannam@89
|
14453 # Implementation must be kept synchronized with func_dirname
|
cannam@89
|
14454 # and func_basename. For efficiency, we do not delegate to
|
cannam@89
|
14455 # those functions but instead duplicate the functionality here.
|
cannam@89
|
14456 func_dirname_and_basename ()
|
cannam@89
|
14457 {
|
cannam@89
|
14458 case ${1} in
|
cannam@89
|
14459 */*) func_dirname_result="${1%/*}${2}" ;;
|
cannam@89
|
14460 * ) func_dirname_result="${3}" ;;
|
cannam@89
|
14461 esac
|
cannam@89
|
14462 func_basename_result="${1##*/}"
|
cannam@89
|
14463 }
|
cannam@89
|
14464
|
cannam@89
|
14465 # func_stripname prefix suffix name
|
cannam@89
|
14466 # strip PREFIX and SUFFIX off of NAME.
|
cannam@89
|
14467 # PREFIX and SUFFIX must not contain globbing or regex special
|
cannam@89
|
14468 # characters, hashes, percent signs, but SUFFIX may contain a leading
|
cannam@89
|
14469 # dot (in which case that matches only a dot).
|
cannam@89
|
14470 func_stripname ()
|
cannam@89
|
14471 {
|
cannam@89
|
14472 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
|
cannam@89
|
14473 # positional parameters, so assign one to ordinary parameter first.
|
cannam@89
|
14474 func_stripname_result=${3}
|
cannam@89
|
14475 func_stripname_result=${func_stripname_result#"${1}"}
|
cannam@89
|
14476 func_stripname_result=${func_stripname_result%"${2}"}
|
cannam@89
|
14477 }
|
cannam@89
|
14478
|
cannam@89
|
14479 # func_opt_split
|
cannam@89
|
14480 func_opt_split ()
|
cannam@89
|
14481 {
|
cannam@89
|
14482 func_opt_split_opt=${1%%=*}
|
cannam@89
|
14483 func_opt_split_arg=${1#*=}
|
cannam@89
|
14484 }
|
cannam@89
|
14485
|
cannam@89
|
14486 # func_lo2o object
|
cannam@89
|
14487 func_lo2o ()
|
cannam@89
|
14488 {
|
cannam@89
|
14489 case ${1} in
|
cannam@89
|
14490 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
|
cannam@89
|
14491 *) func_lo2o_result=${1} ;;
|
cannam@89
|
14492 esac
|
cannam@89
|
14493 }
|
cannam@89
|
14494
|
cannam@89
|
14495 # func_xform libobj-or-source
|
cannam@89
|
14496 func_xform ()
|
cannam@89
|
14497 {
|
cannam@89
|
14498 func_xform_result=${1%.*}.lo
|
cannam@89
|
14499 }
|
cannam@89
|
14500
|
cannam@89
|
14501 # func_arith arithmetic-term...
|
cannam@89
|
14502 func_arith ()
|
cannam@89
|
14503 {
|
cannam@89
|
14504 func_arith_result=$(( $* ))
|
cannam@89
|
14505 }
|
cannam@89
|
14506
|
cannam@89
|
14507 # func_len string
|
cannam@89
|
14508 # STRING may not start with a hyphen.
|
cannam@89
|
14509 func_len ()
|
cannam@89
|
14510 {
|
cannam@89
|
14511 func_len_result=${#1}
|
cannam@89
|
14512 }
|
cannam@89
|
14513
|
cannam@89
|
14514 _LT_EOF
|
cannam@89
|
14515 ;;
|
cannam@89
|
14516 *) # Bourne compatible functions.
|
cannam@89
|
14517 cat << \_LT_EOF >> "$cfgfile"
|
cannam@89
|
14518
|
cannam@89
|
14519 # func_dirname file append nondir_replacement
|
cannam@89
|
14520 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
|
cannam@89
|
14521 # otherwise set result to NONDIR_REPLACEMENT.
|
cannam@89
|
14522 func_dirname ()
|
cannam@89
|
14523 {
|
cannam@89
|
14524 # Extract subdirectory from the argument.
|
cannam@89
|
14525 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
|
cannam@89
|
14526 if test "X$func_dirname_result" = "X${1}"; then
|
cannam@89
|
14527 func_dirname_result="${3}"
|
cannam@89
|
14528 else
|
cannam@89
|
14529 func_dirname_result="$func_dirname_result${2}"
|
cannam@89
|
14530 fi
|
cannam@89
|
14531 }
|
cannam@89
|
14532
|
cannam@89
|
14533 # func_basename file
|
cannam@89
|
14534 func_basename ()
|
cannam@89
|
14535 {
|
cannam@89
|
14536 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
|
cannam@89
|
14537 }
|
cannam@89
|
14538
|
cannam@89
|
14539
|
cannam@89
|
14540 # func_stripname prefix suffix name
|
cannam@89
|
14541 # strip PREFIX and SUFFIX off of NAME.
|
cannam@89
|
14542 # PREFIX and SUFFIX must not contain globbing or regex special
|
cannam@89
|
14543 # characters, hashes, percent signs, but SUFFIX may contain a leading
|
cannam@89
|
14544 # dot (in which case that matches only a dot).
|
cannam@89
|
14545 # func_strip_suffix prefix name
|
cannam@89
|
14546 func_stripname ()
|
cannam@89
|
14547 {
|
cannam@89
|
14548 case ${2} in
|
cannam@89
|
14549 .*) func_stripname_result=`$ECHO "X${3}" \
|
cannam@89
|
14550 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
|
cannam@89
|
14551 *) func_stripname_result=`$ECHO "X${3}" \
|
cannam@89
|
14552 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
|
cannam@89
|
14553 esac
|
cannam@89
|
14554 }
|
cannam@89
|
14555
|
cannam@89
|
14556 # sed scripts:
|
cannam@89
|
14557 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
|
cannam@89
|
14558 my_sed_long_arg='1s/^-[^=]*=//'
|
cannam@89
|
14559
|
cannam@89
|
14560 # func_opt_split
|
cannam@89
|
14561 func_opt_split ()
|
cannam@89
|
14562 {
|
cannam@89
|
14563 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
|
cannam@89
|
14564 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
|
cannam@89
|
14565 }
|
cannam@89
|
14566
|
cannam@89
|
14567 # func_lo2o object
|
cannam@89
|
14568 func_lo2o ()
|
cannam@89
|
14569 {
|
cannam@89
|
14570 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
|
cannam@89
|
14571 }
|
cannam@89
|
14572
|
cannam@89
|
14573 # func_xform libobj-or-source
|
cannam@89
|
14574 func_xform ()
|
cannam@89
|
14575 {
|
cannam@89
|
14576 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
|
cannam@89
|
14577 }
|
cannam@89
|
14578
|
cannam@89
|
14579 # func_arith arithmetic-term...
|
cannam@89
|
14580 func_arith ()
|
cannam@89
|
14581 {
|
cannam@89
|
14582 func_arith_result=`expr "$@"`
|
cannam@89
|
14583 }
|
cannam@89
|
14584
|
cannam@89
|
14585 # func_len string
|
cannam@89
|
14586 # STRING may not start with a hyphen.
|
cannam@89
|
14587 func_len ()
|
cannam@89
|
14588 {
|
cannam@89
|
14589 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
|
cannam@89
|
14590 }
|
cannam@89
|
14591
|
cannam@89
|
14592 _LT_EOF
|
cannam@89
|
14593 esac
|
cannam@89
|
14594
|
cannam@89
|
14595 case $lt_shell_append in
|
cannam@89
|
14596 yes)
|
cannam@89
|
14597 cat << \_LT_EOF >> "$cfgfile"
|
cannam@89
|
14598
|
cannam@89
|
14599 # func_append var value
|
cannam@89
|
14600 # Append VALUE to the end of shell variable VAR.
|
cannam@89
|
14601 func_append ()
|
cannam@89
|
14602 {
|
cannam@89
|
14603 eval "$1+=\$2"
|
cannam@89
|
14604 }
|
cannam@89
|
14605 _LT_EOF
|
cannam@89
|
14606 ;;
|
cannam@89
|
14607 *)
|
cannam@89
|
14608 cat << \_LT_EOF >> "$cfgfile"
|
cannam@89
|
14609
|
cannam@89
|
14610 # func_append var value
|
cannam@89
|
14611 # Append VALUE to the end of shell variable VAR.
|
cannam@89
|
14612 func_append ()
|
cannam@89
|
14613 {
|
cannam@89
|
14614 eval "$1=\$$1\$2"
|
cannam@89
|
14615 }
|
cannam@89
|
14616
|
cannam@89
|
14617 _LT_EOF
|
cannam@89
|
14618 ;;
|
cannam@89
|
14619 esac
|
cannam@89
|
14620
|
cannam@89
|
14621
|
cannam@89
|
14622 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
|
cannam@89
|
14623 || (rm -f "$cfgfile"; exit 1)
|
cannam@89
|
14624
|
cannam@89
|
14625 mv -f "$cfgfile" "$ofile" ||
|
cannam@89
|
14626 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
|
cannam@89
|
14627 chmod +x "$ofile"
|
cannam@89
|
14628
|
cannam@89
|
14629 ;;
|
cannam@89
|
14630
|
cannam@89
|
14631 esac
|
cannam@89
|
14632 done # for ac_tag
|
cannam@89
|
14633
|
cannam@89
|
14634
|
cannam@89
|
14635 { (exit 0); exit 0; }
|
cannam@89
|
14636 _ACEOF
|
cannam@89
|
14637 chmod +x $CONFIG_STATUS
|
cannam@89
|
14638 ac_clean_files=$ac_clean_files_save
|
cannam@89
|
14639
|
cannam@89
|
14640
|
cannam@89
|
14641 # configure is writing to config.log, and then calls config.status.
|
cannam@89
|
14642 # config.status does its own redirection, appending to config.log.
|
cannam@89
|
14643 # Unfortunately, on DOS this fails, as config.log is still kept open
|
cannam@89
|
14644 # by configure, so config.status won't be able to write to it; its
|
cannam@89
|
14645 # output is simply discarded. So we exec the FD to /dev/null,
|
cannam@89
|
14646 # effectively closing config.log, so it can be properly (re)opened and
|
cannam@89
|
14647 # appended to by config.status. When coming back to configure, we
|
cannam@89
|
14648 # need to make the FD available again.
|
cannam@89
|
14649 if test "$no_create" != yes; then
|
cannam@89
|
14650 ac_cs_success=:
|
cannam@89
|
14651 ac_config_status_args=
|
cannam@89
|
14652 test "$silent" = yes &&
|
cannam@89
|
14653 ac_config_status_args="$ac_config_status_args --quiet"
|
cannam@89
|
14654 exec 5>/dev/null
|
cannam@89
|
14655 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
cannam@89
|
14656 exec 5>>config.log
|
cannam@89
|
14657 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
cannam@89
|
14658 # would make configure fail if this is the last instruction.
|
cannam@89
|
14659 $ac_cs_success || { (exit 1); exit 1; }
|
cannam@89
|
14660 fi
|
cannam@89
|
14661
|