cannam@86
|
1 #! /bin/sh
|
cannam@86
|
2 # Guess values for system-dependent variables and create Makefiles.
|
cannam@86
|
3 # Generated by GNU Autoconf 2.59.
|
cannam@86
|
4 #
|
cannam@86
|
5 # Copyright (C) 2003 Free Software Foundation, Inc.
|
cannam@86
|
6 # This configure script is free software; the Free Software Foundation
|
cannam@86
|
7 # gives unlimited permission to copy, distribute and modify it.
|
cannam@86
|
8 ## --------------------- ##
|
cannam@86
|
9 ## M4sh Initialization. ##
|
cannam@86
|
10 ## --------------------- ##
|
cannam@86
|
11
|
cannam@86
|
12 # Be Bourne compatible
|
cannam@86
|
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
cannam@86
|
14 emulate sh
|
cannam@86
|
15 NULLCMD=:
|
cannam@86
|
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
cannam@86
|
17 # is contrary to our usage. Disable this feature.
|
cannam@86
|
18 alias -g '${1+"$@"}'='"$@"'
|
cannam@86
|
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
cannam@86
|
20 set -o posix
|
cannam@86
|
21 fi
|
cannam@86
|
22 DUALCASE=1; export DUALCASE # for MKS sh
|
cannam@86
|
23
|
cannam@86
|
24 # Support unset when possible.
|
cannam@86
|
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
cannam@86
|
26 as_unset=unset
|
cannam@86
|
27 else
|
cannam@86
|
28 as_unset=false
|
cannam@86
|
29 fi
|
cannam@86
|
30
|
cannam@86
|
31
|
cannam@86
|
32 # Work around bugs in pre-3.0 UWIN ksh.
|
cannam@86
|
33 $as_unset ENV MAIL MAILPATH
|
cannam@86
|
34 PS1='$ '
|
cannam@86
|
35 PS2='> '
|
cannam@86
|
36 PS4='+ '
|
cannam@86
|
37
|
cannam@86
|
38 # NLS nuisances.
|
cannam@86
|
39 for as_var in \
|
cannam@86
|
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
cannam@86
|
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
cannam@86
|
42 LC_TELEPHONE LC_TIME
|
cannam@86
|
43 do
|
cannam@86
|
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
cannam@86
|
45 eval $as_var=C; export $as_var
|
cannam@86
|
46 else
|
cannam@86
|
47 $as_unset $as_var
|
cannam@86
|
48 fi
|
cannam@86
|
49 done
|
cannam@86
|
50
|
cannam@86
|
51 # Required to use basename.
|
cannam@86
|
52 if expr a : '\(a\)' >/dev/null 2>&1; then
|
cannam@86
|
53 as_expr=expr
|
cannam@86
|
54 else
|
cannam@86
|
55 as_expr=false
|
cannam@86
|
56 fi
|
cannam@86
|
57
|
cannam@86
|
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
cannam@86
|
59 as_basename=basename
|
cannam@86
|
60 else
|
cannam@86
|
61 as_basename=false
|
cannam@86
|
62 fi
|
cannam@86
|
63
|
cannam@86
|
64
|
cannam@86
|
65 # Name of the executable.
|
cannam@86
|
66 as_me=`$as_basename "$0" ||
|
cannam@86
|
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
cannam@86
|
68 X"$0" : 'X\(//\)$' \| \
|
cannam@86
|
69 X"$0" : 'X\(/\)$' \| \
|
cannam@86
|
70 . : '\(.\)' 2>/dev/null ||
|
cannam@86
|
71 echo X/"$0" |
|
cannam@86
|
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
|
cannam@86
|
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
|
cannam@86
|
74 /^X\/\(\/\).*/{ s//\1/; q; }
|
cannam@86
|
75 s/.*/./; q'`
|
cannam@86
|
76
|
cannam@86
|
77
|
cannam@86
|
78 # PATH needs CR, and LINENO needs CR and PATH.
|
cannam@86
|
79 # Avoid depending upon Character Ranges.
|
cannam@86
|
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
cannam@86
|
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
cannam@86
|
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
cannam@86
|
83 as_cr_digits='0123456789'
|
cannam@86
|
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
|
cannam@86
|
85
|
cannam@86
|
86 # The user is always right.
|
cannam@86
|
87 if test "${PATH_SEPARATOR+set}" != set; then
|
cannam@86
|
88 echo "#! /bin/sh" >conf$$.sh
|
cannam@86
|
89 echo "exit 0" >>conf$$.sh
|
cannam@86
|
90 chmod +x conf$$.sh
|
cannam@86
|
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
cannam@86
|
92 PATH_SEPARATOR=';'
|
cannam@86
|
93 else
|
cannam@86
|
94 PATH_SEPARATOR=:
|
cannam@86
|
95 fi
|
cannam@86
|
96 rm -f conf$$.sh
|
cannam@86
|
97 fi
|
cannam@86
|
98
|
cannam@86
|
99
|
cannam@86
|
100 as_lineno_1=$LINENO
|
cannam@86
|
101 as_lineno_2=$LINENO
|
cannam@86
|
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
cannam@86
|
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
|
cannam@86
|
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
|
cannam@86
|
105 # Find who we are. Look in the path if we contain no path at all
|
cannam@86
|
106 # relative or not.
|
cannam@86
|
107 case $0 in
|
cannam@86
|
108 *[\\/]* ) as_myself=$0 ;;
|
cannam@86
|
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@86
|
110 for as_dir in $PATH
|
cannam@86
|
111 do
|
cannam@86
|
112 IFS=$as_save_IFS
|
cannam@86
|
113 test -z "$as_dir" && as_dir=.
|
cannam@86
|
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
cannam@86
|
115 done
|
cannam@86
|
116
|
cannam@86
|
117 ;;
|
cannam@86
|
118 esac
|
cannam@86
|
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
|
cannam@86
|
120 # in which case we are not to be found in the path.
|
cannam@86
|
121 if test "x$as_myself" = x; then
|
cannam@86
|
122 as_myself=$0
|
cannam@86
|
123 fi
|
cannam@86
|
124 if test ! -f "$as_myself"; then
|
cannam@86
|
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
|
cannam@86
|
126 { (exit 1); exit 1; }; }
|
cannam@86
|
127 fi
|
cannam@86
|
128 case $CONFIG_SHELL in
|
cannam@86
|
129 '')
|
cannam@86
|
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@86
|
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
cannam@86
|
132 do
|
cannam@86
|
133 IFS=$as_save_IFS
|
cannam@86
|
134 test -z "$as_dir" && as_dir=.
|
cannam@86
|
135 for as_base in sh bash ksh sh5; do
|
cannam@86
|
136 case $as_dir in
|
cannam@86
|
137 /*)
|
cannam@86
|
138 if ("$as_dir/$as_base" -c '
|
cannam@86
|
139 as_lineno_1=$LINENO
|
cannam@86
|
140 as_lineno_2=$LINENO
|
cannam@86
|
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
cannam@86
|
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
|
cannam@86
|
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
|
cannam@86
|
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
|
cannam@86
|
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
|
cannam@86
|
146 CONFIG_SHELL=$as_dir/$as_base
|
cannam@86
|
147 export CONFIG_SHELL
|
cannam@86
|
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
|
cannam@86
|
149 fi;;
|
cannam@86
|
150 esac
|
cannam@86
|
151 done
|
cannam@86
|
152 done
|
cannam@86
|
153 ;;
|
cannam@86
|
154 esac
|
cannam@86
|
155
|
cannam@86
|
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
cannam@86
|
157 # uniformly replaced by the line number. The first 'sed' inserts a
|
cannam@86
|
158 # line-number line before each line; the second 'sed' does the real
|
cannam@86
|
159 # work. The second script uses 'N' to pair each line-number line
|
cannam@86
|
160 # with the numbered line, and appends trailing '-' during
|
cannam@86
|
161 # substitution so that $LINENO is not a special case at line end.
|
cannam@86
|
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
cannam@86
|
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
|
cannam@86
|
164 sed '=' <$as_myself |
|
cannam@86
|
165 sed '
|
cannam@86
|
166 N
|
cannam@86
|
167 s,$,-,
|
cannam@86
|
168 : loop
|
cannam@86
|
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
cannam@86
|
170 t loop
|
cannam@86
|
171 s,-$,,
|
cannam@86
|
172 s,^['$as_cr_digits']*\n,,
|
cannam@86
|
173 ' >$as_me.lineno &&
|
cannam@86
|
174 chmod +x $as_me.lineno ||
|
cannam@86
|
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
|
cannam@86
|
176 { (exit 1); exit 1; }; }
|
cannam@86
|
177
|
cannam@86
|
178 # Don't try to exec as it changes $[0], causing all sort of problems
|
cannam@86
|
179 # (the dirname of $[0] is not the place where we might find the
|
cannam@86
|
180 # original and so on. Autoconf is especially sensible to this).
|
cannam@86
|
181 . ./$as_me.lineno
|
cannam@86
|
182 # Exit status is that of the last command.
|
cannam@86
|
183 exit
|
cannam@86
|
184 }
|
cannam@86
|
185
|
cannam@86
|
186
|
cannam@86
|
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
|
cannam@86
|
188 *c*,-n*) ECHO_N= ECHO_C='
|
cannam@86
|
189 ' ECHO_T=' ' ;;
|
cannam@86
|
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
|
cannam@86
|
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
|
cannam@86
|
192 esac
|
cannam@86
|
193
|
cannam@86
|
194 if expr a : '\(a\)' >/dev/null 2>&1; then
|
cannam@86
|
195 as_expr=expr
|
cannam@86
|
196 else
|
cannam@86
|
197 as_expr=false
|
cannam@86
|
198 fi
|
cannam@86
|
199
|
cannam@86
|
200 rm -f conf$$ conf$$.exe conf$$.file
|
cannam@86
|
201 echo >conf$$.file
|
cannam@86
|
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
|
cannam@86
|
203 # We could just check for DJGPP; but this test a) works b) is more generic
|
cannam@86
|
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
|
cannam@86
|
205 if test -f conf$$.exe; then
|
cannam@86
|
206 # Don't use ln at all; we don't have any links
|
cannam@86
|
207 as_ln_s='cp -p'
|
cannam@86
|
208 else
|
cannam@86
|
209 as_ln_s='ln -s'
|
cannam@86
|
210 fi
|
cannam@86
|
211 elif ln conf$$.file conf$$ 2>/dev/null; then
|
cannam@86
|
212 as_ln_s=ln
|
cannam@86
|
213 else
|
cannam@86
|
214 as_ln_s='cp -p'
|
cannam@86
|
215 fi
|
cannam@86
|
216 rm -f conf$$ conf$$.exe conf$$.file
|
cannam@86
|
217
|
cannam@86
|
218 if mkdir -p . 2>/dev/null; then
|
cannam@86
|
219 as_mkdir_p=:
|
cannam@86
|
220 else
|
cannam@86
|
221 test -d ./-p && rmdir ./-p
|
cannam@86
|
222 as_mkdir_p=false
|
cannam@86
|
223 fi
|
cannam@86
|
224
|
cannam@86
|
225 as_executable_p="test -f"
|
cannam@86
|
226
|
cannam@86
|
227 # Sed expression to map a string onto a valid CPP name.
|
cannam@86
|
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
cannam@86
|
229
|
cannam@86
|
230 # Sed expression to map a string onto a valid variable name.
|
cannam@86
|
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
cannam@86
|
232
|
cannam@86
|
233
|
cannam@86
|
234 # IFS
|
cannam@86
|
235 # We need space, tab and new line, in precisely that order.
|
cannam@86
|
236 as_nl='
|
cannam@86
|
237 '
|
cannam@86
|
238 IFS=" $as_nl"
|
cannam@86
|
239
|
cannam@86
|
240 # CDPATH.
|
cannam@86
|
241 $as_unset CDPATH
|
cannam@86
|
242
|
cannam@86
|
243
|
cannam@86
|
244
|
cannam@86
|
245 # Check that we are running under the correct shell.
|
cannam@86
|
246 SHELL=${CONFIG_SHELL-/bin/sh}
|
cannam@86
|
247
|
cannam@86
|
248 case X$ECHO in
|
cannam@86
|
249 X*--fallback-echo)
|
cannam@86
|
250 # Remove one level of quotation (which was required for Make).
|
cannam@86
|
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
|
cannam@86
|
252 ;;
|
cannam@86
|
253 esac
|
cannam@86
|
254
|
cannam@86
|
255 echo=${ECHO-echo}
|
cannam@86
|
256 if test "X$1" = X--no-reexec; then
|
cannam@86
|
257 # Discard the --no-reexec flag, and continue.
|
cannam@86
|
258 shift
|
cannam@86
|
259 elif test "X$1" = X--fallback-echo; then
|
cannam@86
|
260 # Avoid inline document here, it may be left over
|
cannam@86
|
261 :
|
cannam@86
|
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
|
cannam@86
|
263 # Yippee, $echo works!
|
cannam@86
|
264 :
|
cannam@86
|
265 else
|
cannam@86
|
266 # Restart under the correct shell.
|
cannam@86
|
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
|
cannam@86
|
268 fi
|
cannam@86
|
269
|
cannam@86
|
270 if test "X$1" = X--fallback-echo; then
|
cannam@86
|
271 # used as fallback echo
|
cannam@86
|
272 shift
|
cannam@86
|
273 cat <<EOF
|
cannam@86
|
274 $*
|
cannam@86
|
275 EOF
|
cannam@86
|
276 exit 0
|
cannam@86
|
277 fi
|
cannam@86
|
278
|
cannam@86
|
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
|
cannam@86
|
280 # if CDPATH is set.
|
cannam@86
|
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
cannam@86
|
282
|
cannam@86
|
283 if test -z "$ECHO"; then
|
cannam@86
|
284 if test "X${echo_test_string+set}" != Xset; then
|
cannam@86
|
285 # find a string as large as possible, as long as the shell can cope with it
|
cannam@86
|
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
|
cannam@86
|
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
|
cannam@86
|
288 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
|
cannam@86
|
289 echo_test_string="`eval $cmd`" &&
|
cannam@86
|
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
|
cannam@86
|
291 then
|
cannam@86
|
292 break
|
cannam@86
|
293 fi
|
cannam@86
|
294 done
|
cannam@86
|
295 fi
|
cannam@86
|
296
|
cannam@86
|
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
|
cannam@86
|
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
|
cannam@86
|
299 test "X$echo_testing_string" = "X$echo_test_string"; then
|
cannam@86
|
300 :
|
cannam@86
|
301 else
|
cannam@86
|
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
|
cannam@86
|
303 # backslashes. This makes it impossible to quote backslashes using
|
cannam@86
|
304 # echo "$something" | sed 's/\\/\\\\/g'
|
cannam@86
|
305 #
|
cannam@86
|
306 # So, first we look for a working echo in the user's PATH.
|
cannam@86
|
307
|
cannam@86
|
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
cannam@86
|
309 for dir in $PATH /usr/ucb; do
|
cannam@86
|
310 IFS="$lt_save_ifs"
|
cannam@86
|
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
|
cannam@86
|
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
|
cannam@86
|
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
|
cannam@86
|
314 test "X$echo_testing_string" = "X$echo_test_string"; then
|
cannam@86
|
315 echo="$dir/echo"
|
cannam@86
|
316 break
|
cannam@86
|
317 fi
|
cannam@86
|
318 done
|
cannam@86
|
319 IFS="$lt_save_ifs"
|
cannam@86
|
320
|
cannam@86
|
321 if test "X$echo" = Xecho; then
|
cannam@86
|
322 # We didn't find a better echo, so look for alternatives.
|
cannam@86
|
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
|
cannam@86
|
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
|
cannam@86
|
325 test "X$echo_testing_string" = "X$echo_test_string"; then
|
cannam@86
|
326 # This shell has a builtin print -r that does the trick.
|
cannam@86
|
327 echo='print -r'
|
cannam@86
|
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
|
cannam@86
|
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
|
cannam@86
|
330 # If we have ksh, try running configure again with it.
|
cannam@86
|
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
|
cannam@86
|
332 export ORIGINAL_CONFIG_SHELL
|
cannam@86
|
333 CONFIG_SHELL=/bin/ksh
|
cannam@86
|
334 export CONFIG_SHELL
|
cannam@86
|
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
|
cannam@86
|
336 else
|
cannam@86
|
337 # Try using printf.
|
cannam@86
|
338 echo='printf %s\n'
|
cannam@86
|
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
|
cannam@86
|
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
|
cannam@86
|
341 test "X$echo_testing_string" = "X$echo_test_string"; then
|
cannam@86
|
342 # Cool, printf works
|
cannam@86
|
343 :
|
cannam@86
|
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
|
cannam@86
|
345 test "X$echo_testing_string" = 'X\t' &&
|
cannam@86
|
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
|
cannam@86
|
347 test "X$echo_testing_string" = "X$echo_test_string"; then
|
cannam@86
|
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
|
cannam@86
|
349 export CONFIG_SHELL
|
cannam@86
|
350 SHELL="$CONFIG_SHELL"
|
cannam@86
|
351 export SHELL
|
cannam@86
|
352 echo="$CONFIG_SHELL $0 --fallback-echo"
|
cannam@86
|
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
|
cannam@86
|
354 test "X$echo_testing_string" = 'X\t' &&
|
cannam@86
|
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
|
cannam@86
|
356 test "X$echo_testing_string" = "X$echo_test_string"; then
|
cannam@86
|
357 echo="$CONFIG_SHELL $0 --fallback-echo"
|
cannam@86
|
358 else
|
cannam@86
|
359 # maybe with a smaller string...
|
cannam@86
|
360 prev=:
|
cannam@86
|
361
|
cannam@86
|
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
|
cannam@86
|
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
|
cannam@86
|
364 then
|
cannam@86
|
365 break
|
cannam@86
|
366 fi
|
cannam@86
|
367 prev="$cmd"
|
cannam@86
|
368 done
|
cannam@86
|
369
|
cannam@86
|
370 if test "$prev" != 'sed 50q "$0"'; then
|
cannam@86
|
371 echo_test_string=`eval $prev`
|
cannam@86
|
372 export echo_test_string
|
cannam@86
|
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
|
cannam@86
|
374 else
|
cannam@86
|
375 # Oops. We lost completely, so just stick with echo.
|
cannam@86
|
376 echo=echo
|
cannam@86
|
377 fi
|
cannam@86
|
378 fi
|
cannam@86
|
379 fi
|
cannam@86
|
380 fi
|
cannam@86
|
381 fi
|
cannam@86
|
382 fi
|
cannam@86
|
383
|
cannam@86
|
384 # Copy echo and quote the copy suitably for passing to libtool from
|
cannam@86
|
385 # the Makefile, instead of quoting the original, which is used later.
|
cannam@86
|
386 ECHO=$echo
|
cannam@86
|
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
|
cannam@86
|
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
|
cannam@86
|
389 fi
|
cannam@86
|
390
|
cannam@86
|
391
|
cannam@86
|
392
|
cannam@86
|
393
|
cannam@86
|
394 tagnames=${tagnames+${tagnames},}CXX
|
cannam@86
|
395
|
cannam@86
|
396 tagnames=${tagnames+${tagnames},}F77
|
cannam@86
|
397
|
cannam@86
|
398 # Name of the host.
|
cannam@86
|
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
|
cannam@86
|
400 # so uname gets run too.
|
cannam@86
|
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
cannam@86
|
402
|
cannam@86
|
403 exec 6>&1
|
cannam@86
|
404
|
cannam@86
|
405 #
|
cannam@86
|
406 # Initializations.
|
cannam@86
|
407 #
|
cannam@86
|
408 ac_default_prefix=/usr/local
|
cannam@86
|
409 ac_config_libobj_dir=.
|
cannam@86
|
410 cross_compiling=no
|
cannam@86
|
411 subdirs=
|
cannam@86
|
412 MFLAGS=
|
cannam@86
|
413 MAKEFLAGS=
|
cannam@86
|
414 SHELL=${CONFIG_SHELL-/bin/sh}
|
cannam@86
|
415
|
cannam@86
|
416 # Maximum number of lines to put in a shell here document.
|
cannam@86
|
417 # This variable seems obsolete. It should probably be removed, and
|
cannam@86
|
418 # only ac_max_sed_lines should be used.
|
cannam@86
|
419 : ${ac_max_here_lines=38}
|
cannam@86
|
420
|
cannam@86
|
421 # Identity of this package.
|
cannam@86
|
422 PACKAGE_NAME=
|
cannam@86
|
423 PACKAGE_TARNAME=
|
cannam@86
|
424 PACKAGE_VERSION=
|
cannam@86
|
425 PACKAGE_STRING=
|
cannam@86
|
426 PACKAGE_BUGREPORT=
|
cannam@86
|
427
|
cannam@86
|
428 ac_unique_file="src/flac/main.c"
|
cannam@86
|
429 # Factoring default headers for most tests.
|
cannam@86
|
430 ac_includes_default="\
|
cannam@86
|
431 #include <stdio.h>
|
cannam@86
|
432 #if HAVE_SYS_TYPES_H
|
cannam@86
|
433 # include <sys/types.h>
|
cannam@86
|
434 #endif
|
cannam@86
|
435 #if HAVE_SYS_STAT_H
|
cannam@86
|
436 # include <sys/stat.h>
|
cannam@86
|
437 #endif
|
cannam@86
|
438 #if STDC_HEADERS
|
cannam@86
|
439 # include <stdlib.h>
|
cannam@86
|
440 # include <stddef.h>
|
cannam@86
|
441 #else
|
cannam@86
|
442 # if HAVE_STDLIB_H
|
cannam@86
|
443 # include <stdlib.h>
|
cannam@86
|
444 # endif
|
cannam@86
|
445 #endif
|
cannam@86
|
446 #if HAVE_STRING_H
|
cannam@86
|
447 # if !STDC_HEADERS && HAVE_MEMORY_H
|
cannam@86
|
448 # include <memory.h>
|
cannam@86
|
449 # endif
|
cannam@86
|
450 # include <string.h>
|
cannam@86
|
451 #endif
|
cannam@86
|
452 #if HAVE_STRINGS_H
|
cannam@86
|
453 # include <strings.h>
|
cannam@86
|
454 #endif
|
cannam@86
|
455 #if HAVE_INTTYPES_H
|
cannam@86
|
456 # include <inttypes.h>
|
cannam@86
|
457 #else
|
cannam@86
|
458 # if HAVE_STDINT_H
|
cannam@86
|
459 # include <stdint.h>
|
cannam@86
|
460 # endif
|
cannam@86
|
461 #endif
|
cannam@86
|
462 #if HAVE_UNISTD_H
|
cannam@86
|
463 # include <unistd.h>
|
cannam@86
|
464 #endif"
|
cannam@86
|
465
|
cannam@86
|
466 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ACLOCAL_AMFLAGS CCAS CCASFLAGS FLaC__CPU_IA32_TRUE FLaC__CPU_IA32_FALSE FLaC__CPU_PPC_TRUE FLaC__CPU_PPC_FALSE FLaC__CPU_SPARC_TRUE FLaC__CPU_SPARC_FALSE OBJ_FORMAT MINGW_WINSOCK_LIBS FLaC__SYS_DARWIN_TRUE FLaC__SYS_DARWIN_FALSE FLaC__SYS_LINUX_TRUE FLaC__SYS_LINUX_FALSE FLaC__NO_ASM_TRUE FLaC__NO_ASM_FALSE DEBUG_TRUE DEBUG_FALSE FLaC__SSE_OS_TRUE FLaC__SSE_OS_FALSE FLaC__USE_3DNOW_TRUE FLaC__USE_3DNOW_FALSE FLaC__USE_ALTIVEC_TRUE FLaC__USE_ALTIVEC_FALSE FLAC__TEST_LEVEL FLAC__TEST_WITH_VALGRIND DOXYGEN FLaC__HAS_DOXYGEN_TRUE FLaC__HAS_DOXYGEN_FALSE FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_TRUE FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_FALSE XMMS_CONFIG XMMS_CFLAGS XMMS_LIBS XMMS_VERSION XMMS_DATA_DIR XMMS_PLUGIN_DIR XMMS_VISUALIZATION_PLUGIN_DIR XMMS_INPUT_PLUGIN_DIR XMMS_OUTPUT_PLUGIN_DIR XMMS_GENERAL_PLUGIN_DIR XMMS_EFFECT_PLUGIN_DIR FLaC__HAS_XMMS_TRUE FLaC__HAS_XMMS_FALSE FLaC__WITH_CPPLIBS_TRUE FLaC__WITH_CPPLIBS_FALSE OGG_CFLAGS OGG_LIBS FLaC__HAS_OGG_TRUE FLaC__HAS_OGG_FALSE LIBICONV LTLIBICONV DOCBOOK_TO_MAN FLaC__HAS_DOCBOOK_TO_MAN_TRUE FLaC__HAS_DOCBOOK_TO_MAN_FALSE NASM FLaC__HAS_NASM_TRUE FLaC__HAS_NASM_FALSE AS GAS FLaC__HAS_AS_TRUE FLaC__HAS_AS_FALSE FLaC__HAS_GAS_TRUE FLaC__HAS_GAS_FALSE FLaC__HAS_AS__TEMPORARILY_DISABLED_TRUE FLaC__HAS_AS__TEMPORARILY_DISABLED_FALSE FLaC__HAS_GAS__TEMPORARILY_DISABLED_TRUE FLaC__HAS_GAS__TEMPORARILY_DISABLED_FALSE LIBOBJS LTLIBOBJS'
|
cannam@86
|
467 ac_subst_files=''
|
cannam@86
|
468
|
cannam@86
|
469 # Initialize some variables set by options.
|
cannam@86
|
470 ac_init_help=
|
cannam@86
|
471 ac_init_version=false
|
cannam@86
|
472 # The variables have the same names as the options, with
|
cannam@86
|
473 # dashes changed to underlines.
|
cannam@86
|
474 cache_file=/dev/null
|
cannam@86
|
475 exec_prefix=NONE
|
cannam@86
|
476 no_create=
|
cannam@86
|
477 no_recursion=
|
cannam@86
|
478 prefix=NONE
|
cannam@86
|
479 program_prefix=NONE
|
cannam@86
|
480 program_suffix=NONE
|
cannam@86
|
481 program_transform_name=s,x,x,
|
cannam@86
|
482 silent=
|
cannam@86
|
483 site=
|
cannam@86
|
484 srcdir=
|
cannam@86
|
485 verbose=
|
cannam@86
|
486 x_includes=NONE
|
cannam@86
|
487 x_libraries=NONE
|
cannam@86
|
488
|
cannam@86
|
489 # Installation directory options.
|
cannam@86
|
490 # These are left unexpanded so users can "make install exec_prefix=/foo"
|
cannam@86
|
491 # and all the variables that are supposed to be based on exec_prefix
|
cannam@86
|
492 # by default will actually change.
|
cannam@86
|
493 # Use braces instead of parens because sh, perl, etc. also accept them.
|
cannam@86
|
494 bindir='${exec_prefix}/bin'
|
cannam@86
|
495 sbindir='${exec_prefix}/sbin'
|
cannam@86
|
496 libexecdir='${exec_prefix}/libexec'
|
cannam@86
|
497 datadir='${prefix}/share'
|
cannam@86
|
498 sysconfdir='${prefix}/etc'
|
cannam@86
|
499 sharedstatedir='${prefix}/com'
|
cannam@86
|
500 localstatedir='${prefix}/var'
|
cannam@86
|
501 libdir='${exec_prefix}/lib'
|
cannam@86
|
502 includedir='${prefix}/include'
|
cannam@86
|
503 oldincludedir='/usr/include'
|
cannam@86
|
504 infodir='${prefix}/info'
|
cannam@86
|
505 mandir='${prefix}/man'
|
cannam@86
|
506
|
cannam@86
|
507 ac_prev=
|
cannam@86
|
508 for ac_option
|
cannam@86
|
509 do
|
cannam@86
|
510 # If the previous option needs an argument, assign it.
|
cannam@86
|
511 if test -n "$ac_prev"; then
|
cannam@86
|
512 eval "$ac_prev=\$ac_option"
|
cannam@86
|
513 ac_prev=
|
cannam@86
|
514 continue
|
cannam@86
|
515 fi
|
cannam@86
|
516
|
cannam@86
|
517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
|
cannam@86
|
518
|
cannam@86
|
519 # Accept the important Cygnus configure options, so we can diagnose typos.
|
cannam@86
|
520
|
cannam@86
|
521 case $ac_option in
|
cannam@86
|
522
|
cannam@86
|
523 -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
cannam@86
|
524 ac_prev=bindir ;;
|
cannam@86
|
525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
cannam@86
|
526 bindir=$ac_optarg ;;
|
cannam@86
|
527
|
cannam@86
|
528 -build | --build | --buil | --bui | --bu)
|
cannam@86
|
529 ac_prev=build_alias ;;
|
cannam@86
|
530 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
cannam@86
|
531 build_alias=$ac_optarg ;;
|
cannam@86
|
532
|
cannam@86
|
533 -cache-file | --cache-file | --cache-fil | --cache-fi \
|
cannam@86
|
534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
cannam@86
|
535 ac_prev=cache_file ;;
|
cannam@86
|
536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
cannam@86
|
537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
cannam@86
|
538 cache_file=$ac_optarg ;;
|
cannam@86
|
539
|
cannam@86
|
540 --config-cache | -C)
|
cannam@86
|
541 cache_file=config.cache ;;
|
cannam@86
|
542
|
cannam@86
|
543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
cannam@86
|
544 ac_prev=datadir ;;
|
cannam@86
|
545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
cannam@86
|
546 | --da=*)
|
cannam@86
|
547 datadir=$ac_optarg ;;
|
cannam@86
|
548
|
cannam@86
|
549 -disable-* | --disable-*)
|
cannam@86
|
550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
cannam@86
|
551 # Reject names that are not valid shell variable names.
|
cannam@86
|
552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
cannam@86
|
553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
cannam@86
|
554 { (exit 1); exit 1; }; }
|
cannam@86
|
555 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
cannam@86
|
556 eval "enable_$ac_feature=no" ;;
|
cannam@86
|
557
|
cannam@86
|
558 -enable-* | --enable-*)
|
cannam@86
|
559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
cannam@86
|
560 # Reject names that are not valid shell variable names.
|
cannam@86
|
561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
cannam@86
|
562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
cannam@86
|
563 { (exit 1); exit 1; }; }
|
cannam@86
|
564 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
cannam@86
|
565 case $ac_option in
|
cannam@86
|
566 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
|
cannam@86
|
567 *) ac_optarg=yes ;;
|
cannam@86
|
568 esac
|
cannam@86
|
569 eval "enable_$ac_feature='$ac_optarg'" ;;
|
cannam@86
|
570
|
cannam@86
|
571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
cannam@86
|
572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
cannam@86
|
573 | --exec | --exe | --ex)
|
cannam@86
|
574 ac_prev=exec_prefix ;;
|
cannam@86
|
575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
cannam@86
|
576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
cannam@86
|
577 | --exec=* | --exe=* | --ex=*)
|
cannam@86
|
578 exec_prefix=$ac_optarg ;;
|
cannam@86
|
579
|
cannam@86
|
580 -gas | --gas | --ga | --g)
|
cannam@86
|
581 # Obsolete; use --with-gas.
|
cannam@86
|
582 with_gas=yes ;;
|
cannam@86
|
583
|
cannam@86
|
584 -help | --help | --hel | --he | -h)
|
cannam@86
|
585 ac_init_help=long ;;
|
cannam@86
|
586 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
cannam@86
|
587 ac_init_help=recursive ;;
|
cannam@86
|
588 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
cannam@86
|
589 ac_init_help=short ;;
|
cannam@86
|
590
|
cannam@86
|
591 -host | --host | --hos | --ho)
|
cannam@86
|
592 ac_prev=host_alias ;;
|
cannam@86
|
593 -host=* | --host=* | --hos=* | --ho=*)
|
cannam@86
|
594 host_alias=$ac_optarg ;;
|
cannam@86
|
595
|
cannam@86
|
596 -includedir | --includedir | --includedi | --included | --include \
|
cannam@86
|
597 | --includ | --inclu | --incl | --inc)
|
cannam@86
|
598 ac_prev=includedir ;;
|
cannam@86
|
599 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
cannam@86
|
600 | --includ=* | --inclu=* | --incl=* | --inc=*)
|
cannam@86
|
601 includedir=$ac_optarg ;;
|
cannam@86
|
602
|
cannam@86
|
603 -infodir | --infodir | --infodi | --infod | --info | --inf)
|
cannam@86
|
604 ac_prev=infodir ;;
|
cannam@86
|
605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
cannam@86
|
606 infodir=$ac_optarg ;;
|
cannam@86
|
607
|
cannam@86
|
608 -libdir | --libdir | --libdi | --libd)
|
cannam@86
|
609 ac_prev=libdir ;;
|
cannam@86
|
610 -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
cannam@86
|
611 libdir=$ac_optarg ;;
|
cannam@86
|
612
|
cannam@86
|
613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
cannam@86
|
614 | --libexe | --libex | --libe)
|
cannam@86
|
615 ac_prev=libexecdir ;;
|
cannam@86
|
616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
cannam@86
|
617 | --libexe=* | --libex=* | --libe=*)
|
cannam@86
|
618 libexecdir=$ac_optarg ;;
|
cannam@86
|
619
|
cannam@86
|
620 -localstatedir | --localstatedir | --localstatedi | --localstated \
|
cannam@86
|
621 | --localstate | --localstat | --localsta | --localst \
|
cannam@86
|
622 | --locals | --local | --loca | --loc | --lo)
|
cannam@86
|
623 ac_prev=localstatedir ;;
|
cannam@86
|
624 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
cannam@86
|
625 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
cannam@86
|
626 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
cannam@86
|
627 localstatedir=$ac_optarg ;;
|
cannam@86
|
628
|
cannam@86
|
629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
cannam@86
|
630 ac_prev=mandir ;;
|
cannam@86
|
631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
cannam@86
|
632 mandir=$ac_optarg ;;
|
cannam@86
|
633
|
cannam@86
|
634 -nfp | --nfp | --nf)
|
cannam@86
|
635 # Obsolete; use --without-fp.
|
cannam@86
|
636 with_fp=no ;;
|
cannam@86
|
637
|
cannam@86
|
638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
cannam@86
|
639 | --no-cr | --no-c | -n)
|
cannam@86
|
640 no_create=yes ;;
|
cannam@86
|
641
|
cannam@86
|
642 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
cannam@86
|
643 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
cannam@86
|
644 no_recursion=yes ;;
|
cannam@86
|
645
|
cannam@86
|
646 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
cannam@86
|
647 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
cannam@86
|
648 | --oldin | --oldi | --old | --ol | --o)
|
cannam@86
|
649 ac_prev=oldincludedir ;;
|
cannam@86
|
650 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
cannam@86
|
651 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
cannam@86
|
652 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
cannam@86
|
653 oldincludedir=$ac_optarg ;;
|
cannam@86
|
654
|
cannam@86
|
655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
cannam@86
|
656 ac_prev=prefix ;;
|
cannam@86
|
657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
cannam@86
|
658 prefix=$ac_optarg ;;
|
cannam@86
|
659
|
cannam@86
|
660 -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
cannam@86
|
661 | --program-pre | --program-pr | --program-p)
|
cannam@86
|
662 ac_prev=program_prefix ;;
|
cannam@86
|
663 -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
cannam@86
|
664 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
cannam@86
|
665 program_prefix=$ac_optarg ;;
|
cannam@86
|
666
|
cannam@86
|
667 -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
cannam@86
|
668 | --program-suf | --program-su | --program-s)
|
cannam@86
|
669 ac_prev=program_suffix ;;
|
cannam@86
|
670 -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
cannam@86
|
671 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
cannam@86
|
672 program_suffix=$ac_optarg ;;
|
cannam@86
|
673
|
cannam@86
|
674 -program-transform-name | --program-transform-name \
|
cannam@86
|
675 | --program-transform-nam | --program-transform-na \
|
cannam@86
|
676 | --program-transform-n | --program-transform- \
|
cannam@86
|
677 | --program-transform | --program-transfor \
|
cannam@86
|
678 | --program-transfo | --program-transf \
|
cannam@86
|
679 | --program-trans | --program-tran \
|
cannam@86
|
680 | --progr-tra | --program-tr | --program-t)
|
cannam@86
|
681 ac_prev=program_transform_name ;;
|
cannam@86
|
682 -program-transform-name=* | --program-transform-name=* \
|
cannam@86
|
683 | --program-transform-nam=* | --program-transform-na=* \
|
cannam@86
|
684 | --program-transform-n=* | --program-transform-=* \
|
cannam@86
|
685 | --program-transform=* | --program-transfor=* \
|
cannam@86
|
686 | --program-transfo=* | --program-transf=* \
|
cannam@86
|
687 | --program-trans=* | --program-tran=* \
|
cannam@86
|
688 | --progr-tra=* | --program-tr=* | --program-t=*)
|
cannam@86
|
689 program_transform_name=$ac_optarg ;;
|
cannam@86
|
690
|
cannam@86
|
691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
cannam@86
|
692 | -silent | --silent | --silen | --sile | --sil)
|
cannam@86
|
693 silent=yes ;;
|
cannam@86
|
694
|
cannam@86
|
695 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
cannam@86
|
696 ac_prev=sbindir ;;
|
cannam@86
|
697 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
cannam@86
|
698 | --sbi=* | --sb=*)
|
cannam@86
|
699 sbindir=$ac_optarg ;;
|
cannam@86
|
700
|
cannam@86
|
701 -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
cannam@86
|
702 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
cannam@86
|
703 | --sharedst | --shareds | --shared | --share | --shar \
|
cannam@86
|
704 | --sha | --sh)
|
cannam@86
|
705 ac_prev=sharedstatedir ;;
|
cannam@86
|
706 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
cannam@86
|
707 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
cannam@86
|
708 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
cannam@86
|
709 | --sha=* | --sh=*)
|
cannam@86
|
710 sharedstatedir=$ac_optarg ;;
|
cannam@86
|
711
|
cannam@86
|
712 -site | --site | --sit)
|
cannam@86
|
713 ac_prev=site ;;
|
cannam@86
|
714 -site=* | --site=* | --sit=*)
|
cannam@86
|
715 site=$ac_optarg ;;
|
cannam@86
|
716
|
cannam@86
|
717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
cannam@86
|
718 ac_prev=srcdir ;;
|
cannam@86
|
719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
cannam@86
|
720 srcdir=$ac_optarg ;;
|
cannam@86
|
721
|
cannam@86
|
722 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
cannam@86
|
723 | --syscon | --sysco | --sysc | --sys | --sy)
|
cannam@86
|
724 ac_prev=sysconfdir ;;
|
cannam@86
|
725 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
cannam@86
|
726 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
cannam@86
|
727 sysconfdir=$ac_optarg ;;
|
cannam@86
|
728
|
cannam@86
|
729 -target | --target | --targe | --targ | --tar | --ta | --t)
|
cannam@86
|
730 ac_prev=target_alias ;;
|
cannam@86
|
731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
cannam@86
|
732 target_alias=$ac_optarg ;;
|
cannam@86
|
733
|
cannam@86
|
734 -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
cannam@86
|
735 verbose=yes ;;
|
cannam@86
|
736
|
cannam@86
|
737 -version | --version | --versio | --versi | --vers | -V)
|
cannam@86
|
738 ac_init_version=: ;;
|
cannam@86
|
739
|
cannam@86
|
740 -with-* | --with-*)
|
cannam@86
|
741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
cannam@86
|
742 # Reject names that are not valid shell variable names.
|
cannam@86
|
743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
cannam@86
|
744 { echo "$as_me: error: invalid package name: $ac_package" >&2
|
cannam@86
|
745 { (exit 1); exit 1; }; }
|
cannam@86
|
746 ac_package=`echo $ac_package| sed 's/-/_/g'`
|
cannam@86
|
747 case $ac_option in
|
cannam@86
|
748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
|
cannam@86
|
749 *) ac_optarg=yes ;;
|
cannam@86
|
750 esac
|
cannam@86
|
751 eval "with_$ac_package='$ac_optarg'" ;;
|
cannam@86
|
752
|
cannam@86
|
753 -without-* | --without-*)
|
cannam@86
|
754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
cannam@86
|
755 # Reject names that are not valid shell variable names.
|
cannam@86
|
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
cannam@86
|
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
|
cannam@86
|
758 { (exit 1); exit 1; }; }
|
cannam@86
|
759 ac_package=`echo $ac_package | sed 's/-/_/g'`
|
cannam@86
|
760 eval "with_$ac_package=no" ;;
|
cannam@86
|
761
|
cannam@86
|
762 --x)
|
cannam@86
|
763 # Obsolete; use --with-x.
|
cannam@86
|
764 with_x=yes ;;
|
cannam@86
|
765
|
cannam@86
|
766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
cannam@86
|
767 | --x-incl | --x-inc | --x-in | --x-i)
|
cannam@86
|
768 ac_prev=x_includes ;;
|
cannam@86
|
769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
cannam@86
|
770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
cannam@86
|
771 x_includes=$ac_optarg ;;
|
cannam@86
|
772
|
cannam@86
|
773 -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
cannam@86
|
774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
cannam@86
|
775 ac_prev=x_libraries ;;
|
cannam@86
|
776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
cannam@86
|
777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
cannam@86
|
778 x_libraries=$ac_optarg ;;
|
cannam@86
|
779
|
cannam@86
|
780 -*) { echo "$as_me: error: unrecognized option: $ac_option
|
cannam@86
|
781 Try \`$0 --help' for more information." >&2
|
cannam@86
|
782 { (exit 1); exit 1; }; }
|
cannam@86
|
783 ;;
|
cannam@86
|
784
|
cannam@86
|
785 *=*)
|
cannam@86
|
786 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
cannam@86
|
787 # Reject names that are not valid shell variable names.
|
cannam@86
|
788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
|
cannam@86
|
789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
|
cannam@86
|
790 { (exit 1); exit 1; }; }
|
cannam@86
|
791 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
|
cannam@86
|
792 eval "$ac_envvar='$ac_optarg'"
|
cannam@86
|
793 export $ac_envvar ;;
|
cannam@86
|
794
|
cannam@86
|
795 *)
|
cannam@86
|
796 # FIXME: should be removed in autoconf 3.0.
|
cannam@86
|
797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
cannam@86
|
798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
cannam@86
|
799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
cannam@86
|
800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
|
cannam@86
|
801 ;;
|
cannam@86
|
802
|
cannam@86
|
803 esac
|
cannam@86
|
804 done
|
cannam@86
|
805
|
cannam@86
|
806 if test -n "$ac_prev"; then
|
cannam@86
|
807 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
cannam@86
|
808 { echo "$as_me: error: missing argument to $ac_option" >&2
|
cannam@86
|
809 { (exit 1); exit 1; }; }
|
cannam@86
|
810 fi
|
cannam@86
|
811
|
cannam@86
|
812 # Be sure to have absolute paths.
|
cannam@86
|
813 for ac_var in exec_prefix prefix
|
cannam@86
|
814 do
|
cannam@86
|
815 eval ac_val=$`echo $ac_var`
|
cannam@86
|
816 case $ac_val in
|
cannam@86
|
817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
|
cannam@86
|
818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
cannam@86
|
819 { (exit 1); exit 1; }; };;
|
cannam@86
|
820 esac
|
cannam@86
|
821 done
|
cannam@86
|
822
|
cannam@86
|
823 # Be sure to have absolute paths.
|
cannam@86
|
824 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
|
cannam@86
|
825 localstatedir libdir includedir oldincludedir infodir mandir
|
cannam@86
|
826 do
|
cannam@86
|
827 eval ac_val=$`echo $ac_var`
|
cannam@86
|
828 case $ac_val in
|
cannam@86
|
829 [\\/$]* | ?:[\\/]* ) ;;
|
cannam@86
|
830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
cannam@86
|
831 { (exit 1); exit 1; }; };;
|
cannam@86
|
832 esac
|
cannam@86
|
833 done
|
cannam@86
|
834
|
cannam@86
|
835 # There might be people who depend on the old broken behavior: `$host'
|
cannam@86
|
836 # used to hold the argument of --host etc.
|
cannam@86
|
837 # FIXME: To remove some day.
|
cannam@86
|
838 build=$build_alias
|
cannam@86
|
839 host=$host_alias
|
cannam@86
|
840 target=$target_alias
|
cannam@86
|
841
|
cannam@86
|
842 # FIXME: To remove some day.
|
cannam@86
|
843 if test "x$host_alias" != x; then
|
cannam@86
|
844 if test "x$build_alias" = x; then
|
cannam@86
|
845 cross_compiling=maybe
|
cannam@86
|
846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
|
cannam@86
|
847 If a cross compiler is detected then cross compile mode will be used." >&2
|
cannam@86
|
848 elif test "x$build_alias" != "x$host_alias"; then
|
cannam@86
|
849 cross_compiling=yes
|
cannam@86
|
850 fi
|
cannam@86
|
851 fi
|
cannam@86
|
852
|
cannam@86
|
853 ac_tool_prefix=
|
cannam@86
|
854 test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
cannam@86
|
855
|
cannam@86
|
856 test "$silent" = yes && exec 6>/dev/null
|
cannam@86
|
857
|
cannam@86
|
858
|
cannam@86
|
859 # Find the source files, if location was not specified.
|
cannam@86
|
860 if test -z "$srcdir"; then
|
cannam@86
|
861 ac_srcdir_defaulted=yes
|
cannam@86
|
862 # Try the directory containing this script, then its parent.
|
cannam@86
|
863 ac_confdir=`(dirname "$0") 2>/dev/null ||
|
cannam@86
|
864 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
cannam@86
|
865 X"$0" : 'X\(//\)[^/]' \| \
|
cannam@86
|
866 X"$0" : 'X\(//\)$' \| \
|
cannam@86
|
867 X"$0" : 'X\(/\)' \| \
|
cannam@86
|
868 . : '\(.\)' 2>/dev/null ||
|
cannam@86
|
869 echo X"$0" |
|
cannam@86
|
870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
cannam@86
|
871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
cannam@86
|
872 /^X\(\/\/\)$/{ s//\1/; q; }
|
cannam@86
|
873 /^X\(\/\).*/{ s//\1/; q; }
|
cannam@86
|
874 s/.*/./; q'`
|
cannam@86
|
875 srcdir=$ac_confdir
|
cannam@86
|
876 if test ! -r $srcdir/$ac_unique_file; then
|
cannam@86
|
877 srcdir=..
|
cannam@86
|
878 fi
|
cannam@86
|
879 else
|
cannam@86
|
880 ac_srcdir_defaulted=no
|
cannam@86
|
881 fi
|
cannam@86
|
882 if test ! -r $srcdir/$ac_unique_file; then
|
cannam@86
|
883 if test "$ac_srcdir_defaulted" = yes; then
|
cannam@86
|
884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
|
cannam@86
|
885 { (exit 1); exit 1; }; }
|
cannam@86
|
886 else
|
cannam@86
|
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
|
cannam@86
|
888 { (exit 1); exit 1; }; }
|
cannam@86
|
889 fi
|
cannam@86
|
890 fi
|
cannam@86
|
891 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
|
cannam@86
|
892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
|
cannam@86
|
893 { (exit 1); exit 1; }; }
|
cannam@86
|
894 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
|
cannam@86
|
895 ac_env_build_alias_set=${build_alias+set}
|
cannam@86
|
896 ac_env_build_alias_value=$build_alias
|
cannam@86
|
897 ac_cv_env_build_alias_set=${build_alias+set}
|
cannam@86
|
898 ac_cv_env_build_alias_value=$build_alias
|
cannam@86
|
899 ac_env_host_alias_set=${host_alias+set}
|
cannam@86
|
900 ac_env_host_alias_value=$host_alias
|
cannam@86
|
901 ac_cv_env_host_alias_set=${host_alias+set}
|
cannam@86
|
902 ac_cv_env_host_alias_value=$host_alias
|
cannam@86
|
903 ac_env_target_alias_set=${target_alias+set}
|
cannam@86
|
904 ac_env_target_alias_value=$target_alias
|
cannam@86
|
905 ac_cv_env_target_alias_set=${target_alias+set}
|
cannam@86
|
906 ac_cv_env_target_alias_value=$target_alias
|
cannam@86
|
907 ac_env_CC_set=${CC+set}
|
cannam@86
|
908 ac_env_CC_value=$CC
|
cannam@86
|
909 ac_cv_env_CC_set=${CC+set}
|
cannam@86
|
910 ac_cv_env_CC_value=$CC
|
cannam@86
|
911 ac_env_CFLAGS_set=${CFLAGS+set}
|
cannam@86
|
912 ac_env_CFLAGS_value=$CFLAGS
|
cannam@86
|
913 ac_cv_env_CFLAGS_set=${CFLAGS+set}
|
cannam@86
|
914 ac_cv_env_CFLAGS_value=$CFLAGS
|
cannam@86
|
915 ac_env_LDFLAGS_set=${LDFLAGS+set}
|
cannam@86
|
916 ac_env_LDFLAGS_value=$LDFLAGS
|
cannam@86
|
917 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
|
cannam@86
|
918 ac_cv_env_LDFLAGS_value=$LDFLAGS
|
cannam@86
|
919 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
|
cannam@86
|
920 ac_env_CPPFLAGS_value=$CPPFLAGS
|
cannam@86
|
921 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
|
cannam@86
|
922 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
|
cannam@86
|
923 ac_env_CPP_set=${CPP+set}
|
cannam@86
|
924 ac_env_CPP_value=$CPP
|
cannam@86
|
925 ac_cv_env_CPP_set=${CPP+set}
|
cannam@86
|
926 ac_cv_env_CPP_value=$CPP
|
cannam@86
|
927 ac_env_CXX_set=${CXX+set}
|
cannam@86
|
928 ac_env_CXX_value=$CXX
|
cannam@86
|
929 ac_cv_env_CXX_set=${CXX+set}
|
cannam@86
|
930 ac_cv_env_CXX_value=$CXX
|
cannam@86
|
931 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
|
cannam@86
|
932 ac_env_CXXFLAGS_value=$CXXFLAGS
|
cannam@86
|
933 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
|
cannam@86
|
934 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
|
cannam@86
|
935 ac_env_CXXCPP_set=${CXXCPP+set}
|
cannam@86
|
936 ac_env_CXXCPP_value=$CXXCPP
|
cannam@86
|
937 ac_cv_env_CXXCPP_set=${CXXCPP+set}
|
cannam@86
|
938 ac_cv_env_CXXCPP_value=$CXXCPP
|
cannam@86
|
939 ac_env_F77_set=${F77+set}
|
cannam@86
|
940 ac_env_F77_value=$F77
|
cannam@86
|
941 ac_cv_env_F77_set=${F77+set}
|
cannam@86
|
942 ac_cv_env_F77_value=$F77
|
cannam@86
|
943 ac_env_FFLAGS_set=${FFLAGS+set}
|
cannam@86
|
944 ac_env_FFLAGS_value=$FFLAGS
|
cannam@86
|
945 ac_cv_env_FFLAGS_set=${FFLAGS+set}
|
cannam@86
|
946 ac_cv_env_FFLAGS_value=$FFLAGS
|
cannam@86
|
947
|
cannam@86
|
948 #
|
cannam@86
|
949 # Report the --help message.
|
cannam@86
|
950 #
|
cannam@86
|
951 if test "$ac_init_help" = "long"; then
|
cannam@86
|
952 # Omit some internal or obsolete options to make the list less imposing.
|
cannam@86
|
953 # This message is too long to be a string in the A/UX 3.1 sh.
|
cannam@86
|
954 cat <<_ACEOF
|
cannam@86
|
955 \`configure' configures this package to adapt to many kinds of systems.
|
cannam@86
|
956
|
cannam@86
|
957 Usage: $0 [OPTION]... [VAR=VALUE]...
|
cannam@86
|
958
|
cannam@86
|
959 To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
cannam@86
|
960 VAR=VALUE. See below for descriptions of some of the useful variables.
|
cannam@86
|
961
|
cannam@86
|
962 Defaults for the options are specified in brackets.
|
cannam@86
|
963
|
cannam@86
|
964 Configuration:
|
cannam@86
|
965 -h, --help display this help and exit
|
cannam@86
|
966 --help=short display options specific to this package
|
cannam@86
|
967 --help=recursive display the short help of all the included packages
|
cannam@86
|
968 -V, --version display version information and exit
|
cannam@86
|
969 -q, --quiet, --silent do not print \`checking...' messages
|
cannam@86
|
970 --cache-file=FILE cache test results in FILE [disabled]
|
cannam@86
|
971 -C, --config-cache alias for \`--cache-file=config.cache'
|
cannam@86
|
972 -n, --no-create do not create output files
|
cannam@86
|
973 --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
cannam@86
|
974
|
cannam@86
|
975 _ACEOF
|
cannam@86
|
976
|
cannam@86
|
977 cat <<_ACEOF
|
cannam@86
|
978 Installation directories:
|
cannam@86
|
979 --prefix=PREFIX install architecture-independent files in PREFIX
|
cannam@86
|
980 [$ac_default_prefix]
|
cannam@86
|
981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
cannam@86
|
982 [PREFIX]
|
cannam@86
|
983
|
cannam@86
|
984 By default, \`make install' will install all the files in
|
cannam@86
|
985 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
cannam@86
|
986 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
cannam@86
|
987 for instance \`--prefix=\$HOME'.
|
cannam@86
|
988
|
cannam@86
|
989 For better control, use the options below.
|
cannam@86
|
990
|
cannam@86
|
991 Fine tuning of the installation directories:
|
cannam@86
|
992 --bindir=DIR user executables [EPREFIX/bin]
|
cannam@86
|
993 --sbindir=DIR system admin executables [EPREFIX/sbin]
|
cannam@86
|
994 --libexecdir=DIR program executables [EPREFIX/libexec]
|
cannam@86
|
995 --datadir=DIR read-only architecture-independent data [PREFIX/share]
|
cannam@86
|
996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
cannam@86
|
997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
cannam@86
|
998 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
cannam@86
|
999 --libdir=DIR object code libraries [EPREFIX/lib]
|
cannam@86
|
1000 --includedir=DIR C header files [PREFIX/include]
|
cannam@86
|
1001 --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
cannam@86
|
1002 --infodir=DIR info documentation [PREFIX/info]
|
cannam@86
|
1003 --mandir=DIR man documentation [PREFIX/man]
|
cannam@86
|
1004 _ACEOF
|
cannam@86
|
1005
|
cannam@86
|
1006 cat <<\_ACEOF
|
cannam@86
|
1007
|
cannam@86
|
1008 Program names:
|
cannam@86
|
1009 --program-prefix=PREFIX prepend PREFIX to installed program names
|
cannam@86
|
1010 --program-suffix=SUFFIX append SUFFIX to installed program names
|
cannam@86
|
1011 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
|
cannam@86
|
1012
|
cannam@86
|
1013 System types:
|
cannam@86
|
1014 --build=BUILD configure for building on BUILD [guessed]
|
cannam@86
|
1015 --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
cannam@86
|
1016 _ACEOF
|
cannam@86
|
1017 fi
|
cannam@86
|
1018
|
cannam@86
|
1019 if test -n "$ac_init_help"; then
|
cannam@86
|
1020
|
cannam@86
|
1021 cat <<\_ACEOF
|
cannam@86
|
1022
|
cannam@86
|
1023 Optional Features:
|
cannam@86
|
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
cannam@86
|
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
cannam@86
|
1026 --enable-maintainer-mode enable make rules and dependencies not useful
|
cannam@86
|
1027 (and sometimes confusing) to the casual installer
|
cannam@86
|
1028 --enable-shared[=PKGS]
|
cannam@86
|
1029 build shared libraries [default=yes]
|
cannam@86
|
1030 --enable-static[=PKGS]
|
cannam@86
|
1031 build static libraries [default=yes]
|
cannam@86
|
1032 --enable-fast-install[=PKGS]
|
cannam@86
|
1033 optimize for fast installation [default=yes]
|
cannam@86
|
1034 --disable-dependency-tracking Speeds up one-time builds
|
cannam@86
|
1035 --enable-dependency-tracking Do not reject slow dependency extractors
|
cannam@86
|
1036 --disable-libtool-lock avoid locking (might break parallel builds)
|
cannam@86
|
1037 --disable-largefile omit support for large files
|
cannam@86
|
1038 --disable-asm-optimizations
|
cannam@86
|
1039 Don't use any assembly optimization routines
|
cannam@86
|
1040 --enable-debug Turn on debugging
|
cannam@86
|
1041 --enable-sse Enable SSE support by asserting that the OS supports
|
cannam@86
|
1042 SSE instructions
|
cannam@86
|
1043 --disable-3dnow Disable 3DNOW! optimizations
|
cannam@86
|
1044 --disable-altivec Disable Altivec optimizations
|
cannam@86
|
1045 --disable-thorough-tests
|
cannam@86
|
1046 Disable thorough (long) testing, do only basic tests
|
cannam@86
|
1047 --enable-exhaustive-tests
|
cannam@86
|
1048 Enable exhaustive testing (VERY long)
|
cannam@86
|
1049 --enable-valgrind-testing
|
cannam@86
|
1050 Run all tests inside Valgrind
|
cannam@86
|
1051 --disable-doxygen-docs Disable API documentation building via Doxygen
|
cannam@86
|
1052 --enable-local-xmms-plugin
|
cannam@86
|
1053 Install XMMS plugin to ~/.xmms/Plugins instead of
|
cannam@86
|
1054 system location
|
cannam@86
|
1055 --disable-xmms-plugin Do not build XMMS plugin
|
cannam@86
|
1056 --disable-cpplibs Do not build libFLAC++
|
cannam@86
|
1057 --disable-ogg Disable ogg support (default: test for libogg)
|
cannam@86
|
1058 --disable-oggtest Do not try to compile and run a test Ogg program
|
cannam@86
|
1059 --disable-rpath do not hardcode runtime library paths
|
cannam@86
|
1060
|
cannam@86
|
1061 Optional Packages:
|
cannam@86
|
1062 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
cannam@86
|
1063 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
cannam@86
|
1064 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
|
cannam@86
|
1065 --with-pic try to use only PIC/non-PIC objects [default=use
|
cannam@86
|
1066 both]
|
cannam@86
|
1067 --with-tags[=TAGS]
|
cannam@86
|
1068 include additional configurations [automatic]
|
cannam@86
|
1069 --with-xmms-prefix=PFX Prefix where XMMS is installed (optional)
|
cannam@86
|
1070 --with-xmms-exec-prefix=PFX Exec prefix where XMMS is installed (optional)
|
cannam@86
|
1071 --with-ogg=PFX Prefix where libogg is installed (optional)
|
cannam@86
|
1072 --with-ogg-libraries=DIR Directory where libogg library is installed (optional)
|
cannam@86
|
1073 --with-ogg-includes=DIR Directory where libogg header files are installed (optional)
|
cannam@86
|
1074 --with-gnu-ld assume the C compiler uses GNU ld default=no
|
cannam@86
|
1075 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
|
cannam@86
|
1076 --without-libiconv-prefix don't search for libiconv in includedir and libdir
|
cannam@86
|
1077
|
cannam@86
|
1078 Some influential environment variables:
|
cannam@86
|
1079 CC C compiler command
|
cannam@86
|
1080 CFLAGS C compiler flags
|
cannam@86
|
1081 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
cannam@86
|
1082 nonstandard directory <lib dir>
|
cannam@86
|
1083 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
|
cannam@86
|
1084 headers in a nonstandard directory <include dir>
|
cannam@86
|
1085 CPP C preprocessor
|
cannam@86
|
1086 CXX C++ compiler command
|
cannam@86
|
1087 CXXFLAGS C++ compiler flags
|
cannam@86
|
1088 CXXCPP C++ preprocessor
|
cannam@86
|
1089 F77 Fortran 77 compiler command
|
cannam@86
|
1090 FFLAGS Fortran 77 compiler flags
|
cannam@86
|
1091
|
cannam@86
|
1092 Use these variables to override the choices made by `configure' or to help
|
cannam@86
|
1093 it to find libraries and programs with nonstandard names/locations.
|
cannam@86
|
1094
|
cannam@86
|
1095 _ACEOF
|
cannam@86
|
1096 fi
|
cannam@86
|
1097
|
cannam@86
|
1098 if test "$ac_init_help" = "recursive"; then
|
cannam@86
|
1099 # If there are subdirs, report their specific --help.
|
cannam@86
|
1100 ac_popdir=`pwd`
|
cannam@86
|
1101 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
cannam@86
|
1102 test -d $ac_dir || continue
|
cannam@86
|
1103 ac_builddir=.
|
cannam@86
|
1104
|
cannam@86
|
1105 if test "$ac_dir" != .; then
|
cannam@86
|
1106 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
cannam@86
|
1107 # A "../" for each directory in $ac_dir_suffix.
|
cannam@86
|
1108 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
cannam@86
|
1109 else
|
cannam@86
|
1110 ac_dir_suffix= ac_top_builddir=
|
cannam@86
|
1111 fi
|
cannam@86
|
1112
|
cannam@86
|
1113 case $srcdir in
|
cannam@86
|
1114 .) # No --srcdir option. We are building in place.
|
cannam@86
|
1115 ac_srcdir=.
|
cannam@86
|
1116 if test -z "$ac_top_builddir"; then
|
cannam@86
|
1117 ac_top_srcdir=.
|
cannam@86
|
1118 else
|
cannam@86
|
1119 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
cannam@86
|
1120 fi ;;
|
cannam@86
|
1121 [\\/]* | ?:[\\/]* ) # Absolute path.
|
cannam@86
|
1122 ac_srcdir=$srcdir$ac_dir_suffix;
|
cannam@86
|
1123 ac_top_srcdir=$srcdir ;;
|
cannam@86
|
1124 *) # Relative path.
|
cannam@86
|
1125 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
cannam@86
|
1126 ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
cannam@86
|
1127 esac
|
cannam@86
|
1128
|
cannam@86
|
1129 # Do not use `cd foo && pwd` to compute absolute paths, because
|
cannam@86
|
1130 # the directories may not exist.
|
cannam@86
|
1131 case `pwd` in
|
cannam@86
|
1132 .) ac_abs_builddir="$ac_dir";;
|
cannam@86
|
1133 *)
|
cannam@86
|
1134 case "$ac_dir" in
|
cannam@86
|
1135 .) ac_abs_builddir=`pwd`;;
|
cannam@86
|
1136 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
cannam@86
|
1137 *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
cannam@86
|
1138 esac;;
|
cannam@86
|
1139 esac
|
cannam@86
|
1140 case $ac_abs_builddir in
|
cannam@86
|
1141 .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
cannam@86
|
1142 *)
|
cannam@86
|
1143 case ${ac_top_builddir}. in
|
cannam@86
|
1144 .) ac_abs_top_builddir=$ac_abs_builddir;;
|
cannam@86
|
1145 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
cannam@86
|
1146 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
cannam@86
|
1147 esac;;
|
cannam@86
|
1148 esac
|
cannam@86
|
1149 case $ac_abs_builddir in
|
cannam@86
|
1150 .) ac_abs_srcdir=$ac_srcdir;;
|
cannam@86
|
1151 *)
|
cannam@86
|
1152 case $ac_srcdir in
|
cannam@86
|
1153 .) ac_abs_srcdir=$ac_abs_builddir;;
|
cannam@86
|
1154 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
cannam@86
|
1155 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
cannam@86
|
1156 esac;;
|
cannam@86
|
1157 esac
|
cannam@86
|
1158 case $ac_abs_builddir in
|
cannam@86
|
1159 .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
cannam@86
|
1160 *)
|
cannam@86
|
1161 case $ac_top_srcdir in
|
cannam@86
|
1162 .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
cannam@86
|
1163 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
cannam@86
|
1164 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
cannam@86
|
1165 esac;;
|
cannam@86
|
1166 esac
|
cannam@86
|
1167
|
cannam@86
|
1168 cd $ac_dir
|
cannam@86
|
1169 # Check for guested configure; otherwise get Cygnus style configure.
|
cannam@86
|
1170 if test -f $ac_srcdir/configure.gnu; then
|
cannam@86
|
1171 echo
|
cannam@86
|
1172 $SHELL $ac_srcdir/configure.gnu --help=recursive
|
cannam@86
|
1173 elif test -f $ac_srcdir/configure; then
|
cannam@86
|
1174 echo
|
cannam@86
|
1175 $SHELL $ac_srcdir/configure --help=recursive
|
cannam@86
|
1176 elif test -f $ac_srcdir/configure.ac ||
|
cannam@86
|
1177 test -f $ac_srcdir/configure.in; then
|
cannam@86
|
1178 echo
|
cannam@86
|
1179 $ac_configure --help
|
cannam@86
|
1180 else
|
cannam@86
|
1181 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
cannam@86
|
1182 fi
|
cannam@86
|
1183 cd $ac_popdir
|
cannam@86
|
1184 done
|
cannam@86
|
1185 fi
|
cannam@86
|
1186
|
cannam@86
|
1187 test -n "$ac_init_help" && exit 0
|
cannam@86
|
1188 if $ac_init_version; then
|
cannam@86
|
1189 cat <<\_ACEOF
|
cannam@86
|
1190
|
cannam@86
|
1191 Copyright (C) 2003 Free Software Foundation, Inc.
|
cannam@86
|
1192 This configure script is free software; the Free Software Foundation
|
cannam@86
|
1193 gives unlimited permission to copy, distribute and modify it.
|
cannam@86
|
1194 _ACEOF
|
cannam@86
|
1195 exit 0
|
cannam@86
|
1196 fi
|
cannam@86
|
1197 exec 5>config.log
|
cannam@86
|
1198 cat >&5 <<_ACEOF
|
cannam@86
|
1199 This file contains any messages produced by compilers while
|
cannam@86
|
1200 running configure, to aid debugging if configure makes a mistake.
|
cannam@86
|
1201
|
cannam@86
|
1202 It was created by $as_me, which was
|
cannam@86
|
1203 generated by GNU Autoconf 2.59. Invocation command line was
|
cannam@86
|
1204
|
cannam@86
|
1205 $ $0 $@
|
cannam@86
|
1206
|
cannam@86
|
1207 _ACEOF
|
cannam@86
|
1208 {
|
cannam@86
|
1209 cat <<_ASUNAME
|
cannam@86
|
1210 ## --------- ##
|
cannam@86
|
1211 ## Platform. ##
|
cannam@86
|
1212 ## --------- ##
|
cannam@86
|
1213
|
cannam@86
|
1214 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
cannam@86
|
1215 uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
cannam@86
|
1216 uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
cannam@86
|
1217 uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
cannam@86
|
1218 uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
cannam@86
|
1219
|
cannam@86
|
1220 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
cannam@86
|
1221 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
cannam@86
|
1222
|
cannam@86
|
1223 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
cannam@86
|
1224 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
cannam@86
|
1225 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
cannam@86
|
1226 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
|
cannam@86
|
1227 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
cannam@86
|
1228 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
cannam@86
|
1229 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
cannam@86
|
1230
|
cannam@86
|
1231 _ASUNAME
|
cannam@86
|
1232
|
cannam@86
|
1233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@86
|
1234 for as_dir in $PATH
|
cannam@86
|
1235 do
|
cannam@86
|
1236 IFS=$as_save_IFS
|
cannam@86
|
1237 test -z "$as_dir" && as_dir=.
|
cannam@86
|
1238 echo "PATH: $as_dir"
|
cannam@86
|
1239 done
|
cannam@86
|
1240
|
cannam@86
|
1241 } >&5
|
cannam@86
|
1242
|
cannam@86
|
1243 cat >&5 <<_ACEOF
|
cannam@86
|
1244
|
cannam@86
|
1245
|
cannam@86
|
1246 ## ----------- ##
|
cannam@86
|
1247 ## Core tests. ##
|
cannam@86
|
1248 ## ----------- ##
|
cannam@86
|
1249
|
cannam@86
|
1250 _ACEOF
|
cannam@86
|
1251
|
cannam@86
|
1252
|
cannam@86
|
1253 # Keep a trace of the command line.
|
cannam@86
|
1254 # Strip out --no-create and --no-recursion so they do not pile up.
|
cannam@86
|
1255 # Strip out --silent because we don't want to record it for future runs.
|
cannam@86
|
1256 # Also quote any args containing shell meta-characters.
|
cannam@86
|
1257 # Make two passes to allow for proper duplicate-argument suppression.
|
cannam@86
|
1258 ac_configure_args=
|
cannam@86
|
1259 ac_configure_args0=
|
cannam@86
|
1260 ac_configure_args1=
|
cannam@86
|
1261 ac_sep=
|
cannam@86
|
1262 ac_must_keep_next=false
|
cannam@86
|
1263 for ac_pass in 1 2
|
cannam@86
|
1264 do
|
cannam@86
|
1265 for ac_arg
|
cannam@86
|
1266 do
|
cannam@86
|
1267 case $ac_arg in
|
cannam@86
|
1268 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
cannam@86
|
1269 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
cannam@86
|
1270 | -silent | --silent | --silen | --sile | --sil)
|
cannam@86
|
1271 continue ;;
|
cannam@86
|
1272 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
cannam@86
|
1273 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
cannam@86
|
1274 esac
|
cannam@86
|
1275 case $ac_pass in
|
cannam@86
|
1276 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
|
cannam@86
|
1277 2)
|
cannam@86
|
1278 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
|
cannam@86
|
1279 if test $ac_must_keep_next = true; then
|
cannam@86
|
1280 ac_must_keep_next=false # Got value, back to normal.
|
cannam@86
|
1281 else
|
cannam@86
|
1282 case $ac_arg in
|
cannam@86
|
1283 *=* | --config-cache | -C | -disable-* | --disable-* \
|
cannam@86
|
1284 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
cannam@86
|
1285 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
cannam@86
|
1286 | -with-* | --with-* | -without-* | --without-* | --x)
|
cannam@86
|
1287 case "$ac_configure_args0 " in
|
cannam@86
|
1288 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
cannam@86
|
1289 esac
|
cannam@86
|
1290 ;;
|
cannam@86
|
1291 -* ) ac_must_keep_next=true ;;
|
cannam@86
|
1292 esac
|
cannam@86
|
1293 fi
|
cannam@86
|
1294 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
|
cannam@86
|
1295 # Get rid of the leading space.
|
cannam@86
|
1296 ac_sep=" "
|
cannam@86
|
1297 ;;
|
cannam@86
|
1298 esac
|
cannam@86
|
1299 done
|
cannam@86
|
1300 done
|
cannam@86
|
1301 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
|
cannam@86
|
1302 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
|
cannam@86
|
1303
|
cannam@86
|
1304 # When interrupted or exit'd, cleanup temporary files, and complete
|
cannam@86
|
1305 # config.log. We remove comments because anyway the quotes in there
|
cannam@86
|
1306 # would cause problems or look ugly.
|
cannam@86
|
1307 # WARNING: Be sure not to use single quotes in there, as some shells,
|
cannam@86
|
1308 # such as our DU 5.0 friend, will then `close' the trap.
|
cannam@86
|
1309 trap 'exit_status=$?
|
cannam@86
|
1310 # Save into config.log some information that might help in debugging.
|
cannam@86
|
1311 {
|
cannam@86
|
1312 echo
|
cannam@86
|
1313
|
cannam@86
|
1314 cat <<\_ASBOX
|
cannam@86
|
1315 ## ---------------- ##
|
cannam@86
|
1316 ## Cache variables. ##
|
cannam@86
|
1317 ## ---------------- ##
|
cannam@86
|
1318 _ASBOX
|
cannam@86
|
1319 echo
|
cannam@86
|
1320 # The following way of writing the cache mishandles newlines in values,
|
cannam@86
|
1321 {
|
cannam@86
|
1322 (set) 2>&1 |
|
cannam@86
|
1323 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
|
cannam@86
|
1324 *ac_space=\ *)
|
cannam@86
|
1325 sed -n \
|
cannam@86
|
1326 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
|
cannam@86
|
1327 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
|
cannam@86
|
1328 ;;
|
cannam@86
|
1329 *)
|
cannam@86
|
1330 sed -n \
|
cannam@86
|
1331 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
cannam@86
|
1332 ;;
|
cannam@86
|
1333 esac;
|
cannam@86
|
1334 }
|
cannam@86
|
1335 echo
|
cannam@86
|
1336
|
cannam@86
|
1337 cat <<\_ASBOX
|
cannam@86
|
1338 ## ----------------- ##
|
cannam@86
|
1339 ## Output variables. ##
|
cannam@86
|
1340 ## ----------------- ##
|
cannam@86
|
1341 _ASBOX
|
cannam@86
|
1342 echo
|
cannam@86
|
1343 for ac_var in $ac_subst_vars
|
cannam@86
|
1344 do
|
cannam@86
|
1345 eval ac_val=$`echo $ac_var`
|
cannam@86
|
1346 echo "$ac_var='"'"'$ac_val'"'"'"
|
cannam@86
|
1347 done | sort
|
cannam@86
|
1348 echo
|
cannam@86
|
1349
|
cannam@86
|
1350 if test -n "$ac_subst_files"; then
|
cannam@86
|
1351 cat <<\_ASBOX
|
cannam@86
|
1352 ## ------------- ##
|
cannam@86
|
1353 ## Output files. ##
|
cannam@86
|
1354 ## ------------- ##
|
cannam@86
|
1355 _ASBOX
|
cannam@86
|
1356 echo
|
cannam@86
|
1357 for ac_var in $ac_subst_files
|
cannam@86
|
1358 do
|
cannam@86
|
1359 eval ac_val=$`echo $ac_var`
|
cannam@86
|
1360 echo "$ac_var='"'"'$ac_val'"'"'"
|
cannam@86
|
1361 done | sort
|
cannam@86
|
1362 echo
|
cannam@86
|
1363 fi
|
cannam@86
|
1364
|
cannam@86
|
1365 if test -s confdefs.h; then
|
cannam@86
|
1366 cat <<\_ASBOX
|
cannam@86
|
1367 ## ----------- ##
|
cannam@86
|
1368 ## confdefs.h. ##
|
cannam@86
|
1369 ## ----------- ##
|
cannam@86
|
1370 _ASBOX
|
cannam@86
|
1371 echo
|
cannam@86
|
1372 sed "/^$/d" confdefs.h | sort
|
cannam@86
|
1373 echo
|
cannam@86
|
1374 fi
|
cannam@86
|
1375 test "$ac_signal" != 0 &&
|
cannam@86
|
1376 echo "$as_me: caught signal $ac_signal"
|
cannam@86
|
1377 echo "$as_me: exit $exit_status"
|
cannam@86
|
1378 } >&5
|
cannam@86
|
1379 rm -f core *.core &&
|
cannam@86
|
1380 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
|
cannam@86
|
1381 exit $exit_status
|
cannam@86
|
1382 ' 0
|
cannam@86
|
1383 for ac_signal in 1 2 13 15; do
|
cannam@86
|
1384 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
|
cannam@86
|
1385 done
|
cannam@86
|
1386 ac_signal=0
|
cannam@86
|
1387
|
cannam@86
|
1388 # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
cannam@86
|
1389 rm -rf conftest* confdefs.h
|
cannam@86
|
1390 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
cannam@86
|
1391 echo >confdefs.h
|
cannam@86
|
1392
|
cannam@86
|
1393 # Predefined preprocessor variables.
|
cannam@86
|
1394
|
cannam@86
|
1395 cat >>confdefs.h <<_ACEOF
|
cannam@86
|
1396 #define PACKAGE_NAME "$PACKAGE_NAME"
|
cannam@86
|
1397 _ACEOF
|
cannam@86
|
1398
|
cannam@86
|
1399
|
cannam@86
|
1400 cat >>confdefs.h <<_ACEOF
|
cannam@86
|
1401 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
cannam@86
|
1402 _ACEOF
|
cannam@86
|
1403
|
cannam@86
|
1404
|
cannam@86
|
1405 cat >>confdefs.h <<_ACEOF
|
cannam@86
|
1406 #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
cannam@86
|
1407 _ACEOF
|
cannam@86
|
1408
|
cannam@86
|
1409
|
cannam@86
|
1410 cat >>confdefs.h <<_ACEOF
|
cannam@86
|
1411 #define PACKAGE_STRING "$PACKAGE_STRING"
|
cannam@86
|
1412 _ACEOF
|
cannam@86
|
1413
|
cannam@86
|
1414
|
cannam@86
|
1415 cat >>confdefs.h <<_ACEOF
|
cannam@86
|
1416 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
cannam@86
|
1417 _ACEOF
|
cannam@86
|
1418
|
cannam@86
|
1419
|
cannam@86
|
1420 # Let the site file select an alternate cache file if it wants to.
|
cannam@86
|
1421 # Prefer explicitly selected file to automatically selected ones.
|
cannam@86
|
1422 if test -z "$CONFIG_SITE"; then
|
cannam@86
|
1423 if test "x$prefix" != xNONE; then
|
cannam@86
|
1424 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
cannam@86
|
1425 else
|
cannam@86
|
1426 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
cannam@86
|
1427 fi
|
cannam@86
|
1428 fi
|
cannam@86
|
1429 for ac_site_file in $CONFIG_SITE; do
|
cannam@86
|
1430 if test -r "$ac_site_file"; then
|
cannam@86
|
1431 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
|
cannam@86
|
1432 echo "$as_me: loading site script $ac_site_file" >&6;}
|
cannam@86
|
1433 sed 's/^/| /' "$ac_site_file" >&5
|
cannam@86
|
1434 . "$ac_site_file"
|
cannam@86
|
1435 fi
|
cannam@86
|
1436 done
|
cannam@86
|
1437
|
cannam@86
|
1438 if test -r "$cache_file"; then
|
cannam@86
|
1439 # Some versions of bash will fail to source /dev/null (special
|
cannam@86
|
1440 # files actually), so we avoid doing that.
|
cannam@86
|
1441 if test -f "$cache_file"; then
|
cannam@86
|
1442 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
|
cannam@86
|
1443 echo "$as_me: loading cache $cache_file" >&6;}
|
cannam@86
|
1444 case $cache_file in
|
cannam@86
|
1445 [\\/]* | ?:[\\/]* ) . $cache_file;;
|
cannam@86
|
1446 *) . ./$cache_file;;
|
cannam@86
|
1447 esac
|
cannam@86
|
1448 fi
|
cannam@86
|
1449 else
|
cannam@86
|
1450 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
|
cannam@86
|
1451 echo "$as_me: creating cache $cache_file" >&6;}
|
cannam@86
|
1452 >$cache_file
|
cannam@86
|
1453 fi
|
cannam@86
|
1454
|
cannam@86
|
1455 # Check that the precious variables saved in the cache have kept the same
|
cannam@86
|
1456 # value.
|
cannam@86
|
1457 ac_cache_corrupted=false
|
cannam@86
|
1458 for ac_var in `(set) 2>&1 |
|
cannam@86
|
1459 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
|
cannam@86
|
1460 eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
cannam@86
|
1461 eval ac_new_set=\$ac_env_${ac_var}_set
|
cannam@86
|
1462 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
|
cannam@86
|
1463 eval ac_new_val="\$ac_env_${ac_var}_value"
|
cannam@86
|
1464 case $ac_old_set,$ac_new_set in
|
cannam@86
|
1465 set,)
|
cannam@86
|
1466 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
cannam@86
|
1467 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
cannam@86
|
1468 ac_cache_corrupted=: ;;
|
cannam@86
|
1469 ,set)
|
cannam@86
|
1470 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
|
cannam@86
|
1471 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
cannam@86
|
1472 ac_cache_corrupted=: ;;
|
cannam@86
|
1473 ,);;
|
cannam@86
|
1474 *)
|
cannam@86
|
1475 if test "x$ac_old_val" != "x$ac_new_val"; then
|
cannam@86
|
1476 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
|
cannam@86
|
1477 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
cannam@86
|
1478 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
|
cannam@86
|
1479 echo "$as_me: former value: $ac_old_val" >&2;}
|
cannam@86
|
1480 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
|
cannam@86
|
1481 echo "$as_me: current value: $ac_new_val" >&2;}
|
cannam@86
|
1482 ac_cache_corrupted=:
|
cannam@86
|
1483 fi;;
|
cannam@86
|
1484 esac
|
cannam@86
|
1485 # Pass precious variables to config.status.
|
cannam@86
|
1486 if test "$ac_new_set" = set; then
|
cannam@86
|
1487 case $ac_new_val in
|
cannam@86
|
1488 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
cannam@86
|
1489 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
cannam@86
|
1490 *) ac_arg=$ac_var=$ac_new_val ;;
|
cannam@86
|
1491 esac
|
cannam@86
|
1492 case " $ac_configure_args " in
|
cannam@86
|
1493 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
cannam@86
|
1494 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
cannam@86
|
1495 esac
|
cannam@86
|
1496 fi
|
cannam@86
|
1497 done
|
cannam@86
|
1498 if $ac_cache_corrupted; then
|
cannam@86
|
1499 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
|
cannam@86
|
1500 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
cannam@86
|
1501 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
|
cannam@86
|
1502 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
|
cannam@86
|
1503 { (exit 1); exit 1; }; }
|
cannam@86
|
1504 fi
|
cannam@86
|
1505
|
cannam@86
|
1506 ac_ext=c
|
cannam@86
|
1507 ac_cpp='$CPP $CPPFLAGS'
|
cannam@86
|
1508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
cannam@86
|
1509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
cannam@86
|
1510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
cannam@86
|
1511
|
cannam@86
|
1512
|
cannam@86
|
1513
|
cannam@86
|
1514
|
cannam@86
|
1515
|
cannam@86
|
1516
|
cannam@86
|
1517
|
cannam@86
|
1518
|
cannam@86
|
1519
|
cannam@86
|
1520
|
cannam@86
|
1521
|
cannam@86
|
1522
|
cannam@86
|
1523
|
cannam@86
|
1524
|
cannam@86
|
1525
|
cannam@86
|
1526
|
cannam@86
|
1527
|
cannam@86
|
1528
|
cannam@86
|
1529
|
cannam@86
|
1530 am__api_version="1.7"
|
cannam@86
|
1531 ac_aux_dir=
|
cannam@86
|
1532 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
cannam@86
|
1533 if test -f $ac_dir/install-sh; then
|
cannam@86
|
1534 ac_aux_dir=$ac_dir
|
cannam@86
|
1535 ac_install_sh="$ac_aux_dir/install-sh -c"
|
cannam@86
|
1536 break
|
cannam@86
|
1537 elif test -f $ac_dir/install.sh; then
|
cannam@86
|
1538 ac_aux_dir=$ac_dir
|
cannam@86
|
1539 ac_install_sh="$ac_aux_dir/install.sh -c"
|
cannam@86
|
1540 break
|
cannam@86
|
1541 elif test -f $ac_dir/shtool; then
|
cannam@86
|
1542 ac_aux_dir=$ac_dir
|
cannam@86
|
1543 ac_install_sh="$ac_aux_dir/shtool install -c"
|
cannam@86
|
1544 break
|
cannam@86
|
1545 fi
|
cannam@86
|
1546 done
|
cannam@86
|
1547 if test -z "$ac_aux_dir"; then
|
cannam@86
|
1548 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
|
cannam@86
|
1549 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
|
cannam@86
|
1550 { (exit 1); exit 1; }; }
|
cannam@86
|
1551 fi
|
cannam@86
|
1552 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
|
cannam@86
|
1553 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
|
cannam@86
|
1554 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
|
cannam@86
|
1555
|
cannam@86
|
1556 # Find a good install program. We prefer a C program (faster),
|
cannam@86
|
1557 # so one script is as good as another. But avoid the broken or
|
cannam@86
|
1558 # incompatible versions:
|
cannam@86
|
1559 # SysV /etc/install, /usr/sbin/install
|
cannam@86
|
1560 # SunOS /usr/etc/install
|
cannam@86
|
1561 # IRIX /sbin/install
|
cannam@86
|
1562 # AIX /bin/install
|
cannam@86
|
1563 # AmigaOS /C/install, which installs bootblocks on floppy discs
|
cannam@86
|
1564 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
cannam@86
|
1565 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
cannam@86
|
1566 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
cannam@86
|
1567 # OS/2's system install, which has a completely different semantic
|
cannam@86
|
1568 # ./install, which can be erroneously created by make from ./install.sh.
|
cannam@86
|
1569 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
cannam@86
|
1570 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
|
cannam@86
|
1571 if test -z "$INSTALL"; then
|
cannam@86
|
1572 if test "${ac_cv_path_install+set}" = set; then
|
cannam@86
|
1573 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
1574 else
|
cannam@86
|
1575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@86
|
1576 for as_dir in $PATH
|
cannam@86
|
1577 do
|
cannam@86
|
1578 IFS=$as_save_IFS
|
cannam@86
|
1579 test -z "$as_dir" && as_dir=.
|
cannam@86
|
1580 # Account for people who put trailing slashes in PATH elements.
|
cannam@86
|
1581 case $as_dir/ in
|
cannam@86
|
1582 ./ | .// | /cC/* | \
|
cannam@86
|
1583 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
cannam@86
|
1584 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
|
cannam@86
|
1585 /usr/ucb/* ) ;;
|
cannam@86
|
1586 *)
|
cannam@86
|
1587 # OSF1 and SCO ODT 3.0 have their own names for install.
|
cannam@86
|
1588 # Don't use installbsd from OSF since it installs stuff as root
|
cannam@86
|
1589 # by default.
|
cannam@86
|
1590 for ac_prog in ginstall scoinst install; do
|
cannam@86
|
1591 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@86
|
1592 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
cannam@86
|
1593 if test $ac_prog = install &&
|
cannam@86
|
1594 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
cannam@86
|
1595 # AIX install. It has an incompatible calling convention.
|
cannam@86
|
1596 :
|
cannam@86
|
1597 elif test $ac_prog = install &&
|
cannam@86
|
1598 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
cannam@86
|
1599 # program-specific install script used by HP pwplus--don't use.
|
cannam@86
|
1600 :
|
cannam@86
|
1601 else
|
cannam@86
|
1602 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
cannam@86
|
1603 break 3
|
cannam@86
|
1604 fi
|
cannam@86
|
1605 fi
|
cannam@86
|
1606 done
|
cannam@86
|
1607 done
|
cannam@86
|
1608 ;;
|
cannam@86
|
1609 esac
|
cannam@86
|
1610 done
|
cannam@86
|
1611
|
cannam@86
|
1612
|
cannam@86
|
1613 fi
|
cannam@86
|
1614 if test "${ac_cv_path_install+set}" = set; then
|
cannam@86
|
1615 INSTALL=$ac_cv_path_install
|
cannam@86
|
1616 else
|
cannam@86
|
1617 # As a last resort, use the slow shell script. We don't cache a
|
cannam@86
|
1618 # path for INSTALL within a source directory, because that will
|
cannam@86
|
1619 # break other packages using the cache if that directory is
|
cannam@86
|
1620 # removed, or if the path is relative.
|
cannam@86
|
1621 INSTALL=$ac_install_sh
|
cannam@86
|
1622 fi
|
cannam@86
|
1623 fi
|
cannam@86
|
1624 echo "$as_me:$LINENO: result: $INSTALL" >&5
|
cannam@86
|
1625 echo "${ECHO_T}$INSTALL" >&6
|
cannam@86
|
1626
|
cannam@86
|
1627 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
cannam@86
|
1628 # It thinks the first close brace ends the variable substitution.
|
cannam@86
|
1629 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
cannam@86
|
1630
|
cannam@86
|
1631 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
cannam@86
|
1632
|
cannam@86
|
1633 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
cannam@86
|
1634
|
cannam@86
|
1635 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
|
cannam@86
|
1636 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
|
cannam@86
|
1637 # Just in case
|
cannam@86
|
1638 sleep 1
|
cannam@86
|
1639 echo timestamp > conftest.file
|
cannam@86
|
1640 # Do `set' in a subshell so we don't clobber the current shell's
|
cannam@86
|
1641 # arguments. Must try -L first in case configure is actually a
|
cannam@86
|
1642 # symlink; some systems play weird games with the mod time of symlinks
|
cannam@86
|
1643 # (eg FreeBSD returns the mod time of the symlink's containing
|
cannam@86
|
1644 # directory).
|
cannam@86
|
1645 if (
|
cannam@86
|
1646 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
|
cannam@86
|
1647 if test "$*" = "X"; then
|
cannam@86
|
1648 # -L didn't work.
|
cannam@86
|
1649 set X `ls -t $srcdir/configure conftest.file`
|
cannam@86
|
1650 fi
|
cannam@86
|
1651 rm -f conftest.file
|
cannam@86
|
1652 if test "$*" != "X $srcdir/configure conftest.file" \
|
cannam@86
|
1653 && test "$*" != "X conftest.file $srcdir/configure"; then
|
cannam@86
|
1654
|
cannam@86
|
1655 # If neither matched, then we have a broken ls. This can happen
|
cannam@86
|
1656 # if, for instance, CONFIG_SHELL is bash and it inherits a
|
cannam@86
|
1657 # broken ls alias from the environment. This has actually
|
cannam@86
|
1658 # happened. Such a system could not be considered "sane".
|
cannam@86
|
1659 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
|
cannam@86
|
1660 alias in your environment" >&5
|
cannam@86
|
1661 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
|
cannam@86
|
1662 alias in your environment" >&2;}
|
cannam@86
|
1663 { (exit 1); exit 1; }; }
|
cannam@86
|
1664 fi
|
cannam@86
|
1665
|
cannam@86
|
1666 test "$2" = conftest.file
|
cannam@86
|
1667 )
|
cannam@86
|
1668 then
|
cannam@86
|
1669 # Ok.
|
cannam@86
|
1670 :
|
cannam@86
|
1671 else
|
cannam@86
|
1672 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
|
cannam@86
|
1673 Check your system clock" >&5
|
cannam@86
|
1674 echo "$as_me: error: newly created file is older than distributed files!
|
cannam@86
|
1675 Check your system clock" >&2;}
|
cannam@86
|
1676 { (exit 1); exit 1; }; }
|
cannam@86
|
1677 fi
|
cannam@86
|
1678 echo "$as_me:$LINENO: result: yes" >&5
|
cannam@86
|
1679 echo "${ECHO_T}yes" >&6
|
cannam@86
|
1680 test "$program_prefix" != NONE &&
|
cannam@86
|
1681 program_transform_name="s,^,$program_prefix,;$program_transform_name"
|
cannam@86
|
1682 # Use a double $ so make ignores it.
|
cannam@86
|
1683 test "$program_suffix" != NONE &&
|
cannam@86
|
1684 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
|
cannam@86
|
1685 # Double any \ or $. echo might interpret backslashes.
|
cannam@86
|
1686 # By default was `s,x,x', remove it if useless.
|
cannam@86
|
1687 cat <<\_ACEOF >conftest.sed
|
cannam@86
|
1688 s/[\\$]/&&/g;s/;s,x,x,$//
|
cannam@86
|
1689 _ACEOF
|
cannam@86
|
1690 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
|
cannam@86
|
1691 rm conftest.sed
|
cannam@86
|
1692
|
cannam@86
|
1693
|
cannam@86
|
1694 # expand $ac_aux_dir to an absolute path
|
cannam@86
|
1695 am_aux_dir=`cd $ac_aux_dir && pwd`
|
cannam@86
|
1696
|
cannam@86
|
1697 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
|
cannam@86
|
1698 # Use eval to expand $SHELL
|
cannam@86
|
1699 if eval "$MISSING --run true"; then
|
cannam@86
|
1700 am_missing_run="$MISSING --run "
|
cannam@86
|
1701 else
|
cannam@86
|
1702 am_missing_run=
|
cannam@86
|
1703 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
|
cannam@86
|
1704 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
|
cannam@86
|
1705 fi
|
cannam@86
|
1706
|
cannam@86
|
1707 for ac_prog in gawk mawk nawk awk
|
cannam@86
|
1708 do
|
cannam@86
|
1709 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
cannam@86
|
1710 set dummy $ac_prog; ac_word=$2
|
cannam@86
|
1711 echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@86
|
1712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
cannam@86
|
1713 if test "${ac_cv_prog_AWK+set}" = set; then
|
cannam@86
|
1714 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
1715 else
|
cannam@86
|
1716 if test -n "$AWK"; then
|
cannam@86
|
1717 ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
cannam@86
|
1718 else
|
cannam@86
|
1719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@86
|
1720 for as_dir in $PATH
|
cannam@86
|
1721 do
|
cannam@86
|
1722 IFS=$as_save_IFS
|
cannam@86
|
1723 test -z "$as_dir" && as_dir=.
|
cannam@86
|
1724 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@86
|
1725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@86
|
1726 ac_cv_prog_AWK="$ac_prog"
|
cannam@86
|
1727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@86
|
1728 break 2
|
cannam@86
|
1729 fi
|
cannam@86
|
1730 done
|
cannam@86
|
1731 done
|
cannam@86
|
1732
|
cannam@86
|
1733 fi
|
cannam@86
|
1734 fi
|
cannam@86
|
1735 AWK=$ac_cv_prog_AWK
|
cannam@86
|
1736 if test -n "$AWK"; then
|
cannam@86
|
1737 echo "$as_me:$LINENO: result: $AWK" >&5
|
cannam@86
|
1738 echo "${ECHO_T}$AWK" >&6
|
cannam@86
|
1739 else
|
cannam@86
|
1740 echo "$as_me:$LINENO: result: no" >&5
|
cannam@86
|
1741 echo "${ECHO_T}no" >&6
|
cannam@86
|
1742 fi
|
cannam@86
|
1743
|
cannam@86
|
1744 test -n "$AWK" && break
|
cannam@86
|
1745 done
|
cannam@86
|
1746
|
cannam@86
|
1747 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
cannam@86
|
1748 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
|
cannam@86
|
1749 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
|
cannam@86
|
1750 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
|
cannam@86
|
1751 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
1752 else
|
cannam@86
|
1753 cat >conftest.make <<\_ACEOF
|
cannam@86
|
1754 all:
|
cannam@86
|
1755 @echo 'ac_maketemp="$(MAKE)"'
|
cannam@86
|
1756 _ACEOF
|
cannam@86
|
1757 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
cannam@86
|
1758 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
|
cannam@86
|
1759 if test -n "$ac_maketemp"; then
|
cannam@86
|
1760 eval ac_cv_prog_make_${ac_make}_set=yes
|
cannam@86
|
1761 else
|
cannam@86
|
1762 eval ac_cv_prog_make_${ac_make}_set=no
|
cannam@86
|
1763 fi
|
cannam@86
|
1764 rm -f conftest.make
|
cannam@86
|
1765 fi
|
cannam@86
|
1766 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
cannam@86
|
1767 echo "$as_me:$LINENO: result: yes" >&5
|
cannam@86
|
1768 echo "${ECHO_T}yes" >&6
|
cannam@86
|
1769 SET_MAKE=
|
cannam@86
|
1770 else
|
cannam@86
|
1771 echo "$as_me:$LINENO: result: no" >&5
|
cannam@86
|
1772 echo "${ECHO_T}no" >&6
|
cannam@86
|
1773 SET_MAKE="MAKE=${MAKE-make}"
|
cannam@86
|
1774 fi
|
cannam@86
|
1775
|
cannam@86
|
1776 rm -rf .tst 2>/dev/null
|
cannam@86
|
1777 mkdir .tst 2>/dev/null
|
cannam@86
|
1778 if test -d .tst; then
|
cannam@86
|
1779 am__leading_dot=.
|
cannam@86
|
1780 else
|
cannam@86
|
1781 am__leading_dot=_
|
cannam@86
|
1782 fi
|
cannam@86
|
1783 rmdir .tst 2>/dev/null
|
cannam@86
|
1784
|
cannam@86
|
1785 # test to see if srcdir already configured
|
cannam@86
|
1786 if test "`cd $srcdir && pwd`" != "`pwd`" &&
|
cannam@86
|
1787 test -f $srcdir/config.status; then
|
cannam@86
|
1788 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
|
cannam@86
|
1789 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
|
cannam@86
|
1790 { (exit 1); exit 1; }; }
|
cannam@86
|
1791 fi
|
cannam@86
|
1792
|
cannam@86
|
1793 # test whether we have cygpath
|
cannam@86
|
1794 if test -z "$CYGPATH_W"; then
|
cannam@86
|
1795 if (cygpath --version) >/dev/null 2>/dev/null; then
|
cannam@86
|
1796 CYGPATH_W='cygpath -w'
|
cannam@86
|
1797 else
|
cannam@86
|
1798 CYGPATH_W=echo
|
cannam@86
|
1799 fi
|
cannam@86
|
1800 fi
|
cannam@86
|
1801
|
cannam@86
|
1802
|
cannam@86
|
1803 # Define the identity of the package.
|
cannam@86
|
1804 PACKAGE=flac
|
cannam@86
|
1805 VERSION=1.2.1
|
cannam@86
|
1806
|
cannam@86
|
1807
|
cannam@86
|
1808 cat >>confdefs.h <<_ACEOF
|
cannam@86
|
1809 #define PACKAGE "$PACKAGE"
|
cannam@86
|
1810 _ACEOF
|
cannam@86
|
1811
|
cannam@86
|
1812
|
cannam@86
|
1813 cat >>confdefs.h <<_ACEOF
|
cannam@86
|
1814 #define VERSION "$VERSION"
|
cannam@86
|
1815 _ACEOF
|
cannam@86
|
1816
|
cannam@86
|
1817 # Some tools Automake needs.
|
cannam@86
|
1818
|
cannam@86
|
1819 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
|
cannam@86
|
1820
|
cannam@86
|
1821
|
cannam@86
|
1822 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
|
cannam@86
|
1823
|
cannam@86
|
1824
|
cannam@86
|
1825 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
|
cannam@86
|
1826
|
cannam@86
|
1827
|
cannam@86
|
1828 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
|
cannam@86
|
1829
|
cannam@86
|
1830
|
cannam@86
|
1831 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
|
cannam@86
|
1832
|
cannam@86
|
1833
|
cannam@86
|
1834 AMTAR=${AMTAR-"${am_missing_run}tar"}
|
cannam@86
|
1835
|
cannam@86
|
1836 install_sh=${install_sh-"$am_aux_dir/install-sh"}
|
cannam@86
|
1837
|
cannam@86
|
1838 # Installed binaries are usually stripped using `strip' when the user
|
cannam@86
|
1839 # run `make install-strip'. However `strip' might not be the right
|
cannam@86
|
1840 # tool to use in cross-compilation environments, therefore Automake
|
cannam@86
|
1841 # will honor the `STRIP' environment variable to overrule this program.
|
cannam@86
|
1842 if test "$cross_compiling" != no; then
|
cannam@86
|
1843 if test -n "$ac_tool_prefix"; then
|
cannam@86
|
1844 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
cannam@86
|
1845 set dummy ${ac_tool_prefix}strip; ac_word=$2
|
cannam@86
|
1846 echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@86
|
1847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
cannam@86
|
1848 if test "${ac_cv_prog_STRIP+set}" = set; then
|
cannam@86
|
1849 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
1850 else
|
cannam@86
|
1851 if test -n "$STRIP"; then
|
cannam@86
|
1852 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
cannam@86
|
1853 else
|
cannam@86
|
1854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@86
|
1855 for as_dir in $PATH
|
cannam@86
|
1856 do
|
cannam@86
|
1857 IFS=$as_save_IFS
|
cannam@86
|
1858 test -z "$as_dir" && as_dir=.
|
cannam@86
|
1859 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@86
|
1860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@86
|
1861 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
cannam@86
|
1862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@86
|
1863 break 2
|
cannam@86
|
1864 fi
|
cannam@86
|
1865 done
|
cannam@86
|
1866 done
|
cannam@86
|
1867
|
cannam@86
|
1868 fi
|
cannam@86
|
1869 fi
|
cannam@86
|
1870 STRIP=$ac_cv_prog_STRIP
|
cannam@86
|
1871 if test -n "$STRIP"; then
|
cannam@86
|
1872 echo "$as_me:$LINENO: result: $STRIP" >&5
|
cannam@86
|
1873 echo "${ECHO_T}$STRIP" >&6
|
cannam@86
|
1874 else
|
cannam@86
|
1875 echo "$as_me:$LINENO: result: no" >&5
|
cannam@86
|
1876 echo "${ECHO_T}no" >&6
|
cannam@86
|
1877 fi
|
cannam@86
|
1878
|
cannam@86
|
1879 fi
|
cannam@86
|
1880 if test -z "$ac_cv_prog_STRIP"; then
|
cannam@86
|
1881 ac_ct_STRIP=$STRIP
|
cannam@86
|
1882 # Extract the first word of "strip", so it can be a program name with args.
|
cannam@86
|
1883 set dummy strip; ac_word=$2
|
cannam@86
|
1884 echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@86
|
1885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
cannam@86
|
1886 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
|
cannam@86
|
1887 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
1888 else
|
cannam@86
|
1889 if test -n "$ac_ct_STRIP"; then
|
cannam@86
|
1890 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
|
cannam@86
|
1891 else
|
cannam@86
|
1892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@86
|
1893 for as_dir in $PATH
|
cannam@86
|
1894 do
|
cannam@86
|
1895 IFS=$as_save_IFS
|
cannam@86
|
1896 test -z "$as_dir" && as_dir=.
|
cannam@86
|
1897 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@86
|
1898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@86
|
1899 ac_cv_prog_ac_ct_STRIP="strip"
|
cannam@86
|
1900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@86
|
1901 break 2
|
cannam@86
|
1902 fi
|
cannam@86
|
1903 done
|
cannam@86
|
1904 done
|
cannam@86
|
1905
|
cannam@86
|
1906 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
|
cannam@86
|
1907 fi
|
cannam@86
|
1908 fi
|
cannam@86
|
1909 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
|
cannam@86
|
1910 if test -n "$ac_ct_STRIP"; then
|
cannam@86
|
1911 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
|
cannam@86
|
1912 echo "${ECHO_T}$ac_ct_STRIP" >&6
|
cannam@86
|
1913 else
|
cannam@86
|
1914 echo "$as_me:$LINENO: result: no" >&5
|
cannam@86
|
1915 echo "${ECHO_T}no" >&6
|
cannam@86
|
1916 fi
|
cannam@86
|
1917
|
cannam@86
|
1918 STRIP=$ac_ct_STRIP
|
cannam@86
|
1919 else
|
cannam@86
|
1920 STRIP="$ac_cv_prog_STRIP"
|
cannam@86
|
1921 fi
|
cannam@86
|
1922
|
cannam@86
|
1923 fi
|
cannam@86
|
1924 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
|
cannam@86
|
1925
|
cannam@86
|
1926 # We need awk for the "check" target. The system "awk" is bad on
|
cannam@86
|
1927 # some platforms.
|
cannam@86
|
1928
|
cannam@86
|
1929
|
cannam@86
|
1930
|
cannam@86
|
1931
|
cannam@86
|
1932 # Don't automagically regenerate autoconf/automake generated files unless
|
cannam@86
|
1933 # explicitly requested. Eases autobuilding -mdz
|
cannam@86
|
1934 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
|
cannam@86
|
1935 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
|
cannam@86
|
1936 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
|
cannam@86
|
1937 if test "${enable_maintainer_mode+set}" = set; then
|
cannam@86
|
1938 enableval="$enable_maintainer_mode"
|
cannam@86
|
1939 USE_MAINTAINER_MODE=$enableval
|
cannam@86
|
1940 else
|
cannam@86
|
1941 USE_MAINTAINER_MODE=no
|
cannam@86
|
1942 fi;
|
cannam@86
|
1943 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
|
cannam@86
|
1944 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
|
cannam@86
|
1945
|
cannam@86
|
1946
|
cannam@86
|
1947 if test $USE_MAINTAINER_MODE = yes; then
|
cannam@86
|
1948 MAINTAINER_MODE_TRUE=
|
cannam@86
|
1949 MAINTAINER_MODE_FALSE='#'
|
cannam@86
|
1950 else
|
cannam@86
|
1951 MAINTAINER_MODE_TRUE='#'
|
cannam@86
|
1952 MAINTAINER_MODE_FALSE=
|
cannam@86
|
1953 fi
|
cannam@86
|
1954
|
cannam@86
|
1955 MAINT=$MAINTAINER_MODE_TRUE
|
cannam@86
|
1956
|
cannam@86
|
1957
|
cannam@86
|
1958
|
cannam@86
|
1959 # We need two libtools, one that builds both shared and static, and
|
cannam@86
|
1960 # one that builds only static. This is because the resulting libtool
|
cannam@86
|
1961 # does not allow us to choose which to build at runtime.
|
cannam@86
|
1962 # Check whether --enable-shared or --disable-shared was given.
|
cannam@86
|
1963 if test "${enable_shared+set}" = set; then
|
cannam@86
|
1964 enableval="$enable_shared"
|
cannam@86
|
1965 p=${PACKAGE-default}
|
cannam@86
|
1966 case $enableval in
|
cannam@86
|
1967 yes) enable_shared=yes ;;
|
cannam@86
|
1968 no) enable_shared=no ;;
|
cannam@86
|
1969 *)
|
cannam@86
|
1970 enable_shared=no
|
cannam@86
|
1971 # Look at the argument we got. We use all the common list separators.
|
cannam@86
|
1972 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
cannam@86
|
1973 for pkg in $enableval; do
|
cannam@86
|
1974 IFS="$lt_save_ifs"
|
cannam@86
|
1975 if test "X$pkg" = "X$p"; then
|
cannam@86
|
1976 enable_shared=yes
|
cannam@86
|
1977 fi
|
cannam@86
|
1978 done
|
cannam@86
|
1979 IFS="$lt_save_ifs"
|
cannam@86
|
1980 ;;
|
cannam@86
|
1981 esac
|
cannam@86
|
1982 else
|
cannam@86
|
1983 enable_shared=yes
|
cannam@86
|
1984 fi;
|
cannam@86
|
1985
|
cannam@86
|
1986 # Check whether --enable-static or --disable-static was given.
|
cannam@86
|
1987 if test "${enable_static+set}" = set; then
|
cannam@86
|
1988 enableval="$enable_static"
|
cannam@86
|
1989 p=${PACKAGE-default}
|
cannam@86
|
1990 case $enableval in
|
cannam@86
|
1991 yes) enable_static=yes ;;
|
cannam@86
|
1992 no) enable_static=no ;;
|
cannam@86
|
1993 *)
|
cannam@86
|
1994 enable_static=no
|
cannam@86
|
1995 # Look at the argument we got. We use all the common list separators.
|
cannam@86
|
1996 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
cannam@86
|
1997 for pkg in $enableval; do
|
cannam@86
|
1998 IFS="$lt_save_ifs"
|
cannam@86
|
1999 if test "X$pkg" = "X$p"; then
|
cannam@86
|
2000 enable_static=yes
|
cannam@86
|
2001 fi
|
cannam@86
|
2002 done
|
cannam@86
|
2003 IFS="$lt_save_ifs"
|
cannam@86
|
2004 ;;
|
cannam@86
|
2005 esac
|
cannam@86
|
2006 else
|
cannam@86
|
2007 enable_static=yes
|
cannam@86
|
2008 fi;
|
cannam@86
|
2009
|
cannam@86
|
2010 # Check whether --enable-fast-install or --disable-fast-install was given.
|
cannam@86
|
2011 if test "${enable_fast_install+set}" = set; then
|
cannam@86
|
2012 enableval="$enable_fast_install"
|
cannam@86
|
2013 p=${PACKAGE-default}
|
cannam@86
|
2014 case $enableval in
|
cannam@86
|
2015 yes) enable_fast_install=yes ;;
|
cannam@86
|
2016 no) enable_fast_install=no ;;
|
cannam@86
|
2017 *)
|
cannam@86
|
2018 enable_fast_install=no
|
cannam@86
|
2019 # Look at the argument we got. We use all the common list separators.
|
cannam@86
|
2020 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
cannam@86
|
2021 for pkg in $enableval; do
|
cannam@86
|
2022 IFS="$lt_save_ifs"
|
cannam@86
|
2023 if test "X$pkg" = "X$p"; then
|
cannam@86
|
2024 enable_fast_install=yes
|
cannam@86
|
2025 fi
|
cannam@86
|
2026 done
|
cannam@86
|
2027 IFS="$lt_save_ifs"
|
cannam@86
|
2028 ;;
|
cannam@86
|
2029 esac
|
cannam@86
|
2030 else
|
cannam@86
|
2031 enable_fast_install=yes
|
cannam@86
|
2032 fi;
|
cannam@86
|
2033
|
cannam@86
|
2034 # Make sure we can run config.sub.
|
cannam@86
|
2035 $ac_config_sub sun4 >/dev/null 2>&1 ||
|
cannam@86
|
2036 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
|
cannam@86
|
2037 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
|
cannam@86
|
2038 { (exit 1); exit 1; }; }
|
cannam@86
|
2039
|
cannam@86
|
2040 echo "$as_me:$LINENO: checking build system type" >&5
|
cannam@86
|
2041 echo $ECHO_N "checking build system type... $ECHO_C" >&6
|
cannam@86
|
2042 if test "${ac_cv_build+set}" = set; then
|
cannam@86
|
2043 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
2044 else
|
cannam@86
|
2045 ac_cv_build_alias=$build_alias
|
cannam@86
|
2046 test -z "$ac_cv_build_alias" &&
|
cannam@86
|
2047 ac_cv_build_alias=`$ac_config_guess`
|
cannam@86
|
2048 test -z "$ac_cv_build_alias" &&
|
cannam@86
|
2049 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
|
cannam@86
|
2050 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
|
cannam@86
|
2051 { (exit 1); exit 1; }; }
|
cannam@86
|
2052 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
|
cannam@86
|
2053 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
|
cannam@86
|
2054 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
|
cannam@86
|
2055 { (exit 1); exit 1; }; }
|
cannam@86
|
2056
|
cannam@86
|
2057 fi
|
cannam@86
|
2058 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
|
cannam@86
|
2059 echo "${ECHO_T}$ac_cv_build" >&6
|
cannam@86
|
2060 build=$ac_cv_build
|
cannam@86
|
2061 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
cannam@86
|
2062 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
cannam@86
|
2063 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
cannam@86
|
2064
|
cannam@86
|
2065
|
cannam@86
|
2066 echo "$as_me:$LINENO: checking host system type" >&5
|
cannam@86
|
2067 echo $ECHO_N "checking host system type... $ECHO_C" >&6
|
cannam@86
|
2068 if test "${ac_cv_host+set}" = set; then
|
cannam@86
|
2069 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
2070 else
|
cannam@86
|
2071 ac_cv_host_alias=$host_alias
|
cannam@86
|
2072 test -z "$ac_cv_host_alias" &&
|
cannam@86
|
2073 ac_cv_host_alias=$ac_cv_build_alias
|
cannam@86
|
2074 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
|
cannam@86
|
2075 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
|
cannam@86
|
2076 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
|
cannam@86
|
2077 { (exit 1); exit 1; }; }
|
cannam@86
|
2078
|
cannam@86
|
2079 fi
|
cannam@86
|
2080 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
|
cannam@86
|
2081 echo "${ECHO_T}$ac_cv_host" >&6
|
cannam@86
|
2082 host=$ac_cv_host
|
cannam@86
|
2083 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
cannam@86
|
2084 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
cannam@86
|
2085 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
cannam@86
|
2086
|
cannam@86
|
2087
|
cannam@86
|
2088 DEPDIR="${am__leading_dot}deps"
|
cannam@86
|
2089
|
cannam@86
|
2090 ac_config_commands="$ac_config_commands depfiles"
|
cannam@86
|
2091
|
cannam@86
|
2092
|
cannam@86
|
2093 am_make=${MAKE-make}
|
cannam@86
|
2094 cat > confinc << 'END'
|
cannam@86
|
2095 am__doit:
|
cannam@86
|
2096 @echo done
|
cannam@86
|
2097 .PHONY: am__doit
|
cannam@86
|
2098 END
|
cannam@86
|
2099 # If we don't find an include directive, just comment out the code.
|
cannam@86
|
2100 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
|
cannam@86
|
2101 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
|
cannam@86
|
2102 am__include="#"
|
cannam@86
|
2103 am__quote=
|
cannam@86
|
2104 _am_result=none
|
cannam@86
|
2105 # First try GNU make style include.
|
cannam@86
|
2106 echo "include confinc" > confmf
|
cannam@86
|
2107 # We grep out `Entering directory' and `Leaving directory'
|
cannam@86
|
2108 # messages which can occur if `w' ends up in MAKEFLAGS.
|
cannam@86
|
2109 # In particular we don't look at `^make:' because GNU make might
|
cannam@86
|
2110 # be invoked under some other name (usually "gmake"), in which
|
cannam@86
|
2111 # case it prints its new name instead of `make'.
|
cannam@86
|
2112 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
|
cannam@86
|
2113 am__include=include
|
cannam@86
|
2114 am__quote=
|
cannam@86
|
2115 _am_result=GNU
|
cannam@86
|
2116 fi
|
cannam@86
|
2117 # Now try BSD make style include.
|
cannam@86
|
2118 if test "$am__include" = "#"; then
|
cannam@86
|
2119 echo '.include "confinc"' > confmf
|
cannam@86
|
2120 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
|
cannam@86
|
2121 am__include=.include
|
cannam@86
|
2122 am__quote="\""
|
cannam@86
|
2123 _am_result=BSD
|
cannam@86
|
2124 fi
|
cannam@86
|
2125 fi
|
cannam@86
|
2126
|
cannam@86
|
2127
|
cannam@86
|
2128 echo "$as_me:$LINENO: result: $_am_result" >&5
|
cannam@86
|
2129 echo "${ECHO_T}$_am_result" >&6
|
cannam@86
|
2130 rm -f confinc confmf
|
cannam@86
|
2131
|
cannam@86
|
2132 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
|
cannam@86
|
2133 if test "${enable_dependency_tracking+set}" = set; then
|
cannam@86
|
2134 enableval="$enable_dependency_tracking"
|
cannam@86
|
2135
|
cannam@86
|
2136 fi;
|
cannam@86
|
2137 if test "x$enable_dependency_tracking" != xno; then
|
cannam@86
|
2138 am_depcomp="$ac_aux_dir/depcomp"
|
cannam@86
|
2139 AMDEPBACKSLASH='\'
|
cannam@86
|
2140 fi
|
cannam@86
|
2141
|
cannam@86
|
2142
|
cannam@86
|
2143 if test "x$enable_dependency_tracking" != xno; then
|
cannam@86
|
2144 AMDEP_TRUE=
|
cannam@86
|
2145 AMDEP_FALSE='#'
|
cannam@86
|
2146 else
|
cannam@86
|
2147 AMDEP_TRUE='#'
|
cannam@86
|
2148 AMDEP_FALSE=
|
cannam@86
|
2149 fi
|
cannam@86
|
2150
|
cannam@86
|
2151
|
cannam@86
|
2152
|
cannam@86
|
2153 ac_ext=c
|
cannam@86
|
2154 ac_cpp='$CPP $CPPFLAGS'
|
cannam@86
|
2155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
cannam@86
|
2156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
cannam@86
|
2157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
cannam@86
|
2158 if test -n "$ac_tool_prefix"; then
|
cannam@86
|
2159 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
cannam@86
|
2160 set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
cannam@86
|
2161 echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@86
|
2162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
cannam@86
|
2163 if test "${ac_cv_prog_CC+set}" = set; then
|
cannam@86
|
2164 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
2165 else
|
cannam@86
|
2166 if test -n "$CC"; then
|
cannam@86
|
2167 ac_cv_prog_CC="$CC" # Let the user override the test.
|
cannam@86
|
2168 else
|
cannam@86
|
2169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@86
|
2170 for as_dir in $PATH
|
cannam@86
|
2171 do
|
cannam@86
|
2172 IFS=$as_save_IFS
|
cannam@86
|
2173 test -z "$as_dir" && as_dir=.
|
cannam@86
|
2174 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@86
|
2175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@86
|
2176 ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
cannam@86
|
2177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@86
|
2178 break 2
|
cannam@86
|
2179 fi
|
cannam@86
|
2180 done
|
cannam@86
|
2181 done
|
cannam@86
|
2182
|
cannam@86
|
2183 fi
|
cannam@86
|
2184 fi
|
cannam@86
|
2185 CC=$ac_cv_prog_CC
|
cannam@86
|
2186 if test -n "$CC"; then
|
cannam@86
|
2187 echo "$as_me:$LINENO: result: $CC" >&5
|
cannam@86
|
2188 echo "${ECHO_T}$CC" >&6
|
cannam@86
|
2189 else
|
cannam@86
|
2190 echo "$as_me:$LINENO: result: no" >&5
|
cannam@86
|
2191 echo "${ECHO_T}no" >&6
|
cannam@86
|
2192 fi
|
cannam@86
|
2193
|
cannam@86
|
2194 fi
|
cannam@86
|
2195 if test -z "$ac_cv_prog_CC"; then
|
cannam@86
|
2196 ac_ct_CC=$CC
|
cannam@86
|
2197 # Extract the first word of "gcc", so it can be a program name with args.
|
cannam@86
|
2198 set dummy gcc; ac_word=$2
|
cannam@86
|
2199 echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@86
|
2200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
cannam@86
|
2201 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
cannam@86
|
2202 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
2203 else
|
cannam@86
|
2204 if test -n "$ac_ct_CC"; then
|
cannam@86
|
2205 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
cannam@86
|
2206 else
|
cannam@86
|
2207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@86
|
2208 for as_dir in $PATH
|
cannam@86
|
2209 do
|
cannam@86
|
2210 IFS=$as_save_IFS
|
cannam@86
|
2211 test -z "$as_dir" && as_dir=.
|
cannam@86
|
2212 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@86
|
2213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@86
|
2214 ac_cv_prog_ac_ct_CC="gcc"
|
cannam@86
|
2215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@86
|
2216 break 2
|
cannam@86
|
2217 fi
|
cannam@86
|
2218 done
|
cannam@86
|
2219 done
|
cannam@86
|
2220
|
cannam@86
|
2221 fi
|
cannam@86
|
2222 fi
|
cannam@86
|
2223 ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
cannam@86
|
2224 if test -n "$ac_ct_CC"; then
|
cannam@86
|
2225 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
cannam@86
|
2226 echo "${ECHO_T}$ac_ct_CC" >&6
|
cannam@86
|
2227 else
|
cannam@86
|
2228 echo "$as_me:$LINENO: result: no" >&5
|
cannam@86
|
2229 echo "${ECHO_T}no" >&6
|
cannam@86
|
2230 fi
|
cannam@86
|
2231
|
cannam@86
|
2232 CC=$ac_ct_CC
|
cannam@86
|
2233 else
|
cannam@86
|
2234 CC="$ac_cv_prog_CC"
|
cannam@86
|
2235 fi
|
cannam@86
|
2236
|
cannam@86
|
2237 if test -z "$CC"; then
|
cannam@86
|
2238 if test -n "$ac_tool_prefix"; then
|
cannam@86
|
2239 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
cannam@86
|
2240 set dummy ${ac_tool_prefix}cc; ac_word=$2
|
cannam@86
|
2241 echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@86
|
2242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
cannam@86
|
2243 if test "${ac_cv_prog_CC+set}" = set; then
|
cannam@86
|
2244 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
2245 else
|
cannam@86
|
2246 if test -n "$CC"; then
|
cannam@86
|
2247 ac_cv_prog_CC="$CC" # Let the user override the test.
|
cannam@86
|
2248 else
|
cannam@86
|
2249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@86
|
2250 for as_dir in $PATH
|
cannam@86
|
2251 do
|
cannam@86
|
2252 IFS=$as_save_IFS
|
cannam@86
|
2253 test -z "$as_dir" && as_dir=.
|
cannam@86
|
2254 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@86
|
2255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@86
|
2256 ac_cv_prog_CC="${ac_tool_prefix}cc"
|
cannam@86
|
2257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@86
|
2258 break 2
|
cannam@86
|
2259 fi
|
cannam@86
|
2260 done
|
cannam@86
|
2261 done
|
cannam@86
|
2262
|
cannam@86
|
2263 fi
|
cannam@86
|
2264 fi
|
cannam@86
|
2265 CC=$ac_cv_prog_CC
|
cannam@86
|
2266 if test -n "$CC"; then
|
cannam@86
|
2267 echo "$as_me:$LINENO: result: $CC" >&5
|
cannam@86
|
2268 echo "${ECHO_T}$CC" >&6
|
cannam@86
|
2269 else
|
cannam@86
|
2270 echo "$as_me:$LINENO: result: no" >&5
|
cannam@86
|
2271 echo "${ECHO_T}no" >&6
|
cannam@86
|
2272 fi
|
cannam@86
|
2273
|
cannam@86
|
2274 fi
|
cannam@86
|
2275 if test -z "$ac_cv_prog_CC"; then
|
cannam@86
|
2276 ac_ct_CC=$CC
|
cannam@86
|
2277 # Extract the first word of "cc", so it can be a program name with args.
|
cannam@86
|
2278 set dummy cc; ac_word=$2
|
cannam@86
|
2279 echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@86
|
2280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
cannam@86
|
2281 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
cannam@86
|
2282 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
2283 else
|
cannam@86
|
2284 if test -n "$ac_ct_CC"; then
|
cannam@86
|
2285 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
cannam@86
|
2286 else
|
cannam@86
|
2287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@86
|
2288 for as_dir in $PATH
|
cannam@86
|
2289 do
|
cannam@86
|
2290 IFS=$as_save_IFS
|
cannam@86
|
2291 test -z "$as_dir" && as_dir=.
|
cannam@86
|
2292 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@86
|
2293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@86
|
2294 ac_cv_prog_ac_ct_CC="cc"
|
cannam@86
|
2295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@86
|
2296 break 2
|
cannam@86
|
2297 fi
|
cannam@86
|
2298 done
|
cannam@86
|
2299 done
|
cannam@86
|
2300
|
cannam@86
|
2301 fi
|
cannam@86
|
2302 fi
|
cannam@86
|
2303 ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
cannam@86
|
2304 if test -n "$ac_ct_CC"; then
|
cannam@86
|
2305 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
cannam@86
|
2306 echo "${ECHO_T}$ac_ct_CC" >&6
|
cannam@86
|
2307 else
|
cannam@86
|
2308 echo "$as_me:$LINENO: result: no" >&5
|
cannam@86
|
2309 echo "${ECHO_T}no" >&6
|
cannam@86
|
2310 fi
|
cannam@86
|
2311
|
cannam@86
|
2312 CC=$ac_ct_CC
|
cannam@86
|
2313 else
|
cannam@86
|
2314 CC="$ac_cv_prog_CC"
|
cannam@86
|
2315 fi
|
cannam@86
|
2316
|
cannam@86
|
2317 fi
|
cannam@86
|
2318 if test -z "$CC"; then
|
cannam@86
|
2319 # Extract the first word of "cc", so it can be a program name with args.
|
cannam@86
|
2320 set dummy cc; ac_word=$2
|
cannam@86
|
2321 echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@86
|
2322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
cannam@86
|
2323 if test "${ac_cv_prog_CC+set}" = set; then
|
cannam@86
|
2324 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
2325 else
|
cannam@86
|
2326 if test -n "$CC"; then
|
cannam@86
|
2327 ac_cv_prog_CC="$CC" # Let the user override the test.
|
cannam@86
|
2328 else
|
cannam@86
|
2329 ac_prog_rejected=no
|
cannam@86
|
2330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@86
|
2331 for as_dir in $PATH
|
cannam@86
|
2332 do
|
cannam@86
|
2333 IFS=$as_save_IFS
|
cannam@86
|
2334 test -z "$as_dir" && as_dir=.
|
cannam@86
|
2335 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@86
|
2336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@86
|
2337 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
cannam@86
|
2338 ac_prog_rejected=yes
|
cannam@86
|
2339 continue
|
cannam@86
|
2340 fi
|
cannam@86
|
2341 ac_cv_prog_CC="cc"
|
cannam@86
|
2342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@86
|
2343 break 2
|
cannam@86
|
2344 fi
|
cannam@86
|
2345 done
|
cannam@86
|
2346 done
|
cannam@86
|
2347
|
cannam@86
|
2348 if test $ac_prog_rejected = yes; then
|
cannam@86
|
2349 # We found a bogon in the path, so make sure we never use it.
|
cannam@86
|
2350 set dummy $ac_cv_prog_CC
|
cannam@86
|
2351 shift
|
cannam@86
|
2352 if test $# != 0; then
|
cannam@86
|
2353 # We chose a different compiler from the bogus one.
|
cannam@86
|
2354 # However, it has the same basename, so the bogon will be chosen
|
cannam@86
|
2355 # first if we set CC to just the basename; use the full file name.
|
cannam@86
|
2356 shift
|
cannam@86
|
2357 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
cannam@86
|
2358 fi
|
cannam@86
|
2359 fi
|
cannam@86
|
2360 fi
|
cannam@86
|
2361 fi
|
cannam@86
|
2362 CC=$ac_cv_prog_CC
|
cannam@86
|
2363 if test -n "$CC"; then
|
cannam@86
|
2364 echo "$as_me:$LINENO: result: $CC" >&5
|
cannam@86
|
2365 echo "${ECHO_T}$CC" >&6
|
cannam@86
|
2366 else
|
cannam@86
|
2367 echo "$as_me:$LINENO: result: no" >&5
|
cannam@86
|
2368 echo "${ECHO_T}no" >&6
|
cannam@86
|
2369 fi
|
cannam@86
|
2370
|
cannam@86
|
2371 fi
|
cannam@86
|
2372 if test -z "$CC"; then
|
cannam@86
|
2373 if test -n "$ac_tool_prefix"; then
|
cannam@86
|
2374 for ac_prog in cl
|
cannam@86
|
2375 do
|
cannam@86
|
2376 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
cannam@86
|
2377 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
cannam@86
|
2378 echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@86
|
2379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
cannam@86
|
2380 if test "${ac_cv_prog_CC+set}" = set; then
|
cannam@86
|
2381 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
2382 else
|
cannam@86
|
2383 if test -n "$CC"; then
|
cannam@86
|
2384 ac_cv_prog_CC="$CC" # Let the user override the test.
|
cannam@86
|
2385 else
|
cannam@86
|
2386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@86
|
2387 for as_dir in $PATH
|
cannam@86
|
2388 do
|
cannam@86
|
2389 IFS=$as_save_IFS
|
cannam@86
|
2390 test -z "$as_dir" && as_dir=.
|
cannam@86
|
2391 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@86
|
2392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@86
|
2393 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
cannam@86
|
2394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@86
|
2395 break 2
|
cannam@86
|
2396 fi
|
cannam@86
|
2397 done
|
cannam@86
|
2398 done
|
cannam@86
|
2399
|
cannam@86
|
2400 fi
|
cannam@86
|
2401 fi
|
cannam@86
|
2402 CC=$ac_cv_prog_CC
|
cannam@86
|
2403 if test -n "$CC"; then
|
cannam@86
|
2404 echo "$as_me:$LINENO: result: $CC" >&5
|
cannam@86
|
2405 echo "${ECHO_T}$CC" >&6
|
cannam@86
|
2406 else
|
cannam@86
|
2407 echo "$as_me:$LINENO: result: no" >&5
|
cannam@86
|
2408 echo "${ECHO_T}no" >&6
|
cannam@86
|
2409 fi
|
cannam@86
|
2410
|
cannam@86
|
2411 test -n "$CC" && break
|
cannam@86
|
2412 done
|
cannam@86
|
2413 fi
|
cannam@86
|
2414 if test -z "$CC"; then
|
cannam@86
|
2415 ac_ct_CC=$CC
|
cannam@86
|
2416 for ac_prog in cl
|
cannam@86
|
2417 do
|
cannam@86
|
2418 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
cannam@86
|
2419 set dummy $ac_prog; ac_word=$2
|
cannam@86
|
2420 echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@86
|
2421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
cannam@86
|
2422 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
cannam@86
|
2423 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
2424 else
|
cannam@86
|
2425 if test -n "$ac_ct_CC"; then
|
cannam@86
|
2426 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
cannam@86
|
2427 else
|
cannam@86
|
2428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@86
|
2429 for as_dir in $PATH
|
cannam@86
|
2430 do
|
cannam@86
|
2431 IFS=$as_save_IFS
|
cannam@86
|
2432 test -z "$as_dir" && as_dir=.
|
cannam@86
|
2433 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@86
|
2434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@86
|
2435 ac_cv_prog_ac_ct_CC="$ac_prog"
|
cannam@86
|
2436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@86
|
2437 break 2
|
cannam@86
|
2438 fi
|
cannam@86
|
2439 done
|
cannam@86
|
2440 done
|
cannam@86
|
2441
|
cannam@86
|
2442 fi
|
cannam@86
|
2443 fi
|
cannam@86
|
2444 ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
cannam@86
|
2445 if test -n "$ac_ct_CC"; then
|
cannam@86
|
2446 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
cannam@86
|
2447 echo "${ECHO_T}$ac_ct_CC" >&6
|
cannam@86
|
2448 else
|
cannam@86
|
2449 echo "$as_me:$LINENO: result: no" >&5
|
cannam@86
|
2450 echo "${ECHO_T}no" >&6
|
cannam@86
|
2451 fi
|
cannam@86
|
2452
|
cannam@86
|
2453 test -n "$ac_ct_CC" && break
|
cannam@86
|
2454 done
|
cannam@86
|
2455
|
cannam@86
|
2456 CC=$ac_ct_CC
|
cannam@86
|
2457 fi
|
cannam@86
|
2458
|
cannam@86
|
2459 fi
|
cannam@86
|
2460
|
cannam@86
|
2461
|
cannam@86
|
2462 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
cannam@86
|
2463 See \`config.log' for more details." >&5
|
cannam@86
|
2464 echo "$as_me: error: no acceptable C compiler found in \$PATH
|
cannam@86
|
2465 See \`config.log' for more details." >&2;}
|
cannam@86
|
2466 { (exit 1); exit 1; }; }
|
cannam@86
|
2467
|
cannam@86
|
2468 # Provide some information about the compiler.
|
cannam@86
|
2469 echo "$as_me:$LINENO:" \
|
cannam@86
|
2470 "checking for C compiler version" >&5
|
cannam@86
|
2471 ac_compiler=`set X $ac_compile; echo $2`
|
cannam@86
|
2472 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
cannam@86
|
2473 (eval $ac_compiler --version </dev/null >&5) 2>&5
|
cannam@86
|
2474 ac_status=$?
|
cannam@86
|
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
2476 (exit $ac_status); }
|
cannam@86
|
2477 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
cannam@86
|
2478 (eval $ac_compiler -v </dev/null >&5) 2>&5
|
cannam@86
|
2479 ac_status=$?
|
cannam@86
|
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
2481 (exit $ac_status); }
|
cannam@86
|
2482 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
cannam@86
|
2483 (eval $ac_compiler -V </dev/null >&5) 2>&5
|
cannam@86
|
2484 ac_status=$?
|
cannam@86
|
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
2486 (exit $ac_status); }
|
cannam@86
|
2487
|
cannam@86
|
2488 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
2489 /* confdefs.h. */
|
cannam@86
|
2490 _ACEOF
|
cannam@86
|
2491 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
2492 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
2493 /* end confdefs.h. */
|
cannam@86
|
2494
|
cannam@86
|
2495 int
|
cannam@86
|
2496 main ()
|
cannam@86
|
2497 {
|
cannam@86
|
2498
|
cannam@86
|
2499 ;
|
cannam@86
|
2500 return 0;
|
cannam@86
|
2501 }
|
cannam@86
|
2502 _ACEOF
|
cannam@86
|
2503 ac_clean_files_save=$ac_clean_files
|
cannam@86
|
2504 ac_clean_files="$ac_clean_files a.out a.exe b.out"
|
cannam@86
|
2505 # Try to create an executable without -o first, disregard a.out.
|
cannam@86
|
2506 # It will help us diagnose broken compilers, and finding out an intuition
|
cannam@86
|
2507 # of exeext.
|
cannam@86
|
2508 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
|
cannam@86
|
2509 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
|
cannam@86
|
2510 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
cannam@86
|
2511 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
|
cannam@86
|
2512 (eval $ac_link_default) 2>&5
|
cannam@86
|
2513 ac_status=$?
|
cannam@86
|
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
2515 (exit $ac_status); }; then
|
cannam@86
|
2516 # Find the output, starting from the most likely. This scheme is
|
cannam@86
|
2517 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
|
cannam@86
|
2518 # resort.
|
cannam@86
|
2519
|
cannam@86
|
2520 # Be careful to initialize this variable, since it used to be cached.
|
cannam@86
|
2521 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
|
cannam@86
|
2522 ac_cv_exeext=
|
cannam@86
|
2523 # b.out is created by i960 compilers.
|
cannam@86
|
2524 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
|
cannam@86
|
2525 do
|
cannam@86
|
2526 test -f "$ac_file" || continue
|
cannam@86
|
2527 case $ac_file in
|
cannam@86
|
2528 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
|
cannam@86
|
2529 ;;
|
cannam@86
|
2530 conftest.$ac_ext )
|
cannam@86
|
2531 # This is the source file.
|
cannam@86
|
2532 ;;
|
cannam@86
|
2533 [ab].out )
|
cannam@86
|
2534 # We found the default executable, but exeext='' is most
|
cannam@86
|
2535 # certainly right.
|
cannam@86
|
2536 break;;
|
cannam@86
|
2537 *.* )
|
cannam@86
|
2538 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
cannam@86
|
2539 # FIXME: I believe we export ac_cv_exeext for Libtool,
|
cannam@86
|
2540 # but it would be cool to find out if it's true. Does anybody
|
cannam@86
|
2541 # maintain Libtool? --akim.
|
cannam@86
|
2542 export ac_cv_exeext
|
cannam@86
|
2543 break;;
|
cannam@86
|
2544 * )
|
cannam@86
|
2545 break;;
|
cannam@86
|
2546 esac
|
cannam@86
|
2547 done
|
cannam@86
|
2548 else
|
cannam@86
|
2549 echo "$as_me: failed program was:" >&5
|
cannam@86
|
2550 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
2551
|
cannam@86
|
2552 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
|
cannam@86
|
2553 See \`config.log' for more details." >&5
|
cannam@86
|
2554 echo "$as_me: error: C compiler cannot create executables
|
cannam@86
|
2555 See \`config.log' for more details." >&2;}
|
cannam@86
|
2556 { (exit 77); exit 77; }; }
|
cannam@86
|
2557 fi
|
cannam@86
|
2558
|
cannam@86
|
2559 ac_exeext=$ac_cv_exeext
|
cannam@86
|
2560 echo "$as_me:$LINENO: result: $ac_file" >&5
|
cannam@86
|
2561 echo "${ECHO_T}$ac_file" >&6
|
cannam@86
|
2562
|
cannam@86
|
2563 # Check the compiler produces executables we can run. If not, either
|
cannam@86
|
2564 # the compiler is broken, or we cross compile.
|
cannam@86
|
2565 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
|
cannam@86
|
2566 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
|
cannam@86
|
2567 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
|
cannam@86
|
2568 # If not cross compiling, check that we can run a simple program.
|
cannam@86
|
2569 if test "$cross_compiling" != yes; then
|
cannam@86
|
2570 if { ac_try='./$ac_file'
|
cannam@86
|
2571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
2572 (eval $ac_try) 2>&5
|
cannam@86
|
2573 ac_status=$?
|
cannam@86
|
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
2575 (exit $ac_status); }; }; then
|
cannam@86
|
2576 cross_compiling=no
|
cannam@86
|
2577 else
|
cannam@86
|
2578 if test "$cross_compiling" = maybe; then
|
cannam@86
|
2579 cross_compiling=yes
|
cannam@86
|
2580 else
|
cannam@86
|
2581 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
|
cannam@86
|
2582 If you meant to cross compile, use \`--host'.
|
cannam@86
|
2583 See \`config.log' for more details." >&5
|
cannam@86
|
2584 echo "$as_me: error: cannot run C compiled programs.
|
cannam@86
|
2585 If you meant to cross compile, use \`--host'.
|
cannam@86
|
2586 See \`config.log' for more details." >&2;}
|
cannam@86
|
2587 { (exit 1); exit 1; }; }
|
cannam@86
|
2588 fi
|
cannam@86
|
2589 fi
|
cannam@86
|
2590 fi
|
cannam@86
|
2591 echo "$as_me:$LINENO: result: yes" >&5
|
cannam@86
|
2592 echo "${ECHO_T}yes" >&6
|
cannam@86
|
2593
|
cannam@86
|
2594 rm -f a.out a.exe conftest$ac_cv_exeext b.out
|
cannam@86
|
2595 ac_clean_files=$ac_clean_files_save
|
cannam@86
|
2596 # Check the compiler produces executables we can run. If not, either
|
cannam@86
|
2597 # the compiler is broken, or we cross compile.
|
cannam@86
|
2598 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
|
cannam@86
|
2599 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
|
cannam@86
|
2600 echo "$as_me:$LINENO: result: $cross_compiling" >&5
|
cannam@86
|
2601 echo "${ECHO_T}$cross_compiling" >&6
|
cannam@86
|
2602
|
cannam@86
|
2603 echo "$as_me:$LINENO: checking for suffix of executables" >&5
|
cannam@86
|
2604 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
|
cannam@86
|
2605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@86
|
2606 (eval $ac_link) 2>&5
|
cannam@86
|
2607 ac_status=$?
|
cannam@86
|
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
2609 (exit $ac_status); }; then
|
cannam@86
|
2610 # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
cannam@86
|
2611 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
cannam@86
|
2612 # work properly (i.e., refer to `conftest.exe'), while it won't with
|
cannam@86
|
2613 # `rm'.
|
cannam@86
|
2614 for ac_file in conftest.exe conftest conftest.*; do
|
cannam@86
|
2615 test -f "$ac_file" || continue
|
cannam@86
|
2616 case $ac_file in
|
cannam@86
|
2617 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
|
cannam@86
|
2618 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
cannam@86
|
2619 export ac_cv_exeext
|
cannam@86
|
2620 break;;
|
cannam@86
|
2621 * ) break;;
|
cannam@86
|
2622 esac
|
cannam@86
|
2623 done
|
cannam@86
|
2624 else
|
cannam@86
|
2625 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
|
cannam@86
|
2626 See \`config.log' for more details." >&5
|
cannam@86
|
2627 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
|
cannam@86
|
2628 See \`config.log' for more details." >&2;}
|
cannam@86
|
2629 { (exit 1); exit 1; }; }
|
cannam@86
|
2630 fi
|
cannam@86
|
2631
|
cannam@86
|
2632 rm -f conftest$ac_cv_exeext
|
cannam@86
|
2633 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
|
cannam@86
|
2634 echo "${ECHO_T}$ac_cv_exeext" >&6
|
cannam@86
|
2635
|
cannam@86
|
2636 rm -f conftest.$ac_ext
|
cannam@86
|
2637 EXEEXT=$ac_cv_exeext
|
cannam@86
|
2638 ac_exeext=$EXEEXT
|
cannam@86
|
2639 echo "$as_me:$LINENO: checking for suffix of object files" >&5
|
cannam@86
|
2640 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
|
cannam@86
|
2641 if test "${ac_cv_objext+set}" = set; then
|
cannam@86
|
2642 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
2643 else
|
cannam@86
|
2644 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
2645 /* confdefs.h. */
|
cannam@86
|
2646 _ACEOF
|
cannam@86
|
2647 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
2648 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
2649 /* end confdefs.h. */
|
cannam@86
|
2650
|
cannam@86
|
2651 int
|
cannam@86
|
2652 main ()
|
cannam@86
|
2653 {
|
cannam@86
|
2654
|
cannam@86
|
2655 ;
|
cannam@86
|
2656 return 0;
|
cannam@86
|
2657 }
|
cannam@86
|
2658 _ACEOF
|
cannam@86
|
2659 rm -f conftest.o conftest.obj
|
cannam@86
|
2660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
2661 (eval $ac_compile) 2>&5
|
cannam@86
|
2662 ac_status=$?
|
cannam@86
|
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
2664 (exit $ac_status); }; then
|
cannam@86
|
2665 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
|
cannam@86
|
2666 case $ac_file in
|
cannam@86
|
2667 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
|
cannam@86
|
2668 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
cannam@86
|
2669 break;;
|
cannam@86
|
2670 esac
|
cannam@86
|
2671 done
|
cannam@86
|
2672 else
|
cannam@86
|
2673 echo "$as_me: failed program was:" >&5
|
cannam@86
|
2674 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
2675
|
cannam@86
|
2676 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
|
cannam@86
|
2677 See \`config.log' for more details." >&5
|
cannam@86
|
2678 echo "$as_me: error: cannot compute suffix of object files: cannot compile
|
cannam@86
|
2679 See \`config.log' for more details." >&2;}
|
cannam@86
|
2680 { (exit 1); exit 1; }; }
|
cannam@86
|
2681 fi
|
cannam@86
|
2682
|
cannam@86
|
2683 rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
cannam@86
|
2684 fi
|
cannam@86
|
2685 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
|
cannam@86
|
2686 echo "${ECHO_T}$ac_cv_objext" >&6
|
cannam@86
|
2687 OBJEXT=$ac_cv_objext
|
cannam@86
|
2688 ac_objext=$OBJEXT
|
cannam@86
|
2689 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
cannam@86
|
2690 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
|
cannam@86
|
2691 if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
cannam@86
|
2692 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
2693 else
|
cannam@86
|
2694 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
2695 /* confdefs.h. */
|
cannam@86
|
2696 _ACEOF
|
cannam@86
|
2697 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
2698 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
2699 /* end confdefs.h. */
|
cannam@86
|
2700
|
cannam@86
|
2701 int
|
cannam@86
|
2702 main ()
|
cannam@86
|
2703 {
|
cannam@86
|
2704 #ifndef __GNUC__
|
cannam@86
|
2705 choke me
|
cannam@86
|
2706 #endif
|
cannam@86
|
2707
|
cannam@86
|
2708 ;
|
cannam@86
|
2709 return 0;
|
cannam@86
|
2710 }
|
cannam@86
|
2711 _ACEOF
|
cannam@86
|
2712 rm -f conftest.$ac_objext
|
cannam@86
|
2713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
2714 (eval $ac_compile) 2>conftest.er1
|
cannam@86
|
2715 ac_status=$?
|
cannam@86
|
2716 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
2717 rm -f conftest.er1
|
cannam@86
|
2718 cat conftest.err >&5
|
cannam@86
|
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
2720 (exit $ac_status); } &&
|
cannam@86
|
2721 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
2722 || test ! -s conftest.err'
|
cannam@86
|
2723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
2724 (eval $ac_try) 2>&5
|
cannam@86
|
2725 ac_status=$?
|
cannam@86
|
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
2727 (exit $ac_status); }; } &&
|
cannam@86
|
2728 { ac_try='test -s conftest.$ac_objext'
|
cannam@86
|
2729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
2730 (eval $ac_try) 2>&5
|
cannam@86
|
2731 ac_status=$?
|
cannam@86
|
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
2733 (exit $ac_status); }; }; then
|
cannam@86
|
2734 ac_compiler_gnu=yes
|
cannam@86
|
2735 else
|
cannam@86
|
2736 echo "$as_me: failed program was:" >&5
|
cannam@86
|
2737 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
2738
|
cannam@86
|
2739 ac_compiler_gnu=no
|
cannam@86
|
2740 fi
|
cannam@86
|
2741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@86
|
2742 ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
cannam@86
|
2743
|
cannam@86
|
2744 fi
|
cannam@86
|
2745 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
cannam@86
|
2746 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
|
cannam@86
|
2747 GCC=`test $ac_compiler_gnu = yes && echo yes`
|
cannam@86
|
2748 ac_test_CFLAGS=${CFLAGS+set}
|
cannam@86
|
2749 ac_save_CFLAGS=$CFLAGS
|
cannam@86
|
2750 CFLAGS="-g"
|
cannam@86
|
2751 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
cannam@86
|
2752 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
|
cannam@86
|
2753 if test "${ac_cv_prog_cc_g+set}" = set; then
|
cannam@86
|
2754 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
2755 else
|
cannam@86
|
2756 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
2757 /* confdefs.h. */
|
cannam@86
|
2758 _ACEOF
|
cannam@86
|
2759 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
2760 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
2761 /* end confdefs.h. */
|
cannam@86
|
2762
|
cannam@86
|
2763 int
|
cannam@86
|
2764 main ()
|
cannam@86
|
2765 {
|
cannam@86
|
2766
|
cannam@86
|
2767 ;
|
cannam@86
|
2768 return 0;
|
cannam@86
|
2769 }
|
cannam@86
|
2770 _ACEOF
|
cannam@86
|
2771 rm -f conftest.$ac_objext
|
cannam@86
|
2772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
2773 (eval $ac_compile) 2>conftest.er1
|
cannam@86
|
2774 ac_status=$?
|
cannam@86
|
2775 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
2776 rm -f conftest.er1
|
cannam@86
|
2777 cat conftest.err >&5
|
cannam@86
|
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
2779 (exit $ac_status); } &&
|
cannam@86
|
2780 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
2781 || test ! -s conftest.err'
|
cannam@86
|
2782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
2783 (eval $ac_try) 2>&5
|
cannam@86
|
2784 ac_status=$?
|
cannam@86
|
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
2786 (exit $ac_status); }; } &&
|
cannam@86
|
2787 { ac_try='test -s conftest.$ac_objext'
|
cannam@86
|
2788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
2789 (eval $ac_try) 2>&5
|
cannam@86
|
2790 ac_status=$?
|
cannam@86
|
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
2792 (exit $ac_status); }; }; then
|
cannam@86
|
2793 ac_cv_prog_cc_g=yes
|
cannam@86
|
2794 else
|
cannam@86
|
2795 echo "$as_me: failed program was:" >&5
|
cannam@86
|
2796 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
2797
|
cannam@86
|
2798 ac_cv_prog_cc_g=no
|
cannam@86
|
2799 fi
|
cannam@86
|
2800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@86
|
2801 fi
|
cannam@86
|
2802 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
cannam@86
|
2803 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
|
cannam@86
|
2804 if test "$ac_test_CFLAGS" = set; then
|
cannam@86
|
2805 CFLAGS=$ac_save_CFLAGS
|
cannam@86
|
2806 elif test $ac_cv_prog_cc_g = yes; then
|
cannam@86
|
2807 if test "$GCC" = yes; then
|
cannam@86
|
2808 CFLAGS="-g -O2"
|
cannam@86
|
2809 else
|
cannam@86
|
2810 CFLAGS="-g"
|
cannam@86
|
2811 fi
|
cannam@86
|
2812 else
|
cannam@86
|
2813 if test "$GCC" = yes; then
|
cannam@86
|
2814 CFLAGS="-O2"
|
cannam@86
|
2815 else
|
cannam@86
|
2816 CFLAGS=
|
cannam@86
|
2817 fi
|
cannam@86
|
2818 fi
|
cannam@86
|
2819 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
|
cannam@86
|
2820 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
|
cannam@86
|
2821 if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
cannam@86
|
2822 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
2823 else
|
cannam@86
|
2824 ac_cv_prog_cc_stdc=no
|
cannam@86
|
2825 ac_save_CC=$CC
|
cannam@86
|
2826 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
2827 /* confdefs.h. */
|
cannam@86
|
2828 _ACEOF
|
cannam@86
|
2829 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
2830 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
2831 /* end confdefs.h. */
|
cannam@86
|
2832 #include <stdarg.h>
|
cannam@86
|
2833 #include <stdio.h>
|
cannam@86
|
2834 #include <sys/types.h>
|
cannam@86
|
2835 #include <sys/stat.h>
|
cannam@86
|
2836 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
cannam@86
|
2837 struct buf { int x; };
|
cannam@86
|
2838 FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
cannam@86
|
2839 static char *e (p, i)
|
cannam@86
|
2840 char **p;
|
cannam@86
|
2841 int i;
|
cannam@86
|
2842 {
|
cannam@86
|
2843 return p[i];
|
cannam@86
|
2844 }
|
cannam@86
|
2845 static char *f (char * (*g) (char **, int), char **p, ...)
|
cannam@86
|
2846 {
|
cannam@86
|
2847 char *s;
|
cannam@86
|
2848 va_list v;
|
cannam@86
|
2849 va_start (v,p);
|
cannam@86
|
2850 s = g (p, va_arg (v,int));
|
cannam@86
|
2851 va_end (v);
|
cannam@86
|
2852 return s;
|
cannam@86
|
2853 }
|
cannam@86
|
2854
|
cannam@86
|
2855 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
cannam@86
|
2856 function prototypes and stuff, but not '\xHH' hex character constants.
|
cannam@86
|
2857 These don't provoke an error unfortunately, instead are silently treated
|
cannam@86
|
2858 as 'x'. The following induces an error, until -std1 is added to get
|
cannam@86
|
2859 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
cannam@86
|
2860 array size at least. It's necessary to write '\x00'==0 to get something
|
cannam@86
|
2861 that's true only with -std1. */
|
cannam@86
|
2862 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
cannam@86
|
2863
|
cannam@86
|
2864 int test (int i, double x);
|
cannam@86
|
2865 struct s1 {int (*f) (int a);};
|
cannam@86
|
2866 struct s2 {int (*f) (double a);};
|
cannam@86
|
2867 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
cannam@86
|
2868 int argc;
|
cannam@86
|
2869 char **argv;
|
cannam@86
|
2870 int
|
cannam@86
|
2871 main ()
|
cannam@86
|
2872 {
|
cannam@86
|
2873 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
cannam@86
|
2874 ;
|
cannam@86
|
2875 return 0;
|
cannam@86
|
2876 }
|
cannam@86
|
2877 _ACEOF
|
cannam@86
|
2878 # Don't try gcc -ansi; that turns off useful extensions and
|
cannam@86
|
2879 # breaks some systems' header files.
|
cannam@86
|
2880 # AIX -qlanglvl=ansi
|
cannam@86
|
2881 # Ultrix and OSF/1 -std1
|
cannam@86
|
2882 # HP-UX 10.20 and later -Ae
|
cannam@86
|
2883 # HP-UX older versions -Aa -D_HPUX_SOURCE
|
cannam@86
|
2884 # SVR4 -Xc -D__EXTENSIONS__
|
cannam@86
|
2885 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
cannam@86
|
2886 do
|
cannam@86
|
2887 CC="$ac_save_CC $ac_arg"
|
cannam@86
|
2888 rm -f conftest.$ac_objext
|
cannam@86
|
2889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
2890 (eval $ac_compile) 2>conftest.er1
|
cannam@86
|
2891 ac_status=$?
|
cannam@86
|
2892 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
2893 rm -f conftest.er1
|
cannam@86
|
2894 cat conftest.err >&5
|
cannam@86
|
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
2896 (exit $ac_status); } &&
|
cannam@86
|
2897 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
2898 || test ! -s conftest.err'
|
cannam@86
|
2899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
2900 (eval $ac_try) 2>&5
|
cannam@86
|
2901 ac_status=$?
|
cannam@86
|
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
2903 (exit $ac_status); }; } &&
|
cannam@86
|
2904 { ac_try='test -s conftest.$ac_objext'
|
cannam@86
|
2905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
2906 (eval $ac_try) 2>&5
|
cannam@86
|
2907 ac_status=$?
|
cannam@86
|
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
2909 (exit $ac_status); }; }; then
|
cannam@86
|
2910 ac_cv_prog_cc_stdc=$ac_arg
|
cannam@86
|
2911 break
|
cannam@86
|
2912 else
|
cannam@86
|
2913 echo "$as_me: failed program was:" >&5
|
cannam@86
|
2914 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
2915
|
cannam@86
|
2916 fi
|
cannam@86
|
2917 rm -f conftest.err conftest.$ac_objext
|
cannam@86
|
2918 done
|
cannam@86
|
2919 rm -f conftest.$ac_ext conftest.$ac_objext
|
cannam@86
|
2920 CC=$ac_save_CC
|
cannam@86
|
2921
|
cannam@86
|
2922 fi
|
cannam@86
|
2923
|
cannam@86
|
2924 case "x$ac_cv_prog_cc_stdc" in
|
cannam@86
|
2925 x|xno)
|
cannam@86
|
2926 echo "$as_me:$LINENO: result: none needed" >&5
|
cannam@86
|
2927 echo "${ECHO_T}none needed" >&6 ;;
|
cannam@86
|
2928 *)
|
cannam@86
|
2929 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
cannam@86
|
2930 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
cannam@86
|
2931 CC="$CC $ac_cv_prog_cc_stdc" ;;
|
cannam@86
|
2932 esac
|
cannam@86
|
2933
|
cannam@86
|
2934 # Some people use a C++ compiler to compile C. Since we use `exit',
|
cannam@86
|
2935 # in C++ we need to declare it. In case someone uses the same compiler
|
cannam@86
|
2936 # for both compiling C and C++ we need to have the C++ compiler decide
|
cannam@86
|
2937 # the declaration of exit, since it's the most demanding environment.
|
cannam@86
|
2938 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
2939 #ifndef __cplusplus
|
cannam@86
|
2940 choke me
|
cannam@86
|
2941 #endif
|
cannam@86
|
2942 _ACEOF
|
cannam@86
|
2943 rm -f conftest.$ac_objext
|
cannam@86
|
2944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
2945 (eval $ac_compile) 2>conftest.er1
|
cannam@86
|
2946 ac_status=$?
|
cannam@86
|
2947 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
2948 rm -f conftest.er1
|
cannam@86
|
2949 cat conftest.err >&5
|
cannam@86
|
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
2951 (exit $ac_status); } &&
|
cannam@86
|
2952 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
2953 || test ! -s conftest.err'
|
cannam@86
|
2954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
2955 (eval $ac_try) 2>&5
|
cannam@86
|
2956 ac_status=$?
|
cannam@86
|
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
2958 (exit $ac_status); }; } &&
|
cannam@86
|
2959 { ac_try='test -s conftest.$ac_objext'
|
cannam@86
|
2960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
2961 (eval $ac_try) 2>&5
|
cannam@86
|
2962 ac_status=$?
|
cannam@86
|
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
2964 (exit $ac_status); }; }; then
|
cannam@86
|
2965 for ac_declaration in \
|
cannam@86
|
2966 '' \
|
cannam@86
|
2967 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
cannam@86
|
2968 'extern "C" void std::exit (int); using std::exit;' \
|
cannam@86
|
2969 'extern "C" void exit (int) throw ();' \
|
cannam@86
|
2970 'extern "C" void exit (int);' \
|
cannam@86
|
2971 'void exit (int);'
|
cannam@86
|
2972 do
|
cannam@86
|
2973 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
2974 /* confdefs.h. */
|
cannam@86
|
2975 _ACEOF
|
cannam@86
|
2976 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
2977 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
2978 /* end confdefs.h. */
|
cannam@86
|
2979 $ac_declaration
|
cannam@86
|
2980 #include <stdlib.h>
|
cannam@86
|
2981 int
|
cannam@86
|
2982 main ()
|
cannam@86
|
2983 {
|
cannam@86
|
2984 exit (42);
|
cannam@86
|
2985 ;
|
cannam@86
|
2986 return 0;
|
cannam@86
|
2987 }
|
cannam@86
|
2988 _ACEOF
|
cannam@86
|
2989 rm -f conftest.$ac_objext
|
cannam@86
|
2990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
2991 (eval $ac_compile) 2>conftest.er1
|
cannam@86
|
2992 ac_status=$?
|
cannam@86
|
2993 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
2994 rm -f conftest.er1
|
cannam@86
|
2995 cat conftest.err >&5
|
cannam@86
|
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
2997 (exit $ac_status); } &&
|
cannam@86
|
2998 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
2999 || test ! -s conftest.err'
|
cannam@86
|
3000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
3001 (eval $ac_try) 2>&5
|
cannam@86
|
3002 ac_status=$?
|
cannam@86
|
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
3004 (exit $ac_status); }; } &&
|
cannam@86
|
3005 { ac_try='test -s conftest.$ac_objext'
|
cannam@86
|
3006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
3007 (eval $ac_try) 2>&5
|
cannam@86
|
3008 ac_status=$?
|
cannam@86
|
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
3010 (exit $ac_status); }; }; then
|
cannam@86
|
3011 :
|
cannam@86
|
3012 else
|
cannam@86
|
3013 echo "$as_me: failed program was:" >&5
|
cannam@86
|
3014 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
3015
|
cannam@86
|
3016 continue
|
cannam@86
|
3017 fi
|
cannam@86
|
3018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@86
|
3019 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
3020 /* confdefs.h. */
|
cannam@86
|
3021 _ACEOF
|
cannam@86
|
3022 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
3023 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
3024 /* end confdefs.h. */
|
cannam@86
|
3025 $ac_declaration
|
cannam@86
|
3026 int
|
cannam@86
|
3027 main ()
|
cannam@86
|
3028 {
|
cannam@86
|
3029 exit (42);
|
cannam@86
|
3030 ;
|
cannam@86
|
3031 return 0;
|
cannam@86
|
3032 }
|
cannam@86
|
3033 _ACEOF
|
cannam@86
|
3034 rm -f conftest.$ac_objext
|
cannam@86
|
3035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
3036 (eval $ac_compile) 2>conftest.er1
|
cannam@86
|
3037 ac_status=$?
|
cannam@86
|
3038 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
3039 rm -f conftest.er1
|
cannam@86
|
3040 cat conftest.err >&5
|
cannam@86
|
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
3042 (exit $ac_status); } &&
|
cannam@86
|
3043 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
3044 || test ! -s conftest.err'
|
cannam@86
|
3045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
3046 (eval $ac_try) 2>&5
|
cannam@86
|
3047 ac_status=$?
|
cannam@86
|
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
3049 (exit $ac_status); }; } &&
|
cannam@86
|
3050 { ac_try='test -s conftest.$ac_objext'
|
cannam@86
|
3051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
3052 (eval $ac_try) 2>&5
|
cannam@86
|
3053 ac_status=$?
|
cannam@86
|
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
3055 (exit $ac_status); }; }; then
|
cannam@86
|
3056 break
|
cannam@86
|
3057 else
|
cannam@86
|
3058 echo "$as_me: failed program was:" >&5
|
cannam@86
|
3059 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
3060
|
cannam@86
|
3061 fi
|
cannam@86
|
3062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@86
|
3063 done
|
cannam@86
|
3064 rm -f conftest*
|
cannam@86
|
3065 if test -n "$ac_declaration"; then
|
cannam@86
|
3066 echo '#ifdef __cplusplus' >>confdefs.h
|
cannam@86
|
3067 echo $ac_declaration >>confdefs.h
|
cannam@86
|
3068 echo '#endif' >>confdefs.h
|
cannam@86
|
3069 fi
|
cannam@86
|
3070
|
cannam@86
|
3071 else
|
cannam@86
|
3072 echo "$as_me: failed program was:" >&5
|
cannam@86
|
3073 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
3074
|
cannam@86
|
3075 fi
|
cannam@86
|
3076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@86
|
3077 ac_ext=c
|
cannam@86
|
3078 ac_cpp='$CPP $CPPFLAGS'
|
cannam@86
|
3079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
cannam@86
|
3080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
cannam@86
|
3081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
cannam@86
|
3082
|
cannam@86
|
3083 depcc="$CC" am_compiler_list=
|
cannam@86
|
3084
|
cannam@86
|
3085 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
|
cannam@86
|
3086 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
|
cannam@86
|
3087 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
|
cannam@86
|
3088 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
3089 else
|
cannam@86
|
3090 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
cannam@86
|
3091 # We make a subdir and do the tests there. Otherwise we can end up
|
cannam@86
|
3092 # making bogus files that we don't know about and never remove. For
|
cannam@86
|
3093 # instance it was reported that on HP-UX the gcc test will end up
|
cannam@86
|
3094 # making a dummy file named `D' -- because `-MD' means `put the output
|
cannam@86
|
3095 # in D'.
|
cannam@86
|
3096 mkdir conftest.dir
|
cannam@86
|
3097 # Copy depcomp to subdir because otherwise we won't find it if we're
|
cannam@86
|
3098 # using a relative directory.
|
cannam@86
|
3099 cp "$am_depcomp" conftest.dir
|
cannam@86
|
3100 cd conftest.dir
|
cannam@86
|
3101 # We will build objects and dependencies in a subdirectory because
|
cannam@86
|
3102 # it helps to detect inapplicable dependency modes. For instance
|
cannam@86
|
3103 # both Tru64's cc and ICC support -MD to output dependencies as a
|
cannam@86
|
3104 # side effect of compilation, but ICC will put the dependencies in
|
cannam@86
|
3105 # the current directory while Tru64 will put them in the object
|
cannam@86
|
3106 # directory.
|
cannam@86
|
3107 mkdir sub
|
cannam@86
|
3108
|
cannam@86
|
3109 am_cv_CC_dependencies_compiler_type=none
|
cannam@86
|
3110 if test "$am_compiler_list" = ""; then
|
cannam@86
|
3111 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
|
cannam@86
|
3112 fi
|
cannam@86
|
3113 for depmode in $am_compiler_list; do
|
cannam@86
|
3114 # Setup a source with many dependencies, because some compilers
|
cannam@86
|
3115 # like to wrap large dependency lists on column 80 (with \), and
|
cannam@86
|
3116 # we should not choose a depcomp mode which is confused by this.
|
cannam@86
|
3117 #
|
cannam@86
|
3118 # We need to recreate these files for each test, as the compiler may
|
cannam@86
|
3119 # overwrite some of them when testing with obscure command lines.
|
cannam@86
|
3120 # This happens at least with the AIX C compiler.
|
cannam@86
|
3121 : > sub/conftest.c
|
cannam@86
|
3122 for i in 1 2 3 4 5 6; do
|
cannam@86
|
3123 echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
cannam@86
|
3124 : > sub/conftst$i.h
|
cannam@86
|
3125 done
|
cannam@86
|
3126 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
cannam@86
|
3127
|
cannam@86
|
3128 case $depmode in
|
cannam@86
|
3129 nosideeffect)
|
cannam@86
|
3130 # after this tag, mechanisms are not by side-effect, so they'll
|
cannam@86
|
3131 # only be used when explicitly requested
|
cannam@86
|
3132 if test "x$enable_dependency_tracking" = xyes; then
|
cannam@86
|
3133 continue
|
cannam@86
|
3134 else
|
cannam@86
|
3135 break
|
cannam@86
|
3136 fi
|
cannam@86
|
3137 ;;
|
cannam@86
|
3138 none) break ;;
|
cannam@86
|
3139 esac
|
cannam@86
|
3140 # We check with `-c' and `-o' for the sake of the "dashmstdout"
|
cannam@86
|
3141 # mode. It turns out that the SunPro C++ compiler does not properly
|
cannam@86
|
3142 # handle `-M -o', and we need to detect this.
|
cannam@86
|
3143 if depmode=$depmode \
|
cannam@86
|
3144 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
|
cannam@86
|
3145 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
cannam@86
|
3146 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
|
cannam@86
|
3147 >/dev/null 2>conftest.err &&
|
cannam@86
|
3148 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
cannam@86
|
3149 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
|
cannam@86
|
3150 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
cannam@86
|
3151 # icc doesn't choke on unknown options, it will just issue warnings
|
cannam@86
|
3152 # (even with -Werror). So we grep stderr for any message
|
cannam@86
|
3153 # that says an option was ignored.
|
cannam@86
|
3154 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
|
cannam@86
|
3155 am_cv_CC_dependencies_compiler_type=$depmode
|
cannam@86
|
3156 break
|
cannam@86
|
3157 fi
|
cannam@86
|
3158 fi
|
cannam@86
|
3159 done
|
cannam@86
|
3160
|
cannam@86
|
3161 cd ..
|
cannam@86
|
3162 rm -rf conftest.dir
|
cannam@86
|
3163 else
|
cannam@86
|
3164 am_cv_CC_dependencies_compiler_type=none
|
cannam@86
|
3165 fi
|
cannam@86
|
3166
|
cannam@86
|
3167 fi
|
cannam@86
|
3168 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
|
cannam@86
|
3169 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
|
cannam@86
|
3170 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
|
cannam@86
|
3171
|
cannam@86
|
3172
|
cannam@86
|
3173
|
cannam@86
|
3174 if
|
cannam@86
|
3175 test "x$enable_dependency_tracking" != xno \
|
cannam@86
|
3176 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
|
cannam@86
|
3177 am__fastdepCC_TRUE=
|
cannam@86
|
3178 am__fastdepCC_FALSE='#'
|
cannam@86
|
3179 else
|
cannam@86
|
3180 am__fastdepCC_TRUE='#'
|
cannam@86
|
3181 am__fastdepCC_FALSE=
|
cannam@86
|
3182 fi
|
cannam@86
|
3183
|
cannam@86
|
3184
|
cannam@86
|
3185 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
|
cannam@86
|
3186 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
|
cannam@86
|
3187 if test "${lt_cv_path_SED+set}" = set; then
|
cannam@86
|
3188 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
3189 else
|
cannam@86
|
3190 # Loop through the user's path and test for sed and gsed.
|
cannam@86
|
3191 # Then use that list of sed's as ones to test for truncation.
|
cannam@86
|
3192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@86
|
3193 for as_dir in $PATH
|
cannam@86
|
3194 do
|
cannam@86
|
3195 IFS=$as_save_IFS
|
cannam@86
|
3196 test -z "$as_dir" && as_dir=.
|
cannam@86
|
3197 for lt_ac_prog in sed gsed; do
|
cannam@86
|
3198 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@86
|
3199 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
|
cannam@86
|
3200 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
|
cannam@86
|
3201 fi
|
cannam@86
|
3202 done
|
cannam@86
|
3203 done
|
cannam@86
|
3204 done
|
cannam@86
|
3205 lt_ac_max=0
|
cannam@86
|
3206 lt_ac_count=0
|
cannam@86
|
3207 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
|
cannam@86
|
3208 # along with /bin/sed that truncates output.
|
cannam@86
|
3209 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
|
cannam@86
|
3210 test ! -f $lt_ac_sed && continue
|
cannam@86
|
3211 cat /dev/null > conftest.in
|
cannam@86
|
3212 lt_ac_count=0
|
cannam@86
|
3213 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
|
cannam@86
|
3214 # Check for GNU sed and select it if it is found.
|
cannam@86
|
3215 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
|
cannam@86
|
3216 lt_cv_path_SED=$lt_ac_sed
|
cannam@86
|
3217 break
|
cannam@86
|
3218 fi
|
cannam@86
|
3219 while true; do
|
cannam@86
|
3220 cat conftest.in conftest.in >conftest.tmp
|
cannam@86
|
3221 mv conftest.tmp conftest.in
|
cannam@86
|
3222 cp conftest.in conftest.nl
|
cannam@86
|
3223 echo >>conftest.nl
|
cannam@86
|
3224 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
|
cannam@86
|
3225 cmp -s conftest.out conftest.nl || break
|
cannam@86
|
3226 # 10000 chars as input seems more than enough
|
cannam@86
|
3227 test $lt_ac_count -gt 10 && break
|
cannam@86
|
3228 lt_ac_count=`expr $lt_ac_count + 1`
|
cannam@86
|
3229 if test $lt_ac_count -gt $lt_ac_max; then
|
cannam@86
|
3230 lt_ac_max=$lt_ac_count
|
cannam@86
|
3231 lt_cv_path_SED=$lt_ac_sed
|
cannam@86
|
3232 fi
|
cannam@86
|
3233 done
|
cannam@86
|
3234 done
|
cannam@86
|
3235
|
cannam@86
|
3236 fi
|
cannam@86
|
3237
|
cannam@86
|
3238 SED=$lt_cv_path_SED
|
cannam@86
|
3239 echo "$as_me:$LINENO: result: $SED" >&5
|
cannam@86
|
3240 echo "${ECHO_T}$SED" >&6
|
cannam@86
|
3241
|
cannam@86
|
3242 echo "$as_me:$LINENO: checking for egrep" >&5
|
cannam@86
|
3243 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
|
cannam@86
|
3244 if test "${ac_cv_prog_egrep+set}" = set; then
|
cannam@86
|
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
3246 else
|
cannam@86
|
3247 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
|
cannam@86
|
3248 then ac_cv_prog_egrep='grep -E'
|
cannam@86
|
3249 else ac_cv_prog_egrep='egrep'
|
cannam@86
|
3250 fi
|
cannam@86
|
3251 fi
|
cannam@86
|
3252 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
|
cannam@86
|
3253 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
|
cannam@86
|
3254 EGREP=$ac_cv_prog_egrep
|
cannam@86
|
3255
|
cannam@86
|
3256
|
cannam@86
|
3257
|
cannam@86
|
3258 # Check whether --with-gnu-ld or --without-gnu-ld was given.
|
cannam@86
|
3259 if test "${with_gnu_ld+set}" = set; then
|
cannam@86
|
3260 withval="$with_gnu_ld"
|
cannam@86
|
3261 test "$withval" = no || with_gnu_ld=yes
|
cannam@86
|
3262 else
|
cannam@86
|
3263 with_gnu_ld=no
|
cannam@86
|
3264 fi;
|
cannam@86
|
3265 ac_prog=ld
|
cannam@86
|
3266 if test "$GCC" = yes; then
|
cannam@86
|
3267 # Check if gcc -print-prog-name=ld gives a path.
|
cannam@86
|
3268 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
|
cannam@86
|
3269 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
|
cannam@86
|
3270 case $host in
|
cannam@86
|
3271 *-*-mingw*)
|
cannam@86
|
3272 # gcc leaves a trailing carriage return which upsets mingw
|
cannam@86
|
3273 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
cannam@86
|
3274 *)
|
cannam@86
|
3275 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
cannam@86
|
3276 esac
|
cannam@86
|
3277 case $ac_prog in
|
cannam@86
|
3278 # Accept absolute paths.
|
cannam@86
|
3279 [\\/]* | ?:[\\/]*)
|
cannam@86
|
3280 re_direlt='/[^/][^/]*/\.\./'
|
cannam@86
|
3281 # Canonicalize the pathname of ld
|
cannam@86
|
3282 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
|
cannam@86
|
3283 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
|
cannam@86
|
3284 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
|
cannam@86
|
3285 done
|
cannam@86
|
3286 test -z "$LD" && LD="$ac_prog"
|
cannam@86
|
3287 ;;
|
cannam@86
|
3288 "")
|
cannam@86
|
3289 # If it fails, then pretend we aren't using GCC.
|
cannam@86
|
3290 ac_prog=ld
|
cannam@86
|
3291 ;;
|
cannam@86
|
3292 *)
|
cannam@86
|
3293 # If it is relative, then search for the first ld in PATH.
|
cannam@86
|
3294 with_gnu_ld=unknown
|
cannam@86
|
3295 ;;
|
cannam@86
|
3296 esac
|
cannam@86
|
3297 elif test "$with_gnu_ld" = yes; then
|
cannam@86
|
3298 echo "$as_me:$LINENO: checking for GNU ld" >&5
|
cannam@86
|
3299 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
|
cannam@86
|
3300 else
|
cannam@86
|
3301 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
|
cannam@86
|
3302 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
|
cannam@86
|
3303 fi
|
cannam@86
|
3304 if test "${lt_cv_path_LD+set}" = set; then
|
cannam@86
|
3305 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
3306 else
|
cannam@86
|
3307 if test -z "$LD"; then
|
cannam@86
|
3308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
cannam@86
|
3309 for ac_dir in $PATH; do
|
cannam@86
|
3310 IFS="$lt_save_ifs"
|
cannam@86
|
3311 test -z "$ac_dir" && ac_dir=.
|
cannam@86
|
3312 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
cannam@86
|
3313 lt_cv_path_LD="$ac_dir/$ac_prog"
|
cannam@86
|
3314 # Check to see if the program is GNU ld. I'd rather use --version,
|
cannam@86
|
3315 # but apparently some GNU ld's only accept -v.
|
cannam@86
|
3316 # Break only if it was the GNU/non-GNU ld that we prefer.
|
cannam@86
|
3317 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
|
cannam@86
|
3318 *GNU* | *'with BFD'*)
|
cannam@86
|
3319 test "$with_gnu_ld" != no && break
|
cannam@86
|
3320 ;;
|
cannam@86
|
3321 *)
|
cannam@86
|
3322 test "$with_gnu_ld" != yes && break
|
cannam@86
|
3323 ;;
|
cannam@86
|
3324 esac
|
cannam@86
|
3325 fi
|
cannam@86
|
3326 done
|
cannam@86
|
3327 IFS="$lt_save_ifs"
|
cannam@86
|
3328 else
|
cannam@86
|
3329 lt_cv_path_LD="$LD" # Let the user override the test with a path.
|
cannam@86
|
3330 fi
|
cannam@86
|
3331 fi
|
cannam@86
|
3332
|
cannam@86
|
3333 LD="$lt_cv_path_LD"
|
cannam@86
|
3334 if test -n "$LD"; then
|
cannam@86
|
3335 echo "$as_me:$LINENO: result: $LD" >&5
|
cannam@86
|
3336 echo "${ECHO_T}$LD" >&6
|
cannam@86
|
3337 else
|
cannam@86
|
3338 echo "$as_me:$LINENO: result: no" >&5
|
cannam@86
|
3339 echo "${ECHO_T}no" >&6
|
cannam@86
|
3340 fi
|
cannam@86
|
3341 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
|
cannam@86
|
3342 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
|
cannam@86
|
3343 { (exit 1); exit 1; }; }
|
cannam@86
|
3344 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
|
cannam@86
|
3345 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
|
cannam@86
|
3346 if test "${lt_cv_prog_gnu_ld+set}" = set; then
|
cannam@86
|
3347 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
3348 else
|
cannam@86
|
3349 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
|
cannam@86
|
3350 case `$LD -v 2>&1 </dev/null` in
|
cannam@86
|
3351 *GNU* | *'with BFD'*)
|
cannam@86
|
3352 lt_cv_prog_gnu_ld=yes
|
cannam@86
|
3353 ;;
|
cannam@86
|
3354 *)
|
cannam@86
|
3355 lt_cv_prog_gnu_ld=no
|
cannam@86
|
3356 ;;
|
cannam@86
|
3357 esac
|
cannam@86
|
3358 fi
|
cannam@86
|
3359 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
|
cannam@86
|
3360 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
|
cannam@86
|
3361 with_gnu_ld=$lt_cv_prog_gnu_ld
|
cannam@86
|
3362
|
cannam@86
|
3363
|
cannam@86
|
3364 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
|
cannam@86
|
3365 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
|
cannam@86
|
3366 if test "${lt_cv_ld_reload_flag+set}" = set; then
|
cannam@86
|
3367 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
3368 else
|
cannam@86
|
3369 lt_cv_ld_reload_flag='-r'
|
cannam@86
|
3370 fi
|
cannam@86
|
3371 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
|
cannam@86
|
3372 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
|
cannam@86
|
3373 reload_flag=$lt_cv_ld_reload_flag
|
cannam@86
|
3374 case $reload_flag in
|
cannam@86
|
3375 "" | " "*) ;;
|
cannam@86
|
3376 *) reload_flag=" $reload_flag" ;;
|
cannam@86
|
3377 esac
|
cannam@86
|
3378 reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
cannam@86
|
3379 case $host_os in
|
cannam@86
|
3380 darwin*)
|
cannam@86
|
3381 if test "$GCC" = yes; then
|
cannam@86
|
3382 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
|
cannam@86
|
3383 else
|
cannam@86
|
3384 reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
cannam@86
|
3385 fi
|
cannam@86
|
3386 ;;
|
cannam@86
|
3387 esac
|
cannam@86
|
3388
|
cannam@86
|
3389 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
|
cannam@86
|
3390 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
|
cannam@86
|
3391 if test "${lt_cv_path_NM+set}" = set; then
|
cannam@86
|
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
3393 else
|
cannam@86
|
3394 if test -n "$NM"; then
|
cannam@86
|
3395 # Let the user override the test.
|
cannam@86
|
3396 lt_cv_path_NM="$NM"
|
cannam@86
|
3397 else
|
cannam@86
|
3398 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
cannam@86
|
3399 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
|
cannam@86
|
3400 IFS="$lt_save_ifs"
|
cannam@86
|
3401 test -z "$ac_dir" && ac_dir=.
|
cannam@86
|
3402 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
|
cannam@86
|
3403 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
|
cannam@86
|
3404 # Check to see if the nm accepts a BSD-compat flag.
|
cannam@86
|
3405 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
|
cannam@86
|
3406 # nm: unknown option "B" ignored
|
cannam@86
|
3407 # Tru64's nm complains that /dev/null is an invalid object file
|
cannam@86
|
3408 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
|
cannam@86
|
3409 */dev/null* | *'Invalid file or object type'*)
|
cannam@86
|
3410 lt_cv_path_NM="$tmp_nm -B"
|
cannam@86
|
3411 break
|
cannam@86
|
3412 ;;
|
cannam@86
|
3413 *)
|
cannam@86
|
3414 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
|
cannam@86
|
3415 */dev/null*)
|
cannam@86
|
3416 lt_cv_path_NM="$tmp_nm -p"
|
cannam@86
|
3417 break
|
cannam@86
|
3418 ;;
|
cannam@86
|
3419 *)
|
cannam@86
|
3420 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
|
cannam@86
|
3421 continue # so that we can try to find one that supports BSD flags
|
cannam@86
|
3422 ;;
|
cannam@86
|
3423 esac
|
cannam@86
|
3424 esac
|
cannam@86
|
3425 fi
|
cannam@86
|
3426 done
|
cannam@86
|
3427 IFS="$lt_save_ifs"
|
cannam@86
|
3428 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
|
cannam@86
|
3429 fi
|
cannam@86
|
3430 fi
|
cannam@86
|
3431 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
|
cannam@86
|
3432 echo "${ECHO_T}$lt_cv_path_NM" >&6
|
cannam@86
|
3433 NM="$lt_cv_path_NM"
|
cannam@86
|
3434
|
cannam@86
|
3435 echo "$as_me:$LINENO: checking whether ln -s works" >&5
|
cannam@86
|
3436 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
|
cannam@86
|
3437 LN_S=$as_ln_s
|
cannam@86
|
3438 if test "$LN_S" = "ln -s"; then
|
cannam@86
|
3439 echo "$as_me:$LINENO: result: yes" >&5
|
cannam@86
|
3440 echo "${ECHO_T}yes" >&6
|
cannam@86
|
3441 else
|
cannam@86
|
3442 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
|
cannam@86
|
3443 echo "${ECHO_T}no, using $LN_S" >&6
|
cannam@86
|
3444 fi
|
cannam@86
|
3445
|
cannam@86
|
3446 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
|
cannam@86
|
3447 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
|
cannam@86
|
3448 if test "${lt_cv_deplibs_check_method+set}" = set; then
|
cannam@86
|
3449 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
3450 else
|
cannam@86
|
3451 lt_cv_file_magic_cmd='$MAGIC_CMD'
|
cannam@86
|
3452 lt_cv_file_magic_test_file=
|
cannam@86
|
3453 lt_cv_deplibs_check_method='unknown'
|
cannam@86
|
3454 # Need to set the preceding variable on all platforms that support
|
cannam@86
|
3455 # interlibrary dependencies.
|
cannam@86
|
3456 # 'none' -- dependencies not supported.
|
cannam@86
|
3457 # `unknown' -- same as none, but documents that we really don't know.
|
cannam@86
|
3458 # 'pass_all' -- all dependencies passed with no checks.
|
cannam@86
|
3459 # 'test_compile' -- check by making test program.
|
cannam@86
|
3460 # 'file_magic [[regex]]' -- check by looking for files in library path
|
cannam@86
|
3461 # which responds to the $file_magic_cmd with a given extended regex.
|
cannam@86
|
3462 # If you have `file' or equivalent on your system and you're not sure
|
cannam@86
|
3463 # whether `pass_all' will *always* work, you probably want this one.
|
cannam@86
|
3464
|
cannam@86
|
3465 case $host_os in
|
cannam@86
|
3466 aix4* | aix5*)
|
cannam@86
|
3467 lt_cv_deplibs_check_method=pass_all
|
cannam@86
|
3468 ;;
|
cannam@86
|
3469
|
cannam@86
|
3470 beos*)
|
cannam@86
|
3471 lt_cv_deplibs_check_method=pass_all
|
cannam@86
|
3472 ;;
|
cannam@86
|
3473
|
cannam@86
|
3474 bsdi[45]*)
|
cannam@86
|
3475 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
|
cannam@86
|
3476 lt_cv_file_magic_cmd='/usr/bin/file -L'
|
cannam@86
|
3477 lt_cv_file_magic_test_file=/shlib/libc.so
|
cannam@86
|
3478 ;;
|
cannam@86
|
3479
|
cannam@86
|
3480 cygwin*)
|
cannam@86
|
3481 # func_win32_libid is a shell function defined in ltmain.sh
|
cannam@86
|
3482 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
cannam@86
|
3483 lt_cv_file_magic_cmd='func_win32_libid'
|
cannam@86
|
3484 ;;
|
cannam@86
|
3485
|
cannam@86
|
3486 mingw* | pw32*)
|
cannam@86
|
3487 # Base MSYS/MinGW do not provide the 'file' command needed by
|
cannam@86
|
3488 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
|
cannam@86
|
3489 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
cannam@86
|
3490 lt_cv_file_magic_cmd='$OBJDUMP -f'
|
cannam@86
|
3491 ;;
|
cannam@86
|
3492
|
cannam@86
|
3493 darwin* | rhapsody*)
|
cannam@86
|
3494 lt_cv_deplibs_check_method=pass_all
|
cannam@86
|
3495 ;;
|
cannam@86
|
3496
|
cannam@86
|
3497 freebsd* | kfreebsd*-gnu | dragonfly*)
|
cannam@86
|
3498 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
cannam@86
|
3499 case $host_cpu in
|
cannam@86
|
3500 i*86 )
|
cannam@86
|
3501 # Not sure whether the presence of OpenBSD here was a mistake.
|
cannam@86
|
3502 # Let's accept both of them until this is cleared up.
|
cannam@86
|
3503 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
|
cannam@86
|
3504 lt_cv_file_magic_cmd=/usr/bin/file
|
cannam@86
|
3505 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
cannam@86
|
3506 ;;
|
cannam@86
|
3507 esac
|
cannam@86
|
3508 else
|
cannam@86
|
3509 lt_cv_deplibs_check_method=pass_all
|
cannam@86
|
3510 fi
|
cannam@86
|
3511 ;;
|
cannam@86
|
3512
|
cannam@86
|
3513 gnu*)
|
cannam@86
|
3514 lt_cv_deplibs_check_method=pass_all
|
cannam@86
|
3515 ;;
|
cannam@86
|
3516
|
cannam@86
|
3517 hpux10.20* | hpux11*)
|
cannam@86
|
3518 lt_cv_file_magic_cmd=/usr/bin/file
|
cannam@86
|
3519 case "$host_cpu" in
|
cannam@86
|
3520 ia64*)
|
cannam@86
|
3521 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
|
cannam@86
|
3522 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
|
cannam@86
|
3523 ;;
|
cannam@86
|
3524 hppa*64*)
|
cannam@86
|
3525 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@86
|
3526 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
|
cannam@86
|
3527 ;;
|
cannam@86
|
3528 *)
|
cannam@86
|
3529 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
|
cannam@86
|
3530 lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
cannam@86
|
3531 ;;
|
cannam@86
|
3532 esac
|
cannam@86
|
3533 ;;
|
cannam@86
|
3534
|
cannam@86
|
3535 irix5* | irix6* | nonstopux*)
|
cannam@86
|
3536 case $LD in
|
cannam@86
|
3537 *-32|*"-32 ") libmagic=32-bit;;
|
cannam@86
|
3538 *-n32|*"-n32 ") libmagic=N32;;
|
cannam@86
|
3539 *-64|*"-64 ") libmagic=64-bit;;
|
cannam@86
|
3540 *) libmagic=never-match;;
|
cannam@86
|
3541 esac
|
cannam@86
|
3542 lt_cv_deplibs_check_method=pass_all
|
cannam@86
|
3543 ;;
|
cannam@86
|
3544
|
cannam@86
|
3545 # This must be Linux ELF.
|
cannam@86
|
3546 linux*)
|
cannam@86
|
3547 lt_cv_deplibs_check_method=pass_all
|
cannam@86
|
3548 ;;
|
cannam@86
|
3549
|
cannam@86
|
3550 netbsd*)
|
cannam@86
|
3551 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
cannam@86
|
3552 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
|
cannam@86
|
3553 else
|
cannam@86
|
3554 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
|
cannam@86
|
3555 fi
|
cannam@86
|
3556 ;;
|
cannam@86
|
3557
|
cannam@86
|
3558 newos6*)
|
cannam@86
|
3559 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
|
cannam@86
|
3560 lt_cv_file_magic_cmd=/usr/bin/file
|
cannam@86
|
3561 lt_cv_file_magic_test_file=/usr/lib/libnls.so
|
cannam@86
|
3562 ;;
|
cannam@86
|
3563
|
cannam@86
|
3564 nto-qnx*)
|
cannam@86
|
3565 lt_cv_deplibs_check_method=unknown
|
cannam@86
|
3566 ;;
|
cannam@86
|
3567
|
cannam@86
|
3568 openbsd*)
|
cannam@86
|
3569 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
cannam@86
|
3570 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
|
cannam@86
|
3571 else
|
cannam@86
|
3572 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
|
cannam@86
|
3573 fi
|
cannam@86
|
3574 ;;
|
cannam@86
|
3575
|
cannam@86
|
3576 osf3* | osf4* | osf5*)
|
cannam@86
|
3577 lt_cv_deplibs_check_method=pass_all
|
cannam@86
|
3578 ;;
|
cannam@86
|
3579
|
cannam@86
|
3580 sco3.2v5*)
|
cannam@86
|
3581 lt_cv_deplibs_check_method=pass_all
|
cannam@86
|
3582 ;;
|
cannam@86
|
3583
|
cannam@86
|
3584 solaris*)
|
cannam@86
|
3585 lt_cv_deplibs_check_method=pass_all
|
cannam@86
|
3586 ;;
|
cannam@86
|
3587
|
cannam@86
|
3588 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
cannam@86
|
3589 case $host_vendor in
|
cannam@86
|
3590 motorola)
|
cannam@86
|
3591 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@86
|
3592 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
cannam@86
|
3593 ;;
|
cannam@86
|
3594 ncr)
|
cannam@86
|
3595 lt_cv_deplibs_check_method=pass_all
|
cannam@86
|
3596 ;;
|
cannam@86
|
3597 sequent)
|
cannam@86
|
3598 lt_cv_file_magic_cmd='/bin/file'
|
cannam@86
|
3599 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
|
cannam@86
|
3600 ;;
|
cannam@86
|
3601 sni)
|
cannam@86
|
3602 lt_cv_file_magic_cmd='/bin/file'
|
cannam@86
|
3603 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
|
cannam@86
|
3604 lt_cv_file_magic_test_file=/lib/libc.so
|
cannam@86
|
3605 ;;
|
cannam@86
|
3606 siemens)
|
cannam@86
|
3607 lt_cv_deplibs_check_method=pass_all
|
cannam@86
|
3608 ;;
|
cannam@86
|
3609 esac
|
cannam@86
|
3610 ;;
|
cannam@86
|
3611
|
cannam@86
|
3612 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
|
cannam@86
|
3613 lt_cv_deplibs_check_method=pass_all
|
cannam@86
|
3614 ;;
|
cannam@86
|
3615 esac
|
cannam@86
|
3616
|
cannam@86
|
3617 fi
|
cannam@86
|
3618 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
|
cannam@86
|
3619 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
|
cannam@86
|
3620 file_magic_cmd=$lt_cv_file_magic_cmd
|
cannam@86
|
3621 deplibs_check_method=$lt_cv_deplibs_check_method
|
cannam@86
|
3622 test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
cannam@86
|
3623
|
cannam@86
|
3624
|
cannam@86
|
3625
|
cannam@86
|
3626
|
cannam@86
|
3627 # If no C compiler was specified, use CC.
|
cannam@86
|
3628 LTCC=${LTCC-"$CC"}
|
cannam@86
|
3629
|
cannam@86
|
3630 # Allow CC to be a program name with arguments.
|
cannam@86
|
3631 compiler=$CC
|
cannam@86
|
3632
|
cannam@86
|
3633
|
cannam@86
|
3634 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
|
cannam@86
|
3635 if test "${enable_libtool_lock+set}" = set; then
|
cannam@86
|
3636 enableval="$enable_libtool_lock"
|
cannam@86
|
3637
|
cannam@86
|
3638 fi;
|
cannam@86
|
3639 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
|
cannam@86
|
3640
|
cannam@86
|
3641 # Some flags need to be propagated to the compiler or linker for good
|
cannam@86
|
3642 # libtool support.
|
cannam@86
|
3643 case $host in
|
cannam@86
|
3644 ia64-*-hpux*)
|
cannam@86
|
3645 # Find out which ABI we are using.
|
cannam@86
|
3646 echo 'int i;' > conftest.$ac_ext
|
cannam@86
|
3647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
3648 (eval $ac_compile) 2>&5
|
cannam@86
|
3649 ac_status=$?
|
cannam@86
|
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
3651 (exit $ac_status); }; then
|
cannam@86
|
3652 case `/usr/bin/file conftest.$ac_objext` in
|
cannam@86
|
3653 *ELF-32*)
|
cannam@86
|
3654 HPUX_IA64_MODE="32"
|
cannam@86
|
3655 ;;
|
cannam@86
|
3656 *ELF-64*)
|
cannam@86
|
3657 HPUX_IA64_MODE="64"
|
cannam@86
|
3658 ;;
|
cannam@86
|
3659 esac
|
cannam@86
|
3660 fi
|
cannam@86
|
3661 rm -rf conftest*
|
cannam@86
|
3662 ;;
|
cannam@86
|
3663 *-*-irix6*)
|
cannam@86
|
3664 # Find out which ABI we are using.
|
cannam@86
|
3665 echo '#line 3665 "configure"' > conftest.$ac_ext
|
cannam@86
|
3666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
3667 (eval $ac_compile) 2>&5
|
cannam@86
|
3668 ac_status=$?
|
cannam@86
|
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
3670 (exit $ac_status); }; then
|
cannam@86
|
3671 if test "$lt_cv_prog_gnu_ld" = yes; then
|
cannam@86
|
3672 case `/usr/bin/file conftest.$ac_objext` in
|
cannam@86
|
3673 *32-bit*)
|
cannam@86
|
3674 LD="${LD-ld} -melf32bsmip"
|
cannam@86
|
3675 ;;
|
cannam@86
|
3676 *N32*)
|
cannam@86
|
3677 LD="${LD-ld} -melf32bmipn32"
|
cannam@86
|
3678 ;;
|
cannam@86
|
3679 *64-bit*)
|
cannam@86
|
3680 LD="${LD-ld} -melf64bmip"
|
cannam@86
|
3681 ;;
|
cannam@86
|
3682 esac
|
cannam@86
|
3683 else
|
cannam@86
|
3684 case `/usr/bin/file conftest.$ac_objext` in
|
cannam@86
|
3685 *32-bit*)
|
cannam@86
|
3686 LD="${LD-ld} -32"
|
cannam@86
|
3687 ;;
|
cannam@86
|
3688 *N32*)
|
cannam@86
|
3689 LD="${LD-ld} -n32"
|
cannam@86
|
3690 ;;
|
cannam@86
|
3691 *64-bit*)
|
cannam@86
|
3692 LD="${LD-ld} -64"
|
cannam@86
|
3693 ;;
|
cannam@86
|
3694 esac
|
cannam@86
|
3695 fi
|
cannam@86
|
3696 fi
|
cannam@86
|
3697 rm -rf conftest*
|
cannam@86
|
3698 ;;
|
cannam@86
|
3699
|
cannam@86
|
3700 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
|
cannam@86
|
3701 # Find out which ABI we are using.
|
cannam@86
|
3702 echo 'int i;' > conftest.$ac_ext
|
cannam@86
|
3703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
3704 (eval $ac_compile) 2>&5
|
cannam@86
|
3705 ac_status=$?
|
cannam@86
|
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
3707 (exit $ac_status); }; then
|
cannam@86
|
3708 case "`/usr/bin/file conftest.o`" in
|
cannam@86
|
3709 *32-bit*)
|
cannam@86
|
3710 case $host in
|
cannam@86
|
3711 x86_64-*linux*)
|
cannam@86
|
3712 LD="${LD-ld} -m elf_i386"
|
cannam@86
|
3713 ;;
|
cannam@86
|
3714 ppc64-*linux*|powerpc64-*linux*)
|
cannam@86
|
3715 LD="${LD-ld} -m elf32ppclinux"
|
cannam@86
|
3716 ;;
|
cannam@86
|
3717 s390x-*linux*)
|
cannam@86
|
3718 LD="${LD-ld} -m elf_s390"
|
cannam@86
|
3719 ;;
|
cannam@86
|
3720 sparc64-*linux*)
|
cannam@86
|
3721 LD="${LD-ld} -m elf32_sparc"
|
cannam@86
|
3722 ;;
|
cannam@86
|
3723 esac
|
cannam@86
|
3724 ;;
|
cannam@86
|
3725 *64-bit*)
|
cannam@86
|
3726 case $host in
|
cannam@86
|
3727 x86_64-*linux*)
|
cannam@86
|
3728 LD="${LD-ld} -m elf_x86_64"
|
cannam@86
|
3729 ;;
|
cannam@86
|
3730 ppc*-*linux*|powerpc*-*linux*)
|
cannam@86
|
3731 LD="${LD-ld} -m elf64ppc"
|
cannam@86
|
3732 ;;
|
cannam@86
|
3733 s390*-*linux*)
|
cannam@86
|
3734 LD="${LD-ld} -m elf64_s390"
|
cannam@86
|
3735 ;;
|
cannam@86
|
3736 sparc*-*linux*)
|
cannam@86
|
3737 LD="${LD-ld} -m elf64_sparc"
|
cannam@86
|
3738 ;;
|
cannam@86
|
3739 esac
|
cannam@86
|
3740 ;;
|
cannam@86
|
3741 esac
|
cannam@86
|
3742 fi
|
cannam@86
|
3743 rm -rf conftest*
|
cannam@86
|
3744 ;;
|
cannam@86
|
3745
|
cannam@86
|
3746 *-*-sco3.2v5*)
|
cannam@86
|
3747 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
cannam@86
|
3748 SAVE_CFLAGS="$CFLAGS"
|
cannam@86
|
3749 CFLAGS="$CFLAGS -belf"
|
cannam@86
|
3750 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
|
cannam@86
|
3751 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
|
cannam@86
|
3752 if test "${lt_cv_cc_needs_belf+set}" = set; then
|
cannam@86
|
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
3754 else
|
cannam@86
|
3755 ac_ext=c
|
cannam@86
|
3756 ac_cpp='$CPP $CPPFLAGS'
|
cannam@86
|
3757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
cannam@86
|
3758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
cannam@86
|
3759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
cannam@86
|
3760
|
cannam@86
|
3761 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
3762 /* confdefs.h. */
|
cannam@86
|
3763 _ACEOF
|
cannam@86
|
3764 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
3765 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
3766 /* end confdefs.h. */
|
cannam@86
|
3767
|
cannam@86
|
3768 int
|
cannam@86
|
3769 main ()
|
cannam@86
|
3770 {
|
cannam@86
|
3771
|
cannam@86
|
3772 ;
|
cannam@86
|
3773 return 0;
|
cannam@86
|
3774 }
|
cannam@86
|
3775 _ACEOF
|
cannam@86
|
3776 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@86
|
3777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@86
|
3778 (eval $ac_link) 2>conftest.er1
|
cannam@86
|
3779 ac_status=$?
|
cannam@86
|
3780 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
3781 rm -f conftest.er1
|
cannam@86
|
3782 cat conftest.err >&5
|
cannam@86
|
3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
3784 (exit $ac_status); } &&
|
cannam@86
|
3785 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
3786 || test ! -s conftest.err'
|
cannam@86
|
3787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
3788 (eval $ac_try) 2>&5
|
cannam@86
|
3789 ac_status=$?
|
cannam@86
|
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
3791 (exit $ac_status); }; } &&
|
cannam@86
|
3792 { ac_try='test -s conftest$ac_exeext'
|
cannam@86
|
3793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
3794 (eval $ac_try) 2>&5
|
cannam@86
|
3795 ac_status=$?
|
cannam@86
|
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
3797 (exit $ac_status); }; }; then
|
cannam@86
|
3798 lt_cv_cc_needs_belf=yes
|
cannam@86
|
3799 else
|
cannam@86
|
3800 echo "$as_me: failed program was:" >&5
|
cannam@86
|
3801 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
3802
|
cannam@86
|
3803 lt_cv_cc_needs_belf=no
|
cannam@86
|
3804 fi
|
cannam@86
|
3805 rm -f conftest.err conftest.$ac_objext \
|
cannam@86
|
3806 conftest$ac_exeext conftest.$ac_ext
|
cannam@86
|
3807 ac_ext=c
|
cannam@86
|
3808 ac_cpp='$CPP $CPPFLAGS'
|
cannam@86
|
3809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
cannam@86
|
3810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
cannam@86
|
3811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
cannam@86
|
3812
|
cannam@86
|
3813 fi
|
cannam@86
|
3814 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
|
cannam@86
|
3815 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
|
cannam@86
|
3816 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
cannam@86
|
3817 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
cannam@86
|
3818 CFLAGS="$SAVE_CFLAGS"
|
cannam@86
|
3819 fi
|
cannam@86
|
3820 ;;
|
cannam@86
|
3821
|
cannam@86
|
3822 esac
|
cannam@86
|
3823
|
cannam@86
|
3824 need_locks="$enable_libtool_lock"
|
cannam@86
|
3825
|
cannam@86
|
3826
|
cannam@86
|
3827 ac_ext=c
|
cannam@86
|
3828 ac_cpp='$CPP $CPPFLAGS'
|
cannam@86
|
3829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
cannam@86
|
3830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
cannam@86
|
3831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
cannam@86
|
3832 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
cannam@86
|
3833 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
|
cannam@86
|
3834 # On Suns, sometimes $CPP names a directory.
|
cannam@86
|
3835 if test -n "$CPP" && test -d "$CPP"; then
|
cannam@86
|
3836 CPP=
|
cannam@86
|
3837 fi
|
cannam@86
|
3838 if test -z "$CPP"; then
|
cannam@86
|
3839 if test "${ac_cv_prog_CPP+set}" = set; then
|
cannam@86
|
3840 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
3841 else
|
cannam@86
|
3842 # Double quotes because CPP needs to be expanded
|
cannam@86
|
3843 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
cannam@86
|
3844 do
|
cannam@86
|
3845 ac_preproc_ok=false
|
cannam@86
|
3846 for ac_c_preproc_warn_flag in '' yes
|
cannam@86
|
3847 do
|
cannam@86
|
3848 # Use a header file that comes with gcc, so configuring glibc
|
cannam@86
|
3849 # with a fresh cross-compiler works.
|
cannam@86
|
3850 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
cannam@86
|
3851 # <limits.h> exists even on freestanding compilers.
|
cannam@86
|
3852 # On the NeXT, cc -E runs the code through the compiler's parser,
|
cannam@86
|
3853 # not just through cpp. "Syntax error" is here to catch this case.
|
cannam@86
|
3854 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
3855 /* confdefs.h. */
|
cannam@86
|
3856 _ACEOF
|
cannam@86
|
3857 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
3858 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
3859 /* end confdefs.h. */
|
cannam@86
|
3860 #ifdef __STDC__
|
cannam@86
|
3861 # include <limits.h>
|
cannam@86
|
3862 #else
|
cannam@86
|
3863 # include <assert.h>
|
cannam@86
|
3864 #endif
|
cannam@86
|
3865 Syntax error
|
cannam@86
|
3866 _ACEOF
|
cannam@86
|
3867 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
cannam@86
|
3868 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
cannam@86
|
3869 ac_status=$?
|
cannam@86
|
3870 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
3871 rm -f conftest.er1
|
cannam@86
|
3872 cat conftest.err >&5
|
cannam@86
|
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
3874 (exit $ac_status); } >/dev/null; then
|
cannam@86
|
3875 if test -s conftest.err; then
|
cannam@86
|
3876 ac_cpp_err=$ac_c_preproc_warn_flag
|
cannam@86
|
3877 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
cannam@86
|
3878 else
|
cannam@86
|
3879 ac_cpp_err=
|
cannam@86
|
3880 fi
|
cannam@86
|
3881 else
|
cannam@86
|
3882 ac_cpp_err=yes
|
cannam@86
|
3883 fi
|
cannam@86
|
3884 if test -z "$ac_cpp_err"; then
|
cannam@86
|
3885 :
|
cannam@86
|
3886 else
|
cannam@86
|
3887 echo "$as_me: failed program was:" >&5
|
cannam@86
|
3888 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
3889
|
cannam@86
|
3890 # Broken: fails on valid input.
|
cannam@86
|
3891 continue
|
cannam@86
|
3892 fi
|
cannam@86
|
3893 rm -f conftest.err conftest.$ac_ext
|
cannam@86
|
3894
|
cannam@86
|
3895 # OK, works on sane cases. Now check whether non-existent headers
|
cannam@86
|
3896 # can be detected and how.
|
cannam@86
|
3897 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
3898 /* confdefs.h. */
|
cannam@86
|
3899 _ACEOF
|
cannam@86
|
3900 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
3901 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
3902 /* end confdefs.h. */
|
cannam@86
|
3903 #include <ac_nonexistent.h>
|
cannam@86
|
3904 _ACEOF
|
cannam@86
|
3905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
cannam@86
|
3906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
cannam@86
|
3907 ac_status=$?
|
cannam@86
|
3908 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
3909 rm -f conftest.er1
|
cannam@86
|
3910 cat conftest.err >&5
|
cannam@86
|
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
3912 (exit $ac_status); } >/dev/null; then
|
cannam@86
|
3913 if test -s conftest.err; then
|
cannam@86
|
3914 ac_cpp_err=$ac_c_preproc_warn_flag
|
cannam@86
|
3915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
cannam@86
|
3916 else
|
cannam@86
|
3917 ac_cpp_err=
|
cannam@86
|
3918 fi
|
cannam@86
|
3919 else
|
cannam@86
|
3920 ac_cpp_err=yes
|
cannam@86
|
3921 fi
|
cannam@86
|
3922 if test -z "$ac_cpp_err"; then
|
cannam@86
|
3923 # Broken: success on invalid input.
|
cannam@86
|
3924 continue
|
cannam@86
|
3925 else
|
cannam@86
|
3926 echo "$as_me: failed program was:" >&5
|
cannam@86
|
3927 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
3928
|
cannam@86
|
3929 # Passes both tests.
|
cannam@86
|
3930 ac_preproc_ok=:
|
cannam@86
|
3931 break
|
cannam@86
|
3932 fi
|
cannam@86
|
3933 rm -f conftest.err conftest.$ac_ext
|
cannam@86
|
3934
|
cannam@86
|
3935 done
|
cannam@86
|
3936 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
cannam@86
|
3937 rm -f conftest.err conftest.$ac_ext
|
cannam@86
|
3938 if $ac_preproc_ok; then
|
cannam@86
|
3939 break
|
cannam@86
|
3940 fi
|
cannam@86
|
3941
|
cannam@86
|
3942 done
|
cannam@86
|
3943 ac_cv_prog_CPP=$CPP
|
cannam@86
|
3944
|
cannam@86
|
3945 fi
|
cannam@86
|
3946 CPP=$ac_cv_prog_CPP
|
cannam@86
|
3947 else
|
cannam@86
|
3948 ac_cv_prog_CPP=$CPP
|
cannam@86
|
3949 fi
|
cannam@86
|
3950 echo "$as_me:$LINENO: result: $CPP" >&5
|
cannam@86
|
3951 echo "${ECHO_T}$CPP" >&6
|
cannam@86
|
3952 ac_preproc_ok=false
|
cannam@86
|
3953 for ac_c_preproc_warn_flag in '' yes
|
cannam@86
|
3954 do
|
cannam@86
|
3955 # Use a header file that comes with gcc, so configuring glibc
|
cannam@86
|
3956 # with a fresh cross-compiler works.
|
cannam@86
|
3957 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
cannam@86
|
3958 # <limits.h> exists even on freestanding compilers.
|
cannam@86
|
3959 # On the NeXT, cc -E runs the code through the compiler's parser,
|
cannam@86
|
3960 # not just through cpp. "Syntax error" is here to catch this case.
|
cannam@86
|
3961 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
3962 /* confdefs.h. */
|
cannam@86
|
3963 _ACEOF
|
cannam@86
|
3964 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
3965 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
3966 /* end confdefs.h. */
|
cannam@86
|
3967 #ifdef __STDC__
|
cannam@86
|
3968 # include <limits.h>
|
cannam@86
|
3969 #else
|
cannam@86
|
3970 # include <assert.h>
|
cannam@86
|
3971 #endif
|
cannam@86
|
3972 Syntax error
|
cannam@86
|
3973 _ACEOF
|
cannam@86
|
3974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
cannam@86
|
3975 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
cannam@86
|
3976 ac_status=$?
|
cannam@86
|
3977 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
3978 rm -f conftest.er1
|
cannam@86
|
3979 cat conftest.err >&5
|
cannam@86
|
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
3981 (exit $ac_status); } >/dev/null; then
|
cannam@86
|
3982 if test -s conftest.err; then
|
cannam@86
|
3983 ac_cpp_err=$ac_c_preproc_warn_flag
|
cannam@86
|
3984 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
cannam@86
|
3985 else
|
cannam@86
|
3986 ac_cpp_err=
|
cannam@86
|
3987 fi
|
cannam@86
|
3988 else
|
cannam@86
|
3989 ac_cpp_err=yes
|
cannam@86
|
3990 fi
|
cannam@86
|
3991 if test -z "$ac_cpp_err"; then
|
cannam@86
|
3992 :
|
cannam@86
|
3993 else
|
cannam@86
|
3994 echo "$as_me: failed program was:" >&5
|
cannam@86
|
3995 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
3996
|
cannam@86
|
3997 # Broken: fails on valid input.
|
cannam@86
|
3998 continue
|
cannam@86
|
3999 fi
|
cannam@86
|
4000 rm -f conftest.err conftest.$ac_ext
|
cannam@86
|
4001
|
cannam@86
|
4002 # OK, works on sane cases. Now check whether non-existent headers
|
cannam@86
|
4003 # can be detected and how.
|
cannam@86
|
4004 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
4005 /* confdefs.h. */
|
cannam@86
|
4006 _ACEOF
|
cannam@86
|
4007 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
4008 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
4009 /* end confdefs.h. */
|
cannam@86
|
4010 #include <ac_nonexistent.h>
|
cannam@86
|
4011 _ACEOF
|
cannam@86
|
4012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
cannam@86
|
4013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
cannam@86
|
4014 ac_status=$?
|
cannam@86
|
4015 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
4016 rm -f conftest.er1
|
cannam@86
|
4017 cat conftest.err >&5
|
cannam@86
|
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
4019 (exit $ac_status); } >/dev/null; then
|
cannam@86
|
4020 if test -s conftest.err; then
|
cannam@86
|
4021 ac_cpp_err=$ac_c_preproc_warn_flag
|
cannam@86
|
4022 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
cannam@86
|
4023 else
|
cannam@86
|
4024 ac_cpp_err=
|
cannam@86
|
4025 fi
|
cannam@86
|
4026 else
|
cannam@86
|
4027 ac_cpp_err=yes
|
cannam@86
|
4028 fi
|
cannam@86
|
4029 if test -z "$ac_cpp_err"; then
|
cannam@86
|
4030 # Broken: success on invalid input.
|
cannam@86
|
4031 continue
|
cannam@86
|
4032 else
|
cannam@86
|
4033 echo "$as_me: failed program was:" >&5
|
cannam@86
|
4034 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
4035
|
cannam@86
|
4036 # Passes both tests.
|
cannam@86
|
4037 ac_preproc_ok=:
|
cannam@86
|
4038 break
|
cannam@86
|
4039 fi
|
cannam@86
|
4040 rm -f conftest.err conftest.$ac_ext
|
cannam@86
|
4041
|
cannam@86
|
4042 done
|
cannam@86
|
4043 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
cannam@86
|
4044 rm -f conftest.err conftest.$ac_ext
|
cannam@86
|
4045 if $ac_preproc_ok; then
|
cannam@86
|
4046 :
|
cannam@86
|
4047 else
|
cannam@86
|
4048 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
cannam@86
|
4049 See \`config.log' for more details." >&5
|
cannam@86
|
4050 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
|
cannam@86
|
4051 See \`config.log' for more details." >&2;}
|
cannam@86
|
4052 { (exit 1); exit 1; }; }
|
cannam@86
|
4053 fi
|
cannam@86
|
4054
|
cannam@86
|
4055 ac_ext=c
|
cannam@86
|
4056 ac_cpp='$CPP $CPPFLAGS'
|
cannam@86
|
4057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
cannam@86
|
4058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
cannam@86
|
4059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
cannam@86
|
4060
|
cannam@86
|
4061
|
cannam@86
|
4062 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
cannam@86
|
4063 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
cannam@86
|
4064 if test "${ac_cv_header_stdc+set}" = set; then
|
cannam@86
|
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
4066 else
|
cannam@86
|
4067 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
4068 /* confdefs.h. */
|
cannam@86
|
4069 _ACEOF
|
cannam@86
|
4070 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
4071 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
4072 /* end confdefs.h. */
|
cannam@86
|
4073 #include <stdlib.h>
|
cannam@86
|
4074 #include <stdarg.h>
|
cannam@86
|
4075 #include <string.h>
|
cannam@86
|
4076 #include <float.h>
|
cannam@86
|
4077
|
cannam@86
|
4078 int
|
cannam@86
|
4079 main ()
|
cannam@86
|
4080 {
|
cannam@86
|
4081
|
cannam@86
|
4082 ;
|
cannam@86
|
4083 return 0;
|
cannam@86
|
4084 }
|
cannam@86
|
4085 _ACEOF
|
cannam@86
|
4086 rm -f conftest.$ac_objext
|
cannam@86
|
4087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
4088 (eval $ac_compile) 2>conftest.er1
|
cannam@86
|
4089 ac_status=$?
|
cannam@86
|
4090 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
4091 rm -f conftest.er1
|
cannam@86
|
4092 cat conftest.err >&5
|
cannam@86
|
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
4094 (exit $ac_status); } &&
|
cannam@86
|
4095 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
4096 || test ! -s conftest.err'
|
cannam@86
|
4097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
4098 (eval $ac_try) 2>&5
|
cannam@86
|
4099 ac_status=$?
|
cannam@86
|
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
4101 (exit $ac_status); }; } &&
|
cannam@86
|
4102 { ac_try='test -s conftest.$ac_objext'
|
cannam@86
|
4103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
4104 (eval $ac_try) 2>&5
|
cannam@86
|
4105 ac_status=$?
|
cannam@86
|
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
4107 (exit $ac_status); }; }; then
|
cannam@86
|
4108 ac_cv_header_stdc=yes
|
cannam@86
|
4109 else
|
cannam@86
|
4110 echo "$as_me: failed program was:" >&5
|
cannam@86
|
4111 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
4112
|
cannam@86
|
4113 ac_cv_header_stdc=no
|
cannam@86
|
4114 fi
|
cannam@86
|
4115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@86
|
4116
|
cannam@86
|
4117 if test $ac_cv_header_stdc = yes; then
|
cannam@86
|
4118 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
cannam@86
|
4119 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
4120 /* confdefs.h. */
|
cannam@86
|
4121 _ACEOF
|
cannam@86
|
4122 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
4123 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
4124 /* end confdefs.h. */
|
cannam@86
|
4125 #include <string.h>
|
cannam@86
|
4126
|
cannam@86
|
4127 _ACEOF
|
cannam@86
|
4128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
cannam@86
|
4129 $EGREP "memchr" >/dev/null 2>&1; then
|
cannam@86
|
4130 :
|
cannam@86
|
4131 else
|
cannam@86
|
4132 ac_cv_header_stdc=no
|
cannam@86
|
4133 fi
|
cannam@86
|
4134 rm -f conftest*
|
cannam@86
|
4135
|
cannam@86
|
4136 fi
|
cannam@86
|
4137
|
cannam@86
|
4138 if test $ac_cv_header_stdc = yes; then
|
cannam@86
|
4139 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
cannam@86
|
4140 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
4141 /* confdefs.h. */
|
cannam@86
|
4142 _ACEOF
|
cannam@86
|
4143 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
4144 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
4145 /* end confdefs.h. */
|
cannam@86
|
4146 #include <stdlib.h>
|
cannam@86
|
4147
|
cannam@86
|
4148 _ACEOF
|
cannam@86
|
4149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
cannam@86
|
4150 $EGREP "free" >/dev/null 2>&1; then
|
cannam@86
|
4151 :
|
cannam@86
|
4152 else
|
cannam@86
|
4153 ac_cv_header_stdc=no
|
cannam@86
|
4154 fi
|
cannam@86
|
4155 rm -f conftest*
|
cannam@86
|
4156
|
cannam@86
|
4157 fi
|
cannam@86
|
4158
|
cannam@86
|
4159 if test $ac_cv_header_stdc = yes; then
|
cannam@86
|
4160 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
cannam@86
|
4161 if test "$cross_compiling" = yes; then
|
cannam@86
|
4162 :
|
cannam@86
|
4163 else
|
cannam@86
|
4164 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
4165 /* confdefs.h. */
|
cannam@86
|
4166 _ACEOF
|
cannam@86
|
4167 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
4168 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
4169 /* end confdefs.h. */
|
cannam@86
|
4170 #include <ctype.h>
|
cannam@86
|
4171 #if ((' ' & 0x0FF) == 0x020)
|
cannam@86
|
4172 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
cannam@86
|
4173 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
cannam@86
|
4174 #else
|
cannam@86
|
4175 # define ISLOWER(c) \
|
cannam@86
|
4176 (('a' <= (c) && (c) <= 'i') \
|
cannam@86
|
4177 || ('j' <= (c) && (c) <= 'r') \
|
cannam@86
|
4178 || ('s' <= (c) && (c) <= 'z'))
|
cannam@86
|
4179 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
cannam@86
|
4180 #endif
|
cannam@86
|
4181
|
cannam@86
|
4182 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
cannam@86
|
4183 int
|
cannam@86
|
4184 main ()
|
cannam@86
|
4185 {
|
cannam@86
|
4186 int i;
|
cannam@86
|
4187 for (i = 0; i < 256; i++)
|
cannam@86
|
4188 if (XOR (islower (i), ISLOWER (i))
|
cannam@86
|
4189 || toupper (i) != TOUPPER (i))
|
cannam@86
|
4190 exit(2);
|
cannam@86
|
4191 exit (0);
|
cannam@86
|
4192 }
|
cannam@86
|
4193 _ACEOF
|
cannam@86
|
4194 rm -f conftest$ac_exeext
|
cannam@86
|
4195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@86
|
4196 (eval $ac_link) 2>&5
|
cannam@86
|
4197 ac_status=$?
|
cannam@86
|
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
4199 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
cannam@86
|
4200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
4201 (eval $ac_try) 2>&5
|
cannam@86
|
4202 ac_status=$?
|
cannam@86
|
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
4204 (exit $ac_status); }; }; then
|
cannam@86
|
4205 :
|
cannam@86
|
4206 else
|
cannam@86
|
4207 echo "$as_me: program exited with status $ac_status" >&5
|
cannam@86
|
4208 echo "$as_me: failed program was:" >&5
|
cannam@86
|
4209 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
4210
|
cannam@86
|
4211 ( exit $ac_status )
|
cannam@86
|
4212 ac_cv_header_stdc=no
|
cannam@86
|
4213 fi
|
cannam@86
|
4214 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
cannam@86
|
4215 fi
|
cannam@86
|
4216 fi
|
cannam@86
|
4217 fi
|
cannam@86
|
4218 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
cannam@86
|
4219 echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
cannam@86
|
4220 if test $ac_cv_header_stdc = yes; then
|
cannam@86
|
4221
|
cannam@86
|
4222 cat >>confdefs.h <<\_ACEOF
|
cannam@86
|
4223 #define STDC_HEADERS 1
|
cannam@86
|
4224 _ACEOF
|
cannam@86
|
4225
|
cannam@86
|
4226 fi
|
cannam@86
|
4227
|
cannam@86
|
4228 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
cannam@86
|
4229
|
cannam@86
|
4230
|
cannam@86
|
4231
|
cannam@86
|
4232
|
cannam@86
|
4233
|
cannam@86
|
4234
|
cannam@86
|
4235
|
cannam@86
|
4236
|
cannam@86
|
4237
|
cannam@86
|
4238 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
cannam@86
|
4239 inttypes.h stdint.h unistd.h
|
cannam@86
|
4240 do
|
cannam@86
|
4241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
cannam@86
|
4242 echo "$as_me:$LINENO: checking for $ac_header" >&5
|
cannam@86
|
4243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
cannam@86
|
4244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
cannam@86
|
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
4246 else
|
cannam@86
|
4247 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
4248 /* confdefs.h. */
|
cannam@86
|
4249 _ACEOF
|
cannam@86
|
4250 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
4251 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
4252 /* end confdefs.h. */
|
cannam@86
|
4253 $ac_includes_default
|
cannam@86
|
4254
|
cannam@86
|
4255 #include <$ac_header>
|
cannam@86
|
4256 _ACEOF
|
cannam@86
|
4257 rm -f conftest.$ac_objext
|
cannam@86
|
4258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
4259 (eval $ac_compile) 2>conftest.er1
|
cannam@86
|
4260 ac_status=$?
|
cannam@86
|
4261 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
4262 rm -f conftest.er1
|
cannam@86
|
4263 cat conftest.err >&5
|
cannam@86
|
4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
4265 (exit $ac_status); } &&
|
cannam@86
|
4266 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
4267 || test ! -s conftest.err'
|
cannam@86
|
4268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
4269 (eval $ac_try) 2>&5
|
cannam@86
|
4270 ac_status=$?
|
cannam@86
|
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
4272 (exit $ac_status); }; } &&
|
cannam@86
|
4273 { ac_try='test -s conftest.$ac_objext'
|
cannam@86
|
4274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
4275 (eval $ac_try) 2>&5
|
cannam@86
|
4276 ac_status=$?
|
cannam@86
|
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
4278 (exit $ac_status); }; }; then
|
cannam@86
|
4279 eval "$as_ac_Header=yes"
|
cannam@86
|
4280 else
|
cannam@86
|
4281 echo "$as_me: failed program was:" >&5
|
cannam@86
|
4282 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
4283
|
cannam@86
|
4284 eval "$as_ac_Header=no"
|
cannam@86
|
4285 fi
|
cannam@86
|
4286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@86
|
4287 fi
|
cannam@86
|
4288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
cannam@86
|
4289 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
cannam@86
|
4290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
cannam@86
|
4291 cat >>confdefs.h <<_ACEOF
|
cannam@86
|
4292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
cannam@86
|
4293 _ACEOF
|
cannam@86
|
4294
|
cannam@86
|
4295 fi
|
cannam@86
|
4296
|
cannam@86
|
4297 done
|
cannam@86
|
4298
|
cannam@86
|
4299
|
cannam@86
|
4300
|
cannam@86
|
4301 for ac_header in dlfcn.h
|
cannam@86
|
4302 do
|
cannam@86
|
4303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
cannam@86
|
4304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
cannam@86
|
4305 echo "$as_me:$LINENO: checking for $ac_header" >&5
|
cannam@86
|
4306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
cannam@86
|
4307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
cannam@86
|
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
4309 fi
|
cannam@86
|
4310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
cannam@86
|
4311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
cannam@86
|
4312 else
|
cannam@86
|
4313 # Is the header compilable?
|
cannam@86
|
4314 echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
cannam@86
|
4315 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
|
cannam@86
|
4316 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
4317 /* confdefs.h. */
|
cannam@86
|
4318 _ACEOF
|
cannam@86
|
4319 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
4320 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
4321 /* end confdefs.h. */
|
cannam@86
|
4322 $ac_includes_default
|
cannam@86
|
4323 #include <$ac_header>
|
cannam@86
|
4324 _ACEOF
|
cannam@86
|
4325 rm -f conftest.$ac_objext
|
cannam@86
|
4326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
4327 (eval $ac_compile) 2>conftest.er1
|
cannam@86
|
4328 ac_status=$?
|
cannam@86
|
4329 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
4330 rm -f conftest.er1
|
cannam@86
|
4331 cat conftest.err >&5
|
cannam@86
|
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
4333 (exit $ac_status); } &&
|
cannam@86
|
4334 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
4335 || test ! -s conftest.err'
|
cannam@86
|
4336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
4337 (eval $ac_try) 2>&5
|
cannam@86
|
4338 ac_status=$?
|
cannam@86
|
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
4340 (exit $ac_status); }; } &&
|
cannam@86
|
4341 { ac_try='test -s conftest.$ac_objext'
|
cannam@86
|
4342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
4343 (eval $ac_try) 2>&5
|
cannam@86
|
4344 ac_status=$?
|
cannam@86
|
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
4346 (exit $ac_status); }; }; then
|
cannam@86
|
4347 ac_header_compiler=yes
|
cannam@86
|
4348 else
|
cannam@86
|
4349 echo "$as_me: failed program was:" >&5
|
cannam@86
|
4350 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
4351
|
cannam@86
|
4352 ac_header_compiler=no
|
cannam@86
|
4353 fi
|
cannam@86
|
4354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@86
|
4355 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
cannam@86
|
4356 echo "${ECHO_T}$ac_header_compiler" >&6
|
cannam@86
|
4357
|
cannam@86
|
4358 # Is the header present?
|
cannam@86
|
4359 echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
cannam@86
|
4360 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
|
cannam@86
|
4361 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
4362 /* confdefs.h. */
|
cannam@86
|
4363 _ACEOF
|
cannam@86
|
4364 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
4365 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
4366 /* end confdefs.h. */
|
cannam@86
|
4367 #include <$ac_header>
|
cannam@86
|
4368 _ACEOF
|
cannam@86
|
4369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
cannam@86
|
4370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
cannam@86
|
4371 ac_status=$?
|
cannam@86
|
4372 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
4373 rm -f conftest.er1
|
cannam@86
|
4374 cat conftest.err >&5
|
cannam@86
|
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
4376 (exit $ac_status); } >/dev/null; then
|
cannam@86
|
4377 if test -s conftest.err; then
|
cannam@86
|
4378 ac_cpp_err=$ac_c_preproc_warn_flag
|
cannam@86
|
4379 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
cannam@86
|
4380 else
|
cannam@86
|
4381 ac_cpp_err=
|
cannam@86
|
4382 fi
|
cannam@86
|
4383 else
|
cannam@86
|
4384 ac_cpp_err=yes
|
cannam@86
|
4385 fi
|
cannam@86
|
4386 if test -z "$ac_cpp_err"; then
|
cannam@86
|
4387 ac_header_preproc=yes
|
cannam@86
|
4388 else
|
cannam@86
|
4389 echo "$as_me: failed program was:" >&5
|
cannam@86
|
4390 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
4391
|
cannam@86
|
4392 ac_header_preproc=no
|
cannam@86
|
4393 fi
|
cannam@86
|
4394 rm -f conftest.err conftest.$ac_ext
|
cannam@86
|
4395 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
cannam@86
|
4396 echo "${ECHO_T}$ac_header_preproc" >&6
|
cannam@86
|
4397
|
cannam@86
|
4398 # So? What about this header?
|
cannam@86
|
4399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
cannam@86
|
4400 yes:no: )
|
cannam@86
|
4401 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
cannam@86
|
4402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
cannam@86
|
4403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
cannam@86
|
4404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
cannam@86
|
4405 ac_header_preproc=yes
|
cannam@86
|
4406 ;;
|
cannam@86
|
4407 no:yes:* )
|
cannam@86
|
4408 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
cannam@86
|
4409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
cannam@86
|
4410 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
cannam@86
|
4411 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
cannam@86
|
4412 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
cannam@86
|
4413 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
cannam@86
|
4414 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
cannam@86
|
4415 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
cannam@86
|
4416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
cannam@86
|
4417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
cannam@86
|
4418 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
cannam@86
|
4419 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
cannam@86
|
4420 (
|
cannam@86
|
4421 cat <<\_ASBOX
|
cannam@86
|
4422 ## ------------------------------------------ ##
|
cannam@86
|
4423 ## Report this to the AC_PACKAGE_NAME lists. ##
|
cannam@86
|
4424 ## ------------------------------------------ ##
|
cannam@86
|
4425 _ASBOX
|
cannam@86
|
4426 ) |
|
cannam@86
|
4427 sed "s/^/$as_me: WARNING: /" >&2
|
cannam@86
|
4428 ;;
|
cannam@86
|
4429 esac
|
cannam@86
|
4430 echo "$as_me:$LINENO: checking for $ac_header" >&5
|
cannam@86
|
4431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
cannam@86
|
4432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
cannam@86
|
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
4434 else
|
cannam@86
|
4435 eval "$as_ac_Header=\$ac_header_preproc"
|
cannam@86
|
4436 fi
|
cannam@86
|
4437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
cannam@86
|
4438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
cannam@86
|
4439
|
cannam@86
|
4440 fi
|
cannam@86
|
4441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
cannam@86
|
4442 cat >>confdefs.h <<_ACEOF
|
cannam@86
|
4443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
cannam@86
|
4444 _ACEOF
|
cannam@86
|
4445
|
cannam@86
|
4446 fi
|
cannam@86
|
4447
|
cannam@86
|
4448 done
|
cannam@86
|
4449
|
cannam@86
|
4450 ac_ext=cc
|
cannam@86
|
4451 ac_cpp='$CXXCPP $CPPFLAGS'
|
cannam@86
|
4452 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
cannam@86
|
4453 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
cannam@86
|
4454 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
cannam@86
|
4455 if test -n "$ac_tool_prefix"; then
|
cannam@86
|
4456 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
cannam@86
|
4457 do
|
cannam@86
|
4458 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
cannam@86
|
4459 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
cannam@86
|
4460 echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@86
|
4461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
cannam@86
|
4462 if test "${ac_cv_prog_CXX+set}" = set; then
|
cannam@86
|
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
4464 else
|
cannam@86
|
4465 if test -n "$CXX"; then
|
cannam@86
|
4466 ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
cannam@86
|
4467 else
|
cannam@86
|
4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@86
|
4469 for as_dir in $PATH
|
cannam@86
|
4470 do
|
cannam@86
|
4471 IFS=$as_save_IFS
|
cannam@86
|
4472 test -z "$as_dir" && as_dir=.
|
cannam@86
|
4473 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@86
|
4474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@86
|
4475 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
cannam@86
|
4476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@86
|
4477 break 2
|
cannam@86
|
4478 fi
|
cannam@86
|
4479 done
|
cannam@86
|
4480 done
|
cannam@86
|
4481
|
cannam@86
|
4482 fi
|
cannam@86
|
4483 fi
|
cannam@86
|
4484 CXX=$ac_cv_prog_CXX
|
cannam@86
|
4485 if test -n "$CXX"; then
|
cannam@86
|
4486 echo "$as_me:$LINENO: result: $CXX" >&5
|
cannam@86
|
4487 echo "${ECHO_T}$CXX" >&6
|
cannam@86
|
4488 else
|
cannam@86
|
4489 echo "$as_me:$LINENO: result: no" >&5
|
cannam@86
|
4490 echo "${ECHO_T}no" >&6
|
cannam@86
|
4491 fi
|
cannam@86
|
4492
|
cannam@86
|
4493 test -n "$CXX" && break
|
cannam@86
|
4494 done
|
cannam@86
|
4495 fi
|
cannam@86
|
4496 if test -z "$CXX"; then
|
cannam@86
|
4497 ac_ct_CXX=$CXX
|
cannam@86
|
4498 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
cannam@86
|
4499 do
|
cannam@86
|
4500 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
cannam@86
|
4501 set dummy $ac_prog; ac_word=$2
|
cannam@86
|
4502 echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@86
|
4503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
cannam@86
|
4504 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
|
cannam@86
|
4505 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
4506 else
|
cannam@86
|
4507 if test -n "$ac_ct_CXX"; then
|
cannam@86
|
4508 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
cannam@86
|
4509 else
|
cannam@86
|
4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@86
|
4511 for as_dir in $PATH
|
cannam@86
|
4512 do
|
cannam@86
|
4513 IFS=$as_save_IFS
|
cannam@86
|
4514 test -z "$as_dir" && as_dir=.
|
cannam@86
|
4515 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@86
|
4516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@86
|
4517 ac_cv_prog_ac_ct_CXX="$ac_prog"
|
cannam@86
|
4518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@86
|
4519 break 2
|
cannam@86
|
4520 fi
|
cannam@86
|
4521 done
|
cannam@86
|
4522 done
|
cannam@86
|
4523
|
cannam@86
|
4524 fi
|
cannam@86
|
4525 fi
|
cannam@86
|
4526 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
cannam@86
|
4527 if test -n "$ac_ct_CXX"; then
|
cannam@86
|
4528 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
|
cannam@86
|
4529 echo "${ECHO_T}$ac_ct_CXX" >&6
|
cannam@86
|
4530 else
|
cannam@86
|
4531 echo "$as_me:$LINENO: result: no" >&5
|
cannam@86
|
4532 echo "${ECHO_T}no" >&6
|
cannam@86
|
4533 fi
|
cannam@86
|
4534
|
cannam@86
|
4535 test -n "$ac_ct_CXX" && break
|
cannam@86
|
4536 done
|
cannam@86
|
4537 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
|
cannam@86
|
4538
|
cannam@86
|
4539 CXX=$ac_ct_CXX
|
cannam@86
|
4540 fi
|
cannam@86
|
4541
|
cannam@86
|
4542
|
cannam@86
|
4543 # Provide some information about the compiler.
|
cannam@86
|
4544 echo "$as_me:$LINENO:" \
|
cannam@86
|
4545 "checking for C++ compiler version" >&5
|
cannam@86
|
4546 ac_compiler=`set X $ac_compile; echo $2`
|
cannam@86
|
4547 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
cannam@86
|
4548 (eval $ac_compiler --version </dev/null >&5) 2>&5
|
cannam@86
|
4549 ac_status=$?
|
cannam@86
|
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
4551 (exit $ac_status); }
|
cannam@86
|
4552 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
cannam@86
|
4553 (eval $ac_compiler -v </dev/null >&5) 2>&5
|
cannam@86
|
4554 ac_status=$?
|
cannam@86
|
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
4556 (exit $ac_status); }
|
cannam@86
|
4557 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
cannam@86
|
4558 (eval $ac_compiler -V </dev/null >&5) 2>&5
|
cannam@86
|
4559 ac_status=$?
|
cannam@86
|
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
4561 (exit $ac_status); }
|
cannam@86
|
4562
|
cannam@86
|
4563 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
|
cannam@86
|
4564 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
|
cannam@86
|
4565 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
|
cannam@86
|
4566 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
4567 else
|
cannam@86
|
4568 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
4569 /* confdefs.h. */
|
cannam@86
|
4570 _ACEOF
|
cannam@86
|
4571 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
4572 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
4573 /* end confdefs.h. */
|
cannam@86
|
4574
|
cannam@86
|
4575 int
|
cannam@86
|
4576 main ()
|
cannam@86
|
4577 {
|
cannam@86
|
4578 #ifndef __GNUC__
|
cannam@86
|
4579 choke me
|
cannam@86
|
4580 #endif
|
cannam@86
|
4581
|
cannam@86
|
4582 ;
|
cannam@86
|
4583 return 0;
|
cannam@86
|
4584 }
|
cannam@86
|
4585 _ACEOF
|
cannam@86
|
4586 rm -f conftest.$ac_objext
|
cannam@86
|
4587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
4588 (eval $ac_compile) 2>conftest.er1
|
cannam@86
|
4589 ac_status=$?
|
cannam@86
|
4590 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
4591 rm -f conftest.er1
|
cannam@86
|
4592 cat conftest.err >&5
|
cannam@86
|
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
4594 (exit $ac_status); } &&
|
cannam@86
|
4595 { ac_try='test -z "$ac_cxx_werror_flag"
|
cannam@86
|
4596 || test ! -s conftest.err'
|
cannam@86
|
4597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
4598 (eval $ac_try) 2>&5
|
cannam@86
|
4599 ac_status=$?
|
cannam@86
|
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
4601 (exit $ac_status); }; } &&
|
cannam@86
|
4602 { ac_try='test -s conftest.$ac_objext'
|
cannam@86
|
4603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
4604 (eval $ac_try) 2>&5
|
cannam@86
|
4605 ac_status=$?
|
cannam@86
|
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
4607 (exit $ac_status); }; }; then
|
cannam@86
|
4608 ac_compiler_gnu=yes
|
cannam@86
|
4609 else
|
cannam@86
|
4610 echo "$as_me: failed program was:" >&5
|
cannam@86
|
4611 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
4612
|
cannam@86
|
4613 ac_compiler_gnu=no
|
cannam@86
|
4614 fi
|
cannam@86
|
4615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@86
|
4616 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
cannam@86
|
4617
|
cannam@86
|
4618 fi
|
cannam@86
|
4619 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
|
cannam@86
|
4620 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
|
cannam@86
|
4621 GXX=`test $ac_compiler_gnu = yes && echo yes`
|
cannam@86
|
4622 ac_test_CXXFLAGS=${CXXFLAGS+set}
|
cannam@86
|
4623 ac_save_CXXFLAGS=$CXXFLAGS
|
cannam@86
|
4624 CXXFLAGS="-g"
|
cannam@86
|
4625 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
|
cannam@86
|
4626 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
|
cannam@86
|
4627 if test "${ac_cv_prog_cxx_g+set}" = set; then
|
cannam@86
|
4628 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
4629 else
|
cannam@86
|
4630 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
4631 /* confdefs.h. */
|
cannam@86
|
4632 _ACEOF
|
cannam@86
|
4633 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
4634 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
4635 /* end confdefs.h. */
|
cannam@86
|
4636
|
cannam@86
|
4637 int
|
cannam@86
|
4638 main ()
|
cannam@86
|
4639 {
|
cannam@86
|
4640
|
cannam@86
|
4641 ;
|
cannam@86
|
4642 return 0;
|
cannam@86
|
4643 }
|
cannam@86
|
4644 _ACEOF
|
cannam@86
|
4645 rm -f conftest.$ac_objext
|
cannam@86
|
4646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
4647 (eval $ac_compile) 2>conftest.er1
|
cannam@86
|
4648 ac_status=$?
|
cannam@86
|
4649 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
4650 rm -f conftest.er1
|
cannam@86
|
4651 cat conftest.err >&5
|
cannam@86
|
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
4653 (exit $ac_status); } &&
|
cannam@86
|
4654 { ac_try='test -z "$ac_cxx_werror_flag"
|
cannam@86
|
4655 || test ! -s conftest.err'
|
cannam@86
|
4656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
4657 (eval $ac_try) 2>&5
|
cannam@86
|
4658 ac_status=$?
|
cannam@86
|
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
4660 (exit $ac_status); }; } &&
|
cannam@86
|
4661 { ac_try='test -s conftest.$ac_objext'
|
cannam@86
|
4662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
4663 (eval $ac_try) 2>&5
|
cannam@86
|
4664 ac_status=$?
|
cannam@86
|
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
4666 (exit $ac_status); }; }; then
|
cannam@86
|
4667 ac_cv_prog_cxx_g=yes
|
cannam@86
|
4668 else
|
cannam@86
|
4669 echo "$as_me: failed program was:" >&5
|
cannam@86
|
4670 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
4671
|
cannam@86
|
4672 ac_cv_prog_cxx_g=no
|
cannam@86
|
4673 fi
|
cannam@86
|
4674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@86
|
4675 fi
|
cannam@86
|
4676 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
|
cannam@86
|
4677 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
|
cannam@86
|
4678 if test "$ac_test_CXXFLAGS" = set; then
|
cannam@86
|
4679 CXXFLAGS=$ac_save_CXXFLAGS
|
cannam@86
|
4680 elif test $ac_cv_prog_cxx_g = yes; then
|
cannam@86
|
4681 if test "$GXX" = yes; then
|
cannam@86
|
4682 CXXFLAGS="-g -O2"
|
cannam@86
|
4683 else
|
cannam@86
|
4684 CXXFLAGS="-g"
|
cannam@86
|
4685 fi
|
cannam@86
|
4686 else
|
cannam@86
|
4687 if test "$GXX" = yes; then
|
cannam@86
|
4688 CXXFLAGS="-O2"
|
cannam@86
|
4689 else
|
cannam@86
|
4690 CXXFLAGS=
|
cannam@86
|
4691 fi
|
cannam@86
|
4692 fi
|
cannam@86
|
4693 for ac_declaration in \
|
cannam@86
|
4694 '' \
|
cannam@86
|
4695 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
cannam@86
|
4696 'extern "C" void std::exit (int); using std::exit;' \
|
cannam@86
|
4697 'extern "C" void exit (int) throw ();' \
|
cannam@86
|
4698 'extern "C" void exit (int);' \
|
cannam@86
|
4699 'void exit (int);'
|
cannam@86
|
4700 do
|
cannam@86
|
4701 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
4702 /* confdefs.h. */
|
cannam@86
|
4703 _ACEOF
|
cannam@86
|
4704 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
4705 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
4706 /* end confdefs.h. */
|
cannam@86
|
4707 $ac_declaration
|
cannam@86
|
4708 #include <stdlib.h>
|
cannam@86
|
4709 int
|
cannam@86
|
4710 main ()
|
cannam@86
|
4711 {
|
cannam@86
|
4712 exit (42);
|
cannam@86
|
4713 ;
|
cannam@86
|
4714 return 0;
|
cannam@86
|
4715 }
|
cannam@86
|
4716 _ACEOF
|
cannam@86
|
4717 rm -f conftest.$ac_objext
|
cannam@86
|
4718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
4719 (eval $ac_compile) 2>conftest.er1
|
cannam@86
|
4720 ac_status=$?
|
cannam@86
|
4721 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
4722 rm -f conftest.er1
|
cannam@86
|
4723 cat conftest.err >&5
|
cannam@86
|
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
4725 (exit $ac_status); } &&
|
cannam@86
|
4726 { ac_try='test -z "$ac_cxx_werror_flag"
|
cannam@86
|
4727 || test ! -s conftest.err'
|
cannam@86
|
4728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
4729 (eval $ac_try) 2>&5
|
cannam@86
|
4730 ac_status=$?
|
cannam@86
|
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
4732 (exit $ac_status); }; } &&
|
cannam@86
|
4733 { ac_try='test -s conftest.$ac_objext'
|
cannam@86
|
4734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
4735 (eval $ac_try) 2>&5
|
cannam@86
|
4736 ac_status=$?
|
cannam@86
|
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
4738 (exit $ac_status); }; }; then
|
cannam@86
|
4739 :
|
cannam@86
|
4740 else
|
cannam@86
|
4741 echo "$as_me: failed program was:" >&5
|
cannam@86
|
4742 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
4743
|
cannam@86
|
4744 continue
|
cannam@86
|
4745 fi
|
cannam@86
|
4746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@86
|
4747 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
4748 /* confdefs.h. */
|
cannam@86
|
4749 _ACEOF
|
cannam@86
|
4750 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
4751 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
4752 /* end confdefs.h. */
|
cannam@86
|
4753 $ac_declaration
|
cannam@86
|
4754 int
|
cannam@86
|
4755 main ()
|
cannam@86
|
4756 {
|
cannam@86
|
4757 exit (42);
|
cannam@86
|
4758 ;
|
cannam@86
|
4759 return 0;
|
cannam@86
|
4760 }
|
cannam@86
|
4761 _ACEOF
|
cannam@86
|
4762 rm -f conftest.$ac_objext
|
cannam@86
|
4763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
4764 (eval $ac_compile) 2>conftest.er1
|
cannam@86
|
4765 ac_status=$?
|
cannam@86
|
4766 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
4767 rm -f conftest.er1
|
cannam@86
|
4768 cat conftest.err >&5
|
cannam@86
|
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
4770 (exit $ac_status); } &&
|
cannam@86
|
4771 { ac_try='test -z "$ac_cxx_werror_flag"
|
cannam@86
|
4772 || test ! -s conftest.err'
|
cannam@86
|
4773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
4774 (eval $ac_try) 2>&5
|
cannam@86
|
4775 ac_status=$?
|
cannam@86
|
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
4777 (exit $ac_status); }; } &&
|
cannam@86
|
4778 { ac_try='test -s conftest.$ac_objext'
|
cannam@86
|
4779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
4780 (eval $ac_try) 2>&5
|
cannam@86
|
4781 ac_status=$?
|
cannam@86
|
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
4783 (exit $ac_status); }; }; then
|
cannam@86
|
4784 break
|
cannam@86
|
4785 else
|
cannam@86
|
4786 echo "$as_me: failed program was:" >&5
|
cannam@86
|
4787 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
4788
|
cannam@86
|
4789 fi
|
cannam@86
|
4790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@86
|
4791 done
|
cannam@86
|
4792 rm -f conftest*
|
cannam@86
|
4793 if test -n "$ac_declaration"; then
|
cannam@86
|
4794 echo '#ifdef __cplusplus' >>confdefs.h
|
cannam@86
|
4795 echo $ac_declaration >>confdefs.h
|
cannam@86
|
4796 echo '#endif' >>confdefs.h
|
cannam@86
|
4797 fi
|
cannam@86
|
4798
|
cannam@86
|
4799 ac_ext=cc
|
cannam@86
|
4800 ac_cpp='$CXXCPP $CPPFLAGS'
|
cannam@86
|
4801 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
cannam@86
|
4802 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
cannam@86
|
4803 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
cannam@86
|
4804
|
cannam@86
|
4805 depcc="$CXX" am_compiler_list=
|
cannam@86
|
4806
|
cannam@86
|
4807 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
|
cannam@86
|
4808 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
|
cannam@86
|
4809 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
|
cannam@86
|
4810 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
4811 else
|
cannam@86
|
4812 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
cannam@86
|
4813 # We make a subdir and do the tests there. Otherwise we can end up
|
cannam@86
|
4814 # making bogus files that we don't know about and never remove. For
|
cannam@86
|
4815 # instance it was reported that on HP-UX the gcc test will end up
|
cannam@86
|
4816 # making a dummy file named `D' -- because `-MD' means `put the output
|
cannam@86
|
4817 # in D'.
|
cannam@86
|
4818 mkdir conftest.dir
|
cannam@86
|
4819 # Copy depcomp to subdir because otherwise we won't find it if we're
|
cannam@86
|
4820 # using a relative directory.
|
cannam@86
|
4821 cp "$am_depcomp" conftest.dir
|
cannam@86
|
4822 cd conftest.dir
|
cannam@86
|
4823 # We will build objects and dependencies in a subdirectory because
|
cannam@86
|
4824 # it helps to detect inapplicable dependency modes. For instance
|
cannam@86
|
4825 # both Tru64's cc and ICC support -MD to output dependencies as a
|
cannam@86
|
4826 # side effect of compilation, but ICC will put the dependencies in
|
cannam@86
|
4827 # the current directory while Tru64 will put them in the object
|
cannam@86
|
4828 # directory.
|
cannam@86
|
4829 mkdir sub
|
cannam@86
|
4830
|
cannam@86
|
4831 am_cv_CXX_dependencies_compiler_type=none
|
cannam@86
|
4832 if test "$am_compiler_list" = ""; then
|
cannam@86
|
4833 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
|
cannam@86
|
4834 fi
|
cannam@86
|
4835 for depmode in $am_compiler_list; do
|
cannam@86
|
4836 # Setup a source with many dependencies, because some compilers
|
cannam@86
|
4837 # like to wrap large dependency lists on column 80 (with \), and
|
cannam@86
|
4838 # we should not choose a depcomp mode which is confused by this.
|
cannam@86
|
4839 #
|
cannam@86
|
4840 # We need to recreate these files for each test, as the compiler may
|
cannam@86
|
4841 # overwrite some of them when testing with obscure command lines.
|
cannam@86
|
4842 # This happens at least with the AIX C compiler.
|
cannam@86
|
4843 : > sub/conftest.c
|
cannam@86
|
4844 for i in 1 2 3 4 5 6; do
|
cannam@86
|
4845 echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
cannam@86
|
4846 : > sub/conftst$i.h
|
cannam@86
|
4847 done
|
cannam@86
|
4848 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
cannam@86
|
4849
|
cannam@86
|
4850 case $depmode in
|
cannam@86
|
4851 nosideeffect)
|
cannam@86
|
4852 # after this tag, mechanisms are not by side-effect, so they'll
|
cannam@86
|
4853 # only be used when explicitly requested
|
cannam@86
|
4854 if test "x$enable_dependency_tracking" = xyes; then
|
cannam@86
|
4855 continue
|
cannam@86
|
4856 else
|
cannam@86
|
4857 break
|
cannam@86
|
4858 fi
|
cannam@86
|
4859 ;;
|
cannam@86
|
4860 none) break ;;
|
cannam@86
|
4861 esac
|
cannam@86
|
4862 # We check with `-c' and `-o' for the sake of the "dashmstdout"
|
cannam@86
|
4863 # mode. It turns out that the SunPro C++ compiler does not properly
|
cannam@86
|
4864 # handle `-M -o', and we need to detect this.
|
cannam@86
|
4865 if depmode=$depmode \
|
cannam@86
|
4866 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
|
cannam@86
|
4867 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
cannam@86
|
4868 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
|
cannam@86
|
4869 >/dev/null 2>conftest.err &&
|
cannam@86
|
4870 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
cannam@86
|
4871 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
|
cannam@86
|
4872 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
cannam@86
|
4873 # icc doesn't choke on unknown options, it will just issue warnings
|
cannam@86
|
4874 # (even with -Werror). So we grep stderr for any message
|
cannam@86
|
4875 # that says an option was ignored.
|
cannam@86
|
4876 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
|
cannam@86
|
4877 am_cv_CXX_dependencies_compiler_type=$depmode
|
cannam@86
|
4878 break
|
cannam@86
|
4879 fi
|
cannam@86
|
4880 fi
|
cannam@86
|
4881 done
|
cannam@86
|
4882
|
cannam@86
|
4883 cd ..
|
cannam@86
|
4884 rm -rf conftest.dir
|
cannam@86
|
4885 else
|
cannam@86
|
4886 am_cv_CXX_dependencies_compiler_type=none
|
cannam@86
|
4887 fi
|
cannam@86
|
4888
|
cannam@86
|
4889 fi
|
cannam@86
|
4890 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
|
cannam@86
|
4891 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
|
cannam@86
|
4892 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
|
cannam@86
|
4893
|
cannam@86
|
4894
|
cannam@86
|
4895
|
cannam@86
|
4896 if
|
cannam@86
|
4897 test "x$enable_dependency_tracking" != xno \
|
cannam@86
|
4898 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
|
cannam@86
|
4899 am__fastdepCXX_TRUE=
|
cannam@86
|
4900 am__fastdepCXX_FALSE='#'
|
cannam@86
|
4901 else
|
cannam@86
|
4902 am__fastdepCXX_TRUE='#'
|
cannam@86
|
4903 am__fastdepCXX_FALSE=
|
cannam@86
|
4904 fi
|
cannam@86
|
4905
|
cannam@86
|
4906
|
cannam@86
|
4907
|
cannam@86
|
4908
|
cannam@86
|
4909 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
|
cannam@86
|
4910 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
|
cannam@86
|
4911 (test "X$CXX" != "Xg++"))) ; then
|
cannam@86
|
4912 ac_ext=cc
|
cannam@86
|
4913 ac_cpp='$CXXCPP $CPPFLAGS'
|
cannam@86
|
4914 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
cannam@86
|
4915 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
cannam@86
|
4916 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
cannam@86
|
4917 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
|
cannam@86
|
4918 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
|
cannam@86
|
4919 if test -z "$CXXCPP"; then
|
cannam@86
|
4920 if test "${ac_cv_prog_CXXCPP+set}" = set; then
|
cannam@86
|
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
4922 else
|
cannam@86
|
4923 # Double quotes because CXXCPP needs to be expanded
|
cannam@86
|
4924 for CXXCPP in "$CXX -E" "/lib/cpp"
|
cannam@86
|
4925 do
|
cannam@86
|
4926 ac_preproc_ok=false
|
cannam@86
|
4927 for ac_cxx_preproc_warn_flag in '' yes
|
cannam@86
|
4928 do
|
cannam@86
|
4929 # Use a header file that comes with gcc, so configuring glibc
|
cannam@86
|
4930 # with a fresh cross-compiler works.
|
cannam@86
|
4931 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
cannam@86
|
4932 # <limits.h> exists even on freestanding compilers.
|
cannam@86
|
4933 # On the NeXT, cc -E runs the code through the compiler's parser,
|
cannam@86
|
4934 # not just through cpp. "Syntax error" is here to catch this case.
|
cannam@86
|
4935 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
4936 /* confdefs.h. */
|
cannam@86
|
4937 _ACEOF
|
cannam@86
|
4938 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
4939 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
4940 /* end confdefs.h. */
|
cannam@86
|
4941 #ifdef __STDC__
|
cannam@86
|
4942 # include <limits.h>
|
cannam@86
|
4943 #else
|
cannam@86
|
4944 # include <assert.h>
|
cannam@86
|
4945 #endif
|
cannam@86
|
4946 Syntax error
|
cannam@86
|
4947 _ACEOF
|
cannam@86
|
4948 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
cannam@86
|
4949 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
cannam@86
|
4950 ac_status=$?
|
cannam@86
|
4951 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
4952 rm -f conftest.er1
|
cannam@86
|
4953 cat conftest.err >&5
|
cannam@86
|
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
4955 (exit $ac_status); } >/dev/null; then
|
cannam@86
|
4956 if test -s conftest.err; then
|
cannam@86
|
4957 ac_cpp_err=$ac_cxx_preproc_warn_flag
|
cannam@86
|
4958 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
|
cannam@86
|
4959 else
|
cannam@86
|
4960 ac_cpp_err=
|
cannam@86
|
4961 fi
|
cannam@86
|
4962 else
|
cannam@86
|
4963 ac_cpp_err=yes
|
cannam@86
|
4964 fi
|
cannam@86
|
4965 if test -z "$ac_cpp_err"; then
|
cannam@86
|
4966 :
|
cannam@86
|
4967 else
|
cannam@86
|
4968 echo "$as_me: failed program was:" >&5
|
cannam@86
|
4969 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
4970
|
cannam@86
|
4971 # Broken: fails on valid input.
|
cannam@86
|
4972 continue
|
cannam@86
|
4973 fi
|
cannam@86
|
4974 rm -f conftest.err conftest.$ac_ext
|
cannam@86
|
4975
|
cannam@86
|
4976 # OK, works on sane cases. Now check whether non-existent headers
|
cannam@86
|
4977 # can be detected and how.
|
cannam@86
|
4978 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
4979 /* confdefs.h. */
|
cannam@86
|
4980 _ACEOF
|
cannam@86
|
4981 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
4982 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
4983 /* end confdefs.h. */
|
cannam@86
|
4984 #include <ac_nonexistent.h>
|
cannam@86
|
4985 _ACEOF
|
cannam@86
|
4986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
cannam@86
|
4987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
cannam@86
|
4988 ac_status=$?
|
cannam@86
|
4989 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
4990 rm -f conftest.er1
|
cannam@86
|
4991 cat conftest.err >&5
|
cannam@86
|
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
4993 (exit $ac_status); } >/dev/null; then
|
cannam@86
|
4994 if test -s conftest.err; then
|
cannam@86
|
4995 ac_cpp_err=$ac_cxx_preproc_warn_flag
|
cannam@86
|
4996 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
|
cannam@86
|
4997 else
|
cannam@86
|
4998 ac_cpp_err=
|
cannam@86
|
4999 fi
|
cannam@86
|
5000 else
|
cannam@86
|
5001 ac_cpp_err=yes
|
cannam@86
|
5002 fi
|
cannam@86
|
5003 if test -z "$ac_cpp_err"; then
|
cannam@86
|
5004 # Broken: success on invalid input.
|
cannam@86
|
5005 continue
|
cannam@86
|
5006 else
|
cannam@86
|
5007 echo "$as_me: failed program was:" >&5
|
cannam@86
|
5008 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
5009
|
cannam@86
|
5010 # Passes both tests.
|
cannam@86
|
5011 ac_preproc_ok=:
|
cannam@86
|
5012 break
|
cannam@86
|
5013 fi
|
cannam@86
|
5014 rm -f conftest.err conftest.$ac_ext
|
cannam@86
|
5015
|
cannam@86
|
5016 done
|
cannam@86
|
5017 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
cannam@86
|
5018 rm -f conftest.err conftest.$ac_ext
|
cannam@86
|
5019 if $ac_preproc_ok; then
|
cannam@86
|
5020 break
|
cannam@86
|
5021 fi
|
cannam@86
|
5022
|
cannam@86
|
5023 done
|
cannam@86
|
5024 ac_cv_prog_CXXCPP=$CXXCPP
|
cannam@86
|
5025
|
cannam@86
|
5026 fi
|
cannam@86
|
5027 CXXCPP=$ac_cv_prog_CXXCPP
|
cannam@86
|
5028 else
|
cannam@86
|
5029 ac_cv_prog_CXXCPP=$CXXCPP
|
cannam@86
|
5030 fi
|
cannam@86
|
5031 echo "$as_me:$LINENO: result: $CXXCPP" >&5
|
cannam@86
|
5032 echo "${ECHO_T}$CXXCPP" >&6
|
cannam@86
|
5033 ac_preproc_ok=false
|
cannam@86
|
5034 for ac_cxx_preproc_warn_flag in '' yes
|
cannam@86
|
5035 do
|
cannam@86
|
5036 # Use a header file that comes with gcc, so configuring glibc
|
cannam@86
|
5037 # with a fresh cross-compiler works.
|
cannam@86
|
5038 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
cannam@86
|
5039 # <limits.h> exists even on freestanding compilers.
|
cannam@86
|
5040 # On the NeXT, cc -E runs the code through the compiler's parser,
|
cannam@86
|
5041 # not just through cpp. "Syntax error" is here to catch this case.
|
cannam@86
|
5042 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
5043 /* confdefs.h. */
|
cannam@86
|
5044 _ACEOF
|
cannam@86
|
5045 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
5046 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
5047 /* end confdefs.h. */
|
cannam@86
|
5048 #ifdef __STDC__
|
cannam@86
|
5049 # include <limits.h>
|
cannam@86
|
5050 #else
|
cannam@86
|
5051 # include <assert.h>
|
cannam@86
|
5052 #endif
|
cannam@86
|
5053 Syntax error
|
cannam@86
|
5054 _ACEOF
|
cannam@86
|
5055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
cannam@86
|
5056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
cannam@86
|
5057 ac_status=$?
|
cannam@86
|
5058 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
5059 rm -f conftest.er1
|
cannam@86
|
5060 cat conftest.err >&5
|
cannam@86
|
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
5062 (exit $ac_status); } >/dev/null; then
|
cannam@86
|
5063 if test -s conftest.err; then
|
cannam@86
|
5064 ac_cpp_err=$ac_cxx_preproc_warn_flag
|
cannam@86
|
5065 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
|
cannam@86
|
5066 else
|
cannam@86
|
5067 ac_cpp_err=
|
cannam@86
|
5068 fi
|
cannam@86
|
5069 else
|
cannam@86
|
5070 ac_cpp_err=yes
|
cannam@86
|
5071 fi
|
cannam@86
|
5072 if test -z "$ac_cpp_err"; then
|
cannam@86
|
5073 :
|
cannam@86
|
5074 else
|
cannam@86
|
5075 echo "$as_me: failed program was:" >&5
|
cannam@86
|
5076 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
5077
|
cannam@86
|
5078 # Broken: fails on valid input.
|
cannam@86
|
5079 continue
|
cannam@86
|
5080 fi
|
cannam@86
|
5081 rm -f conftest.err conftest.$ac_ext
|
cannam@86
|
5082
|
cannam@86
|
5083 # OK, works on sane cases. Now check whether non-existent headers
|
cannam@86
|
5084 # can be detected and how.
|
cannam@86
|
5085 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
5086 /* confdefs.h. */
|
cannam@86
|
5087 _ACEOF
|
cannam@86
|
5088 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
5089 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
5090 /* end confdefs.h. */
|
cannam@86
|
5091 #include <ac_nonexistent.h>
|
cannam@86
|
5092 _ACEOF
|
cannam@86
|
5093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
cannam@86
|
5094 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
cannam@86
|
5095 ac_status=$?
|
cannam@86
|
5096 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
5097 rm -f conftest.er1
|
cannam@86
|
5098 cat conftest.err >&5
|
cannam@86
|
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
5100 (exit $ac_status); } >/dev/null; then
|
cannam@86
|
5101 if test -s conftest.err; then
|
cannam@86
|
5102 ac_cpp_err=$ac_cxx_preproc_warn_flag
|
cannam@86
|
5103 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
|
cannam@86
|
5104 else
|
cannam@86
|
5105 ac_cpp_err=
|
cannam@86
|
5106 fi
|
cannam@86
|
5107 else
|
cannam@86
|
5108 ac_cpp_err=yes
|
cannam@86
|
5109 fi
|
cannam@86
|
5110 if test -z "$ac_cpp_err"; then
|
cannam@86
|
5111 # Broken: success on invalid input.
|
cannam@86
|
5112 continue
|
cannam@86
|
5113 else
|
cannam@86
|
5114 echo "$as_me: failed program was:" >&5
|
cannam@86
|
5115 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
5116
|
cannam@86
|
5117 # Passes both tests.
|
cannam@86
|
5118 ac_preproc_ok=:
|
cannam@86
|
5119 break
|
cannam@86
|
5120 fi
|
cannam@86
|
5121 rm -f conftest.err conftest.$ac_ext
|
cannam@86
|
5122
|
cannam@86
|
5123 done
|
cannam@86
|
5124 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
cannam@86
|
5125 rm -f conftest.err conftest.$ac_ext
|
cannam@86
|
5126 if $ac_preproc_ok; then
|
cannam@86
|
5127 :
|
cannam@86
|
5128 else
|
cannam@86
|
5129 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
|
cannam@86
|
5130 See \`config.log' for more details." >&5
|
cannam@86
|
5131 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
|
cannam@86
|
5132 See \`config.log' for more details." >&2;}
|
cannam@86
|
5133 { (exit 1); exit 1; }; }
|
cannam@86
|
5134 fi
|
cannam@86
|
5135
|
cannam@86
|
5136 ac_ext=cc
|
cannam@86
|
5137 ac_cpp='$CXXCPP $CPPFLAGS'
|
cannam@86
|
5138 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
cannam@86
|
5139 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
cannam@86
|
5140 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
cannam@86
|
5141
|
cannam@86
|
5142 fi
|
cannam@86
|
5143
|
cannam@86
|
5144
|
cannam@86
|
5145 ac_ext=f
|
cannam@86
|
5146 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
|
cannam@86
|
5147 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
cannam@86
|
5148 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
|
cannam@86
|
5149 if test -n "$ac_tool_prefix"; then
|
cannam@86
|
5150 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
|
cannam@86
|
5151 do
|
cannam@86
|
5152 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
cannam@86
|
5153 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
cannam@86
|
5154 echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@86
|
5155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
cannam@86
|
5156 if test "${ac_cv_prog_F77+set}" = set; then
|
cannam@86
|
5157 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
5158 else
|
cannam@86
|
5159 if test -n "$F77"; then
|
cannam@86
|
5160 ac_cv_prog_F77="$F77" # Let the user override the test.
|
cannam@86
|
5161 else
|
cannam@86
|
5162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@86
|
5163 for as_dir in $PATH
|
cannam@86
|
5164 do
|
cannam@86
|
5165 IFS=$as_save_IFS
|
cannam@86
|
5166 test -z "$as_dir" && as_dir=.
|
cannam@86
|
5167 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@86
|
5168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@86
|
5169 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
|
cannam@86
|
5170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@86
|
5171 break 2
|
cannam@86
|
5172 fi
|
cannam@86
|
5173 done
|
cannam@86
|
5174 done
|
cannam@86
|
5175
|
cannam@86
|
5176 fi
|
cannam@86
|
5177 fi
|
cannam@86
|
5178 F77=$ac_cv_prog_F77
|
cannam@86
|
5179 if test -n "$F77"; then
|
cannam@86
|
5180 echo "$as_me:$LINENO: result: $F77" >&5
|
cannam@86
|
5181 echo "${ECHO_T}$F77" >&6
|
cannam@86
|
5182 else
|
cannam@86
|
5183 echo "$as_me:$LINENO: result: no" >&5
|
cannam@86
|
5184 echo "${ECHO_T}no" >&6
|
cannam@86
|
5185 fi
|
cannam@86
|
5186
|
cannam@86
|
5187 test -n "$F77" && break
|
cannam@86
|
5188 done
|
cannam@86
|
5189 fi
|
cannam@86
|
5190 if test -z "$F77"; then
|
cannam@86
|
5191 ac_ct_F77=$F77
|
cannam@86
|
5192 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
|
cannam@86
|
5193 do
|
cannam@86
|
5194 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
cannam@86
|
5195 set dummy $ac_prog; ac_word=$2
|
cannam@86
|
5196 echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@86
|
5197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
cannam@86
|
5198 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
|
cannam@86
|
5199 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
5200 else
|
cannam@86
|
5201 if test -n "$ac_ct_F77"; then
|
cannam@86
|
5202 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
|
cannam@86
|
5203 else
|
cannam@86
|
5204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@86
|
5205 for as_dir in $PATH
|
cannam@86
|
5206 do
|
cannam@86
|
5207 IFS=$as_save_IFS
|
cannam@86
|
5208 test -z "$as_dir" && as_dir=.
|
cannam@86
|
5209 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@86
|
5210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@86
|
5211 ac_cv_prog_ac_ct_F77="$ac_prog"
|
cannam@86
|
5212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@86
|
5213 break 2
|
cannam@86
|
5214 fi
|
cannam@86
|
5215 done
|
cannam@86
|
5216 done
|
cannam@86
|
5217
|
cannam@86
|
5218 fi
|
cannam@86
|
5219 fi
|
cannam@86
|
5220 ac_ct_F77=$ac_cv_prog_ac_ct_F77
|
cannam@86
|
5221 if test -n "$ac_ct_F77"; then
|
cannam@86
|
5222 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
|
cannam@86
|
5223 echo "${ECHO_T}$ac_ct_F77" >&6
|
cannam@86
|
5224 else
|
cannam@86
|
5225 echo "$as_me:$LINENO: result: no" >&5
|
cannam@86
|
5226 echo "${ECHO_T}no" >&6
|
cannam@86
|
5227 fi
|
cannam@86
|
5228
|
cannam@86
|
5229 test -n "$ac_ct_F77" && break
|
cannam@86
|
5230 done
|
cannam@86
|
5231
|
cannam@86
|
5232 F77=$ac_ct_F77
|
cannam@86
|
5233 fi
|
cannam@86
|
5234
|
cannam@86
|
5235
|
cannam@86
|
5236 # Provide some information about the compiler.
|
cannam@86
|
5237 echo "$as_me:5237:" \
|
cannam@86
|
5238 "checking for Fortran 77 compiler version" >&5
|
cannam@86
|
5239 ac_compiler=`set X $ac_compile; echo $2`
|
cannam@86
|
5240 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
cannam@86
|
5241 (eval $ac_compiler --version </dev/null >&5) 2>&5
|
cannam@86
|
5242 ac_status=$?
|
cannam@86
|
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
5244 (exit $ac_status); }
|
cannam@86
|
5245 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
cannam@86
|
5246 (eval $ac_compiler -v </dev/null >&5) 2>&5
|
cannam@86
|
5247 ac_status=$?
|
cannam@86
|
5248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
5249 (exit $ac_status); }
|
cannam@86
|
5250 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
cannam@86
|
5251 (eval $ac_compiler -V </dev/null >&5) 2>&5
|
cannam@86
|
5252 ac_status=$?
|
cannam@86
|
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
5254 (exit $ac_status); }
|
cannam@86
|
5255 rm -f a.out
|
cannam@86
|
5256
|
cannam@86
|
5257 # If we don't use `.F' as extension, the preprocessor is not run on the
|
cannam@86
|
5258 # input file. (Note that this only needs to work for GNU compilers.)
|
cannam@86
|
5259 ac_save_ext=$ac_ext
|
cannam@86
|
5260 ac_ext=F
|
cannam@86
|
5261 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
|
cannam@86
|
5262 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
|
cannam@86
|
5263 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
|
cannam@86
|
5264 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
5265 else
|
cannam@86
|
5266 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
5267 program main
|
cannam@86
|
5268 #ifndef __GNUC__
|
cannam@86
|
5269 choke me
|
cannam@86
|
5270 #endif
|
cannam@86
|
5271
|
cannam@86
|
5272 end
|
cannam@86
|
5273 _ACEOF
|
cannam@86
|
5274 rm -f conftest.$ac_objext
|
cannam@86
|
5275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
5276 (eval $ac_compile) 2>conftest.er1
|
cannam@86
|
5277 ac_status=$?
|
cannam@86
|
5278 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
5279 rm -f conftest.er1
|
cannam@86
|
5280 cat conftest.err >&5
|
cannam@86
|
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
5282 (exit $ac_status); } &&
|
cannam@86
|
5283 { ac_try='test -z "$ac_f77_werror_flag"
|
cannam@86
|
5284 || test ! -s conftest.err'
|
cannam@86
|
5285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
5286 (eval $ac_try) 2>&5
|
cannam@86
|
5287 ac_status=$?
|
cannam@86
|
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
5289 (exit $ac_status); }; } &&
|
cannam@86
|
5290 { ac_try='test -s conftest.$ac_objext'
|
cannam@86
|
5291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
5292 (eval $ac_try) 2>&5
|
cannam@86
|
5293 ac_status=$?
|
cannam@86
|
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
5295 (exit $ac_status); }; }; then
|
cannam@86
|
5296 ac_compiler_gnu=yes
|
cannam@86
|
5297 else
|
cannam@86
|
5298 echo "$as_me: failed program was:" >&5
|
cannam@86
|
5299 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
5300
|
cannam@86
|
5301 ac_compiler_gnu=no
|
cannam@86
|
5302 fi
|
cannam@86
|
5303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@86
|
5304 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
|
cannam@86
|
5305
|
cannam@86
|
5306 fi
|
cannam@86
|
5307 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
|
cannam@86
|
5308 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
|
cannam@86
|
5309 ac_ext=$ac_save_ext
|
cannam@86
|
5310 ac_test_FFLAGS=${FFLAGS+set}
|
cannam@86
|
5311 ac_save_FFLAGS=$FFLAGS
|
cannam@86
|
5312 FFLAGS=
|
cannam@86
|
5313 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
|
cannam@86
|
5314 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
|
cannam@86
|
5315 if test "${ac_cv_prog_f77_g+set}" = set; then
|
cannam@86
|
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
5317 else
|
cannam@86
|
5318 FFLAGS=-g
|
cannam@86
|
5319 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
5320 program main
|
cannam@86
|
5321
|
cannam@86
|
5322 end
|
cannam@86
|
5323 _ACEOF
|
cannam@86
|
5324 rm -f conftest.$ac_objext
|
cannam@86
|
5325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
5326 (eval $ac_compile) 2>conftest.er1
|
cannam@86
|
5327 ac_status=$?
|
cannam@86
|
5328 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
5329 rm -f conftest.er1
|
cannam@86
|
5330 cat conftest.err >&5
|
cannam@86
|
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
5332 (exit $ac_status); } &&
|
cannam@86
|
5333 { ac_try='test -z "$ac_f77_werror_flag"
|
cannam@86
|
5334 || test ! -s conftest.err'
|
cannam@86
|
5335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
5336 (eval $ac_try) 2>&5
|
cannam@86
|
5337 ac_status=$?
|
cannam@86
|
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
5339 (exit $ac_status); }; } &&
|
cannam@86
|
5340 { ac_try='test -s conftest.$ac_objext'
|
cannam@86
|
5341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
5342 (eval $ac_try) 2>&5
|
cannam@86
|
5343 ac_status=$?
|
cannam@86
|
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
5345 (exit $ac_status); }; }; then
|
cannam@86
|
5346 ac_cv_prog_f77_g=yes
|
cannam@86
|
5347 else
|
cannam@86
|
5348 echo "$as_me: failed program was:" >&5
|
cannam@86
|
5349 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
5350
|
cannam@86
|
5351 ac_cv_prog_f77_g=no
|
cannam@86
|
5352 fi
|
cannam@86
|
5353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@86
|
5354
|
cannam@86
|
5355 fi
|
cannam@86
|
5356 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
|
cannam@86
|
5357 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
|
cannam@86
|
5358 if test "$ac_test_FFLAGS" = set; then
|
cannam@86
|
5359 FFLAGS=$ac_save_FFLAGS
|
cannam@86
|
5360 elif test $ac_cv_prog_f77_g = yes; then
|
cannam@86
|
5361 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
|
cannam@86
|
5362 FFLAGS="-g -O2"
|
cannam@86
|
5363 else
|
cannam@86
|
5364 FFLAGS="-g"
|
cannam@86
|
5365 fi
|
cannam@86
|
5366 else
|
cannam@86
|
5367 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
|
cannam@86
|
5368 FFLAGS="-O2"
|
cannam@86
|
5369 else
|
cannam@86
|
5370 FFLAGS=
|
cannam@86
|
5371 fi
|
cannam@86
|
5372 fi
|
cannam@86
|
5373
|
cannam@86
|
5374 G77=`test $ac_compiler_gnu = yes && echo yes`
|
cannam@86
|
5375 ac_ext=c
|
cannam@86
|
5376 ac_cpp='$CPP $CPPFLAGS'
|
cannam@86
|
5377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
cannam@86
|
5378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
cannam@86
|
5379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
cannam@86
|
5380
|
cannam@86
|
5381
|
cannam@86
|
5382
|
cannam@86
|
5383 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
|
cannam@86
|
5384
|
cannam@86
|
5385 # find the maximum length of command line arguments
|
cannam@86
|
5386 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
|
cannam@86
|
5387 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
|
cannam@86
|
5388 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
|
cannam@86
|
5389 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
5390 else
|
cannam@86
|
5391 i=0
|
cannam@86
|
5392 teststring="ABCD"
|
cannam@86
|
5393
|
cannam@86
|
5394 case $build_os in
|
cannam@86
|
5395 msdosdjgpp*)
|
cannam@86
|
5396 # On DJGPP, this test can blow up pretty badly due to problems in libc
|
cannam@86
|
5397 # (any single argument exceeding 2000 bytes causes a buffer overrun
|
cannam@86
|
5398 # during glob expansion). Even if it were fixed, the result of this
|
cannam@86
|
5399 # check would be larger than it should be.
|
cannam@86
|
5400 lt_cv_sys_max_cmd_len=12288; # 12K is about right
|
cannam@86
|
5401 ;;
|
cannam@86
|
5402
|
cannam@86
|
5403 gnu*)
|
cannam@86
|
5404 # Under GNU Hurd, this test is not required because there is
|
cannam@86
|
5405 # no limit to the length of command line arguments.
|
cannam@86
|
5406 # Libtool will interpret -1 as no limit whatsoever
|
cannam@86
|
5407 lt_cv_sys_max_cmd_len=-1;
|
cannam@86
|
5408 ;;
|
cannam@86
|
5409
|
cannam@86
|
5410 cygwin* | mingw*)
|
cannam@86
|
5411 # On Win9x/ME, this test blows up -- it succeeds, but takes
|
cannam@86
|
5412 # about 5 minutes as the teststring grows exponentially.
|
cannam@86
|
5413 # Worse, since 9x/ME are not pre-emptively multitasking,
|
cannam@86
|
5414 # you end up with a "frozen" computer, even though with patience
|
cannam@86
|
5415 # the test eventually succeeds (with a max line length of 256k).
|
cannam@86
|
5416 # Instead, let's just punt: use the minimum linelength reported by
|
cannam@86
|
5417 # all of the supported platforms: 8192 (on NT/2K/XP).
|
cannam@86
|
5418 lt_cv_sys_max_cmd_len=8192;
|
cannam@86
|
5419 ;;
|
cannam@86
|
5420
|
cannam@86
|
5421 amigaos*)
|
cannam@86
|
5422 # On AmigaOS with pdksh, this test takes hours, literally.
|
cannam@86
|
5423 # So we just punt and use a minimum line length of 8192.
|
cannam@86
|
5424 lt_cv_sys_max_cmd_len=8192;
|
cannam@86
|
5425 ;;
|
cannam@86
|
5426
|
cannam@86
|
5427 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
|
cannam@86
|
5428 # This has been around since 386BSD, at least. Likely further.
|
cannam@86
|
5429 if test -x /sbin/sysctl; then
|
cannam@86
|
5430 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
|
cannam@86
|
5431 elif test -x /usr/sbin/sysctl; then
|
cannam@86
|
5432 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
|
cannam@86
|
5433 else
|
cannam@86
|
5434 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
|
cannam@86
|
5435 fi
|
cannam@86
|
5436 # And add a safety zone
|
cannam@86
|
5437 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
cannam@86
|
5438 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
cannam@86
|
5439 ;;
|
cannam@86
|
5440 osf*)
|
cannam@86
|
5441 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
|
cannam@86
|
5442 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
|
cannam@86
|
5443 # nice to cause kernel panics so lets avoid the loop below.
|
cannam@86
|
5444 # First set a reasonable default.
|
cannam@86
|
5445 lt_cv_sys_max_cmd_len=16384
|
cannam@86
|
5446 #
|
cannam@86
|
5447 if test -x /sbin/sysconfig; then
|
cannam@86
|
5448 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
|
cannam@86
|
5449 *1*) lt_cv_sys_max_cmd_len=-1 ;;
|
cannam@86
|
5450 esac
|
cannam@86
|
5451 fi
|
cannam@86
|
5452 ;;
|
cannam@86
|
5453 *)
|
cannam@86
|
5454 # If test is not a shell built-in, we'll probably end up computing a
|
cannam@86
|
5455 # maximum length that is only half of the actual maximum length, but
|
cannam@86
|
5456 # we can't tell.
|
cannam@86
|
5457 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
|
cannam@86
|
5458 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
|
cannam@86
|
5459 = "XX$teststring") >/dev/null 2>&1 &&
|
cannam@86
|
5460 new_result=`expr "X$teststring" : ".*" 2>&1` &&
|
cannam@86
|
5461 lt_cv_sys_max_cmd_len=$new_result &&
|
cannam@86
|
5462 test $i != 17 # 1/2 MB should be enough
|
cannam@86
|
5463 do
|
cannam@86
|
5464 i=`expr $i + 1`
|
cannam@86
|
5465 teststring=$teststring$teststring
|
cannam@86
|
5466 done
|
cannam@86
|
5467 teststring=
|
cannam@86
|
5468 # Add a significant safety factor because C++ compilers can tack on massive
|
cannam@86
|
5469 # amounts of additional arguments before passing them to the linker.
|
cannam@86
|
5470 # It appears as though 1/2 is a usable value.
|
cannam@86
|
5471 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
|
cannam@86
|
5472 ;;
|
cannam@86
|
5473 esac
|
cannam@86
|
5474
|
cannam@86
|
5475 fi
|
cannam@86
|
5476
|
cannam@86
|
5477 if test -n $lt_cv_sys_max_cmd_len ; then
|
cannam@86
|
5478 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
|
cannam@86
|
5479 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
|
cannam@86
|
5480 else
|
cannam@86
|
5481 echo "$as_me:$LINENO: result: none" >&5
|
cannam@86
|
5482 echo "${ECHO_T}none" >&6
|
cannam@86
|
5483 fi
|
cannam@86
|
5484
|
cannam@86
|
5485
|
cannam@86
|
5486
|
cannam@86
|
5487
|
cannam@86
|
5488 # Check for command to grab the raw symbol name followed by C symbol from nm.
|
cannam@86
|
5489 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
|
cannam@86
|
5490 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
|
cannam@86
|
5491 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
|
cannam@86
|
5492 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
5493 else
|
cannam@86
|
5494
|
cannam@86
|
5495 # These are sane defaults that work on at least a few old systems.
|
cannam@86
|
5496 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
|
cannam@86
|
5497
|
cannam@86
|
5498 # Character class describing NM global symbol codes.
|
cannam@86
|
5499 symcode='[BCDEGRST]'
|
cannam@86
|
5500
|
cannam@86
|
5501 # Regexp to match symbols that can be accessed directly from C.
|
cannam@86
|
5502 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
|
cannam@86
|
5503
|
cannam@86
|
5504 # Transform an extracted symbol line into a proper C declaration
|
cannam@86
|
5505 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
|
cannam@86
|
5506
|
cannam@86
|
5507 # Transform an extracted symbol line into symbol name and symbol address
|
cannam@86
|
5508 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
|
cannam@86
|
5509
|
cannam@86
|
5510 # Define system-specific variables.
|
cannam@86
|
5511 case $host_os in
|
cannam@86
|
5512 aix*)
|
cannam@86
|
5513 symcode='[BCDT]'
|
cannam@86
|
5514 ;;
|
cannam@86
|
5515 cygwin* | mingw* | pw32*)
|
cannam@86
|
5516 symcode='[ABCDGISTW]'
|
cannam@86
|
5517 ;;
|
cannam@86
|
5518 hpux*) # Its linker distinguishes data from code symbols
|
cannam@86
|
5519 if test "$host_cpu" = ia64; then
|
cannam@86
|
5520 symcode='[ABCDEGRST]'
|
cannam@86
|
5521 fi
|
cannam@86
|
5522 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
|
cannam@86
|
5523 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
|
cannam@86
|
5524 ;;
|
cannam@86
|
5525 linux*)
|
cannam@86
|
5526 if test "$host_cpu" = ia64; then
|
cannam@86
|
5527 symcode='[ABCDGIRSTW]'
|
cannam@86
|
5528 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
|
cannam@86
|
5529 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
|
cannam@86
|
5530 fi
|
cannam@86
|
5531 ;;
|
cannam@86
|
5532 irix* | nonstopux*)
|
cannam@86
|
5533 symcode='[BCDEGRST]'
|
cannam@86
|
5534 ;;
|
cannam@86
|
5535 osf*)
|
cannam@86
|
5536 symcode='[BCDEGQRST]'
|
cannam@86
|
5537 ;;
|
cannam@86
|
5538 solaris* | sysv5*)
|
cannam@86
|
5539 symcode='[BDRT]'
|
cannam@86
|
5540 ;;
|
cannam@86
|
5541 sysv4)
|
cannam@86
|
5542 symcode='[DFNSTU]'
|
cannam@86
|
5543 ;;
|
cannam@86
|
5544 esac
|
cannam@86
|
5545
|
cannam@86
|
5546 # Handle CRLF in mingw tool chain
|
cannam@86
|
5547 opt_cr=
|
cannam@86
|
5548 case $build_os in
|
cannam@86
|
5549 mingw*)
|
cannam@86
|
5550 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
|
cannam@86
|
5551 ;;
|
cannam@86
|
5552 esac
|
cannam@86
|
5553
|
cannam@86
|
5554 # If we're using GNU nm, then use its standard symbol codes.
|
cannam@86
|
5555 case `$NM -V 2>&1` in
|
cannam@86
|
5556 *GNU* | *'with BFD'*)
|
cannam@86
|
5557 symcode='[ABCDGIRSTW]' ;;
|
cannam@86
|
5558 esac
|
cannam@86
|
5559
|
cannam@86
|
5560 # Try without a prefix undercore, then with it.
|
cannam@86
|
5561 for ac_symprfx in "" "_"; do
|
cannam@86
|
5562
|
cannam@86
|
5563 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
|
cannam@86
|
5564 symxfrm="\\1 $ac_symprfx\\2 \\2"
|
cannam@86
|
5565
|
cannam@86
|
5566 # Write the raw and C identifiers.
|
cannam@86
|
5567 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
|
cannam@86
|
5568
|
cannam@86
|
5569 # Check to see that the pipe works correctly.
|
cannam@86
|
5570 pipe_works=no
|
cannam@86
|
5571
|
cannam@86
|
5572 rm -f conftest*
|
cannam@86
|
5573 cat > conftest.$ac_ext <<EOF
|
cannam@86
|
5574 #ifdef __cplusplus
|
cannam@86
|
5575 extern "C" {
|
cannam@86
|
5576 #endif
|
cannam@86
|
5577 char nm_test_var;
|
cannam@86
|
5578 void nm_test_func(){}
|
cannam@86
|
5579 #ifdef __cplusplus
|
cannam@86
|
5580 }
|
cannam@86
|
5581 #endif
|
cannam@86
|
5582 int main(){nm_test_var='a';nm_test_func();return(0);}
|
cannam@86
|
5583 EOF
|
cannam@86
|
5584
|
cannam@86
|
5585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
5586 (eval $ac_compile) 2>&5
|
cannam@86
|
5587 ac_status=$?
|
cannam@86
|
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
5589 (exit $ac_status); }; then
|
cannam@86
|
5590 # Now try to grab the symbols.
|
cannam@86
|
5591 nlist=conftest.nm
|
cannam@86
|
5592 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
|
cannam@86
|
5593 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
|
cannam@86
|
5594 ac_status=$?
|
cannam@86
|
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
5596 (exit $ac_status); } && test -s "$nlist"; then
|
cannam@86
|
5597 # Try sorting and uniquifying the output.
|
cannam@86
|
5598 if sort "$nlist" | uniq > "$nlist"T; then
|
cannam@86
|
5599 mv -f "$nlist"T "$nlist"
|
cannam@86
|
5600 else
|
cannam@86
|
5601 rm -f "$nlist"T
|
cannam@86
|
5602 fi
|
cannam@86
|
5603
|
cannam@86
|
5604 # Make sure that we snagged all the symbols we need.
|
cannam@86
|
5605 if grep ' nm_test_var$' "$nlist" >/dev/null; then
|
cannam@86
|
5606 if grep ' nm_test_func$' "$nlist" >/dev/null; then
|
cannam@86
|
5607 cat <<EOF > conftest.$ac_ext
|
cannam@86
|
5608 #ifdef __cplusplus
|
cannam@86
|
5609 extern "C" {
|
cannam@86
|
5610 #endif
|
cannam@86
|
5611
|
cannam@86
|
5612 EOF
|
cannam@86
|
5613 # Now generate the symbol file.
|
cannam@86
|
5614 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
|
cannam@86
|
5615
|
cannam@86
|
5616 cat <<EOF >> conftest.$ac_ext
|
cannam@86
|
5617 #if defined (__STDC__) && __STDC__
|
cannam@86
|
5618 # define lt_ptr_t void *
|
cannam@86
|
5619 #else
|
cannam@86
|
5620 # define lt_ptr_t char *
|
cannam@86
|
5621 # define const
|
cannam@86
|
5622 #endif
|
cannam@86
|
5623
|
cannam@86
|
5624 /* The mapping between symbol names and symbols. */
|
cannam@86
|
5625 const struct {
|
cannam@86
|
5626 const char *name;
|
cannam@86
|
5627 lt_ptr_t address;
|
cannam@86
|
5628 }
|
cannam@86
|
5629 lt_preloaded_symbols[] =
|
cannam@86
|
5630 {
|
cannam@86
|
5631 EOF
|
cannam@86
|
5632 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
|
cannam@86
|
5633 cat <<\EOF >> conftest.$ac_ext
|
cannam@86
|
5634 {0, (lt_ptr_t) 0}
|
cannam@86
|
5635 };
|
cannam@86
|
5636
|
cannam@86
|
5637 #ifdef __cplusplus
|
cannam@86
|
5638 }
|
cannam@86
|
5639 #endif
|
cannam@86
|
5640 EOF
|
cannam@86
|
5641 # Now try linking the two files.
|
cannam@86
|
5642 mv conftest.$ac_objext conftstm.$ac_objext
|
cannam@86
|
5643 lt_save_LIBS="$LIBS"
|
cannam@86
|
5644 lt_save_CFLAGS="$CFLAGS"
|
cannam@86
|
5645 LIBS="conftstm.$ac_objext"
|
cannam@86
|
5646 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
|
cannam@86
|
5647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@86
|
5648 (eval $ac_link) 2>&5
|
cannam@86
|
5649 ac_status=$?
|
cannam@86
|
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
5651 (exit $ac_status); } && test -s conftest${ac_exeext}; then
|
cannam@86
|
5652 pipe_works=yes
|
cannam@86
|
5653 fi
|
cannam@86
|
5654 LIBS="$lt_save_LIBS"
|
cannam@86
|
5655 CFLAGS="$lt_save_CFLAGS"
|
cannam@86
|
5656 else
|
cannam@86
|
5657 echo "cannot find nm_test_func in $nlist" >&5
|
cannam@86
|
5658 fi
|
cannam@86
|
5659 else
|
cannam@86
|
5660 echo "cannot find nm_test_var in $nlist" >&5
|
cannam@86
|
5661 fi
|
cannam@86
|
5662 else
|
cannam@86
|
5663 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
|
cannam@86
|
5664 fi
|
cannam@86
|
5665 else
|
cannam@86
|
5666 echo "$progname: failed program was:" >&5
|
cannam@86
|
5667 cat conftest.$ac_ext >&5
|
cannam@86
|
5668 fi
|
cannam@86
|
5669 rm -f conftest* conftst*
|
cannam@86
|
5670
|
cannam@86
|
5671 # Do not use the global_symbol_pipe unless it works.
|
cannam@86
|
5672 if test "$pipe_works" = yes; then
|
cannam@86
|
5673 break
|
cannam@86
|
5674 else
|
cannam@86
|
5675 lt_cv_sys_global_symbol_pipe=
|
cannam@86
|
5676 fi
|
cannam@86
|
5677 done
|
cannam@86
|
5678
|
cannam@86
|
5679 fi
|
cannam@86
|
5680
|
cannam@86
|
5681 if test -z "$lt_cv_sys_global_symbol_pipe"; then
|
cannam@86
|
5682 lt_cv_sys_global_symbol_to_cdecl=
|
cannam@86
|
5683 fi
|
cannam@86
|
5684 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
|
cannam@86
|
5685 echo "$as_me:$LINENO: result: failed" >&5
|
cannam@86
|
5686 echo "${ECHO_T}failed" >&6
|
cannam@86
|
5687 else
|
cannam@86
|
5688 echo "$as_me:$LINENO: result: ok" >&5
|
cannam@86
|
5689 echo "${ECHO_T}ok" >&6
|
cannam@86
|
5690 fi
|
cannam@86
|
5691
|
cannam@86
|
5692 echo "$as_me:$LINENO: checking for objdir" >&5
|
cannam@86
|
5693 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
|
cannam@86
|
5694 if test "${lt_cv_objdir+set}" = set; then
|
cannam@86
|
5695 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
5696 else
|
cannam@86
|
5697 rm -f .libs 2>/dev/null
|
cannam@86
|
5698 mkdir .libs 2>/dev/null
|
cannam@86
|
5699 if test -d .libs; then
|
cannam@86
|
5700 lt_cv_objdir=.libs
|
cannam@86
|
5701 else
|
cannam@86
|
5702 # MS-DOS does not allow filenames that begin with a dot.
|
cannam@86
|
5703 lt_cv_objdir=_libs
|
cannam@86
|
5704 fi
|
cannam@86
|
5705 rmdir .libs 2>/dev/null
|
cannam@86
|
5706 fi
|
cannam@86
|
5707 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
|
cannam@86
|
5708 echo "${ECHO_T}$lt_cv_objdir" >&6
|
cannam@86
|
5709 objdir=$lt_cv_objdir
|
cannam@86
|
5710
|
cannam@86
|
5711
|
cannam@86
|
5712
|
cannam@86
|
5713
|
cannam@86
|
5714
|
cannam@86
|
5715 case $host_os in
|
cannam@86
|
5716 aix3*)
|
cannam@86
|
5717 # AIX sometimes has problems with the GCC collect2 program. For some
|
cannam@86
|
5718 # reason, if we set the COLLECT_NAMES environment variable, the problems
|
cannam@86
|
5719 # vanish in a puff of smoke.
|
cannam@86
|
5720 if test "X${COLLECT_NAMES+set}" != Xset; then
|
cannam@86
|
5721 COLLECT_NAMES=
|
cannam@86
|
5722 export COLLECT_NAMES
|
cannam@86
|
5723 fi
|
cannam@86
|
5724 ;;
|
cannam@86
|
5725 esac
|
cannam@86
|
5726
|
cannam@86
|
5727 # Sed substitution that helps us do robust quoting. It backslashifies
|
cannam@86
|
5728 # metacharacters that are still active within double-quoted strings.
|
cannam@86
|
5729 Xsed='sed -e 1s/^X//'
|
cannam@86
|
5730 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
|
cannam@86
|
5731
|
cannam@86
|
5732 # Same as above, but do not quote variable references.
|
cannam@86
|
5733 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
|
cannam@86
|
5734
|
cannam@86
|
5735 # Sed substitution to delay expansion of an escaped shell variable in a
|
cannam@86
|
5736 # double_quote_subst'ed string.
|
cannam@86
|
5737 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
|
cannam@86
|
5738
|
cannam@86
|
5739 # Sed substitution to avoid accidental globbing in evaled expressions
|
cannam@86
|
5740 no_glob_subst='s/\*/\\\*/g'
|
cannam@86
|
5741
|
cannam@86
|
5742 # Constants:
|
cannam@86
|
5743 rm="rm -f"
|
cannam@86
|
5744
|
cannam@86
|
5745 # Global variables:
|
cannam@86
|
5746 default_ofile=libtool
|
cannam@86
|
5747 can_build_shared=yes
|
cannam@86
|
5748
|
cannam@86
|
5749 # All known linkers require a `.a' archive for static linking (except M$VC,
|
cannam@86
|
5750 # which needs '.lib').
|
cannam@86
|
5751 libext=a
|
cannam@86
|
5752 ltmain="$ac_aux_dir/ltmain.sh"
|
cannam@86
|
5753 ofile="$default_ofile"
|
cannam@86
|
5754 with_gnu_ld="$lt_cv_prog_gnu_ld"
|
cannam@86
|
5755
|
cannam@86
|
5756 if test -n "$ac_tool_prefix"; then
|
cannam@86
|
5757 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
|
cannam@86
|
5758 set dummy ${ac_tool_prefix}ar; ac_word=$2
|
cannam@86
|
5759 echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@86
|
5760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
cannam@86
|
5761 if test "${ac_cv_prog_AR+set}" = set; then
|
cannam@86
|
5762 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
5763 else
|
cannam@86
|
5764 if test -n "$AR"; then
|
cannam@86
|
5765 ac_cv_prog_AR="$AR" # Let the user override the test.
|
cannam@86
|
5766 else
|
cannam@86
|
5767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@86
|
5768 for as_dir in $PATH
|
cannam@86
|
5769 do
|
cannam@86
|
5770 IFS=$as_save_IFS
|
cannam@86
|
5771 test -z "$as_dir" && as_dir=.
|
cannam@86
|
5772 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@86
|
5773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@86
|
5774 ac_cv_prog_AR="${ac_tool_prefix}ar"
|
cannam@86
|
5775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@86
|
5776 break 2
|
cannam@86
|
5777 fi
|
cannam@86
|
5778 done
|
cannam@86
|
5779 done
|
cannam@86
|
5780
|
cannam@86
|
5781 fi
|
cannam@86
|
5782 fi
|
cannam@86
|
5783 AR=$ac_cv_prog_AR
|
cannam@86
|
5784 if test -n "$AR"; then
|
cannam@86
|
5785 echo "$as_me:$LINENO: result: $AR" >&5
|
cannam@86
|
5786 echo "${ECHO_T}$AR" >&6
|
cannam@86
|
5787 else
|
cannam@86
|
5788 echo "$as_me:$LINENO: result: no" >&5
|
cannam@86
|
5789 echo "${ECHO_T}no" >&6
|
cannam@86
|
5790 fi
|
cannam@86
|
5791
|
cannam@86
|
5792 fi
|
cannam@86
|
5793 if test -z "$ac_cv_prog_AR"; then
|
cannam@86
|
5794 ac_ct_AR=$AR
|
cannam@86
|
5795 # Extract the first word of "ar", so it can be a program name with args.
|
cannam@86
|
5796 set dummy ar; ac_word=$2
|
cannam@86
|
5797 echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@86
|
5798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
cannam@86
|
5799 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
|
cannam@86
|
5800 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
5801 else
|
cannam@86
|
5802 if test -n "$ac_ct_AR"; then
|
cannam@86
|
5803 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
|
cannam@86
|
5804 else
|
cannam@86
|
5805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@86
|
5806 for as_dir in $PATH
|
cannam@86
|
5807 do
|
cannam@86
|
5808 IFS=$as_save_IFS
|
cannam@86
|
5809 test -z "$as_dir" && as_dir=.
|
cannam@86
|
5810 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@86
|
5811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@86
|
5812 ac_cv_prog_ac_ct_AR="ar"
|
cannam@86
|
5813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@86
|
5814 break 2
|
cannam@86
|
5815 fi
|
cannam@86
|
5816 done
|
cannam@86
|
5817 done
|
cannam@86
|
5818
|
cannam@86
|
5819 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
|
cannam@86
|
5820 fi
|
cannam@86
|
5821 fi
|
cannam@86
|
5822 ac_ct_AR=$ac_cv_prog_ac_ct_AR
|
cannam@86
|
5823 if test -n "$ac_ct_AR"; then
|
cannam@86
|
5824 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
|
cannam@86
|
5825 echo "${ECHO_T}$ac_ct_AR" >&6
|
cannam@86
|
5826 else
|
cannam@86
|
5827 echo "$as_me:$LINENO: result: no" >&5
|
cannam@86
|
5828 echo "${ECHO_T}no" >&6
|
cannam@86
|
5829 fi
|
cannam@86
|
5830
|
cannam@86
|
5831 AR=$ac_ct_AR
|
cannam@86
|
5832 else
|
cannam@86
|
5833 AR="$ac_cv_prog_AR"
|
cannam@86
|
5834 fi
|
cannam@86
|
5835
|
cannam@86
|
5836 if test -n "$ac_tool_prefix"; then
|
cannam@86
|
5837 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
cannam@86
|
5838 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
cannam@86
|
5839 echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@86
|
5840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
cannam@86
|
5841 if test "${ac_cv_prog_RANLIB+set}" = set; then
|
cannam@86
|
5842 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
5843 else
|
cannam@86
|
5844 if test -n "$RANLIB"; then
|
cannam@86
|
5845 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
cannam@86
|
5846 else
|
cannam@86
|
5847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@86
|
5848 for as_dir in $PATH
|
cannam@86
|
5849 do
|
cannam@86
|
5850 IFS=$as_save_IFS
|
cannam@86
|
5851 test -z "$as_dir" && as_dir=.
|
cannam@86
|
5852 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@86
|
5853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@86
|
5854 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
cannam@86
|
5855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@86
|
5856 break 2
|
cannam@86
|
5857 fi
|
cannam@86
|
5858 done
|
cannam@86
|
5859 done
|
cannam@86
|
5860
|
cannam@86
|
5861 fi
|
cannam@86
|
5862 fi
|
cannam@86
|
5863 RANLIB=$ac_cv_prog_RANLIB
|
cannam@86
|
5864 if test -n "$RANLIB"; then
|
cannam@86
|
5865 echo "$as_me:$LINENO: result: $RANLIB" >&5
|
cannam@86
|
5866 echo "${ECHO_T}$RANLIB" >&6
|
cannam@86
|
5867 else
|
cannam@86
|
5868 echo "$as_me:$LINENO: result: no" >&5
|
cannam@86
|
5869 echo "${ECHO_T}no" >&6
|
cannam@86
|
5870 fi
|
cannam@86
|
5871
|
cannam@86
|
5872 fi
|
cannam@86
|
5873 if test -z "$ac_cv_prog_RANLIB"; then
|
cannam@86
|
5874 ac_ct_RANLIB=$RANLIB
|
cannam@86
|
5875 # Extract the first word of "ranlib", so it can be a program name with args.
|
cannam@86
|
5876 set dummy ranlib; ac_word=$2
|
cannam@86
|
5877 echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@86
|
5878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
cannam@86
|
5879 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
|
cannam@86
|
5880 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
5881 else
|
cannam@86
|
5882 if test -n "$ac_ct_RANLIB"; then
|
cannam@86
|
5883 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
cannam@86
|
5884 else
|
cannam@86
|
5885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@86
|
5886 for as_dir in $PATH
|
cannam@86
|
5887 do
|
cannam@86
|
5888 IFS=$as_save_IFS
|
cannam@86
|
5889 test -z "$as_dir" && as_dir=.
|
cannam@86
|
5890 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@86
|
5891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@86
|
5892 ac_cv_prog_ac_ct_RANLIB="ranlib"
|
cannam@86
|
5893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@86
|
5894 break 2
|
cannam@86
|
5895 fi
|
cannam@86
|
5896 done
|
cannam@86
|
5897 done
|
cannam@86
|
5898
|
cannam@86
|
5899 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
|
cannam@86
|
5900 fi
|
cannam@86
|
5901 fi
|
cannam@86
|
5902 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
cannam@86
|
5903 if test -n "$ac_ct_RANLIB"; then
|
cannam@86
|
5904 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
|
cannam@86
|
5905 echo "${ECHO_T}$ac_ct_RANLIB" >&6
|
cannam@86
|
5906 else
|
cannam@86
|
5907 echo "$as_me:$LINENO: result: no" >&5
|
cannam@86
|
5908 echo "${ECHO_T}no" >&6
|
cannam@86
|
5909 fi
|
cannam@86
|
5910
|
cannam@86
|
5911 RANLIB=$ac_ct_RANLIB
|
cannam@86
|
5912 else
|
cannam@86
|
5913 RANLIB="$ac_cv_prog_RANLIB"
|
cannam@86
|
5914 fi
|
cannam@86
|
5915
|
cannam@86
|
5916 if test -n "$ac_tool_prefix"; then
|
cannam@86
|
5917 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
cannam@86
|
5918 set dummy ${ac_tool_prefix}strip; ac_word=$2
|
cannam@86
|
5919 echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@86
|
5920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
cannam@86
|
5921 if test "${ac_cv_prog_STRIP+set}" = set; then
|
cannam@86
|
5922 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
5923 else
|
cannam@86
|
5924 if test -n "$STRIP"; then
|
cannam@86
|
5925 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
cannam@86
|
5926 else
|
cannam@86
|
5927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@86
|
5928 for as_dir in $PATH
|
cannam@86
|
5929 do
|
cannam@86
|
5930 IFS=$as_save_IFS
|
cannam@86
|
5931 test -z "$as_dir" && as_dir=.
|
cannam@86
|
5932 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@86
|
5933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@86
|
5934 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
cannam@86
|
5935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@86
|
5936 break 2
|
cannam@86
|
5937 fi
|
cannam@86
|
5938 done
|
cannam@86
|
5939 done
|
cannam@86
|
5940
|
cannam@86
|
5941 fi
|
cannam@86
|
5942 fi
|
cannam@86
|
5943 STRIP=$ac_cv_prog_STRIP
|
cannam@86
|
5944 if test -n "$STRIP"; then
|
cannam@86
|
5945 echo "$as_me:$LINENO: result: $STRIP" >&5
|
cannam@86
|
5946 echo "${ECHO_T}$STRIP" >&6
|
cannam@86
|
5947 else
|
cannam@86
|
5948 echo "$as_me:$LINENO: result: no" >&5
|
cannam@86
|
5949 echo "${ECHO_T}no" >&6
|
cannam@86
|
5950 fi
|
cannam@86
|
5951
|
cannam@86
|
5952 fi
|
cannam@86
|
5953 if test -z "$ac_cv_prog_STRIP"; then
|
cannam@86
|
5954 ac_ct_STRIP=$STRIP
|
cannam@86
|
5955 # Extract the first word of "strip", so it can be a program name with args.
|
cannam@86
|
5956 set dummy strip; ac_word=$2
|
cannam@86
|
5957 echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@86
|
5958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
cannam@86
|
5959 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
|
cannam@86
|
5960 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
5961 else
|
cannam@86
|
5962 if test -n "$ac_ct_STRIP"; then
|
cannam@86
|
5963 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
|
cannam@86
|
5964 else
|
cannam@86
|
5965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@86
|
5966 for as_dir in $PATH
|
cannam@86
|
5967 do
|
cannam@86
|
5968 IFS=$as_save_IFS
|
cannam@86
|
5969 test -z "$as_dir" && as_dir=.
|
cannam@86
|
5970 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@86
|
5971 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@86
|
5972 ac_cv_prog_ac_ct_STRIP="strip"
|
cannam@86
|
5973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@86
|
5974 break 2
|
cannam@86
|
5975 fi
|
cannam@86
|
5976 done
|
cannam@86
|
5977 done
|
cannam@86
|
5978
|
cannam@86
|
5979 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
|
cannam@86
|
5980 fi
|
cannam@86
|
5981 fi
|
cannam@86
|
5982 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
|
cannam@86
|
5983 if test -n "$ac_ct_STRIP"; then
|
cannam@86
|
5984 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
|
cannam@86
|
5985 echo "${ECHO_T}$ac_ct_STRIP" >&6
|
cannam@86
|
5986 else
|
cannam@86
|
5987 echo "$as_me:$LINENO: result: no" >&5
|
cannam@86
|
5988 echo "${ECHO_T}no" >&6
|
cannam@86
|
5989 fi
|
cannam@86
|
5990
|
cannam@86
|
5991 STRIP=$ac_ct_STRIP
|
cannam@86
|
5992 else
|
cannam@86
|
5993 STRIP="$ac_cv_prog_STRIP"
|
cannam@86
|
5994 fi
|
cannam@86
|
5995
|
cannam@86
|
5996
|
cannam@86
|
5997 old_CC="$CC"
|
cannam@86
|
5998 old_CFLAGS="$CFLAGS"
|
cannam@86
|
5999
|
cannam@86
|
6000 # Set sane defaults for various variables
|
cannam@86
|
6001 test -z "$AR" && AR=ar
|
cannam@86
|
6002 test -z "$AR_FLAGS" && AR_FLAGS=cru
|
cannam@86
|
6003 test -z "$AS" && AS=as
|
cannam@86
|
6004 test -z "$CC" && CC=cc
|
cannam@86
|
6005 test -z "$LTCC" && LTCC=$CC
|
cannam@86
|
6006 test -z "$DLLTOOL" && DLLTOOL=dlltool
|
cannam@86
|
6007 test -z "$LD" && LD=ld
|
cannam@86
|
6008 test -z "$LN_S" && LN_S="ln -s"
|
cannam@86
|
6009 test -z "$MAGIC_CMD" && MAGIC_CMD=file
|
cannam@86
|
6010 test -z "$NM" && NM=nm
|
cannam@86
|
6011 test -z "$SED" && SED=sed
|
cannam@86
|
6012 test -z "$OBJDUMP" && OBJDUMP=objdump
|
cannam@86
|
6013 test -z "$RANLIB" && RANLIB=:
|
cannam@86
|
6014 test -z "$STRIP" && STRIP=:
|
cannam@86
|
6015 test -z "$ac_objext" && ac_objext=o
|
cannam@86
|
6016
|
cannam@86
|
6017 # Determine commands to create old-style static archives.
|
cannam@86
|
6018 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
|
cannam@86
|
6019 old_postinstall_cmds='chmod 644 $oldlib'
|
cannam@86
|
6020 old_postuninstall_cmds=
|
cannam@86
|
6021
|
cannam@86
|
6022 if test -n "$RANLIB"; then
|
cannam@86
|
6023 case $host_os in
|
cannam@86
|
6024 openbsd*)
|
cannam@86
|
6025 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
|
cannam@86
|
6026 ;;
|
cannam@86
|
6027 *)
|
cannam@86
|
6028 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
|
cannam@86
|
6029 ;;
|
cannam@86
|
6030 esac
|
cannam@86
|
6031 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
|
cannam@86
|
6032 fi
|
cannam@86
|
6033
|
cannam@86
|
6034 for cc_temp in $compiler""; do
|
cannam@86
|
6035 case $cc_temp in
|
cannam@86
|
6036 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
cannam@86
|
6037 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
cannam@86
|
6038 \-*) ;;
|
cannam@86
|
6039 *) break;;
|
cannam@86
|
6040 esac
|
cannam@86
|
6041 done
|
cannam@86
|
6042 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
cannam@86
|
6043
|
cannam@86
|
6044
|
cannam@86
|
6045 # Only perform the check for file, if the check method requires it
|
cannam@86
|
6046 case $deplibs_check_method in
|
cannam@86
|
6047 file_magic*)
|
cannam@86
|
6048 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
cannam@86
|
6049 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
|
cannam@86
|
6050 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
|
cannam@86
|
6051 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
|
cannam@86
|
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
6053 else
|
cannam@86
|
6054 case $MAGIC_CMD in
|
cannam@86
|
6055 [\\/*] | ?:[\\/]*)
|
cannam@86
|
6056 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
cannam@86
|
6057 ;;
|
cannam@86
|
6058 *)
|
cannam@86
|
6059 lt_save_MAGIC_CMD="$MAGIC_CMD"
|
cannam@86
|
6060 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
cannam@86
|
6061 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
|
cannam@86
|
6062 for ac_dir in $ac_dummy; do
|
cannam@86
|
6063 IFS="$lt_save_ifs"
|
cannam@86
|
6064 test -z "$ac_dir" && ac_dir=.
|
cannam@86
|
6065 if test -f $ac_dir/${ac_tool_prefix}file; then
|
cannam@86
|
6066 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
|
cannam@86
|
6067 if test -n "$file_magic_test_file"; then
|
cannam@86
|
6068 case $deplibs_check_method in
|
cannam@86
|
6069 "file_magic "*)
|
cannam@86
|
6070 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
cannam@86
|
6071 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
cannam@86
|
6072 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
cannam@86
|
6073 $EGREP "$file_magic_regex" > /dev/null; then
|
cannam@86
|
6074 :
|
cannam@86
|
6075 else
|
cannam@86
|
6076 cat <<EOF 1>&2
|
cannam@86
|
6077
|
cannam@86
|
6078 *** Warning: the command libtool uses to detect shared libraries,
|
cannam@86
|
6079 *** $file_magic_cmd, produces output that libtool cannot recognize.
|
cannam@86
|
6080 *** The result is that libtool may fail to recognize shared libraries
|
cannam@86
|
6081 *** as such. This will affect the creation of libtool libraries that
|
cannam@86
|
6082 *** depend on shared libraries, but programs linked with such libtool
|
cannam@86
|
6083 *** libraries will work regardless of this problem. Nevertheless, you
|
cannam@86
|
6084 *** may want to report the problem to your system manager and/or to
|
cannam@86
|
6085 *** bug-libtool@gnu.org
|
cannam@86
|
6086
|
cannam@86
|
6087 EOF
|
cannam@86
|
6088 fi ;;
|
cannam@86
|
6089 esac
|
cannam@86
|
6090 fi
|
cannam@86
|
6091 break
|
cannam@86
|
6092 fi
|
cannam@86
|
6093 done
|
cannam@86
|
6094 IFS="$lt_save_ifs"
|
cannam@86
|
6095 MAGIC_CMD="$lt_save_MAGIC_CMD"
|
cannam@86
|
6096 ;;
|
cannam@86
|
6097 esac
|
cannam@86
|
6098 fi
|
cannam@86
|
6099
|
cannam@86
|
6100 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
cannam@86
|
6101 if test -n "$MAGIC_CMD"; then
|
cannam@86
|
6102 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
|
cannam@86
|
6103 echo "${ECHO_T}$MAGIC_CMD" >&6
|
cannam@86
|
6104 else
|
cannam@86
|
6105 echo "$as_me:$LINENO: result: no" >&5
|
cannam@86
|
6106 echo "${ECHO_T}no" >&6
|
cannam@86
|
6107 fi
|
cannam@86
|
6108
|
cannam@86
|
6109 if test -z "$lt_cv_path_MAGIC_CMD"; then
|
cannam@86
|
6110 if test -n "$ac_tool_prefix"; then
|
cannam@86
|
6111 echo "$as_me:$LINENO: checking for file" >&5
|
cannam@86
|
6112 echo $ECHO_N "checking for file... $ECHO_C" >&6
|
cannam@86
|
6113 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
|
cannam@86
|
6114 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
6115 else
|
cannam@86
|
6116 case $MAGIC_CMD in
|
cannam@86
|
6117 [\\/*] | ?:[\\/]*)
|
cannam@86
|
6118 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
cannam@86
|
6119 ;;
|
cannam@86
|
6120 *)
|
cannam@86
|
6121 lt_save_MAGIC_CMD="$MAGIC_CMD"
|
cannam@86
|
6122 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
cannam@86
|
6123 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
|
cannam@86
|
6124 for ac_dir in $ac_dummy; do
|
cannam@86
|
6125 IFS="$lt_save_ifs"
|
cannam@86
|
6126 test -z "$ac_dir" && ac_dir=.
|
cannam@86
|
6127 if test -f $ac_dir/file; then
|
cannam@86
|
6128 lt_cv_path_MAGIC_CMD="$ac_dir/file"
|
cannam@86
|
6129 if test -n "$file_magic_test_file"; then
|
cannam@86
|
6130 case $deplibs_check_method in
|
cannam@86
|
6131 "file_magic "*)
|
cannam@86
|
6132 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
cannam@86
|
6133 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
cannam@86
|
6134 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
cannam@86
|
6135 $EGREP "$file_magic_regex" > /dev/null; then
|
cannam@86
|
6136 :
|
cannam@86
|
6137 else
|
cannam@86
|
6138 cat <<EOF 1>&2
|
cannam@86
|
6139
|
cannam@86
|
6140 *** Warning: the command libtool uses to detect shared libraries,
|
cannam@86
|
6141 *** $file_magic_cmd, produces output that libtool cannot recognize.
|
cannam@86
|
6142 *** The result is that libtool may fail to recognize shared libraries
|
cannam@86
|
6143 *** as such. This will affect the creation of libtool libraries that
|
cannam@86
|
6144 *** depend on shared libraries, but programs linked with such libtool
|
cannam@86
|
6145 *** libraries will work regardless of this problem. Nevertheless, you
|
cannam@86
|
6146 *** may want to report the problem to your system manager and/or to
|
cannam@86
|
6147 *** bug-libtool@gnu.org
|
cannam@86
|
6148
|
cannam@86
|
6149 EOF
|
cannam@86
|
6150 fi ;;
|
cannam@86
|
6151 esac
|
cannam@86
|
6152 fi
|
cannam@86
|
6153 break
|
cannam@86
|
6154 fi
|
cannam@86
|
6155 done
|
cannam@86
|
6156 IFS="$lt_save_ifs"
|
cannam@86
|
6157 MAGIC_CMD="$lt_save_MAGIC_CMD"
|
cannam@86
|
6158 ;;
|
cannam@86
|
6159 esac
|
cannam@86
|
6160 fi
|
cannam@86
|
6161
|
cannam@86
|
6162 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
cannam@86
|
6163 if test -n "$MAGIC_CMD"; then
|
cannam@86
|
6164 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
|
cannam@86
|
6165 echo "${ECHO_T}$MAGIC_CMD" >&6
|
cannam@86
|
6166 else
|
cannam@86
|
6167 echo "$as_me:$LINENO: result: no" >&5
|
cannam@86
|
6168 echo "${ECHO_T}no" >&6
|
cannam@86
|
6169 fi
|
cannam@86
|
6170
|
cannam@86
|
6171 else
|
cannam@86
|
6172 MAGIC_CMD=:
|
cannam@86
|
6173 fi
|
cannam@86
|
6174 fi
|
cannam@86
|
6175
|
cannam@86
|
6176 fi
|
cannam@86
|
6177 ;;
|
cannam@86
|
6178 esac
|
cannam@86
|
6179
|
cannam@86
|
6180 enable_dlopen=no
|
cannam@86
|
6181 enable_win32_dll=no
|
cannam@86
|
6182
|
cannam@86
|
6183 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
|
cannam@86
|
6184 if test "${enable_libtool_lock+set}" = set; then
|
cannam@86
|
6185 enableval="$enable_libtool_lock"
|
cannam@86
|
6186
|
cannam@86
|
6187 fi;
|
cannam@86
|
6188 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
|
cannam@86
|
6189
|
cannam@86
|
6190
|
cannam@86
|
6191 # Check whether --with-pic or --without-pic was given.
|
cannam@86
|
6192 if test "${with_pic+set}" = set; then
|
cannam@86
|
6193 withval="$with_pic"
|
cannam@86
|
6194 pic_mode="$withval"
|
cannam@86
|
6195 else
|
cannam@86
|
6196 pic_mode=default
|
cannam@86
|
6197 fi;
|
cannam@86
|
6198 test -z "$pic_mode" && pic_mode=default
|
cannam@86
|
6199
|
cannam@86
|
6200 # Use C for the default configuration in the libtool script
|
cannam@86
|
6201 tagname=
|
cannam@86
|
6202 lt_save_CC="$CC"
|
cannam@86
|
6203 ac_ext=c
|
cannam@86
|
6204 ac_cpp='$CPP $CPPFLAGS'
|
cannam@86
|
6205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
cannam@86
|
6206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
cannam@86
|
6207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
cannam@86
|
6208
|
cannam@86
|
6209
|
cannam@86
|
6210 # Source file extension for C test sources.
|
cannam@86
|
6211 ac_ext=c
|
cannam@86
|
6212
|
cannam@86
|
6213 # Object file extension for compiled C test sources.
|
cannam@86
|
6214 objext=o
|
cannam@86
|
6215 objext=$objext
|
cannam@86
|
6216
|
cannam@86
|
6217 # Code to be used in simple compile tests
|
cannam@86
|
6218 lt_simple_compile_test_code="int some_variable = 0;\n"
|
cannam@86
|
6219
|
cannam@86
|
6220 # Code to be used in simple link tests
|
cannam@86
|
6221 lt_simple_link_test_code='int main(){return(0);}\n'
|
cannam@86
|
6222
|
cannam@86
|
6223
|
cannam@86
|
6224 # If no C compiler was specified, use CC.
|
cannam@86
|
6225 LTCC=${LTCC-"$CC"}
|
cannam@86
|
6226
|
cannam@86
|
6227 # Allow CC to be a program name with arguments.
|
cannam@86
|
6228 compiler=$CC
|
cannam@86
|
6229
|
cannam@86
|
6230
|
cannam@86
|
6231 # save warnings/boilerplate of simple test code
|
cannam@86
|
6232 ac_outfile=conftest.$ac_objext
|
cannam@86
|
6233 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
|
cannam@86
|
6234 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
|
cannam@86
|
6235 _lt_compiler_boilerplate=`cat conftest.err`
|
cannam@86
|
6236 $rm conftest*
|
cannam@86
|
6237
|
cannam@86
|
6238 ac_outfile=conftest.$ac_objext
|
cannam@86
|
6239 printf "$lt_simple_link_test_code" >conftest.$ac_ext
|
cannam@86
|
6240 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
|
cannam@86
|
6241 _lt_linker_boilerplate=`cat conftest.err`
|
cannam@86
|
6242 $rm conftest*
|
cannam@86
|
6243
|
cannam@86
|
6244
|
cannam@86
|
6245 #
|
cannam@86
|
6246 # Check for any special shared library compilation flags.
|
cannam@86
|
6247 #
|
cannam@86
|
6248 lt_prog_cc_shlib=
|
cannam@86
|
6249 if test "$GCC" = no; then
|
cannam@86
|
6250 case $host_os in
|
cannam@86
|
6251 sco3.2v5*)
|
cannam@86
|
6252 lt_prog_cc_shlib='-belf'
|
cannam@86
|
6253 ;;
|
cannam@86
|
6254 esac
|
cannam@86
|
6255 fi
|
cannam@86
|
6256 if test -n "$lt_prog_cc_shlib"; then
|
cannam@86
|
6257 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
|
cannam@86
|
6258 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
|
cannam@86
|
6259 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
|
cannam@86
|
6260 else
|
cannam@86
|
6261 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
|
cannam@86
|
6262 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
|
cannam@86
|
6263 lt_cv_prog_cc_can_build_shared=no
|
cannam@86
|
6264 fi
|
cannam@86
|
6265 fi
|
cannam@86
|
6266
|
cannam@86
|
6267
|
cannam@86
|
6268 #
|
cannam@86
|
6269 # Check to make sure the static flag actually works.
|
cannam@86
|
6270 #
|
cannam@86
|
6271 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
|
cannam@86
|
6272 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
|
cannam@86
|
6273 if test "${lt_prog_compiler_static_works+set}" = set; then
|
cannam@86
|
6274 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
6275 else
|
cannam@86
|
6276 lt_prog_compiler_static_works=no
|
cannam@86
|
6277 save_LDFLAGS="$LDFLAGS"
|
cannam@86
|
6278 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
|
cannam@86
|
6279 printf "$lt_simple_link_test_code" > conftest.$ac_ext
|
cannam@86
|
6280 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
cannam@86
|
6281 # The compiler can only warn and ignore the option if not recognized
|
cannam@86
|
6282 # So say no if there are warnings
|
cannam@86
|
6283 if test -s conftest.err; then
|
cannam@86
|
6284 # Append any errors to the config.log.
|
cannam@86
|
6285 cat conftest.err 1>&5
|
cannam@86
|
6286 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
|
cannam@86
|
6287 $SED '/^$/d' conftest.err >conftest.er2
|
cannam@86
|
6288 if diff conftest.exp conftest.er2 >/dev/null; then
|
cannam@86
|
6289 lt_prog_compiler_static_works=yes
|
cannam@86
|
6290 fi
|
cannam@86
|
6291 else
|
cannam@86
|
6292 lt_prog_compiler_static_works=yes
|
cannam@86
|
6293 fi
|
cannam@86
|
6294 fi
|
cannam@86
|
6295 $rm conftest*
|
cannam@86
|
6296 LDFLAGS="$save_LDFLAGS"
|
cannam@86
|
6297
|
cannam@86
|
6298 fi
|
cannam@86
|
6299 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
|
cannam@86
|
6300 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
|
cannam@86
|
6301
|
cannam@86
|
6302 if test x"$lt_prog_compiler_static_works" = xyes; then
|
cannam@86
|
6303 :
|
cannam@86
|
6304 else
|
cannam@86
|
6305 lt_prog_compiler_static=
|
cannam@86
|
6306 fi
|
cannam@86
|
6307
|
cannam@86
|
6308
|
cannam@86
|
6309
|
cannam@86
|
6310
|
cannam@86
|
6311 lt_prog_compiler_no_builtin_flag=
|
cannam@86
|
6312
|
cannam@86
|
6313 if test "$GCC" = yes; then
|
cannam@86
|
6314 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
|
cannam@86
|
6315
|
cannam@86
|
6316
|
cannam@86
|
6317 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
|
cannam@86
|
6318 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
|
cannam@86
|
6319 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
|
cannam@86
|
6320 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
6321 else
|
cannam@86
|
6322 lt_cv_prog_compiler_rtti_exceptions=no
|
cannam@86
|
6323 ac_outfile=conftest.$ac_objext
|
cannam@86
|
6324 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
cannam@86
|
6325 lt_compiler_flag="-fno-rtti -fno-exceptions"
|
cannam@86
|
6326 # Insert the option either (1) after the last *FLAGS variable, or
|
cannam@86
|
6327 # (2) before a word containing "conftest.", or (3) at the end.
|
cannam@86
|
6328 # Note that $ac_compile itself does not contain backslashes and begins
|
cannam@86
|
6329 # with a dollar sign (not a hyphen), so the echo should work correctly.
|
cannam@86
|
6330 # The option is referenced via a variable to avoid confusing sed.
|
cannam@86
|
6331 lt_compile=`echo "$ac_compile" | $SED \
|
cannam@86
|
6332 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
cannam@86
|
6333 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
cannam@86
|
6334 -e 's:$: $lt_compiler_flag:'`
|
cannam@86
|
6335 (eval echo "\"\$as_me:6335: $lt_compile\"" >&5)
|
cannam@86
|
6336 (eval "$lt_compile" 2>conftest.err)
|
cannam@86
|
6337 ac_status=$?
|
cannam@86
|
6338 cat conftest.err >&5
|
cannam@86
|
6339 echo "$as_me:6339: \$? = $ac_status" >&5
|
cannam@86
|
6340 if (exit $ac_status) && test -s "$ac_outfile"; then
|
cannam@86
|
6341 # The compiler can only warn and ignore the option if not recognized
|
cannam@86
|
6342 # So say no if there are warnings other than the usual output.
|
cannam@86
|
6343 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
|
cannam@86
|
6344 $SED '/^$/d' conftest.err >conftest.er2
|
cannam@86
|
6345 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
|
cannam@86
|
6346 lt_cv_prog_compiler_rtti_exceptions=yes
|
cannam@86
|
6347 fi
|
cannam@86
|
6348 fi
|
cannam@86
|
6349 $rm conftest*
|
cannam@86
|
6350
|
cannam@86
|
6351 fi
|
cannam@86
|
6352 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
|
cannam@86
|
6353 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
|
cannam@86
|
6354
|
cannam@86
|
6355 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
|
cannam@86
|
6356 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
|
cannam@86
|
6357 else
|
cannam@86
|
6358 :
|
cannam@86
|
6359 fi
|
cannam@86
|
6360
|
cannam@86
|
6361 fi
|
cannam@86
|
6362
|
cannam@86
|
6363 lt_prog_compiler_wl=
|
cannam@86
|
6364 lt_prog_compiler_pic=
|
cannam@86
|
6365 lt_prog_compiler_static=
|
cannam@86
|
6366
|
cannam@86
|
6367 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
|
cannam@86
|
6368 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
|
cannam@86
|
6369
|
cannam@86
|
6370 if test "$GCC" = yes; then
|
cannam@86
|
6371 lt_prog_compiler_wl='-Wl,'
|
cannam@86
|
6372 lt_prog_compiler_static='-static'
|
cannam@86
|
6373
|
cannam@86
|
6374 case $host_os in
|
cannam@86
|
6375 aix*)
|
cannam@86
|
6376 # All AIX code is PIC.
|
cannam@86
|
6377 if test "$host_cpu" = ia64; then
|
cannam@86
|
6378 # AIX 5 now supports IA64 processor
|
cannam@86
|
6379 lt_prog_compiler_static='-Bstatic'
|
cannam@86
|
6380 fi
|
cannam@86
|
6381 ;;
|
cannam@86
|
6382
|
cannam@86
|
6383 amigaos*)
|
cannam@86
|
6384 # FIXME: we need at least 68020 code to build shared libraries, but
|
cannam@86
|
6385 # adding the `-m68020' flag to GCC prevents building anything better,
|
cannam@86
|
6386 # like `-m68040'.
|
cannam@86
|
6387 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
|
cannam@86
|
6388 ;;
|
cannam@86
|
6389
|
cannam@86
|
6390 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
cannam@86
|
6391 # PIC is the default for these OSes.
|
cannam@86
|
6392 ;;
|
cannam@86
|
6393
|
cannam@86
|
6394 mingw* | pw32* | os2*)
|
cannam@86
|
6395 # This hack is so that the source file can tell whether it is being
|
cannam@86
|
6396 # built for inclusion in a dll (and should export symbols for example).
|
cannam@86
|
6397 lt_prog_compiler_pic='-DDLL_EXPORT'
|
cannam@86
|
6398 ;;
|
cannam@86
|
6399
|
cannam@86
|
6400 darwin* | rhapsody*)
|
cannam@86
|
6401 # PIC is the default on this platform
|
cannam@86
|
6402 # Common symbols not allowed in MH_DYLIB files
|
cannam@86
|
6403 lt_prog_compiler_pic='-fno-common'
|
cannam@86
|
6404 ;;
|
cannam@86
|
6405
|
cannam@86
|
6406 msdosdjgpp*)
|
cannam@86
|
6407 # Just because we use GCC doesn't mean we suddenly get shared libraries
|
cannam@86
|
6408 # on systems that don't support them.
|
cannam@86
|
6409 lt_prog_compiler_can_build_shared=no
|
cannam@86
|
6410 enable_shared=no
|
cannam@86
|
6411 ;;
|
cannam@86
|
6412
|
cannam@86
|
6413 sysv4*MP*)
|
cannam@86
|
6414 if test -d /usr/nec; then
|
cannam@86
|
6415 lt_prog_compiler_pic=-Kconform_pic
|
cannam@86
|
6416 fi
|
cannam@86
|
6417 ;;
|
cannam@86
|
6418
|
cannam@86
|
6419 hpux*)
|
cannam@86
|
6420 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
cannam@86
|
6421 # not for PA HP-UX.
|
cannam@86
|
6422 case "$host_cpu" in
|
cannam@86
|
6423 hppa*64*|ia64*)
|
cannam@86
|
6424 # +Z the default
|
cannam@86
|
6425 ;;
|
cannam@86
|
6426 *)
|
cannam@86
|
6427 lt_prog_compiler_pic='-fPIC'
|
cannam@86
|
6428 ;;
|
cannam@86
|
6429 esac
|
cannam@86
|
6430 ;;
|
cannam@86
|
6431
|
cannam@86
|
6432 *)
|
cannam@86
|
6433 lt_prog_compiler_pic='-fPIC'
|
cannam@86
|
6434 ;;
|
cannam@86
|
6435 esac
|
cannam@86
|
6436 else
|
cannam@86
|
6437 # PORTME Check for flag to pass linker flags through the system compiler.
|
cannam@86
|
6438 case $host_os in
|
cannam@86
|
6439 aix*)
|
cannam@86
|
6440 lt_prog_compiler_wl='-Wl,'
|
cannam@86
|
6441 if test "$host_cpu" = ia64; then
|
cannam@86
|
6442 # AIX 5 now supports IA64 processor
|
cannam@86
|
6443 lt_prog_compiler_static='-Bstatic'
|
cannam@86
|
6444 else
|
cannam@86
|
6445 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
|
cannam@86
|
6446 fi
|
cannam@86
|
6447 ;;
|
cannam@86
|
6448 darwin*)
|
cannam@86
|
6449 # PIC is the default on this platform
|
cannam@86
|
6450 # Common symbols not allowed in MH_DYLIB files
|
cannam@86
|
6451 case $cc_basename in
|
cannam@86
|
6452 xlc*)
|
cannam@86
|
6453 lt_prog_compiler_pic='-qnocommon'
|
cannam@86
|
6454 lt_prog_compiler_wl='-Wl,'
|
cannam@86
|
6455 ;;
|
cannam@86
|
6456 esac
|
cannam@86
|
6457 ;;
|
cannam@86
|
6458
|
cannam@86
|
6459 mingw* | pw32* | os2*)
|
cannam@86
|
6460 # This hack is so that the source file can tell whether it is being
|
cannam@86
|
6461 # built for inclusion in a dll (and should export symbols for example).
|
cannam@86
|
6462 lt_prog_compiler_pic='-DDLL_EXPORT'
|
cannam@86
|
6463 ;;
|
cannam@86
|
6464
|
cannam@86
|
6465 hpux9* | hpux10* | hpux11*)
|
cannam@86
|
6466 lt_prog_compiler_wl='-Wl,'
|
cannam@86
|
6467 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
cannam@86
|
6468 # not for PA HP-UX.
|
cannam@86
|
6469 case "$host_cpu" in
|
cannam@86
|
6470 hppa*64*|ia64*)
|
cannam@86
|
6471 # +Z the default
|
cannam@86
|
6472 ;;
|
cannam@86
|
6473 *)
|
cannam@86
|
6474 lt_prog_compiler_pic='+Z'
|
cannam@86
|
6475 ;;
|
cannam@86
|
6476 esac
|
cannam@86
|
6477 # Is there a better lt_prog_compiler_static that works with the bundled CC?
|
cannam@86
|
6478 lt_prog_compiler_static='${wl}-a ${wl}archive'
|
cannam@86
|
6479 ;;
|
cannam@86
|
6480
|
cannam@86
|
6481 irix5* | irix6* | nonstopux*)
|
cannam@86
|
6482 lt_prog_compiler_wl='-Wl,'
|
cannam@86
|
6483 # PIC (with -KPIC) is the default.
|
cannam@86
|
6484 lt_prog_compiler_static='-non_shared'
|
cannam@86
|
6485 ;;
|
cannam@86
|
6486
|
cannam@86
|
6487 newsos6)
|
cannam@86
|
6488 lt_prog_compiler_pic='-KPIC'
|
cannam@86
|
6489 lt_prog_compiler_static='-Bstatic'
|
cannam@86
|
6490 ;;
|
cannam@86
|
6491
|
cannam@86
|
6492 linux*)
|
cannam@86
|
6493 case $cc_basename in
|
cannam@86
|
6494 icc* | ecc*)
|
cannam@86
|
6495 lt_prog_compiler_wl='-Wl,'
|
cannam@86
|
6496 lt_prog_compiler_pic='-KPIC'
|
cannam@86
|
6497 lt_prog_compiler_static='-static'
|
cannam@86
|
6498 ;;
|
cannam@86
|
6499 pgcc* | pgf77* | pgf90*)
|
cannam@86
|
6500 # Portland Group compilers (*not* the Pentium gcc compiler,
|
cannam@86
|
6501 # which looks to be a dead project)
|
cannam@86
|
6502 lt_prog_compiler_wl='-Wl,'
|
cannam@86
|
6503 lt_prog_compiler_pic='-fpic'
|
cannam@86
|
6504 lt_prog_compiler_static='-static'
|
cannam@86
|
6505 ;;
|
cannam@86
|
6506 ccc*)
|
cannam@86
|
6507 lt_prog_compiler_wl='-Wl,'
|
cannam@86
|
6508 # All Alpha code is PIC.
|
cannam@86
|
6509 lt_prog_compiler_static='-non_shared'
|
cannam@86
|
6510 ;;
|
cannam@86
|
6511 esac
|
cannam@86
|
6512 ;;
|
cannam@86
|
6513
|
cannam@86
|
6514 osf3* | osf4* | osf5*)
|
cannam@86
|
6515 lt_prog_compiler_wl='-Wl,'
|
cannam@86
|
6516 # All OSF/1 code is PIC.
|
cannam@86
|
6517 lt_prog_compiler_static='-non_shared'
|
cannam@86
|
6518 ;;
|
cannam@86
|
6519
|
cannam@86
|
6520 sco3.2v5*)
|
cannam@86
|
6521 lt_prog_compiler_pic='-Kpic'
|
cannam@86
|
6522 lt_prog_compiler_static='-dn'
|
cannam@86
|
6523 ;;
|
cannam@86
|
6524
|
cannam@86
|
6525 solaris*)
|
cannam@86
|
6526 lt_prog_compiler_pic='-KPIC'
|
cannam@86
|
6527 lt_prog_compiler_static='-Bstatic'
|
cannam@86
|
6528 case $cc_basename in
|
cannam@86
|
6529 f77* | f90* | f95*)
|
cannam@86
|
6530 lt_prog_compiler_wl='-Qoption ld ';;
|
cannam@86
|
6531 *)
|
cannam@86
|
6532 lt_prog_compiler_wl='-Wl,';;
|
cannam@86
|
6533 esac
|
cannam@86
|
6534 ;;
|
cannam@86
|
6535
|
cannam@86
|
6536 sunos4*)
|
cannam@86
|
6537 lt_prog_compiler_wl='-Qoption ld '
|
cannam@86
|
6538 lt_prog_compiler_pic='-PIC'
|
cannam@86
|
6539 lt_prog_compiler_static='-Bstatic'
|
cannam@86
|
6540 ;;
|
cannam@86
|
6541
|
cannam@86
|
6542 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
cannam@86
|
6543 lt_prog_compiler_wl='-Wl,'
|
cannam@86
|
6544 lt_prog_compiler_pic='-KPIC'
|
cannam@86
|
6545 lt_prog_compiler_static='-Bstatic'
|
cannam@86
|
6546 ;;
|
cannam@86
|
6547
|
cannam@86
|
6548 sysv4*MP*)
|
cannam@86
|
6549 if test -d /usr/nec ;then
|
cannam@86
|
6550 lt_prog_compiler_pic='-Kconform_pic'
|
cannam@86
|
6551 lt_prog_compiler_static='-Bstatic'
|
cannam@86
|
6552 fi
|
cannam@86
|
6553 ;;
|
cannam@86
|
6554
|
cannam@86
|
6555 unicos*)
|
cannam@86
|
6556 lt_prog_compiler_wl='-Wl,'
|
cannam@86
|
6557 lt_prog_compiler_can_build_shared=no
|
cannam@86
|
6558 ;;
|
cannam@86
|
6559
|
cannam@86
|
6560 uts4*)
|
cannam@86
|
6561 lt_prog_compiler_pic='-pic'
|
cannam@86
|
6562 lt_prog_compiler_static='-Bstatic'
|
cannam@86
|
6563 ;;
|
cannam@86
|
6564
|
cannam@86
|
6565 *)
|
cannam@86
|
6566 lt_prog_compiler_can_build_shared=no
|
cannam@86
|
6567 ;;
|
cannam@86
|
6568 esac
|
cannam@86
|
6569 fi
|
cannam@86
|
6570
|
cannam@86
|
6571 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
|
cannam@86
|
6572 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
|
cannam@86
|
6573
|
cannam@86
|
6574 #
|
cannam@86
|
6575 # Check to make sure the PIC flag actually works.
|
cannam@86
|
6576 #
|
cannam@86
|
6577 if test -n "$lt_prog_compiler_pic"; then
|
cannam@86
|
6578
|
cannam@86
|
6579 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
|
cannam@86
|
6580 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
|
cannam@86
|
6581 if test "${lt_prog_compiler_pic_works+set}" = set; then
|
cannam@86
|
6582 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
6583 else
|
cannam@86
|
6584 lt_prog_compiler_pic_works=no
|
cannam@86
|
6585 ac_outfile=conftest.$ac_objext
|
cannam@86
|
6586 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
cannam@86
|
6587 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
|
cannam@86
|
6588 # Insert the option either (1) after the last *FLAGS variable, or
|
cannam@86
|
6589 # (2) before a word containing "conftest.", or (3) at the end.
|
cannam@86
|
6590 # Note that $ac_compile itself does not contain backslashes and begins
|
cannam@86
|
6591 # with a dollar sign (not a hyphen), so the echo should work correctly.
|
cannam@86
|
6592 # The option is referenced via a variable to avoid confusing sed.
|
cannam@86
|
6593 lt_compile=`echo "$ac_compile" | $SED \
|
cannam@86
|
6594 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
cannam@86
|
6595 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
cannam@86
|
6596 -e 's:$: $lt_compiler_flag:'`
|
cannam@86
|
6597 (eval echo "\"\$as_me:6597: $lt_compile\"" >&5)
|
cannam@86
|
6598 (eval "$lt_compile" 2>conftest.err)
|
cannam@86
|
6599 ac_status=$?
|
cannam@86
|
6600 cat conftest.err >&5
|
cannam@86
|
6601 echo "$as_me:6601: \$? = $ac_status" >&5
|
cannam@86
|
6602 if (exit $ac_status) && test -s "$ac_outfile"; then
|
cannam@86
|
6603 # The compiler can only warn and ignore the option if not recognized
|
cannam@86
|
6604 # So say no if there are warnings other than the usual output.
|
cannam@86
|
6605 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
|
cannam@86
|
6606 $SED '/^$/d' conftest.err >conftest.er2
|
cannam@86
|
6607 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
|
cannam@86
|
6608 lt_prog_compiler_pic_works=yes
|
cannam@86
|
6609 fi
|
cannam@86
|
6610 fi
|
cannam@86
|
6611 $rm conftest*
|
cannam@86
|
6612
|
cannam@86
|
6613 fi
|
cannam@86
|
6614 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
|
cannam@86
|
6615 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
|
cannam@86
|
6616
|
cannam@86
|
6617 if test x"$lt_prog_compiler_pic_works" = xyes; then
|
cannam@86
|
6618 case $lt_prog_compiler_pic in
|
cannam@86
|
6619 "" | " "*) ;;
|
cannam@86
|
6620 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
|
cannam@86
|
6621 esac
|
cannam@86
|
6622 else
|
cannam@86
|
6623 lt_prog_compiler_pic=
|
cannam@86
|
6624 lt_prog_compiler_can_build_shared=no
|
cannam@86
|
6625 fi
|
cannam@86
|
6626
|
cannam@86
|
6627 fi
|
cannam@86
|
6628 case "$host_os" in
|
cannam@86
|
6629 # For platforms which do not support PIC, -DPIC is meaningless:
|
cannam@86
|
6630 *djgpp*)
|
cannam@86
|
6631 lt_prog_compiler_pic=
|
cannam@86
|
6632 ;;
|
cannam@86
|
6633 *)
|
cannam@86
|
6634 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
|
cannam@86
|
6635 ;;
|
cannam@86
|
6636 esac
|
cannam@86
|
6637
|
cannam@86
|
6638 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
|
cannam@86
|
6639 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
|
cannam@86
|
6640 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
|
cannam@86
|
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
6642 else
|
cannam@86
|
6643 lt_cv_prog_compiler_c_o=no
|
cannam@86
|
6644 $rm -r conftest 2>/dev/null
|
cannam@86
|
6645 mkdir conftest
|
cannam@86
|
6646 cd conftest
|
cannam@86
|
6647 mkdir out
|
cannam@86
|
6648 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
cannam@86
|
6649
|
cannam@86
|
6650 lt_compiler_flag="-o out/conftest2.$ac_objext"
|
cannam@86
|
6651 # Insert the option either (1) after the last *FLAGS variable, or
|
cannam@86
|
6652 # (2) before a word containing "conftest.", or (3) at the end.
|
cannam@86
|
6653 # Note that $ac_compile itself does not contain backslashes and begins
|
cannam@86
|
6654 # with a dollar sign (not a hyphen), so the echo should work correctly.
|
cannam@86
|
6655 lt_compile=`echo "$ac_compile" | $SED \
|
cannam@86
|
6656 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
cannam@86
|
6657 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
cannam@86
|
6658 -e 's:$: $lt_compiler_flag:'`
|
cannam@86
|
6659 (eval echo "\"\$as_me:6659: $lt_compile\"" >&5)
|
cannam@86
|
6660 (eval "$lt_compile" 2>out/conftest.err)
|
cannam@86
|
6661 ac_status=$?
|
cannam@86
|
6662 cat out/conftest.err >&5
|
cannam@86
|
6663 echo "$as_me:6663: \$? = $ac_status" >&5
|
cannam@86
|
6664 if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
cannam@86
|
6665 then
|
cannam@86
|
6666 # The compiler can only warn and ignore the option if not recognized
|
cannam@86
|
6667 # So say no if there are warnings
|
cannam@86
|
6668 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
|
cannam@86
|
6669 $SED '/^$/d' out/conftest.err >out/conftest.er2
|
cannam@86
|
6670 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
cannam@86
|
6671 lt_cv_prog_compiler_c_o=yes
|
cannam@86
|
6672 fi
|
cannam@86
|
6673 fi
|
cannam@86
|
6674 chmod u+w .
|
cannam@86
|
6675 $rm conftest*
|
cannam@86
|
6676 # SGI C++ compiler will create directory out/ii_files/ for
|
cannam@86
|
6677 # template instantiation
|
cannam@86
|
6678 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
|
cannam@86
|
6679 $rm out/* && rmdir out
|
cannam@86
|
6680 cd ..
|
cannam@86
|
6681 rmdir conftest
|
cannam@86
|
6682 $rm conftest*
|
cannam@86
|
6683
|
cannam@86
|
6684 fi
|
cannam@86
|
6685 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
|
cannam@86
|
6686 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
|
cannam@86
|
6687
|
cannam@86
|
6688
|
cannam@86
|
6689 hard_links="nottested"
|
cannam@86
|
6690 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
|
cannam@86
|
6691 # do not overwrite the value of need_locks provided by the user
|
cannam@86
|
6692 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
|
cannam@86
|
6693 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
|
cannam@86
|
6694 hard_links=yes
|
cannam@86
|
6695 $rm conftest*
|
cannam@86
|
6696 ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
cannam@86
|
6697 touch conftest.a
|
cannam@86
|
6698 ln conftest.a conftest.b 2>&5 || hard_links=no
|
cannam@86
|
6699 ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
cannam@86
|
6700 echo "$as_me:$LINENO: result: $hard_links" >&5
|
cannam@86
|
6701 echo "${ECHO_T}$hard_links" >&6
|
cannam@86
|
6702 if test "$hard_links" = no; then
|
cannam@86
|
6703 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
|
cannam@86
|
6704 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
|
cannam@86
|
6705 need_locks=warn
|
cannam@86
|
6706 fi
|
cannam@86
|
6707 else
|
cannam@86
|
6708 need_locks=no
|
cannam@86
|
6709 fi
|
cannam@86
|
6710
|
cannam@86
|
6711 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
|
cannam@86
|
6712 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
|
cannam@86
|
6713
|
cannam@86
|
6714 runpath_var=
|
cannam@86
|
6715 allow_undefined_flag=
|
cannam@86
|
6716 enable_shared_with_static_runtimes=no
|
cannam@86
|
6717 archive_cmds=
|
cannam@86
|
6718 archive_expsym_cmds=
|
cannam@86
|
6719 old_archive_From_new_cmds=
|
cannam@86
|
6720 old_archive_from_expsyms_cmds=
|
cannam@86
|
6721 export_dynamic_flag_spec=
|
cannam@86
|
6722 whole_archive_flag_spec=
|
cannam@86
|
6723 thread_safe_flag_spec=
|
cannam@86
|
6724 hardcode_libdir_flag_spec=
|
cannam@86
|
6725 hardcode_libdir_flag_spec_ld=
|
cannam@86
|
6726 hardcode_libdir_separator=
|
cannam@86
|
6727 hardcode_direct=no
|
cannam@86
|
6728 hardcode_minus_L=no
|
cannam@86
|
6729 hardcode_shlibpath_var=unsupported
|
cannam@86
|
6730 link_all_deplibs=unknown
|
cannam@86
|
6731 hardcode_automatic=no
|
cannam@86
|
6732 module_cmds=
|
cannam@86
|
6733 module_expsym_cmds=
|
cannam@86
|
6734 always_export_symbols=no
|
cannam@86
|
6735 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
cannam@86
|
6736 # include_expsyms should be a list of space-separated symbols to be *always*
|
cannam@86
|
6737 # included in the symbol list
|
cannam@86
|
6738 include_expsyms=
|
cannam@86
|
6739 # exclude_expsyms can be an extended regexp of symbols to exclude
|
cannam@86
|
6740 # it will be wrapped by ` (' and `)$', so one must not match beginning or
|
cannam@86
|
6741 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
|
cannam@86
|
6742 # as well as any symbol that contains `d'.
|
cannam@86
|
6743 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
|
cannam@86
|
6744 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
|
cannam@86
|
6745 # platforms (ab)use it in PIC code, but their linkers get confused if
|
cannam@86
|
6746 # the symbol is explicitly referenced. Since portable code cannot
|
cannam@86
|
6747 # rely on this symbol name, it's probably fine to never include it in
|
cannam@86
|
6748 # preloaded symbol tables.
|
cannam@86
|
6749 extract_expsyms_cmds=
|
cannam@86
|
6750 # Just being paranoid about ensuring that cc_basename is set.
|
cannam@86
|
6751 for cc_temp in $compiler""; do
|
cannam@86
|
6752 case $cc_temp in
|
cannam@86
|
6753 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
cannam@86
|
6754 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
cannam@86
|
6755 \-*) ;;
|
cannam@86
|
6756 *) break;;
|
cannam@86
|
6757 esac
|
cannam@86
|
6758 done
|
cannam@86
|
6759 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
cannam@86
|
6760
|
cannam@86
|
6761 case $host_os in
|
cannam@86
|
6762 cygwin* | mingw* | pw32*)
|
cannam@86
|
6763 # FIXME: the MSVC++ port hasn't been tested in a loooong time
|
cannam@86
|
6764 # When not using gcc, we currently assume that we are using
|
cannam@86
|
6765 # Microsoft Visual C++.
|
cannam@86
|
6766 if test "$GCC" != yes; then
|
cannam@86
|
6767 with_gnu_ld=no
|
cannam@86
|
6768 fi
|
cannam@86
|
6769 ;;
|
cannam@86
|
6770 openbsd*)
|
cannam@86
|
6771 with_gnu_ld=no
|
cannam@86
|
6772 ;;
|
cannam@86
|
6773 esac
|
cannam@86
|
6774
|
cannam@86
|
6775 ld_shlibs=yes
|
cannam@86
|
6776 if test "$with_gnu_ld" = yes; then
|
cannam@86
|
6777 # If archive_cmds runs LD, not CC, wlarc should be empty
|
cannam@86
|
6778 wlarc='${wl}'
|
cannam@86
|
6779
|
cannam@86
|
6780 # Set some defaults for GNU ld with shared library support. These
|
cannam@86
|
6781 # are reset later if shared libraries are not supported. Putting them
|
cannam@86
|
6782 # here allows them to be overridden if necessary.
|
cannam@86
|
6783 runpath_var=LD_RUN_PATH
|
cannam@86
|
6784 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
|
cannam@86
|
6785 export_dynamic_flag_spec='${wl}--export-dynamic'
|
cannam@86
|
6786 # ancient GNU ld didn't support --whole-archive et. al.
|
cannam@86
|
6787 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
|
cannam@86
|
6788 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
cannam@86
|
6789 else
|
cannam@86
|
6790 whole_archive_flag_spec=
|
cannam@86
|
6791 fi
|
cannam@86
|
6792 supports_anon_versioning=no
|
cannam@86
|
6793 case `$LD -v 2>/dev/null` in
|
cannam@86
|
6794 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
|
cannam@86
|
6795 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
|
cannam@86
|
6796 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
|
cannam@86
|
6797 *\ 2.11.*) ;; # other 2.11 versions
|
cannam@86
|
6798 *) supports_anon_versioning=yes ;;
|
cannam@86
|
6799 esac
|
cannam@86
|
6800
|
cannam@86
|
6801 # See if GNU ld supports shared libraries.
|
cannam@86
|
6802 case $host_os in
|
cannam@86
|
6803 aix3* | aix4* | aix5*)
|
cannam@86
|
6804 # On AIX/PPC, the GNU linker is very broken
|
cannam@86
|
6805 if test "$host_cpu" != ia64; then
|
cannam@86
|
6806 ld_shlibs=no
|
cannam@86
|
6807 cat <<EOF 1>&2
|
cannam@86
|
6808
|
cannam@86
|
6809 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
|
cannam@86
|
6810 *** to be unable to reliably create shared libraries on AIX.
|
cannam@86
|
6811 *** Therefore, libtool is disabling shared libraries support. If you
|
cannam@86
|
6812 *** really care for shared libraries, you may want to modify your PATH
|
cannam@86
|
6813 *** so that a non-GNU linker is found, and then restart.
|
cannam@86
|
6814
|
cannam@86
|
6815 EOF
|
cannam@86
|
6816 fi
|
cannam@86
|
6817 ;;
|
cannam@86
|
6818
|
cannam@86
|
6819 amigaos*)
|
cannam@86
|
6820 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@86
|
6821 hardcode_libdir_flag_spec='-L$libdir'
|
cannam@86
|
6822 hardcode_minus_L=yes
|
cannam@86
|
6823
|
cannam@86
|
6824 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
|
cannam@86
|
6825 # that the semantics of dynamic libraries on AmigaOS, at least up
|
cannam@86
|
6826 # to version 4, is to share data among multiple programs linked
|
cannam@86
|
6827 # with the same dynamic library. Since this doesn't match the
|
cannam@86
|
6828 # behavior of shared libraries on other platforms, we can't use
|
cannam@86
|
6829 # them.
|
cannam@86
|
6830 ld_shlibs=no
|
cannam@86
|
6831 ;;
|
cannam@86
|
6832
|
cannam@86
|
6833 beos*)
|
cannam@86
|
6834 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
cannam@86
|
6835 allow_undefined_flag=unsupported
|
cannam@86
|
6836 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
|
cannam@86
|
6837 # support --undefined. This deserves some investigation. FIXME
|
cannam@86
|
6838 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
cannam@86
|
6839 else
|
cannam@86
|
6840 ld_shlibs=no
|
cannam@86
|
6841 fi
|
cannam@86
|
6842 ;;
|
cannam@86
|
6843
|
cannam@86
|
6844 cygwin* | mingw* | pw32*)
|
cannam@86
|
6845 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
|
cannam@86
|
6846 # as there is no search path for DLLs.
|
cannam@86
|
6847 hardcode_libdir_flag_spec='-L$libdir'
|
cannam@86
|
6848 allow_undefined_flag=unsupported
|
cannam@86
|
6849 always_export_symbols=no
|
cannam@86
|
6850 enable_shared_with_static_runtimes=yes
|
cannam@86
|
6851 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
|
cannam@86
|
6852
|
cannam@86
|
6853 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
|
cannam@86
|
6854 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
|
cannam@86
|
6855 # If the export-symbols file already is a .def file (1st line
|
cannam@86
|
6856 # is EXPORTS), use it as is; otherwise, prepend...
|
cannam@86
|
6857 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
cannam@86
|
6858 cp $export_symbols $output_objdir/$soname.def;
|
cannam@86
|
6859 else
|
cannam@86
|
6860 echo EXPORTS > $output_objdir/$soname.def;
|
cannam@86
|
6861 cat $export_symbols >> $output_objdir/$soname.def;
|
cannam@86
|
6862 fi~
|
cannam@86
|
6863 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
|
cannam@86
|
6864 else
|
cannam@86
|
6865 ld_shlibs=no
|
cannam@86
|
6866 fi
|
cannam@86
|
6867 ;;
|
cannam@86
|
6868
|
cannam@86
|
6869 linux*)
|
cannam@86
|
6870 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
cannam@86
|
6871 tmp_addflag=
|
cannam@86
|
6872 case $cc_basename,$host_cpu in
|
cannam@86
|
6873 pgcc*) # Portland Group C compiler
|
cannam@86
|
6874 whole_archive_flag_spec=
|
cannam@86
|
6875 ;;
|
cannam@86
|
6876 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
|
cannam@86
|
6877 whole_archive_flag_spec=
|
cannam@86
|
6878 tmp_addflag=' -fpic -Mnomain' ;;
|
cannam@86
|
6879 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
|
cannam@86
|
6880 tmp_addflag=' -i_dynamic' ;;
|
cannam@86
|
6881 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
|
cannam@86
|
6882 tmp_addflag=' -i_dynamic -nofor_main' ;;
|
cannam@86
|
6883 ifc* | ifort*) # Intel Fortran compiler
|
cannam@86
|
6884 tmp_addflag=' -nofor_main' ;;
|
cannam@86
|
6885 esac
|
cannam@86
|
6886 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
cannam@86
|
6887
|
cannam@86
|
6888 if test $supports_anon_versioning = yes; then
|
cannam@86
|
6889 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
|
cannam@86
|
6890 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
cannam@86
|
6891 $echo "local: *; };" >> $output_objdir/$libname.ver~
|
cannam@86
|
6892 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
|
cannam@86
|
6893 fi
|
cannam@86
|
6894 else
|
cannam@86
|
6895 ld_shlibs=no
|
cannam@86
|
6896 fi
|
cannam@86
|
6897 ;;
|
cannam@86
|
6898
|
cannam@86
|
6899 netbsd*)
|
cannam@86
|
6900 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
cannam@86
|
6901 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
cannam@86
|
6902 wlarc=
|
cannam@86
|
6903 else
|
cannam@86
|
6904 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
cannam@86
|
6905 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
cannam@86
|
6906 fi
|
cannam@86
|
6907 ;;
|
cannam@86
|
6908
|
cannam@86
|
6909 solaris* | sysv5*)
|
cannam@86
|
6910 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
|
cannam@86
|
6911 ld_shlibs=no
|
cannam@86
|
6912 cat <<EOF 1>&2
|
cannam@86
|
6913
|
cannam@86
|
6914 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
|
cannam@86
|
6915 *** create shared libraries on Solaris systems. Therefore, libtool
|
cannam@86
|
6916 *** is disabling shared libraries support. We urge you to upgrade GNU
|
cannam@86
|
6917 *** binutils to release 2.9.1 or newer. Another option is to modify
|
cannam@86
|
6918 *** your PATH or compiler configuration so that the native linker is
|
cannam@86
|
6919 *** used, and then restart.
|
cannam@86
|
6920
|
cannam@86
|
6921 EOF
|
cannam@86
|
6922 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
cannam@86
|
6923 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
cannam@86
|
6924 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
cannam@86
|
6925 else
|
cannam@86
|
6926 ld_shlibs=no
|
cannam@86
|
6927 fi
|
cannam@86
|
6928 ;;
|
cannam@86
|
6929
|
cannam@86
|
6930 sunos4*)
|
cannam@86
|
6931 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
6932 wlarc=
|
cannam@86
|
6933 hardcode_direct=yes
|
cannam@86
|
6934 hardcode_shlibpath_var=no
|
cannam@86
|
6935 ;;
|
cannam@86
|
6936
|
cannam@86
|
6937 *)
|
cannam@86
|
6938 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
cannam@86
|
6939 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
cannam@86
|
6940 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
cannam@86
|
6941 else
|
cannam@86
|
6942 ld_shlibs=no
|
cannam@86
|
6943 fi
|
cannam@86
|
6944 ;;
|
cannam@86
|
6945 esac
|
cannam@86
|
6946
|
cannam@86
|
6947 if test "$ld_shlibs" = no; then
|
cannam@86
|
6948 runpath_var=
|
cannam@86
|
6949 hardcode_libdir_flag_spec=
|
cannam@86
|
6950 export_dynamic_flag_spec=
|
cannam@86
|
6951 whole_archive_flag_spec=
|
cannam@86
|
6952 fi
|
cannam@86
|
6953 else
|
cannam@86
|
6954 # PORTME fill in a description of your system's linker (not GNU ld)
|
cannam@86
|
6955 case $host_os in
|
cannam@86
|
6956 aix3*)
|
cannam@86
|
6957 allow_undefined_flag=unsupported
|
cannam@86
|
6958 always_export_symbols=yes
|
cannam@86
|
6959 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@86
|
6960 # Note: this linker hardcodes the directories in LIBPATH if there
|
cannam@86
|
6961 # are no directories specified by -L.
|
cannam@86
|
6962 hardcode_minus_L=yes
|
cannam@86
|
6963 if test "$GCC" = yes && test -z "$link_static_flag"; then
|
cannam@86
|
6964 # Neither direct hardcoding nor static linking is supported with a
|
cannam@86
|
6965 # broken collect2.
|
cannam@86
|
6966 hardcode_direct=unsupported
|
cannam@86
|
6967 fi
|
cannam@86
|
6968 ;;
|
cannam@86
|
6969
|
cannam@86
|
6970 aix4* | aix5*)
|
cannam@86
|
6971 if test "$host_cpu" = ia64; then
|
cannam@86
|
6972 # On IA64, the linker does run time linking by default, so we don't
|
cannam@86
|
6973 # have to do anything special.
|
cannam@86
|
6974 aix_use_runtimelinking=no
|
cannam@86
|
6975 exp_sym_flag='-Bexport'
|
cannam@86
|
6976 no_entry_flag=""
|
cannam@86
|
6977 else
|
cannam@86
|
6978 # If we're using GNU nm, then we don't want the "-C" option.
|
cannam@86
|
6979 # -C means demangle to AIX nm, but means don't demangle with GNU nm
|
cannam@86
|
6980 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
|
cannam@86
|
6981 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@86
|
6982 else
|
cannam@86
|
6983 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@86
|
6984 fi
|
cannam@86
|
6985 aix_use_runtimelinking=no
|
cannam@86
|
6986
|
cannam@86
|
6987 # Test if we are trying to use run time linking or normal
|
cannam@86
|
6988 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
cannam@86
|
6989 # need to do runtime linking.
|
cannam@86
|
6990 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
|
cannam@86
|
6991 for ld_flag in $LDFLAGS; do
|
cannam@86
|
6992 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
|
cannam@86
|
6993 aix_use_runtimelinking=yes
|
cannam@86
|
6994 break
|
cannam@86
|
6995 fi
|
cannam@86
|
6996 done
|
cannam@86
|
6997 esac
|
cannam@86
|
6998
|
cannam@86
|
6999 exp_sym_flag='-bexport'
|
cannam@86
|
7000 no_entry_flag='-bnoentry'
|
cannam@86
|
7001 fi
|
cannam@86
|
7002
|
cannam@86
|
7003 # When large executables or shared objects are built, AIX ld can
|
cannam@86
|
7004 # have problems creating the table of contents. If linking a library
|
cannam@86
|
7005 # or program results in "error TOC overflow" add -mminimal-toc to
|
cannam@86
|
7006 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
cannam@86
|
7007 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
cannam@86
|
7008
|
cannam@86
|
7009 archive_cmds=''
|
cannam@86
|
7010 hardcode_direct=yes
|
cannam@86
|
7011 hardcode_libdir_separator=':'
|
cannam@86
|
7012 link_all_deplibs=yes
|
cannam@86
|
7013
|
cannam@86
|
7014 if test "$GCC" = yes; then
|
cannam@86
|
7015 case $host_os in aix4.[012]|aix4.[012].*)
|
cannam@86
|
7016 # We only want to do this on AIX 4.2 and lower, the check
|
cannam@86
|
7017 # below for broken collect2 doesn't work under 4.3+
|
cannam@86
|
7018 collect2name=`${CC} -print-prog-name=collect2`
|
cannam@86
|
7019 if test -f "$collect2name" && \
|
cannam@86
|
7020 strings "$collect2name" | grep resolve_lib_name >/dev/null
|
cannam@86
|
7021 then
|
cannam@86
|
7022 # We have reworked collect2
|
cannam@86
|
7023 hardcode_direct=yes
|
cannam@86
|
7024 else
|
cannam@86
|
7025 # We have old collect2
|
cannam@86
|
7026 hardcode_direct=unsupported
|
cannam@86
|
7027 # It fails to find uninstalled libraries when the uninstalled
|
cannam@86
|
7028 # path is not listed in the libpath. Setting hardcode_minus_L
|
cannam@86
|
7029 # to unsupported forces relinking
|
cannam@86
|
7030 hardcode_minus_L=yes
|
cannam@86
|
7031 hardcode_libdir_flag_spec='-L$libdir'
|
cannam@86
|
7032 hardcode_libdir_separator=
|
cannam@86
|
7033 fi
|
cannam@86
|
7034 esac
|
cannam@86
|
7035 shared_flag='-shared'
|
cannam@86
|
7036 if test "$aix_use_runtimelinking" = yes; then
|
cannam@86
|
7037 shared_flag="$shared_flag "'${wl}-G'
|
cannam@86
|
7038 fi
|
cannam@86
|
7039 else
|
cannam@86
|
7040 # not using gcc
|
cannam@86
|
7041 if test "$host_cpu" = ia64; then
|
cannam@86
|
7042 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
cannam@86
|
7043 # chokes on -Wl,-G. The following line is correct:
|
cannam@86
|
7044 shared_flag='-G'
|
cannam@86
|
7045 else
|
cannam@86
|
7046 if test "$aix_use_runtimelinking" = yes; then
|
cannam@86
|
7047 shared_flag='${wl}-G'
|
cannam@86
|
7048 else
|
cannam@86
|
7049 shared_flag='${wl}-bM:SRE'
|
cannam@86
|
7050 fi
|
cannam@86
|
7051 fi
|
cannam@86
|
7052 fi
|
cannam@86
|
7053
|
cannam@86
|
7054 # It seems that -bexpall does not export symbols beginning with
|
cannam@86
|
7055 # underscore (_), so it is better to generate a list of symbols to export.
|
cannam@86
|
7056 always_export_symbols=yes
|
cannam@86
|
7057 if test "$aix_use_runtimelinking" = yes; then
|
cannam@86
|
7058 # Warning - without using the other runtime loading flags (-brtl),
|
cannam@86
|
7059 # -berok will link without error, but may produce a broken library.
|
cannam@86
|
7060 allow_undefined_flag='-berok'
|
cannam@86
|
7061 # Determine the default libpath from the value encoded in an empty executable.
|
cannam@86
|
7062 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
7063 /* confdefs.h. */
|
cannam@86
|
7064 _ACEOF
|
cannam@86
|
7065 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
7066 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
7067 /* end confdefs.h. */
|
cannam@86
|
7068
|
cannam@86
|
7069 int
|
cannam@86
|
7070 main ()
|
cannam@86
|
7071 {
|
cannam@86
|
7072
|
cannam@86
|
7073 ;
|
cannam@86
|
7074 return 0;
|
cannam@86
|
7075 }
|
cannam@86
|
7076 _ACEOF
|
cannam@86
|
7077 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@86
|
7078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@86
|
7079 (eval $ac_link) 2>conftest.er1
|
cannam@86
|
7080 ac_status=$?
|
cannam@86
|
7081 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
7082 rm -f conftest.er1
|
cannam@86
|
7083 cat conftest.err >&5
|
cannam@86
|
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
7085 (exit $ac_status); } &&
|
cannam@86
|
7086 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
7087 || test ! -s conftest.err'
|
cannam@86
|
7088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
7089 (eval $ac_try) 2>&5
|
cannam@86
|
7090 ac_status=$?
|
cannam@86
|
7091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
7092 (exit $ac_status); }; } &&
|
cannam@86
|
7093 { ac_try='test -s conftest$ac_exeext'
|
cannam@86
|
7094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
7095 (eval $ac_try) 2>&5
|
cannam@86
|
7096 ac_status=$?
|
cannam@86
|
7097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
7098 (exit $ac_status); }; }; then
|
cannam@86
|
7099
|
cannam@86
|
7100 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
|
cannam@86
|
7101 }'`
|
cannam@86
|
7102 # Check for a 64-bit object if we didn't find anything.
|
cannam@86
|
7103 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
|
cannam@86
|
7104 }'`; fi
|
cannam@86
|
7105 else
|
cannam@86
|
7106 echo "$as_me: failed program was:" >&5
|
cannam@86
|
7107 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
7108
|
cannam@86
|
7109 fi
|
cannam@86
|
7110 rm -f conftest.err conftest.$ac_objext \
|
cannam@86
|
7111 conftest$ac_exeext conftest.$ac_ext
|
cannam@86
|
7112 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
cannam@86
|
7113
|
cannam@86
|
7114 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
|
cannam@86
|
7115 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
cannam@86
|
7116 else
|
cannam@86
|
7117 if test "$host_cpu" = ia64; then
|
cannam@86
|
7118 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
|
cannam@86
|
7119 allow_undefined_flag="-z nodefs"
|
cannam@86
|
7120 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
|
cannam@86
|
7121 else
|
cannam@86
|
7122 # Determine the default libpath from the value encoded in an empty executable.
|
cannam@86
|
7123 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
7124 /* confdefs.h. */
|
cannam@86
|
7125 _ACEOF
|
cannam@86
|
7126 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
7127 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
7128 /* end confdefs.h. */
|
cannam@86
|
7129
|
cannam@86
|
7130 int
|
cannam@86
|
7131 main ()
|
cannam@86
|
7132 {
|
cannam@86
|
7133
|
cannam@86
|
7134 ;
|
cannam@86
|
7135 return 0;
|
cannam@86
|
7136 }
|
cannam@86
|
7137 _ACEOF
|
cannam@86
|
7138 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@86
|
7139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@86
|
7140 (eval $ac_link) 2>conftest.er1
|
cannam@86
|
7141 ac_status=$?
|
cannam@86
|
7142 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
7143 rm -f conftest.er1
|
cannam@86
|
7144 cat conftest.err >&5
|
cannam@86
|
7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
7146 (exit $ac_status); } &&
|
cannam@86
|
7147 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
7148 || test ! -s conftest.err'
|
cannam@86
|
7149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
7150 (eval $ac_try) 2>&5
|
cannam@86
|
7151 ac_status=$?
|
cannam@86
|
7152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
7153 (exit $ac_status); }; } &&
|
cannam@86
|
7154 { ac_try='test -s conftest$ac_exeext'
|
cannam@86
|
7155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
7156 (eval $ac_try) 2>&5
|
cannam@86
|
7157 ac_status=$?
|
cannam@86
|
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
7159 (exit $ac_status); }; }; then
|
cannam@86
|
7160
|
cannam@86
|
7161 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
|
cannam@86
|
7162 }'`
|
cannam@86
|
7163 # Check for a 64-bit object if we didn't find anything.
|
cannam@86
|
7164 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
|
cannam@86
|
7165 }'`; fi
|
cannam@86
|
7166 else
|
cannam@86
|
7167 echo "$as_me: failed program was:" >&5
|
cannam@86
|
7168 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
7169
|
cannam@86
|
7170 fi
|
cannam@86
|
7171 rm -f conftest.err conftest.$ac_objext \
|
cannam@86
|
7172 conftest$ac_exeext conftest.$ac_ext
|
cannam@86
|
7173 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
cannam@86
|
7174
|
cannam@86
|
7175 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
|
cannam@86
|
7176 # Warning - without using the other run time loading flags,
|
cannam@86
|
7177 # -berok will link without error, but may produce a broken library.
|
cannam@86
|
7178 no_undefined_flag=' ${wl}-bernotok'
|
cannam@86
|
7179 allow_undefined_flag=' ${wl}-berok'
|
cannam@86
|
7180 # -bexpall does not export symbols beginning with underscore (_)
|
cannam@86
|
7181 always_export_symbols=yes
|
cannam@86
|
7182 # Exported symbols can be pulled into shared objects from archives
|
cannam@86
|
7183 whole_archive_flag_spec=' '
|
cannam@86
|
7184 archive_cmds_need_lc=yes
|
cannam@86
|
7185 # This is similar to how AIX traditionally builds it's shared libraries.
|
cannam@86
|
7186 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
|
cannam@86
|
7187 fi
|
cannam@86
|
7188 fi
|
cannam@86
|
7189 ;;
|
cannam@86
|
7190
|
cannam@86
|
7191 amigaos*)
|
cannam@86
|
7192 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@86
|
7193 hardcode_libdir_flag_spec='-L$libdir'
|
cannam@86
|
7194 hardcode_minus_L=yes
|
cannam@86
|
7195 # see comment about different semantics on the GNU ld section
|
cannam@86
|
7196 ld_shlibs=no
|
cannam@86
|
7197 ;;
|
cannam@86
|
7198
|
cannam@86
|
7199 bsdi[45]*)
|
cannam@86
|
7200 export_dynamic_flag_spec=-rdynamic
|
cannam@86
|
7201 ;;
|
cannam@86
|
7202
|
cannam@86
|
7203 cygwin* | mingw* | pw32*)
|
cannam@86
|
7204 # When not using gcc, we currently assume that we are using
|
cannam@86
|
7205 # Microsoft Visual C++.
|
cannam@86
|
7206 # hardcode_libdir_flag_spec is actually meaningless, as there is
|
cannam@86
|
7207 # no search path for DLLs.
|
cannam@86
|
7208 hardcode_libdir_flag_spec=' '
|
cannam@86
|
7209 allow_undefined_flag=unsupported
|
cannam@86
|
7210 # Tell ltmain to make .lib files, not .a files.
|
cannam@86
|
7211 libext=lib
|
cannam@86
|
7212 # Tell ltmain to make .dll files, not .so files.
|
cannam@86
|
7213 shrext_cmds=".dll"
|
cannam@86
|
7214 # FIXME: Setting linknames here is a bad hack.
|
cannam@86
|
7215 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
|
cannam@86
|
7216 # The linker will automatically build a .lib file if we build a DLL.
|
cannam@86
|
7217 old_archive_From_new_cmds='true'
|
cannam@86
|
7218 # FIXME: Should let the user specify the lib program.
|
cannam@86
|
7219 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
|
cannam@86
|
7220 fix_srcfile_path='`cygpath -w "$srcfile"`'
|
cannam@86
|
7221 enable_shared_with_static_runtimes=yes
|
cannam@86
|
7222 ;;
|
cannam@86
|
7223
|
cannam@86
|
7224 darwin* | rhapsody*)
|
cannam@86
|
7225 case "$host_os" in
|
cannam@86
|
7226 rhapsody* | darwin1.[012])
|
cannam@86
|
7227 allow_undefined_flag='${wl}-undefined ${wl}suppress'
|
cannam@86
|
7228 ;;
|
cannam@86
|
7229 *) # Darwin 1.3 on
|
cannam@86
|
7230 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
|
cannam@86
|
7231 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
cannam@86
|
7232 else
|
cannam@86
|
7233 case ${MACOSX_DEPLOYMENT_TARGET} in
|
cannam@86
|
7234 10.[012])
|
cannam@86
|
7235 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
cannam@86
|
7236 ;;
|
cannam@86
|
7237 10.*)
|
cannam@86
|
7238 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
|
cannam@86
|
7239 ;;
|
cannam@86
|
7240 esac
|
cannam@86
|
7241 fi
|
cannam@86
|
7242 ;;
|
cannam@86
|
7243 esac
|
cannam@86
|
7244 archive_cmds_need_lc=no
|
cannam@86
|
7245 hardcode_direct=no
|
cannam@86
|
7246 hardcode_automatic=yes
|
cannam@86
|
7247 hardcode_shlibpath_var=unsupported
|
cannam@86
|
7248 whole_archive_flag_spec=''
|
cannam@86
|
7249 link_all_deplibs=yes
|
cannam@86
|
7250 if test "$GCC" = yes ; then
|
cannam@86
|
7251 output_verbose_link_cmd='echo'
|
cannam@86
|
7252 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
|
cannam@86
|
7253 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
cannam@86
|
7254 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
|
cannam@86
|
7255 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
cannam@86
|
7256 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
cannam@86
|
7257 else
|
cannam@86
|
7258 case $cc_basename in
|
cannam@86
|
7259 xlc*)
|
cannam@86
|
7260 output_verbose_link_cmd='echo'
|
cannam@86
|
7261 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
|
cannam@86
|
7262 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
cannam@86
|
7263 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
|
cannam@86
|
7264 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
cannam@86
|
7265 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
cannam@86
|
7266 ;;
|
cannam@86
|
7267 *)
|
cannam@86
|
7268 ld_shlibs=no
|
cannam@86
|
7269 ;;
|
cannam@86
|
7270 esac
|
cannam@86
|
7271 fi
|
cannam@86
|
7272 ;;
|
cannam@86
|
7273
|
cannam@86
|
7274 dgux*)
|
cannam@86
|
7275 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
7276 hardcode_libdir_flag_spec='-L$libdir'
|
cannam@86
|
7277 hardcode_shlibpath_var=no
|
cannam@86
|
7278 ;;
|
cannam@86
|
7279
|
cannam@86
|
7280 freebsd1*)
|
cannam@86
|
7281 ld_shlibs=no
|
cannam@86
|
7282 ;;
|
cannam@86
|
7283
|
cannam@86
|
7284 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
|
cannam@86
|
7285 # support. Future versions do this automatically, but an explicit c++rt0.o
|
cannam@86
|
7286 # does not break anything, and helps significantly (at the cost of a little
|
cannam@86
|
7287 # extra space).
|
cannam@86
|
7288 freebsd2.2*)
|
cannam@86
|
7289 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
|
cannam@86
|
7290 hardcode_libdir_flag_spec='-R$libdir'
|
cannam@86
|
7291 hardcode_direct=yes
|
cannam@86
|
7292 hardcode_shlibpath_var=no
|
cannam@86
|
7293 ;;
|
cannam@86
|
7294
|
cannam@86
|
7295 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
|
cannam@86
|
7296 freebsd2*)
|
cannam@86
|
7297 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
7298 hardcode_direct=yes
|
cannam@86
|
7299 hardcode_minus_L=yes
|
cannam@86
|
7300 hardcode_shlibpath_var=no
|
cannam@86
|
7301 ;;
|
cannam@86
|
7302
|
cannam@86
|
7303 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
cannam@86
|
7304 freebsd* | kfreebsd*-gnu | dragonfly*)
|
cannam@86
|
7305 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@86
|
7306 hardcode_libdir_flag_spec='-R$libdir'
|
cannam@86
|
7307 hardcode_direct=yes
|
cannam@86
|
7308 hardcode_shlibpath_var=no
|
cannam@86
|
7309 ;;
|
cannam@86
|
7310
|
cannam@86
|
7311 hpux9*)
|
cannam@86
|
7312 if test "$GCC" = yes; then
|
cannam@86
|
7313 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@86
|
7314 else
|
cannam@86
|
7315 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@86
|
7316 fi
|
cannam@86
|
7317 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
|
cannam@86
|
7318 hardcode_libdir_separator=:
|
cannam@86
|
7319 hardcode_direct=yes
|
cannam@86
|
7320
|
cannam@86
|
7321 # hardcode_minus_L: Not really in the search PATH,
|
cannam@86
|
7322 # but as the default location of the library.
|
cannam@86
|
7323 hardcode_minus_L=yes
|
cannam@86
|
7324 export_dynamic_flag_spec='${wl}-E'
|
cannam@86
|
7325 ;;
|
cannam@86
|
7326
|
cannam@86
|
7327 hpux10* | hpux11*)
|
cannam@86
|
7328 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
|
cannam@86
|
7329 case "$host_cpu" in
|
cannam@86
|
7330 hppa*64*|ia64*)
|
cannam@86
|
7331 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@86
|
7332 ;;
|
cannam@86
|
7333 *)
|
cannam@86
|
7334 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@86
|
7335 ;;
|
cannam@86
|
7336 esac
|
cannam@86
|
7337 else
|
cannam@86
|
7338 case "$host_cpu" in
|
cannam@86
|
7339 hppa*64*|ia64*)
|
cannam@86
|
7340 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
7341 ;;
|
cannam@86
|
7342 *)
|
cannam@86
|
7343 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
7344 ;;
|
cannam@86
|
7345 esac
|
cannam@86
|
7346 fi
|
cannam@86
|
7347 if test "$with_gnu_ld" = no; then
|
cannam@86
|
7348 case "$host_cpu" in
|
cannam@86
|
7349 hppa*64*)
|
cannam@86
|
7350 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
|
cannam@86
|
7351 hardcode_libdir_flag_spec_ld='+b $libdir'
|
cannam@86
|
7352 hardcode_libdir_separator=:
|
cannam@86
|
7353 hardcode_direct=no
|
cannam@86
|
7354 hardcode_shlibpath_var=no
|
cannam@86
|
7355 ;;
|
cannam@86
|
7356 ia64*)
|
cannam@86
|
7357 hardcode_libdir_flag_spec='-L$libdir'
|
cannam@86
|
7358 hardcode_direct=no
|
cannam@86
|
7359 hardcode_shlibpath_var=no
|
cannam@86
|
7360
|
cannam@86
|
7361 # hardcode_minus_L: Not really in the search PATH,
|
cannam@86
|
7362 # but as the default location of the library.
|
cannam@86
|
7363 hardcode_minus_L=yes
|
cannam@86
|
7364 ;;
|
cannam@86
|
7365 *)
|
cannam@86
|
7366 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
|
cannam@86
|
7367 hardcode_libdir_separator=:
|
cannam@86
|
7368 hardcode_direct=yes
|
cannam@86
|
7369 export_dynamic_flag_spec='${wl}-E'
|
cannam@86
|
7370
|
cannam@86
|
7371 # hardcode_minus_L: Not really in the search PATH,
|
cannam@86
|
7372 # but as the default location of the library.
|
cannam@86
|
7373 hardcode_minus_L=yes
|
cannam@86
|
7374 ;;
|
cannam@86
|
7375 esac
|
cannam@86
|
7376 fi
|
cannam@86
|
7377 ;;
|
cannam@86
|
7378
|
cannam@86
|
7379 irix5* | irix6* | nonstopux*)
|
cannam@86
|
7380 if test "$GCC" = yes; then
|
cannam@86
|
7381 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
cannam@86
|
7382 else
|
cannam@86
|
7383 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
cannam@86
|
7384 hardcode_libdir_flag_spec_ld='-rpath $libdir'
|
cannam@86
|
7385 fi
|
cannam@86
|
7386 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
cannam@86
|
7387 hardcode_libdir_separator=:
|
cannam@86
|
7388 link_all_deplibs=yes
|
cannam@86
|
7389 ;;
|
cannam@86
|
7390
|
cannam@86
|
7391 netbsd*)
|
cannam@86
|
7392 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
cannam@86
|
7393 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
|
cannam@86
|
7394 else
|
cannam@86
|
7395 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
|
cannam@86
|
7396 fi
|
cannam@86
|
7397 hardcode_libdir_flag_spec='-R$libdir'
|
cannam@86
|
7398 hardcode_direct=yes
|
cannam@86
|
7399 hardcode_shlibpath_var=no
|
cannam@86
|
7400 ;;
|
cannam@86
|
7401
|
cannam@86
|
7402 newsos6)
|
cannam@86
|
7403 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
7404 hardcode_direct=yes
|
cannam@86
|
7405 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
cannam@86
|
7406 hardcode_libdir_separator=:
|
cannam@86
|
7407 hardcode_shlibpath_var=no
|
cannam@86
|
7408 ;;
|
cannam@86
|
7409
|
cannam@86
|
7410 openbsd*)
|
cannam@86
|
7411 hardcode_direct=yes
|
cannam@86
|
7412 hardcode_shlibpath_var=no
|
cannam@86
|
7413 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
cannam@86
|
7414 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@86
|
7415 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
|
cannam@86
|
7416 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
|
cannam@86
|
7417 export_dynamic_flag_spec='${wl}-E'
|
cannam@86
|
7418 else
|
cannam@86
|
7419 case $host_os in
|
cannam@86
|
7420 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
|
cannam@86
|
7421 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
7422 hardcode_libdir_flag_spec='-R$libdir'
|
cannam@86
|
7423 ;;
|
cannam@86
|
7424 *)
|
cannam@86
|
7425 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@86
|
7426 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
|
cannam@86
|
7427 ;;
|
cannam@86
|
7428 esac
|
cannam@86
|
7429 fi
|
cannam@86
|
7430 ;;
|
cannam@86
|
7431
|
cannam@86
|
7432 os2*)
|
cannam@86
|
7433 hardcode_libdir_flag_spec='-L$libdir'
|
cannam@86
|
7434 hardcode_minus_L=yes
|
cannam@86
|
7435 allow_undefined_flag=unsupported
|
cannam@86
|
7436 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@86
|
7437 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
|
cannam@86
|
7438 ;;
|
cannam@86
|
7439
|
cannam@86
|
7440 osf3*)
|
cannam@86
|
7441 if test "$GCC" = yes; then
|
cannam@86
|
7442 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
|
cannam@86
|
7443 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
cannam@86
|
7444 else
|
cannam@86
|
7445 allow_undefined_flag=' -expect_unresolved \*'
|
cannam@86
|
7446 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
cannam@86
|
7447 fi
|
cannam@86
|
7448 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
cannam@86
|
7449 hardcode_libdir_separator=:
|
cannam@86
|
7450 ;;
|
cannam@86
|
7451
|
cannam@86
|
7452 osf4* | osf5*) # as osf3* with the addition of -msym flag
|
cannam@86
|
7453 if test "$GCC" = yes; then
|
cannam@86
|
7454 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
|
cannam@86
|
7455 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
cannam@86
|
7456 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
cannam@86
|
7457 else
|
cannam@86
|
7458 allow_undefined_flag=' -expect_unresolved \*'
|
cannam@86
|
7459 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
cannam@86
|
7460 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
|
cannam@86
|
7461 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
|
cannam@86
|
7462
|
cannam@86
|
7463 # Both c and cxx compiler support -rpath directly
|
cannam@86
|
7464 hardcode_libdir_flag_spec='-rpath $libdir'
|
cannam@86
|
7465 fi
|
cannam@86
|
7466 hardcode_libdir_separator=:
|
cannam@86
|
7467 ;;
|
cannam@86
|
7468
|
cannam@86
|
7469 sco3.2v5*)
|
cannam@86
|
7470 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
7471 hardcode_shlibpath_var=no
|
cannam@86
|
7472 export_dynamic_flag_spec='${wl}-Bexport'
|
cannam@86
|
7473 runpath_var=LD_RUN_PATH
|
cannam@86
|
7474 hardcode_runpath_var=yes
|
cannam@86
|
7475 ;;
|
cannam@86
|
7476
|
cannam@86
|
7477 solaris*)
|
cannam@86
|
7478 no_undefined_flag=' -z text'
|
cannam@86
|
7479 if test "$GCC" = yes; then
|
cannam@86
|
7480 wlarc='${wl}'
|
cannam@86
|
7481 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@86
|
7482 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
cannam@86
|
7483 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
|
cannam@86
|
7484 else
|
cannam@86
|
7485 wlarc=''
|
cannam@86
|
7486 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
7487 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
cannam@86
|
7488 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
|
cannam@86
|
7489 fi
|
cannam@86
|
7490 hardcode_libdir_flag_spec='-R$libdir'
|
cannam@86
|
7491 hardcode_shlibpath_var=no
|
cannam@86
|
7492 case $host_os in
|
cannam@86
|
7493 solaris2.[0-5] | solaris2.[0-5].*) ;;
|
cannam@86
|
7494 *)
|
cannam@86
|
7495 # The compiler driver will combine linker options so we
|
cannam@86
|
7496 # cannot just pass the convience library names through
|
cannam@86
|
7497 # without $wl, iff we do not link with $LD.
|
cannam@86
|
7498 # Luckily, gcc supports the same syntax we need for Sun Studio.
|
cannam@86
|
7499 # Supported since Solaris 2.6 (maybe 2.5.1?)
|
cannam@86
|
7500 case $wlarc in
|
cannam@86
|
7501 '')
|
cannam@86
|
7502 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
|
cannam@86
|
7503 *)
|
cannam@86
|
7504 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
|
cannam@86
|
7505 esac ;;
|
cannam@86
|
7506 esac
|
cannam@86
|
7507 link_all_deplibs=yes
|
cannam@86
|
7508 ;;
|
cannam@86
|
7509
|
cannam@86
|
7510 sunos4*)
|
cannam@86
|
7511 if test "x$host_vendor" = xsequent; then
|
cannam@86
|
7512 # Use $CC to link under sequent, because it throws in some extra .o
|
cannam@86
|
7513 # files that make .init and .fini sections work.
|
cannam@86
|
7514 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@86
|
7515 else
|
cannam@86
|
7516 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
7517 fi
|
cannam@86
|
7518 hardcode_libdir_flag_spec='-L$libdir'
|
cannam@86
|
7519 hardcode_direct=yes
|
cannam@86
|
7520 hardcode_minus_L=yes
|
cannam@86
|
7521 hardcode_shlibpath_var=no
|
cannam@86
|
7522 ;;
|
cannam@86
|
7523
|
cannam@86
|
7524 sysv4)
|
cannam@86
|
7525 case $host_vendor in
|
cannam@86
|
7526 sni)
|
cannam@86
|
7527 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
7528 hardcode_direct=yes # is this really true???
|
cannam@86
|
7529 ;;
|
cannam@86
|
7530 siemens)
|
cannam@86
|
7531 ## LD is ld it makes a PLAMLIB
|
cannam@86
|
7532 ## CC just makes a GrossModule.
|
cannam@86
|
7533 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
7534 reload_cmds='$CC -r -o $output$reload_objs'
|
cannam@86
|
7535 hardcode_direct=no
|
cannam@86
|
7536 ;;
|
cannam@86
|
7537 motorola)
|
cannam@86
|
7538 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
7539 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
|
cannam@86
|
7540 ;;
|
cannam@86
|
7541 esac
|
cannam@86
|
7542 runpath_var='LD_RUN_PATH'
|
cannam@86
|
7543 hardcode_shlibpath_var=no
|
cannam@86
|
7544 ;;
|
cannam@86
|
7545
|
cannam@86
|
7546 sysv4.3*)
|
cannam@86
|
7547 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
7548 hardcode_shlibpath_var=no
|
cannam@86
|
7549 export_dynamic_flag_spec='-Bexport'
|
cannam@86
|
7550 ;;
|
cannam@86
|
7551
|
cannam@86
|
7552 sysv4*MP*)
|
cannam@86
|
7553 if test -d /usr/nec; then
|
cannam@86
|
7554 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
7555 hardcode_shlibpath_var=no
|
cannam@86
|
7556 runpath_var=LD_RUN_PATH
|
cannam@86
|
7557 hardcode_runpath_var=yes
|
cannam@86
|
7558 ld_shlibs=yes
|
cannam@86
|
7559 fi
|
cannam@86
|
7560 ;;
|
cannam@86
|
7561
|
cannam@86
|
7562 sysv4.2uw2*)
|
cannam@86
|
7563 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
7564 hardcode_direct=yes
|
cannam@86
|
7565 hardcode_minus_L=no
|
cannam@86
|
7566 hardcode_shlibpath_var=no
|
cannam@86
|
7567 hardcode_runpath_var=yes
|
cannam@86
|
7568 runpath_var=LD_RUN_PATH
|
cannam@86
|
7569 ;;
|
cannam@86
|
7570
|
cannam@86
|
7571 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
|
cannam@86
|
7572 no_undefined_flag='${wl}-z ${wl}text'
|
cannam@86
|
7573 if test "$GCC" = yes; then
|
cannam@86
|
7574 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@86
|
7575 else
|
cannam@86
|
7576 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@86
|
7577 fi
|
cannam@86
|
7578 runpath_var='LD_RUN_PATH'
|
cannam@86
|
7579 hardcode_shlibpath_var=no
|
cannam@86
|
7580 ;;
|
cannam@86
|
7581
|
cannam@86
|
7582 sysv5*)
|
cannam@86
|
7583 no_undefined_flag=' -z text'
|
cannam@86
|
7584 # $CC -shared without GNU ld will not create a library from C++
|
cannam@86
|
7585 # object files and a static libstdc++, better avoid it by now
|
cannam@86
|
7586 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
7587 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
cannam@86
|
7588 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
|
cannam@86
|
7589 hardcode_libdir_flag_spec=
|
cannam@86
|
7590 hardcode_shlibpath_var=no
|
cannam@86
|
7591 runpath_var='LD_RUN_PATH'
|
cannam@86
|
7592 ;;
|
cannam@86
|
7593
|
cannam@86
|
7594 uts4*)
|
cannam@86
|
7595 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
7596 hardcode_libdir_flag_spec='-L$libdir'
|
cannam@86
|
7597 hardcode_shlibpath_var=no
|
cannam@86
|
7598 ;;
|
cannam@86
|
7599
|
cannam@86
|
7600 *)
|
cannam@86
|
7601 ld_shlibs=no
|
cannam@86
|
7602 ;;
|
cannam@86
|
7603 esac
|
cannam@86
|
7604 fi
|
cannam@86
|
7605
|
cannam@86
|
7606 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
|
cannam@86
|
7607 echo "${ECHO_T}$ld_shlibs" >&6
|
cannam@86
|
7608 test "$ld_shlibs" = no && can_build_shared=no
|
cannam@86
|
7609
|
cannam@86
|
7610 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
cannam@86
|
7611 if test "$GCC" = yes; then
|
cannam@86
|
7612 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
cannam@86
|
7613 fi
|
cannam@86
|
7614
|
cannam@86
|
7615 #
|
cannam@86
|
7616 # Do we need to explicitly link libc?
|
cannam@86
|
7617 #
|
cannam@86
|
7618 case "x$archive_cmds_need_lc" in
|
cannam@86
|
7619 x|xyes)
|
cannam@86
|
7620 # Assume -lc should be added
|
cannam@86
|
7621 archive_cmds_need_lc=yes
|
cannam@86
|
7622
|
cannam@86
|
7623 if test "$enable_shared" = yes && test "$GCC" = yes; then
|
cannam@86
|
7624 case $archive_cmds in
|
cannam@86
|
7625 *'~'*)
|
cannam@86
|
7626 # FIXME: we may have to deal with multi-command sequences.
|
cannam@86
|
7627 ;;
|
cannam@86
|
7628 '$CC '*)
|
cannam@86
|
7629 # Test whether the compiler implicitly links with -lc since on some
|
cannam@86
|
7630 # systems, -lgcc has to come before -lc. If gcc already passes -lc
|
cannam@86
|
7631 # to ld, don't add -lc before -lgcc.
|
cannam@86
|
7632 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
|
cannam@86
|
7633 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
|
cannam@86
|
7634 $rm conftest*
|
cannam@86
|
7635 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
cannam@86
|
7636
|
cannam@86
|
7637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
7638 (eval $ac_compile) 2>&5
|
cannam@86
|
7639 ac_status=$?
|
cannam@86
|
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
7641 (exit $ac_status); } 2>conftest.err; then
|
cannam@86
|
7642 soname=conftest
|
cannam@86
|
7643 lib=conftest
|
cannam@86
|
7644 libobjs=conftest.$ac_objext
|
cannam@86
|
7645 deplibs=
|
cannam@86
|
7646 wl=$lt_prog_compiler_wl
|
cannam@86
|
7647 compiler_flags=-v
|
cannam@86
|
7648 linker_flags=-v
|
cannam@86
|
7649 verstring=
|
cannam@86
|
7650 output_objdir=.
|
cannam@86
|
7651 libname=conftest
|
cannam@86
|
7652 lt_save_allow_undefined_flag=$allow_undefined_flag
|
cannam@86
|
7653 allow_undefined_flag=
|
cannam@86
|
7654 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
|
cannam@86
|
7655 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
|
cannam@86
|
7656 ac_status=$?
|
cannam@86
|
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
7658 (exit $ac_status); }
|
cannam@86
|
7659 then
|
cannam@86
|
7660 archive_cmds_need_lc=no
|
cannam@86
|
7661 else
|
cannam@86
|
7662 archive_cmds_need_lc=yes
|
cannam@86
|
7663 fi
|
cannam@86
|
7664 allow_undefined_flag=$lt_save_allow_undefined_flag
|
cannam@86
|
7665 else
|
cannam@86
|
7666 cat conftest.err 1>&5
|
cannam@86
|
7667 fi
|
cannam@86
|
7668 $rm conftest*
|
cannam@86
|
7669 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
|
cannam@86
|
7670 echo "${ECHO_T}$archive_cmds_need_lc" >&6
|
cannam@86
|
7671 ;;
|
cannam@86
|
7672 esac
|
cannam@86
|
7673 fi
|
cannam@86
|
7674 ;;
|
cannam@86
|
7675 esac
|
cannam@86
|
7676
|
cannam@86
|
7677 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
|
cannam@86
|
7678 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
|
cannam@86
|
7679 library_names_spec=
|
cannam@86
|
7680 libname_spec='lib$name'
|
cannam@86
|
7681 soname_spec=
|
cannam@86
|
7682 shrext_cmds=".so"
|
cannam@86
|
7683 postinstall_cmds=
|
cannam@86
|
7684 postuninstall_cmds=
|
cannam@86
|
7685 finish_cmds=
|
cannam@86
|
7686 finish_eval=
|
cannam@86
|
7687 shlibpath_var=
|
cannam@86
|
7688 shlibpath_overrides_runpath=unknown
|
cannam@86
|
7689 version_type=none
|
cannam@86
|
7690 dynamic_linker="$host_os ld.so"
|
cannam@86
|
7691 sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
cannam@86
|
7692 if test "$GCC" = yes; then
|
cannam@86
|
7693 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
cannam@86
|
7694 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
|
cannam@86
|
7695 # if the path contains ";" then we assume it to be the separator
|
cannam@86
|
7696 # otherwise default to the standard path separator (i.e. ":") - it is
|
cannam@86
|
7697 # assumed that no part of a normal pathname contains ";" but that should
|
cannam@86
|
7698 # okay in the real world where ";" in dirpaths is itself problematic.
|
cannam@86
|
7699 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
cannam@86
|
7700 else
|
cannam@86
|
7701 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
cannam@86
|
7702 fi
|
cannam@86
|
7703 else
|
cannam@86
|
7704 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
|
cannam@86
|
7705 fi
|
cannam@86
|
7706 need_lib_prefix=unknown
|
cannam@86
|
7707 hardcode_into_libs=no
|
cannam@86
|
7708
|
cannam@86
|
7709 # when you set need_version to no, make sure it does not cause -set_version
|
cannam@86
|
7710 # flags to be left without arguments
|
cannam@86
|
7711 need_version=unknown
|
cannam@86
|
7712
|
cannam@86
|
7713 case $host_os in
|
cannam@86
|
7714 aix3*)
|
cannam@86
|
7715 version_type=linux
|
cannam@86
|
7716 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
|
cannam@86
|
7717 shlibpath_var=LIBPATH
|
cannam@86
|
7718
|
cannam@86
|
7719 # AIX 3 has no versioning support, so we append a major version to the name.
|
cannam@86
|
7720 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
7721 ;;
|
cannam@86
|
7722
|
cannam@86
|
7723 aix4* | aix5*)
|
cannam@86
|
7724 version_type=linux
|
cannam@86
|
7725 need_lib_prefix=no
|
cannam@86
|
7726 need_version=no
|
cannam@86
|
7727 hardcode_into_libs=yes
|
cannam@86
|
7728 if test "$host_cpu" = ia64; then
|
cannam@86
|
7729 # AIX 5 supports IA64
|
cannam@86
|
7730 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
|
cannam@86
|
7731 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
7732 else
|
cannam@86
|
7733 # With GCC up to 2.95.x, collect2 would create an import file
|
cannam@86
|
7734 # for dependence libraries. The import file would start with
|
cannam@86
|
7735 # the line `#! .'. This would cause the generated library to
|
cannam@86
|
7736 # depend on `.', always an invalid library. This was fixed in
|
cannam@86
|
7737 # development snapshots of GCC prior to 3.0.
|
cannam@86
|
7738 case $host_os in
|
cannam@86
|
7739 aix4 | aix4.[01] | aix4.[01].*)
|
cannam@86
|
7740 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
|
cannam@86
|
7741 echo ' yes '
|
cannam@86
|
7742 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
|
cannam@86
|
7743 :
|
cannam@86
|
7744 else
|
cannam@86
|
7745 can_build_shared=no
|
cannam@86
|
7746 fi
|
cannam@86
|
7747 ;;
|
cannam@86
|
7748 esac
|
cannam@86
|
7749 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
|
cannam@86
|
7750 # soname into executable. Probably we can add versioning support to
|
cannam@86
|
7751 # collect2, so additional links can be useful in future.
|
cannam@86
|
7752 if test "$aix_use_runtimelinking" = yes; then
|
cannam@86
|
7753 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
|
cannam@86
|
7754 # instead of lib<name>.a to let people know that these are not
|
cannam@86
|
7755 # typical AIX shared libraries.
|
cannam@86
|
7756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
7757 else
|
cannam@86
|
7758 # We preserve .a as extension for shared libraries through AIX4.2
|
cannam@86
|
7759 # and later when we are not doing run time linking.
|
cannam@86
|
7760 library_names_spec='${libname}${release}.a $libname.a'
|
cannam@86
|
7761 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
7762 fi
|
cannam@86
|
7763 shlibpath_var=LIBPATH
|
cannam@86
|
7764 fi
|
cannam@86
|
7765 ;;
|
cannam@86
|
7766
|
cannam@86
|
7767 amigaos*)
|
cannam@86
|
7768 library_names_spec='$libname.ixlibrary $libname.a'
|
cannam@86
|
7769 # Create ${libname}_ixlibrary.a entries in /sys/libs.
|
cannam@86
|
7770 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@86
|
7771 ;;
|
cannam@86
|
7772
|
cannam@86
|
7773 beos*)
|
cannam@86
|
7774 library_names_spec='${libname}${shared_ext}'
|
cannam@86
|
7775 dynamic_linker="$host_os ld.so"
|
cannam@86
|
7776 shlibpath_var=LIBRARY_PATH
|
cannam@86
|
7777 ;;
|
cannam@86
|
7778
|
cannam@86
|
7779 bsdi[45]*)
|
cannam@86
|
7780 version_type=linux
|
cannam@86
|
7781 need_version=no
|
cannam@86
|
7782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
7783 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
7784 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
|
cannam@86
|
7785 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
7786 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
|
cannam@86
|
7787 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
|
cannam@86
|
7788 # the default ld.so.conf also contains /usr/contrib/lib and
|
cannam@86
|
7789 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
|
cannam@86
|
7790 # libtool to hard-code these into programs
|
cannam@86
|
7791 ;;
|
cannam@86
|
7792
|
cannam@86
|
7793 cygwin* | mingw* | pw32*)
|
cannam@86
|
7794 version_type=windows
|
cannam@86
|
7795 shrext_cmds=".dll"
|
cannam@86
|
7796 need_version=no
|
cannam@86
|
7797 need_lib_prefix=no
|
cannam@86
|
7798
|
cannam@86
|
7799 case $GCC,$host_os in
|
cannam@86
|
7800 yes,cygwin* | yes,mingw* | yes,pw32*)
|
cannam@86
|
7801 library_names_spec='$libname.dll.a'
|
cannam@86
|
7802 # DLL is installed to $(libdir)/../bin by postinstall_cmds
|
cannam@86
|
7803 postinstall_cmds='base_file=`basename \${file}`~
|
cannam@86
|
7804 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
|
cannam@86
|
7805 dldir=$destdir/`dirname \$dlpath`~
|
cannam@86
|
7806 test -d \$dldir || mkdir -p \$dldir~
|
cannam@86
|
7807 $install_prog $dir/$dlname \$dldir/$dlname'
|
cannam@86
|
7808 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
cannam@86
|
7809 dlpath=$dir/\$dldll~
|
cannam@86
|
7810 $rm \$dlpath'
|
cannam@86
|
7811 shlibpath_overrides_runpath=yes
|
cannam@86
|
7812
|
cannam@86
|
7813 case $host_os in
|
cannam@86
|
7814 cygwin*)
|
cannam@86
|
7815 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
|
cannam@86
|
7816 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
cannam@86
|
7817 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
|
cannam@86
|
7818 ;;
|
cannam@86
|
7819 mingw*)
|
cannam@86
|
7820 # MinGW DLLs use traditional 'lib' prefix
|
cannam@86
|
7821 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
cannam@86
|
7822 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
cannam@86
|
7823 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
|
cannam@86
|
7824 # It is most probably a Windows format PATH printed by
|
cannam@86
|
7825 # mingw gcc, but we are running on Cygwin. Gcc prints its search
|
cannam@86
|
7826 # path with ; separators, and with drive letters. We can handle the
|
cannam@86
|
7827 # drive letters (cygwin fileutils understands them), so leave them,
|
cannam@86
|
7828 # especially as we might pass files found there to a mingw objdump,
|
cannam@86
|
7829 # which wouldn't understand a cygwinified path. Ahh.
|
cannam@86
|
7830 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
cannam@86
|
7831 else
|
cannam@86
|
7832 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
cannam@86
|
7833 fi
|
cannam@86
|
7834 ;;
|
cannam@86
|
7835 pw32*)
|
cannam@86
|
7836 # pw32 DLLs use 'pw' prefix rather than 'lib'
|
cannam@86
|
7837 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
cannam@86
|
7838 ;;
|
cannam@86
|
7839 esac
|
cannam@86
|
7840 ;;
|
cannam@86
|
7841
|
cannam@86
|
7842 *)
|
cannam@86
|
7843 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
cannam@86
|
7844 ;;
|
cannam@86
|
7845 esac
|
cannam@86
|
7846 dynamic_linker='Win32 ld.exe'
|
cannam@86
|
7847 # FIXME: first we should search . and the directory the executable is in
|
cannam@86
|
7848 shlibpath_var=PATH
|
cannam@86
|
7849 ;;
|
cannam@86
|
7850
|
cannam@86
|
7851 darwin* | rhapsody*)
|
cannam@86
|
7852 dynamic_linker="$host_os dyld"
|
cannam@86
|
7853 version_type=darwin
|
cannam@86
|
7854 need_lib_prefix=no
|
cannam@86
|
7855 need_version=no
|
cannam@86
|
7856 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
|
cannam@86
|
7857 soname_spec='${libname}${release}${major}$shared_ext'
|
cannam@86
|
7858 shlibpath_overrides_runpath=yes
|
cannam@86
|
7859 shlibpath_var=DYLD_LIBRARY_PATH
|
cannam@86
|
7860 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
|
cannam@86
|
7861 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
|
cannam@86
|
7862 if test "$GCC" = yes; then
|
cannam@86
|
7863 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
|
cannam@86
|
7864 else
|
cannam@86
|
7865 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
|
cannam@86
|
7866 fi
|
cannam@86
|
7867 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
|
cannam@86
|
7868 ;;
|
cannam@86
|
7869
|
cannam@86
|
7870 dgux*)
|
cannam@86
|
7871 version_type=linux
|
cannam@86
|
7872 need_lib_prefix=no
|
cannam@86
|
7873 need_version=no
|
cannam@86
|
7874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
|
cannam@86
|
7875 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
7876 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
7877 ;;
|
cannam@86
|
7878
|
cannam@86
|
7879 freebsd1*)
|
cannam@86
|
7880 dynamic_linker=no
|
cannam@86
|
7881 ;;
|
cannam@86
|
7882
|
cannam@86
|
7883 kfreebsd*-gnu)
|
cannam@86
|
7884 version_type=linux
|
cannam@86
|
7885 need_lib_prefix=no
|
cannam@86
|
7886 need_version=no
|
cannam@86
|
7887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
cannam@86
|
7888 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
7889 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
7890 shlibpath_overrides_runpath=no
|
cannam@86
|
7891 hardcode_into_libs=yes
|
cannam@86
|
7892 dynamic_linker='GNU ld.so'
|
cannam@86
|
7893 ;;
|
cannam@86
|
7894
|
cannam@86
|
7895 freebsd* | dragonfly*)
|
cannam@86
|
7896 # DragonFly does not have aout. When/if they implement a new
|
cannam@86
|
7897 # versioning mechanism, adjust this.
|
cannam@86
|
7898 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
|
cannam@86
|
7899 version_type=freebsd-$objformat
|
cannam@86
|
7900 case $version_type in
|
cannam@86
|
7901 freebsd-elf*)
|
cannam@86
|
7902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
cannam@86
|
7903 need_version=no
|
cannam@86
|
7904 need_lib_prefix=no
|
cannam@86
|
7905 ;;
|
cannam@86
|
7906 freebsd-*)
|
cannam@86
|
7907 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
|
cannam@86
|
7908 need_version=yes
|
cannam@86
|
7909 ;;
|
cannam@86
|
7910 esac
|
cannam@86
|
7911 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
7912 case $host_os in
|
cannam@86
|
7913 freebsd2*)
|
cannam@86
|
7914 shlibpath_overrides_runpath=yes
|
cannam@86
|
7915 ;;
|
cannam@86
|
7916 freebsd3.[01]* | freebsdelf3.[01]*)
|
cannam@86
|
7917 shlibpath_overrides_runpath=yes
|
cannam@86
|
7918 hardcode_into_libs=yes
|
cannam@86
|
7919 ;;
|
cannam@86
|
7920 *) # from 3.2 on
|
cannam@86
|
7921 shlibpath_overrides_runpath=no
|
cannam@86
|
7922 hardcode_into_libs=yes
|
cannam@86
|
7923 ;;
|
cannam@86
|
7924 esac
|
cannam@86
|
7925 ;;
|
cannam@86
|
7926
|
cannam@86
|
7927 gnu*)
|
cannam@86
|
7928 version_type=linux
|
cannam@86
|
7929 need_lib_prefix=no
|
cannam@86
|
7930 need_version=no
|
cannam@86
|
7931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
|
cannam@86
|
7932 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
7933 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
7934 hardcode_into_libs=yes
|
cannam@86
|
7935 ;;
|
cannam@86
|
7936
|
cannam@86
|
7937 hpux9* | hpux10* | hpux11*)
|
cannam@86
|
7938 # Give a soname corresponding to the major version so that dld.sl refuses to
|
cannam@86
|
7939 # link against other versions.
|
cannam@86
|
7940 version_type=sunos
|
cannam@86
|
7941 need_lib_prefix=no
|
cannam@86
|
7942 need_version=no
|
cannam@86
|
7943 case "$host_cpu" in
|
cannam@86
|
7944 ia64*)
|
cannam@86
|
7945 shrext_cmds='.so'
|
cannam@86
|
7946 hardcode_into_libs=yes
|
cannam@86
|
7947 dynamic_linker="$host_os dld.so"
|
cannam@86
|
7948 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
7949 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
cannam@86
|
7950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
7951 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
7952 if test "X$HPUX_IA64_MODE" = X32; then
|
cannam@86
|
7953 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
|
cannam@86
|
7954 else
|
cannam@86
|
7955 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
|
cannam@86
|
7956 fi
|
cannam@86
|
7957 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
cannam@86
|
7958 ;;
|
cannam@86
|
7959 hppa*64*)
|
cannam@86
|
7960 shrext_cmds='.sl'
|
cannam@86
|
7961 hardcode_into_libs=yes
|
cannam@86
|
7962 dynamic_linker="$host_os dld.sl"
|
cannam@86
|
7963 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
|
cannam@86
|
7964 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
cannam@86
|
7965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
7966 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
7967 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
|
cannam@86
|
7968 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
cannam@86
|
7969 ;;
|
cannam@86
|
7970 *)
|
cannam@86
|
7971 shrext_cmds='.sl'
|
cannam@86
|
7972 dynamic_linker="$host_os dld.sl"
|
cannam@86
|
7973 shlibpath_var=SHLIB_PATH
|
cannam@86
|
7974 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
|
cannam@86
|
7975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
7976 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
7977 ;;
|
cannam@86
|
7978 esac
|
cannam@86
|
7979 # HP-UX runs *really* slowly unless shared libraries are mode 555.
|
cannam@86
|
7980 postinstall_cmds='chmod 555 $lib'
|
cannam@86
|
7981 ;;
|
cannam@86
|
7982
|
cannam@86
|
7983 irix5* | irix6* | nonstopux*)
|
cannam@86
|
7984 case $host_os in
|
cannam@86
|
7985 nonstopux*) version_type=nonstopux ;;
|
cannam@86
|
7986 *)
|
cannam@86
|
7987 if test "$lt_cv_prog_gnu_ld" = yes; then
|
cannam@86
|
7988 version_type=linux
|
cannam@86
|
7989 else
|
cannam@86
|
7990 version_type=irix
|
cannam@86
|
7991 fi ;;
|
cannam@86
|
7992 esac
|
cannam@86
|
7993 need_lib_prefix=no
|
cannam@86
|
7994 need_version=no
|
cannam@86
|
7995 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
7996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
|
cannam@86
|
7997 case $host_os in
|
cannam@86
|
7998 irix5* | nonstopux*)
|
cannam@86
|
7999 libsuff= shlibsuff=
|
cannam@86
|
8000 ;;
|
cannam@86
|
8001 *)
|
cannam@86
|
8002 case $LD in # libtool.m4 will add one of these switches to LD
|
cannam@86
|
8003 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
|
cannam@86
|
8004 libsuff= shlibsuff= libmagic=32-bit;;
|
cannam@86
|
8005 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
|
cannam@86
|
8006 libsuff=32 shlibsuff=N32 libmagic=N32;;
|
cannam@86
|
8007 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
|
cannam@86
|
8008 libsuff=64 shlibsuff=64 libmagic=64-bit;;
|
cannam@86
|
8009 *) libsuff= shlibsuff= libmagic=never-match;;
|
cannam@86
|
8010 esac
|
cannam@86
|
8011 ;;
|
cannam@86
|
8012 esac
|
cannam@86
|
8013 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
|
cannam@86
|
8014 shlibpath_overrides_runpath=no
|
cannam@86
|
8015 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
|
cannam@86
|
8016 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
|
cannam@86
|
8017 hardcode_into_libs=yes
|
cannam@86
|
8018 ;;
|
cannam@86
|
8019
|
cannam@86
|
8020 # No shared lib support for Linux oldld, aout, or coff.
|
cannam@86
|
8021 linux*oldld* | linux*aout* | linux*coff*)
|
cannam@86
|
8022 dynamic_linker=no
|
cannam@86
|
8023 ;;
|
cannam@86
|
8024
|
cannam@86
|
8025 # This must be Linux ELF.
|
cannam@86
|
8026 linux*)
|
cannam@86
|
8027 version_type=linux
|
cannam@86
|
8028 need_lib_prefix=no
|
cannam@86
|
8029 need_version=no
|
cannam@86
|
8030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
8031 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
8032 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
cannam@86
|
8033 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
8034 shlibpath_overrides_runpath=no
|
cannam@86
|
8035 # This implies no fast_install, which is unacceptable.
|
cannam@86
|
8036 # Some rework will be needed to allow for fast_install
|
cannam@86
|
8037 # before this can be enabled.
|
cannam@86
|
8038 hardcode_into_libs=yes
|
cannam@86
|
8039
|
cannam@86
|
8040 # find out which ABI we are using
|
cannam@86
|
8041 libsuff=
|
cannam@86
|
8042 case "$host_cpu" in
|
cannam@86
|
8043 x86_64*|s390x*|powerpc64*)
|
cannam@86
|
8044 echo '#line 8044 "configure"' > conftest.$ac_ext
|
cannam@86
|
8045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
8046 (eval $ac_compile) 2>&5
|
cannam@86
|
8047 ac_status=$?
|
cannam@86
|
8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
8049 (exit $ac_status); }; then
|
cannam@86
|
8050 case `/usr/bin/file conftest.$ac_objext` in
|
cannam@86
|
8051 *64-bit*)
|
cannam@86
|
8052 libsuff=64
|
cannam@86
|
8053 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
|
cannam@86
|
8054 ;;
|
cannam@86
|
8055 esac
|
cannam@86
|
8056 fi
|
cannam@86
|
8057 rm -rf conftest*
|
cannam@86
|
8058 ;;
|
cannam@86
|
8059 esac
|
cannam@86
|
8060
|
cannam@86
|
8061 # Append ld.so.conf contents to the search path
|
cannam@86
|
8062 if test -f /etc/ld.so.conf; then
|
cannam@86
|
8063 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
|
cannam@86
|
8064 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
|
cannam@86
|
8065 fi
|
cannam@86
|
8066
|
cannam@86
|
8067 # We used to test for /lib/ld.so.1 and disable shared libraries on
|
cannam@86
|
8068 # powerpc, because MkLinux only supported shared libraries with the
|
cannam@86
|
8069 # GNU dynamic linker. Since this was broken with cross compilers,
|
cannam@86
|
8070 # most powerpc-linux boxes support dynamic linking these days and
|
cannam@86
|
8071 # people can always --disable-shared, the test was removed, and we
|
cannam@86
|
8072 # assume the GNU/Linux dynamic linker is in use.
|
cannam@86
|
8073 dynamic_linker='GNU/Linux ld.so'
|
cannam@86
|
8074 ;;
|
cannam@86
|
8075
|
cannam@86
|
8076 knetbsd*-gnu)
|
cannam@86
|
8077 version_type=linux
|
cannam@86
|
8078 need_lib_prefix=no
|
cannam@86
|
8079 need_version=no
|
cannam@86
|
8080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
cannam@86
|
8081 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
8082 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
8083 shlibpath_overrides_runpath=no
|
cannam@86
|
8084 hardcode_into_libs=yes
|
cannam@86
|
8085 dynamic_linker='GNU ld.so'
|
cannam@86
|
8086 ;;
|
cannam@86
|
8087
|
cannam@86
|
8088 netbsd*)
|
cannam@86
|
8089 version_type=sunos
|
cannam@86
|
8090 need_lib_prefix=no
|
cannam@86
|
8091 need_version=no
|
cannam@86
|
8092 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
cannam@86
|
8093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
cannam@86
|
8094 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
cannam@86
|
8095 dynamic_linker='NetBSD (a.out) ld.so'
|
cannam@86
|
8096 else
|
cannam@86
|
8097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
cannam@86
|
8098 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
8099 dynamic_linker='NetBSD ld.elf_so'
|
cannam@86
|
8100 fi
|
cannam@86
|
8101 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
8102 shlibpath_overrides_runpath=yes
|
cannam@86
|
8103 hardcode_into_libs=yes
|
cannam@86
|
8104 ;;
|
cannam@86
|
8105
|
cannam@86
|
8106 newsos6)
|
cannam@86
|
8107 version_type=linux
|
cannam@86
|
8108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
8109 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
8110 shlibpath_overrides_runpath=yes
|
cannam@86
|
8111 ;;
|
cannam@86
|
8112
|
cannam@86
|
8113 nto-qnx*)
|
cannam@86
|
8114 version_type=linux
|
cannam@86
|
8115 need_lib_prefix=no
|
cannam@86
|
8116 need_version=no
|
cannam@86
|
8117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
8118 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
8119 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
8120 shlibpath_overrides_runpath=yes
|
cannam@86
|
8121 ;;
|
cannam@86
|
8122
|
cannam@86
|
8123 openbsd*)
|
cannam@86
|
8124 version_type=sunos
|
cannam@86
|
8125 need_lib_prefix=no
|
cannam@86
|
8126 need_version=no
|
cannam@86
|
8127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
cannam@86
|
8128 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
cannam@86
|
8129 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
8130 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
cannam@86
|
8131 case $host_os in
|
cannam@86
|
8132 openbsd2.[89] | openbsd2.[89].*)
|
cannam@86
|
8133 shlibpath_overrides_runpath=no
|
cannam@86
|
8134 ;;
|
cannam@86
|
8135 *)
|
cannam@86
|
8136 shlibpath_overrides_runpath=yes
|
cannam@86
|
8137 ;;
|
cannam@86
|
8138 esac
|
cannam@86
|
8139 else
|
cannam@86
|
8140 shlibpath_overrides_runpath=yes
|
cannam@86
|
8141 fi
|
cannam@86
|
8142 ;;
|
cannam@86
|
8143
|
cannam@86
|
8144 os2*)
|
cannam@86
|
8145 libname_spec='$name'
|
cannam@86
|
8146 shrext_cmds=".dll"
|
cannam@86
|
8147 need_lib_prefix=no
|
cannam@86
|
8148 library_names_spec='$libname${shared_ext} $libname.a'
|
cannam@86
|
8149 dynamic_linker='OS/2 ld.exe'
|
cannam@86
|
8150 shlibpath_var=LIBPATH
|
cannam@86
|
8151 ;;
|
cannam@86
|
8152
|
cannam@86
|
8153 osf3* | osf4* | osf5*)
|
cannam@86
|
8154 version_type=osf
|
cannam@86
|
8155 need_lib_prefix=no
|
cannam@86
|
8156 need_version=no
|
cannam@86
|
8157 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
8158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
8159 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
8160 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
|
cannam@86
|
8161 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
|
cannam@86
|
8162 ;;
|
cannam@86
|
8163
|
cannam@86
|
8164 sco3.2v5*)
|
cannam@86
|
8165 version_type=osf
|
cannam@86
|
8166 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
8167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
8168 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
8169 ;;
|
cannam@86
|
8170
|
cannam@86
|
8171 solaris*)
|
cannam@86
|
8172 version_type=linux
|
cannam@86
|
8173 need_lib_prefix=no
|
cannam@86
|
8174 need_version=no
|
cannam@86
|
8175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
8176 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
8177 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
8178 shlibpath_overrides_runpath=yes
|
cannam@86
|
8179 hardcode_into_libs=yes
|
cannam@86
|
8180 # ldd complains unless libraries are executable
|
cannam@86
|
8181 postinstall_cmds='chmod +x $lib'
|
cannam@86
|
8182 ;;
|
cannam@86
|
8183
|
cannam@86
|
8184 sunos4*)
|
cannam@86
|
8185 version_type=sunos
|
cannam@86
|
8186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
cannam@86
|
8187 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
|
cannam@86
|
8188 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
8189 shlibpath_overrides_runpath=yes
|
cannam@86
|
8190 if test "$with_gnu_ld" = yes; then
|
cannam@86
|
8191 need_lib_prefix=no
|
cannam@86
|
8192 fi
|
cannam@86
|
8193 need_version=yes
|
cannam@86
|
8194 ;;
|
cannam@86
|
8195
|
cannam@86
|
8196 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
cannam@86
|
8197 version_type=linux
|
cannam@86
|
8198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
8199 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
8200 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
8201 case $host_vendor in
|
cannam@86
|
8202 sni)
|
cannam@86
|
8203 shlibpath_overrides_runpath=no
|
cannam@86
|
8204 need_lib_prefix=no
|
cannam@86
|
8205 export_dynamic_flag_spec='${wl}-Blargedynsym'
|
cannam@86
|
8206 runpath_var=LD_RUN_PATH
|
cannam@86
|
8207 ;;
|
cannam@86
|
8208 siemens)
|
cannam@86
|
8209 need_lib_prefix=no
|
cannam@86
|
8210 ;;
|
cannam@86
|
8211 motorola)
|
cannam@86
|
8212 need_lib_prefix=no
|
cannam@86
|
8213 need_version=no
|
cannam@86
|
8214 shlibpath_overrides_runpath=no
|
cannam@86
|
8215 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
|
cannam@86
|
8216 ;;
|
cannam@86
|
8217 esac
|
cannam@86
|
8218 ;;
|
cannam@86
|
8219
|
cannam@86
|
8220 sysv4*MP*)
|
cannam@86
|
8221 if test -d /usr/nec ;then
|
cannam@86
|
8222 version_type=linux
|
cannam@86
|
8223 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
|
cannam@86
|
8224 soname_spec='$libname${shared_ext}.$major'
|
cannam@86
|
8225 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
8226 fi
|
cannam@86
|
8227 ;;
|
cannam@86
|
8228
|
cannam@86
|
8229 uts4*)
|
cannam@86
|
8230 version_type=linux
|
cannam@86
|
8231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
8232 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
8233 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
8234 ;;
|
cannam@86
|
8235
|
cannam@86
|
8236 *)
|
cannam@86
|
8237 dynamic_linker=no
|
cannam@86
|
8238 ;;
|
cannam@86
|
8239 esac
|
cannam@86
|
8240 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
|
cannam@86
|
8241 echo "${ECHO_T}$dynamic_linker" >&6
|
cannam@86
|
8242 test "$dynamic_linker" = no && can_build_shared=no
|
cannam@86
|
8243
|
cannam@86
|
8244 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
|
cannam@86
|
8245 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
|
cannam@86
|
8246 hardcode_action=
|
cannam@86
|
8247 if test -n "$hardcode_libdir_flag_spec" || \
|
cannam@86
|
8248 test -n "$runpath_var" || \
|
cannam@86
|
8249 test "X$hardcode_automatic" = "Xyes" ; then
|
cannam@86
|
8250
|
cannam@86
|
8251 # We can hardcode non-existant directories.
|
cannam@86
|
8252 if test "$hardcode_direct" != no &&
|
cannam@86
|
8253 # If the only mechanism to avoid hardcoding is shlibpath_var, we
|
cannam@86
|
8254 # have to relink, otherwise we might link with an installed library
|
cannam@86
|
8255 # when we should be linking with a yet-to-be-installed one
|
cannam@86
|
8256 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
|
cannam@86
|
8257 test "$hardcode_minus_L" != no; then
|
cannam@86
|
8258 # Linking always hardcodes the temporary library directory.
|
cannam@86
|
8259 hardcode_action=relink
|
cannam@86
|
8260 else
|
cannam@86
|
8261 # We can link without hardcoding, and we can hardcode nonexisting dirs.
|
cannam@86
|
8262 hardcode_action=immediate
|
cannam@86
|
8263 fi
|
cannam@86
|
8264 else
|
cannam@86
|
8265 # We cannot hardcode anything, or else we can only hardcode existing
|
cannam@86
|
8266 # directories.
|
cannam@86
|
8267 hardcode_action=unsupported
|
cannam@86
|
8268 fi
|
cannam@86
|
8269 echo "$as_me:$LINENO: result: $hardcode_action" >&5
|
cannam@86
|
8270 echo "${ECHO_T}$hardcode_action" >&6
|
cannam@86
|
8271
|
cannam@86
|
8272 if test "$hardcode_action" = relink; then
|
cannam@86
|
8273 # Fast installation is not supported
|
cannam@86
|
8274 enable_fast_install=no
|
cannam@86
|
8275 elif test "$shlibpath_overrides_runpath" = yes ||
|
cannam@86
|
8276 test "$enable_shared" = no; then
|
cannam@86
|
8277 # Fast installation is not necessary
|
cannam@86
|
8278 enable_fast_install=needless
|
cannam@86
|
8279 fi
|
cannam@86
|
8280
|
cannam@86
|
8281 striplib=
|
cannam@86
|
8282 old_striplib=
|
cannam@86
|
8283 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
|
cannam@86
|
8284 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
|
cannam@86
|
8285 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
|
cannam@86
|
8286 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
|
cannam@86
|
8287 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
|
cannam@86
|
8288 echo "$as_me:$LINENO: result: yes" >&5
|
cannam@86
|
8289 echo "${ECHO_T}yes" >&6
|
cannam@86
|
8290 else
|
cannam@86
|
8291 # FIXME - insert some real tests, host_os isn't really good enough
|
cannam@86
|
8292 case $host_os in
|
cannam@86
|
8293 darwin*)
|
cannam@86
|
8294 if test -n "$STRIP" ; then
|
cannam@86
|
8295 striplib="$STRIP -x"
|
cannam@86
|
8296 echo "$as_me:$LINENO: result: yes" >&5
|
cannam@86
|
8297 echo "${ECHO_T}yes" >&6
|
cannam@86
|
8298 else
|
cannam@86
|
8299 echo "$as_me:$LINENO: result: no" >&5
|
cannam@86
|
8300 echo "${ECHO_T}no" >&6
|
cannam@86
|
8301 fi
|
cannam@86
|
8302 ;;
|
cannam@86
|
8303 *)
|
cannam@86
|
8304 echo "$as_me:$LINENO: result: no" >&5
|
cannam@86
|
8305 echo "${ECHO_T}no" >&6
|
cannam@86
|
8306 ;;
|
cannam@86
|
8307 esac
|
cannam@86
|
8308 fi
|
cannam@86
|
8309
|
cannam@86
|
8310 if test "x$enable_dlopen" != xyes; then
|
cannam@86
|
8311 enable_dlopen=unknown
|
cannam@86
|
8312 enable_dlopen_self=unknown
|
cannam@86
|
8313 enable_dlopen_self_static=unknown
|
cannam@86
|
8314 else
|
cannam@86
|
8315 lt_cv_dlopen=no
|
cannam@86
|
8316 lt_cv_dlopen_libs=
|
cannam@86
|
8317
|
cannam@86
|
8318 case $host_os in
|
cannam@86
|
8319 beos*)
|
cannam@86
|
8320 lt_cv_dlopen="load_add_on"
|
cannam@86
|
8321 lt_cv_dlopen_libs=
|
cannam@86
|
8322 lt_cv_dlopen_self=yes
|
cannam@86
|
8323 ;;
|
cannam@86
|
8324
|
cannam@86
|
8325 mingw* | pw32*)
|
cannam@86
|
8326 lt_cv_dlopen="LoadLibrary"
|
cannam@86
|
8327 lt_cv_dlopen_libs=
|
cannam@86
|
8328 ;;
|
cannam@86
|
8329
|
cannam@86
|
8330 cygwin*)
|
cannam@86
|
8331 lt_cv_dlopen="dlopen"
|
cannam@86
|
8332 lt_cv_dlopen_libs=
|
cannam@86
|
8333 ;;
|
cannam@86
|
8334
|
cannam@86
|
8335 darwin*)
|
cannam@86
|
8336 # if libdl is installed we need to link against it
|
cannam@86
|
8337 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
|
cannam@86
|
8338 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
|
cannam@86
|
8339 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
|
cannam@86
|
8340 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
8341 else
|
cannam@86
|
8342 ac_check_lib_save_LIBS=$LIBS
|
cannam@86
|
8343 LIBS="-ldl $LIBS"
|
cannam@86
|
8344 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
8345 /* confdefs.h. */
|
cannam@86
|
8346 _ACEOF
|
cannam@86
|
8347 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
8348 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
8349 /* end confdefs.h. */
|
cannam@86
|
8350
|
cannam@86
|
8351 /* Override any gcc2 internal prototype to avoid an error. */
|
cannam@86
|
8352 #ifdef __cplusplus
|
cannam@86
|
8353 extern "C"
|
cannam@86
|
8354 #endif
|
cannam@86
|
8355 /* We use char because int might match the return type of a gcc2
|
cannam@86
|
8356 builtin and then its argument prototype would still apply. */
|
cannam@86
|
8357 char dlopen ();
|
cannam@86
|
8358 int
|
cannam@86
|
8359 main ()
|
cannam@86
|
8360 {
|
cannam@86
|
8361 dlopen ();
|
cannam@86
|
8362 ;
|
cannam@86
|
8363 return 0;
|
cannam@86
|
8364 }
|
cannam@86
|
8365 _ACEOF
|
cannam@86
|
8366 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@86
|
8367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@86
|
8368 (eval $ac_link) 2>conftest.er1
|
cannam@86
|
8369 ac_status=$?
|
cannam@86
|
8370 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
8371 rm -f conftest.er1
|
cannam@86
|
8372 cat conftest.err >&5
|
cannam@86
|
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
8374 (exit $ac_status); } &&
|
cannam@86
|
8375 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
8376 || test ! -s conftest.err'
|
cannam@86
|
8377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
8378 (eval $ac_try) 2>&5
|
cannam@86
|
8379 ac_status=$?
|
cannam@86
|
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
8381 (exit $ac_status); }; } &&
|
cannam@86
|
8382 { ac_try='test -s conftest$ac_exeext'
|
cannam@86
|
8383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
8384 (eval $ac_try) 2>&5
|
cannam@86
|
8385 ac_status=$?
|
cannam@86
|
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
8387 (exit $ac_status); }; }; then
|
cannam@86
|
8388 ac_cv_lib_dl_dlopen=yes
|
cannam@86
|
8389 else
|
cannam@86
|
8390 echo "$as_me: failed program was:" >&5
|
cannam@86
|
8391 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
8392
|
cannam@86
|
8393 ac_cv_lib_dl_dlopen=no
|
cannam@86
|
8394 fi
|
cannam@86
|
8395 rm -f conftest.err conftest.$ac_objext \
|
cannam@86
|
8396 conftest$ac_exeext conftest.$ac_ext
|
cannam@86
|
8397 LIBS=$ac_check_lib_save_LIBS
|
cannam@86
|
8398 fi
|
cannam@86
|
8399 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
|
cannam@86
|
8400 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
|
cannam@86
|
8401 if test $ac_cv_lib_dl_dlopen = yes; then
|
cannam@86
|
8402 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
|
cannam@86
|
8403 else
|
cannam@86
|
8404
|
cannam@86
|
8405 lt_cv_dlopen="dyld"
|
cannam@86
|
8406 lt_cv_dlopen_libs=
|
cannam@86
|
8407 lt_cv_dlopen_self=yes
|
cannam@86
|
8408
|
cannam@86
|
8409 fi
|
cannam@86
|
8410
|
cannam@86
|
8411 ;;
|
cannam@86
|
8412
|
cannam@86
|
8413 *)
|
cannam@86
|
8414 echo "$as_me:$LINENO: checking for shl_load" >&5
|
cannam@86
|
8415 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
|
cannam@86
|
8416 if test "${ac_cv_func_shl_load+set}" = set; then
|
cannam@86
|
8417 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
8418 else
|
cannam@86
|
8419 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
8420 /* confdefs.h. */
|
cannam@86
|
8421 _ACEOF
|
cannam@86
|
8422 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
8423 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
8424 /* end confdefs.h. */
|
cannam@86
|
8425 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
|
cannam@86
|
8426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
cannam@86
|
8427 #define shl_load innocuous_shl_load
|
cannam@86
|
8428
|
cannam@86
|
8429 /* System header to define __stub macros and hopefully few prototypes,
|
cannam@86
|
8430 which can conflict with char shl_load (); below.
|
cannam@86
|
8431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
cannam@86
|
8432 <limits.h> exists even on freestanding compilers. */
|
cannam@86
|
8433
|
cannam@86
|
8434 #ifdef __STDC__
|
cannam@86
|
8435 # include <limits.h>
|
cannam@86
|
8436 #else
|
cannam@86
|
8437 # include <assert.h>
|
cannam@86
|
8438 #endif
|
cannam@86
|
8439
|
cannam@86
|
8440 #undef shl_load
|
cannam@86
|
8441
|
cannam@86
|
8442 /* Override any gcc2 internal prototype to avoid an error. */
|
cannam@86
|
8443 #ifdef __cplusplus
|
cannam@86
|
8444 extern "C"
|
cannam@86
|
8445 {
|
cannam@86
|
8446 #endif
|
cannam@86
|
8447 /* We use char because int might match the return type of a gcc2
|
cannam@86
|
8448 builtin and then its argument prototype would still apply. */
|
cannam@86
|
8449 char shl_load ();
|
cannam@86
|
8450 /* The GNU C library defines this for functions which it implements
|
cannam@86
|
8451 to always fail with ENOSYS. Some functions are actually named
|
cannam@86
|
8452 something starting with __ and the normal name is an alias. */
|
cannam@86
|
8453 #if defined (__stub_shl_load) || defined (__stub___shl_load)
|
cannam@86
|
8454 choke me
|
cannam@86
|
8455 #else
|
cannam@86
|
8456 char (*f) () = shl_load;
|
cannam@86
|
8457 #endif
|
cannam@86
|
8458 #ifdef __cplusplus
|
cannam@86
|
8459 }
|
cannam@86
|
8460 #endif
|
cannam@86
|
8461
|
cannam@86
|
8462 int
|
cannam@86
|
8463 main ()
|
cannam@86
|
8464 {
|
cannam@86
|
8465 return f != shl_load;
|
cannam@86
|
8466 ;
|
cannam@86
|
8467 return 0;
|
cannam@86
|
8468 }
|
cannam@86
|
8469 _ACEOF
|
cannam@86
|
8470 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@86
|
8471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@86
|
8472 (eval $ac_link) 2>conftest.er1
|
cannam@86
|
8473 ac_status=$?
|
cannam@86
|
8474 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
8475 rm -f conftest.er1
|
cannam@86
|
8476 cat conftest.err >&5
|
cannam@86
|
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
8478 (exit $ac_status); } &&
|
cannam@86
|
8479 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
8480 || test ! -s conftest.err'
|
cannam@86
|
8481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
8482 (eval $ac_try) 2>&5
|
cannam@86
|
8483 ac_status=$?
|
cannam@86
|
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
8485 (exit $ac_status); }; } &&
|
cannam@86
|
8486 { ac_try='test -s conftest$ac_exeext'
|
cannam@86
|
8487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
8488 (eval $ac_try) 2>&5
|
cannam@86
|
8489 ac_status=$?
|
cannam@86
|
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
8491 (exit $ac_status); }; }; then
|
cannam@86
|
8492 ac_cv_func_shl_load=yes
|
cannam@86
|
8493 else
|
cannam@86
|
8494 echo "$as_me: failed program was:" >&5
|
cannam@86
|
8495 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
8496
|
cannam@86
|
8497 ac_cv_func_shl_load=no
|
cannam@86
|
8498 fi
|
cannam@86
|
8499 rm -f conftest.err conftest.$ac_objext \
|
cannam@86
|
8500 conftest$ac_exeext conftest.$ac_ext
|
cannam@86
|
8501 fi
|
cannam@86
|
8502 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
|
cannam@86
|
8503 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
|
cannam@86
|
8504 if test $ac_cv_func_shl_load = yes; then
|
cannam@86
|
8505 lt_cv_dlopen="shl_load"
|
cannam@86
|
8506 else
|
cannam@86
|
8507 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
|
cannam@86
|
8508 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
|
cannam@86
|
8509 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
|
cannam@86
|
8510 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
8511 else
|
cannam@86
|
8512 ac_check_lib_save_LIBS=$LIBS
|
cannam@86
|
8513 LIBS="-ldld $LIBS"
|
cannam@86
|
8514 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
8515 /* confdefs.h. */
|
cannam@86
|
8516 _ACEOF
|
cannam@86
|
8517 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
8518 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
8519 /* end confdefs.h. */
|
cannam@86
|
8520
|
cannam@86
|
8521 /* Override any gcc2 internal prototype to avoid an error. */
|
cannam@86
|
8522 #ifdef __cplusplus
|
cannam@86
|
8523 extern "C"
|
cannam@86
|
8524 #endif
|
cannam@86
|
8525 /* We use char because int might match the return type of a gcc2
|
cannam@86
|
8526 builtin and then its argument prototype would still apply. */
|
cannam@86
|
8527 char shl_load ();
|
cannam@86
|
8528 int
|
cannam@86
|
8529 main ()
|
cannam@86
|
8530 {
|
cannam@86
|
8531 shl_load ();
|
cannam@86
|
8532 ;
|
cannam@86
|
8533 return 0;
|
cannam@86
|
8534 }
|
cannam@86
|
8535 _ACEOF
|
cannam@86
|
8536 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@86
|
8537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@86
|
8538 (eval $ac_link) 2>conftest.er1
|
cannam@86
|
8539 ac_status=$?
|
cannam@86
|
8540 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
8541 rm -f conftest.er1
|
cannam@86
|
8542 cat conftest.err >&5
|
cannam@86
|
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
8544 (exit $ac_status); } &&
|
cannam@86
|
8545 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
8546 || test ! -s conftest.err'
|
cannam@86
|
8547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
8548 (eval $ac_try) 2>&5
|
cannam@86
|
8549 ac_status=$?
|
cannam@86
|
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
8551 (exit $ac_status); }; } &&
|
cannam@86
|
8552 { ac_try='test -s conftest$ac_exeext'
|
cannam@86
|
8553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
8554 (eval $ac_try) 2>&5
|
cannam@86
|
8555 ac_status=$?
|
cannam@86
|
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
8557 (exit $ac_status); }; }; then
|
cannam@86
|
8558 ac_cv_lib_dld_shl_load=yes
|
cannam@86
|
8559 else
|
cannam@86
|
8560 echo "$as_me: failed program was:" >&5
|
cannam@86
|
8561 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
8562
|
cannam@86
|
8563 ac_cv_lib_dld_shl_load=no
|
cannam@86
|
8564 fi
|
cannam@86
|
8565 rm -f conftest.err conftest.$ac_objext \
|
cannam@86
|
8566 conftest$ac_exeext conftest.$ac_ext
|
cannam@86
|
8567 LIBS=$ac_check_lib_save_LIBS
|
cannam@86
|
8568 fi
|
cannam@86
|
8569 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
|
cannam@86
|
8570 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
|
cannam@86
|
8571 if test $ac_cv_lib_dld_shl_load = yes; then
|
cannam@86
|
8572 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
|
cannam@86
|
8573 else
|
cannam@86
|
8574 echo "$as_me:$LINENO: checking for dlopen" >&5
|
cannam@86
|
8575 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
|
cannam@86
|
8576 if test "${ac_cv_func_dlopen+set}" = set; then
|
cannam@86
|
8577 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
8578 else
|
cannam@86
|
8579 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
8580 /* confdefs.h. */
|
cannam@86
|
8581 _ACEOF
|
cannam@86
|
8582 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
8583 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
8584 /* end confdefs.h. */
|
cannam@86
|
8585 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
|
cannam@86
|
8586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
cannam@86
|
8587 #define dlopen innocuous_dlopen
|
cannam@86
|
8588
|
cannam@86
|
8589 /* System header to define __stub macros and hopefully few prototypes,
|
cannam@86
|
8590 which can conflict with char dlopen (); below.
|
cannam@86
|
8591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
cannam@86
|
8592 <limits.h> exists even on freestanding compilers. */
|
cannam@86
|
8593
|
cannam@86
|
8594 #ifdef __STDC__
|
cannam@86
|
8595 # include <limits.h>
|
cannam@86
|
8596 #else
|
cannam@86
|
8597 # include <assert.h>
|
cannam@86
|
8598 #endif
|
cannam@86
|
8599
|
cannam@86
|
8600 #undef dlopen
|
cannam@86
|
8601
|
cannam@86
|
8602 /* Override any gcc2 internal prototype to avoid an error. */
|
cannam@86
|
8603 #ifdef __cplusplus
|
cannam@86
|
8604 extern "C"
|
cannam@86
|
8605 {
|
cannam@86
|
8606 #endif
|
cannam@86
|
8607 /* We use char because int might match the return type of a gcc2
|
cannam@86
|
8608 builtin and then its argument prototype would still apply. */
|
cannam@86
|
8609 char dlopen ();
|
cannam@86
|
8610 /* The GNU C library defines this for functions which it implements
|
cannam@86
|
8611 to always fail with ENOSYS. Some functions are actually named
|
cannam@86
|
8612 something starting with __ and the normal name is an alias. */
|
cannam@86
|
8613 #if defined (__stub_dlopen) || defined (__stub___dlopen)
|
cannam@86
|
8614 choke me
|
cannam@86
|
8615 #else
|
cannam@86
|
8616 char (*f) () = dlopen;
|
cannam@86
|
8617 #endif
|
cannam@86
|
8618 #ifdef __cplusplus
|
cannam@86
|
8619 }
|
cannam@86
|
8620 #endif
|
cannam@86
|
8621
|
cannam@86
|
8622 int
|
cannam@86
|
8623 main ()
|
cannam@86
|
8624 {
|
cannam@86
|
8625 return f != dlopen;
|
cannam@86
|
8626 ;
|
cannam@86
|
8627 return 0;
|
cannam@86
|
8628 }
|
cannam@86
|
8629 _ACEOF
|
cannam@86
|
8630 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@86
|
8631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@86
|
8632 (eval $ac_link) 2>conftest.er1
|
cannam@86
|
8633 ac_status=$?
|
cannam@86
|
8634 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
8635 rm -f conftest.er1
|
cannam@86
|
8636 cat conftest.err >&5
|
cannam@86
|
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
8638 (exit $ac_status); } &&
|
cannam@86
|
8639 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
8640 || test ! -s conftest.err'
|
cannam@86
|
8641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
8642 (eval $ac_try) 2>&5
|
cannam@86
|
8643 ac_status=$?
|
cannam@86
|
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
8645 (exit $ac_status); }; } &&
|
cannam@86
|
8646 { ac_try='test -s conftest$ac_exeext'
|
cannam@86
|
8647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
8648 (eval $ac_try) 2>&5
|
cannam@86
|
8649 ac_status=$?
|
cannam@86
|
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
8651 (exit $ac_status); }; }; then
|
cannam@86
|
8652 ac_cv_func_dlopen=yes
|
cannam@86
|
8653 else
|
cannam@86
|
8654 echo "$as_me: failed program was:" >&5
|
cannam@86
|
8655 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
8656
|
cannam@86
|
8657 ac_cv_func_dlopen=no
|
cannam@86
|
8658 fi
|
cannam@86
|
8659 rm -f conftest.err conftest.$ac_objext \
|
cannam@86
|
8660 conftest$ac_exeext conftest.$ac_ext
|
cannam@86
|
8661 fi
|
cannam@86
|
8662 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
|
cannam@86
|
8663 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
|
cannam@86
|
8664 if test $ac_cv_func_dlopen = yes; then
|
cannam@86
|
8665 lt_cv_dlopen="dlopen"
|
cannam@86
|
8666 else
|
cannam@86
|
8667 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
|
cannam@86
|
8668 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
|
cannam@86
|
8669 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
|
cannam@86
|
8670 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
8671 else
|
cannam@86
|
8672 ac_check_lib_save_LIBS=$LIBS
|
cannam@86
|
8673 LIBS="-ldl $LIBS"
|
cannam@86
|
8674 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
8675 /* confdefs.h. */
|
cannam@86
|
8676 _ACEOF
|
cannam@86
|
8677 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
8678 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
8679 /* end confdefs.h. */
|
cannam@86
|
8680
|
cannam@86
|
8681 /* Override any gcc2 internal prototype to avoid an error. */
|
cannam@86
|
8682 #ifdef __cplusplus
|
cannam@86
|
8683 extern "C"
|
cannam@86
|
8684 #endif
|
cannam@86
|
8685 /* We use char because int might match the return type of a gcc2
|
cannam@86
|
8686 builtin and then its argument prototype would still apply. */
|
cannam@86
|
8687 char dlopen ();
|
cannam@86
|
8688 int
|
cannam@86
|
8689 main ()
|
cannam@86
|
8690 {
|
cannam@86
|
8691 dlopen ();
|
cannam@86
|
8692 ;
|
cannam@86
|
8693 return 0;
|
cannam@86
|
8694 }
|
cannam@86
|
8695 _ACEOF
|
cannam@86
|
8696 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@86
|
8697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@86
|
8698 (eval $ac_link) 2>conftest.er1
|
cannam@86
|
8699 ac_status=$?
|
cannam@86
|
8700 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
8701 rm -f conftest.er1
|
cannam@86
|
8702 cat conftest.err >&5
|
cannam@86
|
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
8704 (exit $ac_status); } &&
|
cannam@86
|
8705 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
8706 || test ! -s conftest.err'
|
cannam@86
|
8707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
8708 (eval $ac_try) 2>&5
|
cannam@86
|
8709 ac_status=$?
|
cannam@86
|
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
8711 (exit $ac_status); }; } &&
|
cannam@86
|
8712 { ac_try='test -s conftest$ac_exeext'
|
cannam@86
|
8713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
8714 (eval $ac_try) 2>&5
|
cannam@86
|
8715 ac_status=$?
|
cannam@86
|
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
8717 (exit $ac_status); }; }; then
|
cannam@86
|
8718 ac_cv_lib_dl_dlopen=yes
|
cannam@86
|
8719 else
|
cannam@86
|
8720 echo "$as_me: failed program was:" >&5
|
cannam@86
|
8721 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
8722
|
cannam@86
|
8723 ac_cv_lib_dl_dlopen=no
|
cannam@86
|
8724 fi
|
cannam@86
|
8725 rm -f conftest.err conftest.$ac_objext \
|
cannam@86
|
8726 conftest$ac_exeext conftest.$ac_ext
|
cannam@86
|
8727 LIBS=$ac_check_lib_save_LIBS
|
cannam@86
|
8728 fi
|
cannam@86
|
8729 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
|
cannam@86
|
8730 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
|
cannam@86
|
8731 if test $ac_cv_lib_dl_dlopen = yes; then
|
cannam@86
|
8732 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
|
cannam@86
|
8733 else
|
cannam@86
|
8734 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
|
cannam@86
|
8735 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
|
cannam@86
|
8736 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
|
cannam@86
|
8737 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
8738 else
|
cannam@86
|
8739 ac_check_lib_save_LIBS=$LIBS
|
cannam@86
|
8740 LIBS="-lsvld $LIBS"
|
cannam@86
|
8741 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
8742 /* confdefs.h. */
|
cannam@86
|
8743 _ACEOF
|
cannam@86
|
8744 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
8745 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
8746 /* end confdefs.h. */
|
cannam@86
|
8747
|
cannam@86
|
8748 /* Override any gcc2 internal prototype to avoid an error. */
|
cannam@86
|
8749 #ifdef __cplusplus
|
cannam@86
|
8750 extern "C"
|
cannam@86
|
8751 #endif
|
cannam@86
|
8752 /* We use char because int might match the return type of a gcc2
|
cannam@86
|
8753 builtin and then its argument prototype would still apply. */
|
cannam@86
|
8754 char dlopen ();
|
cannam@86
|
8755 int
|
cannam@86
|
8756 main ()
|
cannam@86
|
8757 {
|
cannam@86
|
8758 dlopen ();
|
cannam@86
|
8759 ;
|
cannam@86
|
8760 return 0;
|
cannam@86
|
8761 }
|
cannam@86
|
8762 _ACEOF
|
cannam@86
|
8763 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@86
|
8764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@86
|
8765 (eval $ac_link) 2>conftest.er1
|
cannam@86
|
8766 ac_status=$?
|
cannam@86
|
8767 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
8768 rm -f conftest.er1
|
cannam@86
|
8769 cat conftest.err >&5
|
cannam@86
|
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
8771 (exit $ac_status); } &&
|
cannam@86
|
8772 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
8773 || test ! -s conftest.err'
|
cannam@86
|
8774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
8775 (eval $ac_try) 2>&5
|
cannam@86
|
8776 ac_status=$?
|
cannam@86
|
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
8778 (exit $ac_status); }; } &&
|
cannam@86
|
8779 { ac_try='test -s conftest$ac_exeext'
|
cannam@86
|
8780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
8781 (eval $ac_try) 2>&5
|
cannam@86
|
8782 ac_status=$?
|
cannam@86
|
8783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
8784 (exit $ac_status); }; }; then
|
cannam@86
|
8785 ac_cv_lib_svld_dlopen=yes
|
cannam@86
|
8786 else
|
cannam@86
|
8787 echo "$as_me: failed program was:" >&5
|
cannam@86
|
8788 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
8789
|
cannam@86
|
8790 ac_cv_lib_svld_dlopen=no
|
cannam@86
|
8791 fi
|
cannam@86
|
8792 rm -f conftest.err conftest.$ac_objext \
|
cannam@86
|
8793 conftest$ac_exeext conftest.$ac_ext
|
cannam@86
|
8794 LIBS=$ac_check_lib_save_LIBS
|
cannam@86
|
8795 fi
|
cannam@86
|
8796 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
|
cannam@86
|
8797 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
|
cannam@86
|
8798 if test $ac_cv_lib_svld_dlopen = yes; then
|
cannam@86
|
8799 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
|
cannam@86
|
8800 else
|
cannam@86
|
8801 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
|
cannam@86
|
8802 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
|
cannam@86
|
8803 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
|
cannam@86
|
8804 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
8805 else
|
cannam@86
|
8806 ac_check_lib_save_LIBS=$LIBS
|
cannam@86
|
8807 LIBS="-ldld $LIBS"
|
cannam@86
|
8808 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
8809 /* confdefs.h. */
|
cannam@86
|
8810 _ACEOF
|
cannam@86
|
8811 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
8812 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
8813 /* end confdefs.h. */
|
cannam@86
|
8814
|
cannam@86
|
8815 /* Override any gcc2 internal prototype to avoid an error. */
|
cannam@86
|
8816 #ifdef __cplusplus
|
cannam@86
|
8817 extern "C"
|
cannam@86
|
8818 #endif
|
cannam@86
|
8819 /* We use char because int might match the return type of a gcc2
|
cannam@86
|
8820 builtin and then its argument prototype would still apply. */
|
cannam@86
|
8821 char dld_link ();
|
cannam@86
|
8822 int
|
cannam@86
|
8823 main ()
|
cannam@86
|
8824 {
|
cannam@86
|
8825 dld_link ();
|
cannam@86
|
8826 ;
|
cannam@86
|
8827 return 0;
|
cannam@86
|
8828 }
|
cannam@86
|
8829 _ACEOF
|
cannam@86
|
8830 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@86
|
8831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@86
|
8832 (eval $ac_link) 2>conftest.er1
|
cannam@86
|
8833 ac_status=$?
|
cannam@86
|
8834 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
8835 rm -f conftest.er1
|
cannam@86
|
8836 cat conftest.err >&5
|
cannam@86
|
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
8838 (exit $ac_status); } &&
|
cannam@86
|
8839 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
8840 || test ! -s conftest.err'
|
cannam@86
|
8841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
8842 (eval $ac_try) 2>&5
|
cannam@86
|
8843 ac_status=$?
|
cannam@86
|
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
8845 (exit $ac_status); }; } &&
|
cannam@86
|
8846 { ac_try='test -s conftest$ac_exeext'
|
cannam@86
|
8847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
8848 (eval $ac_try) 2>&5
|
cannam@86
|
8849 ac_status=$?
|
cannam@86
|
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
8851 (exit $ac_status); }; }; then
|
cannam@86
|
8852 ac_cv_lib_dld_dld_link=yes
|
cannam@86
|
8853 else
|
cannam@86
|
8854 echo "$as_me: failed program was:" >&5
|
cannam@86
|
8855 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
8856
|
cannam@86
|
8857 ac_cv_lib_dld_dld_link=no
|
cannam@86
|
8858 fi
|
cannam@86
|
8859 rm -f conftest.err conftest.$ac_objext \
|
cannam@86
|
8860 conftest$ac_exeext conftest.$ac_ext
|
cannam@86
|
8861 LIBS=$ac_check_lib_save_LIBS
|
cannam@86
|
8862 fi
|
cannam@86
|
8863 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
|
cannam@86
|
8864 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
|
cannam@86
|
8865 if test $ac_cv_lib_dld_dld_link = yes; then
|
cannam@86
|
8866 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
|
cannam@86
|
8867 fi
|
cannam@86
|
8868
|
cannam@86
|
8869
|
cannam@86
|
8870 fi
|
cannam@86
|
8871
|
cannam@86
|
8872
|
cannam@86
|
8873 fi
|
cannam@86
|
8874
|
cannam@86
|
8875
|
cannam@86
|
8876 fi
|
cannam@86
|
8877
|
cannam@86
|
8878
|
cannam@86
|
8879 fi
|
cannam@86
|
8880
|
cannam@86
|
8881
|
cannam@86
|
8882 fi
|
cannam@86
|
8883
|
cannam@86
|
8884 ;;
|
cannam@86
|
8885 esac
|
cannam@86
|
8886
|
cannam@86
|
8887 if test "x$lt_cv_dlopen" != xno; then
|
cannam@86
|
8888 enable_dlopen=yes
|
cannam@86
|
8889 else
|
cannam@86
|
8890 enable_dlopen=no
|
cannam@86
|
8891 fi
|
cannam@86
|
8892
|
cannam@86
|
8893 case $lt_cv_dlopen in
|
cannam@86
|
8894 dlopen)
|
cannam@86
|
8895 save_CPPFLAGS="$CPPFLAGS"
|
cannam@86
|
8896 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
|
cannam@86
|
8897
|
cannam@86
|
8898 save_LDFLAGS="$LDFLAGS"
|
cannam@86
|
8899 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
|
cannam@86
|
8900
|
cannam@86
|
8901 save_LIBS="$LIBS"
|
cannam@86
|
8902 LIBS="$lt_cv_dlopen_libs $LIBS"
|
cannam@86
|
8903
|
cannam@86
|
8904 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
|
cannam@86
|
8905 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
|
cannam@86
|
8906 if test "${lt_cv_dlopen_self+set}" = set; then
|
cannam@86
|
8907 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
8908 else
|
cannam@86
|
8909 if test "$cross_compiling" = yes; then :
|
cannam@86
|
8910 lt_cv_dlopen_self=cross
|
cannam@86
|
8911 else
|
cannam@86
|
8912 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
cannam@86
|
8913 lt_status=$lt_dlunknown
|
cannam@86
|
8914 cat > conftest.$ac_ext <<EOF
|
cannam@86
|
8915 #line 8915 "configure"
|
cannam@86
|
8916 #include "confdefs.h"
|
cannam@86
|
8917
|
cannam@86
|
8918 #if HAVE_DLFCN_H
|
cannam@86
|
8919 #include <dlfcn.h>
|
cannam@86
|
8920 #endif
|
cannam@86
|
8921
|
cannam@86
|
8922 #include <stdio.h>
|
cannam@86
|
8923
|
cannam@86
|
8924 #ifdef RTLD_GLOBAL
|
cannam@86
|
8925 # define LT_DLGLOBAL RTLD_GLOBAL
|
cannam@86
|
8926 #else
|
cannam@86
|
8927 # ifdef DL_GLOBAL
|
cannam@86
|
8928 # define LT_DLGLOBAL DL_GLOBAL
|
cannam@86
|
8929 # else
|
cannam@86
|
8930 # define LT_DLGLOBAL 0
|
cannam@86
|
8931 # endif
|
cannam@86
|
8932 #endif
|
cannam@86
|
8933
|
cannam@86
|
8934 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
|
cannam@86
|
8935 find out it does not work in some platform. */
|
cannam@86
|
8936 #ifndef LT_DLLAZY_OR_NOW
|
cannam@86
|
8937 # ifdef RTLD_LAZY
|
cannam@86
|
8938 # define LT_DLLAZY_OR_NOW RTLD_LAZY
|
cannam@86
|
8939 # else
|
cannam@86
|
8940 # ifdef DL_LAZY
|
cannam@86
|
8941 # define LT_DLLAZY_OR_NOW DL_LAZY
|
cannam@86
|
8942 # else
|
cannam@86
|
8943 # ifdef RTLD_NOW
|
cannam@86
|
8944 # define LT_DLLAZY_OR_NOW RTLD_NOW
|
cannam@86
|
8945 # else
|
cannam@86
|
8946 # ifdef DL_NOW
|
cannam@86
|
8947 # define LT_DLLAZY_OR_NOW DL_NOW
|
cannam@86
|
8948 # else
|
cannam@86
|
8949 # define LT_DLLAZY_OR_NOW 0
|
cannam@86
|
8950 # endif
|
cannam@86
|
8951 # endif
|
cannam@86
|
8952 # endif
|
cannam@86
|
8953 # endif
|
cannam@86
|
8954 #endif
|
cannam@86
|
8955
|
cannam@86
|
8956 #ifdef __cplusplus
|
cannam@86
|
8957 extern "C" void exit (int);
|
cannam@86
|
8958 #endif
|
cannam@86
|
8959
|
cannam@86
|
8960 void fnord() { int i=42;}
|
cannam@86
|
8961 int main ()
|
cannam@86
|
8962 {
|
cannam@86
|
8963 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
cannam@86
|
8964 int status = $lt_dlunknown;
|
cannam@86
|
8965
|
cannam@86
|
8966 if (self)
|
cannam@86
|
8967 {
|
cannam@86
|
8968 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
cannam@86
|
8969 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
cannam@86
|
8970 /* dlclose (self); */
|
cannam@86
|
8971 }
|
cannam@86
|
8972
|
cannam@86
|
8973 exit (status);
|
cannam@86
|
8974 }
|
cannam@86
|
8975 EOF
|
cannam@86
|
8976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@86
|
8977 (eval $ac_link) 2>&5
|
cannam@86
|
8978 ac_status=$?
|
cannam@86
|
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
8980 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
|
cannam@86
|
8981 (./conftest; exit; ) 2>/dev/null
|
cannam@86
|
8982 lt_status=$?
|
cannam@86
|
8983 case x$lt_status in
|
cannam@86
|
8984 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
|
cannam@86
|
8985 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
|
cannam@86
|
8986 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
|
cannam@86
|
8987 esac
|
cannam@86
|
8988 else :
|
cannam@86
|
8989 # compilation failed
|
cannam@86
|
8990 lt_cv_dlopen_self=no
|
cannam@86
|
8991 fi
|
cannam@86
|
8992 fi
|
cannam@86
|
8993 rm -fr conftest*
|
cannam@86
|
8994
|
cannam@86
|
8995
|
cannam@86
|
8996 fi
|
cannam@86
|
8997 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
|
cannam@86
|
8998 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
|
cannam@86
|
8999
|
cannam@86
|
9000 if test "x$lt_cv_dlopen_self" = xyes; then
|
cannam@86
|
9001 LDFLAGS="$LDFLAGS $link_static_flag"
|
cannam@86
|
9002 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
|
cannam@86
|
9003 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
|
cannam@86
|
9004 if test "${lt_cv_dlopen_self_static+set}" = set; then
|
cannam@86
|
9005 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
9006 else
|
cannam@86
|
9007 if test "$cross_compiling" = yes; then :
|
cannam@86
|
9008 lt_cv_dlopen_self_static=cross
|
cannam@86
|
9009 else
|
cannam@86
|
9010 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
cannam@86
|
9011 lt_status=$lt_dlunknown
|
cannam@86
|
9012 cat > conftest.$ac_ext <<EOF
|
cannam@86
|
9013 #line 9013 "configure"
|
cannam@86
|
9014 #include "confdefs.h"
|
cannam@86
|
9015
|
cannam@86
|
9016 #if HAVE_DLFCN_H
|
cannam@86
|
9017 #include <dlfcn.h>
|
cannam@86
|
9018 #endif
|
cannam@86
|
9019
|
cannam@86
|
9020 #include <stdio.h>
|
cannam@86
|
9021
|
cannam@86
|
9022 #ifdef RTLD_GLOBAL
|
cannam@86
|
9023 # define LT_DLGLOBAL RTLD_GLOBAL
|
cannam@86
|
9024 #else
|
cannam@86
|
9025 # ifdef DL_GLOBAL
|
cannam@86
|
9026 # define LT_DLGLOBAL DL_GLOBAL
|
cannam@86
|
9027 # else
|
cannam@86
|
9028 # define LT_DLGLOBAL 0
|
cannam@86
|
9029 # endif
|
cannam@86
|
9030 #endif
|
cannam@86
|
9031
|
cannam@86
|
9032 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
|
cannam@86
|
9033 find out it does not work in some platform. */
|
cannam@86
|
9034 #ifndef LT_DLLAZY_OR_NOW
|
cannam@86
|
9035 # ifdef RTLD_LAZY
|
cannam@86
|
9036 # define LT_DLLAZY_OR_NOW RTLD_LAZY
|
cannam@86
|
9037 # else
|
cannam@86
|
9038 # ifdef DL_LAZY
|
cannam@86
|
9039 # define LT_DLLAZY_OR_NOW DL_LAZY
|
cannam@86
|
9040 # else
|
cannam@86
|
9041 # ifdef RTLD_NOW
|
cannam@86
|
9042 # define LT_DLLAZY_OR_NOW RTLD_NOW
|
cannam@86
|
9043 # else
|
cannam@86
|
9044 # ifdef DL_NOW
|
cannam@86
|
9045 # define LT_DLLAZY_OR_NOW DL_NOW
|
cannam@86
|
9046 # else
|
cannam@86
|
9047 # define LT_DLLAZY_OR_NOW 0
|
cannam@86
|
9048 # endif
|
cannam@86
|
9049 # endif
|
cannam@86
|
9050 # endif
|
cannam@86
|
9051 # endif
|
cannam@86
|
9052 #endif
|
cannam@86
|
9053
|
cannam@86
|
9054 #ifdef __cplusplus
|
cannam@86
|
9055 extern "C" void exit (int);
|
cannam@86
|
9056 #endif
|
cannam@86
|
9057
|
cannam@86
|
9058 void fnord() { int i=42;}
|
cannam@86
|
9059 int main ()
|
cannam@86
|
9060 {
|
cannam@86
|
9061 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
cannam@86
|
9062 int status = $lt_dlunknown;
|
cannam@86
|
9063
|
cannam@86
|
9064 if (self)
|
cannam@86
|
9065 {
|
cannam@86
|
9066 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
cannam@86
|
9067 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
cannam@86
|
9068 /* dlclose (self); */
|
cannam@86
|
9069 }
|
cannam@86
|
9070
|
cannam@86
|
9071 exit (status);
|
cannam@86
|
9072 }
|
cannam@86
|
9073 EOF
|
cannam@86
|
9074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@86
|
9075 (eval $ac_link) 2>&5
|
cannam@86
|
9076 ac_status=$?
|
cannam@86
|
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
9078 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
|
cannam@86
|
9079 (./conftest; exit; ) 2>/dev/null
|
cannam@86
|
9080 lt_status=$?
|
cannam@86
|
9081 case x$lt_status in
|
cannam@86
|
9082 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
|
cannam@86
|
9083 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
|
cannam@86
|
9084 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
|
cannam@86
|
9085 esac
|
cannam@86
|
9086 else :
|
cannam@86
|
9087 # compilation failed
|
cannam@86
|
9088 lt_cv_dlopen_self_static=no
|
cannam@86
|
9089 fi
|
cannam@86
|
9090 fi
|
cannam@86
|
9091 rm -fr conftest*
|
cannam@86
|
9092
|
cannam@86
|
9093
|
cannam@86
|
9094 fi
|
cannam@86
|
9095 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
|
cannam@86
|
9096 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
|
cannam@86
|
9097 fi
|
cannam@86
|
9098
|
cannam@86
|
9099 CPPFLAGS="$save_CPPFLAGS"
|
cannam@86
|
9100 LDFLAGS="$save_LDFLAGS"
|
cannam@86
|
9101 LIBS="$save_LIBS"
|
cannam@86
|
9102 ;;
|
cannam@86
|
9103 esac
|
cannam@86
|
9104
|
cannam@86
|
9105 case $lt_cv_dlopen_self in
|
cannam@86
|
9106 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
|
cannam@86
|
9107 *) enable_dlopen_self=unknown ;;
|
cannam@86
|
9108 esac
|
cannam@86
|
9109
|
cannam@86
|
9110 case $lt_cv_dlopen_self_static in
|
cannam@86
|
9111 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
|
cannam@86
|
9112 *) enable_dlopen_self_static=unknown ;;
|
cannam@86
|
9113 esac
|
cannam@86
|
9114 fi
|
cannam@86
|
9115
|
cannam@86
|
9116
|
cannam@86
|
9117 # Report which librarie types wil actually be built
|
cannam@86
|
9118 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
|
cannam@86
|
9119 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
|
cannam@86
|
9120 echo "$as_me:$LINENO: result: $can_build_shared" >&5
|
cannam@86
|
9121 echo "${ECHO_T}$can_build_shared" >&6
|
cannam@86
|
9122
|
cannam@86
|
9123 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
|
cannam@86
|
9124 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
|
cannam@86
|
9125 test "$can_build_shared" = "no" && enable_shared=no
|
cannam@86
|
9126
|
cannam@86
|
9127 # On AIX, shared libraries and static libraries use the same namespace, and
|
cannam@86
|
9128 # are all built from PIC.
|
cannam@86
|
9129 case "$host_os" in
|
cannam@86
|
9130 aix3*)
|
cannam@86
|
9131 test "$enable_shared" = yes && enable_static=no
|
cannam@86
|
9132 if test -n "$RANLIB"; then
|
cannam@86
|
9133 archive_cmds="$archive_cmds~\$RANLIB \$lib"
|
cannam@86
|
9134 postinstall_cmds='$RANLIB $lib'
|
cannam@86
|
9135 fi
|
cannam@86
|
9136 ;;
|
cannam@86
|
9137
|
cannam@86
|
9138 aix4* | aix5*)
|
cannam@86
|
9139 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
|
cannam@86
|
9140 test "$enable_shared" = yes && enable_static=no
|
cannam@86
|
9141 fi
|
cannam@86
|
9142 ;;
|
cannam@86
|
9143 esac
|
cannam@86
|
9144 echo "$as_me:$LINENO: result: $enable_shared" >&5
|
cannam@86
|
9145 echo "${ECHO_T}$enable_shared" >&6
|
cannam@86
|
9146
|
cannam@86
|
9147 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
|
cannam@86
|
9148 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
|
cannam@86
|
9149 # Make sure either enable_shared or enable_static is yes.
|
cannam@86
|
9150 test "$enable_shared" = yes || enable_static=yes
|
cannam@86
|
9151 echo "$as_me:$LINENO: result: $enable_static" >&5
|
cannam@86
|
9152 echo "${ECHO_T}$enable_static" >&6
|
cannam@86
|
9153
|
cannam@86
|
9154 # The else clause should only fire when bootstrapping the
|
cannam@86
|
9155 # libtool distribution, otherwise you forgot to ship ltmain.sh
|
cannam@86
|
9156 # with your package, and you will get complaints that there are
|
cannam@86
|
9157 # no rules to generate ltmain.sh.
|
cannam@86
|
9158 if test -f "$ltmain"; then
|
cannam@86
|
9159 # See if we are running on zsh, and set the options which allow our commands through
|
cannam@86
|
9160 # without removal of \ escapes.
|
cannam@86
|
9161 if test -n "${ZSH_VERSION+set}" ; then
|
cannam@86
|
9162 setopt NO_GLOB_SUBST
|
cannam@86
|
9163 fi
|
cannam@86
|
9164 # Now quote all the things that may contain metacharacters while being
|
cannam@86
|
9165 # careful not to overquote the AC_SUBSTed values. We take copies of the
|
cannam@86
|
9166 # variables and quote the copies for generation of the libtool script.
|
cannam@86
|
9167 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
|
cannam@86
|
9168 SED SHELL STRIP \
|
cannam@86
|
9169 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
|
cannam@86
|
9170 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
|
cannam@86
|
9171 deplibs_check_method reload_flag reload_cmds need_locks \
|
cannam@86
|
9172 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
|
cannam@86
|
9173 lt_cv_sys_global_symbol_to_c_name_address \
|
cannam@86
|
9174 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
|
cannam@86
|
9175 old_postinstall_cmds old_postuninstall_cmds \
|
cannam@86
|
9176 compiler \
|
cannam@86
|
9177 CC \
|
cannam@86
|
9178 LD \
|
cannam@86
|
9179 lt_prog_compiler_wl \
|
cannam@86
|
9180 lt_prog_compiler_pic \
|
cannam@86
|
9181 lt_prog_compiler_static \
|
cannam@86
|
9182 lt_prog_compiler_no_builtin_flag \
|
cannam@86
|
9183 export_dynamic_flag_spec \
|
cannam@86
|
9184 thread_safe_flag_spec \
|
cannam@86
|
9185 whole_archive_flag_spec \
|
cannam@86
|
9186 enable_shared_with_static_runtimes \
|
cannam@86
|
9187 old_archive_cmds \
|
cannam@86
|
9188 old_archive_from_new_cmds \
|
cannam@86
|
9189 predep_objects \
|
cannam@86
|
9190 postdep_objects \
|
cannam@86
|
9191 predeps \
|
cannam@86
|
9192 postdeps \
|
cannam@86
|
9193 compiler_lib_search_path \
|
cannam@86
|
9194 archive_cmds \
|
cannam@86
|
9195 archive_expsym_cmds \
|
cannam@86
|
9196 postinstall_cmds \
|
cannam@86
|
9197 postuninstall_cmds \
|
cannam@86
|
9198 old_archive_from_expsyms_cmds \
|
cannam@86
|
9199 allow_undefined_flag \
|
cannam@86
|
9200 no_undefined_flag \
|
cannam@86
|
9201 export_symbols_cmds \
|
cannam@86
|
9202 hardcode_libdir_flag_spec \
|
cannam@86
|
9203 hardcode_libdir_flag_spec_ld \
|
cannam@86
|
9204 hardcode_libdir_separator \
|
cannam@86
|
9205 hardcode_automatic \
|
cannam@86
|
9206 module_cmds \
|
cannam@86
|
9207 module_expsym_cmds \
|
cannam@86
|
9208 lt_cv_prog_compiler_c_o \
|
cannam@86
|
9209 exclude_expsyms \
|
cannam@86
|
9210 include_expsyms; do
|
cannam@86
|
9211
|
cannam@86
|
9212 case $var in
|
cannam@86
|
9213 old_archive_cmds | \
|
cannam@86
|
9214 old_archive_from_new_cmds | \
|
cannam@86
|
9215 archive_cmds | \
|
cannam@86
|
9216 archive_expsym_cmds | \
|
cannam@86
|
9217 module_cmds | \
|
cannam@86
|
9218 module_expsym_cmds | \
|
cannam@86
|
9219 old_archive_from_expsyms_cmds | \
|
cannam@86
|
9220 export_symbols_cmds | \
|
cannam@86
|
9221 extract_expsyms_cmds | reload_cmds | finish_cmds | \
|
cannam@86
|
9222 postinstall_cmds | postuninstall_cmds | \
|
cannam@86
|
9223 old_postinstall_cmds | old_postuninstall_cmds | \
|
cannam@86
|
9224 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
|
cannam@86
|
9225 # Double-quote double-evaled strings.
|
cannam@86
|
9226 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
|
cannam@86
|
9227 ;;
|
cannam@86
|
9228 *)
|
cannam@86
|
9229 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
|
cannam@86
|
9230 ;;
|
cannam@86
|
9231 esac
|
cannam@86
|
9232 done
|
cannam@86
|
9233
|
cannam@86
|
9234 case $lt_echo in
|
cannam@86
|
9235 *'\$0 --fallback-echo"')
|
cannam@86
|
9236 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
|
cannam@86
|
9237 ;;
|
cannam@86
|
9238 esac
|
cannam@86
|
9239
|
cannam@86
|
9240 cfgfile="${ofile}T"
|
cannam@86
|
9241 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
|
cannam@86
|
9242 $rm -f "$cfgfile"
|
cannam@86
|
9243 { echo "$as_me:$LINENO: creating $ofile" >&5
|
cannam@86
|
9244 echo "$as_me: creating $ofile" >&6;}
|
cannam@86
|
9245
|
cannam@86
|
9246 cat <<__EOF__ >> "$cfgfile"
|
cannam@86
|
9247 #! $SHELL
|
cannam@86
|
9248
|
cannam@86
|
9249 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
|
cannam@86
|
9250 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
|
cannam@86
|
9251 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
cannam@86
|
9252 #
|
cannam@86
|
9253 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
|
cannam@86
|
9254 # Free Software Foundation, Inc.
|
cannam@86
|
9255 #
|
cannam@86
|
9256 # This file is part of GNU Libtool:
|
cannam@86
|
9257 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
|
cannam@86
|
9258 #
|
cannam@86
|
9259 # This program is free software; you can redistribute it and/or modify
|
cannam@86
|
9260 # it under the terms of the GNU General Public License as published by
|
cannam@86
|
9261 # the Free Software Foundation; either version 2 of the License, or
|
cannam@86
|
9262 # (at your option) any later version.
|
cannam@86
|
9263 #
|
cannam@86
|
9264 # This program is distributed in the hope that it will be useful, but
|
cannam@86
|
9265 # WITHOUT ANY WARRANTY; without even the implied warranty of
|
cannam@86
|
9266 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
cannam@86
|
9267 # General Public License for more details.
|
cannam@86
|
9268 #
|
cannam@86
|
9269 # You should have received a copy of the GNU General Public License
|
cannam@86
|
9270 # along with this program; if not, write to the Free Software
|
cannam@86
|
9271 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
cannam@86
|
9272 #
|
cannam@86
|
9273 # As a special exception to the GNU General Public License, if you
|
cannam@86
|
9274 # distribute this file as part of a program that contains a
|
cannam@86
|
9275 # configuration script generated by Autoconf, you may include it under
|
cannam@86
|
9276 # the same distribution terms that you use for the rest of that program.
|
cannam@86
|
9277
|
cannam@86
|
9278 # A sed program that does not truncate output.
|
cannam@86
|
9279 SED=$lt_SED
|
cannam@86
|
9280
|
cannam@86
|
9281 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
|
cannam@86
|
9282 Xsed="$SED -e 1s/^X//"
|
cannam@86
|
9283
|
cannam@86
|
9284 # The HP-UX ksh and POSIX shell print the target directory to stdout
|
cannam@86
|
9285 # if CDPATH is set.
|
cannam@86
|
9286 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
cannam@86
|
9287
|
cannam@86
|
9288 # The names of the tagged configurations supported by this script.
|
cannam@86
|
9289 available_tags=
|
cannam@86
|
9290
|
cannam@86
|
9291 # ### BEGIN LIBTOOL CONFIG
|
cannam@86
|
9292
|
cannam@86
|
9293 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
cannam@86
|
9294
|
cannam@86
|
9295 # Shell to use when invoking shell scripts.
|
cannam@86
|
9296 SHELL=$lt_SHELL
|
cannam@86
|
9297
|
cannam@86
|
9298 # Whether or not to build shared libraries.
|
cannam@86
|
9299 build_libtool_libs=$enable_shared
|
cannam@86
|
9300
|
cannam@86
|
9301 # Whether or not to build static libraries.
|
cannam@86
|
9302 build_old_libs=$enable_static
|
cannam@86
|
9303
|
cannam@86
|
9304 # Whether or not to add -lc for building shared libraries.
|
cannam@86
|
9305 build_libtool_need_lc=$archive_cmds_need_lc
|
cannam@86
|
9306
|
cannam@86
|
9307 # Whether or not to disallow shared libs when runtime libs are static
|
cannam@86
|
9308 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
|
cannam@86
|
9309
|
cannam@86
|
9310 # Whether or not to optimize for fast installation.
|
cannam@86
|
9311 fast_install=$enable_fast_install
|
cannam@86
|
9312
|
cannam@86
|
9313 # The host system.
|
cannam@86
|
9314 host_alias=$host_alias
|
cannam@86
|
9315 host=$host
|
cannam@86
|
9316 host_os=$host_os
|
cannam@86
|
9317
|
cannam@86
|
9318 # The build system.
|
cannam@86
|
9319 build_alias=$build_alias
|
cannam@86
|
9320 build=$build
|
cannam@86
|
9321 build_os=$build_os
|
cannam@86
|
9322
|
cannam@86
|
9323 # An echo program that does not interpret backslashes.
|
cannam@86
|
9324 echo=$lt_echo
|
cannam@86
|
9325
|
cannam@86
|
9326 # The archiver.
|
cannam@86
|
9327 AR=$lt_AR
|
cannam@86
|
9328 AR_FLAGS=$lt_AR_FLAGS
|
cannam@86
|
9329
|
cannam@86
|
9330 # A C compiler.
|
cannam@86
|
9331 LTCC=$lt_LTCC
|
cannam@86
|
9332
|
cannam@86
|
9333 # A language-specific compiler.
|
cannam@86
|
9334 CC=$lt_compiler
|
cannam@86
|
9335
|
cannam@86
|
9336 # Is the compiler the GNU C compiler?
|
cannam@86
|
9337 with_gcc=$GCC
|
cannam@86
|
9338
|
cannam@86
|
9339 # An ERE matcher.
|
cannam@86
|
9340 EGREP=$lt_EGREP
|
cannam@86
|
9341
|
cannam@86
|
9342 # The linker used to build libraries.
|
cannam@86
|
9343 LD=$lt_LD
|
cannam@86
|
9344
|
cannam@86
|
9345 # Whether we need hard or soft links.
|
cannam@86
|
9346 LN_S=$lt_LN_S
|
cannam@86
|
9347
|
cannam@86
|
9348 # A BSD-compatible nm program.
|
cannam@86
|
9349 NM=$lt_NM
|
cannam@86
|
9350
|
cannam@86
|
9351 # A symbol stripping program
|
cannam@86
|
9352 STRIP=$lt_STRIP
|
cannam@86
|
9353
|
cannam@86
|
9354 # Used to examine libraries when file_magic_cmd begins "file"
|
cannam@86
|
9355 MAGIC_CMD=$MAGIC_CMD
|
cannam@86
|
9356
|
cannam@86
|
9357 # Used on cygwin: DLL creation program.
|
cannam@86
|
9358 DLLTOOL="$DLLTOOL"
|
cannam@86
|
9359
|
cannam@86
|
9360 # Used on cygwin: object dumper.
|
cannam@86
|
9361 OBJDUMP="$OBJDUMP"
|
cannam@86
|
9362
|
cannam@86
|
9363 # Used on cygwin: assembler.
|
cannam@86
|
9364 AS="$AS"
|
cannam@86
|
9365
|
cannam@86
|
9366 # The name of the directory that contains temporary libtool files.
|
cannam@86
|
9367 objdir=$objdir
|
cannam@86
|
9368
|
cannam@86
|
9369 # How to create reloadable object files.
|
cannam@86
|
9370 reload_flag=$lt_reload_flag
|
cannam@86
|
9371 reload_cmds=$lt_reload_cmds
|
cannam@86
|
9372
|
cannam@86
|
9373 # How to pass a linker flag through the compiler.
|
cannam@86
|
9374 wl=$lt_lt_prog_compiler_wl
|
cannam@86
|
9375
|
cannam@86
|
9376 # Object file suffix (normally "o").
|
cannam@86
|
9377 objext="$ac_objext"
|
cannam@86
|
9378
|
cannam@86
|
9379 # Old archive suffix (normally "a").
|
cannam@86
|
9380 libext="$libext"
|
cannam@86
|
9381
|
cannam@86
|
9382 # Shared library suffix (normally ".so").
|
cannam@86
|
9383 shrext_cmds='$shrext_cmds'
|
cannam@86
|
9384
|
cannam@86
|
9385 # Executable file suffix (normally "").
|
cannam@86
|
9386 exeext="$exeext"
|
cannam@86
|
9387
|
cannam@86
|
9388 # Additional compiler flags for building library objects.
|
cannam@86
|
9389 pic_flag=$lt_lt_prog_compiler_pic
|
cannam@86
|
9390 pic_mode=$pic_mode
|
cannam@86
|
9391
|
cannam@86
|
9392 # What is the maximum length of a command?
|
cannam@86
|
9393 max_cmd_len=$lt_cv_sys_max_cmd_len
|
cannam@86
|
9394
|
cannam@86
|
9395 # Does compiler simultaneously support -c and -o options?
|
cannam@86
|
9396 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
|
cannam@86
|
9397
|
cannam@86
|
9398 # Must we lock files when doing compilation?
|
cannam@86
|
9399 need_locks=$lt_need_locks
|
cannam@86
|
9400
|
cannam@86
|
9401 # Do we need the lib prefix for modules?
|
cannam@86
|
9402 need_lib_prefix=$need_lib_prefix
|
cannam@86
|
9403
|
cannam@86
|
9404 # Do we need a version for libraries?
|
cannam@86
|
9405 need_version=$need_version
|
cannam@86
|
9406
|
cannam@86
|
9407 # Whether dlopen is supported.
|
cannam@86
|
9408 dlopen_support=$enable_dlopen
|
cannam@86
|
9409
|
cannam@86
|
9410 # Whether dlopen of programs is supported.
|
cannam@86
|
9411 dlopen_self=$enable_dlopen_self
|
cannam@86
|
9412
|
cannam@86
|
9413 # Whether dlopen of statically linked programs is supported.
|
cannam@86
|
9414 dlopen_self_static=$enable_dlopen_self_static
|
cannam@86
|
9415
|
cannam@86
|
9416 # Compiler flag to prevent dynamic linking.
|
cannam@86
|
9417 link_static_flag=$lt_lt_prog_compiler_static
|
cannam@86
|
9418
|
cannam@86
|
9419 # Compiler flag to turn off builtin functions.
|
cannam@86
|
9420 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
|
cannam@86
|
9421
|
cannam@86
|
9422 # Compiler flag to allow reflexive dlopens.
|
cannam@86
|
9423 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
|
cannam@86
|
9424
|
cannam@86
|
9425 # Compiler flag to generate shared objects directly from archives.
|
cannam@86
|
9426 whole_archive_flag_spec=$lt_whole_archive_flag_spec
|
cannam@86
|
9427
|
cannam@86
|
9428 # Compiler flag to generate thread-safe objects.
|
cannam@86
|
9429 thread_safe_flag_spec=$lt_thread_safe_flag_spec
|
cannam@86
|
9430
|
cannam@86
|
9431 # Library versioning type.
|
cannam@86
|
9432 version_type=$version_type
|
cannam@86
|
9433
|
cannam@86
|
9434 # Format of library name prefix.
|
cannam@86
|
9435 libname_spec=$lt_libname_spec
|
cannam@86
|
9436
|
cannam@86
|
9437 # List of archive names. First name is the real one, the rest are links.
|
cannam@86
|
9438 # The last name is the one that the linker finds with -lNAME.
|
cannam@86
|
9439 library_names_spec=$lt_library_names_spec
|
cannam@86
|
9440
|
cannam@86
|
9441 # The coded name of the library, if different from the real name.
|
cannam@86
|
9442 soname_spec=$lt_soname_spec
|
cannam@86
|
9443
|
cannam@86
|
9444 # Commands used to build and install an old-style archive.
|
cannam@86
|
9445 RANLIB=$lt_RANLIB
|
cannam@86
|
9446 old_archive_cmds=$lt_old_archive_cmds
|
cannam@86
|
9447 old_postinstall_cmds=$lt_old_postinstall_cmds
|
cannam@86
|
9448 old_postuninstall_cmds=$lt_old_postuninstall_cmds
|
cannam@86
|
9449
|
cannam@86
|
9450 # Create an old-style archive from a shared archive.
|
cannam@86
|
9451 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
|
cannam@86
|
9452
|
cannam@86
|
9453 # Create a temporary old-style archive to link instead of a shared archive.
|
cannam@86
|
9454 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
|
cannam@86
|
9455
|
cannam@86
|
9456 # Commands used to build and install a shared archive.
|
cannam@86
|
9457 archive_cmds=$lt_archive_cmds
|
cannam@86
|
9458 archive_expsym_cmds=$lt_archive_expsym_cmds
|
cannam@86
|
9459 postinstall_cmds=$lt_postinstall_cmds
|
cannam@86
|
9460 postuninstall_cmds=$lt_postuninstall_cmds
|
cannam@86
|
9461
|
cannam@86
|
9462 # Commands used to build a loadable module (assumed same as above if empty)
|
cannam@86
|
9463 module_cmds=$lt_module_cmds
|
cannam@86
|
9464 module_expsym_cmds=$lt_module_expsym_cmds
|
cannam@86
|
9465
|
cannam@86
|
9466 # Commands to strip libraries.
|
cannam@86
|
9467 old_striplib=$lt_old_striplib
|
cannam@86
|
9468 striplib=$lt_striplib
|
cannam@86
|
9469
|
cannam@86
|
9470 # Dependencies to place before the objects being linked to create a
|
cannam@86
|
9471 # shared library.
|
cannam@86
|
9472 predep_objects=$lt_predep_objects
|
cannam@86
|
9473
|
cannam@86
|
9474 # Dependencies to place after the objects being linked to create a
|
cannam@86
|
9475 # shared library.
|
cannam@86
|
9476 postdep_objects=$lt_postdep_objects
|
cannam@86
|
9477
|
cannam@86
|
9478 # Dependencies to place before the objects being linked to create a
|
cannam@86
|
9479 # shared library.
|
cannam@86
|
9480 predeps=$lt_predeps
|
cannam@86
|
9481
|
cannam@86
|
9482 # Dependencies to place after the objects being linked to create a
|
cannam@86
|
9483 # shared library.
|
cannam@86
|
9484 postdeps=$lt_postdeps
|
cannam@86
|
9485
|
cannam@86
|
9486 # The library search path used internally by the compiler when linking
|
cannam@86
|
9487 # a shared library.
|
cannam@86
|
9488 compiler_lib_search_path=$lt_compiler_lib_search_path
|
cannam@86
|
9489
|
cannam@86
|
9490 # Method to check whether dependent libraries are shared objects.
|
cannam@86
|
9491 deplibs_check_method=$lt_deplibs_check_method
|
cannam@86
|
9492
|
cannam@86
|
9493 # Command to use when deplibs_check_method == file_magic.
|
cannam@86
|
9494 file_magic_cmd=$lt_file_magic_cmd
|
cannam@86
|
9495
|
cannam@86
|
9496 # Flag that allows shared libraries with undefined symbols to be built.
|
cannam@86
|
9497 allow_undefined_flag=$lt_allow_undefined_flag
|
cannam@86
|
9498
|
cannam@86
|
9499 # Flag that forces no undefined symbols.
|
cannam@86
|
9500 no_undefined_flag=$lt_no_undefined_flag
|
cannam@86
|
9501
|
cannam@86
|
9502 # Commands used to finish a libtool library installation in a directory.
|
cannam@86
|
9503 finish_cmds=$lt_finish_cmds
|
cannam@86
|
9504
|
cannam@86
|
9505 # Same as above, but a single script fragment to be evaled but not shown.
|
cannam@86
|
9506 finish_eval=$lt_finish_eval
|
cannam@86
|
9507
|
cannam@86
|
9508 # Take the output of nm and produce a listing of raw symbols and C names.
|
cannam@86
|
9509 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
|
cannam@86
|
9510
|
cannam@86
|
9511 # Transform the output of nm in a proper C declaration
|
cannam@86
|
9512 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
|
cannam@86
|
9513
|
cannam@86
|
9514 # Transform the output of nm in a C name address pair
|
cannam@86
|
9515 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
cannam@86
|
9516
|
cannam@86
|
9517 # This is the shared library runtime path variable.
|
cannam@86
|
9518 runpath_var=$runpath_var
|
cannam@86
|
9519
|
cannam@86
|
9520 # This is the shared library path variable.
|
cannam@86
|
9521 shlibpath_var=$shlibpath_var
|
cannam@86
|
9522
|
cannam@86
|
9523 # Is shlibpath searched before the hard-coded library search path?
|
cannam@86
|
9524 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
|
cannam@86
|
9525
|
cannam@86
|
9526 # How to hardcode a shared library path into an executable.
|
cannam@86
|
9527 hardcode_action=$hardcode_action
|
cannam@86
|
9528
|
cannam@86
|
9529 # Whether we should hardcode library paths into libraries.
|
cannam@86
|
9530 hardcode_into_libs=$hardcode_into_libs
|
cannam@86
|
9531
|
cannam@86
|
9532 # Flag to hardcode \$libdir into a binary during linking.
|
cannam@86
|
9533 # This must work even if \$libdir does not exist.
|
cannam@86
|
9534 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
|
cannam@86
|
9535
|
cannam@86
|
9536 # If ld is used when linking, flag to hardcode \$libdir into
|
cannam@86
|
9537 # a binary during linking. This must work even if \$libdir does
|
cannam@86
|
9538 # not exist.
|
cannam@86
|
9539 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
|
cannam@86
|
9540
|
cannam@86
|
9541 # Whether we need a single -rpath flag with a separated argument.
|
cannam@86
|
9542 hardcode_libdir_separator=$lt_hardcode_libdir_separator
|
cannam@86
|
9543
|
cannam@86
|
9544 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
|
cannam@86
|
9545 # resulting binary.
|
cannam@86
|
9546 hardcode_direct=$hardcode_direct
|
cannam@86
|
9547
|
cannam@86
|
9548 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
|
cannam@86
|
9549 # resulting binary.
|
cannam@86
|
9550 hardcode_minus_L=$hardcode_minus_L
|
cannam@86
|
9551
|
cannam@86
|
9552 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
|
cannam@86
|
9553 # the resulting binary.
|
cannam@86
|
9554 hardcode_shlibpath_var=$hardcode_shlibpath_var
|
cannam@86
|
9555
|
cannam@86
|
9556 # Set to yes if building a shared library automatically hardcodes DIR into the library
|
cannam@86
|
9557 # and all subsequent libraries and executables linked against it.
|
cannam@86
|
9558 hardcode_automatic=$hardcode_automatic
|
cannam@86
|
9559
|
cannam@86
|
9560 # Variables whose values should be saved in libtool wrapper scripts and
|
cannam@86
|
9561 # restored at relink time.
|
cannam@86
|
9562 variables_saved_for_relink="$variables_saved_for_relink"
|
cannam@86
|
9563
|
cannam@86
|
9564 # Whether libtool must link a program against all its dependency libraries.
|
cannam@86
|
9565 link_all_deplibs=$link_all_deplibs
|
cannam@86
|
9566
|
cannam@86
|
9567 # Compile-time system search path for libraries
|
cannam@86
|
9568 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
|
cannam@86
|
9569
|
cannam@86
|
9570 # Run-time system search path for libraries
|
cannam@86
|
9571 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
|
cannam@86
|
9572
|
cannam@86
|
9573 # Fix the shell variable \$srcfile for the compiler.
|
cannam@86
|
9574 fix_srcfile_path="$fix_srcfile_path"
|
cannam@86
|
9575
|
cannam@86
|
9576 # Set to yes if exported symbols are required.
|
cannam@86
|
9577 always_export_symbols=$always_export_symbols
|
cannam@86
|
9578
|
cannam@86
|
9579 # The commands to list exported symbols.
|
cannam@86
|
9580 export_symbols_cmds=$lt_export_symbols_cmds
|
cannam@86
|
9581
|
cannam@86
|
9582 # The commands to extract the exported symbol list from a shared archive.
|
cannam@86
|
9583 extract_expsyms_cmds=$lt_extract_expsyms_cmds
|
cannam@86
|
9584
|
cannam@86
|
9585 # Symbols that should not be listed in the preloaded symbols.
|
cannam@86
|
9586 exclude_expsyms=$lt_exclude_expsyms
|
cannam@86
|
9587
|
cannam@86
|
9588 # Symbols that must always be exported.
|
cannam@86
|
9589 include_expsyms=$lt_include_expsyms
|
cannam@86
|
9590
|
cannam@86
|
9591 # ### END LIBTOOL CONFIG
|
cannam@86
|
9592
|
cannam@86
|
9593 __EOF__
|
cannam@86
|
9594
|
cannam@86
|
9595
|
cannam@86
|
9596 case $host_os in
|
cannam@86
|
9597 aix3*)
|
cannam@86
|
9598 cat <<\EOF >> "$cfgfile"
|
cannam@86
|
9599
|
cannam@86
|
9600 # AIX sometimes has problems with the GCC collect2 program. For some
|
cannam@86
|
9601 # reason, if we set the COLLECT_NAMES environment variable, the problems
|
cannam@86
|
9602 # vanish in a puff of smoke.
|
cannam@86
|
9603 if test "X${COLLECT_NAMES+set}" != Xset; then
|
cannam@86
|
9604 COLLECT_NAMES=
|
cannam@86
|
9605 export COLLECT_NAMES
|
cannam@86
|
9606 fi
|
cannam@86
|
9607 EOF
|
cannam@86
|
9608 ;;
|
cannam@86
|
9609 esac
|
cannam@86
|
9610
|
cannam@86
|
9611 # We use sed instead of cat because bash on DJGPP gets confused if
|
cannam@86
|
9612 # if finds mixed CR/LF and LF-only lines. Since sed operates in
|
cannam@86
|
9613 # text mode, it properly converts lines to CR/LF. This bash problem
|
cannam@86
|
9614 # is reportedly fixed, but why not run on old versions too?
|
cannam@86
|
9615 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
|
cannam@86
|
9616
|
cannam@86
|
9617 mv -f "$cfgfile" "$ofile" || \
|
cannam@86
|
9618 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
|
cannam@86
|
9619 chmod +x "$ofile"
|
cannam@86
|
9620
|
cannam@86
|
9621 else
|
cannam@86
|
9622 # If there is no Makefile yet, we rely on a make rule to execute
|
cannam@86
|
9623 # `config.status --recheck' to rerun these tests and create the
|
cannam@86
|
9624 # libtool script then.
|
cannam@86
|
9625 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
|
cannam@86
|
9626 if test -f "$ltmain_in"; then
|
cannam@86
|
9627 test -f Makefile && make "$ltmain"
|
cannam@86
|
9628 fi
|
cannam@86
|
9629 fi
|
cannam@86
|
9630
|
cannam@86
|
9631
|
cannam@86
|
9632 ac_ext=c
|
cannam@86
|
9633 ac_cpp='$CPP $CPPFLAGS'
|
cannam@86
|
9634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
cannam@86
|
9635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
cannam@86
|
9636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
cannam@86
|
9637
|
cannam@86
|
9638 CC="$lt_save_CC"
|
cannam@86
|
9639
|
cannam@86
|
9640
|
cannam@86
|
9641 # Check whether --with-tags or --without-tags was given.
|
cannam@86
|
9642 if test "${with_tags+set}" = set; then
|
cannam@86
|
9643 withval="$with_tags"
|
cannam@86
|
9644 tagnames="$withval"
|
cannam@86
|
9645 fi;
|
cannam@86
|
9646
|
cannam@86
|
9647 if test -f "$ltmain" && test -n "$tagnames"; then
|
cannam@86
|
9648 if test ! -f "${ofile}"; then
|
cannam@86
|
9649 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
|
cannam@86
|
9650 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
|
cannam@86
|
9651 fi
|
cannam@86
|
9652
|
cannam@86
|
9653 if test -z "$LTCC"; then
|
cannam@86
|
9654 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
|
cannam@86
|
9655 if test -z "$LTCC"; then
|
cannam@86
|
9656 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
|
cannam@86
|
9657 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
|
cannam@86
|
9658 else
|
cannam@86
|
9659 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
|
cannam@86
|
9660 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
|
cannam@86
|
9661 fi
|
cannam@86
|
9662 fi
|
cannam@86
|
9663
|
cannam@86
|
9664 # Extract list of available tagged configurations in $ofile.
|
cannam@86
|
9665 # Note that this assumes the entire list is on one line.
|
cannam@86
|
9666 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
|
cannam@86
|
9667
|
cannam@86
|
9668 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
cannam@86
|
9669 for tagname in $tagnames; do
|
cannam@86
|
9670 IFS="$lt_save_ifs"
|
cannam@86
|
9671 # Check whether tagname contains only valid characters
|
cannam@86
|
9672 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
|
cannam@86
|
9673 "") ;;
|
cannam@86
|
9674 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
|
cannam@86
|
9675 echo "$as_me: error: invalid tag name: $tagname" >&2;}
|
cannam@86
|
9676 { (exit 1); exit 1; }; }
|
cannam@86
|
9677 ;;
|
cannam@86
|
9678 esac
|
cannam@86
|
9679
|
cannam@86
|
9680 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
|
cannam@86
|
9681 then
|
cannam@86
|
9682 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
|
cannam@86
|
9683 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
|
cannam@86
|
9684 { (exit 1); exit 1; }; }
|
cannam@86
|
9685 fi
|
cannam@86
|
9686
|
cannam@86
|
9687 # Update the list of available tags.
|
cannam@86
|
9688 if test -n "$tagname"; then
|
cannam@86
|
9689 echo appending configuration tag \"$tagname\" to $ofile
|
cannam@86
|
9690
|
cannam@86
|
9691 case $tagname in
|
cannam@86
|
9692 CXX)
|
cannam@86
|
9693 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
|
cannam@86
|
9694 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
|
cannam@86
|
9695 (test "X$CXX" != "Xg++"))) ; then
|
cannam@86
|
9696 ac_ext=cc
|
cannam@86
|
9697 ac_cpp='$CXXCPP $CPPFLAGS'
|
cannam@86
|
9698 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
cannam@86
|
9699 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
cannam@86
|
9700 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
cannam@86
|
9701
|
cannam@86
|
9702
|
cannam@86
|
9703
|
cannam@86
|
9704
|
cannam@86
|
9705 archive_cmds_need_lc_CXX=no
|
cannam@86
|
9706 allow_undefined_flag_CXX=
|
cannam@86
|
9707 always_export_symbols_CXX=no
|
cannam@86
|
9708 archive_expsym_cmds_CXX=
|
cannam@86
|
9709 export_dynamic_flag_spec_CXX=
|
cannam@86
|
9710 hardcode_direct_CXX=no
|
cannam@86
|
9711 hardcode_libdir_flag_spec_CXX=
|
cannam@86
|
9712 hardcode_libdir_flag_spec_ld_CXX=
|
cannam@86
|
9713 hardcode_libdir_separator_CXX=
|
cannam@86
|
9714 hardcode_minus_L_CXX=no
|
cannam@86
|
9715 hardcode_automatic_CXX=no
|
cannam@86
|
9716 module_cmds_CXX=
|
cannam@86
|
9717 module_expsym_cmds_CXX=
|
cannam@86
|
9718 link_all_deplibs_CXX=unknown
|
cannam@86
|
9719 old_archive_cmds_CXX=$old_archive_cmds
|
cannam@86
|
9720 no_undefined_flag_CXX=
|
cannam@86
|
9721 whole_archive_flag_spec_CXX=
|
cannam@86
|
9722 enable_shared_with_static_runtimes_CXX=no
|
cannam@86
|
9723
|
cannam@86
|
9724 # Dependencies to place before and after the object being linked:
|
cannam@86
|
9725 predep_objects_CXX=
|
cannam@86
|
9726 postdep_objects_CXX=
|
cannam@86
|
9727 predeps_CXX=
|
cannam@86
|
9728 postdeps_CXX=
|
cannam@86
|
9729 compiler_lib_search_path_CXX=
|
cannam@86
|
9730
|
cannam@86
|
9731 # Source file extension for C++ test sources.
|
cannam@86
|
9732 ac_ext=cc
|
cannam@86
|
9733
|
cannam@86
|
9734 # Object file extension for compiled C++ test sources.
|
cannam@86
|
9735 objext=o
|
cannam@86
|
9736 objext_CXX=$objext
|
cannam@86
|
9737
|
cannam@86
|
9738 # Code to be used in simple compile tests
|
cannam@86
|
9739 lt_simple_compile_test_code="int some_variable = 0;\n"
|
cannam@86
|
9740
|
cannam@86
|
9741 # Code to be used in simple link tests
|
cannam@86
|
9742 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
|
cannam@86
|
9743
|
cannam@86
|
9744 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
cannam@86
|
9745
|
cannam@86
|
9746 # If no C compiler was specified, use CC.
|
cannam@86
|
9747 LTCC=${LTCC-"$CC"}
|
cannam@86
|
9748
|
cannam@86
|
9749 # Allow CC to be a program name with arguments.
|
cannam@86
|
9750 compiler=$CC
|
cannam@86
|
9751
|
cannam@86
|
9752
|
cannam@86
|
9753 # save warnings/boilerplate of simple test code
|
cannam@86
|
9754 ac_outfile=conftest.$ac_objext
|
cannam@86
|
9755 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
|
cannam@86
|
9756 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
|
cannam@86
|
9757 _lt_compiler_boilerplate=`cat conftest.err`
|
cannam@86
|
9758 $rm conftest*
|
cannam@86
|
9759
|
cannam@86
|
9760 ac_outfile=conftest.$ac_objext
|
cannam@86
|
9761 printf "$lt_simple_link_test_code" >conftest.$ac_ext
|
cannam@86
|
9762 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
|
cannam@86
|
9763 _lt_linker_boilerplate=`cat conftest.err`
|
cannam@86
|
9764 $rm conftest*
|
cannam@86
|
9765
|
cannam@86
|
9766
|
cannam@86
|
9767 # Allow CC to be a program name with arguments.
|
cannam@86
|
9768 lt_save_CC=$CC
|
cannam@86
|
9769 lt_save_LD=$LD
|
cannam@86
|
9770 lt_save_GCC=$GCC
|
cannam@86
|
9771 GCC=$GXX
|
cannam@86
|
9772 lt_save_with_gnu_ld=$with_gnu_ld
|
cannam@86
|
9773 lt_save_path_LD=$lt_cv_path_LD
|
cannam@86
|
9774 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
|
cannam@86
|
9775 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
|
cannam@86
|
9776 else
|
cannam@86
|
9777 unset lt_cv_prog_gnu_ld
|
cannam@86
|
9778 fi
|
cannam@86
|
9779 if test -n "${lt_cv_path_LDCXX+set}"; then
|
cannam@86
|
9780 lt_cv_path_LD=$lt_cv_path_LDCXX
|
cannam@86
|
9781 else
|
cannam@86
|
9782 unset lt_cv_path_LD
|
cannam@86
|
9783 fi
|
cannam@86
|
9784 test -z "${LDCXX+set}" || LD=$LDCXX
|
cannam@86
|
9785 CC=${CXX-"c++"}
|
cannam@86
|
9786 compiler=$CC
|
cannam@86
|
9787 compiler_CXX=$CC
|
cannam@86
|
9788 for cc_temp in $compiler""; do
|
cannam@86
|
9789 case $cc_temp in
|
cannam@86
|
9790 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
cannam@86
|
9791 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
cannam@86
|
9792 \-*) ;;
|
cannam@86
|
9793 *) break;;
|
cannam@86
|
9794 esac
|
cannam@86
|
9795 done
|
cannam@86
|
9796 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
cannam@86
|
9797
|
cannam@86
|
9798
|
cannam@86
|
9799 # We don't want -fno-exception wen compiling C++ code, so set the
|
cannam@86
|
9800 # no_builtin_flag separately
|
cannam@86
|
9801 if test "$GXX" = yes; then
|
cannam@86
|
9802 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
|
cannam@86
|
9803 else
|
cannam@86
|
9804 lt_prog_compiler_no_builtin_flag_CXX=
|
cannam@86
|
9805 fi
|
cannam@86
|
9806
|
cannam@86
|
9807 if test "$GXX" = yes; then
|
cannam@86
|
9808 # Set up default GNU C++ configuration
|
cannam@86
|
9809
|
cannam@86
|
9810
|
cannam@86
|
9811 # Check whether --with-gnu-ld or --without-gnu-ld was given.
|
cannam@86
|
9812 if test "${with_gnu_ld+set}" = set; then
|
cannam@86
|
9813 withval="$with_gnu_ld"
|
cannam@86
|
9814 test "$withval" = no || with_gnu_ld=yes
|
cannam@86
|
9815 else
|
cannam@86
|
9816 with_gnu_ld=no
|
cannam@86
|
9817 fi;
|
cannam@86
|
9818 ac_prog=ld
|
cannam@86
|
9819 if test "$GCC" = yes; then
|
cannam@86
|
9820 # Check if gcc -print-prog-name=ld gives a path.
|
cannam@86
|
9821 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
|
cannam@86
|
9822 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
|
cannam@86
|
9823 case $host in
|
cannam@86
|
9824 *-*-mingw*)
|
cannam@86
|
9825 # gcc leaves a trailing carriage return which upsets mingw
|
cannam@86
|
9826 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
cannam@86
|
9827 *)
|
cannam@86
|
9828 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
cannam@86
|
9829 esac
|
cannam@86
|
9830 case $ac_prog in
|
cannam@86
|
9831 # Accept absolute paths.
|
cannam@86
|
9832 [\\/]* | ?:[\\/]*)
|
cannam@86
|
9833 re_direlt='/[^/][^/]*/\.\./'
|
cannam@86
|
9834 # Canonicalize the pathname of ld
|
cannam@86
|
9835 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
|
cannam@86
|
9836 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
|
cannam@86
|
9837 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
|
cannam@86
|
9838 done
|
cannam@86
|
9839 test -z "$LD" && LD="$ac_prog"
|
cannam@86
|
9840 ;;
|
cannam@86
|
9841 "")
|
cannam@86
|
9842 # If it fails, then pretend we aren't using GCC.
|
cannam@86
|
9843 ac_prog=ld
|
cannam@86
|
9844 ;;
|
cannam@86
|
9845 *)
|
cannam@86
|
9846 # If it is relative, then search for the first ld in PATH.
|
cannam@86
|
9847 with_gnu_ld=unknown
|
cannam@86
|
9848 ;;
|
cannam@86
|
9849 esac
|
cannam@86
|
9850 elif test "$with_gnu_ld" = yes; then
|
cannam@86
|
9851 echo "$as_me:$LINENO: checking for GNU ld" >&5
|
cannam@86
|
9852 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
|
cannam@86
|
9853 else
|
cannam@86
|
9854 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
|
cannam@86
|
9855 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
|
cannam@86
|
9856 fi
|
cannam@86
|
9857 if test "${lt_cv_path_LD+set}" = set; then
|
cannam@86
|
9858 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
9859 else
|
cannam@86
|
9860 if test -z "$LD"; then
|
cannam@86
|
9861 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
cannam@86
|
9862 for ac_dir in $PATH; do
|
cannam@86
|
9863 IFS="$lt_save_ifs"
|
cannam@86
|
9864 test -z "$ac_dir" && ac_dir=.
|
cannam@86
|
9865 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
cannam@86
|
9866 lt_cv_path_LD="$ac_dir/$ac_prog"
|
cannam@86
|
9867 # Check to see if the program is GNU ld. I'd rather use --version,
|
cannam@86
|
9868 # but apparently some GNU ld's only accept -v.
|
cannam@86
|
9869 # Break only if it was the GNU/non-GNU ld that we prefer.
|
cannam@86
|
9870 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
|
cannam@86
|
9871 *GNU* | *'with BFD'*)
|
cannam@86
|
9872 test "$with_gnu_ld" != no && break
|
cannam@86
|
9873 ;;
|
cannam@86
|
9874 *)
|
cannam@86
|
9875 test "$with_gnu_ld" != yes && break
|
cannam@86
|
9876 ;;
|
cannam@86
|
9877 esac
|
cannam@86
|
9878 fi
|
cannam@86
|
9879 done
|
cannam@86
|
9880 IFS="$lt_save_ifs"
|
cannam@86
|
9881 else
|
cannam@86
|
9882 lt_cv_path_LD="$LD" # Let the user override the test with a path.
|
cannam@86
|
9883 fi
|
cannam@86
|
9884 fi
|
cannam@86
|
9885
|
cannam@86
|
9886 LD="$lt_cv_path_LD"
|
cannam@86
|
9887 if test -n "$LD"; then
|
cannam@86
|
9888 echo "$as_me:$LINENO: result: $LD" >&5
|
cannam@86
|
9889 echo "${ECHO_T}$LD" >&6
|
cannam@86
|
9890 else
|
cannam@86
|
9891 echo "$as_me:$LINENO: result: no" >&5
|
cannam@86
|
9892 echo "${ECHO_T}no" >&6
|
cannam@86
|
9893 fi
|
cannam@86
|
9894 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
|
cannam@86
|
9895 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
|
cannam@86
|
9896 { (exit 1); exit 1; }; }
|
cannam@86
|
9897 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
|
cannam@86
|
9898 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
|
cannam@86
|
9899 if test "${lt_cv_prog_gnu_ld+set}" = set; then
|
cannam@86
|
9900 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
9901 else
|
cannam@86
|
9902 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
|
cannam@86
|
9903 case `$LD -v 2>&1 </dev/null` in
|
cannam@86
|
9904 *GNU* | *'with BFD'*)
|
cannam@86
|
9905 lt_cv_prog_gnu_ld=yes
|
cannam@86
|
9906 ;;
|
cannam@86
|
9907 *)
|
cannam@86
|
9908 lt_cv_prog_gnu_ld=no
|
cannam@86
|
9909 ;;
|
cannam@86
|
9910 esac
|
cannam@86
|
9911 fi
|
cannam@86
|
9912 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
|
cannam@86
|
9913 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
|
cannam@86
|
9914 with_gnu_ld=$lt_cv_prog_gnu_ld
|
cannam@86
|
9915
|
cannam@86
|
9916
|
cannam@86
|
9917
|
cannam@86
|
9918 # Check if GNU C++ uses GNU ld as the underlying linker, since the
|
cannam@86
|
9919 # archiving commands below assume that GNU ld is being used.
|
cannam@86
|
9920 if test "$with_gnu_ld" = yes; then
|
cannam@86
|
9921 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
cannam@86
|
9922 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
cannam@86
|
9923
|
cannam@86
|
9924 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
|
cannam@86
|
9925 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
|
cannam@86
|
9926
|
cannam@86
|
9927 # If archive_cmds runs LD, not CC, wlarc should be empty
|
cannam@86
|
9928 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
|
cannam@86
|
9929 # investigate it a little bit more. (MM)
|
cannam@86
|
9930 wlarc='${wl}'
|
cannam@86
|
9931
|
cannam@86
|
9932 # ancient GNU ld didn't support --whole-archive et. al.
|
cannam@86
|
9933 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
|
cannam@86
|
9934 grep 'no-whole-archive' > /dev/null; then
|
cannam@86
|
9935 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
cannam@86
|
9936 else
|
cannam@86
|
9937 whole_archive_flag_spec_CXX=
|
cannam@86
|
9938 fi
|
cannam@86
|
9939 else
|
cannam@86
|
9940 with_gnu_ld=no
|
cannam@86
|
9941 wlarc=
|
cannam@86
|
9942
|
cannam@86
|
9943 # A generic and very simple default shared library creation
|
cannam@86
|
9944 # command for GNU C++ for the case where it uses the native
|
cannam@86
|
9945 # linker, instead of GNU ld. If possible, this setting should
|
cannam@86
|
9946 # overridden to take advantage of the native linker features on
|
cannam@86
|
9947 # the platform it is being used on.
|
cannam@86
|
9948 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
|
cannam@86
|
9949 fi
|
cannam@86
|
9950
|
cannam@86
|
9951 # Commands to make compiler produce verbose output that lists
|
cannam@86
|
9952 # what "hidden" libraries, object files and flags are used when
|
cannam@86
|
9953 # linking a shared library.
|
cannam@86
|
9954 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
|
cannam@86
|
9955
|
cannam@86
|
9956 else
|
cannam@86
|
9957 GXX=no
|
cannam@86
|
9958 with_gnu_ld=no
|
cannam@86
|
9959 wlarc=
|
cannam@86
|
9960 fi
|
cannam@86
|
9961
|
cannam@86
|
9962 # PORTME: fill in a description of your system's C++ link characteristics
|
cannam@86
|
9963 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
|
cannam@86
|
9964 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
|
cannam@86
|
9965 ld_shlibs_CXX=yes
|
cannam@86
|
9966 case $host_os in
|
cannam@86
|
9967 aix3*)
|
cannam@86
|
9968 # FIXME: insert proper C++ library support
|
cannam@86
|
9969 ld_shlibs_CXX=no
|
cannam@86
|
9970 ;;
|
cannam@86
|
9971 aix4* | aix5*)
|
cannam@86
|
9972 if test "$host_cpu" = ia64; then
|
cannam@86
|
9973 # On IA64, the linker does run time linking by default, so we don't
|
cannam@86
|
9974 # have to do anything special.
|
cannam@86
|
9975 aix_use_runtimelinking=no
|
cannam@86
|
9976 exp_sym_flag='-Bexport'
|
cannam@86
|
9977 no_entry_flag=""
|
cannam@86
|
9978 else
|
cannam@86
|
9979 aix_use_runtimelinking=no
|
cannam@86
|
9980
|
cannam@86
|
9981 # Test if we are trying to use run time linking or normal
|
cannam@86
|
9982 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
cannam@86
|
9983 # need to do runtime linking.
|
cannam@86
|
9984 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
|
cannam@86
|
9985 for ld_flag in $LDFLAGS; do
|
cannam@86
|
9986 case $ld_flag in
|
cannam@86
|
9987 *-brtl*)
|
cannam@86
|
9988 aix_use_runtimelinking=yes
|
cannam@86
|
9989 break
|
cannam@86
|
9990 ;;
|
cannam@86
|
9991 esac
|
cannam@86
|
9992 done
|
cannam@86
|
9993 esac
|
cannam@86
|
9994
|
cannam@86
|
9995 exp_sym_flag='-bexport'
|
cannam@86
|
9996 no_entry_flag='-bnoentry'
|
cannam@86
|
9997 fi
|
cannam@86
|
9998
|
cannam@86
|
9999 # When large executables or shared objects are built, AIX ld can
|
cannam@86
|
10000 # have problems creating the table of contents. If linking a library
|
cannam@86
|
10001 # or program results in "error TOC overflow" add -mminimal-toc to
|
cannam@86
|
10002 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
cannam@86
|
10003 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
cannam@86
|
10004
|
cannam@86
|
10005 archive_cmds_CXX=''
|
cannam@86
|
10006 hardcode_direct_CXX=yes
|
cannam@86
|
10007 hardcode_libdir_separator_CXX=':'
|
cannam@86
|
10008 link_all_deplibs_CXX=yes
|
cannam@86
|
10009
|
cannam@86
|
10010 if test "$GXX" = yes; then
|
cannam@86
|
10011 case $host_os in aix4.[012]|aix4.[012].*)
|
cannam@86
|
10012 # We only want to do this on AIX 4.2 and lower, the check
|
cannam@86
|
10013 # below for broken collect2 doesn't work under 4.3+
|
cannam@86
|
10014 collect2name=`${CC} -print-prog-name=collect2`
|
cannam@86
|
10015 if test -f "$collect2name" && \
|
cannam@86
|
10016 strings "$collect2name" | grep resolve_lib_name >/dev/null
|
cannam@86
|
10017 then
|
cannam@86
|
10018 # We have reworked collect2
|
cannam@86
|
10019 hardcode_direct_CXX=yes
|
cannam@86
|
10020 else
|
cannam@86
|
10021 # We have old collect2
|
cannam@86
|
10022 hardcode_direct_CXX=unsupported
|
cannam@86
|
10023 # It fails to find uninstalled libraries when the uninstalled
|
cannam@86
|
10024 # path is not listed in the libpath. Setting hardcode_minus_L
|
cannam@86
|
10025 # to unsupported forces relinking
|
cannam@86
|
10026 hardcode_minus_L_CXX=yes
|
cannam@86
|
10027 hardcode_libdir_flag_spec_CXX='-L$libdir'
|
cannam@86
|
10028 hardcode_libdir_separator_CXX=
|
cannam@86
|
10029 fi
|
cannam@86
|
10030 esac
|
cannam@86
|
10031 shared_flag='-shared'
|
cannam@86
|
10032 if test "$aix_use_runtimelinking" = yes; then
|
cannam@86
|
10033 shared_flag="$shared_flag "'${wl}-G'
|
cannam@86
|
10034 fi
|
cannam@86
|
10035 else
|
cannam@86
|
10036 # not using gcc
|
cannam@86
|
10037 if test "$host_cpu" = ia64; then
|
cannam@86
|
10038 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
cannam@86
|
10039 # chokes on -Wl,-G. The following line is correct:
|
cannam@86
|
10040 shared_flag='-G'
|
cannam@86
|
10041 else
|
cannam@86
|
10042 if test "$aix_use_runtimelinking" = yes; then
|
cannam@86
|
10043 shared_flag='${wl}-G'
|
cannam@86
|
10044 else
|
cannam@86
|
10045 shared_flag='${wl}-bM:SRE'
|
cannam@86
|
10046 fi
|
cannam@86
|
10047 fi
|
cannam@86
|
10048 fi
|
cannam@86
|
10049
|
cannam@86
|
10050 # It seems that -bexpall does not export symbols beginning with
|
cannam@86
|
10051 # underscore (_), so it is better to generate a list of symbols to export.
|
cannam@86
|
10052 always_export_symbols_CXX=yes
|
cannam@86
|
10053 if test "$aix_use_runtimelinking" = yes; then
|
cannam@86
|
10054 # Warning - without using the other runtime loading flags (-brtl),
|
cannam@86
|
10055 # -berok will link without error, but may produce a broken library.
|
cannam@86
|
10056 allow_undefined_flag_CXX='-berok'
|
cannam@86
|
10057 # Determine the default libpath from the value encoded in an empty executable.
|
cannam@86
|
10058 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
10059 /* confdefs.h. */
|
cannam@86
|
10060 _ACEOF
|
cannam@86
|
10061 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
10062 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
10063 /* end confdefs.h. */
|
cannam@86
|
10064
|
cannam@86
|
10065 int
|
cannam@86
|
10066 main ()
|
cannam@86
|
10067 {
|
cannam@86
|
10068
|
cannam@86
|
10069 ;
|
cannam@86
|
10070 return 0;
|
cannam@86
|
10071 }
|
cannam@86
|
10072 _ACEOF
|
cannam@86
|
10073 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@86
|
10074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@86
|
10075 (eval $ac_link) 2>conftest.er1
|
cannam@86
|
10076 ac_status=$?
|
cannam@86
|
10077 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
10078 rm -f conftest.er1
|
cannam@86
|
10079 cat conftest.err >&5
|
cannam@86
|
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
10081 (exit $ac_status); } &&
|
cannam@86
|
10082 { ac_try='test -z "$ac_cxx_werror_flag"
|
cannam@86
|
10083 || test ! -s conftest.err'
|
cannam@86
|
10084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
10085 (eval $ac_try) 2>&5
|
cannam@86
|
10086 ac_status=$?
|
cannam@86
|
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
10088 (exit $ac_status); }; } &&
|
cannam@86
|
10089 { ac_try='test -s conftest$ac_exeext'
|
cannam@86
|
10090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
10091 (eval $ac_try) 2>&5
|
cannam@86
|
10092 ac_status=$?
|
cannam@86
|
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
10094 (exit $ac_status); }; }; then
|
cannam@86
|
10095
|
cannam@86
|
10096 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
|
cannam@86
|
10097 }'`
|
cannam@86
|
10098 # Check for a 64-bit object if we didn't find anything.
|
cannam@86
|
10099 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
|
cannam@86
|
10100 }'`; fi
|
cannam@86
|
10101 else
|
cannam@86
|
10102 echo "$as_me: failed program was:" >&5
|
cannam@86
|
10103 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
10104
|
cannam@86
|
10105 fi
|
cannam@86
|
10106 rm -f conftest.err conftest.$ac_objext \
|
cannam@86
|
10107 conftest$ac_exeext conftest.$ac_ext
|
cannam@86
|
10108 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
cannam@86
|
10109
|
cannam@86
|
10110 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
|
cannam@86
|
10111
|
cannam@86
|
10112 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
cannam@86
|
10113 else
|
cannam@86
|
10114 if test "$host_cpu" = ia64; then
|
cannam@86
|
10115 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
|
cannam@86
|
10116 allow_undefined_flag_CXX="-z nodefs"
|
cannam@86
|
10117 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
|
cannam@86
|
10118 else
|
cannam@86
|
10119 # Determine the default libpath from the value encoded in an empty executable.
|
cannam@86
|
10120 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
10121 /* confdefs.h. */
|
cannam@86
|
10122 _ACEOF
|
cannam@86
|
10123 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
10124 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
10125 /* end confdefs.h. */
|
cannam@86
|
10126
|
cannam@86
|
10127 int
|
cannam@86
|
10128 main ()
|
cannam@86
|
10129 {
|
cannam@86
|
10130
|
cannam@86
|
10131 ;
|
cannam@86
|
10132 return 0;
|
cannam@86
|
10133 }
|
cannam@86
|
10134 _ACEOF
|
cannam@86
|
10135 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@86
|
10136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@86
|
10137 (eval $ac_link) 2>conftest.er1
|
cannam@86
|
10138 ac_status=$?
|
cannam@86
|
10139 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
10140 rm -f conftest.er1
|
cannam@86
|
10141 cat conftest.err >&5
|
cannam@86
|
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
10143 (exit $ac_status); } &&
|
cannam@86
|
10144 { ac_try='test -z "$ac_cxx_werror_flag"
|
cannam@86
|
10145 || test ! -s conftest.err'
|
cannam@86
|
10146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
10147 (eval $ac_try) 2>&5
|
cannam@86
|
10148 ac_status=$?
|
cannam@86
|
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
10150 (exit $ac_status); }; } &&
|
cannam@86
|
10151 { ac_try='test -s conftest$ac_exeext'
|
cannam@86
|
10152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
10153 (eval $ac_try) 2>&5
|
cannam@86
|
10154 ac_status=$?
|
cannam@86
|
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
10156 (exit $ac_status); }; }; then
|
cannam@86
|
10157
|
cannam@86
|
10158 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
|
cannam@86
|
10159 }'`
|
cannam@86
|
10160 # Check for a 64-bit object if we didn't find anything.
|
cannam@86
|
10161 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
|
cannam@86
|
10162 }'`; fi
|
cannam@86
|
10163 else
|
cannam@86
|
10164 echo "$as_me: failed program was:" >&5
|
cannam@86
|
10165 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
10166
|
cannam@86
|
10167 fi
|
cannam@86
|
10168 rm -f conftest.err conftest.$ac_objext \
|
cannam@86
|
10169 conftest$ac_exeext conftest.$ac_ext
|
cannam@86
|
10170 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
cannam@86
|
10171
|
cannam@86
|
10172 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
|
cannam@86
|
10173 # Warning - without using the other run time loading flags,
|
cannam@86
|
10174 # -berok will link without error, but may produce a broken library.
|
cannam@86
|
10175 no_undefined_flag_CXX=' ${wl}-bernotok'
|
cannam@86
|
10176 allow_undefined_flag_CXX=' ${wl}-berok'
|
cannam@86
|
10177 # -bexpall does not export symbols beginning with underscore (_)
|
cannam@86
|
10178 always_export_symbols_CXX=yes
|
cannam@86
|
10179 # Exported symbols can be pulled into shared objects from archives
|
cannam@86
|
10180 whole_archive_flag_spec_CXX=' '
|
cannam@86
|
10181 archive_cmds_need_lc_CXX=yes
|
cannam@86
|
10182 # This is similar to how AIX traditionally builds it's shared libraries.
|
cannam@86
|
10183 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
|
cannam@86
|
10184 fi
|
cannam@86
|
10185 fi
|
cannam@86
|
10186 ;;
|
cannam@86
|
10187 chorus*)
|
cannam@86
|
10188 case $cc_basename in
|
cannam@86
|
10189 *)
|
cannam@86
|
10190 # FIXME: insert proper C++ library support
|
cannam@86
|
10191 ld_shlibs_CXX=no
|
cannam@86
|
10192 ;;
|
cannam@86
|
10193 esac
|
cannam@86
|
10194 ;;
|
cannam@86
|
10195
|
cannam@86
|
10196
|
cannam@86
|
10197 cygwin* | mingw* | pw32*)
|
cannam@86
|
10198 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
|
cannam@86
|
10199 # as there is no search path for DLLs.
|
cannam@86
|
10200 hardcode_libdir_flag_spec_CXX='-L$libdir'
|
cannam@86
|
10201 allow_undefined_flag_CXX=unsupported
|
cannam@86
|
10202 always_export_symbols_CXX=no
|
cannam@86
|
10203 enable_shared_with_static_runtimes_CXX=yes
|
cannam@86
|
10204
|
cannam@86
|
10205 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
|
cannam@86
|
10206 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
|
cannam@86
|
10207 # If the export-symbols file already is a .def file (1st line
|
cannam@86
|
10208 # is EXPORTS), use it as is; otherwise, prepend...
|
cannam@86
|
10209 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
cannam@86
|
10210 cp $export_symbols $output_objdir/$soname.def;
|
cannam@86
|
10211 else
|
cannam@86
|
10212 echo EXPORTS > $output_objdir/$soname.def;
|
cannam@86
|
10213 cat $export_symbols >> $output_objdir/$soname.def;
|
cannam@86
|
10214 fi~
|
cannam@86
|
10215 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
|
cannam@86
|
10216 else
|
cannam@86
|
10217 ld_shlibs_CXX=no
|
cannam@86
|
10218 fi
|
cannam@86
|
10219 ;;
|
cannam@86
|
10220 darwin* | rhapsody*)
|
cannam@86
|
10221 case "$host_os" in
|
cannam@86
|
10222 rhapsody* | darwin1.[012])
|
cannam@86
|
10223 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
|
cannam@86
|
10224 ;;
|
cannam@86
|
10225 *) # Darwin 1.3 on
|
cannam@86
|
10226 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
|
cannam@86
|
10227 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
cannam@86
|
10228 else
|
cannam@86
|
10229 case ${MACOSX_DEPLOYMENT_TARGET} in
|
cannam@86
|
10230 10.[012])
|
cannam@86
|
10231 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
cannam@86
|
10232 ;;
|
cannam@86
|
10233 10.*)
|
cannam@86
|
10234 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
|
cannam@86
|
10235 ;;
|
cannam@86
|
10236 esac
|
cannam@86
|
10237 fi
|
cannam@86
|
10238 ;;
|
cannam@86
|
10239 esac
|
cannam@86
|
10240 archive_cmds_need_lc_CXX=no
|
cannam@86
|
10241 hardcode_direct_CXX=no
|
cannam@86
|
10242 hardcode_automatic_CXX=yes
|
cannam@86
|
10243 hardcode_shlibpath_var_CXX=unsupported
|
cannam@86
|
10244 whole_archive_flag_spec_CXX=''
|
cannam@86
|
10245 link_all_deplibs_CXX=yes
|
cannam@86
|
10246
|
cannam@86
|
10247 if test "$GXX" = yes ; then
|
cannam@86
|
10248 lt_int_apple_cc_single_mod=no
|
cannam@86
|
10249 output_verbose_link_cmd='echo'
|
cannam@86
|
10250 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
|
cannam@86
|
10251 lt_int_apple_cc_single_mod=yes
|
cannam@86
|
10252 fi
|
cannam@86
|
10253 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
|
cannam@86
|
10254 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
|
cannam@86
|
10255 else
|
cannam@86
|
10256 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
|
cannam@86
|
10257 fi
|
cannam@86
|
10258 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
cannam@86
|
10259 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
|
cannam@86
|
10260 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
|
cannam@86
|
10261 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
cannam@86
|
10262 else
|
cannam@86
|
10263 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
cannam@86
|
10264 fi
|
cannam@86
|
10265 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
cannam@86
|
10266 else
|
cannam@86
|
10267 case $cc_basename in
|
cannam@86
|
10268 xlc*)
|
cannam@86
|
10269 output_verbose_link_cmd='echo'
|
cannam@86
|
10270 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
|
cannam@86
|
10271 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
cannam@86
|
10272 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
|
cannam@86
|
10273 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
cannam@86
|
10274 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
cannam@86
|
10275 ;;
|
cannam@86
|
10276 *)
|
cannam@86
|
10277 ld_shlibs_CXX=no
|
cannam@86
|
10278 ;;
|
cannam@86
|
10279 esac
|
cannam@86
|
10280 fi
|
cannam@86
|
10281 ;;
|
cannam@86
|
10282
|
cannam@86
|
10283 dgux*)
|
cannam@86
|
10284 case $cc_basename in
|
cannam@86
|
10285 ec++*)
|
cannam@86
|
10286 # FIXME: insert proper C++ library support
|
cannam@86
|
10287 ld_shlibs_CXX=no
|
cannam@86
|
10288 ;;
|
cannam@86
|
10289 ghcx*)
|
cannam@86
|
10290 # Green Hills C++ Compiler
|
cannam@86
|
10291 # FIXME: insert proper C++ library support
|
cannam@86
|
10292 ld_shlibs_CXX=no
|
cannam@86
|
10293 ;;
|
cannam@86
|
10294 *)
|
cannam@86
|
10295 # FIXME: insert proper C++ library support
|
cannam@86
|
10296 ld_shlibs_CXX=no
|
cannam@86
|
10297 ;;
|
cannam@86
|
10298 esac
|
cannam@86
|
10299 ;;
|
cannam@86
|
10300 freebsd[12]*)
|
cannam@86
|
10301 # C++ shared libraries reported to be fairly broken before switch to ELF
|
cannam@86
|
10302 ld_shlibs_CXX=no
|
cannam@86
|
10303 ;;
|
cannam@86
|
10304 freebsd-elf*)
|
cannam@86
|
10305 archive_cmds_need_lc_CXX=no
|
cannam@86
|
10306 ;;
|
cannam@86
|
10307 freebsd* | kfreebsd*-gnu | dragonfly*)
|
cannam@86
|
10308 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
|
cannam@86
|
10309 # conventions
|
cannam@86
|
10310 ld_shlibs_CXX=yes
|
cannam@86
|
10311 ;;
|
cannam@86
|
10312 gnu*)
|
cannam@86
|
10313 ;;
|
cannam@86
|
10314 hpux9*)
|
cannam@86
|
10315 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
|
cannam@86
|
10316 hardcode_libdir_separator_CXX=:
|
cannam@86
|
10317 export_dynamic_flag_spec_CXX='${wl}-E'
|
cannam@86
|
10318 hardcode_direct_CXX=yes
|
cannam@86
|
10319 hardcode_minus_L_CXX=yes # Not in the search PATH,
|
cannam@86
|
10320 # but as the default
|
cannam@86
|
10321 # location of the library.
|
cannam@86
|
10322
|
cannam@86
|
10323 case $cc_basename in
|
cannam@86
|
10324 CC*)
|
cannam@86
|
10325 # FIXME: insert proper C++ library support
|
cannam@86
|
10326 ld_shlibs_CXX=no
|
cannam@86
|
10327 ;;
|
cannam@86
|
10328 aCC*)
|
cannam@86
|
10329 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
cannam@86
|
10330 # Commands to make compiler produce verbose output that lists
|
cannam@86
|
10331 # what "hidden" libraries, object files and flags are used when
|
cannam@86
|
10332 # linking a shared library.
|
cannam@86
|
10333 #
|
cannam@86
|
10334 # There doesn't appear to be a way to prevent this compiler from
|
cannam@86
|
10335 # explicitly linking system object files so we need to strip them
|
cannam@86
|
10336 # from the output so that they don't get included in the library
|
cannam@86
|
10337 # dependencies.
|
cannam@86
|
10338 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
|
cannam@86
|
10339 ;;
|
cannam@86
|
10340 *)
|
cannam@86
|
10341 if test "$GXX" = yes; then
|
cannam@86
|
10342 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
cannam@86
|
10343 else
|
cannam@86
|
10344 # FIXME: insert proper C++ library support
|
cannam@86
|
10345 ld_shlibs_CXX=no
|
cannam@86
|
10346 fi
|
cannam@86
|
10347 ;;
|
cannam@86
|
10348 esac
|
cannam@86
|
10349 ;;
|
cannam@86
|
10350 hpux10*|hpux11*)
|
cannam@86
|
10351 if test $with_gnu_ld = no; then
|
cannam@86
|
10352 case "$host_cpu" in
|
cannam@86
|
10353 hppa*64*)
|
cannam@86
|
10354 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
|
cannam@86
|
10355 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
|
cannam@86
|
10356 hardcode_libdir_separator_CXX=:
|
cannam@86
|
10357 ;;
|
cannam@86
|
10358 ia64*)
|
cannam@86
|
10359 hardcode_libdir_flag_spec_CXX='-L$libdir'
|
cannam@86
|
10360 ;;
|
cannam@86
|
10361 *)
|
cannam@86
|
10362 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
|
cannam@86
|
10363 hardcode_libdir_separator_CXX=:
|
cannam@86
|
10364 export_dynamic_flag_spec_CXX='${wl}-E'
|
cannam@86
|
10365 ;;
|
cannam@86
|
10366 esac
|
cannam@86
|
10367 fi
|
cannam@86
|
10368 case "$host_cpu" in
|
cannam@86
|
10369 hppa*64*)
|
cannam@86
|
10370 hardcode_direct_CXX=no
|
cannam@86
|
10371 hardcode_shlibpath_var_CXX=no
|
cannam@86
|
10372 ;;
|
cannam@86
|
10373 ia64*)
|
cannam@86
|
10374 hardcode_direct_CXX=no
|
cannam@86
|
10375 hardcode_shlibpath_var_CXX=no
|
cannam@86
|
10376 hardcode_minus_L_CXX=yes # Not in the search PATH,
|
cannam@86
|
10377 # but as the default
|
cannam@86
|
10378 # location of the library.
|
cannam@86
|
10379 ;;
|
cannam@86
|
10380 *)
|
cannam@86
|
10381 hardcode_direct_CXX=yes
|
cannam@86
|
10382 hardcode_minus_L_CXX=yes # Not in the search PATH,
|
cannam@86
|
10383 # but as the default
|
cannam@86
|
10384 # location of the library.
|
cannam@86
|
10385 ;;
|
cannam@86
|
10386 esac
|
cannam@86
|
10387
|
cannam@86
|
10388 case $cc_basename in
|
cannam@86
|
10389 CC*)
|
cannam@86
|
10390 # FIXME: insert proper C++ library support
|
cannam@86
|
10391 ld_shlibs_CXX=no
|
cannam@86
|
10392 ;;
|
cannam@86
|
10393 aCC*)
|
cannam@86
|
10394 case "$host_cpu" in
|
cannam@86
|
10395 hppa*64*|ia64*)
|
cannam@86
|
10396 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
|
cannam@86
|
10397 ;;
|
cannam@86
|
10398 *)
|
cannam@86
|
10399 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
cannam@86
|
10400 ;;
|
cannam@86
|
10401 esac
|
cannam@86
|
10402 # Commands to make compiler produce verbose output that lists
|
cannam@86
|
10403 # what "hidden" libraries, object files and flags are used when
|
cannam@86
|
10404 # linking a shared library.
|
cannam@86
|
10405 #
|
cannam@86
|
10406 # There doesn't appear to be a way to prevent this compiler from
|
cannam@86
|
10407 # explicitly linking system object files so we need to strip them
|
cannam@86
|
10408 # from the output so that they don't get included in the library
|
cannam@86
|
10409 # dependencies.
|
cannam@86
|
10410 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
|
cannam@86
|
10411 ;;
|
cannam@86
|
10412 *)
|
cannam@86
|
10413 if test "$GXX" = yes; then
|
cannam@86
|
10414 if test $with_gnu_ld = no; then
|
cannam@86
|
10415 case "$host_cpu" in
|
cannam@86
|
10416 ia64*|hppa*64*)
|
cannam@86
|
10417 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
|
cannam@86
|
10418 ;;
|
cannam@86
|
10419 *)
|
cannam@86
|
10420 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
cannam@86
|
10421 ;;
|
cannam@86
|
10422 esac
|
cannam@86
|
10423 fi
|
cannam@86
|
10424 else
|
cannam@86
|
10425 # FIXME: insert proper C++ library support
|
cannam@86
|
10426 ld_shlibs_CXX=no
|
cannam@86
|
10427 fi
|
cannam@86
|
10428 ;;
|
cannam@86
|
10429 esac
|
cannam@86
|
10430 ;;
|
cannam@86
|
10431 irix5* | irix6*)
|
cannam@86
|
10432 case $cc_basename in
|
cannam@86
|
10433 CC*)
|
cannam@86
|
10434 # SGI C++
|
cannam@86
|
10435 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
cannam@86
|
10436
|
cannam@86
|
10437 # Archives containing C++ object files must be created using
|
cannam@86
|
10438 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
|
cannam@86
|
10439 # necessary to make sure instantiated templates are included
|
cannam@86
|
10440 # in the archive.
|
cannam@86
|
10441 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
|
cannam@86
|
10442 ;;
|
cannam@86
|
10443 *)
|
cannam@86
|
10444 if test "$GXX" = yes; then
|
cannam@86
|
10445 if test "$with_gnu_ld" = no; then
|
cannam@86
|
10446 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
cannam@86
|
10447 else
|
cannam@86
|
10448 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
|
cannam@86
|
10449 fi
|
cannam@86
|
10450 fi
|
cannam@86
|
10451 link_all_deplibs_CXX=yes
|
cannam@86
|
10452 ;;
|
cannam@86
|
10453 esac
|
cannam@86
|
10454 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
|
cannam@86
|
10455 hardcode_libdir_separator_CXX=:
|
cannam@86
|
10456 ;;
|
cannam@86
|
10457 linux*)
|
cannam@86
|
10458 case $cc_basename in
|
cannam@86
|
10459 KCC*)
|
cannam@86
|
10460 # Kuck and Associates, Inc. (KAI) C++ Compiler
|
cannam@86
|
10461
|
cannam@86
|
10462 # KCC will only create a shared library if the output file
|
cannam@86
|
10463 # ends with ".so" (or ".sl" for HP-UX), so rename the library
|
cannam@86
|
10464 # to its proper name (with version) after linking.
|
cannam@86
|
10465 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
|
cannam@86
|
10466 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
|
cannam@86
|
10467 # Commands to make compiler produce verbose output that lists
|
cannam@86
|
10468 # what "hidden" libraries, object files and flags are used when
|
cannam@86
|
10469 # linking a shared library.
|
cannam@86
|
10470 #
|
cannam@86
|
10471 # There doesn't appear to be a way to prevent this compiler from
|
cannam@86
|
10472 # explicitly linking system object files so we need to strip them
|
cannam@86
|
10473 # from the output so that they don't get included in the library
|
cannam@86
|
10474 # dependencies.
|
cannam@86
|
10475 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
|
cannam@86
|
10476
|
cannam@86
|
10477 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
|
cannam@86
|
10478 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
|
cannam@86
|
10479
|
cannam@86
|
10480 # Archives containing C++ object files must be created using
|
cannam@86
|
10481 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
|
cannam@86
|
10482 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
|
cannam@86
|
10483 ;;
|
cannam@86
|
10484 icpc*)
|
cannam@86
|
10485 # Intel C++
|
cannam@86
|
10486 with_gnu_ld=yes
|
cannam@86
|
10487 # version 8.0 and above of icpc choke on multiply defined symbols
|
cannam@86
|
10488 # if we add $predep_objects and $postdep_objects, however 7.1 and
|
cannam@86
|
10489 # earlier do not add the objects themselves.
|
cannam@86
|
10490 case `$CC -V 2>&1` in
|
cannam@86
|
10491 *"Version 7."*)
|
cannam@86
|
10492 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
cannam@86
|
10493 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
cannam@86
|
10494 ;;
|
cannam@86
|
10495 *) # Version 8.0 or newer
|
cannam@86
|
10496 tmp_idyn=
|
cannam@86
|
10497 case $host_cpu in
|
cannam@86
|
10498 ia64*) tmp_idyn=' -i_dynamic';;
|
cannam@86
|
10499 esac
|
cannam@86
|
10500 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
cannam@86
|
10501 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
cannam@86
|
10502 ;;
|
cannam@86
|
10503 esac
|
cannam@86
|
10504 archive_cmds_need_lc_CXX=no
|
cannam@86
|
10505 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
|
cannam@86
|
10506 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
|
cannam@86
|
10507 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
|
cannam@86
|
10508 ;;
|
cannam@86
|
10509 pgCC*)
|
cannam@86
|
10510 # Portland Group C++ compiler
|
cannam@86
|
10511 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
|
cannam@86
|
10512 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
|
cannam@86
|
10513
|
cannam@86
|
10514 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
|
cannam@86
|
10515 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
|
cannam@86
|
10516 whole_archive_flag_spec_CXX=''
|
cannam@86
|
10517 ;;
|
cannam@86
|
10518 cxx*)
|
cannam@86
|
10519 # Compaq C++
|
cannam@86
|
10520 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
cannam@86
|
10521 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
|
cannam@86
|
10522
|
cannam@86
|
10523 runpath_var=LD_RUN_PATH
|
cannam@86
|
10524 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
|
cannam@86
|
10525 hardcode_libdir_separator_CXX=:
|
cannam@86
|
10526
|
cannam@86
|
10527 # Commands to make compiler produce verbose output that lists
|
cannam@86
|
10528 # what "hidden" libraries, object files and flags are used when
|
cannam@86
|
10529 # linking a shared library.
|
cannam@86
|
10530 #
|
cannam@86
|
10531 # There doesn't appear to be a way to prevent this compiler from
|
cannam@86
|
10532 # explicitly linking system object files so we need to strip them
|
cannam@86
|
10533 # from the output so that they don't get included in the library
|
cannam@86
|
10534 # dependencies.
|
cannam@86
|
10535 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
|
cannam@86
|
10536 ;;
|
cannam@86
|
10537 esac
|
cannam@86
|
10538 ;;
|
cannam@86
|
10539 lynxos*)
|
cannam@86
|
10540 # FIXME: insert proper C++ library support
|
cannam@86
|
10541 ld_shlibs_CXX=no
|
cannam@86
|
10542 ;;
|
cannam@86
|
10543 m88k*)
|
cannam@86
|
10544 # FIXME: insert proper C++ library support
|
cannam@86
|
10545 ld_shlibs_CXX=no
|
cannam@86
|
10546 ;;
|
cannam@86
|
10547 mvs*)
|
cannam@86
|
10548 case $cc_basename in
|
cannam@86
|
10549 cxx*)
|
cannam@86
|
10550 # FIXME: insert proper C++ library support
|
cannam@86
|
10551 ld_shlibs_CXX=no
|
cannam@86
|
10552 ;;
|
cannam@86
|
10553 *)
|
cannam@86
|
10554 # FIXME: insert proper C++ library support
|
cannam@86
|
10555 ld_shlibs_CXX=no
|
cannam@86
|
10556 ;;
|
cannam@86
|
10557 esac
|
cannam@86
|
10558 ;;
|
cannam@86
|
10559 netbsd*)
|
cannam@86
|
10560 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
cannam@86
|
10561 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
|
cannam@86
|
10562 wlarc=
|
cannam@86
|
10563 hardcode_libdir_flag_spec_CXX='-R$libdir'
|
cannam@86
|
10564 hardcode_direct_CXX=yes
|
cannam@86
|
10565 hardcode_shlibpath_var_CXX=no
|
cannam@86
|
10566 fi
|
cannam@86
|
10567 # Workaround some broken pre-1.5 toolchains
|
cannam@86
|
10568 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
|
cannam@86
|
10569 ;;
|
cannam@86
|
10570 openbsd2*)
|
cannam@86
|
10571 # C++ shared libraries are fairly broken
|
cannam@86
|
10572 ld_shlibs_CXX=no
|
cannam@86
|
10573 ;;
|
cannam@86
|
10574 openbsd*)
|
cannam@86
|
10575 hardcode_direct_CXX=yes
|
cannam@86
|
10576 hardcode_shlibpath_var_CXX=no
|
cannam@86
|
10577 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
|
cannam@86
|
10578 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
|
cannam@86
|
10579 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
cannam@86
|
10580 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
|
cannam@86
|
10581 export_dynamic_flag_spec_CXX='${wl}-E'
|
cannam@86
|
10582 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
cannam@86
|
10583 fi
|
cannam@86
|
10584 output_verbose_link_cmd='echo'
|
cannam@86
|
10585 ;;
|
cannam@86
|
10586 osf3*)
|
cannam@86
|
10587 case $cc_basename in
|
cannam@86
|
10588 KCC*)
|
cannam@86
|
10589 # Kuck and Associates, Inc. (KAI) C++ Compiler
|
cannam@86
|
10590
|
cannam@86
|
10591 # KCC will only create a shared library if the output file
|
cannam@86
|
10592 # ends with ".so" (or ".sl" for HP-UX), so rename the library
|
cannam@86
|
10593 # to its proper name (with version) after linking.
|
cannam@86
|
10594 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
|
cannam@86
|
10595
|
cannam@86
|
10596 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
|
cannam@86
|
10597 hardcode_libdir_separator_CXX=:
|
cannam@86
|
10598
|
cannam@86
|
10599 # Archives containing C++ object files must be created using
|
cannam@86
|
10600 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
|
cannam@86
|
10601 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
|
cannam@86
|
10602
|
cannam@86
|
10603 ;;
|
cannam@86
|
10604 RCC*)
|
cannam@86
|
10605 # Rational C++ 2.4.1
|
cannam@86
|
10606 # FIXME: insert proper C++ library support
|
cannam@86
|
10607 ld_shlibs_CXX=no
|
cannam@86
|
10608 ;;
|
cannam@86
|
10609 cxx*)
|
cannam@86
|
10610 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
|
cannam@86
|
10611 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
cannam@86
|
10612
|
cannam@86
|
10613 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
|
cannam@86
|
10614 hardcode_libdir_separator_CXX=:
|
cannam@86
|
10615
|
cannam@86
|
10616 # Commands to make compiler produce verbose output that lists
|
cannam@86
|
10617 # what "hidden" libraries, object files and flags are used when
|
cannam@86
|
10618 # linking a shared library.
|
cannam@86
|
10619 #
|
cannam@86
|
10620 # There doesn't appear to be a way to prevent this compiler from
|
cannam@86
|
10621 # explicitly linking system object files so we need to strip them
|
cannam@86
|
10622 # from the output so that they don't get included in the library
|
cannam@86
|
10623 # dependencies.
|
cannam@86
|
10624 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
|
cannam@86
|
10625 ;;
|
cannam@86
|
10626 *)
|
cannam@86
|
10627 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
|
cannam@86
|
10628 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
|
cannam@86
|
10629 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
cannam@86
|
10630
|
cannam@86
|
10631 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
|
cannam@86
|
10632 hardcode_libdir_separator_CXX=:
|
cannam@86
|
10633
|
cannam@86
|
10634 # Commands to make compiler produce verbose output that lists
|
cannam@86
|
10635 # what "hidden" libraries, object files and flags are used when
|
cannam@86
|
10636 # linking a shared library.
|
cannam@86
|
10637 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
|
cannam@86
|
10638
|
cannam@86
|
10639 else
|
cannam@86
|
10640 # FIXME: insert proper C++ library support
|
cannam@86
|
10641 ld_shlibs_CXX=no
|
cannam@86
|
10642 fi
|
cannam@86
|
10643 ;;
|
cannam@86
|
10644 esac
|
cannam@86
|
10645 ;;
|
cannam@86
|
10646 osf4* | osf5*)
|
cannam@86
|
10647 case $cc_basename in
|
cannam@86
|
10648 KCC*)
|
cannam@86
|
10649 # Kuck and Associates, Inc. (KAI) C++ Compiler
|
cannam@86
|
10650
|
cannam@86
|
10651 # KCC will only create a shared library if the output file
|
cannam@86
|
10652 # ends with ".so" (or ".sl" for HP-UX), so rename the library
|
cannam@86
|
10653 # to its proper name (with version) after linking.
|
cannam@86
|
10654 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
|
cannam@86
|
10655
|
cannam@86
|
10656 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
|
cannam@86
|
10657 hardcode_libdir_separator_CXX=:
|
cannam@86
|
10658
|
cannam@86
|
10659 # Archives containing C++ object files must be created using
|
cannam@86
|
10660 # the KAI C++ compiler.
|
cannam@86
|
10661 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
|
cannam@86
|
10662 ;;
|
cannam@86
|
10663 RCC*)
|
cannam@86
|
10664 # Rational C++ 2.4.1
|
cannam@86
|
10665 # FIXME: insert proper C++ library support
|
cannam@86
|
10666 ld_shlibs_CXX=no
|
cannam@86
|
10667 ;;
|
cannam@86
|
10668 cxx*)
|
cannam@86
|
10669 allow_undefined_flag_CXX=' -expect_unresolved \*'
|
cannam@86
|
10670 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
cannam@86
|
10671 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
|
cannam@86
|
10672 echo "-hidden">> $lib.exp~
|
cannam@86
|
10673 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
|
cannam@86
|
10674 $rm $lib.exp'
|
cannam@86
|
10675
|
cannam@86
|
10676 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
|
cannam@86
|
10677 hardcode_libdir_separator_CXX=:
|
cannam@86
|
10678
|
cannam@86
|
10679 # Commands to make compiler produce verbose output that lists
|
cannam@86
|
10680 # what "hidden" libraries, object files and flags are used when
|
cannam@86
|
10681 # linking a shared library.
|
cannam@86
|
10682 #
|
cannam@86
|
10683 # There doesn't appear to be a way to prevent this compiler from
|
cannam@86
|
10684 # explicitly linking system object files so we need to strip them
|
cannam@86
|
10685 # from the output so that they don't get included in the library
|
cannam@86
|
10686 # dependencies.
|
cannam@86
|
10687 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
|
cannam@86
|
10688 ;;
|
cannam@86
|
10689 *)
|
cannam@86
|
10690 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
|
cannam@86
|
10691 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
|
cannam@86
|
10692 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
cannam@86
|
10693
|
cannam@86
|
10694 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
|
cannam@86
|
10695 hardcode_libdir_separator_CXX=:
|
cannam@86
|
10696
|
cannam@86
|
10697 # Commands to make compiler produce verbose output that lists
|
cannam@86
|
10698 # what "hidden" libraries, object files and flags are used when
|
cannam@86
|
10699 # linking a shared library.
|
cannam@86
|
10700 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
|
cannam@86
|
10701
|
cannam@86
|
10702 else
|
cannam@86
|
10703 # FIXME: insert proper C++ library support
|
cannam@86
|
10704 ld_shlibs_CXX=no
|
cannam@86
|
10705 fi
|
cannam@86
|
10706 ;;
|
cannam@86
|
10707 esac
|
cannam@86
|
10708 ;;
|
cannam@86
|
10709 psos*)
|
cannam@86
|
10710 # FIXME: insert proper C++ library support
|
cannam@86
|
10711 ld_shlibs_CXX=no
|
cannam@86
|
10712 ;;
|
cannam@86
|
10713 sco*)
|
cannam@86
|
10714 archive_cmds_need_lc_CXX=no
|
cannam@86
|
10715 case $cc_basename in
|
cannam@86
|
10716 CC*)
|
cannam@86
|
10717 # FIXME: insert proper C++ library support
|
cannam@86
|
10718 ld_shlibs_CXX=no
|
cannam@86
|
10719 ;;
|
cannam@86
|
10720 *)
|
cannam@86
|
10721 # FIXME: insert proper C++ library support
|
cannam@86
|
10722 ld_shlibs_CXX=no
|
cannam@86
|
10723 ;;
|
cannam@86
|
10724 esac
|
cannam@86
|
10725 ;;
|
cannam@86
|
10726 sunos4*)
|
cannam@86
|
10727 case $cc_basename in
|
cannam@86
|
10728 CC*)
|
cannam@86
|
10729 # Sun C++ 4.x
|
cannam@86
|
10730 # FIXME: insert proper C++ library support
|
cannam@86
|
10731 ld_shlibs_CXX=no
|
cannam@86
|
10732 ;;
|
cannam@86
|
10733 lcc*)
|
cannam@86
|
10734 # Lucid
|
cannam@86
|
10735 # FIXME: insert proper C++ library support
|
cannam@86
|
10736 ld_shlibs_CXX=no
|
cannam@86
|
10737 ;;
|
cannam@86
|
10738 *)
|
cannam@86
|
10739 # FIXME: insert proper C++ library support
|
cannam@86
|
10740 ld_shlibs_CXX=no
|
cannam@86
|
10741 ;;
|
cannam@86
|
10742 esac
|
cannam@86
|
10743 ;;
|
cannam@86
|
10744 solaris*)
|
cannam@86
|
10745 case $cc_basename in
|
cannam@86
|
10746 CC*)
|
cannam@86
|
10747 # Sun C++ 4.2, 5.x and Centerline C++
|
cannam@86
|
10748 no_undefined_flag_CXX=' -zdefs'
|
cannam@86
|
10749 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
cannam@86
|
10750 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
cannam@86
|
10751 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
|
cannam@86
|
10752
|
cannam@86
|
10753 hardcode_libdir_flag_spec_CXX='-R$libdir'
|
cannam@86
|
10754 hardcode_shlibpath_var_CXX=no
|
cannam@86
|
10755 case $host_os in
|
cannam@86
|
10756 solaris2.[0-5] | solaris2.[0-5].*) ;;
|
cannam@86
|
10757 *)
|
cannam@86
|
10758 # The C++ compiler is used as linker so we must use $wl
|
cannam@86
|
10759 # flag to pass the commands to the underlying system
|
cannam@86
|
10760 # linker. We must also pass each convience library through
|
cannam@86
|
10761 # to the system linker between allextract/defaultextract.
|
cannam@86
|
10762 # The C++ compiler will combine linker options so we
|
cannam@86
|
10763 # cannot just pass the convience library names through
|
cannam@86
|
10764 # without $wl.
|
cannam@86
|
10765 # Supported since Solaris 2.6 (maybe 2.5.1?)
|
cannam@86
|
10766 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
|
cannam@86
|
10767 ;;
|
cannam@86
|
10768 esac
|
cannam@86
|
10769 link_all_deplibs_CXX=yes
|
cannam@86
|
10770
|
cannam@86
|
10771 # Commands to make compiler produce verbose output that lists
|
cannam@86
|
10772 # what "hidden" libraries, object files and flags are used when
|
cannam@86
|
10773 # linking a shared library.
|
cannam@86
|
10774 #
|
cannam@86
|
10775 # There doesn't appear to be a way to prevent this compiler from
|
cannam@86
|
10776 # explicitly linking system object files so we need to strip them
|
cannam@86
|
10777 # from the output so that they don't get included in the library
|
cannam@86
|
10778 # dependencies.
|
cannam@86
|
10779 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
|
cannam@86
|
10780
|
cannam@86
|
10781 # Archives containing C++ object files must be created using
|
cannam@86
|
10782 # "CC -xar", where "CC" is the Sun C++ compiler. This is
|
cannam@86
|
10783 # necessary to make sure instantiated templates are included
|
cannam@86
|
10784 # in the archive.
|
cannam@86
|
10785 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
|
cannam@86
|
10786 ;;
|
cannam@86
|
10787 gcx*)
|
cannam@86
|
10788 # Green Hills C++ Compiler
|
cannam@86
|
10789 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
|
cannam@86
|
10790
|
cannam@86
|
10791 # The C++ compiler must be used to create the archive.
|
cannam@86
|
10792 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
|
cannam@86
|
10793 ;;
|
cannam@86
|
10794 *)
|
cannam@86
|
10795 # GNU C++ compiler with Solaris linker
|
cannam@86
|
10796 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
|
cannam@86
|
10797 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
|
cannam@86
|
10798 if $CC --version | grep -v '^2\.7' > /dev/null; then
|
cannam@86
|
10799 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
|
cannam@86
|
10800 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
cannam@86
|
10801 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
|
cannam@86
|
10802
|
cannam@86
|
10803 # Commands to make compiler produce verbose output that lists
|
cannam@86
|
10804 # what "hidden" libraries, object files and flags are used when
|
cannam@86
|
10805 # linking a shared library.
|
cannam@86
|
10806 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
|
cannam@86
|
10807 else
|
cannam@86
|
10808 # g++ 2.7 appears to require `-G' NOT `-shared' on this
|
cannam@86
|
10809 # platform.
|
cannam@86
|
10810 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
|
cannam@86
|
10811 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
cannam@86
|
10812 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
|
cannam@86
|
10813
|
cannam@86
|
10814 # Commands to make compiler produce verbose output that lists
|
cannam@86
|
10815 # what "hidden" libraries, object files and flags are used when
|
cannam@86
|
10816 # linking a shared library.
|
cannam@86
|
10817 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
|
cannam@86
|
10818 fi
|
cannam@86
|
10819
|
cannam@86
|
10820 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
|
cannam@86
|
10821 fi
|
cannam@86
|
10822 ;;
|
cannam@86
|
10823 esac
|
cannam@86
|
10824 ;;
|
cannam@86
|
10825 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
|
cannam@86
|
10826 archive_cmds_need_lc_CXX=no
|
cannam@86
|
10827 ;;
|
cannam@86
|
10828 tandem*)
|
cannam@86
|
10829 case $cc_basename in
|
cannam@86
|
10830 NCC*)
|
cannam@86
|
10831 # NonStop-UX NCC 3.20
|
cannam@86
|
10832 # FIXME: insert proper C++ library support
|
cannam@86
|
10833 ld_shlibs_CXX=no
|
cannam@86
|
10834 ;;
|
cannam@86
|
10835 *)
|
cannam@86
|
10836 # FIXME: insert proper C++ library support
|
cannam@86
|
10837 ld_shlibs_CXX=no
|
cannam@86
|
10838 ;;
|
cannam@86
|
10839 esac
|
cannam@86
|
10840 ;;
|
cannam@86
|
10841 vxworks*)
|
cannam@86
|
10842 # FIXME: insert proper C++ library support
|
cannam@86
|
10843 ld_shlibs_CXX=no
|
cannam@86
|
10844 ;;
|
cannam@86
|
10845 *)
|
cannam@86
|
10846 # FIXME: insert proper C++ library support
|
cannam@86
|
10847 ld_shlibs_CXX=no
|
cannam@86
|
10848 ;;
|
cannam@86
|
10849 esac
|
cannam@86
|
10850 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
|
cannam@86
|
10851 echo "${ECHO_T}$ld_shlibs_CXX" >&6
|
cannam@86
|
10852 test "$ld_shlibs_CXX" = no && can_build_shared=no
|
cannam@86
|
10853
|
cannam@86
|
10854 GCC_CXX="$GXX"
|
cannam@86
|
10855 LD_CXX="$LD"
|
cannam@86
|
10856
|
cannam@86
|
10857
|
cannam@86
|
10858 cat > conftest.$ac_ext <<EOF
|
cannam@86
|
10859 class Foo
|
cannam@86
|
10860 {
|
cannam@86
|
10861 public:
|
cannam@86
|
10862 Foo (void) { a = 0; }
|
cannam@86
|
10863 private:
|
cannam@86
|
10864 int a;
|
cannam@86
|
10865 };
|
cannam@86
|
10866 EOF
|
cannam@86
|
10867
|
cannam@86
|
10868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
10869 (eval $ac_compile) 2>&5
|
cannam@86
|
10870 ac_status=$?
|
cannam@86
|
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
10872 (exit $ac_status); }; then
|
cannam@86
|
10873 # Parse the compiler output and extract the necessary
|
cannam@86
|
10874 # objects, libraries and library flags.
|
cannam@86
|
10875
|
cannam@86
|
10876 # Sentinel used to keep track of whether or not we are before
|
cannam@86
|
10877 # the conftest object file.
|
cannam@86
|
10878 pre_test_object_deps_done=no
|
cannam@86
|
10879
|
cannam@86
|
10880 # The `*' in the case matches for architectures that use `case' in
|
cannam@86
|
10881 # $output_verbose_cmd can trigger glob expansion during the loop
|
cannam@86
|
10882 # eval without this substitution.
|
cannam@86
|
10883 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
|
cannam@86
|
10884
|
cannam@86
|
10885 for p in `eval $output_verbose_link_cmd`; do
|
cannam@86
|
10886 case $p in
|
cannam@86
|
10887
|
cannam@86
|
10888 -L* | -R* | -l*)
|
cannam@86
|
10889 # Some compilers place space between "-{L,R}" and the path.
|
cannam@86
|
10890 # Remove the space.
|
cannam@86
|
10891 if test $p = "-L" \
|
cannam@86
|
10892 || test $p = "-R"; then
|
cannam@86
|
10893 prev=$p
|
cannam@86
|
10894 continue
|
cannam@86
|
10895 else
|
cannam@86
|
10896 prev=
|
cannam@86
|
10897 fi
|
cannam@86
|
10898
|
cannam@86
|
10899 if test "$pre_test_object_deps_done" = no; then
|
cannam@86
|
10900 case $p in
|
cannam@86
|
10901 -L* | -R*)
|
cannam@86
|
10902 # Internal compiler library paths should come after those
|
cannam@86
|
10903 # provided the user. The postdeps already come after the
|
cannam@86
|
10904 # user supplied libs so there is no need to process them.
|
cannam@86
|
10905 if test -z "$compiler_lib_search_path_CXX"; then
|
cannam@86
|
10906 compiler_lib_search_path_CXX="${prev}${p}"
|
cannam@86
|
10907 else
|
cannam@86
|
10908 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
|
cannam@86
|
10909 fi
|
cannam@86
|
10910 ;;
|
cannam@86
|
10911 # The "-l" case would never come before the object being
|
cannam@86
|
10912 # linked, so don't bother handling this case.
|
cannam@86
|
10913 esac
|
cannam@86
|
10914 else
|
cannam@86
|
10915 if test -z "$postdeps_CXX"; then
|
cannam@86
|
10916 postdeps_CXX="${prev}${p}"
|
cannam@86
|
10917 else
|
cannam@86
|
10918 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
|
cannam@86
|
10919 fi
|
cannam@86
|
10920 fi
|
cannam@86
|
10921 ;;
|
cannam@86
|
10922
|
cannam@86
|
10923 *.$objext)
|
cannam@86
|
10924 # This assumes that the test object file only shows up
|
cannam@86
|
10925 # once in the compiler output.
|
cannam@86
|
10926 if test "$p" = "conftest.$objext"; then
|
cannam@86
|
10927 pre_test_object_deps_done=yes
|
cannam@86
|
10928 continue
|
cannam@86
|
10929 fi
|
cannam@86
|
10930
|
cannam@86
|
10931 if test "$pre_test_object_deps_done" = no; then
|
cannam@86
|
10932 if test -z "$predep_objects_CXX"; then
|
cannam@86
|
10933 predep_objects_CXX="$p"
|
cannam@86
|
10934 else
|
cannam@86
|
10935 predep_objects_CXX="$predep_objects_CXX $p"
|
cannam@86
|
10936 fi
|
cannam@86
|
10937 else
|
cannam@86
|
10938 if test -z "$postdep_objects_CXX"; then
|
cannam@86
|
10939 postdep_objects_CXX="$p"
|
cannam@86
|
10940 else
|
cannam@86
|
10941 postdep_objects_CXX="$postdep_objects_CXX $p"
|
cannam@86
|
10942 fi
|
cannam@86
|
10943 fi
|
cannam@86
|
10944 ;;
|
cannam@86
|
10945
|
cannam@86
|
10946 *) ;; # Ignore the rest.
|
cannam@86
|
10947
|
cannam@86
|
10948 esac
|
cannam@86
|
10949 done
|
cannam@86
|
10950
|
cannam@86
|
10951 # Clean up.
|
cannam@86
|
10952 rm -f a.out a.exe
|
cannam@86
|
10953 else
|
cannam@86
|
10954 echo "libtool.m4: error: problem compiling CXX test program"
|
cannam@86
|
10955 fi
|
cannam@86
|
10956
|
cannam@86
|
10957 $rm -f confest.$objext
|
cannam@86
|
10958
|
cannam@86
|
10959 case " $postdeps_CXX " in
|
cannam@86
|
10960 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
|
cannam@86
|
10961 esac
|
cannam@86
|
10962
|
cannam@86
|
10963 lt_prog_compiler_wl_CXX=
|
cannam@86
|
10964 lt_prog_compiler_pic_CXX=
|
cannam@86
|
10965 lt_prog_compiler_static_CXX=
|
cannam@86
|
10966
|
cannam@86
|
10967 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
|
cannam@86
|
10968 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
|
cannam@86
|
10969
|
cannam@86
|
10970 # C++ specific cases for pic, static, wl, etc.
|
cannam@86
|
10971 if test "$GXX" = yes; then
|
cannam@86
|
10972 lt_prog_compiler_wl_CXX='-Wl,'
|
cannam@86
|
10973 lt_prog_compiler_static_CXX='-static'
|
cannam@86
|
10974
|
cannam@86
|
10975 case $host_os in
|
cannam@86
|
10976 aix*)
|
cannam@86
|
10977 # All AIX code is PIC.
|
cannam@86
|
10978 if test "$host_cpu" = ia64; then
|
cannam@86
|
10979 # AIX 5 now supports IA64 processor
|
cannam@86
|
10980 lt_prog_compiler_static_CXX='-Bstatic'
|
cannam@86
|
10981 fi
|
cannam@86
|
10982 ;;
|
cannam@86
|
10983 amigaos*)
|
cannam@86
|
10984 # FIXME: we need at least 68020 code to build shared libraries, but
|
cannam@86
|
10985 # adding the `-m68020' flag to GCC prevents building anything better,
|
cannam@86
|
10986 # like `-m68040'.
|
cannam@86
|
10987 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
|
cannam@86
|
10988 ;;
|
cannam@86
|
10989 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
cannam@86
|
10990 # PIC is the default for these OSes.
|
cannam@86
|
10991 ;;
|
cannam@86
|
10992 mingw* | os2* | pw32*)
|
cannam@86
|
10993 # This hack is so that the source file can tell whether it is being
|
cannam@86
|
10994 # built for inclusion in a dll (and should export symbols for example).
|
cannam@86
|
10995 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
|
cannam@86
|
10996 ;;
|
cannam@86
|
10997 darwin* | rhapsody*)
|
cannam@86
|
10998 # PIC is the default on this platform
|
cannam@86
|
10999 # Common symbols not allowed in MH_DYLIB files
|
cannam@86
|
11000 lt_prog_compiler_pic_CXX='-fno-common'
|
cannam@86
|
11001 ;;
|
cannam@86
|
11002 *djgpp*)
|
cannam@86
|
11003 # DJGPP does not support shared libraries at all
|
cannam@86
|
11004 lt_prog_compiler_pic_CXX=
|
cannam@86
|
11005 ;;
|
cannam@86
|
11006 sysv4*MP*)
|
cannam@86
|
11007 if test -d /usr/nec; then
|
cannam@86
|
11008 lt_prog_compiler_pic_CXX=-Kconform_pic
|
cannam@86
|
11009 fi
|
cannam@86
|
11010 ;;
|
cannam@86
|
11011 hpux*)
|
cannam@86
|
11012 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
cannam@86
|
11013 # not for PA HP-UX.
|
cannam@86
|
11014 case "$host_cpu" in
|
cannam@86
|
11015 hppa*64*|ia64*)
|
cannam@86
|
11016 ;;
|
cannam@86
|
11017 *)
|
cannam@86
|
11018 lt_prog_compiler_pic_CXX='-fPIC'
|
cannam@86
|
11019 ;;
|
cannam@86
|
11020 esac
|
cannam@86
|
11021 ;;
|
cannam@86
|
11022 *)
|
cannam@86
|
11023 lt_prog_compiler_pic_CXX='-fPIC'
|
cannam@86
|
11024 ;;
|
cannam@86
|
11025 esac
|
cannam@86
|
11026 else
|
cannam@86
|
11027 case $host_os in
|
cannam@86
|
11028 aix4* | aix5*)
|
cannam@86
|
11029 # All AIX code is PIC.
|
cannam@86
|
11030 if test "$host_cpu" = ia64; then
|
cannam@86
|
11031 # AIX 5 now supports IA64 processor
|
cannam@86
|
11032 lt_prog_compiler_static_CXX='-Bstatic'
|
cannam@86
|
11033 else
|
cannam@86
|
11034 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
|
cannam@86
|
11035 fi
|
cannam@86
|
11036 ;;
|
cannam@86
|
11037 chorus*)
|
cannam@86
|
11038 case $cc_basename in
|
cannam@86
|
11039 cxch68*)
|
cannam@86
|
11040 # Green Hills C++ Compiler
|
cannam@86
|
11041 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
|
cannam@86
|
11042 ;;
|
cannam@86
|
11043 esac
|
cannam@86
|
11044 ;;
|
cannam@86
|
11045 darwin*)
|
cannam@86
|
11046 # PIC is the default on this platform
|
cannam@86
|
11047 # Common symbols not allowed in MH_DYLIB files
|
cannam@86
|
11048 case $cc_basename in
|
cannam@86
|
11049 xlc*)
|
cannam@86
|
11050 lt_prog_compiler_pic_CXX='-qnocommon'
|
cannam@86
|
11051 lt_prog_compiler_wl_CXX='-Wl,'
|
cannam@86
|
11052 ;;
|
cannam@86
|
11053 esac
|
cannam@86
|
11054 ;;
|
cannam@86
|
11055 dgux*)
|
cannam@86
|
11056 case $cc_basename in
|
cannam@86
|
11057 ec++*)
|
cannam@86
|
11058 lt_prog_compiler_pic_CXX='-KPIC'
|
cannam@86
|
11059 ;;
|
cannam@86
|
11060 ghcx*)
|
cannam@86
|
11061 # Green Hills C++ Compiler
|
cannam@86
|
11062 lt_prog_compiler_pic_CXX='-pic'
|
cannam@86
|
11063 ;;
|
cannam@86
|
11064 *)
|
cannam@86
|
11065 ;;
|
cannam@86
|
11066 esac
|
cannam@86
|
11067 ;;
|
cannam@86
|
11068 freebsd* | kfreebsd*-gnu | dragonfly*)
|
cannam@86
|
11069 # FreeBSD uses GNU C++
|
cannam@86
|
11070 ;;
|
cannam@86
|
11071 hpux9* | hpux10* | hpux11*)
|
cannam@86
|
11072 case $cc_basename in
|
cannam@86
|
11073 CC*)
|
cannam@86
|
11074 lt_prog_compiler_wl_CXX='-Wl,'
|
cannam@86
|
11075 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
|
cannam@86
|
11076 if test "$host_cpu" != ia64; then
|
cannam@86
|
11077 lt_prog_compiler_pic_CXX='+Z'
|
cannam@86
|
11078 fi
|
cannam@86
|
11079 ;;
|
cannam@86
|
11080 aCC*)
|
cannam@86
|
11081 lt_prog_compiler_wl_CXX='-Wl,'
|
cannam@86
|
11082 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
|
cannam@86
|
11083 case "$host_cpu" in
|
cannam@86
|
11084 hppa*64*|ia64*)
|
cannam@86
|
11085 # +Z the default
|
cannam@86
|
11086 ;;
|
cannam@86
|
11087 *)
|
cannam@86
|
11088 lt_prog_compiler_pic_CXX='+Z'
|
cannam@86
|
11089 ;;
|
cannam@86
|
11090 esac
|
cannam@86
|
11091 ;;
|
cannam@86
|
11092 *)
|
cannam@86
|
11093 ;;
|
cannam@86
|
11094 esac
|
cannam@86
|
11095 ;;
|
cannam@86
|
11096 irix5* | irix6* | nonstopux*)
|
cannam@86
|
11097 case $cc_basename in
|
cannam@86
|
11098 CC*)
|
cannam@86
|
11099 lt_prog_compiler_wl_CXX='-Wl,'
|
cannam@86
|
11100 lt_prog_compiler_static_CXX='-non_shared'
|
cannam@86
|
11101 # CC pic flag -KPIC is the default.
|
cannam@86
|
11102 ;;
|
cannam@86
|
11103 *)
|
cannam@86
|
11104 ;;
|
cannam@86
|
11105 esac
|
cannam@86
|
11106 ;;
|
cannam@86
|
11107 linux*)
|
cannam@86
|
11108 case $cc_basename in
|
cannam@86
|
11109 KCC*)
|
cannam@86
|
11110 # KAI C++ Compiler
|
cannam@86
|
11111 lt_prog_compiler_wl_CXX='--backend -Wl,'
|
cannam@86
|
11112 lt_prog_compiler_pic_CXX='-fPIC'
|
cannam@86
|
11113 ;;
|
cannam@86
|
11114 icpc* | ecpc*)
|
cannam@86
|
11115 # Intel C++
|
cannam@86
|
11116 lt_prog_compiler_wl_CXX='-Wl,'
|
cannam@86
|
11117 lt_prog_compiler_pic_CXX='-KPIC'
|
cannam@86
|
11118 lt_prog_compiler_static_CXX='-static'
|
cannam@86
|
11119 ;;
|
cannam@86
|
11120 pgCC*)
|
cannam@86
|
11121 # Portland Group C++ compiler.
|
cannam@86
|
11122 lt_prog_compiler_wl_CXX='-Wl,'
|
cannam@86
|
11123 lt_prog_compiler_pic_CXX='-fpic'
|
cannam@86
|
11124 lt_prog_compiler_static_CXX='-static'
|
cannam@86
|
11125 ;;
|
cannam@86
|
11126 cxx*)
|
cannam@86
|
11127 # Compaq C++
|
cannam@86
|
11128 # Make sure the PIC flag is empty. It appears that all Alpha
|
cannam@86
|
11129 # Linux and Compaq Tru64 Unix objects are PIC.
|
cannam@86
|
11130 lt_prog_compiler_pic_CXX=
|
cannam@86
|
11131 lt_prog_compiler_static_CXX='-non_shared'
|
cannam@86
|
11132 ;;
|
cannam@86
|
11133 *)
|
cannam@86
|
11134 ;;
|
cannam@86
|
11135 esac
|
cannam@86
|
11136 ;;
|
cannam@86
|
11137 lynxos*)
|
cannam@86
|
11138 ;;
|
cannam@86
|
11139 m88k*)
|
cannam@86
|
11140 ;;
|
cannam@86
|
11141 mvs*)
|
cannam@86
|
11142 case $cc_basename in
|
cannam@86
|
11143 cxx*)
|
cannam@86
|
11144 lt_prog_compiler_pic_CXX='-W c,exportall'
|
cannam@86
|
11145 ;;
|
cannam@86
|
11146 *)
|
cannam@86
|
11147 ;;
|
cannam@86
|
11148 esac
|
cannam@86
|
11149 ;;
|
cannam@86
|
11150 netbsd*)
|
cannam@86
|
11151 ;;
|
cannam@86
|
11152 osf3* | osf4* | osf5*)
|
cannam@86
|
11153 case $cc_basename in
|
cannam@86
|
11154 KCC*)
|
cannam@86
|
11155 lt_prog_compiler_wl_CXX='--backend -Wl,'
|
cannam@86
|
11156 ;;
|
cannam@86
|
11157 RCC*)
|
cannam@86
|
11158 # Rational C++ 2.4.1
|
cannam@86
|
11159 lt_prog_compiler_pic_CXX='-pic'
|
cannam@86
|
11160 ;;
|
cannam@86
|
11161 cxx*)
|
cannam@86
|
11162 # Digital/Compaq C++
|
cannam@86
|
11163 lt_prog_compiler_wl_CXX='-Wl,'
|
cannam@86
|
11164 # Make sure the PIC flag is empty. It appears that all Alpha
|
cannam@86
|
11165 # Linux and Compaq Tru64 Unix objects are PIC.
|
cannam@86
|
11166 lt_prog_compiler_pic_CXX=
|
cannam@86
|
11167 lt_prog_compiler_static_CXX='-non_shared'
|
cannam@86
|
11168 ;;
|
cannam@86
|
11169 *)
|
cannam@86
|
11170 ;;
|
cannam@86
|
11171 esac
|
cannam@86
|
11172 ;;
|
cannam@86
|
11173 psos*)
|
cannam@86
|
11174 ;;
|
cannam@86
|
11175 sco*)
|
cannam@86
|
11176 case $cc_basename in
|
cannam@86
|
11177 CC*)
|
cannam@86
|
11178 lt_prog_compiler_pic_CXX='-fPIC'
|
cannam@86
|
11179 ;;
|
cannam@86
|
11180 *)
|
cannam@86
|
11181 ;;
|
cannam@86
|
11182 esac
|
cannam@86
|
11183 ;;
|
cannam@86
|
11184 solaris*)
|
cannam@86
|
11185 case $cc_basename in
|
cannam@86
|
11186 CC*)
|
cannam@86
|
11187 # Sun C++ 4.2, 5.x and Centerline C++
|
cannam@86
|
11188 lt_prog_compiler_pic_CXX='-KPIC'
|
cannam@86
|
11189 lt_prog_compiler_static_CXX='-Bstatic'
|
cannam@86
|
11190 lt_prog_compiler_wl_CXX='-Qoption ld '
|
cannam@86
|
11191 ;;
|
cannam@86
|
11192 gcx*)
|
cannam@86
|
11193 # Green Hills C++ Compiler
|
cannam@86
|
11194 lt_prog_compiler_pic_CXX='-PIC'
|
cannam@86
|
11195 ;;
|
cannam@86
|
11196 *)
|
cannam@86
|
11197 ;;
|
cannam@86
|
11198 esac
|
cannam@86
|
11199 ;;
|
cannam@86
|
11200 sunos4*)
|
cannam@86
|
11201 case $cc_basename in
|
cannam@86
|
11202 CC*)
|
cannam@86
|
11203 # Sun C++ 4.x
|
cannam@86
|
11204 lt_prog_compiler_pic_CXX='-pic'
|
cannam@86
|
11205 lt_prog_compiler_static_CXX='-Bstatic'
|
cannam@86
|
11206 ;;
|
cannam@86
|
11207 lcc*)
|
cannam@86
|
11208 # Lucid
|
cannam@86
|
11209 lt_prog_compiler_pic_CXX='-pic'
|
cannam@86
|
11210 ;;
|
cannam@86
|
11211 *)
|
cannam@86
|
11212 ;;
|
cannam@86
|
11213 esac
|
cannam@86
|
11214 ;;
|
cannam@86
|
11215 tandem*)
|
cannam@86
|
11216 case $cc_basename in
|
cannam@86
|
11217 NCC*)
|
cannam@86
|
11218 # NonStop-UX NCC 3.20
|
cannam@86
|
11219 lt_prog_compiler_pic_CXX='-KPIC'
|
cannam@86
|
11220 ;;
|
cannam@86
|
11221 *)
|
cannam@86
|
11222 ;;
|
cannam@86
|
11223 esac
|
cannam@86
|
11224 ;;
|
cannam@86
|
11225 unixware*)
|
cannam@86
|
11226 ;;
|
cannam@86
|
11227 vxworks*)
|
cannam@86
|
11228 ;;
|
cannam@86
|
11229 *)
|
cannam@86
|
11230 lt_prog_compiler_can_build_shared_CXX=no
|
cannam@86
|
11231 ;;
|
cannam@86
|
11232 esac
|
cannam@86
|
11233 fi
|
cannam@86
|
11234
|
cannam@86
|
11235 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
|
cannam@86
|
11236 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
|
cannam@86
|
11237
|
cannam@86
|
11238 #
|
cannam@86
|
11239 # Check to make sure the PIC flag actually works.
|
cannam@86
|
11240 #
|
cannam@86
|
11241 if test -n "$lt_prog_compiler_pic_CXX"; then
|
cannam@86
|
11242
|
cannam@86
|
11243 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
|
cannam@86
|
11244 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
|
cannam@86
|
11245 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
|
cannam@86
|
11246 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
11247 else
|
cannam@86
|
11248 lt_prog_compiler_pic_works_CXX=no
|
cannam@86
|
11249 ac_outfile=conftest.$ac_objext
|
cannam@86
|
11250 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
cannam@86
|
11251 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
|
cannam@86
|
11252 # Insert the option either (1) after the last *FLAGS variable, or
|
cannam@86
|
11253 # (2) before a word containing "conftest.", or (3) at the end.
|
cannam@86
|
11254 # Note that $ac_compile itself does not contain backslashes and begins
|
cannam@86
|
11255 # with a dollar sign (not a hyphen), so the echo should work correctly.
|
cannam@86
|
11256 # The option is referenced via a variable to avoid confusing sed.
|
cannam@86
|
11257 lt_compile=`echo "$ac_compile" | $SED \
|
cannam@86
|
11258 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
cannam@86
|
11259 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
cannam@86
|
11260 -e 's:$: $lt_compiler_flag:'`
|
cannam@86
|
11261 (eval echo "\"\$as_me:11261: $lt_compile\"" >&5)
|
cannam@86
|
11262 (eval "$lt_compile" 2>conftest.err)
|
cannam@86
|
11263 ac_status=$?
|
cannam@86
|
11264 cat conftest.err >&5
|
cannam@86
|
11265 echo "$as_me:11265: \$? = $ac_status" >&5
|
cannam@86
|
11266 if (exit $ac_status) && test -s "$ac_outfile"; then
|
cannam@86
|
11267 # The compiler can only warn and ignore the option if not recognized
|
cannam@86
|
11268 # So say no if there are warnings other than the usual output.
|
cannam@86
|
11269 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
|
cannam@86
|
11270 $SED '/^$/d' conftest.err >conftest.er2
|
cannam@86
|
11271 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
|
cannam@86
|
11272 lt_prog_compiler_pic_works_CXX=yes
|
cannam@86
|
11273 fi
|
cannam@86
|
11274 fi
|
cannam@86
|
11275 $rm conftest*
|
cannam@86
|
11276
|
cannam@86
|
11277 fi
|
cannam@86
|
11278 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
|
cannam@86
|
11279 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
|
cannam@86
|
11280
|
cannam@86
|
11281 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
|
cannam@86
|
11282 case $lt_prog_compiler_pic_CXX in
|
cannam@86
|
11283 "" | " "*) ;;
|
cannam@86
|
11284 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
|
cannam@86
|
11285 esac
|
cannam@86
|
11286 else
|
cannam@86
|
11287 lt_prog_compiler_pic_CXX=
|
cannam@86
|
11288 lt_prog_compiler_can_build_shared_CXX=no
|
cannam@86
|
11289 fi
|
cannam@86
|
11290
|
cannam@86
|
11291 fi
|
cannam@86
|
11292 case "$host_os" in
|
cannam@86
|
11293 # For platforms which do not support PIC, -DPIC is meaningless:
|
cannam@86
|
11294 *djgpp*)
|
cannam@86
|
11295 lt_prog_compiler_pic_CXX=
|
cannam@86
|
11296 ;;
|
cannam@86
|
11297 *)
|
cannam@86
|
11298 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
|
cannam@86
|
11299 ;;
|
cannam@86
|
11300 esac
|
cannam@86
|
11301
|
cannam@86
|
11302 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
|
cannam@86
|
11303 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
|
cannam@86
|
11304 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
|
cannam@86
|
11305 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
11306 else
|
cannam@86
|
11307 lt_cv_prog_compiler_c_o_CXX=no
|
cannam@86
|
11308 $rm -r conftest 2>/dev/null
|
cannam@86
|
11309 mkdir conftest
|
cannam@86
|
11310 cd conftest
|
cannam@86
|
11311 mkdir out
|
cannam@86
|
11312 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
cannam@86
|
11313
|
cannam@86
|
11314 lt_compiler_flag="-o out/conftest2.$ac_objext"
|
cannam@86
|
11315 # Insert the option either (1) after the last *FLAGS variable, or
|
cannam@86
|
11316 # (2) before a word containing "conftest.", or (3) at the end.
|
cannam@86
|
11317 # Note that $ac_compile itself does not contain backslashes and begins
|
cannam@86
|
11318 # with a dollar sign (not a hyphen), so the echo should work correctly.
|
cannam@86
|
11319 lt_compile=`echo "$ac_compile" | $SED \
|
cannam@86
|
11320 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
cannam@86
|
11321 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
cannam@86
|
11322 -e 's:$: $lt_compiler_flag:'`
|
cannam@86
|
11323 (eval echo "\"\$as_me:11323: $lt_compile\"" >&5)
|
cannam@86
|
11324 (eval "$lt_compile" 2>out/conftest.err)
|
cannam@86
|
11325 ac_status=$?
|
cannam@86
|
11326 cat out/conftest.err >&5
|
cannam@86
|
11327 echo "$as_me:11327: \$? = $ac_status" >&5
|
cannam@86
|
11328 if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
cannam@86
|
11329 then
|
cannam@86
|
11330 # The compiler can only warn and ignore the option if not recognized
|
cannam@86
|
11331 # So say no if there are warnings
|
cannam@86
|
11332 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
|
cannam@86
|
11333 $SED '/^$/d' out/conftest.err >out/conftest.er2
|
cannam@86
|
11334 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
cannam@86
|
11335 lt_cv_prog_compiler_c_o_CXX=yes
|
cannam@86
|
11336 fi
|
cannam@86
|
11337 fi
|
cannam@86
|
11338 chmod u+w .
|
cannam@86
|
11339 $rm conftest*
|
cannam@86
|
11340 # SGI C++ compiler will create directory out/ii_files/ for
|
cannam@86
|
11341 # template instantiation
|
cannam@86
|
11342 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
|
cannam@86
|
11343 $rm out/* && rmdir out
|
cannam@86
|
11344 cd ..
|
cannam@86
|
11345 rmdir conftest
|
cannam@86
|
11346 $rm conftest*
|
cannam@86
|
11347
|
cannam@86
|
11348 fi
|
cannam@86
|
11349 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
|
cannam@86
|
11350 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
|
cannam@86
|
11351
|
cannam@86
|
11352
|
cannam@86
|
11353 hard_links="nottested"
|
cannam@86
|
11354 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
|
cannam@86
|
11355 # do not overwrite the value of need_locks provided by the user
|
cannam@86
|
11356 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
|
cannam@86
|
11357 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
|
cannam@86
|
11358 hard_links=yes
|
cannam@86
|
11359 $rm conftest*
|
cannam@86
|
11360 ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
cannam@86
|
11361 touch conftest.a
|
cannam@86
|
11362 ln conftest.a conftest.b 2>&5 || hard_links=no
|
cannam@86
|
11363 ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
cannam@86
|
11364 echo "$as_me:$LINENO: result: $hard_links" >&5
|
cannam@86
|
11365 echo "${ECHO_T}$hard_links" >&6
|
cannam@86
|
11366 if test "$hard_links" = no; then
|
cannam@86
|
11367 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
|
cannam@86
|
11368 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
|
cannam@86
|
11369 need_locks=warn
|
cannam@86
|
11370 fi
|
cannam@86
|
11371 else
|
cannam@86
|
11372 need_locks=no
|
cannam@86
|
11373 fi
|
cannam@86
|
11374
|
cannam@86
|
11375 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
|
cannam@86
|
11376 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
|
cannam@86
|
11377
|
cannam@86
|
11378 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
cannam@86
|
11379 case $host_os in
|
cannam@86
|
11380 aix4* | aix5*)
|
cannam@86
|
11381 # If we're using GNU nm, then we don't want the "-C" option.
|
cannam@86
|
11382 # -C means demangle to AIX nm, but means don't demangle with GNU nm
|
cannam@86
|
11383 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
|
cannam@86
|
11384 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
|
cannam@86
|
11385 else
|
cannam@86
|
11386 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
|
cannam@86
|
11387 fi
|
cannam@86
|
11388 ;;
|
cannam@86
|
11389 pw32*)
|
cannam@86
|
11390 export_symbols_cmds_CXX="$ltdll_cmds"
|
cannam@86
|
11391 ;;
|
cannam@86
|
11392 cygwin* | mingw*)
|
cannam@86
|
11393 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
|
cannam@86
|
11394 ;;
|
cannam@86
|
11395 *)
|
cannam@86
|
11396 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
cannam@86
|
11397 ;;
|
cannam@86
|
11398 esac
|
cannam@86
|
11399
|
cannam@86
|
11400 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
|
cannam@86
|
11401 echo "${ECHO_T}$ld_shlibs_CXX" >&6
|
cannam@86
|
11402 test "$ld_shlibs_CXX" = no && can_build_shared=no
|
cannam@86
|
11403
|
cannam@86
|
11404 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
cannam@86
|
11405 if test "$GCC" = yes; then
|
cannam@86
|
11406 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
cannam@86
|
11407 fi
|
cannam@86
|
11408
|
cannam@86
|
11409 #
|
cannam@86
|
11410 # Do we need to explicitly link libc?
|
cannam@86
|
11411 #
|
cannam@86
|
11412 case "x$archive_cmds_need_lc_CXX" in
|
cannam@86
|
11413 x|xyes)
|
cannam@86
|
11414 # Assume -lc should be added
|
cannam@86
|
11415 archive_cmds_need_lc_CXX=yes
|
cannam@86
|
11416
|
cannam@86
|
11417 if test "$enable_shared" = yes && test "$GCC" = yes; then
|
cannam@86
|
11418 case $archive_cmds_CXX in
|
cannam@86
|
11419 *'~'*)
|
cannam@86
|
11420 # FIXME: we may have to deal with multi-command sequences.
|
cannam@86
|
11421 ;;
|
cannam@86
|
11422 '$CC '*)
|
cannam@86
|
11423 # Test whether the compiler implicitly links with -lc since on some
|
cannam@86
|
11424 # systems, -lgcc has to come before -lc. If gcc already passes -lc
|
cannam@86
|
11425 # to ld, don't add -lc before -lgcc.
|
cannam@86
|
11426 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
|
cannam@86
|
11427 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
|
cannam@86
|
11428 $rm conftest*
|
cannam@86
|
11429 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
cannam@86
|
11430
|
cannam@86
|
11431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
11432 (eval $ac_compile) 2>&5
|
cannam@86
|
11433 ac_status=$?
|
cannam@86
|
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
11435 (exit $ac_status); } 2>conftest.err; then
|
cannam@86
|
11436 soname=conftest
|
cannam@86
|
11437 lib=conftest
|
cannam@86
|
11438 libobjs=conftest.$ac_objext
|
cannam@86
|
11439 deplibs=
|
cannam@86
|
11440 wl=$lt_prog_compiler_wl_CXX
|
cannam@86
|
11441 compiler_flags=-v
|
cannam@86
|
11442 linker_flags=-v
|
cannam@86
|
11443 verstring=
|
cannam@86
|
11444 output_objdir=.
|
cannam@86
|
11445 libname=conftest
|
cannam@86
|
11446 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
|
cannam@86
|
11447 allow_undefined_flag_CXX=
|
cannam@86
|
11448 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
|
cannam@86
|
11449 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
|
cannam@86
|
11450 ac_status=$?
|
cannam@86
|
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
11452 (exit $ac_status); }
|
cannam@86
|
11453 then
|
cannam@86
|
11454 archive_cmds_need_lc_CXX=no
|
cannam@86
|
11455 else
|
cannam@86
|
11456 archive_cmds_need_lc_CXX=yes
|
cannam@86
|
11457 fi
|
cannam@86
|
11458 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
|
cannam@86
|
11459 else
|
cannam@86
|
11460 cat conftest.err 1>&5
|
cannam@86
|
11461 fi
|
cannam@86
|
11462 $rm conftest*
|
cannam@86
|
11463 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
|
cannam@86
|
11464 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
|
cannam@86
|
11465 ;;
|
cannam@86
|
11466 esac
|
cannam@86
|
11467 fi
|
cannam@86
|
11468 ;;
|
cannam@86
|
11469 esac
|
cannam@86
|
11470
|
cannam@86
|
11471 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
|
cannam@86
|
11472 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
|
cannam@86
|
11473 library_names_spec=
|
cannam@86
|
11474 libname_spec='lib$name'
|
cannam@86
|
11475 soname_spec=
|
cannam@86
|
11476 shrext_cmds=".so"
|
cannam@86
|
11477 postinstall_cmds=
|
cannam@86
|
11478 postuninstall_cmds=
|
cannam@86
|
11479 finish_cmds=
|
cannam@86
|
11480 finish_eval=
|
cannam@86
|
11481 shlibpath_var=
|
cannam@86
|
11482 shlibpath_overrides_runpath=unknown
|
cannam@86
|
11483 version_type=none
|
cannam@86
|
11484 dynamic_linker="$host_os ld.so"
|
cannam@86
|
11485 sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
cannam@86
|
11486 if test "$GCC" = yes; then
|
cannam@86
|
11487 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
cannam@86
|
11488 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
|
cannam@86
|
11489 # if the path contains ";" then we assume it to be the separator
|
cannam@86
|
11490 # otherwise default to the standard path separator (i.e. ":") - it is
|
cannam@86
|
11491 # assumed that no part of a normal pathname contains ";" but that should
|
cannam@86
|
11492 # okay in the real world where ";" in dirpaths is itself problematic.
|
cannam@86
|
11493 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
cannam@86
|
11494 else
|
cannam@86
|
11495 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
cannam@86
|
11496 fi
|
cannam@86
|
11497 else
|
cannam@86
|
11498 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
|
cannam@86
|
11499 fi
|
cannam@86
|
11500 need_lib_prefix=unknown
|
cannam@86
|
11501 hardcode_into_libs=no
|
cannam@86
|
11502
|
cannam@86
|
11503 # when you set need_version to no, make sure it does not cause -set_version
|
cannam@86
|
11504 # flags to be left without arguments
|
cannam@86
|
11505 need_version=unknown
|
cannam@86
|
11506
|
cannam@86
|
11507 case $host_os in
|
cannam@86
|
11508 aix3*)
|
cannam@86
|
11509 version_type=linux
|
cannam@86
|
11510 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
|
cannam@86
|
11511 shlibpath_var=LIBPATH
|
cannam@86
|
11512
|
cannam@86
|
11513 # AIX 3 has no versioning support, so we append a major version to the name.
|
cannam@86
|
11514 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
11515 ;;
|
cannam@86
|
11516
|
cannam@86
|
11517 aix4* | aix5*)
|
cannam@86
|
11518 version_type=linux
|
cannam@86
|
11519 need_lib_prefix=no
|
cannam@86
|
11520 need_version=no
|
cannam@86
|
11521 hardcode_into_libs=yes
|
cannam@86
|
11522 if test "$host_cpu" = ia64; then
|
cannam@86
|
11523 # AIX 5 supports IA64
|
cannam@86
|
11524 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
|
cannam@86
|
11525 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
11526 else
|
cannam@86
|
11527 # With GCC up to 2.95.x, collect2 would create an import file
|
cannam@86
|
11528 # for dependence libraries. The import file would start with
|
cannam@86
|
11529 # the line `#! .'. This would cause the generated library to
|
cannam@86
|
11530 # depend on `.', always an invalid library. This was fixed in
|
cannam@86
|
11531 # development snapshots of GCC prior to 3.0.
|
cannam@86
|
11532 case $host_os in
|
cannam@86
|
11533 aix4 | aix4.[01] | aix4.[01].*)
|
cannam@86
|
11534 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
|
cannam@86
|
11535 echo ' yes '
|
cannam@86
|
11536 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
|
cannam@86
|
11537 :
|
cannam@86
|
11538 else
|
cannam@86
|
11539 can_build_shared=no
|
cannam@86
|
11540 fi
|
cannam@86
|
11541 ;;
|
cannam@86
|
11542 esac
|
cannam@86
|
11543 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
|
cannam@86
|
11544 # soname into executable. Probably we can add versioning support to
|
cannam@86
|
11545 # collect2, so additional links can be useful in future.
|
cannam@86
|
11546 if test "$aix_use_runtimelinking" = yes; then
|
cannam@86
|
11547 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
|
cannam@86
|
11548 # instead of lib<name>.a to let people know that these are not
|
cannam@86
|
11549 # typical AIX shared libraries.
|
cannam@86
|
11550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
11551 else
|
cannam@86
|
11552 # We preserve .a as extension for shared libraries through AIX4.2
|
cannam@86
|
11553 # and later when we are not doing run time linking.
|
cannam@86
|
11554 library_names_spec='${libname}${release}.a $libname.a'
|
cannam@86
|
11555 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
11556 fi
|
cannam@86
|
11557 shlibpath_var=LIBPATH
|
cannam@86
|
11558 fi
|
cannam@86
|
11559 ;;
|
cannam@86
|
11560
|
cannam@86
|
11561 amigaos*)
|
cannam@86
|
11562 library_names_spec='$libname.ixlibrary $libname.a'
|
cannam@86
|
11563 # Create ${libname}_ixlibrary.a entries in /sys/libs.
|
cannam@86
|
11564 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@86
|
11565 ;;
|
cannam@86
|
11566
|
cannam@86
|
11567 beos*)
|
cannam@86
|
11568 library_names_spec='${libname}${shared_ext}'
|
cannam@86
|
11569 dynamic_linker="$host_os ld.so"
|
cannam@86
|
11570 shlibpath_var=LIBRARY_PATH
|
cannam@86
|
11571 ;;
|
cannam@86
|
11572
|
cannam@86
|
11573 bsdi[45]*)
|
cannam@86
|
11574 version_type=linux
|
cannam@86
|
11575 need_version=no
|
cannam@86
|
11576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
11577 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
11578 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
|
cannam@86
|
11579 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
11580 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
|
cannam@86
|
11581 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
|
cannam@86
|
11582 # the default ld.so.conf also contains /usr/contrib/lib and
|
cannam@86
|
11583 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
|
cannam@86
|
11584 # libtool to hard-code these into programs
|
cannam@86
|
11585 ;;
|
cannam@86
|
11586
|
cannam@86
|
11587 cygwin* | mingw* | pw32*)
|
cannam@86
|
11588 version_type=windows
|
cannam@86
|
11589 shrext_cmds=".dll"
|
cannam@86
|
11590 need_version=no
|
cannam@86
|
11591 need_lib_prefix=no
|
cannam@86
|
11592
|
cannam@86
|
11593 case $GCC,$host_os in
|
cannam@86
|
11594 yes,cygwin* | yes,mingw* | yes,pw32*)
|
cannam@86
|
11595 library_names_spec='$libname.dll.a'
|
cannam@86
|
11596 # DLL is installed to $(libdir)/../bin by postinstall_cmds
|
cannam@86
|
11597 postinstall_cmds='base_file=`basename \${file}`~
|
cannam@86
|
11598 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
|
cannam@86
|
11599 dldir=$destdir/`dirname \$dlpath`~
|
cannam@86
|
11600 test -d \$dldir || mkdir -p \$dldir~
|
cannam@86
|
11601 $install_prog $dir/$dlname \$dldir/$dlname'
|
cannam@86
|
11602 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
cannam@86
|
11603 dlpath=$dir/\$dldll~
|
cannam@86
|
11604 $rm \$dlpath'
|
cannam@86
|
11605 shlibpath_overrides_runpath=yes
|
cannam@86
|
11606
|
cannam@86
|
11607 case $host_os in
|
cannam@86
|
11608 cygwin*)
|
cannam@86
|
11609 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
|
cannam@86
|
11610 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
cannam@86
|
11611 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
|
cannam@86
|
11612 ;;
|
cannam@86
|
11613 mingw*)
|
cannam@86
|
11614 # MinGW DLLs use traditional 'lib' prefix
|
cannam@86
|
11615 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
cannam@86
|
11616 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
cannam@86
|
11617 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
|
cannam@86
|
11618 # It is most probably a Windows format PATH printed by
|
cannam@86
|
11619 # mingw gcc, but we are running on Cygwin. Gcc prints its search
|
cannam@86
|
11620 # path with ; separators, and with drive letters. We can handle the
|
cannam@86
|
11621 # drive letters (cygwin fileutils understands them), so leave them,
|
cannam@86
|
11622 # especially as we might pass files found there to a mingw objdump,
|
cannam@86
|
11623 # which wouldn't understand a cygwinified path. Ahh.
|
cannam@86
|
11624 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
cannam@86
|
11625 else
|
cannam@86
|
11626 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
cannam@86
|
11627 fi
|
cannam@86
|
11628 ;;
|
cannam@86
|
11629 pw32*)
|
cannam@86
|
11630 # pw32 DLLs use 'pw' prefix rather than 'lib'
|
cannam@86
|
11631 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
cannam@86
|
11632 ;;
|
cannam@86
|
11633 esac
|
cannam@86
|
11634 ;;
|
cannam@86
|
11635
|
cannam@86
|
11636 *)
|
cannam@86
|
11637 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
cannam@86
|
11638 ;;
|
cannam@86
|
11639 esac
|
cannam@86
|
11640 dynamic_linker='Win32 ld.exe'
|
cannam@86
|
11641 # FIXME: first we should search . and the directory the executable is in
|
cannam@86
|
11642 shlibpath_var=PATH
|
cannam@86
|
11643 ;;
|
cannam@86
|
11644
|
cannam@86
|
11645 darwin* | rhapsody*)
|
cannam@86
|
11646 dynamic_linker="$host_os dyld"
|
cannam@86
|
11647 version_type=darwin
|
cannam@86
|
11648 need_lib_prefix=no
|
cannam@86
|
11649 need_version=no
|
cannam@86
|
11650 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
|
cannam@86
|
11651 soname_spec='${libname}${release}${major}$shared_ext'
|
cannam@86
|
11652 shlibpath_overrides_runpath=yes
|
cannam@86
|
11653 shlibpath_var=DYLD_LIBRARY_PATH
|
cannam@86
|
11654 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
|
cannam@86
|
11655 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
|
cannam@86
|
11656 if test "$GCC" = yes; then
|
cannam@86
|
11657 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
|
cannam@86
|
11658 else
|
cannam@86
|
11659 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
|
cannam@86
|
11660 fi
|
cannam@86
|
11661 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
|
cannam@86
|
11662 ;;
|
cannam@86
|
11663
|
cannam@86
|
11664 dgux*)
|
cannam@86
|
11665 version_type=linux
|
cannam@86
|
11666 need_lib_prefix=no
|
cannam@86
|
11667 need_version=no
|
cannam@86
|
11668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
|
cannam@86
|
11669 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
11670 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
11671 ;;
|
cannam@86
|
11672
|
cannam@86
|
11673 freebsd1*)
|
cannam@86
|
11674 dynamic_linker=no
|
cannam@86
|
11675 ;;
|
cannam@86
|
11676
|
cannam@86
|
11677 kfreebsd*-gnu)
|
cannam@86
|
11678 version_type=linux
|
cannam@86
|
11679 need_lib_prefix=no
|
cannam@86
|
11680 need_version=no
|
cannam@86
|
11681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
cannam@86
|
11682 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
11683 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
11684 shlibpath_overrides_runpath=no
|
cannam@86
|
11685 hardcode_into_libs=yes
|
cannam@86
|
11686 dynamic_linker='GNU ld.so'
|
cannam@86
|
11687 ;;
|
cannam@86
|
11688
|
cannam@86
|
11689 freebsd* | dragonfly*)
|
cannam@86
|
11690 # DragonFly does not have aout. When/if they implement a new
|
cannam@86
|
11691 # versioning mechanism, adjust this.
|
cannam@86
|
11692 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
|
cannam@86
|
11693 version_type=freebsd-$objformat
|
cannam@86
|
11694 case $version_type in
|
cannam@86
|
11695 freebsd-elf*)
|
cannam@86
|
11696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
cannam@86
|
11697 need_version=no
|
cannam@86
|
11698 need_lib_prefix=no
|
cannam@86
|
11699 ;;
|
cannam@86
|
11700 freebsd-*)
|
cannam@86
|
11701 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
|
cannam@86
|
11702 need_version=yes
|
cannam@86
|
11703 ;;
|
cannam@86
|
11704 esac
|
cannam@86
|
11705 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
11706 case $host_os in
|
cannam@86
|
11707 freebsd2*)
|
cannam@86
|
11708 shlibpath_overrides_runpath=yes
|
cannam@86
|
11709 ;;
|
cannam@86
|
11710 freebsd3.[01]* | freebsdelf3.[01]*)
|
cannam@86
|
11711 shlibpath_overrides_runpath=yes
|
cannam@86
|
11712 hardcode_into_libs=yes
|
cannam@86
|
11713 ;;
|
cannam@86
|
11714 *) # from 3.2 on
|
cannam@86
|
11715 shlibpath_overrides_runpath=no
|
cannam@86
|
11716 hardcode_into_libs=yes
|
cannam@86
|
11717 ;;
|
cannam@86
|
11718 esac
|
cannam@86
|
11719 ;;
|
cannam@86
|
11720
|
cannam@86
|
11721 gnu*)
|
cannam@86
|
11722 version_type=linux
|
cannam@86
|
11723 need_lib_prefix=no
|
cannam@86
|
11724 need_version=no
|
cannam@86
|
11725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
|
cannam@86
|
11726 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
11727 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
11728 hardcode_into_libs=yes
|
cannam@86
|
11729 ;;
|
cannam@86
|
11730
|
cannam@86
|
11731 hpux9* | hpux10* | hpux11*)
|
cannam@86
|
11732 # Give a soname corresponding to the major version so that dld.sl refuses to
|
cannam@86
|
11733 # link against other versions.
|
cannam@86
|
11734 version_type=sunos
|
cannam@86
|
11735 need_lib_prefix=no
|
cannam@86
|
11736 need_version=no
|
cannam@86
|
11737 case "$host_cpu" in
|
cannam@86
|
11738 ia64*)
|
cannam@86
|
11739 shrext_cmds='.so'
|
cannam@86
|
11740 hardcode_into_libs=yes
|
cannam@86
|
11741 dynamic_linker="$host_os dld.so"
|
cannam@86
|
11742 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
11743 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
cannam@86
|
11744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
11745 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
11746 if test "X$HPUX_IA64_MODE" = X32; then
|
cannam@86
|
11747 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
|
cannam@86
|
11748 else
|
cannam@86
|
11749 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
|
cannam@86
|
11750 fi
|
cannam@86
|
11751 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
cannam@86
|
11752 ;;
|
cannam@86
|
11753 hppa*64*)
|
cannam@86
|
11754 shrext_cmds='.sl'
|
cannam@86
|
11755 hardcode_into_libs=yes
|
cannam@86
|
11756 dynamic_linker="$host_os dld.sl"
|
cannam@86
|
11757 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
|
cannam@86
|
11758 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
cannam@86
|
11759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
11760 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
11761 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
|
cannam@86
|
11762 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
cannam@86
|
11763 ;;
|
cannam@86
|
11764 *)
|
cannam@86
|
11765 shrext_cmds='.sl'
|
cannam@86
|
11766 dynamic_linker="$host_os dld.sl"
|
cannam@86
|
11767 shlibpath_var=SHLIB_PATH
|
cannam@86
|
11768 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
|
cannam@86
|
11769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
11770 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
11771 ;;
|
cannam@86
|
11772 esac
|
cannam@86
|
11773 # HP-UX runs *really* slowly unless shared libraries are mode 555.
|
cannam@86
|
11774 postinstall_cmds='chmod 555 $lib'
|
cannam@86
|
11775 ;;
|
cannam@86
|
11776
|
cannam@86
|
11777 irix5* | irix6* | nonstopux*)
|
cannam@86
|
11778 case $host_os in
|
cannam@86
|
11779 nonstopux*) version_type=nonstopux ;;
|
cannam@86
|
11780 *)
|
cannam@86
|
11781 if test "$lt_cv_prog_gnu_ld" = yes; then
|
cannam@86
|
11782 version_type=linux
|
cannam@86
|
11783 else
|
cannam@86
|
11784 version_type=irix
|
cannam@86
|
11785 fi ;;
|
cannam@86
|
11786 esac
|
cannam@86
|
11787 need_lib_prefix=no
|
cannam@86
|
11788 need_version=no
|
cannam@86
|
11789 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
11790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
|
cannam@86
|
11791 case $host_os in
|
cannam@86
|
11792 irix5* | nonstopux*)
|
cannam@86
|
11793 libsuff= shlibsuff=
|
cannam@86
|
11794 ;;
|
cannam@86
|
11795 *)
|
cannam@86
|
11796 case $LD in # libtool.m4 will add one of these switches to LD
|
cannam@86
|
11797 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
|
cannam@86
|
11798 libsuff= shlibsuff= libmagic=32-bit;;
|
cannam@86
|
11799 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
|
cannam@86
|
11800 libsuff=32 shlibsuff=N32 libmagic=N32;;
|
cannam@86
|
11801 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
|
cannam@86
|
11802 libsuff=64 shlibsuff=64 libmagic=64-bit;;
|
cannam@86
|
11803 *) libsuff= shlibsuff= libmagic=never-match;;
|
cannam@86
|
11804 esac
|
cannam@86
|
11805 ;;
|
cannam@86
|
11806 esac
|
cannam@86
|
11807 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
|
cannam@86
|
11808 shlibpath_overrides_runpath=no
|
cannam@86
|
11809 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
|
cannam@86
|
11810 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
|
cannam@86
|
11811 hardcode_into_libs=yes
|
cannam@86
|
11812 ;;
|
cannam@86
|
11813
|
cannam@86
|
11814 # No shared lib support for Linux oldld, aout, or coff.
|
cannam@86
|
11815 linux*oldld* | linux*aout* | linux*coff*)
|
cannam@86
|
11816 dynamic_linker=no
|
cannam@86
|
11817 ;;
|
cannam@86
|
11818
|
cannam@86
|
11819 # This must be Linux ELF.
|
cannam@86
|
11820 linux*)
|
cannam@86
|
11821 version_type=linux
|
cannam@86
|
11822 need_lib_prefix=no
|
cannam@86
|
11823 need_version=no
|
cannam@86
|
11824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
11825 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
11826 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
cannam@86
|
11827 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
11828 shlibpath_overrides_runpath=no
|
cannam@86
|
11829 # This implies no fast_install, which is unacceptable.
|
cannam@86
|
11830 # Some rework will be needed to allow for fast_install
|
cannam@86
|
11831 # before this can be enabled.
|
cannam@86
|
11832 hardcode_into_libs=yes
|
cannam@86
|
11833
|
cannam@86
|
11834 # find out which ABI we are using
|
cannam@86
|
11835 libsuff=
|
cannam@86
|
11836 case "$host_cpu" in
|
cannam@86
|
11837 x86_64*|s390x*|powerpc64*)
|
cannam@86
|
11838 echo '#line 11838 "configure"' > conftest.$ac_ext
|
cannam@86
|
11839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
11840 (eval $ac_compile) 2>&5
|
cannam@86
|
11841 ac_status=$?
|
cannam@86
|
11842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
11843 (exit $ac_status); }; then
|
cannam@86
|
11844 case `/usr/bin/file conftest.$ac_objext` in
|
cannam@86
|
11845 *64-bit*)
|
cannam@86
|
11846 libsuff=64
|
cannam@86
|
11847 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
|
cannam@86
|
11848 ;;
|
cannam@86
|
11849 esac
|
cannam@86
|
11850 fi
|
cannam@86
|
11851 rm -rf conftest*
|
cannam@86
|
11852 ;;
|
cannam@86
|
11853 esac
|
cannam@86
|
11854
|
cannam@86
|
11855 # Append ld.so.conf contents to the search path
|
cannam@86
|
11856 if test -f /etc/ld.so.conf; then
|
cannam@86
|
11857 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
|
cannam@86
|
11858 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
|
cannam@86
|
11859 fi
|
cannam@86
|
11860
|
cannam@86
|
11861 # We used to test for /lib/ld.so.1 and disable shared libraries on
|
cannam@86
|
11862 # powerpc, because MkLinux only supported shared libraries with the
|
cannam@86
|
11863 # GNU dynamic linker. Since this was broken with cross compilers,
|
cannam@86
|
11864 # most powerpc-linux boxes support dynamic linking these days and
|
cannam@86
|
11865 # people can always --disable-shared, the test was removed, and we
|
cannam@86
|
11866 # assume the GNU/Linux dynamic linker is in use.
|
cannam@86
|
11867 dynamic_linker='GNU/Linux ld.so'
|
cannam@86
|
11868 ;;
|
cannam@86
|
11869
|
cannam@86
|
11870 knetbsd*-gnu)
|
cannam@86
|
11871 version_type=linux
|
cannam@86
|
11872 need_lib_prefix=no
|
cannam@86
|
11873 need_version=no
|
cannam@86
|
11874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
cannam@86
|
11875 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
11876 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
11877 shlibpath_overrides_runpath=no
|
cannam@86
|
11878 hardcode_into_libs=yes
|
cannam@86
|
11879 dynamic_linker='GNU ld.so'
|
cannam@86
|
11880 ;;
|
cannam@86
|
11881
|
cannam@86
|
11882 netbsd*)
|
cannam@86
|
11883 version_type=sunos
|
cannam@86
|
11884 need_lib_prefix=no
|
cannam@86
|
11885 need_version=no
|
cannam@86
|
11886 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
cannam@86
|
11887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
cannam@86
|
11888 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
cannam@86
|
11889 dynamic_linker='NetBSD (a.out) ld.so'
|
cannam@86
|
11890 else
|
cannam@86
|
11891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
cannam@86
|
11892 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
11893 dynamic_linker='NetBSD ld.elf_so'
|
cannam@86
|
11894 fi
|
cannam@86
|
11895 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
11896 shlibpath_overrides_runpath=yes
|
cannam@86
|
11897 hardcode_into_libs=yes
|
cannam@86
|
11898 ;;
|
cannam@86
|
11899
|
cannam@86
|
11900 newsos6)
|
cannam@86
|
11901 version_type=linux
|
cannam@86
|
11902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
11903 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
11904 shlibpath_overrides_runpath=yes
|
cannam@86
|
11905 ;;
|
cannam@86
|
11906
|
cannam@86
|
11907 nto-qnx*)
|
cannam@86
|
11908 version_type=linux
|
cannam@86
|
11909 need_lib_prefix=no
|
cannam@86
|
11910 need_version=no
|
cannam@86
|
11911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
11912 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
11913 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
11914 shlibpath_overrides_runpath=yes
|
cannam@86
|
11915 ;;
|
cannam@86
|
11916
|
cannam@86
|
11917 openbsd*)
|
cannam@86
|
11918 version_type=sunos
|
cannam@86
|
11919 need_lib_prefix=no
|
cannam@86
|
11920 need_version=no
|
cannam@86
|
11921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
cannam@86
|
11922 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
cannam@86
|
11923 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
11924 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
cannam@86
|
11925 case $host_os in
|
cannam@86
|
11926 openbsd2.[89] | openbsd2.[89].*)
|
cannam@86
|
11927 shlibpath_overrides_runpath=no
|
cannam@86
|
11928 ;;
|
cannam@86
|
11929 *)
|
cannam@86
|
11930 shlibpath_overrides_runpath=yes
|
cannam@86
|
11931 ;;
|
cannam@86
|
11932 esac
|
cannam@86
|
11933 else
|
cannam@86
|
11934 shlibpath_overrides_runpath=yes
|
cannam@86
|
11935 fi
|
cannam@86
|
11936 ;;
|
cannam@86
|
11937
|
cannam@86
|
11938 os2*)
|
cannam@86
|
11939 libname_spec='$name'
|
cannam@86
|
11940 shrext_cmds=".dll"
|
cannam@86
|
11941 need_lib_prefix=no
|
cannam@86
|
11942 library_names_spec='$libname${shared_ext} $libname.a'
|
cannam@86
|
11943 dynamic_linker='OS/2 ld.exe'
|
cannam@86
|
11944 shlibpath_var=LIBPATH
|
cannam@86
|
11945 ;;
|
cannam@86
|
11946
|
cannam@86
|
11947 osf3* | osf4* | osf5*)
|
cannam@86
|
11948 version_type=osf
|
cannam@86
|
11949 need_lib_prefix=no
|
cannam@86
|
11950 need_version=no
|
cannam@86
|
11951 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
11952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
11953 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
11954 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
|
cannam@86
|
11955 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
|
cannam@86
|
11956 ;;
|
cannam@86
|
11957
|
cannam@86
|
11958 sco3.2v5*)
|
cannam@86
|
11959 version_type=osf
|
cannam@86
|
11960 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
11961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
11962 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
11963 ;;
|
cannam@86
|
11964
|
cannam@86
|
11965 solaris*)
|
cannam@86
|
11966 version_type=linux
|
cannam@86
|
11967 need_lib_prefix=no
|
cannam@86
|
11968 need_version=no
|
cannam@86
|
11969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
11970 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
11971 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
11972 shlibpath_overrides_runpath=yes
|
cannam@86
|
11973 hardcode_into_libs=yes
|
cannam@86
|
11974 # ldd complains unless libraries are executable
|
cannam@86
|
11975 postinstall_cmds='chmod +x $lib'
|
cannam@86
|
11976 ;;
|
cannam@86
|
11977
|
cannam@86
|
11978 sunos4*)
|
cannam@86
|
11979 version_type=sunos
|
cannam@86
|
11980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
cannam@86
|
11981 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
|
cannam@86
|
11982 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
11983 shlibpath_overrides_runpath=yes
|
cannam@86
|
11984 if test "$with_gnu_ld" = yes; then
|
cannam@86
|
11985 need_lib_prefix=no
|
cannam@86
|
11986 fi
|
cannam@86
|
11987 need_version=yes
|
cannam@86
|
11988 ;;
|
cannam@86
|
11989
|
cannam@86
|
11990 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
cannam@86
|
11991 version_type=linux
|
cannam@86
|
11992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
11993 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
11994 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
11995 case $host_vendor in
|
cannam@86
|
11996 sni)
|
cannam@86
|
11997 shlibpath_overrides_runpath=no
|
cannam@86
|
11998 need_lib_prefix=no
|
cannam@86
|
11999 export_dynamic_flag_spec='${wl}-Blargedynsym'
|
cannam@86
|
12000 runpath_var=LD_RUN_PATH
|
cannam@86
|
12001 ;;
|
cannam@86
|
12002 siemens)
|
cannam@86
|
12003 need_lib_prefix=no
|
cannam@86
|
12004 ;;
|
cannam@86
|
12005 motorola)
|
cannam@86
|
12006 need_lib_prefix=no
|
cannam@86
|
12007 need_version=no
|
cannam@86
|
12008 shlibpath_overrides_runpath=no
|
cannam@86
|
12009 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
|
cannam@86
|
12010 ;;
|
cannam@86
|
12011 esac
|
cannam@86
|
12012 ;;
|
cannam@86
|
12013
|
cannam@86
|
12014 sysv4*MP*)
|
cannam@86
|
12015 if test -d /usr/nec ;then
|
cannam@86
|
12016 version_type=linux
|
cannam@86
|
12017 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
|
cannam@86
|
12018 soname_spec='$libname${shared_ext}.$major'
|
cannam@86
|
12019 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
12020 fi
|
cannam@86
|
12021 ;;
|
cannam@86
|
12022
|
cannam@86
|
12023 uts4*)
|
cannam@86
|
12024 version_type=linux
|
cannam@86
|
12025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
12026 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
12027 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
12028 ;;
|
cannam@86
|
12029
|
cannam@86
|
12030 *)
|
cannam@86
|
12031 dynamic_linker=no
|
cannam@86
|
12032 ;;
|
cannam@86
|
12033 esac
|
cannam@86
|
12034 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
|
cannam@86
|
12035 echo "${ECHO_T}$dynamic_linker" >&6
|
cannam@86
|
12036 test "$dynamic_linker" = no && can_build_shared=no
|
cannam@86
|
12037
|
cannam@86
|
12038 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
|
cannam@86
|
12039 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
|
cannam@86
|
12040 hardcode_action_CXX=
|
cannam@86
|
12041 if test -n "$hardcode_libdir_flag_spec_CXX" || \
|
cannam@86
|
12042 test -n "$runpath_var_CXX" || \
|
cannam@86
|
12043 test "X$hardcode_automatic_CXX" = "Xyes" ; then
|
cannam@86
|
12044
|
cannam@86
|
12045 # We can hardcode non-existant directories.
|
cannam@86
|
12046 if test "$hardcode_direct_CXX" != no &&
|
cannam@86
|
12047 # If the only mechanism to avoid hardcoding is shlibpath_var, we
|
cannam@86
|
12048 # have to relink, otherwise we might link with an installed library
|
cannam@86
|
12049 # when we should be linking with a yet-to-be-installed one
|
cannam@86
|
12050 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
|
cannam@86
|
12051 test "$hardcode_minus_L_CXX" != no; then
|
cannam@86
|
12052 # Linking always hardcodes the temporary library directory.
|
cannam@86
|
12053 hardcode_action_CXX=relink
|
cannam@86
|
12054 else
|
cannam@86
|
12055 # We can link without hardcoding, and we can hardcode nonexisting dirs.
|
cannam@86
|
12056 hardcode_action_CXX=immediate
|
cannam@86
|
12057 fi
|
cannam@86
|
12058 else
|
cannam@86
|
12059 # We cannot hardcode anything, or else we can only hardcode existing
|
cannam@86
|
12060 # directories.
|
cannam@86
|
12061 hardcode_action_CXX=unsupported
|
cannam@86
|
12062 fi
|
cannam@86
|
12063 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
|
cannam@86
|
12064 echo "${ECHO_T}$hardcode_action_CXX" >&6
|
cannam@86
|
12065
|
cannam@86
|
12066 if test "$hardcode_action_CXX" = relink; then
|
cannam@86
|
12067 # Fast installation is not supported
|
cannam@86
|
12068 enable_fast_install=no
|
cannam@86
|
12069 elif test "$shlibpath_overrides_runpath" = yes ||
|
cannam@86
|
12070 test "$enable_shared" = no; then
|
cannam@86
|
12071 # Fast installation is not necessary
|
cannam@86
|
12072 enable_fast_install=needless
|
cannam@86
|
12073 fi
|
cannam@86
|
12074
|
cannam@86
|
12075 striplib=
|
cannam@86
|
12076 old_striplib=
|
cannam@86
|
12077 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
|
cannam@86
|
12078 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
|
cannam@86
|
12079 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
|
cannam@86
|
12080 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
|
cannam@86
|
12081 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
|
cannam@86
|
12082 echo "$as_me:$LINENO: result: yes" >&5
|
cannam@86
|
12083 echo "${ECHO_T}yes" >&6
|
cannam@86
|
12084 else
|
cannam@86
|
12085 # FIXME - insert some real tests, host_os isn't really good enough
|
cannam@86
|
12086 case $host_os in
|
cannam@86
|
12087 darwin*)
|
cannam@86
|
12088 if test -n "$STRIP" ; then
|
cannam@86
|
12089 striplib="$STRIP -x"
|
cannam@86
|
12090 echo "$as_me:$LINENO: result: yes" >&5
|
cannam@86
|
12091 echo "${ECHO_T}yes" >&6
|
cannam@86
|
12092 else
|
cannam@86
|
12093 echo "$as_me:$LINENO: result: no" >&5
|
cannam@86
|
12094 echo "${ECHO_T}no" >&6
|
cannam@86
|
12095 fi
|
cannam@86
|
12096 ;;
|
cannam@86
|
12097 *)
|
cannam@86
|
12098 echo "$as_me:$LINENO: result: no" >&5
|
cannam@86
|
12099 echo "${ECHO_T}no" >&6
|
cannam@86
|
12100 ;;
|
cannam@86
|
12101 esac
|
cannam@86
|
12102 fi
|
cannam@86
|
12103
|
cannam@86
|
12104 if test "x$enable_dlopen" != xyes; then
|
cannam@86
|
12105 enable_dlopen=unknown
|
cannam@86
|
12106 enable_dlopen_self=unknown
|
cannam@86
|
12107 enable_dlopen_self_static=unknown
|
cannam@86
|
12108 else
|
cannam@86
|
12109 lt_cv_dlopen=no
|
cannam@86
|
12110 lt_cv_dlopen_libs=
|
cannam@86
|
12111
|
cannam@86
|
12112 case $host_os in
|
cannam@86
|
12113 beos*)
|
cannam@86
|
12114 lt_cv_dlopen="load_add_on"
|
cannam@86
|
12115 lt_cv_dlopen_libs=
|
cannam@86
|
12116 lt_cv_dlopen_self=yes
|
cannam@86
|
12117 ;;
|
cannam@86
|
12118
|
cannam@86
|
12119 mingw* | pw32*)
|
cannam@86
|
12120 lt_cv_dlopen="LoadLibrary"
|
cannam@86
|
12121 lt_cv_dlopen_libs=
|
cannam@86
|
12122 ;;
|
cannam@86
|
12123
|
cannam@86
|
12124 cygwin*)
|
cannam@86
|
12125 lt_cv_dlopen="dlopen"
|
cannam@86
|
12126 lt_cv_dlopen_libs=
|
cannam@86
|
12127 ;;
|
cannam@86
|
12128
|
cannam@86
|
12129 darwin*)
|
cannam@86
|
12130 # if libdl is installed we need to link against it
|
cannam@86
|
12131 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
|
cannam@86
|
12132 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
|
cannam@86
|
12133 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
|
cannam@86
|
12134 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
12135 else
|
cannam@86
|
12136 ac_check_lib_save_LIBS=$LIBS
|
cannam@86
|
12137 LIBS="-ldl $LIBS"
|
cannam@86
|
12138 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
12139 /* confdefs.h. */
|
cannam@86
|
12140 _ACEOF
|
cannam@86
|
12141 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
12142 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
12143 /* end confdefs.h. */
|
cannam@86
|
12144
|
cannam@86
|
12145 /* Override any gcc2 internal prototype to avoid an error. */
|
cannam@86
|
12146 #ifdef __cplusplus
|
cannam@86
|
12147 extern "C"
|
cannam@86
|
12148 #endif
|
cannam@86
|
12149 /* We use char because int might match the return type of a gcc2
|
cannam@86
|
12150 builtin and then its argument prototype would still apply. */
|
cannam@86
|
12151 char dlopen ();
|
cannam@86
|
12152 int
|
cannam@86
|
12153 main ()
|
cannam@86
|
12154 {
|
cannam@86
|
12155 dlopen ();
|
cannam@86
|
12156 ;
|
cannam@86
|
12157 return 0;
|
cannam@86
|
12158 }
|
cannam@86
|
12159 _ACEOF
|
cannam@86
|
12160 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@86
|
12161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@86
|
12162 (eval $ac_link) 2>conftest.er1
|
cannam@86
|
12163 ac_status=$?
|
cannam@86
|
12164 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
12165 rm -f conftest.er1
|
cannam@86
|
12166 cat conftest.err >&5
|
cannam@86
|
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
12168 (exit $ac_status); } &&
|
cannam@86
|
12169 { ac_try='test -z "$ac_cxx_werror_flag"
|
cannam@86
|
12170 || test ! -s conftest.err'
|
cannam@86
|
12171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
12172 (eval $ac_try) 2>&5
|
cannam@86
|
12173 ac_status=$?
|
cannam@86
|
12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
12175 (exit $ac_status); }; } &&
|
cannam@86
|
12176 { ac_try='test -s conftest$ac_exeext'
|
cannam@86
|
12177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
12178 (eval $ac_try) 2>&5
|
cannam@86
|
12179 ac_status=$?
|
cannam@86
|
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
12181 (exit $ac_status); }; }; then
|
cannam@86
|
12182 ac_cv_lib_dl_dlopen=yes
|
cannam@86
|
12183 else
|
cannam@86
|
12184 echo "$as_me: failed program was:" >&5
|
cannam@86
|
12185 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
12186
|
cannam@86
|
12187 ac_cv_lib_dl_dlopen=no
|
cannam@86
|
12188 fi
|
cannam@86
|
12189 rm -f conftest.err conftest.$ac_objext \
|
cannam@86
|
12190 conftest$ac_exeext conftest.$ac_ext
|
cannam@86
|
12191 LIBS=$ac_check_lib_save_LIBS
|
cannam@86
|
12192 fi
|
cannam@86
|
12193 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
|
cannam@86
|
12194 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
|
cannam@86
|
12195 if test $ac_cv_lib_dl_dlopen = yes; then
|
cannam@86
|
12196 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
|
cannam@86
|
12197 else
|
cannam@86
|
12198
|
cannam@86
|
12199 lt_cv_dlopen="dyld"
|
cannam@86
|
12200 lt_cv_dlopen_libs=
|
cannam@86
|
12201 lt_cv_dlopen_self=yes
|
cannam@86
|
12202
|
cannam@86
|
12203 fi
|
cannam@86
|
12204
|
cannam@86
|
12205 ;;
|
cannam@86
|
12206
|
cannam@86
|
12207 *)
|
cannam@86
|
12208 echo "$as_me:$LINENO: checking for shl_load" >&5
|
cannam@86
|
12209 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
|
cannam@86
|
12210 if test "${ac_cv_func_shl_load+set}" = set; then
|
cannam@86
|
12211 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
12212 else
|
cannam@86
|
12213 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
12214 /* confdefs.h. */
|
cannam@86
|
12215 _ACEOF
|
cannam@86
|
12216 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
12217 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
12218 /* end confdefs.h. */
|
cannam@86
|
12219 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
|
cannam@86
|
12220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
cannam@86
|
12221 #define shl_load innocuous_shl_load
|
cannam@86
|
12222
|
cannam@86
|
12223 /* System header to define __stub macros and hopefully few prototypes,
|
cannam@86
|
12224 which can conflict with char shl_load (); below.
|
cannam@86
|
12225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
cannam@86
|
12226 <limits.h> exists even on freestanding compilers. */
|
cannam@86
|
12227
|
cannam@86
|
12228 #ifdef __STDC__
|
cannam@86
|
12229 # include <limits.h>
|
cannam@86
|
12230 #else
|
cannam@86
|
12231 # include <assert.h>
|
cannam@86
|
12232 #endif
|
cannam@86
|
12233
|
cannam@86
|
12234 #undef shl_load
|
cannam@86
|
12235
|
cannam@86
|
12236 /* Override any gcc2 internal prototype to avoid an error. */
|
cannam@86
|
12237 #ifdef __cplusplus
|
cannam@86
|
12238 extern "C"
|
cannam@86
|
12239 {
|
cannam@86
|
12240 #endif
|
cannam@86
|
12241 /* We use char because int might match the return type of a gcc2
|
cannam@86
|
12242 builtin and then its argument prototype would still apply. */
|
cannam@86
|
12243 char shl_load ();
|
cannam@86
|
12244 /* The GNU C library defines this for functions which it implements
|
cannam@86
|
12245 to always fail with ENOSYS. Some functions are actually named
|
cannam@86
|
12246 something starting with __ and the normal name is an alias. */
|
cannam@86
|
12247 #if defined (__stub_shl_load) || defined (__stub___shl_load)
|
cannam@86
|
12248 choke me
|
cannam@86
|
12249 #else
|
cannam@86
|
12250 char (*f) () = shl_load;
|
cannam@86
|
12251 #endif
|
cannam@86
|
12252 #ifdef __cplusplus
|
cannam@86
|
12253 }
|
cannam@86
|
12254 #endif
|
cannam@86
|
12255
|
cannam@86
|
12256 int
|
cannam@86
|
12257 main ()
|
cannam@86
|
12258 {
|
cannam@86
|
12259 return f != shl_load;
|
cannam@86
|
12260 ;
|
cannam@86
|
12261 return 0;
|
cannam@86
|
12262 }
|
cannam@86
|
12263 _ACEOF
|
cannam@86
|
12264 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@86
|
12265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@86
|
12266 (eval $ac_link) 2>conftest.er1
|
cannam@86
|
12267 ac_status=$?
|
cannam@86
|
12268 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
12269 rm -f conftest.er1
|
cannam@86
|
12270 cat conftest.err >&5
|
cannam@86
|
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
12272 (exit $ac_status); } &&
|
cannam@86
|
12273 { ac_try='test -z "$ac_cxx_werror_flag"
|
cannam@86
|
12274 || test ! -s conftest.err'
|
cannam@86
|
12275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
12276 (eval $ac_try) 2>&5
|
cannam@86
|
12277 ac_status=$?
|
cannam@86
|
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
12279 (exit $ac_status); }; } &&
|
cannam@86
|
12280 { ac_try='test -s conftest$ac_exeext'
|
cannam@86
|
12281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
12282 (eval $ac_try) 2>&5
|
cannam@86
|
12283 ac_status=$?
|
cannam@86
|
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
12285 (exit $ac_status); }; }; then
|
cannam@86
|
12286 ac_cv_func_shl_load=yes
|
cannam@86
|
12287 else
|
cannam@86
|
12288 echo "$as_me: failed program was:" >&5
|
cannam@86
|
12289 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
12290
|
cannam@86
|
12291 ac_cv_func_shl_load=no
|
cannam@86
|
12292 fi
|
cannam@86
|
12293 rm -f conftest.err conftest.$ac_objext \
|
cannam@86
|
12294 conftest$ac_exeext conftest.$ac_ext
|
cannam@86
|
12295 fi
|
cannam@86
|
12296 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
|
cannam@86
|
12297 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
|
cannam@86
|
12298 if test $ac_cv_func_shl_load = yes; then
|
cannam@86
|
12299 lt_cv_dlopen="shl_load"
|
cannam@86
|
12300 else
|
cannam@86
|
12301 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
|
cannam@86
|
12302 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
|
cannam@86
|
12303 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
|
cannam@86
|
12304 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
12305 else
|
cannam@86
|
12306 ac_check_lib_save_LIBS=$LIBS
|
cannam@86
|
12307 LIBS="-ldld $LIBS"
|
cannam@86
|
12308 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
12309 /* confdefs.h. */
|
cannam@86
|
12310 _ACEOF
|
cannam@86
|
12311 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
12312 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
12313 /* end confdefs.h. */
|
cannam@86
|
12314
|
cannam@86
|
12315 /* Override any gcc2 internal prototype to avoid an error. */
|
cannam@86
|
12316 #ifdef __cplusplus
|
cannam@86
|
12317 extern "C"
|
cannam@86
|
12318 #endif
|
cannam@86
|
12319 /* We use char because int might match the return type of a gcc2
|
cannam@86
|
12320 builtin and then its argument prototype would still apply. */
|
cannam@86
|
12321 char shl_load ();
|
cannam@86
|
12322 int
|
cannam@86
|
12323 main ()
|
cannam@86
|
12324 {
|
cannam@86
|
12325 shl_load ();
|
cannam@86
|
12326 ;
|
cannam@86
|
12327 return 0;
|
cannam@86
|
12328 }
|
cannam@86
|
12329 _ACEOF
|
cannam@86
|
12330 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@86
|
12331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@86
|
12332 (eval $ac_link) 2>conftest.er1
|
cannam@86
|
12333 ac_status=$?
|
cannam@86
|
12334 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
12335 rm -f conftest.er1
|
cannam@86
|
12336 cat conftest.err >&5
|
cannam@86
|
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
12338 (exit $ac_status); } &&
|
cannam@86
|
12339 { ac_try='test -z "$ac_cxx_werror_flag"
|
cannam@86
|
12340 || test ! -s conftest.err'
|
cannam@86
|
12341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
12342 (eval $ac_try) 2>&5
|
cannam@86
|
12343 ac_status=$?
|
cannam@86
|
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
12345 (exit $ac_status); }; } &&
|
cannam@86
|
12346 { ac_try='test -s conftest$ac_exeext'
|
cannam@86
|
12347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
12348 (eval $ac_try) 2>&5
|
cannam@86
|
12349 ac_status=$?
|
cannam@86
|
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
12351 (exit $ac_status); }; }; then
|
cannam@86
|
12352 ac_cv_lib_dld_shl_load=yes
|
cannam@86
|
12353 else
|
cannam@86
|
12354 echo "$as_me: failed program was:" >&5
|
cannam@86
|
12355 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
12356
|
cannam@86
|
12357 ac_cv_lib_dld_shl_load=no
|
cannam@86
|
12358 fi
|
cannam@86
|
12359 rm -f conftest.err conftest.$ac_objext \
|
cannam@86
|
12360 conftest$ac_exeext conftest.$ac_ext
|
cannam@86
|
12361 LIBS=$ac_check_lib_save_LIBS
|
cannam@86
|
12362 fi
|
cannam@86
|
12363 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
|
cannam@86
|
12364 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
|
cannam@86
|
12365 if test $ac_cv_lib_dld_shl_load = yes; then
|
cannam@86
|
12366 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
|
cannam@86
|
12367 else
|
cannam@86
|
12368 echo "$as_me:$LINENO: checking for dlopen" >&5
|
cannam@86
|
12369 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
|
cannam@86
|
12370 if test "${ac_cv_func_dlopen+set}" = set; then
|
cannam@86
|
12371 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
12372 else
|
cannam@86
|
12373 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
12374 /* confdefs.h. */
|
cannam@86
|
12375 _ACEOF
|
cannam@86
|
12376 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
12377 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
12378 /* end confdefs.h. */
|
cannam@86
|
12379 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
|
cannam@86
|
12380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
cannam@86
|
12381 #define dlopen innocuous_dlopen
|
cannam@86
|
12382
|
cannam@86
|
12383 /* System header to define __stub macros and hopefully few prototypes,
|
cannam@86
|
12384 which can conflict with char dlopen (); below.
|
cannam@86
|
12385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
cannam@86
|
12386 <limits.h> exists even on freestanding compilers. */
|
cannam@86
|
12387
|
cannam@86
|
12388 #ifdef __STDC__
|
cannam@86
|
12389 # include <limits.h>
|
cannam@86
|
12390 #else
|
cannam@86
|
12391 # include <assert.h>
|
cannam@86
|
12392 #endif
|
cannam@86
|
12393
|
cannam@86
|
12394 #undef dlopen
|
cannam@86
|
12395
|
cannam@86
|
12396 /* Override any gcc2 internal prototype to avoid an error. */
|
cannam@86
|
12397 #ifdef __cplusplus
|
cannam@86
|
12398 extern "C"
|
cannam@86
|
12399 {
|
cannam@86
|
12400 #endif
|
cannam@86
|
12401 /* We use char because int might match the return type of a gcc2
|
cannam@86
|
12402 builtin and then its argument prototype would still apply. */
|
cannam@86
|
12403 char dlopen ();
|
cannam@86
|
12404 /* The GNU C library defines this for functions which it implements
|
cannam@86
|
12405 to always fail with ENOSYS. Some functions are actually named
|
cannam@86
|
12406 something starting with __ and the normal name is an alias. */
|
cannam@86
|
12407 #if defined (__stub_dlopen) || defined (__stub___dlopen)
|
cannam@86
|
12408 choke me
|
cannam@86
|
12409 #else
|
cannam@86
|
12410 char (*f) () = dlopen;
|
cannam@86
|
12411 #endif
|
cannam@86
|
12412 #ifdef __cplusplus
|
cannam@86
|
12413 }
|
cannam@86
|
12414 #endif
|
cannam@86
|
12415
|
cannam@86
|
12416 int
|
cannam@86
|
12417 main ()
|
cannam@86
|
12418 {
|
cannam@86
|
12419 return f != dlopen;
|
cannam@86
|
12420 ;
|
cannam@86
|
12421 return 0;
|
cannam@86
|
12422 }
|
cannam@86
|
12423 _ACEOF
|
cannam@86
|
12424 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@86
|
12425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@86
|
12426 (eval $ac_link) 2>conftest.er1
|
cannam@86
|
12427 ac_status=$?
|
cannam@86
|
12428 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
12429 rm -f conftest.er1
|
cannam@86
|
12430 cat conftest.err >&5
|
cannam@86
|
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
12432 (exit $ac_status); } &&
|
cannam@86
|
12433 { ac_try='test -z "$ac_cxx_werror_flag"
|
cannam@86
|
12434 || test ! -s conftest.err'
|
cannam@86
|
12435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
12436 (eval $ac_try) 2>&5
|
cannam@86
|
12437 ac_status=$?
|
cannam@86
|
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
12439 (exit $ac_status); }; } &&
|
cannam@86
|
12440 { ac_try='test -s conftest$ac_exeext'
|
cannam@86
|
12441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
12442 (eval $ac_try) 2>&5
|
cannam@86
|
12443 ac_status=$?
|
cannam@86
|
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
12445 (exit $ac_status); }; }; then
|
cannam@86
|
12446 ac_cv_func_dlopen=yes
|
cannam@86
|
12447 else
|
cannam@86
|
12448 echo "$as_me: failed program was:" >&5
|
cannam@86
|
12449 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
12450
|
cannam@86
|
12451 ac_cv_func_dlopen=no
|
cannam@86
|
12452 fi
|
cannam@86
|
12453 rm -f conftest.err conftest.$ac_objext \
|
cannam@86
|
12454 conftest$ac_exeext conftest.$ac_ext
|
cannam@86
|
12455 fi
|
cannam@86
|
12456 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
|
cannam@86
|
12457 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
|
cannam@86
|
12458 if test $ac_cv_func_dlopen = yes; then
|
cannam@86
|
12459 lt_cv_dlopen="dlopen"
|
cannam@86
|
12460 else
|
cannam@86
|
12461 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
|
cannam@86
|
12462 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
|
cannam@86
|
12463 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
|
cannam@86
|
12464 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
12465 else
|
cannam@86
|
12466 ac_check_lib_save_LIBS=$LIBS
|
cannam@86
|
12467 LIBS="-ldl $LIBS"
|
cannam@86
|
12468 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
12469 /* confdefs.h. */
|
cannam@86
|
12470 _ACEOF
|
cannam@86
|
12471 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
12472 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
12473 /* end confdefs.h. */
|
cannam@86
|
12474
|
cannam@86
|
12475 /* Override any gcc2 internal prototype to avoid an error. */
|
cannam@86
|
12476 #ifdef __cplusplus
|
cannam@86
|
12477 extern "C"
|
cannam@86
|
12478 #endif
|
cannam@86
|
12479 /* We use char because int might match the return type of a gcc2
|
cannam@86
|
12480 builtin and then its argument prototype would still apply. */
|
cannam@86
|
12481 char dlopen ();
|
cannam@86
|
12482 int
|
cannam@86
|
12483 main ()
|
cannam@86
|
12484 {
|
cannam@86
|
12485 dlopen ();
|
cannam@86
|
12486 ;
|
cannam@86
|
12487 return 0;
|
cannam@86
|
12488 }
|
cannam@86
|
12489 _ACEOF
|
cannam@86
|
12490 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@86
|
12491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@86
|
12492 (eval $ac_link) 2>conftest.er1
|
cannam@86
|
12493 ac_status=$?
|
cannam@86
|
12494 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
12495 rm -f conftest.er1
|
cannam@86
|
12496 cat conftest.err >&5
|
cannam@86
|
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
12498 (exit $ac_status); } &&
|
cannam@86
|
12499 { ac_try='test -z "$ac_cxx_werror_flag"
|
cannam@86
|
12500 || test ! -s conftest.err'
|
cannam@86
|
12501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
12502 (eval $ac_try) 2>&5
|
cannam@86
|
12503 ac_status=$?
|
cannam@86
|
12504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
12505 (exit $ac_status); }; } &&
|
cannam@86
|
12506 { ac_try='test -s conftest$ac_exeext'
|
cannam@86
|
12507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
12508 (eval $ac_try) 2>&5
|
cannam@86
|
12509 ac_status=$?
|
cannam@86
|
12510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
12511 (exit $ac_status); }; }; then
|
cannam@86
|
12512 ac_cv_lib_dl_dlopen=yes
|
cannam@86
|
12513 else
|
cannam@86
|
12514 echo "$as_me: failed program was:" >&5
|
cannam@86
|
12515 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
12516
|
cannam@86
|
12517 ac_cv_lib_dl_dlopen=no
|
cannam@86
|
12518 fi
|
cannam@86
|
12519 rm -f conftest.err conftest.$ac_objext \
|
cannam@86
|
12520 conftest$ac_exeext conftest.$ac_ext
|
cannam@86
|
12521 LIBS=$ac_check_lib_save_LIBS
|
cannam@86
|
12522 fi
|
cannam@86
|
12523 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
|
cannam@86
|
12524 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
|
cannam@86
|
12525 if test $ac_cv_lib_dl_dlopen = yes; then
|
cannam@86
|
12526 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
|
cannam@86
|
12527 else
|
cannam@86
|
12528 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
|
cannam@86
|
12529 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
|
cannam@86
|
12530 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
|
cannam@86
|
12531 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
12532 else
|
cannam@86
|
12533 ac_check_lib_save_LIBS=$LIBS
|
cannam@86
|
12534 LIBS="-lsvld $LIBS"
|
cannam@86
|
12535 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
12536 /* confdefs.h. */
|
cannam@86
|
12537 _ACEOF
|
cannam@86
|
12538 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
12539 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
12540 /* end confdefs.h. */
|
cannam@86
|
12541
|
cannam@86
|
12542 /* Override any gcc2 internal prototype to avoid an error. */
|
cannam@86
|
12543 #ifdef __cplusplus
|
cannam@86
|
12544 extern "C"
|
cannam@86
|
12545 #endif
|
cannam@86
|
12546 /* We use char because int might match the return type of a gcc2
|
cannam@86
|
12547 builtin and then its argument prototype would still apply. */
|
cannam@86
|
12548 char dlopen ();
|
cannam@86
|
12549 int
|
cannam@86
|
12550 main ()
|
cannam@86
|
12551 {
|
cannam@86
|
12552 dlopen ();
|
cannam@86
|
12553 ;
|
cannam@86
|
12554 return 0;
|
cannam@86
|
12555 }
|
cannam@86
|
12556 _ACEOF
|
cannam@86
|
12557 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@86
|
12558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@86
|
12559 (eval $ac_link) 2>conftest.er1
|
cannam@86
|
12560 ac_status=$?
|
cannam@86
|
12561 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
12562 rm -f conftest.er1
|
cannam@86
|
12563 cat conftest.err >&5
|
cannam@86
|
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
12565 (exit $ac_status); } &&
|
cannam@86
|
12566 { ac_try='test -z "$ac_cxx_werror_flag"
|
cannam@86
|
12567 || test ! -s conftest.err'
|
cannam@86
|
12568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
12569 (eval $ac_try) 2>&5
|
cannam@86
|
12570 ac_status=$?
|
cannam@86
|
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
12572 (exit $ac_status); }; } &&
|
cannam@86
|
12573 { ac_try='test -s conftest$ac_exeext'
|
cannam@86
|
12574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
12575 (eval $ac_try) 2>&5
|
cannam@86
|
12576 ac_status=$?
|
cannam@86
|
12577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
12578 (exit $ac_status); }; }; then
|
cannam@86
|
12579 ac_cv_lib_svld_dlopen=yes
|
cannam@86
|
12580 else
|
cannam@86
|
12581 echo "$as_me: failed program was:" >&5
|
cannam@86
|
12582 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
12583
|
cannam@86
|
12584 ac_cv_lib_svld_dlopen=no
|
cannam@86
|
12585 fi
|
cannam@86
|
12586 rm -f conftest.err conftest.$ac_objext \
|
cannam@86
|
12587 conftest$ac_exeext conftest.$ac_ext
|
cannam@86
|
12588 LIBS=$ac_check_lib_save_LIBS
|
cannam@86
|
12589 fi
|
cannam@86
|
12590 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
|
cannam@86
|
12591 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
|
cannam@86
|
12592 if test $ac_cv_lib_svld_dlopen = yes; then
|
cannam@86
|
12593 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
|
cannam@86
|
12594 else
|
cannam@86
|
12595 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
|
cannam@86
|
12596 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
|
cannam@86
|
12597 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
|
cannam@86
|
12598 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
12599 else
|
cannam@86
|
12600 ac_check_lib_save_LIBS=$LIBS
|
cannam@86
|
12601 LIBS="-ldld $LIBS"
|
cannam@86
|
12602 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
12603 /* confdefs.h. */
|
cannam@86
|
12604 _ACEOF
|
cannam@86
|
12605 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
12606 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
12607 /* end confdefs.h. */
|
cannam@86
|
12608
|
cannam@86
|
12609 /* Override any gcc2 internal prototype to avoid an error. */
|
cannam@86
|
12610 #ifdef __cplusplus
|
cannam@86
|
12611 extern "C"
|
cannam@86
|
12612 #endif
|
cannam@86
|
12613 /* We use char because int might match the return type of a gcc2
|
cannam@86
|
12614 builtin and then its argument prototype would still apply. */
|
cannam@86
|
12615 char dld_link ();
|
cannam@86
|
12616 int
|
cannam@86
|
12617 main ()
|
cannam@86
|
12618 {
|
cannam@86
|
12619 dld_link ();
|
cannam@86
|
12620 ;
|
cannam@86
|
12621 return 0;
|
cannam@86
|
12622 }
|
cannam@86
|
12623 _ACEOF
|
cannam@86
|
12624 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@86
|
12625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@86
|
12626 (eval $ac_link) 2>conftest.er1
|
cannam@86
|
12627 ac_status=$?
|
cannam@86
|
12628 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
12629 rm -f conftest.er1
|
cannam@86
|
12630 cat conftest.err >&5
|
cannam@86
|
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
12632 (exit $ac_status); } &&
|
cannam@86
|
12633 { ac_try='test -z "$ac_cxx_werror_flag"
|
cannam@86
|
12634 || test ! -s conftest.err'
|
cannam@86
|
12635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
12636 (eval $ac_try) 2>&5
|
cannam@86
|
12637 ac_status=$?
|
cannam@86
|
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
12639 (exit $ac_status); }; } &&
|
cannam@86
|
12640 { ac_try='test -s conftest$ac_exeext'
|
cannam@86
|
12641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
12642 (eval $ac_try) 2>&5
|
cannam@86
|
12643 ac_status=$?
|
cannam@86
|
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
12645 (exit $ac_status); }; }; then
|
cannam@86
|
12646 ac_cv_lib_dld_dld_link=yes
|
cannam@86
|
12647 else
|
cannam@86
|
12648 echo "$as_me: failed program was:" >&5
|
cannam@86
|
12649 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
12650
|
cannam@86
|
12651 ac_cv_lib_dld_dld_link=no
|
cannam@86
|
12652 fi
|
cannam@86
|
12653 rm -f conftest.err conftest.$ac_objext \
|
cannam@86
|
12654 conftest$ac_exeext conftest.$ac_ext
|
cannam@86
|
12655 LIBS=$ac_check_lib_save_LIBS
|
cannam@86
|
12656 fi
|
cannam@86
|
12657 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
|
cannam@86
|
12658 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
|
cannam@86
|
12659 if test $ac_cv_lib_dld_dld_link = yes; then
|
cannam@86
|
12660 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
|
cannam@86
|
12661 fi
|
cannam@86
|
12662
|
cannam@86
|
12663
|
cannam@86
|
12664 fi
|
cannam@86
|
12665
|
cannam@86
|
12666
|
cannam@86
|
12667 fi
|
cannam@86
|
12668
|
cannam@86
|
12669
|
cannam@86
|
12670 fi
|
cannam@86
|
12671
|
cannam@86
|
12672
|
cannam@86
|
12673 fi
|
cannam@86
|
12674
|
cannam@86
|
12675
|
cannam@86
|
12676 fi
|
cannam@86
|
12677
|
cannam@86
|
12678 ;;
|
cannam@86
|
12679 esac
|
cannam@86
|
12680
|
cannam@86
|
12681 if test "x$lt_cv_dlopen" != xno; then
|
cannam@86
|
12682 enable_dlopen=yes
|
cannam@86
|
12683 else
|
cannam@86
|
12684 enable_dlopen=no
|
cannam@86
|
12685 fi
|
cannam@86
|
12686
|
cannam@86
|
12687 case $lt_cv_dlopen in
|
cannam@86
|
12688 dlopen)
|
cannam@86
|
12689 save_CPPFLAGS="$CPPFLAGS"
|
cannam@86
|
12690 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
|
cannam@86
|
12691
|
cannam@86
|
12692 save_LDFLAGS="$LDFLAGS"
|
cannam@86
|
12693 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
|
cannam@86
|
12694
|
cannam@86
|
12695 save_LIBS="$LIBS"
|
cannam@86
|
12696 LIBS="$lt_cv_dlopen_libs $LIBS"
|
cannam@86
|
12697
|
cannam@86
|
12698 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
|
cannam@86
|
12699 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
|
cannam@86
|
12700 if test "${lt_cv_dlopen_self+set}" = set; then
|
cannam@86
|
12701 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
12702 else
|
cannam@86
|
12703 if test "$cross_compiling" = yes; then :
|
cannam@86
|
12704 lt_cv_dlopen_self=cross
|
cannam@86
|
12705 else
|
cannam@86
|
12706 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
cannam@86
|
12707 lt_status=$lt_dlunknown
|
cannam@86
|
12708 cat > conftest.$ac_ext <<EOF
|
cannam@86
|
12709 #line 12709 "configure"
|
cannam@86
|
12710 #include "confdefs.h"
|
cannam@86
|
12711
|
cannam@86
|
12712 #if HAVE_DLFCN_H
|
cannam@86
|
12713 #include <dlfcn.h>
|
cannam@86
|
12714 #endif
|
cannam@86
|
12715
|
cannam@86
|
12716 #include <stdio.h>
|
cannam@86
|
12717
|
cannam@86
|
12718 #ifdef RTLD_GLOBAL
|
cannam@86
|
12719 # define LT_DLGLOBAL RTLD_GLOBAL
|
cannam@86
|
12720 #else
|
cannam@86
|
12721 # ifdef DL_GLOBAL
|
cannam@86
|
12722 # define LT_DLGLOBAL DL_GLOBAL
|
cannam@86
|
12723 # else
|
cannam@86
|
12724 # define LT_DLGLOBAL 0
|
cannam@86
|
12725 # endif
|
cannam@86
|
12726 #endif
|
cannam@86
|
12727
|
cannam@86
|
12728 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
|
cannam@86
|
12729 find out it does not work in some platform. */
|
cannam@86
|
12730 #ifndef LT_DLLAZY_OR_NOW
|
cannam@86
|
12731 # ifdef RTLD_LAZY
|
cannam@86
|
12732 # define LT_DLLAZY_OR_NOW RTLD_LAZY
|
cannam@86
|
12733 # else
|
cannam@86
|
12734 # ifdef DL_LAZY
|
cannam@86
|
12735 # define LT_DLLAZY_OR_NOW DL_LAZY
|
cannam@86
|
12736 # else
|
cannam@86
|
12737 # ifdef RTLD_NOW
|
cannam@86
|
12738 # define LT_DLLAZY_OR_NOW RTLD_NOW
|
cannam@86
|
12739 # else
|
cannam@86
|
12740 # ifdef DL_NOW
|
cannam@86
|
12741 # define LT_DLLAZY_OR_NOW DL_NOW
|
cannam@86
|
12742 # else
|
cannam@86
|
12743 # define LT_DLLAZY_OR_NOW 0
|
cannam@86
|
12744 # endif
|
cannam@86
|
12745 # endif
|
cannam@86
|
12746 # endif
|
cannam@86
|
12747 # endif
|
cannam@86
|
12748 #endif
|
cannam@86
|
12749
|
cannam@86
|
12750 #ifdef __cplusplus
|
cannam@86
|
12751 extern "C" void exit (int);
|
cannam@86
|
12752 #endif
|
cannam@86
|
12753
|
cannam@86
|
12754 void fnord() { int i=42;}
|
cannam@86
|
12755 int main ()
|
cannam@86
|
12756 {
|
cannam@86
|
12757 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
cannam@86
|
12758 int status = $lt_dlunknown;
|
cannam@86
|
12759
|
cannam@86
|
12760 if (self)
|
cannam@86
|
12761 {
|
cannam@86
|
12762 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
cannam@86
|
12763 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
cannam@86
|
12764 /* dlclose (self); */
|
cannam@86
|
12765 }
|
cannam@86
|
12766
|
cannam@86
|
12767 exit (status);
|
cannam@86
|
12768 }
|
cannam@86
|
12769 EOF
|
cannam@86
|
12770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@86
|
12771 (eval $ac_link) 2>&5
|
cannam@86
|
12772 ac_status=$?
|
cannam@86
|
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
12774 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
|
cannam@86
|
12775 (./conftest; exit; ) 2>/dev/null
|
cannam@86
|
12776 lt_status=$?
|
cannam@86
|
12777 case x$lt_status in
|
cannam@86
|
12778 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
|
cannam@86
|
12779 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
|
cannam@86
|
12780 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
|
cannam@86
|
12781 esac
|
cannam@86
|
12782 else :
|
cannam@86
|
12783 # compilation failed
|
cannam@86
|
12784 lt_cv_dlopen_self=no
|
cannam@86
|
12785 fi
|
cannam@86
|
12786 fi
|
cannam@86
|
12787 rm -fr conftest*
|
cannam@86
|
12788
|
cannam@86
|
12789
|
cannam@86
|
12790 fi
|
cannam@86
|
12791 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
|
cannam@86
|
12792 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
|
cannam@86
|
12793
|
cannam@86
|
12794 if test "x$lt_cv_dlopen_self" = xyes; then
|
cannam@86
|
12795 LDFLAGS="$LDFLAGS $link_static_flag"
|
cannam@86
|
12796 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
|
cannam@86
|
12797 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
|
cannam@86
|
12798 if test "${lt_cv_dlopen_self_static+set}" = set; then
|
cannam@86
|
12799 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
12800 else
|
cannam@86
|
12801 if test "$cross_compiling" = yes; then :
|
cannam@86
|
12802 lt_cv_dlopen_self_static=cross
|
cannam@86
|
12803 else
|
cannam@86
|
12804 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
cannam@86
|
12805 lt_status=$lt_dlunknown
|
cannam@86
|
12806 cat > conftest.$ac_ext <<EOF
|
cannam@86
|
12807 #line 12807 "configure"
|
cannam@86
|
12808 #include "confdefs.h"
|
cannam@86
|
12809
|
cannam@86
|
12810 #if HAVE_DLFCN_H
|
cannam@86
|
12811 #include <dlfcn.h>
|
cannam@86
|
12812 #endif
|
cannam@86
|
12813
|
cannam@86
|
12814 #include <stdio.h>
|
cannam@86
|
12815
|
cannam@86
|
12816 #ifdef RTLD_GLOBAL
|
cannam@86
|
12817 # define LT_DLGLOBAL RTLD_GLOBAL
|
cannam@86
|
12818 #else
|
cannam@86
|
12819 # ifdef DL_GLOBAL
|
cannam@86
|
12820 # define LT_DLGLOBAL DL_GLOBAL
|
cannam@86
|
12821 # else
|
cannam@86
|
12822 # define LT_DLGLOBAL 0
|
cannam@86
|
12823 # endif
|
cannam@86
|
12824 #endif
|
cannam@86
|
12825
|
cannam@86
|
12826 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
|
cannam@86
|
12827 find out it does not work in some platform. */
|
cannam@86
|
12828 #ifndef LT_DLLAZY_OR_NOW
|
cannam@86
|
12829 # ifdef RTLD_LAZY
|
cannam@86
|
12830 # define LT_DLLAZY_OR_NOW RTLD_LAZY
|
cannam@86
|
12831 # else
|
cannam@86
|
12832 # ifdef DL_LAZY
|
cannam@86
|
12833 # define LT_DLLAZY_OR_NOW DL_LAZY
|
cannam@86
|
12834 # else
|
cannam@86
|
12835 # ifdef RTLD_NOW
|
cannam@86
|
12836 # define LT_DLLAZY_OR_NOW RTLD_NOW
|
cannam@86
|
12837 # else
|
cannam@86
|
12838 # ifdef DL_NOW
|
cannam@86
|
12839 # define LT_DLLAZY_OR_NOW DL_NOW
|
cannam@86
|
12840 # else
|
cannam@86
|
12841 # define LT_DLLAZY_OR_NOW 0
|
cannam@86
|
12842 # endif
|
cannam@86
|
12843 # endif
|
cannam@86
|
12844 # endif
|
cannam@86
|
12845 # endif
|
cannam@86
|
12846 #endif
|
cannam@86
|
12847
|
cannam@86
|
12848 #ifdef __cplusplus
|
cannam@86
|
12849 extern "C" void exit (int);
|
cannam@86
|
12850 #endif
|
cannam@86
|
12851
|
cannam@86
|
12852 void fnord() { int i=42;}
|
cannam@86
|
12853 int main ()
|
cannam@86
|
12854 {
|
cannam@86
|
12855 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
cannam@86
|
12856 int status = $lt_dlunknown;
|
cannam@86
|
12857
|
cannam@86
|
12858 if (self)
|
cannam@86
|
12859 {
|
cannam@86
|
12860 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
cannam@86
|
12861 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
cannam@86
|
12862 /* dlclose (self); */
|
cannam@86
|
12863 }
|
cannam@86
|
12864
|
cannam@86
|
12865 exit (status);
|
cannam@86
|
12866 }
|
cannam@86
|
12867 EOF
|
cannam@86
|
12868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@86
|
12869 (eval $ac_link) 2>&5
|
cannam@86
|
12870 ac_status=$?
|
cannam@86
|
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
12872 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
|
cannam@86
|
12873 (./conftest; exit; ) 2>/dev/null
|
cannam@86
|
12874 lt_status=$?
|
cannam@86
|
12875 case x$lt_status in
|
cannam@86
|
12876 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
|
cannam@86
|
12877 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
|
cannam@86
|
12878 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
|
cannam@86
|
12879 esac
|
cannam@86
|
12880 else :
|
cannam@86
|
12881 # compilation failed
|
cannam@86
|
12882 lt_cv_dlopen_self_static=no
|
cannam@86
|
12883 fi
|
cannam@86
|
12884 fi
|
cannam@86
|
12885 rm -fr conftest*
|
cannam@86
|
12886
|
cannam@86
|
12887
|
cannam@86
|
12888 fi
|
cannam@86
|
12889 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
|
cannam@86
|
12890 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
|
cannam@86
|
12891 fi
|
cannam@86
|
12892
|
cannam@86
|
12893 CPPFLAGS="$save_CPPFLAGS"
|
cannam@86
|
12894 LDFLAGS="$save_LDFLAGS"
|
cannam@86
|
12895 LIBS="$save_LIBS"
|
cannam@86
|
12896 ;;
|
cannam@86
|
12897 esac
|
cannam@86
|
12898
|
cannam@86
|
12899 case $lt_cv_dlopen_self in
|
cannam@86
|
12900 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
|
cannam@86
|
12901 *) enable_dlopen_self=unknown ;;
|
cannam@86
|
12902 esac
|
cannam@86
|
12903
|
cannam@86
|
12904 case $lt_cv_dlopen_self_static in
|
cannam@86
|
12905 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
|
cannam@86
|
12906 *) enable_dlopen_self_static=unknown ;;
|
cannam@86
|
12907 esac
|
cannam@86
|
12908 fi
|
cannam@86
|
12909
|
cannam@86
|
12910
|
cannam@86
|
12911 # The else clause should only fire when bootstrapping the
|
cannam@86
|
12912 # libtool distribution, otherwise you forgot to ship ltmain.sh
|
cannam@86
|
12913 # with your package, and you will get complaints that there are
|
cannam@86
|
12914 # no rules to generate ltmain.sh.
|
cannam@86
|
12915 if test -f "$ltmain"; then
|
cannam@86
|
12916 # See if we are running on zsh, and set the options which allow our commands through
|
cannam@86
|
12917 # without removal of \ escapes.
|
cannam@86
|
12918 if test -n "${ZSH_VERSION+set}" ; then
|
cannam@86
|
12919 setopt NO_GLOB_SUBST
|
cannam@86
|
12920 fi
|
cannam@86
|
12921 # Now quote all the things that may contain metacharacters while being
|
cannam@86
|
12922 # careful not to overquote the AC_SUBSTed values. We take copies of the
|
cannam@86
|
12923 # variables and quote the copies for generation of the libtool script.
|
cannam@86
|
12924 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
|
cannam@86
|
12925 SED SHELL STRIP \
|
cannam@86
|
12926 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
|
cannam@86
|
12927 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
|
cannam@86
|
12928 deplibs_check_method reload_flag reload_cmds need_locks \
|
cannam@86
|
12929 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
|
cannam@86
|
12930 lt_cv_sys_global_symbol_to_c_name_address \
|
cannam@86
|
12931 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
|
cannam@86
|
12932 old_postinstall_cmds old_postuninstall_cmds \
|
cannam@86
|
12933 compiler_CXX \
|
cannam@86
|
12934 CC_CXX \
|
cannam@86
|
12935 LD_CXX \
|
cannam@86
|
12936 lt_prog_compiler_wl_CXX \
|
cannam@86
|
12937 lt_prog_compiler_pic_CXX \
|
cannam@86
|
12938 lt_prog_compiler_static_CXX \
|
cannam@86
|
12939 lt_prog_compiler_no_builtin_flag_CXX \
|
cannam@86
|
12940 export_dynamic_flag_spec_CXX \
|
cannam@86
|
12941 thread_safe_flag_spec_CXX \
|
cannam@86
|
12942 whole_archive_flag_spec_CXX \
|
cannam@86
|
12943 enable_shared_with_static_runtimes_CXX \
|
cannam@86
|
12944 old_archive_cmds_CXX \
|
cannam@86
|
12945 old_archive_from_new_cmds_CXX \
|
cannam@86
|
12946 predep_objects_CXX \
|
cannam@86
|
12947 postdep_objects_CXX \
|
cannam@86
|
12948 predeps_CXX \
|
cannam@86
|
12949 postdeps_CXX \
|
cannam@86
|
12950 compiler_lib_search_path_CXX \
|
cannam@86
|
12951 archive_cmds_CXX \
|
cannam@86
|
12952 archive_expsym_cmds_CXX \
|
cannam@86
|
12953 postinstall_cmds_CXX \
|
cannam@86
|
12954 postuninstall_cmds_CXX \
|
cannam@86
|
12955 old_archive_from_expsyms_cmds_CXX \
|
cannam@86
|
12956 allow_undefined_flag_CXX \
|
cannam@86
|
12957 no_undefined_flag_CXX \
|
cannam@86
|
12958 export_symbols_cmds_CXX \
|
cannam@86
|
12959 hardcode_libdir_flag_spec_CXX \
|
cannam@86
|
12960 hardcode_libdir_flag_spec_ld_CXX \
|
cannam@86
|
12961 hardcode_libdir_separator_CXX \
|
cannam@86
|
12962 hardcode_automatic_CXX \
|
cannam@86
|
12963 module_cmds_CXX \
|
cannam@86
|
12964 module_expsym_cmds_CXX \
|
cannam@86
|
12965 lt_cv_prog_compiler_c_o_CXX \
|
cannam@86
|
12966 exclude_expsyms_CXX \
|
cannam@86
|
12967 include_expsyms_CXX; do
|
cannam@86
|
12968
|
cannam@86
|
12969 case $var in
|
cannam@86
|
12970 old_archive_cmds_CXX | \
|
cannam@86
|
12971 old_archive_from_new_cmds_CXX | \
|
cannam@86
|
12972 archive_cmds_CXX | \
|
cannam@86
|
12973 archive_expsym_cmds_CXX | \
|
cannam@86
|
12974 module_cmds_CXX | \
|
cannam@86
|
12975 module_expsym_cmds_CXX | \
|
cannam@86
|
12976 old_archive_from_expsyms_cmds_CXX | \
|
cannam@86
|
12977 export_symbols_cmds_CXX | \
|
cannam@86
|
12978 extract_expsyms_cmds | reload_cmds | finish_cmds | \
|
cannam@86
|
12979 postinstall_cmds | postuninstall_cmds | \
|
cannam@86
|
12980 old_postinstall_cmds | old_postuninstall_cmds | \
|
cannam@86
|
12981 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
|
cannam@86
|
12982 # Double-quote double-evaled strings.
|
cannam@86
|
12983 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
|
cannam@86
|
12984 ;;
|
cannam@86
|
12985 *)
|
cannam@86
|
12986 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
|
cannam@86
|
12987 ;;
|
cannam@86
|
12988 esac
|
cannam@86
|
12989 done
|
cannam@86
|
12990
|
cannam@86
|
12991 case $lt_echo in
|
cannam@86
|
12992 *'\$0 --fallback-echo"')
|
cannam@86
|
12993 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
|
cannam@86
|
12994 ;;
|
cannam@86
|
12995 esac
|
cannam@86
|
12996
|
cannam@86
|
12997 cfgfile="$ofile"
|
cannam@86
|
12998
|
cannam@86
|
12999 cat <<__EOF__ >> "$cfgfile"
|
cannam@86
|
13000 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
|
cannam@86
|
13001
|
cannam@86
|
13002 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
cannam@86
|
13003
|
cannam@86
|
13004 # Shell to use when invoking shell scripts.
|
cannam@86
|
13005 SHELL=$lt_SHELL
|
cannam@86
|
13006
|
cannam@86
|
13007 # Whether or not to build shared libraries.
|
cannam@86
|
13008 build_libtool_libs=$enable_shared
|
cannam@86
|
13009
|
cannam@86
|
13010 # Whether or not to build static libraries.
|
cannam@86
|
13011 build_old_libs=$enable_static
|
cannam@86
|
13012
|
cannam@86
|
13013 # Whether or not to add -lc for building shared libraries.
|
cannam@86
|
13014 build_libtool_need_lc=$archive_cmds_need_lc_CXX
|
cannam@86
|
13015
|
cannam@86
|
13016 # Whether or not to disallow shared libs when runtime libs are static
|
cannam@86
|
13017 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
|
cannam@86
|
13018
|
cannam@86
|
13019 # Whether or not to optimize for fast installation.
|
cannam@86
|
13020 fast_install=$enable_fast_install
|
cannam@86
|
13021
|
cannam@86
|
13022 # The host system.
|
cannam@86
|
13023 host_alias=$host_alias
|
cannam@86
|
13024 host=$host
|
cannam@86
|
13025 host_os=$host_os
|
cannam@86
|
13026
|
cannam@86
|
13027 # The build system.
|
cannam@86
|
13028 build_alias=$build_alias
|
cannam@86
|
13029 build=$build
|
cannam@86
|
13030 build_os=$build_os
|
cannam@86
|
13031
|
cannam@86
|
13032 # An echo program that does not interpret backslashes.
|
cannam@86
|
13033 echo=$lt_echo
|
cannam@86
|
13034
|
cannam@86
|
13035 # The archiver.
|
cannam@86
|
13036 AR=$lt_AR
|
cannam@86
|
13037 AR_FLAGS=$lt_AR_FLAGS
|
cannam@86
|
13038
|
cannam@86
|
13039 # A C compiler.
|
cannam@86
|
13040 LTCC=$lt_LTCC
|
cannam@86
|
13041
|
cannam@86
|
13042 # A language-specific compiler.
|
cannam@86
|
13043 CC=$lt_compiler_CXX
|
cannam@86
|
13044
|
cannam@86
|
13045 # Is the compiler the GNU C compiler?
|
cannam@86
|
13046 with_gcc=$GCC_CXX
|
cannam@86
|
13047
|
cannam@86
|
13048 # An ERE matcher.
|
cannam@86
|
13049 EGREP=$lt_EGREP
|
cannam@86
|
13050
|
cannam@86
|
13051 # The linker used to build libraries.
|
cannam@86
|
13052 LD=$lt_LD_CXX
|
cannam@86
|
13053
|
cannam@86
|
13054 # Whether we need hard or soft links.
|
cannam@86
|
13055 LN_S=$lt_LN_S
|
cannam@86
|
13056
|
cannam@86
|
13057 # A BSD-compatible nm program.
|
cannam@86
|
13058 NM=$lt_NM
|
cannam@86
|
13059
|
cannam@86
|
13060 # A symbol stripping program
|
cannam@86
|
13061 STRIP=$lt_STRIP
|
cannam@86
|
13062
|
cannam@86
|
13063 # Used to examine libraries when file_magic_cmd begins "file"
|
cannam@86
|
13064 MAGIC_CMD=$MAGIC_CMD
|
cannam@86
|
13065
|
cannam@86
|
13066 # Used on cygwin: DLL creation program.
|
cannam@86
|
13067 DLLTOOL="$DLLTOOL"
|
cannam@86
|
13068
|
cannam@86
|
13069 # Used on cygwin: object dumper.
|
cannam@86
|
13070 OBJDUMP="$OBJDUMP"
|
cannam@86
|
13071
|
cannam@86
|
13072 # Used on cygwin: assembler.
|
cannam@86
|
13073 AS="$AS"
|
cannam@86
|
13074
|
cannam@86
|
13075 # The name of the directory that contains temporary libtool files.
|
cannam@86
|
13076 objdir=$objdir
|
cannam@86
|
13077
|
cannam@86
|
13078 # How to create reloadable object files.
|
cannam@86
|
13079 reload_flag=$lt_reload_flag
|
cannam@86
|
13080 reload_cmds=$lt_reload_cmds
|
cannam@86
|
13081
|
cannam@86
|
13082 # How to pass a linker flag through the compiler.
|
cannam@86
|
13083 wl=$lt_lt_prog_compiler_wl_CXX
|
cannam@86
|
13084
|
cannam@86
|
13085 # Object file suffix (normally "o").
|
cannam@86
|
13086 objext="$ac_objext"
|
cannam@86
|
13087
|
cannam@86
|
13088 # Old archive suffix (normally "a").
|
cannam@86
|
13089 libext="$libext"
|
cannam@86
|
13090
|
cannam@86
|
13091 # Shared library suffix (normally ".so").
|
cannam@86
|
13092 shrext_cmds='$shrext_cmds'
|
cannam@86
|
13093
|
cannam@86
|
13094 # Executable file suffix (normally "").
|
cannam@86
|
13095 exeext="$exeext"
|
cannam@86
|
13096
|
cannam@86
|
13097 # Additional compiler flags for building library objects.
|
cannam@86
|
13098 pic_flag=$lt_lt_prog_compiler_pic_CXX
|
cannam@86
|
13099 pic_mode=$pic_mode
|
cannam@86
|
13100
|
cannam@86
|
13101 # What is the maximum length of a command?
|
cannam@86
|
13102 max_cmd_len=$lt_cv_sys_max_cmd_len
|
cannam@86
|
13103
|
cannam@86
|
13104 # Does compiler simultaneously support -c and -o options?
|
cannam@86
|
13105 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
|
cannam@86
|
13106
|
cannam@86
|
13107 # Must we lock files when doing compilation?
|
cannam@86
|
13108 need_locks=$lt_need_locks
|
cannam@86
|
13109
|
cannam@86
|
13110 # Do we need the lib prefix for modules?
|
cannam@86
|
13111 need_lib_prefix=$need_lib_prefix
|
cannam@86
|
13112
|
cannam@86
|
13113 # Do we need a version for libraries?
|
cannam@86
|
13114 need_version=$need_version
|
cannam@86
|
13115
|
cannam@86
|
13116 # Whether dlopen is supported.
|
cannam@86
|
13117 dlopen_support=$enable_dlopen
|
cannam@86
|
13118
|
cannam@86
|
13119 # Whether dlopen of programs is supported.
|
cannam@86
|
13120 dlopen_self=$enable_dlopen_self
|
cannam@86
|
13121
|
cannam@86
|
13122 # Whether dlopen of statically linked programs is supported.
|
cannam@86
|
13123 dlopen_self_static=$enable_dlopen_self_static
|
cannam@86
|
13124
|
cannam@86
|
13125 # Compiler flag to prevent dynamic linking.
|
cannam@86
|
13126 link_static_flag=$lt_lt_prog_compiler_static_CXX
|
cannam@86
|
13127
|
cannam@86
|
13128 # Compiler flag to turn off builtin functions.
|
cannam@86
|
13129 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
|
cannam@86
|
13130
|
cannam@86
|
13131 # Compiler flag to allow reflexive dlopens.
|
cannam@86
|
13132 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
|
cannam@86
|
13133
|
cannam@86
|
13134 # Compiler flag to generate shared objects directly from archives.
|
cannam@86
|
13135 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
|
cannam@86
|
13136
|
cannam@86
|
13137 # Compiler flag to generate thread-safe objects.
|
cannam@86
|
13138 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
|
cannam@86
|
13139
|
cannam@86
|
13140 # Library versioning type.
|
cannam@86
|
13141 version_type=$version_type
|
cannam@86
|
13142
|
cannam@86
|
13143 # Format of library name prefix.
|
cannam@86
|
13144 libname_spec=$lt_libname_spec
|
cannam@86
|
13145
|
cannam@86
|
13146 # List of archive names. First name is the real one, the rest are links.
|
cannam@86
|
13147 # The last name is the one that the linker finds with -lNAME.
|
cannam@86
|
13148 library_names_spec=$lt_library_names_spec
|
cannam@86
|
13149
|
cannam@86
|
13150 # The coded name of the library, if different from the real name.
|
cannam@86
|
13151 soname_spec=$lt_soname_spec
|
cannam@86
|
13152
|
cannam@86
|
13153 # Commands used to build and install an old-style archive.
|
cannam@86
|
13154 RANLIB=$lt_RANLIB
|
cannam@86
|
13155 old_archive_cmds=$lt_old_archive_cmds_CXX
|
cannam@86
|
13156 old_postinstall_cmds=$lt_old_postinstall_cmds
|
cannam@86
|
13157 old_postuninstall_cmds=$lt_old_postuninstall_cmds
|
cannam@86
|
13158
|
cannam@86
|
13159 # Create an old-style archive from a shared archive.
|
cannam@86
|
13160 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
|
cannam@86
|
13161
|
cannam@86
|
13162 # Create a temporary old-style archive to link instead of a shared archive.
|
cannam@86
|
13163 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
|
cannam@86
|
13164
|
cannam@86
|
13165 # Commands used to build and install a shared archive.
|
cannam@86
|
13166 archive_cmds=$lt_archive_cmds_CXX
|
cannam@86
|
13167 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
|
cannam@86
|
13168 postinstall_cmds=$lt_postinstall_cmds
|
cannam@86
|
13169 postuninstall_cmds=$lt_postuninstall_cmds
|
cannam@86
|
13170
|
cannam@86
|
13171 # Commands used to build a loadable module (assumed same as above if empty)
|
cannam@86
|
13172 module_cmds=$lt_module_cmds_CXX
|
cannam@86
|
13173 module_expsym_cmds=$lt_module_expsym_cmds_CXX
|
cannam@86
|
13174
|
cannam@86
|
13175 # Commands to strip libraries.
|
cannam@86
|
13176 old_striplib=$lt_old_striplib
|
cannam@86
|
13177 striplib=$lt_striplib
|
cannam@86
|
13178
|
cannam@86
|
13179 # Dependencies to place before the objects being linked to create a
|
cannam@86
|
13180 # shared library.
|
cannam@86
|
13181 predep_objects=$lt_predep_objects_CXX
|
cannam@86
|
13182
|
cannam@86
|
13183 # Dependencies to place after the objects being linked to create a
|
cannam@86
|
13184 # shared library.
|
cannam@86
|
13185 postdep_objects=$lt_postdep_objects_CXX
|
cannam@86
|
13186
|
cannam@86
|
13187 # Dependencies to place before the objects being linked to create a
|
cannam@86
|
13188 # shared library.
|
cannam@86
|
13189 predeps=$lt_predeps_CXX
|
cannam@86
|
13190
|
cannam@86
|
13191 # Dependencies to place after the objects being linked to create a
|
cannam@86
|
13192 # shared library.
|
cannam@86
|
13193 postdeps=$lt_postdeps_CXX
|
cannam@86
|
13194
|
cannam@86
|
13195 # The library search path used internally by the compiler when linking
|
cannam@86
|
13196 # a shared library.
|
cannam@86
|
13197 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
|
cannam@86
|
13198
|
cannam@86
|
13199 # Method to check whether dependent libraries are shared objects.
|
cannam@86
|
13200 deplibs_check_method=$lt_deplibs_check_method
|
cannam@86
|
13201
|
cannam@86
|
13202 # Command to use when deplibs_check_method == file_magic.
|
cannam@86
|
13203 file_magic_cmd=$lt_file_magic_cmd
|
cannam@86
|
13204
|
cannam@86
|
13205 # Flag that allows shared libraries with undefined symbols to be built.
|
cannam@86
|
13206 allow_undefined_flag=$lt_allow_undefined_flag_CXX
|
cannam@86
|
13207
|
cannam@86
|
13208 # Flag that forces no undefined symbols.
|
cannam@86
|
13209 no_undefined_flag=$lt_no_undefined_flag_CXX
|
cannam@86
|
13210
|
cannam@86
|
13211 # Commands used to finish a libtool library installation in a directory.
|
cannam@86
|
13212 finish_cmds=$lt_finish_cmds
|
cannam@86
|
13213
|
cannam@86
|
13214 # Same as above, but a single script fragment to be evaled but not shown.
|
cannam@86
|
13215 finish_eval=$lt_finish_eval
|
cannam@86
|
13216
|
cannam@86
|
13217 # Take the output of nm and produce a listing of raw symbols and C names.
|
cannam@86
|
13218 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
|
cannam@86
|
13219
|
cannam@86
|
13220 # Transform the output of nm in a proper C declaration
|
cannam@86
|
13221 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
|
cannam@86
|
13222
|
cannam@86
|
13223 # Transform the output of nm in a C name address pair
|
cannam@86
|
13224 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
cannam@86
|
13225
|
cannam@86
|
13226 # This is the shared library runtime path variable.
|
cannam@86
|
13227 runpath_var=$runpath_var
|
cannam@86
|
13228
|
cannam@86
|
13229 # This is the shared library path variable.
|
cannam@86
|
13230 shlibpath_var=$shlibpath_var
|
cannam@86
|
13231
|
cannam@86
|
13232 # Is shlibpath searched before the hard-coded library search path?
|
cannam@86
|
13233 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
|
cannam@86
|
13234
|
cannam@86
|
13235 # How to hardcode a shared library path into an executable.
|
cannam@86
|
13236 hardcode_action=$hardcode_action_CXX
|
cannam@86
|
13237
|
cannam@86
|
13238 # Whether we should hardcode library paths into libraries.
|
cannam@86
|
13239 hardcode_into_libs=$hardcode_into_libs
|
cannam@86
|
13240
|
cannam@86
|
13241 # Flag to hardcode \$libdir into a binary during linking.
|
cannam@86
|
13242 # This must work even if \$libdir does not exist.
|
cannam@86
|
13243 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
|
cannam@86
|
13244
|
cannam@86
|
13245 # If ld is used when linking, flag to hardcode \$libdir into
|
cannam@86
|
13246 # a binary during linking. This must work even if \$libdir does
|
cannam@86
|
13247 # not exist.
|
cannam@86
|
13248 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
|
cannam@86
|
13249
|
cannam@86
|
13250 # Whether we need a single -rpath flag with a separated argument.
|
cannam@86
|
13251 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
|
cannam@86
|
13252
|
cannam@86
|
13253 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
|
cannam@86
|
13254 # resulting binary.
|
cannam@86
|
13255 hardcode_direct=$hardcode_direct_CXX
|
cannam@86
|
13256
|
cannam@86
|
13257 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
|
cannam@86
|
13258 # resulting binary.
|
cannam@86
|
13259 hardcode_minus_L=$hardcode_minus_L_CXX
|
cannam@86
|
13260
|
cannam@86
|
13261 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
|
cannam@86
|
13262 # the resulting binary.
|
cannam@86
|
13263 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
|
cannam@86
|
13264
|
cannam@86
|
13265 # Set to yes if building a shared library automatically hardcodes DIR into the library
|
cannam@86
|
13266 # and all subsequent libraries and executables linked against it.
|
cannam@86
|
13267 hardcode_automatic=$hardcode_automatic_CXX
|
cannam@86
|
13268
|
cannam@86
|
13269 # Variables whose values should be saved in libtool wrapper scripts and
|
cannam@86
|
13270 # restored at relink time.
|
cannam@86
|
13271 variables_saved_for_relink="$variables_saved_for_relink"
|
cannam@86
|
13272
|
cannam@86
|
13273 # Whether libtool must link a program against all its dependency libraries.
|
cannam@86
|
13274 link_all_deplibs=$link_all_deplibs_CXX
|
cannam@86
|
13275
|
cannam@86
|
13276 # Compile-time system search path for libraries
|
cannam@86
|
13277 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
|
cannam@86
|
13278
|
cannam@86
|
13279 # Run-time system search path for libraries
|
cannam@86
|
13280 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
|
cannam@86
|
13281
|
cannam@86
|
13282 # Fix the shell variable \$srcfile for the compiler.
|
cannam@86
|
13283 fix_srcfile_path="$fix_srcfile_path_CXX"
|
cannam@86
|
13284
|
cannam@86
|
13285 # Set to yes if exported symbols are required.
|
cannam@86
|
13286 always_export_symbols=$always_export_symbols_CXX
|
cannam@86
|
13287
|
cannam@86
|
13288 # The commands to list exported symbols.
|
cannam@86
|
13289 export_symbols_cmds=$lt_export_symbols_cmds_CXX
|
cannam@86
|
13290
|
cannam@86
|
13291 # The commands to extract the exported symbol list from a shared archive.
|
cannam@86
|
13292 extract_expsyms_cmds=$lt_extract_expsyms_cmds
|
cannam@86
|
13293
|
cannam@86
|
13294 # Symbols that should not be listed in the preloaded symbols.
|
cannam@86
|
13295 exclude_expsyms=$lt_exclude_expsyms_CXX
|
cannam@86
|
13296
|
cannam@86
|
13297 # Symbols that must always be exported.
|
cannam@86
|
13298 include_expsyms=$lt_include_expsyms_CXX
|
cannam@86
|
13299
|
cannam@86
|
13300 # ### END LIBTOOL TAG CONFIG: $tagname
|
cannam@86
|
13301
|
cannam@86
|
13302 __EOF__
|
cannam@86
|
13303
|
cannam@86
|
13304
|
cannam@86
|
13305 else
|
cannam@86
|
13306 # If there is no Makefile yet, we rely on a make rule to execute
|
cannam@86
|
13307 # `config.status --recheck' to rerun these tests and create the
|
cannam@86
|
13308 # libtool script then.
|
cannam@86
|
13309 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
|
cannam@86
|
13310 if test -f "$ltmain_in"; then
|
cannam@86
|
13311 test -f Makefile && make "$ltmain"
|
cannam@86
|
13312 fi
|
cannam@86
|
13313 fi
|
cannam@86
|
13314
|
cannam@86
|
13315
|
cannam@86
|
13316 ac_ext=c
|
cannam@86
|
13317 ac_cpp='$CPP $CPPFLAGS'
|
cannam@86
|
13318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
cannam@86
|
13319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
cannam@86
|
13320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
cannam@86
|
13321
|
cannam@86
|
13322 CC=$lt_save_CC
|
cannam@86
|
13323 LDCXX=$LD
|
cannam@86
|
13324 LD=$lt_save_LD
|
cannam@86
|
13325 GCC=$lt_save_GCC
|
cannam@86
|
13326 with_gnu_ldcxx=$with_gnu_ld
|
cannam@86
|
13327 with_gnu_ld=$lt_save_with_gnu_ld
|
cannam@86
|
13328 lt_cv_path_LDCXX=$lt_cv_path_LD
|
cannam@86
|
13329 lt_cv_path_LD=$lt_save_path_LD
|
cannam@86
|
13330 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
|
cannam@86
|
13331 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
|
cannam@86
|
13332
|
cannam@86
|
13333 else
|
cannam@86
|
13334 tagname=""
|
cannam@86
|
13335 fi
|
cannam@86
|
13336 ;;
|
cannam@86
|
13337
|
cannam@86
|
13338 F77)
|
cannam@86
|
13339 if test -n "$F77" && test "X$F77" != "Xno"; then
|
cannam@86
|
13340
|
cannam@86
|
13341 ac_ext=f
|
cannam@86
|
13342 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
|
cannam@86
|
13343 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
cannam@86
|
13344 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
|
cannam@86
|
13345
|
cannam@86
|
13346
|
cannam@86
|
13347 archive_cmds_need_lc_F77=no
|
cannam@86
|
13348 allow_undefined_flag_F77=
|
cannam@86
|
13349 always_export_symbols_F77=no
|
cannam@86
|
13350 archive_expsym_cmds_F77=
|
cannam@86
|
13351 export_dynamic_flag_spec_F77=
|
cannam@86
|
13352 hardcode_direct_F77=no
|
cannam@86
|
13353 hardcode_libdir_flag_spec_F77=
|
cannam@86
|
13354 hardcode_libdir_flag_spec_ld_F77=
|
cannam@86
|
13355 hardcode_libdir_separator_F77=
|
cannam@86
|
13356 hardcode_minus_L_F77=no
|
cannam@86
|
13357 hardcode_automatic_F77=no
|
cannam@86
|
13358 module_cmds_F77=
|
cannam@86
|
13359 module_expsym_cmds_F77=
|
cannam@86
|
13360 link_all_deplibs_F77=unknown
|
cannam@86
|
13361 old_archive_cmds_F77=$old_archive_cmds
|
cannam@86
|
13362 no_undefined_flag_F77=
|
cannam@86
|
13363 whole_archive_flag_spec_F77=
|
cannam@86
|
13364 enable_shared_with_static_runtimes_F77=no
|
cannam@86
|
13365
|
cannam@86
|
13366 # Source file extension for f77 test sources.
|
cannam@86
|
13367 ac_ext=f
|
cannam@86
|
13368
|
cannam@86
|
13369 # Object file extension for compiled f77 test sources.
|
cannam@86
|
13370 objext=o
|
cannam@86
|
13371 objext_F77=$objext
|
cannam@86
|
13372
|
cannam@86
|
13373 # Code to be used in simple compile tests
|
cannam@86
|
13374 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
|
cannam@86
|
13375
|
cannam@86
|
13376 # Code to be used in simple link tests
|
cannam@86
|
13377 lt_simple_link_test_code=" program t\n end\n"
|
cannam@86
|
13378
|
cannam@86
|
13379 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
cannam@86
|
13380
|
cannam@86
|
13381 # If no C compiler was specified, use CC.
|
cannam@86
|
13382 LTCC=${LTCC-"$CC"}
|
cannam@86
|
13383
|
cannam@86
|
13384 # Allow CC to be a program name with arguments.
|
cannam@86
|
13385 compiler=$CC
|
cannam@86
|
13386
|
cannam@86
|
13387
|
cannam@86
|
13388 # save warnings/boilerplate of simple test code
|
cannam@86
|
13389 ac_outfile=conftest.$ac_objext
|
cannam@86
|
13390 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
|
cannam@86
|
13391 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
|
cannam@86
|
13392 _lt_compiler_boilerplate=`cat conftest.err`
|
cannam@86
|
13393 $rm conftest*
|
cannam@86
|
13394
|
cannam@86
|
13395 ac_outfile=conftest.$ac_objext
|
cannam@86
|
13396 printf "$lt_simple_link_test_code" >conftest.$ac_ext
|
cannam@86
|
13397 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
|
cannam@86
|
13398 _lt_linker_boilerplate=`cat conftest.err`
|
cannam@86
|
13399 $rm conftest*
|
cannam@86
|
13400
|
cannam@86
|
13401
|
cannam@86
|
13402 # Allow CC to be a program name with arguments.
|
cannam@86
|
13403 lt_save_CC="$CC"
|
cannam@86
|
13404 CC=${F77-"f77"}
|
cannam@86
|
13405 compiler=$CC
|
cannam@86
|
13406 compiler_F77=$CC
|
cannam@86
|
13407 for cc_temp in $compiler""; do
|
cannam@86
|
13408 case $cc_temp in
|
cannam@86
|
13409 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
cannam@86
|
13410 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
cannam@86
|
13411 \-*) ;;
|
cannam@86
|
13412 *) break;;
|
cannam@86
|
13413 esac
|
cannam@86
|
13414 done
|
cannam@86
|
13415 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
cannam@86
|
13416
|
cannam@86
|
13417
|
cannam@86
|
13418 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
|
cannam@86
|
13419 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
|
cannam@86
|
13420 echo "$as_me:$LINENO: result: $can_build_shared" >&5
|
cannam@86
|
13421 echo "${ECHO_T}$can_build_shared" >&6
|
cannam@86
|
13422
|
cannam@86
|
13423 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
|
cannam@86
|
13424 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
|
cannam@86
|
13425 test "$can_build_shared" = "no" && enable_shared=no
|
cannam@86
|
13426
|
cannam@86
|
13427 # On AIX, shared libraries and static libraries use the same namespace, and
|
cannam@86
|
13428 # are all built from PIC.
|
cannam@86
|
13429 case "$host_os" in
|
cannam@86
|
13430 aix3*)
|
cannam@86
|
13431 test "$enable_shared" = yes && enable_static=no
|
cannam@86
|
13432 if test -n "$RANLIB"; then
|
cannam@86
|
13433 archive_cmds="$archive_cmds~\$RANLIB \$lib"
|
cannam@86
|
13434 postinstall_cmds='$RANLIB $lib'
|
cannam@86
|
13435 fi
|
cannam@86
|
13436 ;;
|
cannam@86
|
13437 aix4* | aix5*)
|
cannam@86
|
13438 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
|
cannam@86
|
13439 test "$enable_shared" = yes && enable_static=no
|
cannam@86
|
13440 fi
|
cannam@86
|
13441 ;;
|
cannam@86
|
13442 esac
|
cannam@86
|
13443 echo "$as_me:$LINENO: result: $enable_shared" >&5
|
cannam@86
|
13444 echo "${ECHO_T}$enable_shared" >&6
|
cannam@86
|
13445
|
cannam@86
|
13446 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
|
cannam@86
|
13447 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
|
cannam@86
|
13448 # Make sure either enable_shared or enable_static is yes.
|
cannam@86
|
13449 test "$enable_shared" = yes || enable_static=yes
|
cannam@86
|
13450 echo "$as_me:$LINENO: result: $enable_static" >&5
|
cannam@86
|
13451 echo "${ECHO_T}$enable_static" >&6
|
cannam@86
|
13452
|
cannam@86
|
13453 test "$ld_shlibs_F77" = no && can_build_shared=no
|
cannam@86
|
13454
|
cannam@86
|
13455 GCC_F77="$G77"
|
cannam@86
|
13456 LD_F77="$LD"
|
cannam@86
|
13457
|
cannam@86
|
13458 lt_prog_compiler_wl_F77=
|
cannam@86
|
13459 lt_prog_compiler_pic_F77=
|
cannam@86
|
13460 lt_prog_compiler_static_F77=
|
cannam@86
|
13461
|
cannam@86
|
13462 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
|
cannam@86
|
13463 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
|
cannam@86
|
13464
|
cannam@86
|
13465 if test "$GCC" = yes; then
|
cannam@86
|
13466 lt_prog_compiler_wl_F77='-Wl,'
|
cannam@86
|
13467 lt_prog_compiler_static_F77='-static'
|
cannam@86
|
13468
|
cannam@86
|
13469 case $host_os in
|
cannam@86
|
13470 aix*)
|
cannam@86
|
13471 # All AIX code is PIC.
|
cannam@86
|
13472 if test "$host_cpu" = ia64; then
|
cannam@86
|
13473 # AIX 5 now supports IA64 processor
|
cannam@86
|
13474 lt_prog_compiler_static_F77='-Bstatic'
|
cannam@86
|
13475 fi
|
cannam@86
|
13476 ;;
|
cannam@86
|
13477
|
cannam@86
|
13478 amigaos*)
|
cannam@86
|
13479 # FIXME: we need at least 68020 code to build shared libraries, but
|
cannam@86
|
13480 # adding the `-m68020' flag to GCC prevents building anything better,
|
cannam@86
|
13481 # like `-m68040'.
|
cannam@86
|
13482 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
|
cannam@86
|
13483 ;;
|
cannam@86
|
13484
|
cannam@86
|
13485 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
cannam@86
|
13486 # PIC is the default for these OSes.
|
cannam@86
|
13487 ;;
|
cannam@86
|
13488
|
cannam@86
|
13489 mingw* | pw32* | os2*)
|
cannam@86
|
13490 # This hack is so that the source file can tell whether it is being
|
cannam@86
|
13491 # built for inclusion in a dll (and should export symbols for example).
|
cannam@86
|
13492 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
|
cannam@86
|
13493 ;;
|
cannam@86
|
13494
|
cannam@86
|
13495 darwin* | rhapsody*)
|
cannam@86
|
13496 # PIC is the default on this platform
|
cannam@86
|
13497 # Common symbols not allowed in MH_DYLIB files
|
cannam@86
|
13498 lt_prog_compiler_pic_F77='-fno-common'
|
cannam@86
|
13499 ;;
|
cannam@86
|
13500
|
cannam@86
|
13501 msdosdjgpp*)
|
cannam@86
|
13502 # Just because we use GCC doesn't mean we suddenly get shared libraries
|
cannam@86
|
13503 # on systems that don't support them.
|
cannam@86
|
13504 lt_prog_compiler_can_build_shared_F77=no
|
cannam@86
|
13505 enable_shared=no
|
cannam@86
|
13506 ;;
|
cannam@86
|
13507
|
cannam@86
|
13508 sysv4*MP*)
|
cannam@86
|
13509 if test -d /usr/nec; then
|
cannam@86
|
13510 lt_prog_compiler_pic_F77=-Kconform_pic
|
cannam@86
|
13511 fi
|
cannam@86
|
13512 ;;
|
cannam@86
|
13513
|
cannam@86
|
13514 hpux*)
|
cannam@86
|
13515 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
cannam@86
|
13516 # not for PA HP-UX.
|
cannam@86
|
13517 case "$host_cpu" in
|
cannam@86
|
13518 hppa*64*|ia64*)
|
cannam@86
|
13519 # +Z the default
|
cannam@86
|
13520 ;;
|
cannam@86
|
13521 *)
|
cannam@86
|
13522 lt_prog_compiler_pic_F77='-fPIC'
|
cannam@86
|
13523 ;;
|
cannam@86
|
13524 esac
|
cannam@86
|
13525 ;;
|
cannam@86
|
13526
|
cannam@86
|
13527 *)
|
cannam@86
|
13528 lt_prog_compiler_pic_F77='-fPIC'
|
cannam@86
|
13529 ;;
|
cannam@86
|
13530 esac
|
cannam@86
|
13531 else
|
cannam@86
|
13532 # PORTME Check for flag to pass linker flags through the system compiler.
|
cannam@86
|
13533 case $host_os in
|
cannam@86
|
13534 aix*)
|
cannam@86
|
13535 lt_prog_compiler_wl_F77='-Wl,'
|
cannam@86
|
13536 if test "$host_cpu" = ia64; then
|
cannam@86
|
13537 # AIX 5 now supports IA64 processor
|
cannam@86
|
13538 lt_prog_compiler_static_F77='-Bstatic'
|
cannam@86
|
13539 else
|
cannam@86
|
13540 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
|
cannam@86
|
13541 fi
|
cannam@86
|
13542 ;;
|
cannam@86
|
13543 darwin*)
|
cannam@86
|
13544 # PIC is the default on this platform
|
cannam@86
|
13545 # Common symbols not allowed in MH_DYLIB files
|
cannam@86
|
13546 case $cc_basename in
|
cannam@86
|
13547 xlc*)
|
cannam@86
|
13548 lt_prog_compiler_pic_F77='-qnocommon'
|
cannam@86
|
13549 lt_prog_compiler_wl_F77='-Wl,'
|
cannam@86
|
13550 ;;
|
cannam@86
|
13551 esac
|
cannam@86
|
13552 ;;
|
cannam@86
|
13553
|
cannam@86
|
13554 mingw* | pw32* | os2*)
|
cannam@86
|
13555 # This hack is so that the source file can tell whether it is being
|
cannam@86
|
13556 # built for inclusion in a dll (and should export symbols for example).
|
cannam@86
|
13557 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
|
cannam@86
|
13558 ;;
|
cannam@86
|
13559
|
cannam@86
|
13560 hpux9* | hpux10* | hpux11*)
|
cannam@86
|
13561 lt_prog_compiler_wl_F77='-Wl,'
|
cannam@86
|
13562 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
cannam@86
|
13563 # not for PA HP-UX.
|
cannam@86
|
13564 case "$host_cpu" in
|
cannam@86
|
13565 hppa*64*|ia64*)
|
cannam@86
|
13566 # +Z the default
|
cannam@86
|
13567 ;;
|
cannam@86
|
13568 *)
|
cannam@86
|
13569 lt_prog_compiler_pic_F77='+Z'
|
cannam@86
|
13570 ;;
|
cannam@86
|
13571 esac
|
cannam@86
|
13572 # Is there a better lt_prog_compiler_static that works with the bundled CC?
|
cannam@86
|
13573 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
|
cannam@86
|
13574 ;;
|
cannam@86
|
13575
|
cannam@86
|
13576 irix5* | irix6* | nonstopux*)
|
cannam@86
|
13577 lt_prog_compiler_wl_F77='-Wl,'
|
cannam@86
|
13578 # PIC (with -KPIC) is the default.
|
cannam@86
|
13579 lt_prog_compiler_static_F77='-non_shared'
|
cannam@86
|
13580 ;;
|
cannam@86
|
13581
|
cannam@86
|
13582 newsos6)
|
cannam@86
|
13583 lt_prog_compiler_pic_F77='-KPIC'
|
cannam@86
|
13584 lt_prog_compiler_static_F77='-Bstatic'
|
cannam@86
|
13585 ;;
|
cannam@86
|
13586
|
cannam@86
|
13587 linux*)
|
cannam@86
|
13588 case $cc_basename in
|
cannam@86
|
13589 icc* | ecc*)
|
cannam@86
|
13590 lt_prog_compiler_wl_F77='-Wl,'
|
cannam@86
|
13591 lt_prog_compiler_pic_F77='-KPIC'
|
cannam@86
|
13592 lt_prog_compiler_static_F77='-static'
|
cannam@86
|
13593 ;;
|
cannam@86
|
13594 pgcc* | pgf77* | pgf90*)
|
cannam@86
|
13595 # Portland Group compilers (*not* the Pentium gcc compiler,
|
cannam@86
|
13596 # which looks to be a dead project)
|
cannam@86
|
13597 lt_prog_compiler_wl_F77='-Wl,'
|
cannam@86
|
13598 lt_prog_compiler_pic_F77='-fpic'
|
cannam@86
|
13599 lt_prog_compiler_static_F77='-static'
|
cannam@86
|
13600 ;;
|
cannam@86
|
13601 ccc*)
|
cannam@86
|
13602 lt_prog_compiler_wl_F77='-Wl,'
|
cannam@86
|
13603 # All Alpha code is PIC.
|
cannam@86
|
13604 lt_prog_compiler_static_F77='-non_shared'
|
cannam@86
|
13605 ;;
|
cannam@86
|
13606 esac
|
cannam@86
|
13607 ;;
|
cannam@86
|
13608
|
cannam@86
|
13609 osf3* | osf4* | osf5*)
|
cannam@86
|
13610 lt_prog_compiler_wl_F77='-Wl,'
|
cannam@86
|
13611 # All OSF/1 code is PIC.
|
cannam@86
|
13612 lt_prog_compiler_static_F77='-non_shared'
|
cannam@86
|
13613 ;;
|
cannam@86
|
13614
|
cannam@86
|
13615 sco3.2v5*)
|
cannam@86
|
13616 lt_prog_compiler_pic_F77='-Kpic'
|
cannam@86
|
13617 lt_prog_compiler_static_F77='-dn'
|
cannam@86
|
13618 ;;
|
cannam@86
|
13619
|
cannam@86
|
13620 solaris*)
|
cannam@86
|
13621 lt_prog_compiler_pic_F77='-KPIC'
|
cannam@86
|
13622 lt_prog_compiler_static_F77='-Bstatic'
|
cannam@86
|
13623 case $cc_basename in
|
cannam@86
|
13624 f77* | f90* | f95*)
|
cannam@86
|
13625 lt_prog_compiler_wl_F77='-Qoption ld ';;
|
cannam@86
|
13626 *)
|
cannam@86
|
13627 lt_prog_compiler_wl_F77='-Wl,';;
|
cannam@86
|
13628 esac
|
cannam@86
|
13629 ;;
|
cannam@86
|
13630
|
cannam@86
|
13631 sunos4*)
|
cannam@86
|
13632 lt_prog_compiler_wl_F77='-Qoption ld '
|
cannam@86
|
13633 lt_prog_compiler_pic_F77='-PIC'
|
cannam@86
|
13634 lt_prog_compiler_static_F77='-Bstatic'
|
cannam@86
|
13635 ;;
|
cannam@86
|
13636
|
cannam@86
|
13637 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
cannam@86
|
13638 lt_prog_compiler_wl_F77='-Wl,'
|
cannam@86
|
13639 lt_prog_compiler_pic_F77='-KPIC'
|
cannam@86
|
13640 lt_prog_compiler_static_F77='-Bstatic'
|
cannam@86
|
13641 ;;
|
cannam@86
|
13642
|
cannam@86
|
13643 sysv4*MP*)
|
cannam@86
|
13644 if test -d /usr/nec ;then
|
cannam@86
|
13645 lt_prog_compiler_pic_F77='-Kconform_pic'
|
cannam@86
|
13646 lt_prog_compiler_static_F77='-Bstatic'
|
cannam@86
|
13647 fi
|
cannam@86
|
13648 ;;
|
cannam@86
|
13649
|
cannam@86
|
13650 unicos*)
|
cannam@86
|
13651 lt_prog_compiler_wl_F77='-Wl,'
|
cannam@86
|
13652 lt_prog_compiler_can_build_shared_F77=no
|
cannam@86
|
13653 ;;
|
cannam@86
|
13654
|
cannam@86
|
13655 uts4*)
|
cannam@86
|
13656 lt_prog_compiler_pic_F77='-pic'
|
cannam@86
|
13657 lt_prog_compiler_static_F77='-Bstatic'
|
cannam@86
|
13658 ;;
|
cannam@86
|
13659
|
cannam@86
|
13660 *)
|
cannam@86
|
13661 lt_prog_compiler_can_build_shared_F77=no
|
cannam@86
|
13662 ;;
|
cannam@86
|
13663 esac
|
cannam@86
|
13664 fi
|
cannam@86
|
13665
|
cannam@86
|
13666 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
|
cannam@86
|
13667 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
|
cannam@86
|
13668
|
cannam@86
|
13669 #
|
cannam@86
|
13670 # Check to make sure the PIC flag actually works.
|
cannam@86
|
13671 #
|
cannam@86
|
13672 if test -n "$lt_prog_compiler_pic_F77"; then
|
cannam@86
|
13673
|
cannam@86
|
13674 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
|
cannam@86
|
13675 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
|
cannam@86
|
13676 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
|
cannam@86
|
13677 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
13678 else
|
cannam@86
|
13679 lt_prog_compiler_pic_works_F77=no
|
cannam@86
|
13680 ac_outfile=conftest.$ac_objext
|
cannam@86
|
13681 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
cannam@86
|
13682 lt_compiler_flag="$lt_prog_compiler_pic_F77"
|
cannam@86
|
13683 # Insert the option either (1) after the last *FLAGS variable, or
|
cannam@86
|
13684 # (2) before a word containing "conftest.", or (3) at the end.
|
cannam@86
|
13685 # Note that $ac_compile itself does not contain backslashes and begins
|
cannam@86
|
13686 # with a dollar sign (not a hyphen), so the echo should work correctly.
|
cannam@86
|
13687 # The option is referenced via a variable to avoid confusing sed.
|
cannam@86
|
13688 lt_compile=`echo "$ac_compile" | $SED \
|
cannam@86
|
13689 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
cannam@86
|
13690 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
cannam@86
|
13691 -e 's:$: $lt_compiler_flag:'`
|
cannam@86
|
13692 (eval echo "\"\$as_me:13692: $lt_compile\"" >&5)
|
cannam@86
|
13693 (eval "$lt_compile" 2>conftest.err)
|
cannam@86
|
13694 ac_status=$?
|
cannam@86
|
13695 cat conftest.err >&5
|
cannam@86
|
13696 echo "$as_me:13696: \$? = $ac_status" >&5
|
cannam@86
|
13697 if (exit $ac_status) && test -s "$ac_outfile"; then
|
cannam@86
|
13698 # The compiler can only warn and ignore the option if not recognized
|
cannam@86
|
13699 # So say no if there are warnings other than the usual output.
|
cannam@86
|
13700 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
|
cannam@86
|
13701 $SED '/^$/d' conftest.err >conftest.er2
|
cannam@86
|
13702 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
|
cannam@86
|
13703 lt_prog_compiler_pic_works_F77=yes
|
cannam@86
|
13704 fi
|
cannam@86
|
13705 fi
|
cannam@86
|
13706 $rm conftest*
|
cannam@86
|
13707
|
cannam@86
|
13708 fi
|
cannam@86
|
13709 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
|
cannam@86
|
13710 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
|
cannam@86
|
13711
|
cannam@86
|
13712 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
|
cannam@86
|
13713 case $lt_prog_compiler_pic_F77 in
|
cannam@86
|
13714 "" | " "*) ;;
|
cannam@86
|
13715 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
|
cannam@86
|
13716 esac
|
cannam@86
|
13717 else
|
cannam@86
|
13718 lt_prog_compiler_pic_F77=
|
cannam@86
|
13719 lt_prog_compiler_can_build_shared_F77=no
|
cannam@86
|
13720 fi
|
cannam@86
|
13721
|
cannam@86
|
13722 fi
|
cannam@86
|
13723 case "$host_os" in
|
cannam@86
|
13724 # For platforms which do not support PIC, -DPIC is meaningless:
|
cannam@86
|
13725 *djgpp*)
|
cannam@86
|
13726 lt_prog_compiler_pic_F77=
|
cannam@86
|
13727 ;;
|
cannam@86
|
13728 *)
|
cannam@86
|
13729 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
|
cannam@86
|
13730 ;;
|
cannam@86
|
13731 esac
|
cannam@86
|
13732
|
cannam@86
|
13733 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
|
cannam@86
|
13734 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
|
cannam@86
|
13735 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
|
cannam@86
|
13736 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
13737 else
|
cannam@86
|
13738 lt_cv_prog_compiler_c_o_F77=no
|
cannam@86
|
13739 $rm -r conftest 2>/dev/null
|
cannam@86
|
13740 mkdir conftest
|
cannam@86
|
13741 cd conftest
|
cannam@86
|
13742 mkdir out
|
cannam@86
|
13743 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
cannam@86
|
13744
|
cannam@86
|
13745 lt_compiler_flag="-o out/conftest2.$ac_objext"
|
cannam@86
|
13746 # Insert the option either (1) after the last *FLAGS variable, or
|
cannam@86
|
13747 # (2) before a word containing "conftest.", or (3) at the end.
|
cannam@86
|
13748 # Note that $ac_compile itself does not contain backslashes and begins
|
cannam@86
|
13749 # with a dollar sign (not a hyphen), so the echo should work correctly.
|
cannam@86
|
13750 lt_compile=`echo "$ac_compile" | $SED \
|
cannam@86
|
13751 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
cannam@86
|
13752 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
cannam@86
|
13753 -e 's:$: $lt_compiler_flag:'`
|
cannam@86
|
13754 (eval echo "\"\$as_me:13754: $lt_compile\"" >&5)
|
cannam@86
|
13755 (eval "$lt_compile" 2>out/conftest.err)
|
cannam@86
|
13756 ac_status=$?
|
cannam@86
|
13757 cat out/conftest.err >&5
|
cannam@86
|
13758 echo "$as_me:13758: \$? = $ac_status" >&5
|
cannam@86
|
13759 if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
cannam@86
|
13760 then
|
cannam@86
|
13761 # The compiler can only warn and ignore the option if not recognized
|
cannam@86
|
13762 # So say no if there are warnings
|
cannam@86
|
13763 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
|
cannam@86
|
13764 $SED '/^$/d' out/conftest.err >out/conftest.er2
|
cannam@86
|
13765 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
cannam@86
|
13766 lt_cv_prog_compiler_c_o_F77=yes
|
cannam@86
|
13767 fi
|
cannam@86
|
13768 fi
|
cannam@86
|
13769 chmod u+w .
|
cannam@86
|
13770 $rm conftest*
|
cannam@86
|
13771 # SGI C++ compiler will create directory out/ii_files/ for
|
cannam@86
|
13772 # template instantiation
|
cannam@86
|
13773 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
|
cannam@86
|
13774 $rm out/* && rmdir out
|
cannam@86
|
13775 cd ..
|
cannam@86
|
13776 rmdir conftest
|
cannam@86
|
13777 $rm conftest*
|
cannam@86
|
13778
|
cannam@86
|
13779 fi
|
cannam@86
|
13780 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
|
cannam@86
|
13781 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
|
cannam@86
|
13782
|
cannam@86
|
13783
|
cannam@86
|
13784 hard_links="nottested"
|
cannam@86
|
13785 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
|
cannam@86
|
13786 # do not overwrite the value of need_locks provided by the user
|
cannam@86
|
13787 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
|
cannam@86
|
13788 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
|
cannam@86
|
13789 hard_links=yes
|
cannam@86
|
13790 $rm conftest*
|
cannam@86
|
13791 ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
cannam@86
|
13792 touch conftest.a
|
cannam@86
|
13793 ln conftest.a conftest.b 2>&5 || hard_links=no
|
cannam@86
|
13794 ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
cannam@86
|
13795 echo "$as_me:$LINENO: result: $hard_links" >&5
|
cannam@86
|
13796 echo "${ECHO_T}$hard_links" >&6
|
cannam@86
|
13797 if test "$hard_links" = no; then
|
cannam@86
|
13798 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
|
cannam@86
|
13799 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
|
cannam@86
|
13800 need_locks=warn
|
cannam@86
|
13801 fi
|
cannam@86
|
13802 else
|
cannam@86
|
13803 need_locks=no
|
cannam@86
|
13804 fi
|
cannam@86
|
13805
|
cannam@86
|
13806 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
|
cannam@86
|
13807 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
|
cannam@86
|
13808
|
cannam@86
|
13809 runpath_var=
|
cannam@86
|
13810 allow_undefined_flag_F77=
|
cannam@86
|
13811 enable_shared_with_static_runtimes_F77=no
|
cannam@86
|
13812 archive_cmds_F77=
|
cannam@86
|
13813 archive_expsym_cmds_F77=
|
cannam@86
|
13814 old_archive_From_new_cmds_F77=
|
cannam@86
|
13815 old_archive_from_expsyms_cmds_F77=
|
cannam@86
|
13816 export_dynamic_flag_spec_F77=
|
cannam@86
|
13817 whole_archive_flag_spec_F77=
|
cannam@86
|
13818 thread_safe_flag_spec_F77=
|
cannam@86
|
13819 hardcode_libdir_flag_spec_F77=
|
cannam@86
|
13820 hardcode_libdir_flag_spec_ld_F77=
|
cannam@86
|
13821 hardcode_libdir_separator_F77=
|
cannam@86
|
13822 hardcode_direct_F77=no
|
cannam@86
|
13823 hardcode_minus_L_F77=no
|
cannam@86
|
13824 hardcode_shlibpath_var_F77=unsupported
|
cannam@86
|
13825 link_all_deplibs_F77=unknown
|
cannam@86
|
13826 hardcode_automatic_F77=no
|
cannam@86
|
13827 module_cmds_F77=
|
cannam@86
|
13828 module_expsym_cmds_F77=
|
cannam@86
|
13829 always_export_symbols_F77=no
|
cannam@86
|
13830 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
cannam@86
|
13831 # include_expsyms should be a list of space-separated symbols to be *always*
|
cannam@86
|
13832 # included in the symbol list
|
cannam@86
|
13833 include_expsyms_F77=
|
cannam@86
|
13834 # exclude_expsyms can be an extended regexp of symbols to exclude
|
cannam@86
|
13835 # it will be wrapped by ` (' and `)$', so one must not match beginning or
|
cannam@86
|
13836 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
|
cannam@86
|
13837 # as well as any symbol that contains `d'.
|
cannam@86
|
13838 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
|
cannam@86
|
13839 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
|
cannam@86
|
13840 # platforms (ab)use it in PIC code, but their linkers get confused if
|
cannam@86
|
13841 # the symbol is explicitly referenced. Since portable code cannot
|
cannam@86
|
13842 # rely on this symbol name, it's probably fine to never include it in
|
cannam@86
|
13843 # preloaded symbol tables.
|
cannam@86
|
13844 extract_expsyms_cmds=
|
cannam@86
|
13845 # Just being paranoid about ensuring that cc_basename is set.
|
cannam@86
|
13846 for cc_temp in $compiler""; do
|
cannam@86
|
13847 case $cc_temp in
|
cannam@86
|
13848 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
cannam@86
|
13849 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
cannam@86
|
13850 \-*) ;;
|
cannam@86
|
13851 *) break;;
|
cannam@86
|
13852 esac
|
cannam@86
|
13853 done
|
cannam@86
|
13854 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
cannam@86
|
13855
|
cannam@86
|
13856 case $host_os in
|
cannam@86
|
13857 cygwin* | mingw* | pw32*)
|
cannam@86
|
13858 # FIXME: the MSVC++ port hasn't been tested in a loooong time
|
cannam@86
|
13859 # When not using gcc, we currently assume that we are using
|
cannam@86
|
13860 # Microsoft Visual C++.
|
cannam@86
|
13861 if test "$GCC" != yes; then
|
cannam@86
|
13862 with_gnu_ld=no
|
cannam@86
|
13863 fi
|
cannam@86
|
13864 ;;
|
cannam@86
|
13865 openbsd*)
|
cannam@86
|
13866 with_gnu_ld=no
|
cannam@86
|
13867 ;;
|
cannam@86
|
13868 esac
|
cannam@86
|
13869
|
cannam@86
|
13870 ld_shlibs_F77=yes
|
cannam@86
|
13871 if test "$with_gnu_ld" = yes; then
|
cannam@86
|
13872 # If archive_cmds runs LD, not CC, wlarc should be empty
|
cannam@86
|
13873 wlarc='${wl}'
|
cannam@86
|
13874
|
cannam@86
|
13875 # Set some defaults for GNU ld with shared library support. These
|
cannam@86
|
13876 # are reset later if shared libraries are not supported. Putting them
|
cannam@86
|
13877 # here allows them to be overridden if necessary.
|
cannam@86
|
13878 runpath_var=LD_RUN_PATH
|
cannam@86
|
13879 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
|
cannam@86
|
13880 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
|
cannam@86
|
13881 # ancient GNU ld didn't support --whole-archive et. al.
|
cannam@86
|
13882 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
|
cannam@86
|
13883 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
cannam@86
|
13884 else
|
cannam@86
|
13885 whole_archive_flag_spec_F77=
|
cannam@86
|
13886 fi
|
cannam@86
|
13887 supports_anon_versioning=no
|
cannam@86
|
13888 case `$LD -v 2>/dev/null` in
|
cannam@86
|
13889 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
|
cannam@86
|
13890 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
|
cannam@86
|
13891 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
|
cannam@86
|
13892 *\ 2.11.*) ;; # other 2.11 versions
|
cannam@86
|
13893 *) supports_anon_versioning=yes ;;
|
cannam@86
|
13894 esac
|
cannam@86
|
13895
|
cannam@86
|
13896 # See if GNU ld supports shared libraries.
|
cannam@86
|
13897 case $host_os in
|
cannam@86
|
13898 aix3* | aix4* | aix5*)
|
cannam@86
|
13899 # On AIX/PPC, the GNU linker is very broken
|
cannam@86
|
13900 if test "$host_cpu" != ia64; then
|
cannam@86
|
13901 ld_shlibs_F77=no
|
cannam@86
|
13902 cat <<EOF 1>&2
|
cannam@86
|
13903
|
cannam@86
|
13904 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
|
cannam@86
|
13905 *** to be unable to reliably create shared libraries on AIX.
|
cannam@86
|
13906 *** Therefore, libtool is disabling shared libraries support. If you
|
cannam@86
|
13907 *** really care for shared libraries, you may want to modify your PATH
|
cannam@86
|
13908 *** so that a non-GNU linker is found, and then restart.
|
cannam@86
|
13909
|
cannam@86
|
13910 EOF
|
cannam@86
|
13911 fi
|
cannam@86
|
13912 ;;
|
cannam@86
|
13913
|
cannam@86
|
13914 amigaos*)
|
cannam@86
|
13915 archive_cmds_F77='$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@86
|
13916 hardcode_libdir_flag_spec_F77='-L$libdir'
|
cannam@86
|
13917 hardcode_minus_L_F77=yes
|
cannam@86
|
13918
|
cannam@86
|
13919 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
|
cannam@86
|
13920 # that the semantics of dynamic libraries on AmigaOS, at least up
|
cannam@86
|
13921 # to version 4, is to share data among multiple programs linked
|
cannam@86
|
13922 # with the same dynamic library. Since this doesn't match the
|
cannam@86
|
13923 # behavior of shared libraries on other platforms, we can't use
|
cannam@86
|
13924 # them.
|
cannam@86
|
13925 ld_shlibs_F77=no
|
cannam@86
|
13926 ;;
|
cannam@86
|
13927
|
cannam@86
|
13928 beos*)
|
cannam@86
|
13929 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
cannam@86
|
13930 allow_undefined_flag_F77=unsupported
|
cannam@86
|
13931 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
|
cannam@86
|
13932 # support --undefined. This deserves some investigation. FIXME
|
cannam@86
|
13933 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
cannam@86
|
13934 else
|
cannam@86
|
13935 ld_shlibs_F77=no
|
cannam@86
|
13936 fi
|
cannam@86
|
13937 ;;
|
cannam@86
|
13938
|
cannam@86
|
13939 cygwin* | mingw* | pw32*)
|
cannam@86
|
13940 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
|
cannam@86
|
13941 # as there is no search path for DLLs.
|
cannam@86
|
13942 hardcode_libdir_flag_spec_F77='-L$libdir'
|
cannam@86
|
13943 allow_undefined_flag_F77=unsupported
|
cannam@86
|
13944 always_export_symbols_F77=no
|
cannam@86
|
13945 enable_shared_with_static_runtimes_F77=yes
|
cannam@86
|
13946 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
|
cannam@86
|
13947
|
cannam@86
|
13948 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
|
cannam@86
|
13949 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
|
cannam@86
|
13950 # If the export-symbols file already is a .def file (1st line
|
cannam@86
|
13951 # is EXPORTS), use it as is; otherwise, prepend...
|
cannam@86
|
13952 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
cannam@86
|
13953 cp $export_symbols $output_objdir/$soname.def;
|
cannam@86
|
13954 else
|
cannam@86
|
13955 echo EXPORTS > $output_objdir/$soname.def;
|
cannam@86
|
13956 cat $export_symbols >> $output_objdir/$soname.def;
|
cannam@86
|
13957 fi~
|
cannam@86
|
13958 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
|
cannam@86
|
13959 else
|
cannam@86
|
13960 ld_shlibs_F77=no
|
cannam@86
|
13961 fi
|
cannam@86
|
13962 ;;
|
cannam@86
|
13963
|
cannam@86
|
13964 linux*)
|
cannam@86
|
13965 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
cannam@86
|
13966 tmp_addflag=
|
cannam@86
|
13967 case $cc_basename,$host_cpu in
|
cannam@86
|
13968 pgcc*) # Portland Group C compiler
|
cannam@86
|
13969 whole_archive_flag_spec_F77=
|
cannam@86
|
13970 ;;
|
cannam@86
|
13971 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
|
cannam@86
|
13972 whole_archive_flag_spec_F77=
|
cannam@86
|
13973 tmp_addflag=' -fpic -Mnomain' ;;
|
cannam@86
|
13974 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
|
cannam@86
|
13975 tmp_addflag=' -i_dynamic' ;;
|
cannam@86
|
13976 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
|
cannam@86
|
13977 tmp_addflag=' -i_dynamic -nofor_main' ;;
|
cannam@86
|
13978 ifc* | ifort*) # Intel Fortran compiler
|
cannam@86
|
13979 tmp_addflag=' -nofor_main' ;;
|
cannam@86
|
13980 esac
|
cannam@86
|
13981 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
cannam@86
|
13982
|
cannam@86
|
13983 if test $supports_anon_versioning = yes; then
|
cannam@86
|
13984 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
|
cannam@86
|
13985 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
cannam@86
|
13986 $echo "local: *; };" >> $output_objdir/$libname.ver~
|
cannam@86
|
13987 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
|
cannam@86
|
13988 fi
|
cannam@86
|
13989 else
|
cannam@86
|
13990 ld_shlibs_F77=no
|
cannam@86
|
13991 fi
|
cannam@86
|
13992 ;;
|
cannam@86
|
13993
|
cannam@86
|
13994 netbsd*)
|
cannam@86
|
13995 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
cannam@86
|
13996 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
cannam@86
|
13997 wlarc=
|
cannam@86
|
13998 else
|
cannam@86
|
13999 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
cannam@86
|
14000 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
cannam@86
|
14001 fi
|
cannam@86
|
14002 ;;
|
cannam@86
|
14003
|
cannam@86
|
14004 solaris* | sysv5*)
|
cannam@86
|
14005 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
|
cannam@86
|
14006 ld_shlibs_F77=no
|
cannam@86
|
14007 cat <<EOF 1>&2
|
cannam@86
|
14008
|
cannam@86
|
14009 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
|
cannam@86
|
14010 *** create shared libraries on Solaris systems. Therefore, libtool
|
cannam@86
|
14011 *** is disabling shared libraries support. We urge you to upgrade GNU
|
cannam@86
|
14012 *** binutils to release 2.9.1 or newer. Another option is to modify
|
cannam@86
|
14013 *** your PATH or compiler configuration so that the native linker is
|
cannam@86
|
14014 *** used, and then restart.
|
cannam@86
|
14015
|
cannam@86
|
14016 EOF
|
cannam@86
|
14017 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
cannam@86
|
14018 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
cannam@86
|
14019 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
cannam@86
|
14020 else
|
cannam@86
|
14021 ld_shlibs_F77=no
|
cannam@86
|
14022 fi
|
cannam@86
|
14023 ;;
|
cannam@86
|
14024
|
cannam@86
|
14025 sunos4*)
|
cannam@86
|
14026 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
14027 wlarc=
|
cannam@86
|
14028 hardcode_direct_F77=yes
|
cannam@86
|
14029 hardcode_shlibpath_var_F77=no
|
cannam@86
|
14030 ;;
|
cannam@86
|
14031
|
cannam@86
|
14032 *)
|
cannam@86
|
14033 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
cannam@86
|
14034 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
cannam@86
|
14035 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
cannam@86
|
14036 else
|
cannam@86
|
14037 ld_shlibs_F77=no
|
cannam@86
|
14038 fi
|
cannam@86
|
14039 ;;
|
cannam@86
|
14040 esac
|
cannam@86
|
14041
|
cannam@86
|
14042 if test "$ld_shlibs_F77" = no; then
|
cannam@86
|
14043 runpath_var=
|
cannam@86
|
14044 hardcode_libdir_flag_spec_F77=
|
cannam@86
|
14045 export_dynamic_flag_spec_F77=
|
cannam@86
|
14046 whole_archive_flag_spec_F77=
|
cannam@86
|
14047 fi
|
cannam@86
|
14048 else
|
cannam@86
|
14049 # PORTME fill in a description of your system's linker (not GNU ld)
|
cannam@86
|
14050 case $host_os in
|
cannam@86
|
14051 aix3*)
|
cannam@86
|
14052 allow_undefined_flag_F77=unsupported
|
cannam@86
|
14053 always_export_symbols_F77=yes
|
cannam@86
|
14054 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
|
cannam@86
|
14055 # Note: this linker hardcodes the directories in LIBPATH if there
|
cannam@86
|
14056 # are no directories specified by -L.
|
cannam@86
|
14057 hardcode_minus_L_F77=yes
|
cannam@86
|
14058 if test "$GCC" = yes && test -z "$link_static_flag"; then
|
cannam@86
|
14059 # Neither direct hardcoding nor static linking is supported with a
|
cannam@86
|
14060 # broken collect2.
|
cannam@86
|
14061 hardcode_direct_F77=unsupported
|
cannam@86
|
14062 fi
|
cannam@86
|
14063 ;;
|
cannam@86
|
14064
|
cannam@86
|
14065 aix4* | aix5*)
|
cannam@86
|
14066 if test "$host_cpu" = ia64; then
|
cannam@86
|
14067 # On IA64, the linker does run time linking by default, so we don't
|
cannam@86
|
14068 # have to do anything special.
|
cannam@86
|
14069 aix_use_runtimelinking=no
|
cannam@86
|
14070 exp_sym_flag='-Bexport'
|
cannam@86
|
14071 no_entry_flag=""
|
cannam@86
|
14072 else
|
cannam@86
|
14073 # If we're using GNU nm, then we don't want the "-C" option.
|
cannam@86
|
14074 # -C means demangle to AIX nm, but means don't demangle with GNU nm
|
cannam@86
|
14075 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
|
cannam@86
|
14076 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
|
cannam@86
|
14077 else
|
cannam@86
|
14078 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
|
cannam@86
|
14079 fi
|
cannam@86
|
14080 aix_use_runtimelinking=no
|
cannam@86
|
14081
|
cannam@86
|
14082 # Test if we are trying to use run time linking or normal
|
cannam@86
|
14083 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
cannam@86
|
14084 # need to do runtime linking.
|
cannam@86
|
14085 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
|
cannam@86
|
14086 for ld_flag in $LDFLAGS; do
|
cannam@86
|
14087 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
|
cannam@86
|
14088 aix_use_runtimelinking=yes
|
cannam@86
|
14089 break
|
cannam@86
|
14090 fi
|
cannam@86
|
14091 done
|
cannam@86
|
14092 esac
|
cannam@86
|
14093
|
cannam@86
|
14094 exp_sym_flag='-bexport'
|
cannam@86
|
14095 no_entry_flag='-bnoentry'
|
cannam@86
|
14096 fi
|
cannam@86
|
14097
|
cannam@86
|
14098 # When large executables or shared objects are built, AIX ld can
|
cannam@86
|
14099 # have problems creating the table of contents. If linking a library
|
cannam@86
|
14100 # or program results in "error TOC overflow" add -mminimal-toc to
|
cannam@86
|
14101 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
cannam@86
|
14102 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
cannam@86
|
14103
|
cannam@86
|
14104 archive_cmds_F77=''
|
cannam@86
|
14105 hardcode_direct_F77=yes
|
cannam@86
|
14106 hardcode_libdir_separator_F77=':'
|
cannam@86
|
14107 link_all_deplibs_F77=yes
|
cannam@86
|
14108
|
cannam@86
|
14109 if test "$GCC" = yes; then
|
cannam@86
|
14110 case $host_os in aix4.[012]|aix4.[012].*)
|
cannam@86
|
14111 # We only want to do this on AIX 4.2 and lower, the check
|
cannam@86
|
14112 # below for broken collect2 doesn't work under 4.3+
|
cannam@86
|
14113 collect2name=`${CC} -print-prog-name=collect2`
|
cannam@86
|
14114 if test -f "$collect2name" && \
|
cannam@86
|
14115 strings "$collect2name" | grep resolve_lib_name >/dev/null
|
cannam@86
|
14116 then
|
cannam@86
|
14117 # We have reworked collect2
|
cannam@86
|
14118 hardcode_direct_F77=yes
|
cannam@86
|
14119 else
|
cannam@86
|
14120 # We have old collect2
|
cannam@86
|
14121 hardcode_direct_F77=unsupported
|
cannam@86
|
14122 # It fails to find uninstalled libraries when the uninstalled
|
cannam@86
|
14123 # path is not listed in the libpath. Setting hardcode_minus_L
|
cannam@86
|
14124 # to unsupported forces relinking
|
cannam@86
|
14125 hardcode_minus_L_F77=yes
|
cannam@86
|
14126 hardcode_libdir_flag_spec_F77='-L$libdir'
|
cannam@86
|
14127 hardcode_libdir_separator_F77=
|
cannam@86
|
14128 fi
|
cannam@86
|
14129 esac
|
cannam@86
|
14130 shared_flag='-shared'
|
cannam@86
|
14131 if test "$aix_use_runtimelinking" = yes; then
|
cannam@86
|
14132 shared_flag="$shared_flag "'${wl}-G'
|
cannam@86
|
14133 fi
|
cannam@86
|
14134 else
|
cannam@86
|
14135 # not using gcc
|
cannam@86
|
14136 if test "$host_cpu" = ia64; then
|
cannam@86
|
14137 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
cannam@86
|
14138 # chokes on -Wl,-G. The following line is correct:
|
cannam@86
|
14139 shared_flag='-G'
|
cannam@86
|
14140 else
|
cannam@86
|
14141 if test "$aix_use_runtimelinking" = yes; then
|
cannam@86
|
14142 shared_flag='${wl}-G'
|
cannam@86
|
14143 else
|
cannam@86
|
14144 shared_flag='${wl}-bM:SRE'
|
cannam@86
|
14145 fi
|
cannam@86
|
14146 fi
|
cannam@86
|
14147 fi
|
cannam@86
|
14148
|
cannam@86
|
14149 # It seems that -bexpall does not export symbols beginning with
|
cannam@86
|
14150 # underscore (_), so it is better to generate a list of symbols to export.
|
cannam@86
|
14151 always_export_symbols_F77=yes
|
cannam@86
|
14152 if test "$aix_use_runtimelinking" = yes; then
|
cannam@86
|
14153 # Warning - without using the other runtime loading flags (-brtl),
|
cannam@86
|
14154 # -berok will link without error, but may produce a broken library.
|
cannam@86
|
14155 allow_undefined_flag_F77='-berok'
|
cannam@86
|
14156 # Determine the default libpath from the value encoded in an empty executable.
|
cannam@86
|
14157 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
14158 program main
|
cannam@86
|
14159
|
cannam@86
|
14160 end
|
cannam@86
|
14161 _ACEOF
|
cannam@86
|
14162 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@86
|
14163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@86
|
14164 (eval $ac_link) 2>conftest.er1
|
cannam@86
|
14165 ac_status=$?
|
cannam@86
|
14166 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
14167 rm -f conftest.er1
|
cannam@86
|
14168 cat conftest.err >&5
|
cannam@86
|
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
14170 (exit $ac_status); } &&
|
cannam@86
|
14171 { ac_try='test -z "$ac_f77_werror_flag"
|
cannam@86
|
14172 || test ! -s conftest.err'
|
cannam@86
|
14173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
14174 (eval $ac_try) 2>&5
|
cannam@86
|
14175 ac_status=$?
|
cannam@86
|
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
14177 (exit $ac_status); }; } &&
|
cannam@86
|
14178 { ac_try='test -s conftest$ac_exeext'
|
cannam@86
|
14179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
14180 (eval $ac_try) 2>&5
|
cannam@86
|
14181 ac_status=$?
|
cannam@86
|
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
14183 (exit $ac_status); }; }; then
|
cannam@86
|
14184
|
cannam@86
|
14185 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
|
cannam@86
|
14186 }'`
|
cannam@86
|
14187 # Check for a 64-bit object if we didn't find anything.
|
cannam@86
|
14188 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
|
cannam@86
|
14189 }'`; fi
|
cannam@86
|
14190 else
|
cannam@86
|
14191 echo "$as_me: failed program was:" >&5
|
cannam@86
|
14192 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
14193
|
cannam@86
|
14194 fi
|
cannam@86
|
14195 rm -f conftest.err conftest.$ac_objext \
|
cannam@86
|
14196 conftest$ac_exeext conftest.$ac_ext
|
cannam@86
|
14197 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
cannam@86
|
14198
|
cannam@86
|
14199 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
|
cannam@86
|
14200 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
cannam@86
|
14201 else
|
cannam@86
|
14202 if test "$host_cpu" = ia64; then
|
cannam@86
|
14203 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
|
cannam@86
|
14204 allow_undefined_flag_F77="-z nodefs"
|
cannam@86
|
14205 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
|
cannam@86
|
14206 else
|
cannam@86
|
14207 # Determine the default libpath from the value encoded in an empty executable.
|
cannam@86
|
14208 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
14209 program main
|
cannam@86
|
14210
|
cannam@86
|
14211 end
|
cannam@86
|
14212 _ACEOF
|
cannam@86
|
14213 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@86
|
14214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@86
|
14215 (eval $ac_link) 2>conftest.er1
|
cannam@86
|
14216 ac_status=$?
|
cannam@86
|
14217 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
14218 rm -f conftest.er1
|
cannam@86
|
14219 cat conftest.err >&5
|
cannam@86
|
14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
14221 (exit $ac_status); } &&
|
cannam@86
|
14222 { ac_try='test -z "$ac_f77_werror_flag"
|
cannam@86
|
14223 || test ! -s conftest.err'
|
cannam@86
|
14224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
14225 (eval $ac_try) 2>&5
|
cannam@86
|
14226 ac_status=$?
|
cannam@86
|
14227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
14228 (exit $ac_status); }; } &&
|
cannam@86
|
14229 { ac_try='test -s conftest$ac_exeext'
|
cannam@86
|
14230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
14231 (eval $ac_try) 2>&5
|
cannam@86
|
14232 ac_status=$?
|
cannam@86
|
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
14234 (exit $ac_status); }; }; then
|
cannam@86
|
14235
|
cannam@86
|
14236 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
|
cannam@86
|
14237 }'`
|
cannam@86
|
14238 # Check for a 64-bit object if we didn't find anything.
|
cannam@86
|
14239 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
|
cannam@86
|
14240 }'`; fi
|
cannam@86
|
14241 else
|
cannam@86
|
14242 echo "$as_me: failed program was:" >&5
|
cannam@86
|
14243 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
14244
|
cannam@86
|
14245 fi
|
cannam@86
|
14246 rm -f conftest.err conftest.$ac_objext \
|
cannam@86
|
14247 conftest$ac_exeext conftest.$ac_ext
|
cannam@86
|
14248 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
cannam@86
|
14249
|
cannam@86
|
14250 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
|
cannam@86
|
14251 # Warning - without using the other run time loading flags,
|
cannam@86
|
14252 # -berok will link without error, but may produce a broken library.
|
cannam@86
|
14253 no_undefined_flag_F77=' ${wl}-bernotok'
|
cannam@86
|
14254 allow_undefined_flag_F77=' ${wl}-berok'
|
cannam@86
|
14255 # -bexpall does not export symbols beginning with underscore (_)
|
cannam@86
|
14256 always_export_symbols_F77=yes
|
cannam@86
|
14257 # Exported symbols can be pulled into shared objects from archives
|
cannam@86
|
14258 whole_archive_flag_spec_F77=' '
|
cannam@86
|
14259 archive_cmds_need_lc_F77=yes
|
cannam@86
|
14260 # This is similar to how AIX traditionally builds it's shared libraries.
|
cannam@86
|
14261 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
|
cannam@86
|
14262 fi
|
cannam@86
|
14263 fi
|
cannam@86
|
14264 ;;
|
cannam@86
|
14265
|
cannam@86
|
14266 amigaos*)
|
cannam@86
|
14267 archive_cmds_F77='$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@86
|
14268 hardcode_libdir_flag_spec_F77='-L$libdir'
|
cannam@86
|
14269 hardcode_minus_L_F77=yes
|
cannam@86
|
14270 # see comment about different semantics on the GNU ld section
|
cannam@86
|
14271 ld_shlibs_F77=no
|
cannam@86
|
14272 ;;
|
cannam@86
|
14273
|
cannam@86
|
14274 bsdi[45]*)
|
cannam@86
|
14275 export_dynamic_flag_spec_F77=-rdynamic
|
cannam@86
|
14276 ;;
|
cannam@86
|
14277
|
cannam@86
|
14278 cygwin* | mingw* | pw32*)
|
cannam@86
|
14279 # When not using gcc, we currently assume that we are using
|
cannam@86
|
14280 # Microsoft Visual C++.
|
cannam@86
|
14281 # hardcode_libdir_flag_spec is actually meaningless, as there is
|
cannam@86
|
14282 # no search path for DLLs.
|
cannam@86
|
14283 hardcode_libdir_flag_spec_F77=' '
|
cannam@86
|
14284 allow_undefined_flag_F77=unsupported
|
cannam@86
|
14285 # Tell ltmain to make .lib files, not .a files.
|
cannam@86
|
14286 libext=lib
|
cannam@86
|
14287 # Tell ltmain to make .dll files, not .so files.
|
cannam@86
|
14288 shrext_cmds=".dll"
|
cannam@86
|
14289 # FIXME: Setting linknames here is a bad hack.
|
cannam@86
|
14290 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
|
cannam@86
|
14291 # The linker will automatically build a .lib file if we build a DLL.
|
cannam@86
|
14292 old_archive_From_new_cmds_F77='true'
|
cannam@86
|
14293 # FIXME: Should let the user specify the lib program.
|
cannam@86
|
14294 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
|
cannam@86
|
14295 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
|
cannam@86
|
14296 enable_shared_with_static_runtimes_F77=yes
|
cannam@86
|
14297 ;;
|
cannam@86
|
14298
|
cannam@86
|
14299 darwin* | rhapsody*)
|
cannam@86
|
14300 case "$host_os" in
|
cannam@86
|
14301 rhapsody* | darwin1.[012])
|
cannam@86
|
14302 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
|
cannam@86
|
14303 ;;
|
cannam@86
|
14304 *) # Darwin 1.3 on
|
cannam@86
|
14305 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
|
cannam@86
|
14306 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
cannam@86
|
14307 else
|
cannam@86
|
14308 case ${MACOSX_DEPLOYMENT_TARGET} in
|
cannam@86
|
14309 10.[012])
|
cannam@86
|
14310 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
cannam@86
|
14311 ;;
|
cannam@86
|
14312 10.*)
|
cannam@86
|
14313 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
|
cannam@86
|
14314 ;;
|
cannam@86
|
14315 esac
|
cannam@86
|
14316 fi
|
cannam@86
|
14317 ;;
|
cannam@86
|
14318 esac
|
cannam@86
|
14319 archive_cmds_need_lc_F77=no
|
cannam@86
|
14320 hardcode_direct_F77=no
|
cannam@86
|
14321 hardcode_automatic_F77=yes
|
cannam@86
|
14322 hardcode_shlibpath_var_F77=unsupported
|
cannam@86
|
14323 whole_archive_flag_spec_F77=''
|
cannam@86
|
14324 link_all_deplibs_F77=yes
|
cannam@86
|
14325 if test "$GCC" = yes ; then
|
cannam@86
|
14326 output_verbose_link_cmd='echo'
|
cannam@86
|
14327 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
|
cannam@86
|
14328 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
cannam@86
|
14329 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
|
cannam@86
|
14330 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
cannam@86
|
14331 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
cannam@86
|
14332 else
|
cannam@86
|
14333 case $cc_basename in
|
cannam@86
|
14334 xlc*)
|
cannam@86
|
14335 output_verbose_link_cmd='echo'
|
cannam@86
|
14336 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
|
cannam@86
|
14337 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
cannam@86
|
14338 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
|
cannam@86
|
14339 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
cannam@86
|
14340 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
cannam@86
|
14341 ;;
|
cannam@86
|
14342 *)
|
cannam@86
|
14343 ld_shlibs_F77=no
|
cannam@86
|
14344 ;;
|
cannam@86
|
14345 esac
|
cannam@86
|
14346 fi
|
cannam@86
|
14347 ;;
|
cannam@86
|
14348
|
cannam@86
|
14349 dgux*)
|
cannam@86
|
14350 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
14351 hardcode_libdir_flag_spec_F77='-L$libdir'
|
cannam@86
|
14352 hardcode_shlibpath_var_F77=no
|
cannam@86
|
14353 ;;
|
cannam@86
|
14354
|
cannam@86
|
14355 freebsd1*)
|
cannam@86
|
14356 ld_shlibs_F77=no
|
cannam@86
|
14357 ;;
|
cannam@86
|
14358
|
cannam@86
|
14359 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
|
cannam@86
|
14360 # support. Future versions do this automatically, but an explicit c++rt0.o
|
cannam@86
|
14361 # does not break anything, and helps significantly (at the cost of a little
|
cannam@86
|
14362 # extra space).
|
cannam@86
|
14363 freebsd2.2*)
|
cannam@86
|
14364 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
|
cannam@86
|
14365 hardcode_libdir_flag_spec_F77='-R$libdir'
|
cannam@86
|
14366 hardcode_direct_F77=yes
|
cannam@86
|
14367 hardcode_shlibpath_var_F77=no
|
cannam@86
|
14368 ;;
|
cannam@86
|
14369
|
cannam@86
|
14370 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
|
cannam@86
|
14371 freebsd2*)
|
cannam@86
|
14372 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
14373 hardcode_direct_F77=yes
|
cannam@86
|
14374 hardcode_minus_L_F77=yes
|
cannam@86
|
14375 hardcode_shlibpath_var_F77=no
|
cannam@86
|
14376 ;;
|
cannam@86
|
14377
|
cannam@86
|
14378 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
cannam@86
|
14379 freebsd* | kfreebsd*-gnu | dragonfly*)
|
cannam@86
|
14380 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@86
|
14381 hardcode_libdir_flag_spec_F77='-R$libdir'
|
cannam@86
|
14382 hardcode_direct_F77=yes
|
cannam@86
|
14383 hardcode_shlibpath_var_F77=no
|
cannam@86
|
14384 ;;
|
cannam@86
|
14385
|
cannam@86
|
14386 hpux9*)
|
cannam@86
|
14387 if test "$GCC" = yes; then
|
cannam@86
|
14388 archive_cmds_F77='$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@86
|
14389 else
|
cannam@86
|
14390 archive_cmds_F77='$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@86
|
14391 fi
|
cannam@86
|
14392 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
|
cannam@86
|
14393 hardcode_libdir_separator_F77=:
|
cannam@86
|
14394 hardcode_direct_F77=yes
|
cannam@86
|
14395
|
cannam@86
|
14396 # hardcode_minus_L: Not really in the search PATH,
|
cannam@86
|
14397 # but as the default location of the library.
|
cannam@86
|
14398 hardcode_minus_L_F77=yes
|
cannam@86
|
14399 export_dynamic_flag_spec_F77='${wl}-E'
|
cannam@86
|
14400 ;;
|
cannam@86
|
14401
|
cannam@86
|
14402 hpux10* | hpux11*)
|
cannam@86
|
14403 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
|
cannam@86
|
14404 case "$host_cpu" in
|
cannam@86
|
14405 hppa*64*|ia64*)
|
cannam@86
|
14406 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@86
|
14407 ;;
|
cannam@86
|
14408 *)
|
cannam@86
|
14409 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@86
|
14410 ;;
|
cannam@86
|
14411 esac
|
cannam@86
|
14412 else
|
cannam@86
|
14413 case "$host_cpu" in
|
cannam@86
|
14414 hppa*64*|ia64*)
|
cannam@86
|
14415 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
14416 ;;
|
cannam@86
|
14417 *)
|
cannam@86
|
14418 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
14419 ;;
|
cannam@86
|
14420 esac
|
cannam@86
|
14421 fi
|
cannam@86
|
14422 if test "$with_gnu_ld" = no; then
|
cannam@86
|
14423 case "$host_cpu" in
|
cannam@86
|
14424 hppa*64*)
|
cannam@86
|
14425 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
|
cannam@86
|
14426 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
|
cannam@86
|
14427 hardcode_libdir_separator_F77=:
|
cannam@86
|
14428 hardcode_direct_F77=no
|
cannam@86
|
14429 hardcode_shlibpath_var_F77=no
|
cannam@86
|
14430 ;;
|
cannam@86
|
14431 ia64*)
|
cannam@86
|
14432 hardcode_libdir_flag_spec_F77='-L$libdir'
|
cannam@86
|
14433 hardcode_direct_F77=no
|
cannam@86
|
14434 hardcode_shlibpath_var_F77=no
|
cannam@86
|
14435
|
cannam@86
|
14436 # hardcode_minus_L: Not really in the search PATH,
|
cannam@86
|
14437 # but as the default location of the library.
|
cannam@86
|
14438 hardcode_minus_L_F77=yes
|
cannam@86
|
14439 ;;
|
cannam@86
|
14440 *)
|
cannam@86
|
14441 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
|
cannam@86
|
14442 hardcode_libdir_separator_F77=:
|
cannam@86
|
14443 hardcode_direct_F77=yes
|
cannam@86
|
14444 export_dynamic_flag_spec_F77='${wl}-E'
|
cannam@86
|
14445
|
cannam@86
|
14446 # hardcode_minus_L: Not really in the search PATH,
|
cannam@86
|
14447 # but as the default location of the library.
|
cannam@86
|
14448 hardcode_minus_L_F77=yes
|
cannam@86
|
14449 ;;
|
cannam@86
|
14450 esac
|
cannam@86
|
14451 fi
|
cannam@86
|
14452 ;;
|
cannam@86
|
14453
|
cannam@86
|
14454 irix5* | irix6* | nonstopux*)
|
cannam@86
|
14455 if test "$GCC" = yes; then
|
cannam@86
|
14456 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
cannam@86
|
14457 else
|
cannam@86
|
14458 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
cannam@86
|
14459 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
|
cannam@86
|
14460 fi
|
cannam@86
|
14461 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
|
cannam@86
|
14462 hardcode_libdir_separator_F77=:
|
cannam@86
|
14463 link_all_deplibs_F77=yes
|
cannam@86
|
14464 ;;
|
cannam@86
|
14465
|
cannam@86
|
14466 netbsd*)
|
cannam@86
|
14467 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
cannam@86
|
14468 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
|
cannam@86
|
14469 else
|
cannam@86
|
14470 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
|
cannam@86
|
14471 fi
|
cannam@86
|
14472 hardcode_libdir_flag_spec_F77='-R$libdir'
|
cannam@86
|
14473 hardcode_direct_F77=yes
|
cannam@86
|
14474 hardcode_shlibpath_var_F77=no
|
cannam@86
|
14475 ;;
|
cannam@86
|
14476
|
cannam@86
|
14477 newsos6)
|
cannam@86
|
14478 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
14479 hardcode_direct_F77=yes
|
cannam@86
|
14480 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
|
cannam@86
|
14481 hardcode_libdir_separator_F77=:
|
cannam@86
|
14482 hardcode_shlibpath_var_F77=no
|
cannam@86
|
14483 ;;
|
cannam@86
|
14484
|
cannam@86
|
14485 openbsd*)
|
cannam@86
|
14486 hardcode_direct_F77=yes
|
cannam@86
|
14487 hardcode_shlibpath_var_F77=no
|
cannam@86
|
14488 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
cannam@86
|
14489 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@86
|
14490 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
|
cannam@86
|
14491 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
|
cannam@86
|
14492 export_dynamic_flag_spec_F77='${wl}-E'
|
cannam@86
|
14493 else
|
cannam@86
|
14494 case $host_os in
|
cannam@86
|
14495 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
|
cannam@86
|
14496 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
14497 hardcode_libdir_flag_spec_F77='-R$libdir'
|
cannam@86
|
14498 ;;
|
cannam@86
|
14499 *)
|
cannam@86
|
14500 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@86
|
14501 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
|
cannam@86
|
14502 ;;
|
cannam@86
|
14503 esac
|
cannam@86
|
14504 fi
|
cannam@86
|
14505 ;;
|
cannam@86
|
14506
|
cannam@86
|
14507 os2*)
|
cannam@86
|
14508 hardcode_libdir_flag_spec_F77='-L$libdir'
|
cannam@86
|
14509 hardcode_minus_L_F77=yes
|
cannam@86
|
14510 allow_undefined_flag_F77=unsupported
|
cannam@86
|
14511 archive_cmds_F77='$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@86
|
14512 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
|
cannam@86
|
14513 ;;
|
cannam@86
|
14514
|
cannam@86
|
14515 osf3*)
|
cannam@86
|
14516 if test "$GCC" = yes; then
|
cannam@86
|
14517 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
|
cannam@86
|
14518 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
cannam@86
|
14519 else
|
cannam@86
|
14520 allow_undefined_flag_F77=' -expect_unresolved \*'
|
cannam@86
|
14521 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
cannam@86
|
14522 fi
|
cannam@86
|
14523 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
|
cannam@86
|
14524 hardcode_libdir_separator_F77=:
|
cannam@86
|
14525 ;;
|
cannam@86
|
14526
|
cannam@86
|
14527 osf4* | osf5*) # as osf3* with the addition of -msym flag
|
cannam@86
|
14528 if test "$GCC" = yes; then
|
cannam@86
|
14529 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
|
cannam@86
|
14530 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
cannam@86
|
14531 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
|
cannam@86
|
14532 else
|
cannam@86
|
14533 allow_undefined_flag_F77=' -expect_unresolved \*'
|
cannam@86
|
14534 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
cannam@86
|
14535 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
|
cannam@86
|
14536 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
|
cannam@86
|
14537
|
cannam@86
|
14538 # Both c and cxx compiler support -rpath directly
|
cannam@86
|
14539 hardcode_libdir_flag_spec_F77='-rpath $libdir'
|
cannam@86
|
14540 fi
|
cannam@86
|
14541 hardcode_libdir_separator_F77=:
|
cannam@86
|
14542 ;;
|
cannam@86
|
14543
|
cannam@86
|
14544 sco3.2v5*)
|
cannam@86
|
14545 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
14546 hardcode_shlibpath_var_F77=no
|
cannam@86
|
14547 export_dynamic_flag_spec_F77='${wl}-Bexport'
|
cannam@86
|
14548 runpath_var=LD_RUN_PATH
|
cannam@86
|
14549 hardcode_runpath_var=yes
|
cannam@86
|
14550 ;;
|
cannam@86
|
14551
|
cannam@86
|
14552 solaris*)
|
cannam@86
|
14553 no_undefined_flag_F77=' -z text'
|
cannam@86
|
14554 if test "$GCC" = yes; then
|
cannam@86
|
14555 wlarc='${wl}'
|
cannam@86
|
14556 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@86
|
14557 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
cannam@86
|
14558 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
|
cannam@86
|
14559 else
|
cannam@86
|
14560 wlarc=''
|
cannam@86
|
14561 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
14562 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
cannam@86
|
14563 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
|
cannam@86
|
14564 fi
|
cannam@86
|
14565 hardcode_libdir_flag_spec_F77='-R$libdir'
|
cannam@86
|
14566 hardcode_shlibpath_var_F77=no
|
cannam@86
|
14567 case $host_os in
|
cannam@86
|
14568 solaris2.[0-5] | solaris2.[0-5].*) ;;
|
cannam@86
|
14569 *)
|
cannam@86
|
14570 # The compiler driver will combine linker options so we
|
cannam@86
|
14571 # cannot just pass the convience library names through
|
cannam@86
|
14572 # without $wl, iff we do not link with $LD.
|
cannam@86
|
14573 # Luckily, gcc supports the same syntax we need for Sun Studio.
|
cannam@86
|
14574 # Supported since Solaris 2.6 (maybe 2.5.1?)
|
cannam@86
|
14575 case $wlarc in
|
cannam@86
|
14576 '')
|
cannam@86
|
14577 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
|
cannam@86
|
14578 *)
|
cannam@86
|
14579 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
|
cannam@86
|
14580 esac ;;
|
cannam@86
|
14581 esac
|
cannam@86
|
14582 link_all_deplibs_F77=yes
|
cannam@86
|
14583 ;;
|
cannam@86
|
14584
|
cannam@86
|
14585 sunos4*)
|
cannam@86
|
14586 if test "x$host_vendor" = xsequent; then
|
cannam@86
|
14587 # Use $CC to link under sequent, because it throws in some extra .o
|
cannam@86
|
14588 # files that make .init and .fini sections work.
|
cannam@86
|
14589 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@86
|
14590 else
|
cannam@86
|
14591 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
14592 fi
|
cannam@86
|
14593 hardcode_libdir_flag_spec_F77='-L$libdir'
|
cannam@86
|
14594 hardcode_direct_F77=yes
|
cannam@86
|
14595 hardcode_minus_L_F77=yes
|
cannam@86
|
14596 hardcode_shlibpath_var_F77=no
|
cannam@86
|
14597 ;;
|
cannam@86
|
14598
|
cannam@86
|
14599 sysv4)
|
cannam@86
|
14600 case $host_vendor in
|
cannam@86
|
14601 sni)
|
cannam@86
|
14602 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
14603 hardcode_direct_F77=yes # is this really true???
|
cannam@86
|
14604 ;;
|
cannam@86
|
14605 siemens)
|
cannam@86
|
14606 ## LD is ld it makes a PLAMLIB
|
cannam@86
|
14607 ## CC just makes a GrossModule.
|
cannam@86
|
14608 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
14609 reload_cmds_F77='$CC -r -o $output$reload_objs'
|
cannam@86
|
14610 hardcode_direct_F77=no
|
cannam@86
|
14611 ;;
|
cannam@86
|
14612 motorola)
|
cannam@86
|
14613 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
14614 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
|
cannam@86
|
14615 ;;
|
cannam@86
|
14616 esac
|
cannam@86
|
14617 runpath_var='LD_RUN_PATH'
|
cannam@86
|
14618 hardcode_shlibpath_var_F77=no
|
cannam@86
|
14619 ;;
|
cannam@86
|
14620
|
cannam@86
|
14621 sysv4.3*)
|
cannam@86
|
14622 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
14623 hardcode_shlibpath_var_F77=no
|
cannam@86
|
14624 export_dynamic_flag_spec_F77='-Bexport'
|
cannam@86
|
14625 ;;
|
cannam@86
|
14626
|
cannam@86
|
14627 sysv4*MP*)
|
cannam@86
|
14628 if test -d /usr/nec; then
|
cannam@86
|
14629 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
14630 hardcode_shlibpath_var_F77=no
|
cannam@86
|
14631 runpath_var=LD_RUN_PATH
|
cannam@86
|
14632 hardcode_runpath_var=yes
|
cannam@86
|
14633 ld_shlibs_F77=yes
|
cannam@86
|
14634 fi
|
cannam@86
|
14635 ;;
|
cannam@86
|
14636
|
cannam@86
|
14637 sysv4.2uw2*)
|
cannam@86
|
14638 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
14639 hardcode_direct_F77=yes
|
cannam@86
|
14640 hardcode_minus_L_F77=no
|
cannam@86
|
14641 hardcode_shlibpath_var_F77=no
|
cannam@86
|
14642 hardcode_runpath_var=yes
|
cannam@86
|
14643 runpath_var=LD_RUN_PATH
|
cannam@86
|
14644 ;;
|
cannam@86
|
14645
|
cannam@86
|
14646 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
|
cannam@86
|
14647 no_undefined_flag_F77='${wl}-z ${wl}text'
|
cannam@86
|
14648 if test "$GCC" = yes; then
|
cannam@86
|
14649 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@86
|
14650 else
|
cannam@86
|
14651 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@86
|
14652 fi
|
cannam@86
|
14653 runpath_var='LD_RUN_PATH'
|
cannam@86
|
14654 hardcode_shlibpath_var_F77=no
|
cannam@86
|
14655 ;;
|
cannam@86
|
14656
|
cannam@86
|
14657 sysv5*)
|
cannam@86
|
14658 no_undefined_flag_F77=' -z text'
|
cannam@86
|
14659 # $CC -shared without GNU ld will not create a library from C++
|
cannam@86
|
14660 # object files and a static libstdc++, better avoid it by now
|
cannam@86
|
14661 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
14662 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
cannam@86
|
14663 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
|
cannam@86
|
14664 hardcode_libdir_flag_spec_F77=
|
cannam@86
|
14665 hardcode_shlibpath_var_F77=no
|
cannam@86
|
14666 runpath_var='LD_RUN_PATH'
|
cannam@86
|
14667 ;;
|
cannam@86
|
14668
|
cannam@86
|
14669 uts4*)
|
cannam@86
|
14670 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
14671 hardcode_libdir_flag_spec_F77='-L$libdir'
|
cannam@86
|
14672 hardcode_shlibpath_var_F77=no
|
cannam@86
|
14673 ;;
|
cannam@86
|
14674
|
cannam@86
|
14675 *)
|
cannam@86
|
14676 ld_shlibs_F77=no
|
cannam@86
|
14677 ;;
|
cannam@86
|
14678 esac
|
cannam@86
|
14679 fi
|
cannam@86
|
14680
|
cannam@86
|
14681 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
|
cannam@86
|
14682 echo "${ECHO_T}$ld_shlibs_F77" >&6
|
cannam@86
|
14683 test "$ld_shlibs_F77" = no && can_build_shared=no
|
cannam@86
|
14684
|
cannam@86
|
14685 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
cannam@86
|
14686 if test "$GCC" = yes; then
|
cannam@86
|
14687 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
cannam@86
|
14688 fi
|
cannam@86
|
14689
|
cannam@86
|
14690 #
|
cannam@86
|
14691 # Do we need to explicitly link libc?
|
cannam@86
|
14692 #
|
cannam@86
|
14693 case "x$archive_cmds_need_lc_F77" in
|
cannam@86
|
14694 x|xyes)
|
cannam@86
|
14695 # Assume -lc should be added
|
cannam@86
|
14696 archive_cmds_need_lc_F77=yes
|
cannam@86
|
14697
|
cannam@86
|
14698 if test "$enable_shared" = yes && test "$GCC" = yes; then
|
cannam@86
|
14699 case $archive_cmds_F77 in
|
cannam@86
|
14700 *'~'*)
|
cannam@86
|
14701 # FIXME: we may have to deal with multi-command sequences.
|
cannam@86
|
14702 ;;
|
cannam@86
|
14703 '$CC '*)
|
cannam@86
|
14704 # Test whether the compiler implicitly links with -lc since on some
|
cannam@86
|
14705 # systems, -lgcc has to come before -lc. If gcc already passes -lc
|
cannam@86
|
14706 # to ld, don't add -lc before -lgcc.
|
cannam@86
|
14707 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
|
cannam@86
|
14708 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
|
cannam@86
|
14709 $rm conftest*
|
cannam@86
|
14710 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
cannam@86
|
14711
|
cannam@86
|
14712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
14713 (eval $ac_compile) 2>&5
|
cannam@86
|
14714 ac_status=$?
|
cannam@86
|
14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
14716 (exit $ac_status); } 2>conftest.err; then
|
cannam@86
|
14717 soname=conftest
|
cannam@86
|
14718 lib=conftest
|
cannam@86
|
14719 libobjs=conftest.$ac_objext
|
cannam@86
|
14720 deplibs=
|
cannam@86
|
14721 wl=$lt_prog_compiler_wl_F77
|
cannam@86
|
14722 compiler_flags=-v
|
cannam@86
|
14723 linker_flags=-v
|
cannam@86
|
14724 verstring=
|
cannam@86
|
14725 output_objdir=.
|
cannam@86
|
14726 libname=conftest
|
cannam@86
|
14727 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
|
cannam@86
|
14728 allow_undefined_flag_F77=
|
cannam@86
|
14729 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
|
cannam@86
|
14730 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
|
cannam@86
|
14731 ac_status=$?
|
cannam@86
|
14732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
14733 (exit $ac_status); }
|
cannam@86
|
14734 then
|
cannam@86
|
14735 archive_cmds_need_lc_F77=no
|
cannam@86
|
14736 else
|
cannam@86
|
14737 archive_cmds_need_lc_F77=yes
|
cannam@86
|
14738 fi
|
cannam@86
|
14739 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
|
cannam@86
|
14740 else
|
cannam@86
|
14741 cat conftest.err 1>&5
|
cannam@86
|
14742 fi
|
cannam@86
|
14743 $rm conftest*
|
cannam@86
|
14744 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
|
cannam@86
|
14745 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
|
cannam@86
|
14746 ;;
|
cannam@86
|
14747 esac
|
cannam@86
|
14748 fi
|
cannam@86
|
14749 ;;
|
cannam@86
|
14750 esac
|
cannam@86
|
14751
|
cannam@86
|
14752 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
|
cannam@86
|
14753 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
|
cannam@86
|
14754 library_names_spec=
|
cannam@86
|
14755 libname_spec='lib$name'
|
cannam@86
|
14756 soname_spec=
|
cannam@86
|
14757 shrext_cmds=".so"
|
cannam@86
|
14758 postinstall_cmds=
|
cannam@86
|
14759 postuninstall_cmds=
|
cannam@86
|
14760 finish_cmds=
|
cannam@86
|
14761 finish_eval=
|
cannam@86
|
14762 shlibpath_var=
|
cannam@86
|
14763 shlibpath_overrides_runpath=unknown
|
cannam@86
|
14764 version_type=none
|
cannam@86
|
14765 dynamic_linker="$host_os ld.so"
|
cannam@86
|
14766 sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
cannam@86
|
14767 if test "$GCC" = yes; then
|
cannam@86
|
14768 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
cannam@86
|
14769 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
|
cannam@86
|
14770 # if the path contains ";" then we assume it to be the separator
|
cannam@86
|
14771 # otherwise default to the standard path separator (i.e. ":") - it is
|
cannam@86
|
14772 # assumed that no part of a normal pathname contains ";" but that should
|
cannam@86
|
14773 # okay in the real world where ";" in dirpaths is itself problematic.
|
cannam@86
|
14774 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
cannam@86
|
14775 else
|
cannam@86
|
14776 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
cannam@86
|
14777 fi
|
cannam@86
|
14778 else
|
cannam@86
|
14779 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
|
cannam@86
|
14780 fi
|
cannam@86
|
14781 need_lib_prefix=unknown
|
cannam@86
|
14782 hardcode_into_libs=no
|
cannam@86
|
14783
|
cannam@86
|
14784 # when you set need_version to no, make sure it does not cause -set_version
|
cannam@86
|
14785 # flags to be left without arguments
|
cannam@86
|
14786 need_version=unknown
|
cannam@86
|
14787
|
cannam@86
|
14788 case $host_os in
|
cannam@86
|
14789 aix3*)
|
cannam@86
|
14790 version_type=linux
|
cannam@86
|
14791 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
|
cannam@86
|
14792 shlibpath_var=LIBPATH
|
cannam@86
|
14793
|
cannam@86
|
14794 # AIX 3 has no versioning support, so we append a major version to the name.
|
cannam@86
|
14795 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
14796 ;;
|
cannam@86
|
14797
|
cannam@86
|
14798 aix4* | aix5*)
|
cannam@86
|
14799 version_type=linux
|
cannam@86
|
14800 need_lib_prefix=no
|
cannam@86
|
14801 need_version=no
|
cannam@86
|
14802 hardcode_into_libs=yes
|
cannam@86
|
14803 if test "$host_cpu" = ia64; then
|
cannam@86
|
14804 # AIX 5 supports IA64
|
cannam@86
|
14805 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
|
cannam@86
|
14806 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
14807 else
|
cannam@86
|
14808 # With GCC up to 2.95.x, collect2 would create an import file
|
cannam@86
|
14809 # for dependence libraries. The import file would start with
|
cannam@86
|
14810 # the line `#! .'. This would cause the generated library to
|
cannam@86
|
14811 # depend on `.', always an invalid library. This was fixed in
|
cannam@86
|
14812 # development snapshots of GCC prior to 3.0.
|
cannam@86
|
14813 case $host_os in
|
cannam@86
|
14814 aix4 | aix4.[01] | aix4.[01].*)
|
cannam@86
|
14815 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
|
cannam@86
|
14816 echo ' yes '
|
cannam@86
|
14817 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
|
cannam@86
|
14818 :
|
cannam@86
|
14819 else
|
cannam@86
|
14820 can_build_shared=no
|
cannam@86
|
14821 fi
|
cannam@86
|
14822 ;;
|
cannam@86
|
14823 esac
|
cannam@86
|
14824 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
|
cannam@86
|
14825 # soname into executable. Probably we can add versioning support to
|
cannam@86
|
14826 # collect2, so additional links can be useful in future.
|
cannam@86
|
14827 if test "$aix_use_runtimelinking" = yes; then
|
cannam@86
|
14828 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
|
cannam@86
|
14829 # instead of lib<name>.a to let people know that these are not
|
cannam@86
|
14830 # typical AIX shared libraries.
|
cannam@86
|
14831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
14832 else
|
cannam@86
|
14833 # We preserve .a as extension for shared libraries through AIX4.2
|
cannam@86
|
14834 # and later when we are not doing run time linking.
|
cannam@86
|
14835 library_names_spec='${libname}${release}.a $libname.a'
|
cannam@86
|
14836 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
14837 fi
|
cannam@86
|
14838 shlibpath_var=LIBPATH
|
cannam@86
|
14839 fi
|
cannam@86
|
14840 ;;
|
cannam@86
|
14841
|
cannam@86
|
14842 amigaos*)
|
cannam@86
|
14843 library_names_spec='$libname.ixlibrary $libname.a'
|
cannam@86
|
14844 # Create ${libname}_ixlibrary.a entries in /sys/libs.
|
cannam@86
|
14845 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@86
|
14846 ;;
|
cannam@86
|
14847
|
cannam@86
|
14848 beos*)
|
cannam@86
|
14849 library_names_spec='${libname}${shared_ext}'
|
cannam@86
|
14850 dynamic_linker="$host_os ld.so"
|
cannam@86
|
14851 shlibpath_var=LIBRARY_PATH
|
cannam@86
|
14852 ;;
|
cannam@86
|
14853
|
cannam@86
|
14854 bsdi[45]*)
|
cannam@86
|
14855 version_type=linux
|
cannam@86
|
14856 need_version=no
|
cannam@86
|
14857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
14858 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
14859 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
|
cannam@86
|
14860 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
14861 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
|
cannam@86
|
14862 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
|
cannam@86
|
14863 # the default ld.so.conf also contains /usr/contrib/lib and
|
cannam@86
|
14864 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
|
cannam@86
|
14865 # libtool to hard-code these into programs
|
cannam@86
|
14866 ;;
|
cannam@86
|
14867
|
cannam@86
|
14868 cygwin* | mingw* | pw32*)
|
cannam@86
|
14869 version_type=windows
|
cannam@86
|
14870 shrext_cmds=".dll"
|
cannam@86
|
14871 need_version=no
|
cannam@86
|
14872 need_lib_prefix=no
|
cannam@86
|
14873
|
cannam@86
|
14874 case $GCC,$host_os in
|
cannam@86
|
14875 yes,cygwin* | yes,mingw* | yes,pw32*)
|
cannam@86
|
14876 library_names_spec='$libname.dll.a'
|
cannam@86
|
14877 # DLL is installed to $(libdir)/../bin by postinstall_cmds
|
cannam@86
|
14878 postinstall_cmds='base_file=`basename \${file}`~
|
cannam@86
|
14879 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
|
cannam@86
|
14880 dldir=$destdir/`dirname \$dlpath`~
|
cannam@86
|
14881 test -d \$dldir || mkdir -p \$dldir~
|
cannam@86
|
14882 $install_prog $dir/$dlname \$dldir/$dlname'
|
cannam@86
|
14883 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
cannam@86
|
14884 dlpath=$dir/\$dldll~
|
cannam@86
|
14885 $rm \$dlpath'
|
cannam@86
|
14886 shlibpath_overrides_runpath=yes
|
cannam@86
|
14887
|
cannam@86
|
14888 case $host_os in
|
cannam@86
|
14889 cygwin*)
|
cannam@86
|
14890 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
|
cannam@86
|
14891 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
cannam@86
|
14892 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
|
cannam@86
|
14893 ;;
|
cannam@86
|
14894 mingw*)
|
cannam@86
|
14895 # MinGW DLLs use traditional 'lib' prefix
|
cannam@86
|
14896 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
cannam@86
|
14897 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
cannam@86
|
14898 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
|
cannam@86
|
14899 # It is most probably a Windows format PATH printed by
|
cannam@86
|
14900 # mingw gcc, but we are running on Cygwin. Gcc prints its search
|
cannam@86
|
14901 # path with ; separators, and with drive letters. We can handle the
|
cannam@86
|
14902 # drive letters (cygwin fileutils understands them), so leave them,
|
cannam@86
|
14903 # especially as we might pass files found there to a mingw objdump,
|
cannam@86
|
14904 # which wouldn't understand a cygwinified path. Ahh.
|
cannam@86
|
14905 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
cannam@86
|
14906 else
|
cannam@86
|
14907 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
cannam@86
|
14908 fi
|
cannam@86
|
14909 ;;
|
cannam@86
|
14910 pw32*)
|
cannam@86
|
14911 # pw32 DLLs use 'pw' prefix rather than 'lib'
|
cannam@86
|
14912 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
cannam@86
|
14913 ;;
|
cannam@86
|
14914 esac
|
cannam@86
|
14915 ;;
|
cannam@86
|
14916
|
cannam@86
|
14917 *)
|
cannam@86
|
14918 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
cannam@86
|
14919 ;;
|
cannam@86
|
14920 esac
|
cannam@86
|
14921 dynamic_linker='Win32 ld.exe'
|
cannam@86
|
14922 # FIXME: first we should search . and the directory the executable is in
|
cannam@86
|
14923 shlibpath_var=PATH
|
cannam@86
|
14924 ;;
|
cannam@86
|
14925
|
cannam@86
|
14926 darwin* | rhapsody*)
|
cannam@86
|
14927 dynamic_linker="$host_os dyld"
|
cannam@86
|
14928 version_type=darwin
|
cannam@86
|
14929 need_lib_prefix=no
|
cannam@86
|
14930 need_version=no
|
cannam@86
|
14931 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
|
cannam@86
|
14932 soname_spec='${libname}${release}${major}$shared_ext'
|
cannam@86
|
14933 shlibpath_overrides_runpath=yes
|
cannam@86
|
14934 shlibpath_var=DYLD_LIBRARY_PATH
|
cannam@86
|
14935 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
|
cannam@86
|
14936 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
|
cannam@86
|
14937 if test "$GCC" = yes; then
|
cannam@86
|
14938 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
|
cannam@86
|
14939 else
|
cannam@86
|
14940 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
|
cannam@86
|
14941 fi
|
cannam@86
|
14942 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
|
cannam@86
|
14943 ;;
|
cannam@86
|
14944
|
cannam@86
|
14945 dgux*)
|
cannam@86
|
14946 version_type=linux
|
cannam@86
|
14947 need_lib_prefix=no
|
cannam@86
|
14948 need_version=no
|
cannam@86
|
14949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
|
cannam@86
|
14950 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
14951 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
14952 ;;
|
cannam@86
|
14953
|
cannam@86
|
14954 freebsd1*)
|
cannam@86
|
14955 dynamic_linker=no
|
cannam@86
|
14956 ;;
|
cannam@86
|
14957
|
cannam@86
|
14958 kfreebsd*-gnu)
|
cannam@86
|
14959 version_type=linux
|
cannam@86
|
14960 need_lib_prefix=no
|
cannam@86
|
14961 need_version=no
|
cannam@86
|
14962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
cannam@86
|
14963 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
14964 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
14965 shlibpath_overrides_runpath=no
|
cannam@86
|
14966 hardcode_into_libs=yes
|
cannam@86
|
14967 dynamic_linker='GNU ld.so'
|
cannam@86
|
14968 ;;
|
cannam@86
|
14969
|
cannam@86
|
14970 freebsd* | dragonfly*)
|
cannam@86
|
14971 # DragonFly does not have aout. When/if they implement a new
|
cannam@86
|
14972 # versioning mechanism, adjust this.
|
cannam@86
|
14973 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
|
cannam@86
|
14974 version_type=freebsd-$objformat
|
cannam@86
|
14975 case $version_type in
|
cannam@86
|
14976 freebsd-elf*)
|
cannam@86
|
14977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
cannam@86
|
14978 need_version=no
|
cannam@86
|
14979 need_lib_prefix=no
|
cannam@86
|
14980 ;;
|
cannam@86
|
14981 freebsd-*)
|
cannam@86
|
14982 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
|
cannam@86
|
14983 need_version=yes
|
cannam@86
|
14984 ;;
|
cannam@86
|
14985 esac
|
cannam@86
|
14986 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
14987 case $host_os in
|
cannam@86
|
14988 freebsd2*)
|
cannam@86
|
14989 shlibpath_overrides_runpath=yes
|
cannam@86
|
14990 ;;
|
cannam@86
|
14991 freebsd3.[01]* | freebsdelf3.[01]*)
|
cannam@86
|
14992 shlibpath_overrides_runpath=yes
|
cannam@86
|
14993 hardcode_into_libs=yes
|
cannam@86
|
14994 ;;
|
cannam@86
|
14995 *) # from 3.2 on
|
cannam@86
|
14996 shlibpath_overrides_runpath=no
|
cannam@86
|
14997 hardcode_into_libs=yes
|
cannam@86
|
14998 ;;
|
cannam@86
|
14999 esac
|
cannam@86
|
15000 ;;
|
cannam@86
|
15001
|
cannam@86
|
15002 gnu*)
|
cannam@86
|
15003 version_type=linux
|
cannam@86
|
15004 need_lib_prefix=no
|
cannam@86
|
15005 need_version=no
|
cannam@86
|
15006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
|
cannam@86
|
15007 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
15008 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
15009 hardcode_into_libs=yes
|
cannam@86
|
15010 ;;
|
cannam@86
|
15011
|
cannam@86
|
15012 hpux9* | hpux10* | hpux11*)
|
cannam@86
|
15013 # Give a soname corresponding to the major version so that dld.sl refuses to
|
cannam@86
|
15014 # link against other versions.
|
cannam@86
|
15015 version_type=sunos
|
cannam@86
|
15016 need_lib_prefix=no
|
cannam@86
|
15017 need_version=no
|
cannam@86
|
15018 case "$host_cpu" in
|
cannam@86
|
15019 ia64*)
|
cannam@86
|
15020 shrext_cmds='.so'
|
cannam@86
|
15021 hardcode_into_libs=yes
|
cannam@86
|
15022 dynamic_linker="$host_os dld.so"
|
cannam@86
|
15023 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
15024 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
cannam@86
|
15025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
15026 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
15027 if test "X$HPUX_IA64_MODE" = X32; then
|
cannam@86
|
15028 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
|
cannam@86
|
15029 else
|
cannam@86
|
15030 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
|
cannam@86
|
15031 fi
|
cannam@86
|
15032 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
cannam@86
|
15033 ;;
|
cannam@86
|
15034 hppa*64*)
|
cannam@86
|
15035 shrext_cmds='.sl'
|
cannam@86
|
15036 hardcode_into_libs=yes
|
cannam@86
|
15037 dynamic_linker="$host_os dld.sl"
|
cannam@86
|
15038 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
|
cannam@86
|
15039 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
cannam@86
|
15040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
15041 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
15042 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
|
cannam@86
|
15043 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
cannam@86
|
15044 ;;
|
cannam@86
|
15045 *)
|
cannam@86
|
15046 shrext_cmds='.sl'
|
cannam@86
|
15047 dynamic_linker="$host_os dld.sl"
|
cannam@86
|
15048 shlibpath_var=SHLIB_PATH
|
cannam@86
|
15049 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
|
cannam@86
|
15050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
15051 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
15052 ;;
|
cannam@86
|
15053 esac
|
cannam@86
|
15054 # HP-UX runs *really* slowly unless shared libraries are mode 555.
|
cannam@86
|
15055 postinstall_cmds='chmod 555 $lib'
|
cannam@86
|
15056 ;;
|
cannam@86
|
15057
|
cannam@86
|
15058 irix5* | irix6* | nonstopux*)
|
cannam@86
|
15059 case $host_os in
|
cannam@86
|
15060 nonstopux*) version_type=nonstopux ;;
|
cannam@86
|
15061 *)
|
cannam@86
|
15062 if test "$lt_cv_prog_gnu_ld" = yes; then
|
cannam@86
|
15063 version_type=linux
|
cannam@86
|
15064 else
|
cannam@86
|
15065 version_type=irix
|
cannam@86
|
15066 fi ;;
|
cannam@86
|
15067 esac
|
cannam@86
|
15068 need_lib_prefix=no
|
cannam@86
|
15069 need_version=no
|
cannam@86
|
15070 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
15071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
|
cannam@86
|
15072 case $host_os in
|
cannam@86
|
15073 irix5* | nonstopux*)
|
cannam@86
|
15074 libsuff= shlibsuff=
|
cannam@86
|
15075 ;;
|
cannam@86
|
15076 *)
|
cannam@86
|
15077 case $LD in # libtool.m4 will add one of these switches to LD
|
cannam@86
|
15078 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
|
cannam@86
|
15079 libsuff= shlibsuff= libmagic=32-bit;;
|
cannam@86
|
15080 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
|
cannam@86
|
15081 libsuff=32 shlibsuff=N32 libmagic=N32;;
|
cannam@86
|
15082 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
|
cannam@86
|
15083 libsuff=64 shlibsuff=64 libmagic=64-bit;;
|
cannam@86
|
15084 *) libsuff= shlibsuff= libmagic=never-match;;
|
cannam@86
|
15085 esac
|
cannam@86
|
15086 ;;
|
cannam@86
|
15087 esac
|
cannam@86
|
15088 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
|
cannam@86
|
15089 shlibpath_overrides_runpath=no
|
cannam@86
|
15090 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
|
cannam@86
|
15091 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
|
cannam@86
|
15092 hardcode_into_libs=yes
|
cannam@86
|
15093 ;;
|
cannam@86
|
15094
|
cannam@86
|
15095 # No shared lib support for Linux oldld, aout, or coff.
|
cannam@86
|
15096 linux*oldld* | linux*aout* | linux*coff*)
|
cannam@86
|
15097 dynamic_linker=no
|
cannam@86
|
15098 ;;
|
cannam@86
|
15099
|
cannam@86
|
15100 # This must be Linux ELF.
|
cannam@86
|
15101 linux*)
|
cannam@86
|
15102 version_type=linux
|
cannam@86
|
15103 need_lib_prefix=no
|
cannam@86
|
15104 need_version=no
|
cannam@86
|
15105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
15106 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
15107 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
cannam@86
|
15108 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
15109 shlibpath_overrides_runpath=no
|
cannam@86
|
15110 # This implies no fast_install, which is unacceptable.
|
cannam@86
|
15111 # Some rework will be needed to allow for fast_install
|
cannam@86
|
15112 # before this can be enabled.
|
cannam@86
|
15113 hardcode_into_libs=yes
|
cannam@86
|
15114
|
cannam@86
|
15115 # find out which ABI we are using
|
cannam@86
|
15116 libsuff=
|
cannam@86
|
15117 case "$host_cpu" in
|
cannam@86
|
15118 x86_64*|s390x*|powerpc64*)
|
cannam@86
|
15119 echo '#line 15119 "configure"' > conftest.$ac_ext
|
cannam@86
|
15120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
15121 (eval $ac_compile) 2>&5
|
cannam@86
|
15122 ac_status=$?
|
cannam@86
|
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
15124 (exit $ac_status); }; then
|
cannam@86
|
15125 case `/usr/bin/file conftest.$ac_objext` in
|
cannam@86
|
15126 *64-bit*)
|
cannam@86
|
15127 libsuff=64
|
cannam@86
|
15128 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
|
cannam@86
|
15129 ;;
|
cannam@86
|
15130 esac
|
cannam@86
|
15131 fi
|
cannam@86
|
15132 rm -rf conftest*
|
cannam@86
|
15133 ;;
|
cannam@86
|
15134 esac
|
cannam@86
|
15135
|
cannam@86
|
15136 # Append ld.so.conf contents to the search path
|
cannam@86
|
15137 if test -f /etc/ld.so.conf; then
|
cannam@86
|
15138 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
|
cannam@86
|
15139 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
|
cannam@86
|
15140 fi
|
cannam@86
|
15141
|
cannam@86
|
15142 # We used to test for /lib/ld.so.1 and disable shared libraries on
|
cannam@86
|
15143 # powerpc, because MkLinux only supported shared libraries with the
|
cannam@86
|
15144 # GNU dynamic linker. Since this was broken with cross compilers,
|
cannam@86
|
15145 # most powerpc-linux boxes support dynamic linking these days and
|
cannam@86
|
15146 # people can always --disable-shared, the test was removed, and we
|
cannam@86
|
15147 # assume the GNU/Linux dynamic linker is in use.
|
cannam@86
|
15148 dynamic_linker='GNU/Linux ld.so'
|
cannam@86
|
15149 ;;
|
cannam@86
|
15150
|
cannam@86
|
15151 knetbsd*-gnu)
|
cannam@86
|
15152 version_type=linux
|
cannam@86
|
15153 need_lib_prefix=no
|
cannam@86
|
15154 need_version=no
|
cannam@86
|
15155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
cannam@86
|
15156 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
15157 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
15158 shlibpath_overrides_runpath=no
|
cannam@86
|
15159 hardcode_into_libs=yes
|
cannam@86
|
15160 dynamic_linker='GNU ld.so'
|
cannam@86
|
15161 ;;
|
cannam@86
|
15162
|
cannam@86
|
15163 netbsd*)
|
cannam@86
|
15164 version_type=sunos
|
cannam@86
|
15165 need_lib_prefix=no
|
cannam@86
|
15166 need_version=no
|
cannam@86
|
15167 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
cannam@86
|
15168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
cannam@86
|
15169 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
cannam@86
|
15170 dynamic_linker='NetBSD (a.out) ld.so'
|
cannam@86
|
15171 else
|
cannam@86
|
15172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
cannam@86
|
15173 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
15174 dynamic_linker='NetBSD ld.elf_so'
|
cannam@86
|
15175 fi
|
cannam@86
|
15176 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
15177 shlibpath_overrides_runpath=yes
|
cannam@86
|
15178 hardcode_into_libs=yes
|
cannam@86
|
15179 ;;
|
cannam@86
|
15180
|
cannam@86
|
15181 newsos6)
|
cannam@86
|
15182 version_type=linux
|
cannam@86
|
15183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
15184 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
15185 shlibpath_overrides_runpath=yes
|
cannam@86
|
15186 ;;
|
cannam@86
|
15187
|
cannam@86
|
15188 nto-qnx*)
|
cannam@86
|
15189 version_type=linux
|
cannam@86
|
15190 need_lib_prefix=no
|
cannam@86
|
15191 need_version=no
|
cannam@86
|
15192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
15193 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
15194 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
15195 shlibpath_overrides_runpath=yes
|
cannam@86
|
15196 ;;
|
cannam@86
|
15197
|
cannam@86
|
15198 openbsd*)
|
cannam@86
|
15199 version_type=sunos
|
cannam@86
|
15200 need_lib_prefix=no
|
cannam@86
|
15201 need_version=no
|
cannam@86
|
15202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
cannam@86
|
15203 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
cannam@86
|
15204 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
15205 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
cannam@86
|
15206 case $host_os in
|
cannam@86
|
15207 openbsd2.[89] | openbsd2.[89].*)
|
cannam@86
|
15208 shlibpath_overrides_runpath=no
|
cannam@86
|
15209 ;;
|
cannam@86
|
15210 *)
|
cannam@86
|
15211 shlibpath_overrides_runpath=yes
|
cannam@86
|
15212 ;;
|
cannam@86
|
15213 esac
|
cannam@86
|
15214 else
|
cannam@86
|
15215 shlibpath_overrides_runpath=yes
|
cannam@86
|
15216 fi
|
cannam@86
|
15217 ;;
|
cannam@86
|
15218
|
cannam@86
|
15219 os2*)
|
cannam@86
|
15220 libname_spec='$name'
|
cannam@86
|
15221 shrext_cmds=".dll"
|
cannam@86
|
15222 need_lib_prefix=no
|
cannam@86
|
15223 library_names_spec='$libname${shared_ext} $libname.a'
|
cannam@86
|
15224 dynamic_linker='OS/2 ld.exe'
|
cannam@86
|
15225 shlibpath_var=LIBPATH
|
cannam@86
|
15226 ;;
|
cannam@86
|
15227
|
cannam@86
|
15228 osf3* | osf4* | osf5*)
|
cannam@86
|
15229 version_type=osf
|
cannam@86
|
15230 need_lib_prefix=no
|
cannam@86
|
15231 need_version=no
|
cannam@86
|
15232 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
15233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
15234 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
15235 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
|
cannam@86
|
15236 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
|
cannam@86
|
15237 ;;
|
cannam@86
|
15238
|
cannam@86
|
15239 sco3.2v5*)
|
cannam@86
|
15240 version_type=osf
|
cannam@86
|
15241 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
15242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
15243 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
15244 ;;
|
cannam@86
|
15245
|
cannam@86
|
15246 solaris*)
|
cannam@86
|
15247 version_type=linux
|
cannam@86
|
15248 need_lib_prefix=no
|
cannam@86
|
15249 need_version=no
|
cannam@86
|
15250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
15251 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
15252 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
15253 shlibpath_overrides_runpath=yes
|
cannam@86
|
15254 hardcode_into_libs=yes
|
cannam@86
|
15255 # ldd complains unless libraries are executable
|
cannam@86
|
15256 postinstall_cmds='chmod +x $lib'
|
cannam@86
|
15257 ;;
|
cannam@86
|
15258
|
cannam@86
|
15259 sunos4*)
|
cannam@86
|
15260 version_type=sunos
|
cannam@86
|
15261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
cannam@86
|
15262 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
|
cannam@86
|
15263 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
15264 shlibpath_overrides_runpath=yes
|
cannam@86
|
15265 if test "$with_gnu_ld" = yes; then
|
cannam@86
|
15266 need_lib_prefix=no
|
cannam@86
|
15267 fi
|
cannam@86
|
15268 need_version=yes
|
cannam@86
|
15269 ;;
|
cannam@86
|
15270
|
cannam@86
|
15271 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
cannam@86
|
15272 version_type=linux
|
cannam@86
|
15273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
15274 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
15275 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
15276 case $host_vendor in
|
cannam@86
|
15277 sni)
|
cannam@86
|
15278 shlibpath_overrides_runpath=no
|
cannam@86
|
15279 need_lib_prefix=no
|
cannam@86
|
15280 export_dynamic_flag_spec='${wl}-Blargedynsym'
|
cannam@86
|
15281 runpath_var=LD_RUN_PATH
|
cannam@86
|
15282 ;;
|
cannam@86
|
15283 siemens)
|
cannam@86
|
15284 need_lib_prefix=no
|
cannam@86
|
15285 ;;
|
cannam@86
|
15286 motorola)
|
cannam@86
|
15287 need_lib_prefix=no
|
cannam@86
|
15288 need_version=no
|
cannam@86
|
15289 shlibpath_overrides_runpath=no
|
cannam@86
|
15290 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
|
cannam@86
|
15291 ;;
|
cannam@86
|
15292 esac
|
cannam@86
|
15293 ;;
|
cannam@86
|
15294
|
cannam@86
|
15295 sysv4*MP*)
|
cannam@86
|
15296 if test -d /usr/nec ;then
|
cannam@86
|
15297 version_type=linux
|
cannam@86
|
15298 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
|
cannam@86
|
15299 soname_spec='$libname${shared_ext}.$major'
|
cannam@86
|
15300 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
15301 fi
|
cannam@86
|
15302 ;;
|
cannam@86
|
15303
|
cannam@86
|
15304 uts4*)
|
cannam@86
|
15305 version_type=linux
|
cannam@86
|
15306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
15307 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
15308 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
15309 ;;
|
cannam@86
|
15310
|
cannam@86
|
15311 *)
|
cannam@86
|
15312 dynamic_linker=no
|
cannam@86
|
15313 ;;
|
cannam@86
|
15314 esac
|
cannam@86
|
15315 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
|
cannam@86
|
15316 echo "${ECHO_T}$dynamic_linker" >&6
|
cannam@86
|
15317 test "$dynamic_linker" = no && can_build_shared=no
|
cannam@86
|
15318
|
cannam@86
|
15319 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
|
cannam@86
|
15320 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
|
cannam@86
|
15321 hardcode_action_F77=
|
cannam@86
|
15322 if test -n "$hardcode_libdir_flag_spec_F77" || \
|
cannam@86
|
15323 test -n "$runpath_var_F77" || \
|
cannam@86
|
15324 test "X$hardcode_automatic_F77" = "Xyes" ; then
|
cannam@86
|
15325
|
cannam@86
|
15326 # We can hardcode non-existant directories.
|
cannam@86
|
15327 if test "$hardcode_direct_F77" != no &&
|
cannam@86
|
15328 # If the only mechanism to avoid hardcoding is shlibpath_var, we
|
cannam@86
|
15329 # have to relink, otherwise we might link with an installed library
|
cannam@86
|
15330 # when we should be linking with a yet-to-be-installed one
|
cannam@86
|
15331 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
|
cannam@86
|
15332 test "$hardcode_minus_L_F77" != no; then
|
cannam@86
|
15333 # Linking always hardcodes the temporary library directory.
|
cannam@86
|
15334 hardcode_action_F77=relink
|
cannam@86
|
15335 else
|
cannam@86
|
15336 # We can link without hardcoding, and we can hardcode nonexisting dirs.
|
cannam@86
|
15337 hardcode_action_F77=immediate
|
cannam@86
|
15338 fi
|
cannam@86
|
15339 else
|
cannam@86
|
15340 # We cannot hardcode anything, or else we can only hardcode existing
|
cannam@86
|
15341 # directories.
|
cannam@86
|
15342 hardcode_action_F77=unsupported
|
cannam@86
|
15343 fi
|
cannam@86
|
15344 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
|
cannam@86
|
15345 echo "${ECHO_T}$hardcode_action_F77" >&6
|
cannam@86
|
15346
|
cannam@86
|
15347 if test "$hardcode_action_F77" = relink; then
|
cannam@86
|
15348 # Fast installation is not supported
|
cannam@86
|
15349 enable_fast_install=no
|
cannam@86
|
15350 elif test "$shlibpath_overrides_runpath" = yes ||
|
cannam@86
|
15351 test "$enable_shared" = no; then
|
cannam@86
|
15352 # Fast installation is not necessary
|
cannam@86
|
15353 enable_fast_install=needless
|
cannam@86
|
15354 fi
|
cannam@86
|
15355
|
cannam@86
|
15356 striplib=
|
cannam@86
|
15357 old_striplib=
|
cannam@86
|
15358 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
|
cannam@86
|
15359 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
|
cannam@86
|
15360 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
|
cannam@86
|
15361 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
|
cannam@86
|
15362 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
|
cannam@86
|
15363 echo "$as_me:$LINENO: result: yes" >&5
|
cannam@86
|
15364 echo "${ECHO_T}yes" >&6
|
cannam@86
|
15365 else
|
cannam@86
|
15366 # FIXME - insert some real tests, host_os isn't really good enough
|
cannam@86
|
15367 case $host_os in
|
cannam@86
|
15368 darwin*)
|
cannam@86
|
15369 if test -n "$STRIP" ; then
|
cannam@86
|
15370 striplib="$STRIP -x"
|
cannam@86
|
15371 echo "$as_me:$LINENO: result: yes" >&5
|
cannam@86
|
15372 echo "${ECHO_T}yes" >&6
|
cannam@86
|
15373 else
|
cannam@86
|
15374 echo "$as_me:$LINENO: result: no" >&5
|
cannam@86
|
15375 echo "${ECHO_T}no" >&6
|
cannam@86
|
15376 fi
|
cannam@86
|
15377 ;;
|
cannam@86
|
15378 *)
|
cannam@86
|
15379 echo "$as_me:$LINENO: result: no" >&5
|
cannam@86
|
15380 echo "${ECHO_T}no" >&6
|
cannam@86
|
15381 ;;
|
cannam@86
|
15382 esac
|
cannam@86
|
15383 fi
|
cannam@86
|
15384
|
cannam@86
|
15385
|
cannam@86
|
15386
|
cannam@86
|
15387 # The else clause should only fire when bootstrapping the
|
cannam@86
|
15388 # libtool distribution, otherwise you forgot to ship ltmain.sh
|
cannam@86
|
15389 # with your package, and you will get complaints that there are
|
cannam@86
|
15390 # no rules to generate ltmain.sh.
|
cannam@86
|
15391 if test -f "$ltmain"; then
|
cannam@86
|
15392 # See if we are running on zsh, and set the options which allow our commands through
|
cannam@86
|
15393 # without removal of \ escapes.
|
cannam@86
|
15394 if test -n "${ZSH_VERSION+set}" ; then
|
cannam@86
|
15395 setopt NO_GLOB_SUBST
|
cannam@86
|
15396 fi
|
cannam@86
|
15397 # Now quote all the things that may contain metacharacters while being
|
cannam@86
|
15398 # careful not to overquote the AC_SUBSTed values. We take copies of the
|
cannam@86
|
15399 # variables and quote the copies for generation of the libtool script.
|
cannam@86
|
15400 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
|
cannam@86
|
15401 SED SHELL STRIP \
|
cannam@86
|
15402 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
|
cannam@86
|
15403 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
|
cannam@86
|
15404 deplibs_check_method reload_flag reload_cmds need_locks \
|
cannam@86
|
15405 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
|
cannam@86
|
15406 lt_cv_sys_global_symbol_to_c_name_address \
|
cannam@86
|
15407 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
|
cannam@86
|
15408 old_postinstall_cmds old_postuninstall_cmds \
|
cannam@86
|
15409 compiler_F77 \
|
cannam@86
|
15410 CC_F77 \
|
cannam@86
|
15411 LD_F77 \
|
cannam@86
|
15412 lt_prog_compiler_wl_F77 \
|
cannam@86
|
15413 lt_prog_compiler_pic_F77 \
|
cannam@86
|
15414 lt_prog_compiler_static_F77 \
|
cannam@86
|
15415 lt_prog_compiler_no_builtin_flag_F77 \
|
cannam@86
|
15416 export_dynamic_flag_spec_F77 \
|
cannam@86
|
15417 thread_safe_flag_spec_F77 \
|
cannam@86
|
15418 whole_archive_flag_spec_F77 \
|
cannam@86
|
15419 enable_shared_with_static_runtimes_F77 \
|
cannam@86
|
15420 old_archive_cmds_F77 \
|
cannam@86
|
15421 old_archive_from_new_cmds_F77 \
|
cannam@86
|
15422 predep_objects_F77 \
|
cannam@86
|
15423 postdep_objects_F77 \
|
cannam@86
|
15424 predeps_F77 \
|
cannam@86
|
15425 postdeps_F77 \
|
cannam@86
|
15426 compiler_lib_search_path_F77 \
|
cannam@86
|
15427 archive_cmds_F77 \
|
cannam@86
|
15428 archive_expsym_cmds_F77 \
|
cannam@86
|
15429 postinstall_cmds_F77 \
|
cannam@86
|
15430 postuninstall_cmds_F77 \
|
cannam@86
|
15431 old_archive_from_expsyms_cmds_F77 \
|
cannam@86
|
15432 allow_undefined_flag_F77 \
|
cannam@86
|
15433 no_undefined_flag_F77 \
|
cannam@86
|
15434 export_symbols_cmds_F77 \
|
cannam@86
|
15435 hardcode_libdir_flag_spec_F77 \
|
cannam@86
|
15436 hardcode_libdir_flag_spec_ld_F77 \
|
cannam@86
|
15437 hardcode_libdir_separator_F77 \
|
cannam@86
|
15438 hardcode_automatic_F77 \
|
cannam@86
|
15439 module_cmds_F77 \
|
cannam@86
|
15440 module_expsym_cmds_F77 \
|
cannam@86
|
15441 lt_cv_prog_compiler_c_o_F77 \
|
cannam@86
|
15442 exclude_expsyms_F77 \
|
cannam@86
|
15443 include_expsyms_F77; do
|
cannam@86
|
15444
|
cannam@86
|
15445 case $var in
|
cannam@86
|
15446 old_archive_cmds_F77 | \
|
cannam@86
|
15447 old_archive_from_new_cmds_F77 | \
|
cannam@86
|
15448 archive_cmds_F77 | \
|
cannam@86
|
15449 archive_expsym_cmds_F77 | \
|
cannam@86
|
15450 module_cmds_F77 | \
|
cannam@86
|
15451 module_expsym_cmds_F77 | \
|
cannam@86
|
15452 old_archive_from_expsyms_cmds_F77 | \
|
cannam@86
|
15453 export_symbols_cmds_F77 | \
|
cannam@86
|
15454 extract_expsyms_cmds | reload_cmds | finish_cmds | \
|
cannam@86
|
15455 postinstall_cmds | postuninstall_cmds | \
|
cannam@86
|
15456 old_postinstall_cmds | old_postuninstall_cmds | \
|
cannam@86
|
15457 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
|
cannam@86
|
15458 # Double-quote double-evaled strings.
|
cannam@86
|
15459 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
|
cannam@86
|
15460 ;;
|
cannam@86
|
15461 *)
|
cannam@86
|
15462 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
|
cannam@86
|
15463 ;;
|
cannam@86
|
15464 esac
|
cannam@86
|
15465 done
|
cannam@86
|
15466
|
cannam@86
|
15467 case $lt_echo in
|
cannam@86
|
15468 *'\$0 --fallback-echo"')
|
cannam@86
|
15469 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
|
cannam@86
|
15470 ;;
|
cannam@86
|
15471 esac
|
cannam@86
|
15472
|
cannam@86
|
15473 cfgfile="$ofile"
|
cannam@86
|
15474
|
cannam@86
|
15475 cat <<__EOF__ >> "$cfgfile"
|
cannam@86
|
15476 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
|
cannam@86
|
15477
|
cannam@86
|
15478 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
cannam@86
|
15479
|
cannam@86
|
15480 # Shell to use when invoking shell scripts.
|
cannam@86
|
15481 SHELL=$lt_SHELL
|
cannam@86
|
15482
|
cannam@86
|
15483 # Whether or not to build shared libraries.
|
cannam@86
|
15484 build_libtool_libs=$enable_shared
|
cannam@86
|
15485
|
cannam@86
|
15486 # Whether or not to build static libraries.
|
cannam@86
|
15487 build_old_libs=$enable_static
|
cannam@86
|
15488
|
cannam@86
|
15489 # Whether or not to add -lc for building shared libraries.
|
cannam@86
|
15490 build_libtool_need_lc=$archive_cmds_need_lc_F77
|
cannam@86
|
15491
|
cannam@86
|
15492 # Whether or not to disallow shared libs when runtime libs are static
|
cannam@86
|
15493 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
|
cannam@86
|
15494
|
cannam@86
|
15495 # Whether or not to optimize for fast installation.
|
cannam@86
|
15496 fast_install=$enable_fast_install
|
cannam@86
|
15497
|
cannam@86
|
15498 # The host system.
|
cannam@86
|
15499 host_alias=$host_alias
|
cannam@86
|
15500 host=$host
|
cannam@86
|
15501 host_os=$host_os
|
cannam@86
|
15502
|
cannam@86
|
15503 # The build system.
|
cannam@86
|
15504 build_alias=$build_alias
|
cannam@86
|
15505 build=$build
|
cannam@86
|
15506 build_os=$build_os
|
cannam@86
|
15507
|
cannam@86
|
15508 # An echo program that does not interpret backslashes.
|
cannam@86
|
15509 echo=$lt_echo
|
cannam@86
|
15510
|
cannam@86
|
15511 # The archiver.
|
cannam@86
|
15512 AR=$lt_AR
|
cannam@86
|
15513 AR_FLAGS=$lt_AR_FLAGS
|
cannam@86
|
15514
|
cannam@86
|
15515 # A C compiler.
|
cannam@86
|
15516 LTCC=$lt_LTCC
|
cannam@86
|
15517
|
cannam@86
|
15518 # A language-specific compiler.
|
cannam@86
|
15519 CC=$lt_compiler_F77
|
cannam@86
|
15520
|
cannam@86
|
15521 # Is the compiler the GNU C compiler?
|
cannam@86
|
15522 with_gcc=$GCC_F77
|
cannam@86
|
15523
|
cannam@86
|
15524 # An ERE matcher.
|
cannam@86
|
15525 EGREP=$lt_EGREP
|
cannam@86
|
15526
|
cannam@86
|
15527 # The linker used to build libraries.
|
cannam@86
|
15528 LD=$lt_LD_F77
|
cannam@86
|
15529
|
cannam@86
|
15530 # Whether we need hard or soft links.
|
cannam@86
|
15531 LN_S=$lt_LN_S
|
cannam@86
|
15532
|
cannam@86
|
15533 # A BSD-compatible nm program.
|
cannam@86
|
15534 NM=$lt_NM
|
cannam@86
|
15535
|
cannam@86
|
15536 # A symbol stripping program
|
cannam@86
|
15537 STRIP=$lt_STRIP
|
cannam@86
|
15538
|
cannam@86
|
15539 # Used to examine libraries when file_magic_cmd begins "file"
|
cannam@86
|
15540 MAGIC_CMD=$MAGIC_CMD
|
cannam@86
|
15541
|
cannam@86
|
15542 # Used on cygwin: DLL creation program.
|
cannam@86
|
15543 DLLTOOL="$DLLTOOL"
|
cannam@86
|
15544
|
cannam@86
|
15545 # Used on cygwin: object dumper.
|
cannam@86
|
15546 OBJDUMP="$OBJDUMP"
|
cannam@86
|
15547
|
cannam@86
|
15548 # Used on cygwin: assembler.
|
cannam@86
|
15549 AS="$AS"
|
cannam@86
|
15550
|
cannam@86
|
15551 # The name of the directory that contains temporary libtool files.
|
cannam@86
|
15552 objdir=$objdir
|
cannam@86
|
15553
|
cannam@86
|
15554 # How to create reloadable object files.
|
cannam@86
|
15555 reload_flag=$lt_reload_flag
|
cannam@86
|
15556 reload_cmds=$lt_reload_cmds
|
cannam@86
|
15557
|
cannam@86
|
15558 # How to pass a linker flag through the compiler.
|
cannam@86
|
15559 wl=$lt_lt_prog_compiler_wl_F77
|
cannam@86
|
15560
|
cannam@86
|
15561 # Object file suffix (normally "o").
|
cannam@86
|
15562 objext="$ac_objext"
|
cannam@86
|
15563
|
cannam@86
|
15564 # Old archive suffix (normally "a").
|
cannam@86
|
15565 libext="$libext"
|
cannam@86
|
15566
|
cannam@86
|
15567 # Shared library suffix (normally ".so").
|
cannam@86
|
15568 shrext_cmds='$shrext_cmds'
|
cannam@86
|
15569
|
cannam@86
|
15570 # Executable file suffix (normally "").
|
cannam@86
|
15571 exeext="$exeext"
|
cannam@86
|
15572
|
cannam@86
|
15573 # Additional compiler flags for building library objects.
|
cannam@86
|
15574 pic_flag=$lt_lt_prog_compiler_pic_F77
|
cannam@86
|
15575 pic_mode=$pic_mode
|
cannam@86
|
15576
|
cannam@86
|
15577 # What is the maximum length of a command?
|
cannam@86
|
15578 max_cmd_len=$lt_cv_sys_max_cmd_len
|
cannam@86
|
15579
|
cannam@86
|
15580 # Does compiler simultaneously support -c and -o options?
|
cannam@86
|
15581 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
|
cannam@86
|
15582
|
cannam@86
|
15583 # Must we lock files when doing compilation?
|
cannam@86
|
15584 need_locks=$lt_need_locks
|
cannam@86
|
15585
|
cannam@86
|
15586 # Do we need the lib prefix for modules?
|
cannam@86
|
15587 need_lib_prefix=$need_lib_prefix
|
cannam@86
|
15588
|
cannam@86
|
15589 # Do we need a version for libraries?
|
cannam@86
|
15590 need_version=$need_version
|
cannam@86
|
15591
|
cannam@86
|
15592 # Whether dlopen is supported.
|
cannam@86
|
15593 dlopen_support=$enable_dlopen
|
cannam@86
|
15594
|
cannam@86
|
15595 # Whether dlopen of programs is supported.
|
cannam@86
|
15596 dlopen_self=$enable_dlopen_self
|
cannam@86
|
15597
|
cannam@86
|
15598 # Whether dlopen of statically linked programs is supported.
|
cannam@86
|
15599 dlopen_self_static=$enable_dlopen_self_static
|
cannam@86
|
15600
|
cannam@86
|
15601 # Compiler flag to prevent dynamic linking.
|
cannam@86
|
15602 link_static_flag=$lt_lt_prog_compiler_static_F77
|
cannam@86
|
15603
|
cannam@86
|
15604 # Compiler flag to turn off builtin functions.
|
cannam@86
|
15605 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
|
cannam@86
|
15606
|
cannam@86
|
15607 # Compiler flag to allow reflexive dlopens.
|
cannam@86
|
15608 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
|
cannam@86
|
15609
|
cannam@86
|
15610 # Compiler flag to generate shared objects directly from archives.
|
cannam@86
|
15611 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
|
cannam@86
|
15612
|
cannam@86
|
15613 # Compiler flag to generate thread-safe objects.
|
cannam@86
|
15614 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
|
cannam@86
|
15615
|
cannam@86
|
15616 # Library versioning type.
|
cannam@86
|
15617 version_type=$version_type
|
cannam@86
|
15618
|
cannam@86
|
15619 # Format of library name prefix.
|
cannam@86
|
15620 libname_spec=$lt_libname_spec
|
cannam@86
|
15621
|
cannam@86
|
15622 # List of archive names. First name is the real one, the rest are links.
|
cannam@86
|
15623 # The last name is the one that the linker finds with -lNAME.
|
cannam@86
|
15624 library_names_spec=$lt_library_names_spec
|
cannam@86
|
15625
|
cannam@86
|
15626 # The coded name of the library, if different from the real name.
|
cannam@86
|
15627 soname_spec=$lt_soname_spec
|
cannam@86
|
15628
|
cannam@86
|
15629 # Commands used to build and install an old-style archive.
|
cannam@86
|
15630 RANLIB=$lt_RANLIB
|
cannam@86
|
15631 old_archive_cmds=$lt_old_archive_cmds_F77
|
cannam@86
|
15632 old_postinstall_cmds=$lt_old_postinstall_cmds
|
cannam@86
|
15633 old_postuninstall_cmds=$lt_old_postuninstall_cmds
|
cannam@86
|
15634
|
cannam@86
|
15635 # Create an old-style archive from a shared archive.
|
cannam@86
|
15636 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
|
cannam@86
|
15637
|
cannam@86
|
15638 # Create a temporary old-style archive to link instead of a shared archive.
|
cannam@86
|
15639 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
|
cannam@86
|
15640
|
cannam@86
|
15641 # Commands used to build and install a shared archive.
|
cannam@86
|
15642 archive_cmds=$lt_archive_cmds_F77
|
cannam@86
|
15643 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
|
cannam@86
|
15644 postinstall_cmds=$lt_postinstall_cmds
|
cannam@86
|
15645 postuninstall_cmds=$lt_postuninstall_cmds
|
cannam@86
|
15646
|
cannam@86
|
15647 # Commands used to build a loadable module (assumed same as above if empty)
|
cannam@86
|
15648 module_cmds=$lt_module_cmds_F77
|
cannam@86
|
15649 module_expsym_cmds=$lt_module_expsym_cmds_F77
|
cannam@86
|
15650
|
cannam@86
|
15651 # Commands to strip libraries.
|
cannam@86
|
15652 old_striplib=$lt_old_striplib
|
cannam@86
|
15653 striplib=$lt_striplib
|
cannam@86
|
15654
|
cannam@86
|
15655 # Dependencies to place before the objects being linked to create a
|
cannam@86
|
15656 # shared library.
|
cannam@86
|
15657 predep_objects=$lt_predep_objects_F77
|
cannam@86
|
15658
|
cannam@86
|
15659 # Dependencies to place after the objects being linked to create a
|
cannam@86
|
15660 # shared library.
|
cannam@86
|
15661 postdep_objects=$lt_postdep_objects_F77
|
cannam@86
|
15662
|
cannam@86
|
15663 # Dependencies to place before the objects being linked to create a
|
cannam@86
|
15664 # shared library.
|
cannam@86
|
15665 predeps=$lt_predeps_F77
|
cannam@86
|
15666
|
cannam@86
|
15667 # Dependencies to place after the objects being linked to create a
|
cannam@86
|
15668 # shared library.
|
cannam@86
|
15669 postdeps=$lt_postdeps_F77
|
cannam@86
|
15670
|
cannam@86
|
15671 # The library search path used internally by the compiler when linking
|
cannam@86
|
15672 # a shared library.
|
cannam@86
|
15673 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
|
cannam@86
|
15674
|
cannam@86
|
15675 # Method to check whether dependent libraries are shared objects.
|
cannam@86
|
15676 deplibs_check_method=$lt_deplibs_check_method
|
cannam@86
|
15677
|
cannam@86
|
15678 # Command to use when deplibs_check_method == file_magic.
|
cannam@86
|
15679 file_magic_cmd=$lt_file_magic_cmd
|
cannam@86
|
15680
|
cannam@86
|
15681 # Flag that allows shared libraries with undefined symbols to be built.
|
cannam@86
|
15682 allow_undefined_flag=$lt_allow_undefined_flag_F77
|
cannam@86
|
15683
|
cannam@86
|
15684 # Flag that forces no undefined symbols.
|
cannam@86
|
15685 no_undefined_flag=$lt_no_undefined_flag_F77
|
cannam@86
|
15686
|
cannam@86
|
15687 # Commands used to finish a libtool library installation in a directory.
|
cannam@86
|
15688 finish_cmds=$lt_finish_cmds
|
cannam@86
|
15689
|
cannam@86
|
15690 # Same as above, but a single script fragment to be evaled but not shown.
|
cannam@86
|
15691 finish_eval=$lt_finish_eval
|
cannam@86
|
15692
|
cannam@86
|
15693 # Take the output of nm and produce a listing of raw symbols and C names.
|
cannam@86
|
15694 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
|
cannam@86
|
15695
|
cannam@86
|
15696 # Transform the output of nm in a proper C declaration
|
cannam@86
|
15697 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
|
cannam@86
|
15698
|
cannam@86
|
15699 # Transform the output of nm in a C name address pair
|
cannam@86
|
15700 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
cannam@86
|
15701
|
cannam@86
|
15702 # This is the shared library runtime path variable.
|
cannam@86
|
15703 runpath_var=$runpath_var
|
cannam@86
|
15704
|
cannam@86
|
15705 # This is the shared library path variable.
|
cannam@86
|
15706 shlibpath_var=$shlibpath_var
|
cannam@86
|
15707
|
cannam@86
|
15708 # Is shlibpath searched before the hard-coded library search path?
|
cannam@86
|
15709 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
|
cannam@86
|
15710
|
cannam@86
|
15711 # How to hardcode a shared library path into an executable.
|
cannam@86
|
15712 hardcode_action=$hardcode_action_F77
|
cannam@86
|
15713
|
cannam@86
|
15714 # Whether we should hardcode library paths into libraries.
|
cannam@86
|
15715 hardcode_into_libs=$hardcode_into_libs
|
cannam@86
|
15716
|
cannam@86
|
15717 # Flag to hardcode \$libdir into a binary during linking.
|
cannam@86
|
15718 # This must work even if \$libdir does not exist.
|
cannam@86
|
15719 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
|
cannam@86
|
15720
|
cannam@86
|
15721 # If ld is used when linking, flag to hardcode \$libdir into
|
cannam@86
|
15722 # a binary during linking. This must work even if \$libdir does
|
cannam@86
|
15723 # not exist.
|
cannam@86
|
15724 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
|
cannam@86
|
15725
|
cannam@86
|
15726 # Whether we need a single -rpath flag with a separated argument.
|
cannam@86
|
15727 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
|
cannam@86
|
15728
|
cannam@86
|
15729 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
|
cannam@86
|
15730 # resulting binary.
|
cannam@86
|
15731 hardcode_direct=$hardcode_direct_F77
|
cannam@86
|
15732
|
cannam@86
|
15733 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
|
cannam@86
|
15734 # resulting binary.
|
cannam@86
|
15735 hardcode_minus_L=$hardcode_minus_L_F77
|
cannam@86
|
15736
|
cannam@86
|
15737 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
|
cannam@86
|
15738 # the resulting binary.
|
cannam@86
|
15739 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
|
cannam@86
|
15740
|
cannam@86
|
15741 # Set to yes if building a shared library automatically hardcodes DIR into the library
|
cannam@86
|
15742 # and all subsequent libraries and executables linked against it.
|
cannam@86
|
15743 hardcode_automatic=$hardcode_automatic_F77
|
cannam@86
|
15744
|
cannam@86
|
15745 # Variables whose values should be saved in libtool wrapper scripts and
|
cannam@86
|
15746 # restored at relink time.
|
cannam@86
|
15747 variables_saved_for_relink="$variables_saved_for_relink"
|
cannam@86
|
15748
|
cannam@86
|
15749 # Whether libtool must link a program against all its dependency libraries.
|
cannam@86
|
15750 link_all_deplibs=$link_all_deplibs_F77
|
cannam@86
|
15751
|
cannam@86
|
15752 # Compile-time system search path for libraries
|
cannam@86
|
15753 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
|
cannam@86
|
15754
|
cannam@86
|
15755 # Run-time system search path for libraries
|
cannam@86
|
15756 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
|
cannam@86
|
15757
|
cannam@86
|
15758 # Fix the shell variable \$srcfile for the compiler.
|
cannam@86
|
15759 fix_srcfile_path="$fix_srcfile_path_F77"
|
cannam@86
|
15760
|
cannam@86
|
15761 # Set to yes if exported symbols are required.
|
cannam@86
|
15762 always_export_symbols=$always_export_symbols_F77
|
cannam@86
|
15763
|
cannam@86
|
15764 # The commands to list exported symbols.
|
cannam@86
|
15765 export_symbols_cmds=$lt_export_symbols_cmds_F77
|
cannam@86
|
15766
|
cannam@86
|
15767 # The commands to extract the exported symbol list from a shared archive.
|
cannam@86
|
15768 extract_expsyms_cmds=$lt_extract_expsyms_cmds
|
cannam@86
|
15769
|
cannam@86
|
15770 # Symbols that should not be listed in the preloaded symbols.
|
cannam@86
|
15771 exclude_expsyms=$lt_exclude_expsyms_F77
|
cannam@86
|
15772
|
cannam@86
|
15773 # Symbols that must always be exported.
|
cannam@86
|
15774 include_expsyms=$lt_include_expsyms_F77
|
cannam@86
|
15775
|
cannam@86
|
15776 # ### END LIBTOOL TAG CONFIG: $tagname
|
cannam@86
|
15777
|
cannam@86
|
15778 __EOF__
|
cannam@86
|
15779
|
cannam@86
|
15780
|
cannam@86
|
15781 else
|
cannam@86
|
15782 # If there is no Makefile yet, we rely on a make rule to execute
|
cannam@86
|
15783 # `config.status --recheck' to rerun these tests and create the
|
cannam@86
|
15784 # libtool script then.
|
cannam@86
|
15785 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
|
cannam@86
|
15786 if test -f "$ltmain_in"; then
|
cannam@86
|
15787 test -f Makefile && make "$ltmain"
|
cannam@86
|
15788 fi
|
cannam@86
|
15789 fi
|
cannam@86
|
15790
|
cannam@86
|
15791
|
cannam@86
|
15792 ac_ext=c
|
cannam@86
|
15793 ac_cpp='$CPP $CPPFLAGS'
|
cannam@86
|
15794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
cannam@86
|
15795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
cannam@86
|
15796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
cannam@86
|
15797
|
cannam@86
|
15798 CC="$lt_save_CC"
|
cannam@86
|
15799
|
cannam@86
|
15800 else
|
cannam@86
|
15801 tagname=""
|
cannam@86
|
15802 fi
|
cannam@86
|
15803 ;;
|
cannam@86
|
15804
|
cannam@86
|
15805 GCJ)
|
cannam@86
|
15806 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
|
cannam@86
|
15807
|
cannam@86
|
15808
|
cannam@86
|
15809
|
cannam@86
|
15810 # Source file extension for Java test sources.
|
cannam@86
|
15811 ac_ext=java
|
cannam@86
|
15812
|
cannam@86
|
15813 # Object file extension for compiled Java test sources.
|
cannam@86
|
15814 objext=o
|
cannam@86
|
15815 objext_GCJ=$objext
|
cannam@86
|
15816
|
cannam@86
|
15817 # Code to be used in simple compile tests
|
cannam@86
|
15818 lt_simple_compile_test_code="class foo {}\n"
|
cannam@86
|
15819
|
cannam@86
|
15820 # Code to be used in simple link tests
|
cannam@86
|
15821 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
|
cannam@86
|
15822
|
cannam@86
|
15823 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
cannam@86
|
15824
|
cannam@86
|
15825 # If no C compiler was specified, use CC.
|
cannam@86
|
15826 LTCC=${LTCC-"$CC"}
|
cannam@86
|
15827
|
cannam@86
|
15828 # Allow CC to be a program name with arguments.
|
cannam@86
|
15829 compiler=$CC
|
cannam@86
|
15830
|
cannam@86
|
15831
|
cannam@86
|
15832 # save warnings/boilerplate of simple test code
|
cannam@86
|
15833 ac_outfile=conftest.$ac_objext
|
cannam@86
|
15834 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
|
cannam@86
|
15835 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
|
cannam@86
|
15836 _lt_compiler_boilerplate=`cat conftest.err`
|
cannam@86
|
15837 $rm conftest*
|
cannam@86
|
15838
|
cannam@86
|
15839 ac_outfile=conftest.$ac_objext
|
cannam@86
|
15840 printf "$lt_simple_link_test_code" >conftest.$ac_ext
|
cannam@86
|
15841 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
|
cannam@86
|
15842 _lt_linker_boilerplate=`cat conftest.err`
|
cannam@86
|
15843 $rm conftest*
|
cannam@86
|
15844
|
cannam@86
|
15845
|
cannam@86
|
15846 # Allow CC to be a program name with arguments.
|
cannam@86
|
15847 lt_save_CC="$CC"
|
cannam@86
|
15848 CC=${GCJ-"gcj"}
|
cannam@86
|
15849 compiler=$CC
|
cannam@86
|
15850 compiler_GCJ=$CC
|
cannam@86
|
15851 for cc_temp in $compiler""; do
|
cannam@86
|
15852 case $cc_temp in
|
cannam@86
|
15853 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
cannam@86
|
15854 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
cannam@86
|
15855 \-*) ;;
|
cannam@86
|
15856 *) break;;
|
cannam@86
|
15857 esac
|
cannam@86
|
15858 done
|
cannam@86
|
15859 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
cannam@86
|
15860
|
cannam@86
|
15861
|
cannam@86
|
15862 # GCJ did not exist at the time GCC didn't implicitly link libc in.
|
cannam@86
|
15863 archive_cmds_need_lc_GCJ=no
|
cannam@86
|
15864
|
cannam@86
|
15865 old_archive_cmds_GCJ=$old_archive_cmds
|
cannam@86
|
15866
|
cannam@86
|
15867
|
cannam@86
|
15868 lt_prog_compiler_no_builtin_flag_GCJ=
|
cannam@86
|
15869
|
cannam@86
|
15870 if test "$GCC" = yes; then
|
cannam@86
|
15871 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
|
cannam@86
|
15872
|
cannam@86
|
15873
|
cannam@86
|
15874 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
|
cannam@86
|
15875 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
|
cannam@86
|
15876 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
|
cannam@86
|
15877 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
15878 else
|
cannam@86
|
15879 lt_cv_prog_compiler_rtti_exceptions=no
|
cannam@86
|
15880 ac_outfile=conftest.$ac_objext
|
cannam@86
|
15881 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
cannam@86
|
15882 lt_compiler_flag="-fno-rtti -fno-exceptions"
|
cannam@86
|
15883 # Insert the option either (1) after the last *FLAGS variable, or
|
cannam@86
|
15884 # (2) before a word containing "conftest.", or (3) at the end.
|
cannam@86
|
15885 # Note that $ac_compile itself does not contain backslashes and begins
|
cannam@86
|
15886 # with a dollar sign (not a hyphen), so the echo should work correctly.
|
cannam@86
|
15887 # The option is referenced via a variable to avoid confusing sed.
|
cannam@86
|
15888 lt_compile=`echo "$ac_compile" | $SED \
|
cannam@86
|
15889 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
cannam@86
|
15890 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
cannam@86
|
15891 -e 's:$: $lt_compiler_flag:'`
|
cannam@86
|
15892 (eval echo "\"\$as_me:15892: $lt_compile\"" >&5)
|
cannam@86
|
15893 (eval "$lt_compile" 2>conftest.err)
|
cannam@86
|
15894 ac_status=$?
|
cannam@86
|
15895 cat conftest.err >&5
|
cannam@86
|
15896 echo "$as_me:15896: \$? = $ac_status" >&5
|
cannam@86
|
15897 if (exit $ac_status) && test -s "$ac_outfile"; then
|
cannam@86
|
15898 # The compiler can only warn and ignore the option if not recognized
|
cannam@86
|
15899 # So say no if there are warnings other than the usual output.
|
cannam@86
|
15900 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
|
cannam@86
|
15901 $SED '/^$/d' conftest.err >conftest.er2
|
cannam@86
|
15902 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
|
cannam@86
|
15903 lt_cv_prog_compiler_rtti_exceptions=yes
|
cannam@86
|
15904 fi
|
cannam@86
|
15905 fi
|
cannam@86
|
15906 $rm conftest*
|
cannam@86
|
15907
|
cannam@86
|
15908 fi
|
cannam@86
|
15909 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
|
cannam@86
|
15910 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
|
cannam@86
|
15911
|
cannam@86
|
15912 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
|
cannam@86
|
15913 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
|
cannam@86
|
15914 else
|
cannam@86
|
15915 :
|
cannam@86
|
15916 fi
|
cannam@86
|
15917
|
cannam@86
|
15918 fi
|
cannam@86
|
15919
|
cannam@86
|
15920 lt_prog_compiler_wl_GCJ=
|
cannam@86
|
15921 lt_prog_compiler_pic_GCJ=
|
cannam@86
|
15922 lt_prog_compiler_static_GCJ=
|
cannam@86
|
15923
|
cannam@86
|
15924 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
|
cannam@86
|
15925 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
|
cannam@86
|
15926
|
cannam@86
|
15927 if test "$GCC" = yes; then
|
cannam@86
|
15928 lt_prog_compiler_wl_GCJ='-Wl,'
|
cannam@86
|
15929 lt_prog_compiler_static_GCJ='-static'
|
cannam@86
|
15930
|
cannam@86
|
15931 case $host_os in
|
cannam@86
|
15932 aix*)
|
cannam@86
|
15933 # All AIX code is PIC.
|
cannam@86
|
15934 if test "$host_cpu" = ia64; then
|
cannam@86
|
15935 # AIX 5 now supports IA64 processor
|
cannam@86
|
15936 lt_prog_compiler_static_GCJ='-Bstatic'
|
cannam@86
|
15937 fi
|
cannam@86
|
15938 ;;
|
cannam@86
|
15939
|
cannam@86
|
15940 amigaos*)
|
cannam@86
|
15941 # FIXME: we need at least 68020 code to build shared libraries, but
|
cannam@86
|
15942 # adding the `-m68020' flag to GCC prevents building anything better,
|
cannam@86
|
15943 # like `-m68040'.
|
cannam@86
|
15944 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
|
cannam@86
|
15945 ;;
|
cannam@86
|
15946
|
cannam@86
|
15947 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
cannam@86
|
15948 # PIC is the default for these OSes.
|
cannam@86
|
15949 ;;
|
cannam@86
|
15950
|
cannam@86
|
15951 mingw* | pw32* | os2*)
|
cannam@86
|
15952 # This hack is so that the source file can tell whether it is being
|
cannam@86
|
15953 # built for inclusion in a dll (and should export symbols for example).
|
cannam@86
|
15954 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
|
cannam@86
|
15955 ;;
|
cannam@86
|
15956
|
cannam@86
|
15957 darwin* | rhapsody*)
|
cannam@86
|
15958 # PIC is the default on this platform
|
cannam@86
|
15959 # Common symbols not allowed in MH_DYLIB files
|
cannam@86
|
15960 lt_prog_compiler_pic_GCJ='-fno-common'
|
cannam@86
|
15961 ;;
|
cannam@86
|
15962
|
cannam@86
|
15963 msdosdjgpp*)
|
cannam@86
|
15964 # Just because we use GCC doesn't mean we suddenly get shared libraries
|
cannam@86
|
15965 # on systems that don't support them.
|
cannam@86
|
15966 lt_prog_compiler_can_build_shared_GCJ=no
|
cannam@86
|
15967 enable_shared=no
|
cannam@86
|
15968 ;;
|
cannam@86
|
15969
|
cannam@86
|
15970 sysv4*MP*)
|
cannam@86
|
15971 if test -d /usr/nec; then
|
cannam@86
|
15972 lt_prog_compiler_pic_GCJ=-Kconform_pic
|
cannam@86
|
15973 fi
|
cannam@86
|
15974 ;;
|
cannam@86
|
15975
|
cannam@86
|
15976 hpux*)
|
cannam@86
|
15977 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
cannam@86
|
15978 # not for PA HP-UX.
|
cannam@86
|
15979 case "$host_cpu" in
|
cannam@86
|
15980 hppa*64*|ia64*)
|
cannam@86
|
15981 # +Z the default
|
cannam@86
|
15982 ;;
|
cannam@86
|
15983 *)
|
cannam@86
|
15984 lt_prog_compiler_pic_GCJ='-fPIC'
|
cannam@86
|
15985 ;;
|
cannam@86
|
15986 esac
|
cannam@86
|
15987 ;;
|
cannam@86
|
15988
|
cannam@86
|
15989 *)
|
cannam@86
|
15990 lt_prog_compiler_pic_GCJ='-fPIC'
|
cannam@86
|
15991 ;;
|
cannam@86
|
15992 esac
|
cannam@86
|
15993 else
|
cannam@86
|
15994 # PORTME Check for flag to pass linker flags through the system compiler.
|
cannam@86
|
15995 case $host_os in
|
cannam@86
|
15996 aix*)
|
cannam@86
|
15997 lt_prog_compiler_wl_GCJ='-Wl,'
|
cannam@86
|
15998 if test "$host_cpu" = ia64; then
|
cannam@86
|
15999 # AIX 5 now supports IA64 processor
|
cannam@86
|
16000 lt_prog_compiler_static_GCJ='-Bstatic'
|
cannam@86
|
16001 else
|
cannam@86
|
16002 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
|
cannam@86
|
16003 fi
|
cannam@86
|
16004 ;;
|
cannam@86
|
16005 darwin*)
|
cannam@86
|
16006 # PIC is the default on this platform
|
cannam@86
|
16007 # Common symbols not allowed in MH_DYLIB files
|
cannam@86
|
16008 case $cc_basename in
|
cannam@86
|
16009 xlc*)
|
cannam@86
|
16010 lt_prog_compiler_pic_GCJ='-qnocommon'
|
cannam@86
|
16011 lt_prog_compiler_wl_GCJ='-Wl,'
|
cannam@86
|
16012 ;;
|
cannam@86
|
16013 esac
|
cannam@86
|
16014 ;;
|
cannam@86
|
16015
|
cannam@86
|
16016 mingw* | pw32* | os2*)
|
cannam@86
|
16017 # This hack is so that the source file can tell whether it is being
|
cannam@86
|
16018 # built for inclusion in a dll (and should export symbols for example).
|
cannam@86
|
16019 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
|
cannam@86
|
16020 ;;
|
cannam@86
|
16021
|
cannam@86
|
16022 hpux9* | hpux10* | hpux11*)
|
cannam@86
|
16023 lt_prog_compiler_wl_GCJ='-Wl,'
|
cannam@86
|
16024 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
cannam@86
|
16025 # not for PA HP-UX.
|
cannam@86
|
16026 case "$host_cpu" in
|
cannam@86
|
16027 hppa*64*|ia64*)
|
cannam@86
|
16028 # +Z the default
|
cannam@86
|
16029 ;;
|
cannam@86
|
16030 *)
|
cannam@86
|
16031 lt_prog_compiler_pic_GCJ='+Z'
|
cannam@86
|
16032 ;;
|
cannam@86
|
16033 esac
|
cannam@86
|
16034 # Is there a better lt_prog_compiler_static that works with the bundled CC?
|
cannam@86
|
16035 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
|
cannam@86
|
16036 ;;
|
cannam@86
|
16037
|
cannam@86
|
16038 irix5* | irix6* | nonstopux*)
|
cannam@86
|
16039 lt_prog_compiler_wl_GCJ='-Wl,'
|
cannam@86
|
16040 # PIC (with -KPIC) is the default.
|
cannam@86
|
16041 lt_prog_compiler_static_GCJ='-non_shared'
|
cannam@86
|
16042 ;;
|
cannam@86
|
16043
|
cannam@86
|
16044 newsos6)
|
cannam@86
|
16045 lt_prog_compiler_pic_GCJ='-KPIC'
|
cannam@86
|
16046 lt_prog_compiler_static_GCJ='-Bstatic'
|
cannam@86
|
16047 ;;
|
cannam@86
|
16048
|
cannam@86
|
16049 linux*)
|
cannam@86
|
16050 case $cc_basename in
|
cannam@86
|
16051 icc* | ecc*)
|
cannam@86
|
16052 lt_prog_compiler_wl_GCJ='-Wl,'
|
cannam@86
|
16053 lt_prog_compiler_pic_GCJ='-KPIC'
|
cannam@86
|
16054 lt_prog_compiler_static_GCJ='-static'
|
cannam@86
|
16055 ;;
|
cannam@86
|
16056 pgcc* | pgf77* | pgf90*)
|
cannam@86
|
16057 # Portland Group compilers (*not* the Pentium gcc compiler,
|
cannam@86
|
16058 # which looks to be a dead project)
|
cannam@86
|
16059 lt_prog_compiler_wl_GCJ='-Wl,'
|
cannam@86
|
16060 lt_prog_compiler_pic_GCJ='-fpic'
|
cannam@86
|
16061 lt_prog_compiler_static_GCJ='-static'
|
cannam@86
|
16062 ;;
|
cannam@86
|
16063 ccc*)
|
cannam@86
|
16064 lt_prog_compiler_wl_GCJ='-Wl,'
|
cannam@86
|
16065 # All Alpha code is PIC.
|
cannam@86
|
16066 lt_prog_compiler_static_GCJ='-non_shared'
|
cannam@86
|
16067 ;;
|
cannam@86
|
16068 esac
|
cannam@86
|
16069 ;;
|
cannam@86
|
16070
|
cannam@86
|
16071 osf3* | osf4* | osf5*)
|
cannam@86
|
16072 lt_prog_compiler_wl_GCJ='-Wl,'
|
cannam@86
|
16073 # All OSF/1 code is PIC.
|
cannam@86
|
16074 lt_prog_compiler_static_GCJ='-non_shared'
|
cannam@86
|
16075 ;;
|
cannam@86
|
16076
|
cannam@86
|
16077 sco3.2v5*)
|
cannam@86
|
16078 lt_prog_compiler_pic_GCJ='-Kpic'
|
cannam@86
|
16079 lt_prog_compiler_static_GCJ='-dn'
|
cannam@86
|
16080 ;;
|
cannam@86
|
16081
|
cannam@86
|
16082 solaris*)
|
cannam@86
|
16083 lt_prog_compiler_pic_GCJ='-KPIC'
|
cannam@86
|
16084 lt_prog_compiler_static_GCJ='-Bstatic'
|
cannam@86
|
16085 case $cc_basename in
|
cannam@86
|
16086 f77* | f90* | f95*)
|
cannam@86
|
16087 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
|
cannam@86
|
16088 *)
|
cannam@86
|
16089 lt_prog_compiler_wl_GCJ='-Wl,';;
|
cannam@86
|
16090 esac
|
cannam@86
|
16091 ;;
|
cannam@86
|
16092
|
cannam@86
|
16093 sunos4*)
|
cannam@86
|
16094 lt_prog_compiler_wl_GCJ='-Qoption ld '
|
cannam@86
|
16095 lt_prog_compiler_pic_GCJ='-PIC'
|
cannam@86
|
16096 lt_prog_compiler_static_GCJ='-Bstatic'
|
cannam@86
|
16097 ;;
|
cannam@86
|
16098
|
cannam@86
|
16099 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
cannam@86
|
16100 lt_prog_compiler_wl_GCJ='-Wl,'
|
cannam@86
|
16101 lt_prog_compiler_pic_GCJ='-KPIC'
|
cannam@86
|
16102 lt_prog_compiler_static_GCJ='-Bstatic'
|
cannam@86
|
16103 ;;
|
cannam@86
|
16104
|
cannam@86
|
16105 sysv4*MP*)
|
cannam@86
|
16106 if test -d /usr/nec ;then
|
cannam@86
|
16107 lt_prog_compiler_pic_GCJ='-Kconform_pic'
|
cannam@86
|
16108 lt_prog_compiler_static_GCJ='-Bstatic'
|
cannam@86
|
16109 fi
|
cannam@86
|
16110 ;;
|
cannam@86
|
16111
|
cannam@86
|
16112 unicos*)
|
cannam@86
|
16113 lt_prog_compiler_wl_GCJ='-Wl,'
|
cannam@86
|
16114 lt_prog_compiler_can_build_shared_GCJ=no
|
cannam@86
|
16115 ;;
|
cannam@86
|
16116
|
cannam@86
|
16117 uts4*)
|
cannam@86
|
16118 lt_prog_compiler_pic_GCJ='-pic'
|
cannam@86
|
16119 lt_prog_compiler_static_GCJ='-Bstatic'
|
cannam@86
|
16120 ;;
|
cannam@86
|
16121
|
cannam@86
|
16122 *)
|
cannam@86
|
16123 lt_prog_compiler_can_build_shared_GCJ=no
|
cannam@86
|
16124 ;;
|
cannam@86
|
16125 esac
|
cannam@86
|
16126 fi
|
cannam@86
|
16127
|
cannam@86
|
16128 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
|
cannam@86
|
16129 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
|
cannam@86
|
16130
|
cannam@86
|
16131 #
|
cannam@86
|
16132 # Check to make sure the PIC flag actually works.
|
cannam@86
|
16133 #
|
cannam@86
|
16134 if test -n "$lt_prog_compiler_pic_GCJ"; then
|
cannam@86
|
16135
|
cannam@86
|
16136 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
|
cannam@86
|
16137 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
|
cannam@86
|
16138 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
|
cannam@86
|
16139 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
16140 else
|
cannam@86
|
16141 lt_prog_compiler_pic_works_GCJ=no
|
cannam@86
|
16142 ac_outfile=conftest.$ac_objext
|
cannam@86
|
16143 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
cannam@86
|
16144 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
|
cannam@86
|
16145 # Insert the option either (1) after the last *FLAGS variable, or
|
cannam@86
|
16146 # (2) before a word containing "conftest.", or (3) at the end.
|
cannam@86
|
16147 # Note that $ac_compile itself does not contain backslashes and begins
|
cannam@86
|
16148 # with a dollar sign (not a hyphen), so the echo should work correctly.
|
cannam@86
|
16149 # The option is referenced via a variable to avoid confusing sed.
|
cannam@86
|
16150 lt_compile=`echo "$ac_compile" | $SED \
|
cannam@86
|
16151 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
cannam@86
|
16152 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
cannam@86
|
16153 -e 's:$: $lt_compiler_flag:'`
|
cannam@86
|
16154 (eval echo "\"\$as_me:16154: $lt_compile\"" >&5)
|
cannam@86
|
16155 (eval "$lt_compile" 2>conftest.err)
|
cannam@86
|
16156 ac_status=$?
|
cannam@86
|
16157 cat conftest.err >&5
|
cannam@86
|
16158 echo "$as_me:16158: \$? = $ac_status" >&5
|
cannam@86
|
16159 if (exit $ac_status) && test -s "$ac_outfile"; then
|
cannam@86
|
16160 # The compiler can only warn and ignore the option if not recognized
|
cannam@86
|
16161 # So say no if there are warnings other than the usual output.
|
cannam@86
|
16162 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
|
cannam@86
|
16163 $SED '/^$/d' conftest.err >conftest.er2
|
cannam@86
|
16164 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
|
cannam@86
|
16165 lt_prog_compiler_pic_works_GCJ=yes
|
cannam@86
|
16166 fi
|
cannam@86
|
16167 fi
|
cannam@86
|
16168 $rm conftest*
|
cannam@86
|
16169
|
cannam@86
|
16170 fi
|
cannam@86
|
16171 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
|
cannam@86
|
16172 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
|
cannam@86
|
16173
|
cannam@86
|
16174 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
|
cannam@86
|
16175 case $lt_prog_compiler_pic_GCJ in
|
cannam@86
|
16176 "" | " "*) ;;
|
cannam@86
|
16177 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
|
cannam@86
|
16178 esac
|
cannam@86
|
16179 else
|
cannam@86
|
16180 lt_prog_compiler_pic_GCJ=
|
cannam@86
|
16181 lt_prog_compiler_can_build_shared_GCJ=no
|
cannam@86
|
16182 fi
|
cannam@86
|
16183
|
cannam@86
|
16184 fi
|
cannam@86
|
16185 case "$host_os" in
|
cannam@86
|
16186 # For platforms which do not support PIC, -DPIC is meaningless:
|
cannam@86
|
16187 *djgpp*)
|
cannam@86
|
16188 lt_prog_compiler_pic_GCJ=
|
cannam@86
|
16189 ;;
|
cannam@86
|
16190 *)
|
cannam@86
|
16191 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
|
cannam@86
|
16192 ;;
|
cannam@86
|
16193 esac
|
cannam@86
|
16194
|
cannam@86
|
16195 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
|
cannam@86
|
16196 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
|
cannam@86
|
16197 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
|
cannam@86
|
16198 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
16199 else
|
cannam@86
|
16200 lt_cv_prog_compiler_c_o_GCJ=no
|
cannam@86
|
16201 $rm -r conftest 2>/dev/null
|
cannam@86
|
16202 mkdir conftest
|
cannam@86
|
16203 cd conftest
|
cannam@86
|
16204 mkdir out
|
cannam@86
|
16205 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
cannam@86
|
16206
|
cannam@86
|
16207 lt_compiler_flag="-o out/conftest2.$ac_objext"
|
cannam@86
|
16208 # Insert the option either (1) after the last *FLAGS variable, or
|
cannam@86
|
16209 # (2) before a word containing "conftest.", or (3) at the end.
|
cannam@86
|
16210 # Note that $ac_compile itself does not contain backslashes and begins
|
cannam@86
|
16211 # with a dollar sign (not a hyphen), so the echo should work correctly.
|
cannam@86
|
16212 lt_compile=`echo "$ac_compile" | $SED \
|
cannam@86
|
16213 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
cannam@86
|
16214 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
cannam@86
|
16215 -e 's:$: $lt_compiler_flag:'`
|
cannam@86
|
16216 (eval echo "\"\$as_me:16216: $lt_compile\"" >&5)
|
cannam@86
|
16217 (eval "$lt_compile" 2>out/conftest.err)
|
cannam@86
|
16218 ac_status=$?
|
cannam@86
|
16219 cat out/conftest.err >&5
|
cannam@86
|
16220 echo "$as_me:16220: \$? = $ac_status" >&5
|
cannam@86
|
16221 if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
cannam@86
|
16222 then
|
cannam@86
|
16223 # The compiler can only warn and ignore the option if not recognized
|
cannam@86
|
16224 # So say no if there are warnings
|
cannam@86
|
16225 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
|
cannam@86
|
16226 $SED '/^$/d' out/conftest.err >out/conftest.er2
|
cannam@86
|
16227 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
cannam@86
|
16228 lt_cv_prog_compiler_c_o_GCJ=yes
|
cannam@86
|
16229 fi
|
cannam@86
|
16230 fi
|
cannam@86
|
16231 chmod u+w .
|
cannam@86
|
16232 $rm conftest*
|
cannam@86
|
16233 # SGI C++ compiler will create directory out/ii_files/ for
|
cannam@86
|
16234 # template instantiation
|
cannam@86
|
16235 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
|
cannam@86
|
16236 $rm out/* && rmdir out
|
cannam@86
|
16237 cd ..
|
cannam@86
|
16238 rmdir conftest
|
cannam@86
|
16239 $rm conftest*
|
cannam@86
|
16240
|
cannam@86
|
16241 fi
|
cannam@86
|
16242 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
|
cannam@86
|
16243 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
|
cannam@86
|
16244
|
cannam@86
|
16245
|
cannam@86
|
16246 hard_links="nottested"
|
cannam@86
|
16247 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
|
cannam@86
|
16248 # do not overwrite the value of need_locks provided by the user
|
cannam@86
|
16249 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
|
cannam@86
|
16250 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
|
cannam@86
|
16251 hard_links=yes
|
cannam@86
|
16252 $rm conftest*
|
cannam@86
|
16253 ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
cannam@86
|
16254 touch conftest.a
|
cannam@86
|
16255 ln conftest.a conftest.b 2>&5 || hard_links=no
|
cannam@86
|
16256 ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
cannam@86
|
16257 echo "$as_me:$LINENO: result: $hard_links" >&5
|
cannam@86
|
16258 echo "${ECHO_T}$hard_links" >&6
|
cannam@86
|
16259 if test "$hard_links" = no; then
|
cannam@86
|
16260 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
|
cannam@86
|
16261 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
|
cannam@86
|
16262 need_locks=warn
|
cannam@86
|
16263 fi
|
cannam@86
|
16264 else
|
cannam@86
|
16265 need_locks=no
|
cannam@86
|
16266 fi
|
cannam@86
|
16267
|
cannam@86
|
16268 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
|
cannam@86
|
16269 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
|
cannam@86
|
16270
|
cannam@86
|
16271 runpath_var=
|
cannam@86
|
16272 allow_undefined_flag_GCJ=
|
cannam@86
|
16273 enable_shared_with_static_runtimes_GCJ=no
|
cannam@86
|
16274 archive_cmds_GCJ=
|
cannam@86
|
16275 archive_expsym_cmds_GCJ=
|
cannam@86
|
16276 old_archive_From_new_cmds_GCJ=
|
cannam@86
|
16277 old_archive_from_expsyms_cmds_GCJ=
|
cannam@86
|
16278 export_dynamic_flag_spec_GCJ=
|
cannam@86
|
16279 whole_archive_flag_spec_GCJ=
|
cannam@86
|
16280 thread_safe_flag_spec_GCJ=
|
cannam@86
|
16281 hardcode_libdir_flag_spec_GCJ=
|
cannam@86
|
16282 hardcode_libdir_flag_spec_ld_GCJ=
|
cannam@86
|
16283 hardcode_libdir_separator_GCJ=
|
cannam@86
|
16284 hardcode_direct_GCJ=no
|
cannam@86
|
16285 hardcode_minus_L_GCJ=no
|
cannam@86
|
16286 hardcode_shlibpath_var_GCJ=unsupported
|
cannam@86
|
16287 link_all_deplibs_GCJ=unknown
|
cannam@86
|
16288 hardcode_automatic_GCJ=no
|
cannam@86
|
16289 module_cmds_GCJ=
|
cannam@86
|
16290 module_expsym_cmds_GCJ=
|
cannam@86
|
16291 always_export_symbols_GCJ=no
|
cannam@86
|
16292 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
cannam@86
|
16293 # include_expsyms should be a list of space-separated symbols to be *always*
|
cannam@86
|
16294 # included in the symbol list
|
cannam@86
|
16295 include_expsyms_GCJ=
|
cannam@86
|
16296 # exclude_expsyms can be an extended regexp of symbols to exclude
|
cannam@86
|
16297 # it will be wrapped by ` (' and `)$', so one must not match beginning or
|
cannam@86
|
16298 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
|
cannam@86
|
16299 # as well as any symbol that contains `d'.
|
cannam@86
|
16300 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
|
cannam@86
|
16301 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
|
cannam@86
|
16302 # platforms (ab)use it in PIC code, but their linkers get confused if
|
cannam@86
|
16303 # the symbol is explicitly referenced. Since portable code cannot
|
cannam@86
|
16304 # rely on this symbol name, it's probably fine to never include it in
|
cannam@86
|
16305 # preloaded symbol tables.
|
cannam@86
|
16306 extract_expsyms_cmds=
|
cannam@86
|
16307 # Just being paranoid about ensuring that cc_basename is set.
|
cannam@86
|
16308 for cc_temp in $compiler""; do
|
cannam@86
|
16309 case $cc_temp in
|
cannam@86
|
16310 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
cannam@86
|
16311 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
cannam@86
|
16312 \-*) ;;
|
cannam@86
|
16313 *) break;;
|
cannam@86
|
16314 esac
|
cannam@86
|
16315 done
|
cannam@86
|
16316 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
cannam@86
|
16317
|
cannam@86
|
16318 case $host_os in
|
cannam@86
|
16319 cygwin* | mingw* | pw32*)
|
cannam@86
|
16320 # FIXME: the MSVC++ port hasn't been tested in a loooong time
|
cannam@86
|
16321 # When not using gcc, we currently assume that we are using
|
cannam@86
|
16322 # Microsoft Visual C++.
|
cannam@86
|
16323 if test "$GCC" != yes; then
|
cannam@86
|
16324 with_gnu_ld=no
|
cannam@86
|
16325 fi
|
cannam@86
|
16326 ;;
|
cannam@86
|
16327 openbsd*)
|
cannam@86
|
16328 with_gnu_ld=no
|
cannam@86
|
16329 ;;
|
cannam@86
|
16330 esac
|
cannam@86
|
16331
|
cannam@86
|
16332 ld_shlibs_GCJ=yes
|
cannam@86
|
16333 if test "$with_gnu_ld" = yes; then
|
cannam@86
|
16334 # If archive_cmds runs LD, not CC, wlarc should be empty
|
cannam@86
|
16335 wlarc='${wl}'
|
cannam@86
|
16336
|
cannam@86
|
16337 # Set some defaults for GNU ld with shared library support. These
|
cannam@86
|
16338 # are reset later if shared libraries are not supported. Putting them
|
cannam@86
|
16339 # here allows them to be overridden if necessary.
|
cannam@86
|
16340 runpath_var=LD_RUN_PATH
|
cannam@86
|
16341 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
|
cannam@86
|
16342 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
|
cannam@86
|
16343 # ancient GNU ld didn't support --whole-archive et. al.
|
cannam@86
|
16344 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
|
cannam@86
|
16345 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
cannam@86
|
16346 else
|
cannam@86
|
16347 whole_archive_flag_spec_GCJ=
|
cannam@86
|
16348 fi
|
cannam@86
|
16349 supports_anon_versioning=no
|
cannam@86
|
16350 case `$LD -v 2>/dev/null` in
|
cannam@86
|
16351 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
|
cannam@86
|
16352 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
|
cannam@86
|
16353 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
|
cannam@86
|
16354 *\ 2.11.*) ;; # other 2.11 versions
|
cannam@86
|
16355 *) supports_anon_versioning=yes ;;
|
cannam@86
|
16356 esac
|
cannam@86
|
16357
|
cannam@86
|
16358 # See if GNU ld supports shared libraries.
|
cannam@86
|
16359 case $host_os in
|
cannam@86
|
16360 aix3* | aix4* | aix5*)
|
cannam@86
|
16361 # On AIX/PPC, the GNU linker is very broken
|
cannam@86
|
16362 if test "$host_cpu" != ia64; then
|
cannam@86
|
16363 ld_shlibs_GCJ=no
|
cannam@86
|
16364 cat <<EOF 1>&2
|
cannam@86
|
16365
|
cannam@86
|
16366 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
|
cannam@86
|
16367 *** to be unable to reliably create shared libraries on AIX.
|
cannam@86
|
16368 *** Therefore, libtool is disabling shared libraries support. If you
|
cannam@86
|
16369 *** really care for shared libraries, you may want to modify your PATH
|
cannam@86
|
16370 *** so that a non-GNU linker is found, and then restart.
|
cannam@86
|
16371
|
cannam@86
|
16372 EOF
|
cannam@86
|
16373 fi
|
cannam@86
|
16374 ;;
|
cannam@86
|
16375
|
cannam@86
|
16376 amigaos*)
|
cannam@86
|
16377 archive_cmds_GCJ='$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@86
|
16378 hardcode_libdir_flag_spec_GCJ='-L$libdir'
|
cannam@86
|
16379 hardcode_minus_L_GCJ=yes
|
cannam@86
|
16380
|
cannam@86
|
16381 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
|
cannam@86
|
16382 # that the semantics of dynamic libraries on AmigaOS, at least up
|
cannam@86
|
16383 # to version 4, is to share data among multiple programs linked
|
cannam@86
|
16384 # with the same dynamic library. Since this doesn't match the
|
cannam@86
|
16385 # behavior of shared libraries on other platforms, we can't use
|
cannam@86
|
16386 # them.
|
cannam@86
|
16387 ld_shlibs_GCJ=no
|
cannam@86
|
16388 ;;
|
cannam@86
|
16389
|
cannam@86
|
16390 beos*)
|
cannam@86
|
16391 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
cannam@86
|
16392 allow_undefined_flag_GCJ=unsupported
|
cannam@86
|
16393 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
|
cannam@86
|
16394 # support --undefined. This deserves some investigation. FIXME
|
cannam@86
|
16395 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
cannam@86
|
16396 else
|
cannam@86
|
16397 ld_shlibs_GCJ=no
|
cannam@86
|
16398 fi
|
cannam@86
|
16399 ;;
|
cannam@86
|
16400
|
cannam@86
|
16401 cygwin* | mingw* | pw32*)
|
cannam@86
|
16402 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
|
cannam@86
|
16403 # as there is no search path for DLLs.
|
cannam@86
|
16404 hardcode_libdir_flag_spec_GCJ='-L$libdir'
|
cannam@86
|
16405 allow_undefined_flag_GCJ=unsupported
|
cannam@86
|
16406 always_export_symbols_GCJ=no
|
cannam@86
|
16407 enable_shared_with_static_runtimes_GCJ=yes
|
cannam@86
|
16408 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
|
cannam@86
|
16409
|
cannam@86
|
16410 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
|
cannam@86
|
16411 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
|
cannam@86
|
16412 # If the export-symbols file already is a .def file (1st line
|
cannam@86
|
16413 # is EXPORTS), use it as is; otherwise, prepend...
|
cannam@86
|
16414 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
cannam@86
|
16415 cp $export_symbols $output_objdir/$soname.def;
|
cannam@86
|
16416 else
|
cannam@86
|
16417 echo EXPORTS > $output_objdir/$soname.def;
|
cannam@86
|
16418 cat $export_symbols >> $output_objdir/$soname.def;
|
cannam@86
|
16419 fi~
|
cannam@86
|
16420 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
|
cannam@86
|
16421 else
|
cannam@86
|
16422 ld_shlibs_GCJ=no
|
cannam@86
|
16423 fi
|
cannam@86
|
16424 ;;
|
cannam@86
|
16425
|
cannam@86
|
16426 linux*)
|
cannam@86
|
16427 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
cannam@86
|
16428 tmp_addflag=
|
cannam@86
|
16429 case $cc_basename,$host_cpu in
|
cannam@86
|
16430 pgcc*) # Portland Group C compiler
|
cannam@86
|
16431 whole_archive_flag_spec_GCJ=
|
cannam@86
|
16432 ;;
|
cannam@86
|
16433 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
|
cannam@86
|
16434 whole_archive_flag_spec_GCJ=
|
cannam@86
|
16435 tmp_addflag=' -fpic -Mnomain' ;;
|
cannam@86
|
16436 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
|
cannam@86
|
16437 tmp_addflag=' -i_dynamic' ;;
|
cannam@86
|
16438 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
|
cannam@86
|
16439 tmp_addflag=' -i_dynamic -nofor_main' ;;
|
cannam@86
|
16440 ifc* | ifort*) # Intel Fortran compiler
|
cannam@86
|
16441 tmp_addflag=' -nofor_main' ;;
|
cannam@86
|
16442 esac
|
cannam@86
|
16443 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
cannam@86
|
16444
|
cannam@86
|
16445 if test $supports_anon_versioning = yes; then
|
cannam@86
|
16446 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
|
cannam@86
|
16447 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
cannam@86
|
16448 $echo "local: *; };" >> $output_objdir/$libname.ver~
|
cannam@86
|
16449 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
|
cannam@86
|
16450 fi
|
cannam@86
|
16451 else
|
cannam@86
|
16452 ld_shlibs_GCJ=no
|
cannam@86
|
16453 fi
|
cannam@86
|
16454 ;;
|
cannam@86
|
16455
|
cannam@86
|
16456 netbsd*)
|
cannam@86
|
16457 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
cannam@86
|
16458 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
cannam@86
|
16459 wlarc=
|
cannam@86
|
16460 else
|
cannam@86
|
16461 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
cannam@86
|
16462 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
cannam@86
|
16463 fi
|
cannam@86
|
16464 ;;
|
cannam@86
|
16465
|
cannam@86
|
16466 solaris* | sysv5*)
|
cannam@86
|
16467 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
|
cannam@86
|
16468 ld_shlibs_GCJ=no
|
cannam@86
|
16469 cat <<EOF 1>&2
|
cannam@86
|
16470
|
cannam@86
|
16471 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
|
cannam@86
|
16472 *** create shared libraries on Solaris systems. Therefore, libtool
|
cannam@86
|
16473 *** is disabling shared libraries support. We urge you to upgrade GNU
|
cannam@86
|
16474 *** binutils to release 2.9.1 or newer. Another option is to modify
|
cannam@86
|
16475 *** your PATH or compiler configuration so that the native linker is
|
cannam@86
|
16476 *** used, and then restart.
|
cannam@86
|
16477
|
cannam@86
|
16478 EOF
|
cannam@86
|
16479 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
cannam@86
|
16480 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
cannam@86
|
16481 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
cannam@86
|
16482 else
|
cannam@86
|
16483 ld_shlibs_GCJ=no
|
cannam@86
|
16484 fi
|
cannam@86
|
16485 ;;
|
cannam@86
|
16486
|
cannam@86
|
16487 sunos4*)
|
cannam@86
|
16488 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
16489 wlarc=
|
cannam@86
|
16490 hardcode_direct_GCJ=yes
|
cannam@86
|
16491 hardcode_shlibpath_var_GCJ=no
|
cannam@86
|
16492 ;;
|
cannam@86
|
16493
|
cannam@86
|
16494 *)
|
cannam@86
|
16495 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
cannam@86
|
16496 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
cannam@86
|
16497 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
cannam@86
|
16498 else
|
cannam@86
|
16499 ld_shlibs_GCJ=no
|
cannam@86
|
16500 fi
|
cannam@86
|
16501 ;;
|
cannam@86
|
16502 esac
|
cannam@86
|
16503
|
cannam@86
|
16504 if test "$ld_shlibs_GCJ" = no; then
|
cannam@86
|
16505 runpath_var=
|
cannam@86
|
16506 hardcode_libdir_flag_spec_GCJ=
|
cannam@86
|
16507 export_dynamic_flag_spec_GCJ=
|
cannam@86
|
16508 whole_archive_flag_spec_GCJ=
|
cannam@86
|
16509 fi
|
cannam@86
|
16510 else
|
cannam@86
|
16511 # PORTME fill in a description of your system's linker (not GNU ld)
|
cannam@86
|
16512 case $host_os in
|
cannam@86
|
16513 aix3*)
|
cannam@86
|
16514 allow_undefined_flag_GCJ=unsupported
|
cannam@86
|
16515 always_export_symbols_GCJ=yes
|
cannam@86
|
16516 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
|
cannam@86
|
16517 # Note: this linker hardcodes the directories in LIBPATH if there
|
cannam@86
|
16518 # are no directories specified by -L.
|
cannam@86
|
16519 hardcode_minus_L_GCJ=yes
|
cannam@86
|
16520 if test "$GCC" = yes && test -z "$link_static_flag"; then
|
cannam@86
|
16521 # Neither direct hardcoding nor static linking is supported with a
|
cannam@86
|
16522 # broken collect2.
|
cannam@86
|
16523 hardcode_direct_GCJ=unsupported
|
cannam@86
|
16524 fi
|
cannam@86
|
16525 ;;
|
cannam@86
|
16526
|
cannam@86
|
16527 aix4* | aix5*)
|
cannam@86
|
16528 if test "$host_cpu" = ia64; then
|
cannam@86
|
16529 # On IA64, the linker does run time linking by default, so we don't
|
cannam@86
|
16530 # have to do anything special.
|
cannam@86
|
16531 aix_use_runtimelinking=no
|
cannam@86
|
16532 exp_sym_flag='-Bexport'
|
cannam@86
|
16533 no_entry_flag=""
|
cannam@86
|
16534 else
|
cannam@86
|
16535 # If we're using GNU nm, then we don't want the "-C" option.
|
cannam@86
|
16536 # -C means demangle to AIX nm, but means don't demangle with GNU nm
|
cannam@86
|
16537 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
|
cannam@86
|
16538 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
|
cannam@86
|
16539 else
|
cannam@86
|
16540 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
|
cannam@86
|
16541 fi
|
cannam@86
|
16542 aix_use_runtimelinking=no
|
cannam@86
|
16543
|
cannam@86
|
16544 # Test if we are trying to use run time linking or normal
|
cannam@86
|
16545 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
cannam@86
|
16546 # need to do runtime linking.
|
cannam@86
|
16547 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
|
cannam@86
|
16548 for ld_flag in $LDFLAGS; do
|
cannam@86
|
16549 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
|
cannam@86
|
16550 aix_use_runtimelinking=yes
|
cannam@86
|
16551 break
|
cannam@86
|
16552 fi
|
cannam@86
|
16553 done
|
cannam@86
|
16554 esac
|
cannam@86
|
16555
|
cannam@86
|
16556 exp_sym_flag='-bexport'
|
cannam@86
|
16557 no_entry_flag='-bnoentry'
|
cannam@86
|
16558 fi
|
cannam@86
|
16559
|
cannam@86
|
16560 # When large executables or shared objects are built, AIX ld can
|
cannam@86
|
16561 # have problems creating the table of contents. If linking a library
|
cannam@86
|
16562 # or program results in "error TOC overflow" add -mminimal-toc to
|
cannam@86
|
16563 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
cannam@86
|
16564 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
cannam@86
|
16565
|
cannam@86
|
16566 archive_cmds_GCJ=''
|
cannam@86
|
16567 hardcode_direct_GCJ=yes
|
cannam@86
|
16568 hardcode_libdir_separator_GCJ=':'
|
cannam@86
|
16569 link_all_deplibs_GCJ=yes
|
cannam@86
|
16570
|
cannam@86
|
16571 if test "$GCC" = yes; then
|
cannam@86
|
16572 case $host_os in aix4.[012]|aix4.[012].*)
|
cannam@86
|
16573 # We only want to do this on AIX 4.2 and lower, the check
|
cannam@86
|
16574 # below for broken collect2 doesn't work under 4.3+
|
cannam@86
|
16575 collect2name=`${CC} -print-prog-name=collect2`
|
cannam@86
|
16576 if test -f "$collect2name" && \
|
cannam@86
|
16577 strings "$collect2name" | grep resolve_lib_name >/dev/null
|
cannam@86
|
16578 then
|
cannam@86
|
16579 # We have reworked collect2
|
cannam@86
|
16580 hardcode_direct_GCJ=yes
|
cannam@86
|
16581 else
|
cannam@86
|
16582 # We have old collect2
|
cannam@86
|
16583 hardcode_direct_GCJ=unsupported
|
cannam@86
|
16584 # It fails to find uninstalled libraries when the uninstalled
|
cannam@86
|
16585 # path is not listed in the libpath. Setting hardcode_minus_L
|
cannam@86
|
16586 # to unsupported forces relinking
|
cannam@86
|
16587 hardcode_minus_L_GCJ=yes
|
cannam@86
|
16588 hardcode_libdir_flag_spec_GCJ='-L$libdir'
|
cannam@86
|
16589 hardcode_libdir_separator_GCJ=
|
cannam@86
|
16590 fi
|
cannam@86
|
16591 esac
|
cannam@86
|
16592 shared_flag='-shared'
|
cannam@86
|
16593 if test "$aix_use_runtimelinking" = yes; then
|
cannam@86
|
16594 shared_flag="$shared_flag "'${wl}-G'
|
cannam@86
|
16595 fi
|
cannam@86
|
16596 else
|
cannam@86
|
16597 # not using gcc
|
cannam@86
|
16598 if test "$host_cpu" = ia64; then
|
cannam@86
|
16599 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
cannam@86
|
16600 # chokes on -Wl,-G. The following line is correct:
|
cannam@86
|
16601 shared_flag='-G'
|
cannam@86
|
16602 else
|
cannam@86
|
16603 if test "$aix_use_runtimelinking" = yes; then
|
cannam@86
|
16604 shared_flag='${wl}-G'
|
cannam@86
|
16605 else
|
cannam@86
|
16606 shared_flag='${wl}-bM:SRE'
|
cannam@86
|
16607 fi
|
cannam@86
|
16608 fi
|
cannam@86
|
16609 fi
|
cannam@86
|
16610
|
cannam@86
|
16611 # It seems that -bexpall does not export symbols beginning with
|
cannam@86
|
16612 # underscore (_), so it is better to generate a list of symbols to export.
|
cannam@86
|
16613 always_export_symbols_GCJ=yes
|
cannam@86
|
16614 if test "$aix_use_runtimelinking" = yes; then
|
cannam@86
|
16615 # Warning - without using the other runtime loading flags (-brtl),
|
cannam@86
|
16616 # -berok will link without error, but may produce a broken library.
|
cannam@86
|
16617 allow_undefined_flag_GCJ='-berok'
|
cannam@86
|
16618 # Determine the default libpath from the value encoded in an empty executable.
|
cannam@86
|
16619 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
16620 /* confdefs.h. */
|
cannam@86
|
16621 _ACEOF
|
cannam@86
|
16622 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
16623 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
16624 /* end confdefs.h. */
|
cannam@86
|
16625
|
cannam@86
|
16626 int
|
cannam@86
|
16627 main ()
|
cannam@86
|
16628 {
|
cannam@86
|
16629
|
cannam@86
|
16630 ;
|
cannam@86
|
16631 return 0;
|
cannam@86
|
16632 }
|
cannam@86
|
16633 _ACEOF
|
cannam@86
|
16634 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@86
|
16635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@86
|
16636 (eval $ac_link) 2>conftest.er1
|
cannam@86
|
16637 ac_status=$?
|
cannam@86
|
16638 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
16639 rm -f conftest.er1
|
cannam@86
|
16640 cat conftest.err >&5
|
cannam@86
|
16641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
16642 (exit $ac_status); } &&
|
cannam@86
|
16643 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
16644 || test ! -s conftest.err'
|
cannam@86
|
16645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
16646 (eval $ac_try) 2>&5
|
cannam@86
|
16647 ac_status=$?
|
cannam@86
|
16648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
16649 (exit $ac_status); }; } &&
|
cannam@86
|
16650 { ac_try='test -s conftest$ac_exeext'
|
cannam@86
|
16651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
16652 (eval $ac_try) 2>&5
|
cannam@86
|
16653 ac_status=$?
|
cannam@86
|
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
16655 (exit $ac_status); }; }; then
|
cannam@86
|
16656
|
cannam@86
|
16657 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
|
cannam@86
|
16658 }'`
|
cannam@86
|
16659 # Check for a 64-bit object if we didn't find anything.
|
cannam@86
|
16660 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
|
cannam@86
|
16661 }'`; fi
|
cannam@86
|
16662 else
|
cannam@86
|
16663 echo "$as_me: failed program was:" >&5
|
cannam@86
|
16664 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
16665
|
cannam@86
|
16666 fi
|
cannam@86
|
16667 rm -f conftest.err conftest.$ac_objext \
|
cannam@86
|
16668 conftest$ac_exeext conftest.$ac_ext
|
cannam@86
|
16669 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
cannam@86
|
16670
|
cannam@86
|
16671 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
|
cannam@86
|
16672 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
cannam@86
|
16673 else
|
cannam@86
|
16674 if test "$host_cpu" = ia64; then
|
cannam@86
|
16675 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
|
cannam@86
|
16676 allow_undefined_flag_GCJ="-z nodefs"
|
cannam@86
|
16677 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
|
cannam@86
|
16678 else
|
cannam@86
|
16679 # Determine the default libpath from the value encoded in an empty executable.
|
cannam@86
|
16680 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
16681 /* confdefs.h. */
|
cannam@86
|
16682 _ACEOF
|
cannam@86
|
16683 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
16684 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
16685 /* end confdefs.h. */
|
cannam@86
|
16686
|
cannam@86
|
16687 int
|
cannam@86
|
16688 main ()
|
cannam@86
|
16689 {
|
cannam@86
|
16690
|
cannam@86
|
16691 ;
|
cannam@86
|
16692 return 0;
|
cannam@86
|
16693 }
|
cannam@86
|
16694 _ACEOF
|
cannam@86
|
16695 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@86
|
16696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@86
|
16697 (eval $ac_link) 2>conftest.er1
|
cannam@86
|
16698 ac_status=$?
|
cannam@86
|
16699 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
16700 rm -f conftest.er1
|
cannam@86
|
16701 cat conftest.err >&5
|
cannam@86
|
16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
16703 (exit $ac_status); } &&
|
cannam@86
|
16704 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
16705 || test ! -s conftest.err'
|
cannam@86
|
16706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
16707 (eval $ac_try) 2>&5
|
cannam@86
|
16708 ac_status=$?
|
cannam@86
|
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
16710 (exit $ac_status); }; } &&
|
cannam@86
|
16711 { ac_try='test -s conftest$ac_exeext'
|
cannam@86
|
16712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
16713 (eval $ac_try) 2>&5
|
cannam@86
|
16714 ac_status=$?
|
cannam@86
|
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
16716 (exit $ac_status); }; }; then
|
cannam@86
|
16717
|
cannam@86
|
16718 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
|
cannam@86
|
16719 }'`
|
cannam@86
|
16720 # Check for a 64-bit object if we didn't find anything.
|
cannam@86
|
16721 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
|
cannam@86
|
16722 }'`; fi
|
cannam@86
|
16723 else
|
cannam@86
|
16724 echo "$as_me: failed program was:" >&5
|
cannam@86
|
16725 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
16726
|
cannam@86
|
16727 fi
|
cannam@86
|
16728 rm -f conftest.err conftest.$ac_objext \
|
cannam@86
|
16729 conftest$ac_exeext conftest.$ac_ext
|
cannam@86
|
16730 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
cannam@86
|
16731
|
cannam@86
|
16732 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
|
cannam@86
|
16733 # Warning - without using the other run time loading flags,
|
cannam@86
|
16734 # -berok will link without error, but may produce a broken library.
|
cannam@86
|
16735 no_undefined_flag_GCJ=' ${wl}-bernotok'
|
cannam@86
|
16736 allow_undefined_flag_GCJ=' ${wl}-berok'
|
cannam@86
|
16737 # -bexpall does not export symbols beginning with underscore (_)
|
cannam@86
|
16738 always_export_symbols_GCJ=yes
|
cannam@86
|
16739 # Exported symbols can be pulled into shared objects from archives
|
cannam@86
|
16740 whole_archive_flag_spec_GCJ=' '
|
cannam@86
|
16741 archive_cmds_need_lc_GCJ=yes
|
cannam@86
|
16742 # This is similar to how AIX traditionally builds it's shared libraries.
|
cannam@86
|
16743 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
|
cannam@86
|
16744 fi
|
cannam@86
|
16745 fi
|
cannam@86
|
16746 ;;
|
cannam@86
|
16747
|
cannam@86
|
16748 amigaos*)
|
cannam@86
|
16749 archive_cmds_GCJ='$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@86
|
16750 hardcode_libdir_flag_spec_GCJ='-L$libdir'
|
cannam@86
|
16751 hardcode_minus_L_GCJ=yes
|
cannam@86
|
16752 # see comment about different semantics on the GNU ld section
|
cannam@86
|
16753 ld_shlibs_GCJ=no
|
cannam@86
|
16754 ;;
|
cannam@86
|
16755
|
cannam@86
|
16756 bsdi[45]*)
|
cannam@86
|
16757 export_dynamic_flag_spec_GCJ=-rdynamic
|
cannam@86
|
16758 ;;
|
cannam@86
|
16759
|
cannam@86
|
16760 cygwin* | mingw* | pw32*)
|
cannam@86
|
16761 # When not using gcc, we currently assume that we are using
|
cannam@86
|
16762 # Microsoft Visual C++.
|
cannam@86
|
16763 # hardcode_libdir_flag_spec is actually meaningless, as there is
|
cannam@86
|
16764 # no search path for DLLs.
|
cannam@86
|
16765 hardcode_libdir_flag_spec_GCJ=' '
|
cannam@86
|
16766 allow_undefined_flag_GCJ=unsupported
|
cannam@86
|
16767 # Tell ltmain to make .lib files, not .a files.
|
cannam@86
|
16768 libext=lib
|
cannam@86
|
16769 # Tell ltmain to make .dll files, not .so files.
|
cannam@86
|
16770 shrext_cmds=".dll"
|
cannam@86
|
16771 # FIXME: Setting linknames here is a bad hack.
|
cannam@86
|
16772 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
|
cannam@86
|
16773 # The linker will automatically build a .lib file if we build a DLL.
|
cannam@86
|
16774 old_archive_From_new_cmds_GCJ='true'
|
cannam@86
|
16775 # FIXME: Should let the user specify the lib program.
|
cannam@86
|
16776 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
|
cannam@86
|
16777 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
|
cannam@86
|
16778 enable_shared_with_static_runtimes_GCJ=yes
|
cannam@86
|
16779 ;;
|
cannam@86
|
16780
|
cannam@86
|
16781 darwin* | rhapsody*)
|
cannam@86
|
16782 case "$host_os" in
|
cannam@86
|
16783 rhapsody* | darwin1.[012])
|
cannam@86
|
16784 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
|
cannam@86
|
16785 ;;
|
cannam@86
|
16786 *) # Darwin 1.3 on
|
cannam@86
|
16787 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
|
cannam@86
|
16788 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
cannam@86
|
16789 else
|
cannam@86
|
16790 case ${MACOSX_DEPLOYMENT_TARGET} in
|
cannam@86
|
16791 10.[012])
|
cannam@86
|
16792 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
cannam@86
|
16793 ;;
|
cannam@86
|
16794 10.*)
|
cannam@86
|
16795 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
|
cannam@86
|
16796 ;;
|
cannam@86
|
16797 esac
|
cannam@86
|
16798 fi
|
cannam@86
|
16799 ;;
|
cannam@86
|
16800 esac
|
cannam@86
|
16801 archive_cmds_need_lc_GCJ=no
|
cannam@86
|
16802 hardcode_direct_GCJ=no
|
cannam@86
|
16803 hardcode_automatic_GCJ=yes
|
cannam@86
|
16804 hardcode_shlibpath_var_GCJ=unsupported
|
cannam@86
|
16805 whole_archive_flag_spec_GCJ=''
|
cannam@86
|
16806 link_all_deplibs_GCJ=yes
|
cannam@86
|
16807 if test "$GCC" = yes ; then
|
cannam@86
|
16808 output_verbose_link_cmd='echo'
|
cannam@86
|
16809 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
|
cannam@86
|
16810 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
cannam@86
|
16811 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
|
cannam@86
|
16812 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
cannam@86
|
16813 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
cannam@86
|
16814 else
|
cannam@86
|
16815 case $cc_basename in
|
cannam@86
|
16816 xlc*)
|
cannam@86
|
16817 output_verbose_link_cmd='echo'
|
cannam@86
|
16818 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
|
cannam@86
|
16819 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
cannam@86
|
16820 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
|
cannam@86
|
16821 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
cannam@86
|
16822 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
cannam@86
|
16823 ;;
|
cannam@86
|
16824 *)
|
cannam@86
|
16825 ld_shlibs_GCJ=no
|
cannam@86
|
16826 ;;
|
cannam@86
|
16827 esac
|
cannam@86
|
16828 fi
|
cannam@86
|
16829 ;;
|
cannam@86
|
16830
|
cannam@86
|
16831 dgux*)
|
cannam@86
|
16832 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
16833 hardcode_libdir_flag_spec_GCJ='-L$libdir'
|
cannam@86
|
16834 hardcode_shlibpath_var_GCJ=no
|
cannam@86
|
16835 ;;
|
cannam@86
|
16836
|
cannam@86
|
16837 freebsd1*)
|
cannam@86
|
16838 ld_shlibs_GCJ=no
|
cannam@86
|
16839 ;;
|
cannam@86
|
16840
|
cannam@86
|
16841 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
|
cannam@86
|
16842 # support. Future versions do this automatically, but an explicit c++rt0.o
|
cannam@86
|
16843 # does not break anything, and helps significantly (at the cost of a little
|
cannam@86
|
16844 # extra space).
|
cannam@86
|
16845 freebsd2.2*)
|
cannam@86
|
16846 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
|
cannam@86
|
16847 hardcode_libdir_flag_spec_GCJ='-R$libdir'
|
cannam@86
|
16848 hardcode_direct_GCJ=yes
|
cannam@86
|
16849 hardcode_shlibpath_var_GCJ=no
|
cannam@86
|
16850 ;;
|
cannam@86
|
16851
|
cannam@86
|
16852 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
|
cannam@86
|
16853 freebsd2*)
|
cannam@86
|
16854 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
16855 hardcode_direct_GCJ=yes
|
cannam@86
|
16856 hardcode_minus_L_GCJ=yes
|
cannam@86
|
16857 hardcode_shlibpath_var_GCJ=no
|
cannam@86
|
16858 ;;
|
cannam@86
|
16859
|
cannam@86
|
16860 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
cannam@86
|
16861 freebsd* | kfreebsd*-gnu | dragonfly*)
|
cannam@86
|
16862 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@86
|
16863 hardcode_libdir_flag_spec_GCJ='-R$libdir'
|
cannam@86
|
16864 hardcode_direct_GCJ=yes
|
cannam@86
|
16865 hardcode_shlibpath_var_GCJ=no
|
cannam@86
|
16866 ;;
|
cannam@86
|
16867
|
cannam@86
|
16868 hpux9*)
|
cannam@86
|
16869 if test "$GCC" = yes; then
|
cannam@86
|
16870 archive_cmds_GCJ='$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@86
|
16871 else
|
cannam@86
|
16872 archive_cmds_GCJ='$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@86
|
16873 fi
|
cannam@86
|
16874 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
|
cannam@86
|
16875 hardcode_libdir_separator_GCJ=:
|
cannam@86
|
16876 hardcode_direct_GCJ=yes
|
cannam@86
|
16877
|
cannam@86
|
16878 # hardcode_minus_L: Not really in the search PATH,
|
cannam@86
|
16879 # but as the default location of the library.
|
cannam@86
|
16880 hardcode_minus_L_GCJ=yes
|
cannam@86
|
16881 export_dynamic_flag_spec_GCJ='${wl}-E'
|
cannam@86
|
16882 ;;
|
cannam@86
|
16883
|
cannam@86
|
16884 hpux10* | hpux11*)
|
cannam@86
|
16885 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
|
cannam@86
|
16886 case "$host_cpu" in
|
cannam@86
|
16887 hppa*64*|ia64*)
|
cannam@86
|
16888 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@86
|
16889 ;;
|
cannam@86
|
16890 *)
|
cannam@86
|
16891 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@86
|
16892 ;;
|
cannam@86
|
16893 esac
|
cannam@86
|
16894 else
|
cannam@86
|
16895 case "$host_cpu" in
|
cannam@86
|
16896 hppa*64*|ia64*)
|
cannam@86
|
16897 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
16898 ;;
|
cannam@86
|
16899 *)
|
cannam@86
|
16900 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
16901 ;;
|
cannam@86
|
16902 esac
|
cannam@86
|
16903 fi
|
cannam@86
|
16904 if test "$with_gnu_ld" = no; then
|
cannam@86
|
16905 case "$host_cpu" in
|
cannam@86
|
16906 hppa*64*)
|
cannam@86
|
16907 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
|
cannam@86
|
16908 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
|
cannam@86
|
16909 hardcode_libdir_separator_GCJ=:
|
cannam@86
|
16910 hardcode_direct_GCJ=no
|
cannam@86
|
16911 hardcode_shlibpath_var_GCJ=no
|
cannam@86
|
16912 ;;
|
cannam@86
|
16913 ia64*)
|
cannam@86
|
16914 hardcode_libdir_flag_spec_GCJ='-L$libdir'
|
cannam@86
|
16915 hardcode_direct_GCJ=no
|
cannam@86
|
16916 hardcode_shlibpath_var_GCJ=no
|
cannam@86
|
16917
|
cannam@86
|
16918 # hardcode_minus_L: Not really in the search PATH,
|
cannam@86
|
16919 # but as the default location of the library.
|
cannam@86
|
16920 hardcode_minus_L_GCJ=yes
|
cannam@86
|
16921 ;;
|
cannam@86
|
16922 *)
|
cannam@86
|
16923 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
|
cannam@86
|
16924 hardcode_libdir_separator_GCJ=:
|
cannam@86
|
16925 hardcode_direct_GCJ=yes
|
cannam@86
|
16926 export_dynamic_flag_spec_GCJ='${wl}-E'
|
cannam@86
|
16927
|
cannam@86
|
16928 # hardcode_minus_L: Not really in the search PATH,
|
cannam@86
|
16929 # but as the default location of the library.
|
cannam@86
|
16930 hardcode_minus_L_GCJ=yes
|
cannam@86
|
16931 ;;
|
cannam@86
|
16932 esac
|
cannam@86
|
16933 fi
|
cannam@86
|
16934 ;;
|
cannam@86
|
16935
|
cannam@86
|
16936 irix5* | irix6* | nonstopux*)
|
cannam@86
|
16937 if test "$GCC" = yes; then
|
cannam@86
|
16938 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
cannam@86
|
16939 else
|
cannam@86
|
16940 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
cannam@86
|
16941 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
|
cannam@86
|
16942 fi
|
cannam@86
|
16943 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
|
cannam@86
|
16944 hardcode_libdir_separator_GCJ=:
|
cannam@86
|
16945 link_all_deplibs_GCJ=yes
|
cannam@86
|
16946 ;;
|
cannam@86
|
16947
|
cannam@86
|
16948 netbsd*)
|
cannam@86
|
16949 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
cannam@86
|
16950 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
|
cannam@86
|
16951 else
|
cannam@86
|
16952 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
|
cannam@86
|
16953 fi
|
cannam@86
|
16954 hardcode_libdir_flag_spec_GCJ='-R$libdir'
|
cannam@86
|
16955 hardcode_direct_GCJ=yes
|
cannam@86
|
16956 hardcode_shlibpath_var_GCJ=no
|
cannam@86
|
16957 ;;
|
cannam@86
|
16958
|
cannam@86
|
16959 newsos6)
|
cannam@86
|
16960 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
16961 hardcode_direct_GCJ=yes
|
cannam@86
|
16962 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
|
cannam@86
|
16963 hardcode_libdir_separator_GCJ=:
|
cannam@86
|
16964 hardcode_shlibpath_var_GCJ=no
|
cannam@86
|
16965 ;;
|
cannam@86
|
16966
|
cannam@86
|
16967 openbsd*)
|
cannam@86
|
16968 hardcode_direct_GCJ=yes
|
cannam@86
|
16969 hardcode_shlibpath_var_GCJ=no
|
cannam@86
|
16970 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
cannam@86
|
16971 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@86
|
16972 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
|
cannam@86
|
16973 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
|
cannam@86
|
16974 export_dynamic_flag_spec_GCJ='${wl}-E'
|
cannam@86
|
16975 else
|
cannam@86
|
16976 case $host_os in
|
cannam@86
|
16977 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
|
cannam@86
|
16978 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
16979 hardcode_libdir_flag_spec_GCJ='-R$libdir'
|
cannam@86
|
16980 ;;
|
cannam@86
|
16981 *)
|
cannam@86
|
16982 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@86
|
16983 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
|
cannam@86
|
16984 ;;
|
cannam@86
|
16985 esac
|
cannam@86
|
16986 fi
|
cannam@86
|
16987 ;;
|
cannam@86
|
16988
|
cannam@86
|
16989 os2*)
|
cannam@86
|
16990 hardcode_libdir_flag_spec_GCJ='-L$libdir'
|
cannam@86
|
16991 hardcode_minus_L_GCJ=yes
|
cannam@86
|
16992 allow_undefined_flag_GCJ=unsupported
|
cannam@86
|
16993 archive_cmds_GCJ='$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@86
|
16994 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
|
cannam@86
|
16995 ;;
|
cannam@86
|
16996
|
cannam@86
|
16997 osf3*)
|
cannam@86
|
16998 if test "$GCC" = yes; then
|
cannam@86
|
16999 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
|
cannam@86
|
17000 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
cannam@86
|
17001 else
|
cannam@86
|
17002 allow_undefined_flag_GCJ=' -expect_unresolved \*'
|
cannam@86
|
17003 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
cannam@86
|
17004 fi
|
cannam@86
|
17005 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
|
cannam@86
|
17006 hardcode_libdir_separator_GCJ=:
|
cannam@86
|
17007 ;;
|
cannam@86
|
17008
|
cannam@86
|
17009 osf4* | osf5*) # as osf3* with the addition of -msym flag
|
cannam@86
|
17010 if test "$GCC" = yes; then
|
cannam@86
|
17011 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
|
cannam@86
|
17012 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
cannam@86
|
17013 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
|
cannam@86
|
17014 else
|
cannam@86
|
17015 allow_undefined_flag_GCJ=' -expect_unresolved \*'
|
cannam@86
|
17016 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
cannam@86
|
17017 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
|
cannam@86
|
17018 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
|
cannam@86
|
17019
|
cannam@86
|
17020 # Both c and cxx compiler support -rpath directly
|
cannam@86
|
17021 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
|
cannam@86
|
17022 fi
|
cannam@86
|
17023 hardcode_libdir_separator_GCJ=:
|
cannam@86
|
17024 ;;
|
cannam@86
|
17025
|
cannam@86
|
17026 sco3.2v5*)
|
cannam@86
|
17027 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
17028 hardcode_shlibpath_var_GCJ=no
|
cannam@86
|
17029 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
|
cannam@86
|
17030 runpath_var=LD_RUN_PATH
|
cannam@86
|
17031 hardcode_runpath_var=yes
|
cannam@86
|
17032 ;;
|
cannam@86
|
17033
|
cannam@86
|
17034 solaris*)
|
cannam@86
|
17035 no_undefined_flag_GCJ=' -z text'
|
cannam@86
|
17036 if test "$GCC" = yes; then
|
cannam@86
|
17037 wlarc='${wl}'
|
cannam@86
|
17038 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@86
|
17039 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
cannam@86
|
17040 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
|
cannam@86
|
17041 else
|
cannam@86
|
17042 wlarc=''
|
cannam@86
|
17043 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
17044 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
cannam@86
|
17045 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
|
cannam@86
|
17046 fi
|
cannam@86
|
17047 hardcode_libdir_flag_spec_GCJ='-R$libdir'
|
cannam@86
|
17048 hardcode_shlibpath_var_GCJ=no
|
cannam@86
|
17049 case $host_os in
|
cannam@86
|
17050 solaris2.[0-5] | solaris2.[0-5].*) ;;
|
cannam@86
|
17051 *)
|
cannam@86
|
17052 # The compiler driver will combine linker options so we
|
cannam@86
|
17053 # cannot just pass the convience library names through
|
cannam@86
|
17054 # without $wl, iff we do not link with $LD.
|
cannam@86
|
17055 # Luckily, gcc supports the same syntax we need for Sun Studio.
|
cannam@86
|
17056 # Supported since Solaris 2.6 (maybe 2.5.1?)
|
cannam@86
|
17057 case $wlarc in
|
cannam@86
|
17058 '')
|
cannam@86
|
17059 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
|
cannam@86
|
17060 *)
|
cannam@86
|
17061 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
|
cannam@86
|
17062 esac ;;
|
cannam@86
|
17063 esac
|
cannam@86
|
17064 link_all_deplibs_GCJ=yes
|
cannam@86
|
17065 ;;
|
cannam@86
|
17066
|
cannam@86
|
17067 sunos4*)
|
cannam@86
|
17068 if test "x$host_vendor" = xsequent; then
|
cannam@86
|
17069 # Use $CC to link under sequent, because it throws in some extra .o
|
cannam@86
|
17070 # files that make .init and .fini sections work.
|
cannam@86
|
17071 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@86
|
17072 else
|
cannam@86
|
17073 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
17074 fi
|
cannam@86
|
17075 hardcode_libdir_flag_spec_GCJ='-L$libdir'
|
cannam@86
|
17076 hardcode_direct_GCJ=yes
|
cannam@86
|
17077 hardcode_minus_L_GCJ=yes
|
cannam@86
|
17078 hardcode_shlibpath_var_GCJ=no
|
cannam@86
|
17079 ;;
|
cannam@86
|
17080
|
cannam@86
|
17081 sysv4)
|
cannam@86
|
17082 case $host_vendor in
|
cannam@86
|
17083 sni)
|
cannam@86
|
17084 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
17085 hardcode_direct_GCJ=yes # is this really true???
|
cannam@86
|
17086 ;;
|
cannam@86
|
17087 siemens)
|
cannam@86
|
17088 ## LD is ld it makes a PLAMLIB
|
cannam@86
|
17089 ## CC just makes a GrossModule.
|
cannam@86
|
17090 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
17091 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
|
cannam@86
|
17092 hardcode_direct_GCJ=no
|
cannam@86
|
17093 ;;
|
cannam@86
|
17094 motorola)
|
cannam@86
|
17095 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
17096 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
|
cannam@86
|
17097 ;;
|
cannam@86
|
17098 esac
|
cannam@86
|
17099 runpath_var='LD_RUN_PATH'
|
cannam@86
|
17100 hardcode_shlibpath_var_GCJ=no
|
cannam@86
|
17101 ;;
|
cannam@86
|
17102
|
cannam@86
|
17103 sysv4.3*)
|
cannam@86
|
17104 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
17105 hardcode_shlibpath_var_GCJ=no
|
cannam@86
|
17106 export_dynamic_flag_spec_GCJ='-Bexport'
|
cannam@86
|
17107 ;;
|
cannam@86
|
17108
|
cannam@86
|
17109 sysv4*MP*)
|
cannam@86
|
17110 if test -d /usr/nec; then
|
cannam@86
|
17111 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
17112 hardcode_shlibpath_var_GCJ=no
|
cannam@86
|
17113 runpath_var=LD_RUN_PATH
|
cannam@86
|
17114 hardcode_runpath_var=yes
|
cannam@86
|
17115 ld_shlibs_GCJ=yes
|
cannam@86
|
17116 fi
|
cannam@86
|
17117 ;;
|
cannam@86
|
17118
|
cannam@86
|
17119 sysv4.2uw2*)
|
cannam@86
|
17120 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
17121 hardcode_direct_GCJ=yes
|
cannam@86
|
17122 hardcode_minus_L_GCJ=no
|
cannam@86
|
17123 hardcode_shlibpath_var_GCJ=no
|
cannam@86
|
17124 hardcode_runpath_var=yes
|
cannam@86
|
17125 runpath_var=LD_RUN_PATH
|
cannam@86
|
17126 ;;
|
cannam@86
|
17127
|
cannam@86
|
17128 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
|
cannam@86
|
17129 no_undefined_flag_GCJ='${wl}-z ${wl}text'
|
cannam@86
|
17130 if test "$GCC" = yes; then
|
cannam@86
|
17131 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@86
|
17132 else
|
cannam@86
|
17133 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@86
|
17134 fi
|
cannam@86
|
17135 runpath_var='LD_RUN_PATH'
|
cannam@86
|
17136 hardcode_shlibpath_var_GCJ=no
|
cannam@86
|
17137 ;;
|
cannam@86
|
17138
|
cannam@86
|
17139 sysv5*)
|
cannam@86
|
17140 no_undefined_flag_GCJ=' -z text'
|
cannam@86
|
17141 # $CC -shared without GNU ld will not create a library from C++
|
cannam@86
|
17142 # object files and a static libstdc++, better avoid it by now
|
cannam@86
|
17143 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
17144 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
cannam@86
|
17145 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
|
cannam@86
|
17146 hardcode_libdir_flag_spec_GCJ=
|
cannam@86
|
17147 hardcode_shlibpath_var_GCJ=no
|
cannam@86
|
17148 runpath_var='LD_RUN_PATH'
|
cannam@86
|
17149 ;;
|
cannam@86
|
17150
|
cannam@86
|
17151 uts4*)
|
cannam@86
|
17152 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
17153 hardcode_libdir_flag_spec_GCJ='-L$libdir'
|
cannam@86
|
17154 hardcode_shlibpath_var_GCJ=no
|
cannam@86
|
17155 ;;
|
cannam@86
|
17156
|
cannam@86
|
17157 *)
|
cannam@86
|
17158 ld_shlibs_GCJ=no
|
cannam@86
|
17159 ;;
|
cannam@86
|
17160 esac
|
cannam@86
|
17161 fi
|
cannam@86
|
17162
|
cannam@86
|
17163 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
|
cannam@86
|
17164 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
|
cannam@86
|
17165 test "$ld_shlibs_GCJ" = no && can_build_shared=no
|
cannam@86
|
17166
|
cannam@86
|
17167 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
cannam@86
|
17168 if test "$GCC" = yes; then
|
cannam@86
|
17169 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
cannam@86
|
17170 fi
|
cannam@86
|
17171
|
cannam@86
|
17172 #
|
cannam@86
|
17173 # Do we need to explicitly link libc?
|
cannam@86
|
17174 #
|
cannam@86
|
17175 case "x$archive_cmds_need_lc_GCJ" in
|
cannam@86
|
17176 x|xyes)
|
cannam@86
|
17177 # Assume -lc should be added
|
cannam@86
|
17178 archive_cmds_need_lc_GCJ=yes
|
cannam@86
|
17179
|
cannam@86
|
17180 if test "$enable_shared" = yes && test "$GCC" = yes; then
|
cannam@86
|
17181 case $archive_cmds_GCJ in
|
cannam@86
|
17182 *'~'*)
|
cannam@86
|
17183 # FIXME: we may have to deal with multi-command sequences.
|
cannam@86
|
17184 ;;
|
cannam@86
|
17185 '$CC '*)
|
cannam@86
|
17186 # Test whether the compiler implicitly links with -lc since on some
|
cannam@86
|
17187 # systems, -lgcc has to come before -lc. If gcc already passes -lc
|
cannam@86
|
17188 # to ld, don't add -lc before -lgcc.
|
cannam@86
|
17189 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
|
cannam@86
|
17190 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
|
cannam@86
|
17191 $rm conftest*
|
cannam@86
|
17192 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
cannam@86
|
17193
|
cannam@86
|
17194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
17195 (eval $ac_compile) 2>&5
|
cannam@86
|
17196 ac_status=$?
|
cannam@86
|
17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
17198 (exit $ac_status); } 2>conftest.err; then
|
cannam@86
|
17199 soname=conftest
|
cannam@86
|
17200 lib=conftest
|
cannam@86
|
17201 libobjs=conftest.$ac_objext
|
cannam@86
|
17202 deplibs=
|
cannam@86
|
17203 wl=$lt_prog_compiler_wl_GCJ
|
cannam@86
|
17204 compiler_flags=-v
|
cannam@86
|
17205 linker_flags=-v
|
cannam@86
|
17206 verstring=
|
cannam@86
|
17207 output_objdir=.
|
cannam@86
|
17208 libname=conftest
|
cannam@86
|
17209 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
|
cannam@86
|
17210 allow_undefined_flag_GCJ=
|
cannam@86
|
17211 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
|
cannam@86
|
17212 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
|
cannam@86
|
17213 ac_status=$?
|
cannam@86
|
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
17215 (exit $ac_status); }
|
cannam@86
|
17216 then
|
cannam@86
|
17217 archive_cmds_need_lc_GCJ=no
|
cannam@86
|
17218 else
|
cannam@86
|
17219 archive_cmds_need_lc_GCJ=yes
|
cannam@86
|
17220 fi
|
cannam@86
|
17221 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
|
cannam@86
|
17222 else
|
cannam@86
|
17223 cat conftest.err 1>&5
|
cannam@86
|
17224 fi
|
cannam@86
|
17225 $rm conftest*
|
cannam@86
|
17226 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
|
cannam@86
|
17227 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
|
cannam@86
|
17228 ;;
|
cannam@86
|
17229 esac
|
cannam@86
|
17230 fi
|
cannam@86
|
17231 ;;
|
cannam@86
|
17232 esac
|
cannam@86
|
17233
|
cannam@86
|
17234 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
|
cannam@86
|
17235 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
|
cannam@86
|
17236 library_names_spec=
|
cannam@86
|
17237 libname_spec='lib$name'
|
cannam@86
|
17238 soname_spec=
|
cannam@86
|
17239 shrext_cmds=".so"
|
cannam@86
|
17240 postinstall_cmds=
|
cannam@86
|
17241 postuninstall_cmds=
|
cannam@86
|
17242 finish_cmds=
|
cannam@86
|
17243 finish_eval=
|
cannam@86
|
17244 shlibpath_var=
|
cannam@86
|
17245 shlibpath_overrides_runpath=unknown
|
cannam@86
|
17246 version_type=none
|
cannam@86
|
17247 dynamic_linker="$host_os ld.so"
|
cannam@86
|
17248 sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
cannam@86
|
17249 if test "$GCC" = yes; then
|
cannam@86
|
17250 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
cannam@86
|
17251 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
|
cannam@86
|
17252 # if the path contains ";" then we assume it to be the separator
|
cannam@86
|
17253 # otherwise default to the standard path separator (i.e. ":") - it is
|
cannam@86
|
17254 # assumed that no part of a normal pathname contains ";" but that should
|
cannam@86
|
17255 # okay in the real world where ";" in dirpaths is itself problematic.
|
cannam@86
|
17256 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
cannam@86
|
17257 else
|
cannam@86
|
17258 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
cannam@86
|
17259 fi
|
cannam@86
|
17260 else
|
cannam@86
|
17261 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
|
cannam@86
|
17262 fi
|
cannam@86
|
17263 need_lib_prefix=unknown
|
cannam@86
|
17264 hardcode_into_libs=no
|
cannam@86
|
17265
|
cannam@86
|
17266 # when you set need_version to no, make sure it does not cause -set_version
|
cannam@86
|
17267 # flags to be left without arguments
|
cannam@86
|
17268 need_version=unknown
|
cannam@86
|
17269
|
cannam@86
|
17270 case $host_os in
|
cannam@86
|
17271 aix3*)
|
cannam@86
|
17272 version_type=linux
|
cannam@86
|
17273 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
|
cannam@86
|
17274 shlibpath_var=LIBPATH
|
cannam@86
|
17275
|
cannam@86
|
17276 # AIX 3 has no versioning support, so we append a major version to the name.
|
cannam@86
|
17277 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
17278 ;;
|
cannam@86
|
17279
|
cannam@86
|
17280 aix4* | aix5*)
|
cannam@86
|
17281 version_type=linux
|
cannam@86
|
17282 need_lib_prefix=no
|
cannam@86
|
17283 need_version=no
|
cannam@86
|
17284 hardcode_into_libs=yes
|
cannam@86
|
17285 if test "$host_cpu" = ia64; then
|
cannam@86
|
17286 # AIX 5 supports IA64
|
cannam@86
|
17287 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
|
cannam@86
|
17288 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
17289 else
|
cannam@86
|
17290 # With GCC up to 2.95.x, collect2 would create an import file
|
cannam@86
|
17291 # for dependence libraries. The import file would start with
|
cannam@86
|
17292 # the line `#! .'. This would cause the generated library to
|
cannam@86
|
17293 # depend on `.', always an invalid library. This was fixed in
|
cannam@86
|
17294 # development snapshots of GCC prior to 3.0.
|
cannam@86
|
17295 case $host_os in
|
cannam@86
|
17296 aix4 | aix4.[01] | aix4.[01].*)
|
cannam@86
|
17297 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
|
cannam@86
|
17298 echo ' yes '
|
cannam@86
|
17299 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
|
cannam@86
|
17300 :
|
cannam@86
|
17301 else
|
cannam@86
|
17302 can_build_shared=no
|
cannam@86
|
17303 fi
|
cannam@86
|
17304 ;;
|
cannam@86
|
17305 esac
|
cannam@86
|
17306 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
|
cannam@86
|
17307 # soname into executable. Probably we can add versioning support to
|
cannam@86
|
17308 # collect2, so additional links can be useful in future.
|
cannam@86
|
17309 if test "$aix_use_runtimelinking" = yes; then
|
cannam@86
|
17310 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
|
cannam@86
|
17311 # instead of lib<name>.a to let people know that these are not
|
cannam@86
|
17312 # typical AIX shared libraries.
|
cannam@86
|
17313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
17314 else
|
cannam@86
|
17315 # We preserve .a as extension for shared libraries through AIX4.2
|
cannam@86
|
17316 # and later when we are not doing run time linking.
|
cannam@86
|
17317 library_names_spec='${libname}${release}.a $libname.a'
|
cannam@86
|
17318 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
17319 fi
|
cannam@86
|
17320 shlibpath_var=LIBPATH
|
cannam@86
|
17321 fi
|
cannam@86
|
17322 ;;
|
cannam@86
|
17323
|
cannam@86
|
17324 amigaos*)
|
cannam@86
|
17325 library_names_spec='$libname.ixlibrary $libname.a'
|
cannam@86
|
17326 # Create ${libname}_ixlibrary.a entries in /sys/libs.
|
cannam@86
|
17327 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@86
|
17328 ;;
|
cannam@86
|
17329
|
cannam@86
|
17330 beos*)
|
cannam@86
|
17331 library_names_spec='${libname}${shared_ext}'
|
cannam@86
|
17332 dynamic_linker="$host_os ld.so"
|
cannam@86
|
17333 shlibpath_var=LIBRARY_PATH
|
cannam@86
|
17334 ;;
|
cannam@86
|
17335
|
cannam@86
|
17336 bsdi[45]*)
|
cannam@86
|
17337 version_type=linux
|
cannam@86
|
17338 need_version=no
|
cannam@86
|
17339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
17340 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
17341 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
|
cannam@86
|
17342 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
17343 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
|
cannam@86
|
17344 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
|
cannam@86
|
17345 # the default ld.so.conf also contains /usr/contrib/lib and
|
cannam@86
|
17346 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
|
cannam@86
|
17347 # libtool to hard-code these into programs
|
cannam@86
|
17348 ;;
|
cannam@86
|
17349
|
cannam@86
|
17350 cygwin* | mingw* | pw32*)
|
cannam@86
|
17351 version_type=windows
|
cannam@86
|
17352 shrext_cmds=".dll"
|
cannam@86
|
17353 need_version=no
|
cannam@86
|
17354 need_lib_prefix=no
|
cannam@86
|
17355
|
cannam@86
|
17356 case $GCC,$host_os in
|
cannam@86
|
17357 yes,cygwin* | yes,mingw* | yes,pw32*)
|
cannam@86
|
17358 library_names_spec='$libname.dll.a'
|
cannam@86
|
17359 # DLL is installed to $(libdir)/../bin by postinstall_cmds
|
cannam@86
|
17360 postinstall_cmds='base_file=`basename \${file}`~
|
cannam@86
|
17361 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
|
cannam@86
|
17362 dldir=$destdir/`dirname \$dlpath`~
|
cannam@86
|
17363 test -d \$dldir || mkdir -p \$dldir~
|
cannam@86
|
17364 $install_prog $dir/$dlname \$dldir/$dlname'
|
cannam@86
|
17365 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
cannam@86
|
17366 dlpath=$dir/\$dldll~
|
cannam@86
|
17367 $rm \$dlpath'
|
cannam@86
|
17368 shlibpath_overrides_runpath=yes
|
cannam@86
|
17369
|
cannam@86
|
17370 case $host_os in
|
cannam@86
|
17371 cygwin*)
|
cannam@86
|
17372 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
|
cannam@86
|
17373 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
cannam@86
|
17374 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
|
cannam@86
|
17375 ;;
|
cannam@86
|
17376 mingw*)
|
cannam@86
|
17377 # MinGW DLLs use traditional 'lib' prefix
|
cannam@86
|
17378 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
cannam@86
|
17379 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
cannam@86
|
17380 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
|
cannam@86
|
17381 # It is most probably a Windows format PATH printed by
|
cannam@86
|
17382 # mingw gcc, but we are running on Cygwin. Gcc prints its search
|
cannam@86
|
17383 # path with ; separators, and with drive letters. We can handle the
|
cannam@86
|
17384 # drive letters (cygwin fileutils understands them), so leave them,
|
cannam@86
|
17385 # especially as we might pass files found there to a mingw objdump,
|
cannam@86
|
17386 # which wouldn't understand a cygwinified path. Ahh.
|
cannam@86
|
17387 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
cannam@86
|
17388 else
|
cannam@86
|
17389 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
cannam@86
|
17390 fi
|
cannam@86
|
17391 ;;
|
cannam@86
|
17392 pw32*)
|
cannam@86
|
17393 # pw32 DLLs use 'pw' prefix rather than 'lib'
|
cannam@86
|
17394 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
cannam@86
|
17395 ;;
|
cannam@86
|
17396 esac
|
cannam@86
|
17397 ;;
|
cannam@86
|
17398
|
cannam@86
|
17399 *)
|
cannam@86
|
17400 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
cannam@86
|
17401 ;;
|
cannam@86
|
17402 esac
|
cannam@86
|
17403 dynamic_linker='Win32 ld.exe'
|
cannam@86
|
17404 # FIXME: first we should search . and the directory the executable is in
|
cannam@86
|
17405 shlibpath_var=PATH
|
cannam@86
|
17406 ;;
|
cannam@86
|
17407
|
cannam@86
|
17408 darwin* | rhapsody*)
|
cannam@86
|
17409 dynamic_linker="$host_os dyld"
|
cannam@86
|
17410 version_type=darwin
|
cannam@86
|
17411 need_lib_prefix=no
|
cannam@86
|
17412 need_version=no
|
cannam@86
|
17413 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
|
cannam@86
|
17414 soname_spec='${libname}${release}${major}$shared_ext'
|
cannam@86
|
17415 shlibpath_overrides_runpath=yes
|
cannam@86
|
17416 shlibpath_var=DYLD_LIBRARY_PATH
|
cannam@86
|
17417 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
|
cannam@86
|
17418 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
|
cannam@86
|
17419 if test "$GCC" = yes; then
|
cannam@86
|
17420 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
|
cannam@86
|
17421 else
|
cannam@86
|
17422 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
|
cannam@86
|
17423 fi
|
cannam@86
|
17424 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
|
cannam@86
|
17425 ;;
|
cannam@86
|
17426
|
cannam@86
|
17427 dgux*)
|
cannam@86
|
17428 version_type=linux
|
cannam@86
|
17429 need_lib_prefix=no
|
cannam@86
|
17430 need_version=no
|
cannam@86
|
17431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
|
cannam@86
|
17432 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
17433 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
17434 ;;
|
cannam@86
|
17435
|
cannam@86
|
17436 freebsd1*)
|
cannam@86
|
17437 dynamic_linker=no
|
cannam@86
|
17438 ;;
|
cannam@86
|
17439
|
cannam@86
|
17440 kfreebsd*-gnu)
|
cannam@86
|
17441 version_type=linux
|
cannam@86
|
17442 need_lib_prefix=no
|
cannam@86
|
17443 need_version=no
|
cannam@86
|
17444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
cannam@86
|
17445 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
17446 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
17447 shlibpath_overrides_runpath=no
|
cannam@86
|
17448 hardcode_into_libs=yes
|
cannam@86
|
17449 dynamic_linker='GNU ld.so'
|
cannam@86
|
17450 ;;
|
cannam@86
|
17451
|
cannam@86
|
17452 freebsd* | dragonfly*)
|
cannam@86
|
17453 # DragonFly does not have aout. When/if they implement a new
|
cannam@86
|
17454 # versioning mechanism, adjust this.
|
cannam@86
|
17455 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
|
cannam@86
|
17456 version_type=freebsd-$objformat
|
cannam@86
|
17457 case $version_type in
|
cannam@86
|
17458 freebsd-elf*)
|
cannam@86
|
17459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
cannam@86
|
17460 need_version=no
|
cannam@86
|
17461 need_lib_prefix=no
|
cannam@86
|
17462 ;;
|
cannam@86
|
17463 freebsd-*)
|
cannam@86
|
17464 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
|
cannam@86
|
17465 need_version=yes
|
cannam@86
|
17466 ;;
|
cannam@86
|
17467 esac
|
cannam@86
|
17468 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
17469 case $host_os in
|
cannam@86
|
17470 freebsd2*)
|
cannam@86
|
17471 shlibpath_overrides_runpath=yes
|
cannam@86
|
17472 ;;
|
cannam@86
|
17473 freebsd3.[01]* | freebsdelf3.[01]*)
|
cannam@86
|
17474 shlibpath_overrides_runpath=yes
|
cannam@86
|
17475 hardcode_into_libs=yes
|
cannam@86
|
17476 ;;
|
cannam@86
|
17477 *) # from 3.2 on
|
cannam@86
|
17478 shlibpath_overrides_runpath=no
|
cannam@86
|
17479 hardcode_into_libs=yes
|
cannam@86
|
17480 ;;
|
cannam@86
|
17481 esac
|
cannam@86
|
17482 ;;
|
cannam@86
|
17483
|
cannam@86
|
17484 gnu*)
|
cannam@86
|
17485 version_type=linux
|
cannam@86
|
17486 need_lib_prefix=no
|
cannam@86
|
17487 need_version=no
|
cannam@86
|
17488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
|
cannam@86
|
17489 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
17490 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
17491 hardcode_into_libs=yes
|
cannam@86
|
17492 ;;
|
cannam@86
|
17493
|
cannam@86
|
17494 hpux9* | hpux10* | hpux11*)
|
cannam@86
|
17495 # Give a soname corresponding to the major version so that dld.sl refuses to
|
cannam@86
|
17496 # link against other versions.
|
cannam@86
|
17497 version_type=sunos
|
cannam@86
|
17498 need_lib_prefix=no
|
cannam@86
|
17499 need_version=no
|
cannam@86
|
17500 case "$host_cpu" in
|
cannam@86
|
17501 ia64*)
|
cannam@86
|
17502 shrext_cmds='.so'
|
cannam@86
|
17503 hardcode_into_libs=yes
|
cannam@86
|
17504 dynamic_linker="$host_os dld.so"
|
cannam@86
|
17505 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
17506 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
cannam@86
|
17507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
17508 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
17509 if test "X$HPUX_IA64_MODE" = X32; then
|
cannam@86
|
17510 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
|
cannam@86
|
17511 else
|
cannam@86
|
17512 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
|
cannam@86
|
17513 fi
|
cannam@86
|
17514 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
cannam@86
|
17515 ;;
|
cannam@86
|
17516 hppa*64*)
|
cannam@86
|
17517 shrext_cmds='.sl'
|
cannam@86
|
17518 hardcode_into_libs=yes
|
cannam@86
|
17519 dynamic_linker="$host_os dld.sl"
|
cannam@86
|
17520 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
|
cannam@86
|
17521 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
cannam@86
|
17522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
17523 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
17524 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
|
cannam@86
|
17525 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
cannam@86
|
17526 ;;
|
cannam@86
|
17527 *)
|
cannam@86
|
17528 shrext_cmds='.sl'
|
cannam@86
|
17529 dynamic_linker="$host_os dld.sl"
|
cannam@86
|
17530 shlibpath_var=SHLIB_PATH
|
cannam@86
|
17531 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
|
cannam@86
|
17532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
17533 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
17534 ;;
|
cannam@86
|
17535 esac
|
cannam@86
|
17536 # HP-UX runs *really* slowly unless shared libraries are mode 555.
|
cannam@86
|
17537 postinstall_cmds='chmod 555 $lib'
|
cannam@86
|
17538 ;;
|
cannam@86
|
17539
|
cannam@86
|
17540 irix5* | irix6* | nonstopux*)
|
cannam@86
|
17541 case $host_os in
|
cannam@86
|
17542 nonstopux*) version_type=nonstopux ;;
|
cannam@86
|
17543 *)
|
cannam@86
|
17544 if test "$lt_cv_prog_gnu_ld" = yes; then
|
cannam@86
|
17545 version_type=linux
|
cannam@86
|
17546 else
|
cannam@86
|
17547 version_type=irix
|
cannam@86
|
17548 fi ;;
|
cannam@86
|
17549 esac
|
cannam@86
|
17550 need_lib_prefix=no
|
cannam@86
|
17551 need_version=no
|
cannam@86
|
17552 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
17553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
|
cannam@86
|
17554 case $host_os in
|
cannam@86
|
17555 irix5* | nonstopux*)
|
cannam@86
|
17556 libsuff= shlibsuff=
|
cannam@86
|
17557 ;;
|
cannam@86
|
17558 *)
|
cannam@86
|
17559 case $LD in # libtool.m4 will add one of these switches to LD
|
cannam@86
|
17560 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
|
cannam@86
|
17561 libsuff= shlibsuff= libmagic=32-bit;;
|
cannam@86
|
17562 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
|
cannam@86
|
17563 libsuff=32 shlibsuff=N32 libmagic=N32;;
|
cannam@86
|
17564 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
|
cannam@86
|
17565 libsuff=64 shlibsuff=64 libmagic=64-bit;;
|
cannam@86
|
17566 *) libsuff= shlibsuff= libmagic=never-match;;
|
cannam@86
|
17567 esac
|
cannam@86
|
17568 ;;
|
cannam@86
|
17569 esac
|
cannam@86
|
17570 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
|
cannam@86
|
17571 shlibpath_overrides_runpath=no
|
cannam@86
|
17572 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
|
cannam@86
|
17573 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
|
cannam@86
|
17574 hardcode_into_libs=yes
|
cannam@86
|
17575 ;;
|
cannam@86
|
17576
|
cannam@86
|
17577 # No shared lib support for Linux oldld, aout, or coff.
|
cannam@86
|
17578 linux*oldld* | linux*aout* | linux*coff*)
|
cannam@86
|
17579 dynamic_linker=no
|
cannam@86
|
17580 ;;
|
cannam@86
|
17581
|
cannam@86
|
17582 # This must be Linux ELF.
|
cannam@86
|
17583 linux*)
|
cannam@86
|
17584 version_type=linux
|
cannam@86
|
17585 need_lib_prefix=no
|
cannam@86
|
17586 need_version=no
|
cannam@86
|
17587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
17588 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
17589 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
cannam@86
|
17590 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
17591 shlibpath_overrides_runpath=no
|
cannam@86
|
17592 # This implies no fast_install, which is unacceptable.
|
cannam@86
|
17593 # Some rework will be needed to allow for fast_install
|
cannam@86
|
17594 # before this can be enabled.
|
cannam@86
|
17595 hardcode_into_libs=yes
|
cannam@86
|
17596
|
cannam@86
|
17597 # find out which ABI we are using
|
cannam@86
|
17598 libsuff=
|
cannam@86
|
17599 case "$host_cpu" in
|
cannam@86
|
17600 x86_64*|s390x*|powerpc64*)
|
cannam@86
|
17601 echo '#line 17601 "configure"' > conftest.$ac_ext
|
cannam@86
|
17602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
17603 (eval $ac_compile) 2>&5
|
cannam@86
|
17604 ac_status=$?
|
cannam@86
|
17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
17606 (exit $ac_status); }; then
|
cannam@86
|
17607 case `/usr/bin/file conftest.$ac_objext` in
|
cannam@86
|
17608 *64-bit*)
|
cannam@86
|
17609 libsuff=64
|
cannam@86
|
17610 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
|
cannam@86
|
17611 ;;
|
cannam@86
|
17612 esac
|
cannam@86
|
17613 fi
|
cannam@86
|
17614 rm -rf conftest*
|
cannam@86
|
17615 ;;
|
cannam@86
|
17616 esac
|
cannam@86
|
17617
|
cannam@86
|
17618 # Append ld.so.conf contents to the search path
|
cannam@86
|
17619 if test -f /etc/ld.so.conf; then
|
cannam@86
|
17620 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
|
cannam@86
|
17621 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
|
cannam@86
|
17622 fi
|
cannam@86
|
17623
|
cannam@86
|
17624 # We used to test for /lib/ld.so.1 and disable shared libraries on
|
cannam@86
|
17625 # powerpc, because MkLinux only supported shared libraries with the
|
cannam@86
|
17626 # GNU dynamic linker. Since this was broken with cross compilers,
|
cannam@86
|
17627 # most powerpc-linux boxes support dynamic linking these days and
|
cannam@86
|
17628 # people can always --disable-shared, the test was removed, and we
|
cannam@86
|
17629 # assume the GNU/Linux dynamic linker is in use.
|
cannam@86
|
17630 dynamic_linker='GNU/Linux ld.so'
|
cannam@86
|
17631 ;;
|
cannam@86
|
17632
|
cannam@86
|
17633 knetbsd*-gnu)
|
cannam@86
|
17634 version_type=linux
|
cannam@86
|
17635 need_lib_prefix=no
|
cannam@86
|
17636 need_version=no
|
cannam@86
|
17637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
cannam@86
|
17638 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
17639 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
17640 shlibpath_overrides_runpath=no
|
cannam@86
|
17641 hardcode_into_libs=yes
|
cannam@86
|
17642 dynamic_linker='GNU ld.so'
|
cannam@86
|
17643 ;;
|
cannam@86
|
17644
|
cannam@86
|
17645 netbsd*)
|
cannam@86
|
17646 version_type=sunos
|
cannam@86
|
17647 need_lib_prefix=no
|
cannam@86
|
17648 need_version=no
|
cannam@86
|
17649 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
cannam@86
|
17650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
cannam@86
|
17651 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
cannam@86
|
17652 dynamic_linker='NetBSD (a.out) ld.so'
|
cannam@86
|
17653 else
|
cannam@86
|
17654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
cannam@86
|
17655 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
17656 dynamic_linker='NetBSD ld.elf_so'
|
cannam@86
|
17657 fi
|
cannam@86
|
17658 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
17659 shlibpath_overrides_runpath=yes
|
cannam@86
|
17660 hardcode_into_libs=yes
|
cannam@86
|
17661 ;;
|
cannam@86
|
17662
|
cannam@86
|
17663 newsos6)
|
cannam@86
|
17664 version_type=linux
|
cannam@86
|
17665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
17666 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
17667 shlibpath_overrides_runpath=yes
|
cannam@86
|
17668 ;;
|
cannam@86
|
17669
|
cannam@86
|
17670 nto-qnx*)
|
cannam@86
|
17671 version_type=linux
|
cannam@86
|
17672 need_lib_prefix=no
|
cannam@86
|
17673 need_version=no
|
cannam@86
|
17674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
17675 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
17676 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
17677 shlibpath_overrides_runpath=yes
|
cannam@86
|
17678 ;;
|
cannam@86
|
17679
|
cannam@86
|
17680 openbsd*)
|
cannam@86
|
17681 version_type=sunos
|
cannam@86
|
17682 need_lib_prefix=no
|
cannam@86
|
17683 need_version=no
|
cannam@86
|
17684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
cannam@86
|
17685 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
cannam@86
|
17686 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
17687 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
cannam@86
|
17688 case $host_os in
|
cannam@86
|
17689 openbsd2.[89] | openbsd2.[89].*)
|
cannam@86
|
17690 shlibpath_overrides_runpath=no
|
cannam@86
|
17691 ;;
|
cannam@86
|
17692 *)
|
cannam@86
|
17693 shlibpath_overrides_runpath=yes
|
cannam@86
|
17694 ;;
|
cannam@86
|
17695 esac
|
cannam@86
|
17696 else
|
cannam@86
|
17697 shlibpath_overrides_runpath=yes
|
cannam@86
|
17698 fi
|
cannam@86
|
17699 ;;
|
cannam@86
|
17700
|
cannam@86
|
17701 os2*)
|
cannam@86
|
17702 libname_spec='$name'
|
cannam@86
|
17703 shrext_cmds=".dll"
|
cannam@86
|
17704 need_lib_prefix=no
|
cannam@86
|
17705 library_names_spec='$libname${shared_ext} $libname.a'
|
cannam@86
|
17706 dynamic_linker='OS/2 ld.exe'
|
cannam@86
|
17707 shlibpath_var=LIBPATH
|
cannam@86
|
17708 ;;
|
cannam@86
|
17709
|
cannam@86
|
17710 osf3* | osf4* | osf5*)
|
cannam@86
|
17711 version_type=osf
|
cannam@86
|
17712 need_lib_prefix=no
|
cannam@86
|
17713 need_version=no
|
cannam@86
|
17714 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
17715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
17716 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
17717 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
|
cannam@86
|
17718 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
|
cannam@86
|
17719 ;;
|
cannam@86
|
17720
|
cannam@86
|
17721 sco3.2v5*)
|
cannam@86
|
17722 version_type=osf
|
cannam@86
|
17723 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
17724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
17725 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
17726 ;;
|
cannam@86
|
17727
|
cannam@86
|
17728 solaris*)
|
cannam@86
|
17729 version_type=linux
|
cannam@86
|
17730 need_lib_prefix=no
|
cannam@86
|
17731 need_version=no
|
cannam@86
|
17732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
17733 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
17734 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
17735 shlibpath_overrides_runpath=yes
|
cannam@86
|
17736 hardcode_into_libs=yes
|
cannam@86
|
17737 # ldd complains unless libraries are executable
|
cannam@86
|
17738 postinstall_cmds='chmod +x $lib'
|
cannam@86
|
17739 ;;
|
cannam@86
|
17740
|
cannam@86
|
17741 sunos4*)
|
cannam@86
|
17742 version_type=sunos
|
cannam@86
|
17743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
cannam@86
|
17744 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
|
cannam@86
|
17745 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
17746 shlibpath_overrides_runpath=yes
|
cannam@86
|
17747 if test "$with_gnu_ld" = yes; then
|
cannam@86
|
17748 need_lib_prefix=no
|
cannam@86
|
17749 fi
|
cannam@86
|
17750 need_version=yes
|
cannam@86
|
17751 ;;
|
cannam@86
|
17752
|
cannam@86
|
17753 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
cannam@86
|
17754 version_type=linux
|
cannam@86
|
17755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
17756 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
17757 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
17758 case $host_vendor in
|
cannam@86
|
17759 sni)
|
cannam@86
|
17760 shlibpath_overrides_runpath=no
|
cannam@86
|
17761 need_lib_prefix=no
|
cannam@86
|
17762 export_dynamic_flag_spec='${wl}-Blargedynsym'
|
cannam@86
|
17763 runpath_var=LD_RUN_PATH
|
cannam@86
|
17764 ;;
|
cannam@86
|
17765 siemens)
|
cannam@86
|
17766 need_lib_prefix=no
|
cannam@86
|
17767 ;;
|
cannam@86
|
17768 motorola)
|
cannam@86
|
17769 need_lib_prefix=no
|
cannam@86
|
17770 need_version=no
|
cannam@86
|
17771 shlibpath_overrides_runpath=no
|
cannam@86
|
17772 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
|
cannam@86
|
17773 ;;
|
cannam@86
|
17774 esac
|
cannam@86
|
17775 ;;
|
cannam@86
|
17776
|
cannam@86
|
17777 sysv4*MP*)
|
cannam@86
|
17778 if test -d /usr/nec ;then
|
cannam@86
|
17779 version_type=linux
|
cannam@86
|
17780 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
|
cannam@86
|
17781 soname_spec='$libname${shared_ext}.$major'
|
cannam@86
|
17782 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
17783 fi
|
cannam@86
|
17784 ;;
|
cannam@86
|
17785
|
cannam@86
|
17786 uts4*)
|
cannam@86
|
17787 version_type=linux
|
cannam@86
|
17788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
17789 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
17790 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
17791 ;;
|
cannam@86
|
17792
|
cannam@86
|
17793 *)
|
cannam@86
|
17794 dynamic_linker=no
|
cannam@86
|
17795 ;;
|
cannam@86
|
17796 esac
|
cannam@86
|
17797 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
|
cannam@86
|
17798 echo "${ECHO_T}$dynamic_linker" >&6
|
cannam@86
|
17799 test "$dynamic_linker" = no && can_build_shared=no
|
cannam@86
|
17800
|
cannam@86
|
17801 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
|
cannam@86
|
17802 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
|
cannam@86
|
17803 hardcode_action_GCJ=
|
cannam@86
|
17804 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
|
cannam@86
|
17805 test -n "$runpath_var_GCJ" || \
|
cannam@86
|
17806 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
|
cannam@86
|
17807
|
cannam@86
|
17808 # We can hardcode non-existant directories.
|
cannam@86
|
17809 if test "$hardcode_direct_GCJ" != no &&
|
cannam@86
|
17810 # If the only mechanism to avoid hardcoding is shlibpath_var, we
|
cannam@86
|
17811 # have to relink, otherwise we might link with an installed library
|
cannam@86
|
17812 # when we should be linking with a yet-to-be-installed one
|
cannam@86
|
17813 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
|
cannam@86
|
17814 test "$hardcode_minus_L_GCJ" != no; then
|
cannam@86
|
17815 # Linking always hardcodes the temporary library directory.
|
cannam@86
|
17816 hardcode_action_GCJ=relink
|
cannam@86
|
17817 else
|
cannam@86
|
17818 # We can link without hardcoding, and we can hardcode nonexisting dirs.
|
cannam@86
|
17819 hardcode_action_GCJ=immediate
|
cannam@86
|
17820 fi
|
cannam@86
|
17821 else
|
cannam@86
|
17822 # We cannot hardcode anything, or else we can only hardcode existing
|
cannam@86
|
17823 # directories.
|
cannam@86
|
17824 hardcode_action_GCJ=unsupported
|
cannam@86
|
17825 fi
|
cannam@86
|
17826 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
|
cannam@86
|
17827 echo "${ECHO_T}$hardcode_action_GCJ" >&6
|
cannam@86
|
17828
|
cannam@86
|
17829 if test "$hardcode_action_GCJ" = relink; then
|
cannam@86
|
17830 # Fast installation is not supported
|
cannam@86
|
17831 enable_fast_install=no
|
cannam@86
|
17832 elif test "$shlibpath_overrides_runpath" = yes ||
|
cannam@86
|
17833 test "$enable_shared" = no; then
|
cannam@86
|
17834 # Fast installation is not necessary
|
cannam@86
|
17835 enable_fast_install=needless
|
cannam@86
|
17836 fi
|
cannam@86
|
17837
|
cannam@86
|
17838 striplib=
|
cannam@86
|
17839 old_striplib=
|
cannam@86
|
17840 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
|
cannam@86
|
17841 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
|
cannam@86
|
17842 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
|
cannam@86
|
17843 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
|
cannam@86
|
17844 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
|
cannam@86
|
17845 echo "$as_me:$LINENO: result: yes" >&5
|
cannam@86
|
17846 echo "${ECHO_T}yes" >&6
|
cannam@86
|
17847 else
|
cannam@86
|
17848 # FIXME - insert some real tests, host_os isn't really good enough
|
cannam@86
|
17849 case $host_os in
|
cannam@86
|
17850 darwin*)
|
cannam@86
|
17851 if test -n "$STRIP" ; then
|
cannam@86
|
17852 striplib="$STRIP -x"
|
cannam@86
|
17853 echo "$as_me:$LINENO: result: yes" >&5
|
cannam@86
|
17854 echo "${ECHO_T}yes" >&6
|
cannam@86
|
17855 else
|
cannam@86
|
17856 echo "$as_me:$LINENO: result: no" >&5
|
cannam@86
|
17857 echo "${ECHO_T}no" >&6
|
cannam@86
|
17858 fi
|
cannam@86
|
17859 ;;
|
cannam@86
|
17860 *)
|
cannam@86
|
17861 echo "$as_me:$LINENO: result: no" >&5
|
cannam@86
|
17862 echo "${ECHO_T}no" >&6
|
cannam@86
|
17863 ;;
|
cannam@86
|
17864 esac
|
cannam@86
|
17865 fi
|
cannam@86
|
17866
|
cannam@86
|
17867 if test "x$enable_dlopen" != xyes; then
|
cannam@86
|
17868 enable_dlopen=unknown
|
cannam@86
|
17869 enable_dlopen_self=unknown
|
cannam@86
|
17870 enable_dlopen_self_static=unknown
|
cannam@86
|
17871 else
|
cannam@86
|
17872 lt_cv_dlopen=no
|
cannam@86
|
17873 lt_cv_dlopen_libs=
|
cannam@86
|
17874
|
cannam@86
|
17875 case $host_os in
|
cannam@86
|
17876 beos*)
|
cannam@86
|
17877 lt_cv_dlopen="load_add_on"
|
cannam@86
|
17878 lt_cv_dlopen_libs=
|
cannam@86
|
17879 lt_cv_dlopen_self=yes
|
cannam@86
|
17880 ;;
|
cannam@86
|
17881
|
cannam@86
|
17882 mingw* | pw32*)
|
cannam@86
|
17883 lt_cv_dlopen="LoadLibrary"
|
cannam@86
|
17884 lt_cv_dlopen_libs=
|
cannam@86
|
17885 ;;
|
cannam@86
|
17886
|
cannam@86
|
17887 cygwin*)
|
cannam@86
|
17888 lt_cv_dlopen="dlopen"
|
cannam@86
|
17889 lt_cv_dlopen_libs=
|
cannam@86
|
17890 ;;
|
cannam@86
|
17891
|
cannam@86
|
17892 darwin*)
|
cannam@86
|
17893 # if libdl is installed we need to link against it
|
cannam@86
|
17894 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
|
cannam@86
|
17895 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
|
cannam@86
|
17896 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
|
cannam@86
|
17897 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
17898 else
|
cannam@86
|
17899 ac_check_lib_save_LIBS=$LIBS
|
cannam@86
|
17900 LIBS="-ldl $LIBS"
|
cannam@86
|
17901 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
17902 /* confdefs.h. */
|
cannam@86
|
17903 _ACEOF
|
cannam@86
|
17904 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
17905 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
17906 /* end confdefs.h. */
|
cannam@86
|
17907
|
cannam@86
|
17908 /* Override any gcc2 internal prototype to avoid an error. */
|
cannam@86
|
17909 #ifdef __cplusplus
|
cannam@86
|
17910 extern "C"
|
cannam@86
|
17911 #endif
|
cannam@86
|
17912 /* We use char because int might match the return type of a gcc2
|
cannam@86
|
17913 builtin and then its argument prototype would still apply. */
|
cannam@86
|
17914 char dlopen ();
|
cannam@86
|
17915 int
|
cannam@86
|
17916 main ()
|
cannam@86
|
17917 {
|
cannam@86
|
17918 dlopen ();
|
cannam@86
|
17919 ;
|
cannam@86
|
17920 return 0;
|
cannam@86
|
17921 }
|
cannam@86
|
17922 _ACEOF
|
cannam@86
|
17923 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@86
|
17924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@86
|
17925 (eval $ac_link) 2>conftest.er1
|
cannam@86
|
17926 ac_status=$?
|
cannam@86
|
17927 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
17928 rm -f conftest.er1
|
cannam@86
|
17929 cat conftest.err >&5
|
cannam@86
|
17930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
17931 (exit $ac_status); } &&
|
cannam@86
|
17932 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
17933 || test ! -s conftest.err'
|
cannam@86
|
17934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
17935 (eval $ac_try) 2>&5
|
cannam@86
|
17936 ac_status=$?
|
cannam@86
|
17937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
17938 (exit $ac_status); }; } &&
|
cannam@86
|
17939 { ac_try='test -s conftest$ac_exeext'
|
cannam@86
|
17940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
17941 (eval $ac_try) 2>&5
|
cannam@86
|
17942 ac_status=$?
|
cannam@86
|
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
17944 (exit $ac_status); }; }; then
|
cannam@86
|
17945 ac_cv_lib_dl_dlopen=yes
|
cannam@86
|
17946 else
|
cannam@86
|
17947 echo "$as_me: failed program was:" >&5
|
cannam@86
|
17948 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
17949
|
cannam@86
|
17950 ac_cv_lib_dl_dlopen=no
|
cannam@86
|
17951 fi
|
cannam@86
|
17952 rm -f conftest.err conftest.$ac_objext \
|
cannam@86
|
17953 conftest$ac_exeext conftest.$ac_ext
|
cannam@86
|
17954 LIBS=$ac_check_lib_save_LIBS
|
cannam@86
|
17955 fi
|
cannam@86
|
17956 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
|
cannam@86
|
17957 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
|
cannam@86
|
17958 if test $ac_cv_lib_dl_dlopen = yes; then
|
cannam@86
|
17959 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
|
cannam@86
|
17960 else
|
cannam@86
|
17961
|
cannam@86
|
17962 lt_cv_dlopen="dyld"
|
cannam@86
|
17963 lt_cv_dlopen_libs=
|
cannam@86
|
17964 lt_cv_dlopen_self=yes
|
cannam@86
|
17965
|
cannam@86
|
17966 fi
|
cannam@86
|
17967
|
cannam@86
|
17968 ;;
|
cannam@86
|
17969
|
cannam@86
|
17970 *)
|
cannam@86
|
17971 echo "$as_me:$LINENO: checking for shl_load" >&5
|
cannam@86
|
17972 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
|
cannam@86
|
17973 if test "${ac_cv_func_shl_load+set}" = set; then
|
cannam@86
|
17974 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
17975 else
|
cannam@86
|
17976 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
17977 /* confdefs.h. */
|
cannam@86
|
17978 _ACEOF
|
cannam@86
|
17979 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
17980 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
17981 /* end confdefs.h. */
|
cannam@86
|
17982 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
|
cannam@86
|
17983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
cannam@86
|
17984 #define shl_load innocuous_shl_load
|
cannam@86
|
17985
|
cannam@86
|
17986 /* System header to define __stub macros and hopefully few prototypes,
|
cannam@86
|
17987 which can conflict with char shl_load (); below.
|
cannam@86
|
17988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
cannam@86
|
17989 <limits.h> exists even on freestanding compilers. */
|
cannam@86
|
17990
|
cannam@86
|
17991 #ifdef __STDC__
|
cannam@86
|
17992 # include <limits.h>
|
cannam@86
|
17993 #else
|
cannam@86
|
17994 # include <assert.h>
|
cannam@86
|
17995 #endif
|
cannam@86
|
17996
|
cannam@86
|
17997 #undef shl_load
|
cannam@86
|
17998
|
cannam@86
|
17999 /* Override any gcc2 internal prototype to avoid an error. */
|
cannam@86
|
18000 #ifdef __cplusplus
|
cannam@86
|
18001 extern "C"
|
cannam@86
|
18002 {
|
cannam@86
|
18003 #endif
|
cannam@86
|
18004 /* We use char because int might match the return type of a gcc2
|
cannam@86
|
18005 builtin and then its argument prototype would still apply. */
|
cannam@86
|
18006 char shl_load ();
|
cannam@86
|
18007 /* The GNU C library defines this for functions which it implements
|
cannam@86
|
18008 to always fail with ENOSYS. Some functions are actually named
|
cannam@86
|
18009 something starting with __ and the normal name is an alias. */
|
cannam@86
|
18010 #if defined (__stub_shl_load) || defined (__stub___shl_load)
|
cannam@86
|
18011 choke me
|
cannam@86
|
18012 #else
|
cannam@86
|
18013 char (*f) () = shl_load;
|
cannam@86
|
18014 #endif
|
cannam@86
|
18015 #ifdef __cplusplus
|
cannam@86
|
18016 }
|
cannam@86
|
18017 #endif
|
cannam@86
|
18018
|
cannam@86
|
18019 int
|
cannam@86
|
18020 main ()
|
cannam@86
|
18021 {
|
cannam@86
|
18022 return f != shl_load;
|
cannam@86
|
18023 ;
|
cannam@86
|
18024 return 0;
|
cannam@86
|
18025 }
|
cannam@86
|
18026 _ACEOF
|
cannam@86
|
18027 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@86
|
18028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@86
|
18029 (eval $ac_link) 2>conftest.er1
|
cannam@86
|
18030 ac_status=$?
|
cannam@86
|
18031 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
18032 rm -f conftest.er1
|
cannam@86
|
18033 cat conftest.err >&5
|
cannam@86
|
18034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
18035 (exit $ac_status); } &&
|
cannam@86
|
18036 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
18037 || test ! -s conftest.err'
|
cannam@86
|
18038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
18039 (eval $ac_try) 2>&5
|
cannam@86
|
18040 ac_status=$?
|
cannam@86
|
18041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
18042 (exit $ac_status); }; } &&
|
cannam@86
|
18043 { ac_try='test -s conftest$ac_exeext'
|
cannam@86
|
18044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
18045 (eval $ac_try) 2>&5
|
cannam@86
|
18046 ac_status=$?
|
cannam@86
|
18047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
18048 (exit $ac_status); }; }; then
|
cannam@86
|
18049 ac_cv_func_shl_load=yes
|
cannam@86
|
18050 else
|
cannam@86
|
18051 echo "$as_me: failed program was:" >&5
|
cannam@86
|
18052 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
18053
|
cannam@86
|
18054 ac_cv_func_shl_load=no
|
cannam@86
|
18055 fi
|
cannam@86
|
18056 rm -f conftest.err conftest.$ac_objext \
|
cannam@86
|
18057 conftest$ac_exeext conftest.$ac_ext
|
cannam@86
|
18058 fi
|
cannam@86
|
18059 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
|
cannam@86
|
18060 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
|
cannam@86
|
18061 if test $ac_cv_func_shl_load = yes; then
|
cannam@86
|
18062 lt_cv_dlopen="shl_load"
|
cannam@86
|
18063 else
|
cannam@86
|
18064 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
|
cannam@86
|
18065 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
|
cannam@86
|
18066 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
|
cannam@86
|
18067 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
18068 else
|
cannam@86
|
18069 ac_check_lib_save_LIBS=$LIBS
|
cannam@86
|
18070 LIBS="-ldld $LIBS"
|
cannam@86
|
18071 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
18072 /* confdefs.h. */
|
cannam@86
|
18073 _ACEOF
|
cannam@86
|
18074 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
18075 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
18076 /* end confdefs.h. */
|
cannam@86
|
18077
|
cannam@86
|
18078 /* Override any gcc2 internal prototype to avoid an error. */
|
cannam@86
|
18079 #ifdef __cplusplus
|
cannam@86
|
18080 extern "C"
|
cannam@86
|
18081 #endif
|
cannam@86
|
18082 /* We use char because int might match the return type of a gcc2
|
cannam@86
|
18083 builtin and then its argument prototype would still apply. */
|
cannam@86
|
18084 char shl_load ();
|
cannam@86
|
18085 int
|
cannam@86
|
18086 main ()
|
cannam@86
|
18087 {
|
cannam@86
|
18088 shl_load ();
|
cannam@86
|
18089 ;
|
cannam@86
|
18090 return 0;
|
cannam@86
|
18091 }
|
cannam@86
|
18092 _ACEOF
|
cannam@86
|
18093 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@86
|
18094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@86
|
18095 (eval $ac_link) 2>conftest.er1
|
cannam@86
|
18096 ac_status=$?
|
cannam@86
|
18097 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
18098 rm -f conftest.er1
|
cannam@86
|
18099 cat conftest.err >&5
|
cannam@86
|
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
18101 (exit $ac_status); } &&
|
cannam@86
|
18102 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
18103 || test ! -s conftest.err'
|
cannam@86
|
18104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
18105 (eval $ac_try) 2>&5
|
cannam@86
|
18106 ac_status=$?
|
cannam@86
|
18107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
18108 (exit $ac_status); }; } &&
|
cannam@86
|
18109 { ac_try='test -s conftest$ac_exeext'
|
cannam@86
|
18110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
18111 (eval $ac_try) 2>&5
|
cannam@86
|
18112 ac_status=$?
|
cannam@86
|
18113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
18114 (exit $ac_status); }; }; then
|
cannam@86
|
18115 ac_cv_lib_dld_shl_load=yes
|
cannam@86
|
18116 else
|
cannam@86
|
18117 echo "$as_me: failed program was:" >&5
|
cannam@86
|
18118 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
18119
|
cannam@86
|
18120 ac_cv_lib_dld_shl_load=no
|
cannam@86
|
18121 fi
|
cannam@86
|
18122 rm -f conftest.err conftest.$ac_objext \
|
cannam@86
|
18123 conftest$ac_exeext conftest.$ac_ext
|
cannam@86
|
18124 LIBS=$ac_check_lib_save_LIBS
|
cannam@86
|
18125 fi
|
cannam@86
|
18126 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
|
cannam@86
|
18127 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
|
cannam@86
|
18128 if test $ac_cv_lib_dld_shl_load = yes; then
|
cannam@86
|
18129 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
|
cannam@86
|
18130 else
|
cannam@86
|
18131 echo "$as_me:$LINENO: checking for dlopen" >&5
|
cannam@86
|
18132 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
|
cannam@86
|
18133 if test "${ac_cv_func_dlopen+set}" = set; then
|
cannam@86
|
18134 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
18135 else
|
cannam@86
|
18136 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
18137 /* confdefs.h. */
|
cannam@86
|
18138 _ACEOF
|
cannam@86
|
18139 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
18140 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
18141 /* end confdefs.h. */
|
cannam@86
|
18142 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
|
cannam@86
|
18143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
cannam@86
|
18144 #define dlopen innocuous_dlopen
|
cannam@86
|
18145
|
cannam@86
|
18146 /* System header to define __stub macros and hopefully few prototypes,
|
cannam@86
|
18147 which can conflict with char dlopen (); below.
|
cannam@86
|
18148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
cannam@86
|
18149 <limits.h> exists even on freestanding compilers. */
|
cannam@86
|
18150
|
cannam@86
|
18151 #ifdef __STDC__
|
cannam@86
|
18152 # include <limits.h>
|
cannam@86
|
18153 #else
|
cannam@86
|
18154 # include <assert.h>
|
cannam@86
|
18155 #endif
|
cannam@86
|
18156
|
cannam@86
|
18157 #undef dlopen
|
cannam@86
|
18158
|
cannam@86
|
18159 /* Override any gcc2 internal prototype to avoid an error. */
|
cannam@86
|
18160 #ifdef __cplusplus
|
cannam@86
|
18161 extern "C"
|
cannam@86
|
18162 {
|
cannam@86
|
18163 #endif
|
cannam@86
|
18164 /* We use char because int might match the return type of a gcc2
|
cannam@86
|
18165 builtin and then its argument prototype would still apply. */
|
cannam@86
|
18166 char dlopen ();
|
cannam@86
|
18167 /* The GNU C library defines this for functions which it implements
|
cannam@86
|
18168 to always fail with ENOSYS. Some functions are actually named
|
cannam@86
|
18169 something starting with __ and the normal name is an alias. */
|
cannam@86
|
18170 #if defined (__stub_dlopen) || defined (__stub___dlopen)
|
cannam@86
|
18171 choke me
|
cannam@86
|
18172 #else
|
cannam@86
|
18173 char (*f) () = dlopen;
|
cannam@86
|
18174 #endif
|
cannam@86
|
18175 #ifdef __cplusplus
|
cannam@86
|
18176 }
|
cannam@86
|
18177 #endif
|
cannam@86
|
18178
|
cannam@86
|
18179 int
|
cannam@86
|
18180 main ()
|
cannam@86
|
18181 {
|
cannam@86
|
18182 return f != dlopen;
|
cannam@86
|
18183 ;
|
cannam@86
|
18184 return 0;
|
cannam@86
|
18185 }
|
cannam@86
|
18186 _ACEOF
|
cannam@86
|
18187 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@86
|
18188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@86
|
18189 (eval $ac_link) 2>conftest.er1
|
cannam@86
|
18190 ac_status=$?
|
cannam@86
|
18191 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
18192 rm -f conftest.er1
|
cannam@86
|
18193 cat conftest.err >&5
|
cannam@86
|
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
18195 (exit $ac_status); } &&
|
cannam@86
|
18196 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
18197 || test ! -s conftest.err'
|
cannam@86
|
18198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
18199 (eval $ac_try) 2>&5
|
cannam@86
|
18200 ac_status=$?
|
cannam@86
|
18201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
18202 (exit $ac_status); }; } &&
|
cannam@86
|
18203 { ac_try='test -s conftest$ac_exeext'
|
cannam@86
|
18204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
18205 (eval $ac_try) 2>&5
|
cannam@86
|
18206 ac_status=$?
|
cannam@86
|
18207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
18208 (exit $ac_status); }; }; then
|
cannam@86
|
18209 ac_cv_func_dlopen=yes
|
cannam@86
|
18210 else
|
cannam@86
|
18211 echo "$as_me: failed program was:" >&5
|
cannam@86
|
18212 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
18213
|
cannam@86
|
18214 ac_cv_func_dlopen=no
|
cannam@86
|
18215 fi
|
cannam@86
|
18216 rm -f conftest.err conftest.$ac_objext \
|
cannam@86
|
18217 conftest$ac_exeext conftest.$ac_ext
|
cannam@86
|
18218 fi
|
cannam@86
|
18219 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
|
cannam@86
|
18220 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
|
cannam@86
|
18221 if test $ac_cv_func_dlopen = yes; then
|
cannam@86
|
18222 lt_cv_dlopen="dlopen"
|
cannam@86
|
18223 else
|
cannam@86
|
18224 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
|
cannam@86
|
18225 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
|
cannam@86
|
18226 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
|
cannam@86
|
18227 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
18228 else
|
cannam@86
|
18229 ac_check_lib_save_LIBS=$LIBS
|
cannam@86
|
18230 LIBS="-ldl $LIBS"
|
cannam@86
|
18231 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
18232 /* confdefs.h. */
|
cannam@86
|
18233 _ACEOF
|
cannam@86
|
18234 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
18235 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
18236 /* end confdefs.h. */
|
cannam@86
|
18237
|
cannam@86
|
18238 /* Override any gcc2 internal prototype to avoid an error. */
|
cannam@86
|
18239 #ifdef __cplusplus
|
cannam@86
|
18240 extern "C"
|
cannam@86
|
18241 #endif
|
cannam@86
|
18242 /* We use char because int might match the return type of a gcc2
|
cannam@86
|
18243 builtin and then its argument prototype would still apply. */
|
cannam@86
|
18244 char dlopen ();
|
cannam@86
|
18245 int
|
cannam@86
|
18246 main ()
|
cannam@86
|
18247 {
|
cannam@86
|
18248 dlopen ();
|
cannam@86
|
18249 ;
|
cannam@86
|
18250 return 0;
|
cannam@86
|
18251 }
|
cannam@86
|
18252 _ACEOF
|
cannam@86
|
18253 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@86
|
18254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@86
|
18255 (eval $ac_link) 2>conftest.er1
|
cannam@86
|
18256 ac_status=$?
|
cannam@86
|
18257 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
18258 rm -f conftest.er1
|
cannam@86
|
18259 cat conftest.err >&5
|
cannam@86
|
18260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
18261 (exit $ac_status); } &&
|
cannam@86
|
18262 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
18263 || test ! -s conftest.err'
|
cannam@86
|
18264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
18265 (eval $ac_try) 2>&5
|
cannam@86
|
18266 ac_status=$?
|
cannam@86
|
18267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
18268 (exit $ac_status); }; } &&
|
cannam@86
|
18269 { ac_try='test -s conftest$ac_exeext'
|
cannam@86
|
18270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
18271 (eval $ac_try) 2>&5
|
cannam@86
|
18272 ac_status=$?
|
cannam@86
|
18273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
18274 (exit $ac_status); }; }; then
|
cannam@86
|
18275 ac_cv_lib_dl_dlopen=yes
|
cannam@86
|
18276 else
|
cannam@86
|
18277 echo "$as_me: failed program was:" >&5
|
cannam@86
|
18278 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
18279
|
cannam@86
|
18280 ac_cv_lib_dl_dlopen=no
|
cannam@86
|
18281 fi
|
cannam@86
|
18282 rm -f conftest.err conftest.$ac_objext \
|
cannam@86
|
18283 conftest$ac_exeext conftest.$ac_ext
|
cannam@86
|
18284 LIBS=$ac_check_lib_save_LIBS
|
cannam@86
|
18285 fi
|
cannam@86
|
18286 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
|
cannam@86
|
18287 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
|
cannam@86
|
18288 if test $ac_cv_lib_dl_dlopen = yes; then
|
cannam@86
|
18289 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
|
cannam@86
|
18290 else
|
cannam@86
|
18291 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
|
cannam@86
|
18292 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
|
cannam@86
|
18293 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
|
cannam@86
|
18294 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
18295 else
|
cannam@86
|
18296 ac_check_lib_save_LIBS=$LIBS
|
cannam@86
|
18297 LIBS="-lsvld $LIBS"
|
cannam@86
|
18298 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
18299 /* confdefs.h. */
|
cannam@86
|
18300 _ACEOF
|
cannam@86
|
18301 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
18302 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
18303 /* end confdefs.h. */
|
cannam@86
|
18304
|
cannam@86
|
18305 /* Override any gcc2 internal prototype to avoid an error. */
|
cannam@86
|
18306 #ifdef __cplusplus
|
cannam@86
|
18307 extern "C"
|
cannam@86
|
18308 #endif
|
cannam@86
|
18309 /* We use char because int might match the return type of a gcc2
|
cannam@86
|
18310 builtin and then its argument prototype would still apply. */
|
cannam@86
|
18311 char dlopen ();
|
cannam@86
|
18312 int
|
cannam@86
|
18313 main ()
|
cannam@86
|
18314 {
|
cannam@86
|
18315 dlopen ();
|
cannam@86
|
18316 ;
|
cannam@86
|
18317 return 0;
|
cannam@86
|
18318 }
|
cannam@86
|
18319 _ACEOF
|
cannam@86
|
18320 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@86
|
18321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@86
|
18322 (eval $ac_link) 2>conftest.er1
|
cannam@86
|
18323 ac_status=$?
|
cannam@86
|
18324 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
18325 rm -f conftest.er1
|
cannam@86
|
18326 cat conftest.err >&5
|
cannam@86
|
18327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
18328 (exit $ac_status); } &&
|
cannam@86
|
18329 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
18330 || test ! -s conftest.err'
|
cannam@86
|
18331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
18332 (eval $ac_try) 2>&5
|
cannam@86
|
18333 ac_status=$?
|
cannam@86
|
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
18335 (exit $ac_status); }; } &&
|
cannam@86
|
18336 { ac_try='test -s conftest$ac_exeext'
|
cannam@86
|
18337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
18338 (eval $ac_try) 2>&5
|
cannam@86
|
18339 ac_status=$?
|
cannam@86
|
18340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
18341 (exit $ac_status); }; }; then
|
cannam@86
|
18342 ac_cv_lib_svld_dlopen=yes
|
cannam@86
|
18343 else
|
cannam@86
|
18344 echo "$as_me: failed program was:" >&5
|
cannam@86
|
18345 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
18346
|
cannam@86
|
18347 ac_cv_lib_svld_dlopen=no
|
cannam@86
|
18348 fi
|
cannam@86
|
18349 rm -f conftest.err conftest.$ac_objext \
|
cannam@86
|
18350 conftest$ac_exeext conftest.$ac_ext
|
cannam@86
|
18351 LIBS=$ac_check_lib_save_LIBS
|
cannam@86
|
18352 fi
|
cannam@86
|
18353 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
|
cannam@86
|
18354 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
|
cannam@86
|
18355 if test $ac_cv_lib_svld_dlopen = yes; then
|
cannam@86
|
18356 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
|
cannam@86
|
18357 else
|
cannam@86
|
18358 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
|
cannam@86
|
18359 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
|
cannam@86
|
18360 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
|
cannam@86
|
18361 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
18362 else
|
cannam@86
|
18363 ac_check_lib_save_LIBS=$LIBS
|
cannam@86
|
18364 LIBS="-ldld $LIBS"
|
cannam@86
|
18365 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
18366 /* confdefs.h. */
|
cannam@86
|
18367 _ACEOF
|
cannam@86
|
18368 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
18369 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
18370 /* end confdefs.h. */
|
cannam@86
|
18371
|
cannam@86
|
18372 /* Override any gcc2 internal prototype to avoid an error. */
|
cannam@86
|
18373 #ifdef __cplusplus
|
cannam@86
|
18374 extern "C"
|
cannam@86
|
18375 #endif
|
cannam@86
|
18376 /* We use char because int might match the return type of a gcc2
|
cannam@86
|
18377 builtin and then its argument prototype would still apply. */
|
cannam@86
|
18378 char dld_link ();
|
cannam@86
|
18379 int
|
cannam@86
|
18380 main ()
|
cannam@86
|
18381 {
|
cannam@86
|
18382 dld_link ();
|
cannam@86
|
18383 ;
|
cannam@86
|
18384 return 0;
|
cannam@86
|
18385 }
|
cannam@86
|
18386 _ACEOF
|
cannam@86
|
18387 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@86
|
18388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@86
|
18389 (eval $ac_link) 2>conftest.er1
|
cannam@86
|
18390 ac_status=$?
|
cannam@86
|
18391 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
18392 rm -f conftest.er1
|
cannam@86
|
18393 cat conftest.err >&5
|
cannam@86
|
18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
18395 (exit $ac_status); } &&
|
cannam@86
|
18396 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
18397 || test ! -s conftest.err'
|
cannam@86
|
18398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
18399 (eval $ac_try) 2>&5
|
cannam@86
|
18400 ac_status=$?
|
cannam@86
|
18401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
18402 (exit $ac_status); }; } &&
|
cannam@86
|
18403 { ac_try='test -s conftest$ac_exeext'
|
cannam@86
|
18404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
18405 (eval $ac_try) 2>&5
|
cannam@86
|
18406 ac_status=$?
|
cannam@86
|
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
18408 (exit $ac_status); }; }; then
|
cannam@86
|
18409 ac_cv_lib_dld_dld_link=yes
|
cannam@86
|
18410 else
|
cannam@86
|
18411 echo "$as_me: failed program was:" >&5
|
cannam@86
|
18412 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
18413
|
cannam@86
|
18414 ac_cv_lib_dld_dld_link=no
|
cannam@86
|
18415 fi
|
cannam@86
|
18416 rm -f conftest.err conftest.$ac_objext \
|
cannam@86
|
18417 conftest$ac_exeext conftest.$ac_ext
|
cannam@86
|
18418 LIBS=$ac_check_lib_save_LIBS
|
cannam@86
|
18419 fi
|
cannam@86
|
18420 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
|
cannam@86
|
18421 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
|
cannam@86
|
18422 if test $ac_cv_lib_dld_dld_link = yes; then
|
cannam@86
|
18423 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
|
cannam@86
|
18424 fi
|
cannam@86
|
18425
|
cannam@86
|
18426
|
cannam@86
|
18427 fi
|
cannam@86
|
18428
|
cannam@86
|
18429
|
cannam@86
|
18430 fi
|
cannam@86
|
18431
|
cannam@86
|
18432
|
cannam@86
|
18433 fi
|
cannam@86
|
18434
|
cannam@86
|
18435
|
cannam@86
|
18436 fi
|
cannam@86
|
18437
|
cannam@86
|
18438
|
cannam@86
|
18439 fi
|
cannam@86
|
18440
|
cannam@86
|
18441 ;;
|
cannam@86
|
18442 esac
|
cannam@86
|
18443
|
cannam@86
|
18444 if test "x$lt_cv_dlopen" != xno; then
|
cannam@86
|
18445 enable_dlopen=yes
|
cannam@86
|
18446 else
|
cannam@86
|
18447 enable_dlopen=no
|
cannam@86
|
18448 fi
|
cannam@86
|
18449
|
cannam@86
|
18450 case $lt_cv_dlopen in
|
cannam@86
|
18451 dlopen)
|
cannam@86
|
18452 save_CPPFLAGS="$CPPFLAGS"
|
cannam@86
|
18453 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
|
cannam@86
|
18454
|
cannam@86
|
18455 save_LDFLAGS="$LDFLAGS"
|
cannam@86
|
18456 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
|
cannam@86
|
18457
|
cannam@86
|
18458 save_LIBS="$LIBS"
|
cannam@86
|
18459 LIBS="$lt_cv_dlopen_libs $LIBS"
|
cannam@86
|
18460
|
cannam@86
|
18461 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
|
cannam@86
|
18462 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
|
cannam@86
|
18463 if test "${lt_cv_dlopen_self+set}" = set; then
|
cannam@86
|
18464 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
18465 else
|
cannam@86
|
18466 if test "$cross_compiling" = yes; then :
|
cannam@86
|
18467 lt_cv_dlopen_self=cross
|
cannam@86
|
18468 else
|
cannam@86
|
18469 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
cannam@86
|
18470 lt_status=$lt_dlunknown
|
cannam@86
|
18471 cat > conftest.$ac_ext <<EOF
|
cannam@86
|
18472 #line 18472 "configure"
|
cannam@86
|
18473 #include "confdefs.h"
|
cannam@86
|
18474
|
cannam@86
|
18475 #if HAVE_DLFCN_H
|
cannam@86
|
18476 #include <dlfcn.h>
|
cannam@86
|
18477 #endif
|
cannam@86
|
18478
|
cannam@86
|
18479 #include <stdio.h>
|
cannam@86
|
18480
|
cannam@86
|
18481 #ifdef RTLD_GLOBAL
|
cannam@86
|
18482 # define LT_DLGLOBAL RTLD_GLOBAL
|
cannam@86
|
18483 #else
|
cannam@86
|
18484 # ifdef DL_GLOBAL
|
cannam@86
|
18485 # define LT_DLGLOBAL DL_GLOBAL
|
cannam@86
|
18486 # else
|
cannam@86
|
18487 # define LT_DLGLOBAL 0
|
cannam@86
|
18488 # endif
|
cannam@86
|
18489 #endif
|
cannam@86
|
18490
|
cannam@86
|
18491 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
|
cannam@86
|
18492 find out it does not work in some platform. */
|
cannam@86
|
18493 #ifndef LT_DLLAZY_OR_NOW
|
cannam@86
|
18494 # ifdef RTLD_LAZY
|
cannam@86
|
18495 # define LT_DLLAZY_OR_NOW RTLD_LAZY
|
cannam@86
|
18496 # else
|
cannam@86
|
18497 # ifdef DL_LAZY
|
cannam@86
|
18498 # define LT_DLLAZY_OR_NOW DL_LAZY
|
cannam@86
|
18499 # else
|
cannam@86
|
18500 # ifdef RTLD_NOW
|
cannam@86
|
18501 # define LT_DLLAZY_OR_NOW RTLD_NOW
|
cannam@86
|
18502 # else
|
cannam@86
|
18503 # ifdef DL_NOW
|
cannam@86
|
18504 # define LT_DLLAZY_OR_NOW DL_NOW
|
cannam@86
|
18505 # else
|
cannam@86
|
18506 # define LT_DLLAZY_OR_NOW 0
|
cannam@86
|
18507 # endif
|
cannam@86
|
18508 # endif
|
cannam@86
|
18509 # endif
|
cannam@86
|
18510 # endif
|
cannam@86
|
18511 #endif
|
cannam@86
|
18512
|
cannam@86
|
18513 #ifdef __cplusplus
|
cannam@86
|
18514 extern "C" void exit (int);
|
cannam@86
|
18515 #endif
|
cannam@86
|
18516
|
cannam@86
|
18517 void fnord() { int i=42;}
|
cannam@86
|
18518 int main ()
|
cannam@86
|
18519 {
|
cannam@86
|
18520 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
cannam@86
|
18521 int status = $lt_dlunknown;
|
cannam@86
|
18522
|
cannam@86
|
18523 if (self)
|
cannam@86
|
18524 {
|
cannam@86
|
18525 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
cannam@86
|
18526 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
cannam@86
|
18527 /* dlclose (self); */
|
cannam@86
|
18528 }
|
cannam@86
|
18529
|
cannam@86
|
18530 exit (status);
|
cannam@86
|
18531 }
|
cannam@86
|
18532 EOF
|
cannam@86
|
18533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@86
|
18534 (eval $ac_link) 2>&5
|
cannam@86
|
18535 ac_status=$?
|
cannam@86
|
18536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
18537 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
|
cannam@86
|
18538 (./conftest; exit; ) 2>/dev/null
|
cannam@86
|
18539 lt_status=$?
|
cannam@86
|
18540 case x$lt_status in
|
cannam@86
|
18541 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
|
cannam@86
|
18542 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
|
cannam@86
|
18543 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
|
cannam@86
|
18544 esac
|
cannam@86
|
18545 else :
|
cannam@86
|
18546 # compilation failed
|
cannam@86
|
18547 lt_cv_dlopen_self=no
|
cannam@86
|
18548 fi
|
cannam@86
|
18549 fi
|
cannam@86
|
18550 rm -fr conftest*
|
cannam@86
|
18551
|
cannam@86
|
18552
|
cannam@86
|
18553 fi
|
cannam@86
|
18554 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
|
cannam@86
|
18555 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
|
cannam@86
|
18556
|
cannam@86
|
18557 if test "x$lt_cv_dlopen_self" = xyes; then
|
cannam@86
|
18558 LDFLAGS="$LDFLAGS $link_static_flag"
|
cannam@86
|
18559 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
|
cannam@86
|
18560 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
|
cannam@86
|
18561 if test "${lt_cv_dlopen_self_static+set}" = set; then
|
cannam@86
|
18562 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
18563 else
|
cannam@86
|
18564 if test "$cross_compiling" = yes; then :
|
cannam@86
|
18565 lt_cv_dlopen_self_static=cross
|
cannam@86
|
18566 else
|
cannam@86
|
18567 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
cannam@86
|
18568 lt_status=$lt_dlunknown
|
cannam@86
|
18569 cat > conftest.$ac_ext <<EOF
|
cannam@86
|
18570 #line 18570 "configure"
|
cannam@86
|
18571 #include "confdefs.h"
|
cannam@86
|
18572
|
cannam@86
|
18573 #if HAVE_DLFCN_H
|
cannam@86
|
18574 #include <dlfcn.h>
|
cannam@86
|
18575 #endif
|
cannam@86
|
18576
|
cannam@86
|
18577 #include <stdio.h>
|
cannam@86
|
18578
|
cannam@86
|
18579 #ifdef RTLD_GLOBAL
|
cannam@86
|
18580 # define LT_DLGLOBAL RTLD_GLOBAL
|
cannam@86
|
18581 #else
|
cannam@86
|
18582 # ifdef DL_GLOBAL
|
cannam@86
|
18583 # define LT_DLGLOBAL DL_GLOBAL
|
cannam@86
|
18584 # else
|
cannam@86
|
18585 # define LT_DLGLOBAL 0
|
cannam@86
|
18586 # endif
|
cannam@86
|
18587 #endif
|
cannam@86
|
18588
|
cannam@86
|
18589 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
|
cannam@86
|
18590 find out it does not work in some platform. */
|
cannam@86
|
18591 #ifndef LT_DLLAZY_OR_NOW
|
cannam@86
|
18592 # ifdef RTLD_LAZY
|
cannam@86
|
18593 # define LT_DLLAZY_OR_NOW RTLD_LAZY
|
cannam@86
|
18594 # else
|
cannam@86
|
18595 # ifdef DL_LAZY
|
cannam@86
|
18596 # define LT_DLLAZY_OR_NOW DL_LAZY
|
cannam@86
|
18597 # else
|
cannam@86
|
18598 # ifdef RTLD_NOW
|
cannam@86
|
18599 # define LT_DLLAZY_OR_NOW RTLD_NOW
|
cannam@86
|
18600 # else
|
cannam@86
|
18601 # ifdef DL_NOW
|
cannam@86
|
18602 # define LT_DLLAZY_OR_NOW DL_NOW
|
cannam@86
|
18603 # else
|
cannam@86
|
18604 # define LT_DLLAZY_OR_NOW 0
|
cannam@86
|
18605 # endif
|
cannam@86
|
18606 # endif
|
cannam@86
|
18607 # endif
|
cannam@86
|
18608 # endif
|
cannam@86
|
18609 #endif
|
cannam@86
|
18610
|
cannam@86
|
18611 #ifdef __cplusplus
|
cannam@86
|
18612 extern "C" void exit (int);
|
cannam@86
|
18613 #endif
|
cannam@86
|
18614
|
cannam@86
|
18615 void fnord() { int i=42;}
|
cannam@86
|
18616 int main ()
|
cannam@86
|
18617 {
|
cannam@86
|
18618 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
cannam@86
|
18619 int status = $lt_dlunknown;
|
cannam@86
|
18620
|
cannam@86
|
18621 if (self)
|
cannam@86
|
18622 {
|
cannam@86
|
18623 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
cannam@86
|
18624 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
cannam@86
|
18625 /* dlclose (self); */
|
cannam@86
|
18626 }
|
cannam@86
|
18627
|
cannam@86
|
18628 exit (status);
|
cannam@86
|
18629 }
|
cannam@86
|
18630 EOF
|
cannam@86
|
18631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@86
|
18632 (eval $ac_link) 2>&5
|
cannam@86
|
18633 ac_status=$?
|
cannam@86
|
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
18635 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
|
cannam@86
|
18636 (./conftest; exit; ) 2>/dev/null
|
cannam@86
|
18637 lt_status=$?
|
cannam@86
|
18638 case x$lt_status in
|
cannam@86
|
18639 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
|
cannam@86
|
18640 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
|
cannam@86
|
18641 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
|
cannam@86
|
18642 esac
|
cannam@86
|
18643 else :
|
cannam@86
|
18644 # compilation failed
|
cannam@86
|
18645 lt_cv_dlopen_self_static=no
|
cannam@86
|
18646 fi
|
cannam@86
|
18647 fi
|
cannam@86
|
18648 rm -fr conftest*
|
cannam@86
|
18649
|
cannam@86
|
18650
|
cannam@86
|
18651 fi
|
cannam@86
|
18652 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
|
cannam@86
|
18653 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
|
cannam@86
|
18654 fi
|
cannam@86
|
18655
|
cannam@86
|
18656 CPPFLAGS="$save_CPPFLAGS"
|
cannam@86
|
18657 LDFLAGS="$save_LDFLAGS"
|
cannam@86
|
18658 LIBS="$save_LIBS"
|
cannam@86
|
18659 ;;
|
cannam@86
|
18660 esac
|
cannam@86
|
18661
|
cannam@86
|
18662 case $lt_cv_dlopen_self in
|
cannam@86
|
18663 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
|
cannam@86
|
18664 *) enable_dlopen_self=unknown ;;
|
cannam@86
|
18665 esac
|
cannam@86
|
18666
|
cannam@86
|
18667 case $lt_cv_dlopen_self_static in
|
cannam@86
|
18668 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
|
cannam@86
|
18669 *) enable_dlopen_self_static=unknown ;;
|
cannam@86
|
18670 esac
|
cannam@86
|
18671 fi
|
cannam@86
|
18672
|
cannam@86
|
18673
|
cannam@86
|
18674 # The else clause should only fire when bootstrapping the
|
cannam@86
|
18675 # libtool distribution, otherwise you forgot to ship ltmain.sh
|
cannam@86
|
18676 # with your package, and you will get complaints that there are
|
cannam@86
|
18677 # no rules to generate ltmain.sh.
|
cannam@86
|
18678 if test -f "$ltmain"; then
|
cannam@86
|
18679 # See if we are running on zsh, and set the options which allow our commands through
|
cannam@86
|
18680 # without removal of \ escapes.
|
cannam@86
|
18681 if test -n "${ZSH_VERSION+set}" ; then
|
cannam@86
|
18682 setopt NO_GLOB_SUBST
|
cannam@86
|
18683 fi
|
cannam@86
|
18684 # Now quote all the things that may contain metacharacters while being
|
cannam@86
|
18685 # careful not to overquote the AC_SUBSTed values. We take copies of the
|
cannam@86
|
18686 # variables and quote the copies for generation of the libtool script.
|
cannam@86
|
18687 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
|
cannam@86
|
18688 SED SHELL STRIP \
|
cannam@86
|
18689 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
|
cannam@86
|
18690 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
|
cannam@86
|
18691 deplibs_check_method reload_flag reload_cmds need_locks \
|
cannam@86
|
18692 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
|
cannam@86
|
18693 lt_cv_sys_global_symbol_to_c_name_address \
|
cannam@86
|
18694 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
|
cannam@86
|
18695 old_postinstall_cmds old_postuninstall_cmds \
|
cannam@86
|
18696 compiler_GCJ \
|
cannam@86
|
18697 CC_GCJ \
|
cannam@86
|
18698 LD_GCJ \
|
cannam@86
|
18699 lt_prog_compiler_wl_GCJ \
|
cannam@86
|
18700 lt_prog_compiler_pic_GCJ \
|
cannam@86
|
18701 lt_prog_compiler_static_GCJ \
|
cannam@86
|
18702 lt_prog_compiler_no_builtin_flag_GCJ \
|
cannam@86
|
18703 export_dynamic_flag_spec_GCJ \
|
cannam@86
|
18704 thread_safe_flag_spec_GCJ \
|
cannam@86
|
18705 whole_archive_flag_spec_GCJ \
|
cannam@86
|
18706 enable_shared_with_static_runtimes_GCJ \
|
cannam@86
|
18707 old_archive_cmds_GCJ \
|
cannam@86
|
18708 old_archive_from_new_cmds_GCJ \
|
cannam@86
|
18709 predep_objects_GCJ \
|
cannam@86
|
18710 postdep_objects_GCJ \
|
cannam@86
|
18711 predeps_GCJ \
|
cannam@86
|
18712 postdeps_GCJ \
|
cannam@86
|
18713 compiler_lib_search_path_GCJ \
|
cannam@86
|
18714 archive_cmds_GCJ \
|
cannam@86
|
18715 archive_expsym_cmds_GCJ \
|
cannam@86
|
18716 postinstall_cmds_GCJ \
|
cannam@86
|
18717 postuninstall_cmds_GCJ \
|
cannam@86
|
18718 old_archive_from_expsyms_cmds_GCJ \
|
cannam@86
|
18719 allow_undefined_flag_GCJ \
|
cannam@86
|
18720 no_undefined_flag_GCJ \
|
cannam@86
|
18721 export_symbols_cmds_GCJ \
|
cannam@86
|
18722 hardcode_libdir_flag_spec_GCJ \
|
cannam@86
|
18723 hardcode_libdir_flag_spec_ld_GCJ \
|
cannam@86
|
18724 hardcode_libdir_separator_GCJ \
|
cannam@86
|
18725 hardcode_automatic_GCJ \
|
cannam@86
|
18726 module_cmds_GCJ \
|
cannam@86
|
18727 module_expsym_cmds_GCJ \
|
cannam@86
|
18728 lt_cv_prog_compiler_c_o_GCJ \
|
cannam@86
|
18729 exclude_expsyms_GCJ \
|
cannam@86
|
18730 include_expsyms_GCJ; do
|
cannam@86
|
18731
|
cannam@86
|
18732 case $var in
|
cannam@86
|
18733 old_archive_cmds_GCJ | \
|
cannam@86
|
18734 old_archive_from_new_cmds_GCJ | \
|
cannam@86
|
18735 archive_cmds_GCJ | \
|
cannam@86
|
18736 archive_expsym_cmds_GCJ | \
|
cannam@86
|
18737 module_cmds_GCJ | \
|
cannam@86
|
18738 module_expsym_cmds_GCJ | \
|
cannam@86
|
18739 old_archive_from_expsyms_cmds_GCJ | \
|
cannam@86
|
18740 export_symbols_cmds_GCJ | \
|
cannam@86
|
18741 extract_expsyms_cmds | reload_cmds | finish_cmds | \
|
cannam@86
|
18742 postinstall_cmds | postuninstall_cmds | \
|
cannam@86
|
18743 old_postinstall_cmds | old_postuninstall_cmds | \
|
cannam@86
|
18744 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
|
cannam@86
|
18745 # Double-quote double-evaled strings.
|
cannam@86
|
18746 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
|
cannam@86
|
18747 ;;
|
cannam@86
|
18748 *)
|
cannam@86
|
18749 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
|
cannam@86
|
18750 ;;
|
cannam@86
|
18751 esac
|
cannam@86
|
18752 done
|
cannam@86
|
18753
|
cannam@86
|
18754 case $lt_echo in
|
cannam@86
|
18755 *'\$0 --fallback-echo"')
|
cannam@86
|
18756 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
|
cannam@86
|
18757 ;;
|
cannam@86
|
18758 esac
|
cannam@86
|
18759
|
cannam@86
|
18760 cfgfile="$ofile"
|
cannam@86
|
18761
|
cannam@86
|
18762 cat <<__EOF__ >> "$cfgfile"
|
cannam@86
|
18763 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
|
cannam@86
|
18764
|
cannam@86
|
18765 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
cannam@86
|
18766
|
cannam@86
|
18767 # Shell to use when invoking shell scripts.
|
cannam@86
|
18768 SHELL=$lt_SHELL
|
cannam@86
|
18769
|
cannam@86
|
18770 # Whether or not to build shared libraries.
|
cannam@86
|
18771 build_libtool_libs=$enable_shared
|
cannam@86
|
18772
|
cannam@86
|
18773 # Whether or not to build static libraries.
|
cannam@86
|
18774 build_old_libs=$enable_static
|
cannam@86
|
18775
|
cannam@86
|
18776 # Whether or not to add -lc for building shared libraries.
|
cannam@86
|
18777 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
|
cannam@86
|
18778
|
cannam@86
|
18779 # Whether or not to disallow shared libs when runtime libs are static
|
cannam@86
|
18780 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
|
cannam@86
|
18781
|
cannam@86
|
18782 # Whether or not to optimize for fast installation.
|
cannam@86
|
18783 fast_install=$enable_fast_install
|
cannam@86
|
18784
|
cannam@86
|
18785 # The host system.
|
cannam@86
|
18786 host_alias=$host_alias
|
cannam@86
|
18787 host=$host
|
cannam@86
|
18788 host_os=$host_os
|
cannam@86
|
18789
|
cannam@86
|
18790 # The build system.
|
cannam@86
|
18791 build_alias=$build_alias
|
cannam@86
|
18792 build=$build
|
cannam@86
|
18793 build_os=$build_os
|
cannam@86
|
18794
|
cannam@86
|
18795 # An echo program that does not interpret backslashes.
|
cannam@86
|
18796 echo=$lt_echo
|
cannam@86
|
18797
|
cannam@86
|
18798 # The archiver.
|
cannam@86
|
18799 AR=$lt_AR
|
cannam@86
|
18800 AR_FLAGS=$lt_AR_FLAGS
|
cannam@86
|
18801
|
cannam@86
|
18802 # A C compiler.
|
cannam@86
|
18803 LTCC=$lt_LTCC
|
cannam@86
|
18804
|
cannam@86
|
18805 # A language-specific compiler.
|
cannam@86
|
18806 CC=$lt_compiler_GCJ
|
cannam@86
|
18807
|
cannam@86
|
18808 # Is the compiler the GNU C compiler?
|
cannam@86
|
18809 with_gcc=$GCC_GCJ
|
cannam@86
|
18810
|
cannam@86
|
18811 # An ERE matcher.
|
cannam@86
|
18812 EGREP=$lt_EGREP
|
cannam@86
|
18813
|
cannam@86
|
18814 # The linker used to build libraries.
|
cannam@86
|
18815 LD=$lt_LD_GCJ
|
cannam@86
|
18816
|
cannam@86
|
18817 # Whether we need hard or soft links.
|
cannam@86
|
18818 LN_S=$lt_LN_S
|
cannam@86
|
18819
|
cannam@86
|
18820 # A BSD-compatible nm program.
|
cannam@86
|
18821 NM=$lt_NM
|
cannam@86
|
18822
|
cannam@86
|
18823 # A symbol stripping program
|
cannam@86
|
18824 STRIP=$lt_STRIP
|
cannam@86
|
18825
|
cannam@86
|
18826 # Used to examine libraries when file_magic_cmd begins "file"
|
cannam@86
|
18827 MAGIC_CMD=$MAGIC_CMD
|
cannam@86
|
18828
|
cannam@86
|
18829 # Used on cygwin: DLL creation program.
|
cannam@86
|
18830 DLLTOOL="$DLLTOOL"
|
cannam@86
|
18831
|
cannam@86
|
18832 # Used on cygwin: object dumper.
|
cannam@86
|
18833 OBJDUMP="$OBJDUMP"
|
cannam@86
|
18834
|
cannam@86
|
18835 # Used on cygwin: assembler.
|
cannam@86
|
18836 AS="$AS"
|
cannam@86
|
18837
|
cannam@86
|
18838 # The name of the directory that contains temporary libtool files.
|
cannam@86
|
18839 objdir=$objdir
|
cannam@86
|
18840
|
cannam@86
|
18841 # How to create reloadable object files.
|
cannam@86
|
18842 reload_flag=$lt_reload_flag
|
cannam@86
|
18843 reload_cmds=$lt_reload_cmds
|
cannam@86
|
18844
|
cannam@86
|
18845 # How to pass a linker flag through the compiler.
|
cannam@86
|
18846 wl=$lt_lt_prog_compiler_wl_GCJ
|
cannam@86
|
18847
|
cannam@86
|
18848 # Object file suffix (normally "o").
|
cannam@86
|
18849 objext="$ac_objext"
|
cannam@86
|
18850
|
cannam@86
|
18851 # Old archive suffix (normally "a").
|
cannam@86
|
18852 libext="$libext"
|
cannam@86
|
18853
|
cannam@86
|
18854 # Shared library suffix (normally ".so").
|
cannam@86
|
18855 shrext_cmds='$shrext_cmds'
|
cannam@86
|
18856
|
cannam@86
|
18857 # Executable file suffix (normally "").
|
cannam@86
|
18858 exeext="$exeext"
|
cannam@86
|
18859
|
cannam@86
|
18860 # Additional compiler flags for building library objects.
|
cannam@86
|
18861 pic_flag=$lt_lt_prog_compiler_pic_GCJ
|
cannam@86
|
18862 pic_mode=$pic_mode
|
cannam@86
|
18863
|
cannam@86
|
18864 # What is the maximum length of a command?
|
cannam@86
|
18865 max_cmd_len=$lt_cv_sys_max_cmd_len
|
cannam@86
|
18866
|
cannam@86
|
18867 # Does compiler simultaneously support -c and -o options?
|
cannam@86
|
18868 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
|
cannam@86
|
18869
|
cannam@86
|
18870 # Must we lock files when doing compilation?
|
cannam@86
|
18871 need_locks=$lt_need_locks
|
cannam@86
|
18872
|
cannam@86
|
18873 # Do we need the lib prefix for modules?
|
cannam@86
|
18874 need_lib_prefix=$need_lib_prefix
|
cannam@86
|
18875
|
cannam@86
|
18876 # Do we need a version for libraries?
|
cannam@86
|
18877 need_version=$need_version
|
cannam@86
|
18878
|
cannam@86
|
18879 # Whether dlopen is supported.
|
cannam@86
|
18880 dlopen_support=$enable_dlopen
|
cannam@86
|
18881
|
cannam@86
|
18882 # Whether dlopen of programs is supported.
|
cannam@86
|
18883 dlopen_self=$enable_dlopen_self
|
cannam@86
|
18884
|
cannam@86
|
18885 # Whether dlopen of statically linked programs is supported.
|
cannam@86
|
18886 dlopen_self_static=$enable_dlopen_self_static
|
cannam@86
|
18887
|
cannam@86
|
18888 # Compiler flag to prevent dynamic linking.
|
cannam@86
|
18889 link_static_flag=$lt_lt_prog_compiler_static_GCJ
|
cannam@86
|
18890
|
cannam@86
|
18891 # Compiler flag to turn off builtin functions.
|
cannam@86
|
18892 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
|
cannam@86
|
18893
|
cannam@86
|
18894 # Compiler flag to allow reflexive dlopens.
|
cannam@86
|
18895 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
|
cannam@86
|
18896
|
cannam@86
|
18897 # Compiler flag to generate shared objects directly from archives.
|
cannam@86
|
18898 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
|
cannam@86
|
18899
|
cannam@86
|
18900 # Compiler flag to generate thread-safe objects.
|
cannam@86
|
18901 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
|
cannam@86
|
18902
|
cannam@86
|
18903 # Library versioning type.
|
cannam@86
|
18904 version_type=$version_type
|
cannam@86
|
18905
|
cannam@86
|
18906 # Format of library name prefix.
|
cannam@86
|
18907 libname_spec=$lt_libname_spec
|
cannam@86
|
18908
|
cannam@86
|
18909 # List of archive names. First name is the real one, the rest are links.
|
cannam@86
|
18910 # The last name is the one that the linker finds with -lNAME.
|
cannam@86
|
18911 library_names_spec=$lt_library_names_spec
|
cannam@86
|
18912
|
cannam@86
|
18913 # The coded name of the library, if different from the real name.
|
cannam@86
|
18914 soname_spec=$lt_soname_spec
|
cannam@86
|
18915
|
cannam@86
|
18916 # Commands used to build and install an old-style archive.
|
cannam@86
|
18917 RANLIB=$lt_RANLIB
|
cannam@86
|
18918 old_archive_cmds=$lt_old_archive_cmds_GCJ
|
cannam@86
|
18919 old_postinstall_cmds=$lt_old_postinstall_cmds
|
cannam@86
|
18920 old_postuninstall_cmds=$lt_old_postuninstall_cmds
|
cannam@86
|
18921
|
cannam@86
|
18922 # Create an old-style archive from a shared archive.
|
cannam@86
|
18923 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
|
cannam@86
|
18924
|
cannam@86
|
18925 # Create a temporary old-style archive to link instead of a shared archive.
|
cannam@86
|
18926 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
|
cannam@86
|
18927
|
cannam@86
|
18928 # Commands used to build and install a shared archive.
|
cannam@86
|
18929 archive_cmds=$lt_archive_cmds_GCJ
|
cannam@86
|
18930 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
|
cannam@86
|
18931 postinstall_cmds=$lt_postinstall_cmds
|
cannam@86
|
18932 postuninstall_cmds=$lt_postuninstall_cmds
|
cannam@86
|
18933
|
cannam@86
|
18934 # Commands used to build a loadable module (assumed same as above if empty)
|
cannam@86
|
18935 module_cmds=$lt_module_cmds_GCJ
|
cannam@86
|
18936 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
|
cannam@86
|
18937
|
cannam@86
|
18938 # Commands to strip libraries.
|
cannam@86
|
18939 old_striplib=$lt_old_striplib
|
cannam@86
|
18940 striplib=$lt_striplib
|
cannam@86
|
18941
|
cannam@86
|
18942 # Dependencies to place before the objects being linked to create a
|
cannam@86
|
18943 # shared library.
|
cannam@86
|
18944 predep_objects=$lt_predep_objects_GCJ
|
cannam@86
|
18945
|
cannam@86
|
18946 # Dependencies to place after the objects being linked to create a
|
cannam@86
|
18947 # shared library.
|
cannam@86
|
18948 postdep_objects=$lt_postdep_objects_GCJ
|
cannam@86
|
18949
|
cannam@86
|
18950 # Dependencies to place before the objects being linked to create a
|
cannam@86
|
18951 # shared library.
|
cannam@86
|
18952 predeps=$lt_predeps_GCJ
|
cannam@86
|
18953
|
cannam@86
|
18954 # Dependencies to place after the objects being linked to create a
|
cannam@86
|
18955 # shared library.
|
cannam@86
|
18956 postdeps=$lt_postdeps_GCJ
|
cannam@86
|
18957
|
cannam@86
|
18958 # The library search path used internally by the compiler when linking
|
cannam@86
|
18959 # a shared library.
|
cannam@86
|
18960 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
|
cannam@86
|
18961
|
cannam@86
|
18962 # Method to check whether dependent libraries are shared objects.
|
cannam@86
|
18963 deplibs_check_method=$lt_deplibs_check_method
|
cannam@86
|
18964
|
cannam@86
|
18965 # Command to use when deplibs_check_method == file_magic.
|
cannam@86
|
18966 file_magic_cmd=$lt_file_magic_cmd
|
cannam@86
|
18967
|
cannam@86
|
18968 # Flag that allows shared libraries with undefined symbols to be built.
|
cannam@86
|
18969 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
|
cannam@86
|
18970
|
cannam@86
|
18971 # Flag that forces no undefined symbols.
|
cannam@86
|
18972 no_undefined_flag=$lt_no_undefined_flag_GCJ
|
cannam@86
|
18973
|
cannam@86
|
18974 # Commands used to finish a libtool library installation in a directory.
|
cannam@86
|
18975 finish_cmds=$lt_finish_cmds
|
cannam@86
|
18976
|
cannam@86
|
18977 # Same as above, but a single script fragment to be evaled but not shown.
|
cannam@86
|
18978 finish_eval=$lt_finish_eval
|
cannam@86
|
18979
|
cannam@86
|
18980 # Take the output of nm and produce a listing of raw symbols and C names.
|
cannam@86
|
18981 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
|
cannam@86
|
18982
|
cannam@86
|
18983 # Transform the output of nm in a proper C declaration
|
cannam@86
|
18984 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
|
cannam@86
|
18985
|
cannam@86
|
18986 # Transform the output of nm in a C name address pair
|
cannam@86
|
18987 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
cannam@86
|
18988
|
cannam@86
|
18989 # This is the shared library runtime path variable.
|
cannam@86
|
18990 runpath_var=$runpath_var
|
cannam@86
|
18991
|
cannam@86
|
18992 # This is the shared library path variable.
|
cannam@86
|
18993 shlibpath_var=$shlibpath_var
|
cannam@86
|
18994
|
cannam@86
|
18995 # Is shlibpath searched before the hard-coded library search path?
|
cannam@86
|
18996 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
|
cannam@86
|
18997
|
cannam@86
|
18998 # How to hardcode a shared library path into an executable.
|
cannam@86
|
18999 hardcode_action=$hardcode_action_GCJ
|
cannam@86
|
19000
|
cannam@86
|
19001 # Whether we should hardcode library paths into libraries.
|
cannam@86
|
19002 hardcode_into_libs=$hardcode_into_libs
|
cannam@86
|
19003
|
cannam@86
|
19004 # Flag to hardcode \$libdir into a binary during linking.
|
cannam@86
|
19005 # This must work even if \$libdir does not exist.
|
cannam@86
|
19006 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
|
cannam@86
|
19007
|
cannam@86
|
19008 # If ld is used when linking, flag to hardcode \$libdir into
|
cannam@86
|
19009 # a binary during linking. This must work even if \$libdir does
|
cannam@86
|
19010 # not exist.
|
cannam@86
|
19011 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
|
cannam@86
|
19012
|
cannam@86
|
19013 # Whether we need a single -rpath flag with a separated argument.
|
cannam@86
|
19014 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
|
cannam@86
|
19015
|
cannam@86
|
19016 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
|
cannam@86
|
19017 # resulting binary.
|
cannam@86
|
19018 hardcode_direct=$hardcode_direct_GCJ
|
cannam@86
|
19019
|
cannam@86
|
19020 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
|
cannam@86
|
19021 # resulting binary.
|
cannam@86
|
19022 hardcode_minus_L=$hardcode_minus_L_GCJ
|
cannam@86
|
19023
|
cannam@86
|
19024 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
|
cannam@86
|
19025 # the resulting binary.
|
cannam@86
|
19026 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
|
cannam@86
|
19027
|
cannam@86
|
19028 # Set to yes if building a shared library automatically hardcodes DIR into the library
|
cannam@86
|
19029 # and all subsequent libraries and executables linked against it.
|
cannam@86
|
19030 hardcode_automatic=$hardcode_automatic_GCJ
|
cannam@86
|
19031
|
cannam@86
|
19032 # Variables whose values should be saved in libtool wrapper scripts and
|
cannam@86
|
19033 # restored at relink time.
|
cannam@86
|
19034 variables_saved_for_relink="$variables_saved_for_relink"
|
cannam@86
|
19035
|
cannam@86
|
19036 # Whether libtool must link a program against all its dependency libraries.
|
cannam@86
|
19037 link_all_deplibs=$link_all_deplibs_GCJ
|
cannam@86
|
19038
|
cannam@86
|
19039 # Compile-time system search path for libraries
|
cannam@86
|
19040 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
|
cannam@86
|
19041
|
cannam@86
|
19042 # Run-time system search path for libraries
|
cannam@86
|
19043 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
|
cannam@86
|
19044
|
cannam@86
|
19045 # Fix the shell variable \$srcfile for the compiler.
|
cannam@86
|
19046 fix_srcfile_path="$fix_srcfile_path_GCJ"
|
cannam@86
|
19047
|
cannam@86
|
19048 # Set to yes if exported symbols are required.
|
cannam@86
|
19049 always_export_symbols=$always_export_symbols_GCJ
|
cannam@86
|
19050
|
cannam@86
|
19051 # The commands to list exported symbols.
|
cannam@86
|
19052 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
|
cannam@86
|
19053
|
cannam@86
|
19054 # The commands to extract the exported symbol list from a shared archive.
|
cannam@86
|
19055 extract_expsyms_cmds=$lt_extract_expsyms_cmds
|
cannam@86
|
19056
|
cannam@86
|
19057 # Symbols that should not be listed in the preloaded symbols.
|
cannam@86
|
19058 exclude_expsyms=$lt_exclude_expsyms_GCJ
|
cannam@86
|
19059
|
cannam@86
|
19060 # Symbols that must always be exported.
|
cannam@86
|
19061 include_expsyms=$lt_include_expsyms_GCJ
|
cannam@86
|
19062
|
cannam@86
|
19063 # ### END LIBTOOL TAG CONFIG: $tagname
|
cannam@86
|
19064
|
cannam@86
|
19065 __EOF__
|
cannam@86
|
19066
|
cannam@86
|
19067
|
cannam@86
|
19068 else
|
cannam@86
|
19069 # If there is no Makefile yet, we rely on a make rule to execute
|
cannam@86
|
19070 # `config.status --recheck' to rerun these tests and create the
|
cannam@86
|
19071 # libtool script then.
|
cannam@86
|
19072 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
|
cannam@86
|
19073 if test -f "$ltmain_in"; then
|
cannam@86
|
19074 test -f Makefile && make "$ltmain"
|
cannam@86
|
19075 fi
|
cannam@86
|
19076 fi
|
cannam@86
|
19077
|
cannam@86
|
19078
|
cannam@86
|
19079 ac_ext=c
|
cannam@86
|
19080 ac_cpp='$CPP $CPPFLAGS'
|
cannam@86
|
19081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
cannam@86
|
19082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
cannam@86
|
19083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
cannam@86
|
19084
|
cannam@86
|
19085 CC="$lt_save_CC"
|
cannam@86
|
19086
|
cannam@86
|
19087 else
|
cannam@86
|
19088 tagname=""
|
cannam@86
|
19089 fi
|
cannam@86
|
19090 ;;
|
cannam@86
|
19091
|
cannam@86
|
19092 RC)
|
cannam@86
|
19093
|
cannam@86
|
19094
|
cannam@86
|
19095
|
cannam@86
|
19096 # Source file extension for RC test sources.
|
cannam@86
|
19097 ac_ext=rc
|
cannam@86
|
19098
|
cannam@86
|
19099 # Object file extension for compiled RC test sources.
|
cannam@86
|
19100 objext=o
|
cannam@86
|
19101 objext_RC=$objext
|
cannam@86
|
19102
|
cannam@86
|
19103 # Code to be used in simple compile tests
|
cannam@86
|
19104 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
|
cannam@86
|
19105
|
cannam@86
|
19106 # Code to be used in simple link tests
|
cannam@86
|
19107 lt_simple_link_test_code="$lt_simple_compile_test_code"
|
cannam@86
|
19108
|
cannam@86
|
19109 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
cannam@86
|
19110
|
cannam@86
|
19111 # If no C compiler was specified, use CC.
|
cannam@86
|
19112 LTCC=${LTCC-"$CC"}
|
cannam@86
|
19113
|
cannam@86
|
19114 # Allow CC to be a program name with arguments.
|
cannam@86
|
19115 compiler=$CC
|
cannam@86
|
19116
|
cannam@86
|
19117
|
cannam@86
|
19118 # save warnings/boilerplate of simple test code
|
cannam@86
|
19119 ac_outfile=conftest.$ac_objext
|
cannam@86
|
19120 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
|
cannam@86
|
19121 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
|
cannam@86
|
19122 _lt_compiler_boilerplate=`cat conftest.err`
|
cannam@86
|
19123 $rm conftest*
|
cannam@86
|
19124
|
cannam@86
|
19125 ac_outfile=conftest.$ac_objext
|
cannam@86
|
19126 printf "$lt_simple_link_test_code" >conftest.$ac_ext
|
cannam@86
|
19127 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
|
cannam@86
|
19128 _lt_linker_boilerplate=`cat conftest.err`
|
cannam@86
|
19129 $rm conftest*
|
cannam@86
|
19130
|
cannam@86
|
19131
|
cannam@86
|
19132 # Allow CC to be a program name with arguments.
|
cannam@86
|
19133 lt_save_CC="$CC"
|
cannam@86
|
19134 CC=${RC-"windres"}
|
cannam@86
|
19135 compiler=$CC
|
cannam@86
|
19136 compiler_RC=$CC
|
cannam@86
|
19137 for cc_temp in $compiler""; do
|
cannam@86
|
19138 case $cc_temp in
|
cannam@86
|
19139 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
cannam@86
|
19140 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
cannam@86
|
19141 \-*) ;;
|
cannam@86
|
19142 *) break;;
|
cannam@86
|
19143 esac
|
cannam@86
|
19144 done
|
cannam@86
|
19145 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
cannam@86
|
19146
|
cannam@86
|
19147 lt_cv_prog_compiler_c_o_RC=yes
|
cannam@86
|
19148
|
cannam@86
|
19149 # The else clause should only fire when bootstrapping the
|
cannam@86
|
19150 # libtool distribution, otherwise you forgot to ship ltmain.sh
|
cannam@86
|
19151 # with your package, and you will get complaints that there are
|
cannam@86
|
19152 # no rules to generate ltmain.sh.
|
cannam@86
|
19153 if test -f "$ltmain"; then
|
cannam@86
|
19154 # See if we are running on zsh, and set the options which allow our commands through
|
cannam@86
|
19155 # without removal of \ escapes.
|
cannam@86
|
19156 if test -n "${ZSH_VERSION+set}" ; then
|
cannam@86
|
19157 setopt NO_GLOB_SUBST
|
cannam@86
|
19158 fi
|
cannam@86
|
19159 # Now quote all the things that may contain metacharacters while being
|
cannam@86
|
19160 # careful not to overquote the AC_SUBSTed values. We take copies of the
|
cannam@86
|
19161 # variables and quote the copies for generation of the libtool script.
|
cannam@86
|
19162 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
|
cannam@86
|
19163 SED SHELL STRIP \
|
cannam@86
|
19164 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
|
cannam@86
|
19165 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
|
cannam@86
|
19166 deplibs_check_method reload_flag reload_cmds need_locks \
|
cannam@86
|
19167 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
|
cannam@86
|
19168 lt_cv_sys_global_symbol_to_c_name_address \
|
cannam@86
|
19169 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
|
cannam@86
|
19170 old_postinstall_cmds old_postuninstall_cmds \
|
cannam@86
|
19171 compiler_RC \
|
cannam@86
|
19172 CC_RC \
|
cannam@86
|
19173 LD_RC \
|
cannam@86
|
19174 lt_prog_compiler_wl_RC \
|
cannam@86
|
19175 lt_prog_compiler_pic_RC \
|
cannam@86
|
19176 lt_prog_compiler_static_RC \
|
cannam@86
|
19177 lt_prog_compiler_no_builtin_flag_RC \
|
cannam@86
|
19178 export_dynamic_flag_spec_RC \
|
cannam@86
|
19179 thread_safe_flag_spec_RC \
|
cannam@86
|
19180 whole_archive_flag_spec_RC \
|
cannam@86
|
19181 enable_shared_with_static_runtimes_RC \
|
cannam@86
|
19182 old_archive_cmds_RC \
|
cannam@86
|
19183 old_archive_from_new_cmds_RC \
|
cannam@86
|
19184 predep_objects_RC \
|
cannam@86
|
19185 postdep_objects_RC \
|
cannam@86
|
19186 predeps_RC \
|
cannam@86
|
19187 postdeps_RC \
|
cannam@86
|
19188 compiler_lib_search_path_RC \
|
cannam@86
|
19189 archive_cmds_RC \
|
cannam@86
|
19190 archive_expsym_cmds_RC \
|
cannam@86
|
19191 postinstall_cmds_RC \
|
cannam@86
|
19192 postuninstall_cmds_RC \
|
cannam@86
|
19193 old_archive_from_expsyms_cmds_RC \
|
cannam@86
|
19194 allow_undefined_flag_RC \
|
cannam@86
|
19195 no_undefined_flag_RC \
|
cannam@86
|
19196 export_symbols_cmds_RC \
|
cannam@86
|
19197 hardcode_libdir_flag_spec_RC \
|
cannam@86
|
19198 hardcode_libdir_flag_spec_ld_RC \
|
cannam@86
|
19199 hardcode_libdir_separator_RC \
|
cannam@86
|
19200 hardcode_automatic_RC \
|
cannam@86
|
19201 module_cmds_RC \
|
cannam@86
|
19202 module_expsym_cmds_RC \
|
cannam@86
|
19203 lt_cv_prog_compiler_c_o_RC \
|
cannam@86
|
19204 exclude_expsyms_RC \
|
cannam@86
|
19205 include_expsyms_RC; do
|
cannam@86
|
19206
|
cannam@86
|
19207 case $var in
|
cannam@86
|
19208 old_archive_cmds_RC | \
|
cannam@86
|
19209 old_archive_from_new_cmds_RC | \
|
cannam@86
|
19210 archive_cmds_RC | \
|
cannam@86
|
19211 archive_expsym_cmds_RC | \
|
cannam@86
|
19212 module_cmds_RC | \
|
cannam@86
|
19213 module_expsym_cmds_RC | \
|
cannam@86
|
19214 old_archive_from_expsyms_cmds_RC | \
|
cannam@86
|
19215 export_symbols_cmds_RC | \
|
cannam@86
|
19216 extract_expsyms_cmds | reload_cmds | finish_cmds | \
|
cannam@86
|
19217 postinstall_cmds | postuninstall_cmds | \
|
cannam@86
|
19218 old_postinstall_cmds | old_postuninstall_cmds | \
|
cannam@86
|
19219 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
|
cannam@86
|
19220 # Double-quote double-evaled strings.
|
cannam@86
|
19221 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
|
cannam@86
|
19222 ;;
|
cannam@86
|
19223 *)
|
cannam@86
|
19224 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
|
cannam@86
|
19225 ;;
|
cannam@86
|
19226 esac
|
cannam@86
|
19227 done
|
cannam@86
|
19228
|
cannam@86
|
19229 case $lt_echo in
|
cannam@86
|
19230 *'\$0 --fallback-echo"')
|
cannam@86
|
19231 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
|
cannam@86
|
19232 ;;
|
cannam@86
|
19233 esac
|
cannam@86
|
19234
|
cannam@86
|
19235 cfgfile="$ofile"
|
cannam@86
|
19236
|
cannam@86
|
19237 cat <<__EOF__ >> "$cfgfile"
|
cannam@86
|
19238 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
|
cannam@86
|
19239
|
cannam@86
|
19240 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
cannam@86
|
19241
|
cannam@86
|
19242 # Shell to use when invoking shell scripts.
|
cannam@86
|
19243 SHELL=$lt_SHELL
|
cannam@86
|
19244
|
cannam@86
|
19245 # Whether or not to build shared libraries.
|
cannam@86
|
19246 build_libtool_libs=$enable_shared
|
cannam@86
|
19247
|
cannam@86
|
19248 # Whether or not to build static libraries.
|
cannam@86
|
19249 build_old_libs=$enable_static
|
cannam@86
|
19250
|
cannam@86
|
19251 # Whether or not to add -lc for building shared libraries.
|
cannam@86
|
19252 build_libtool_need_lc=$archive_cmds_need_lc_RC
|
cannam@86
|
19253
|
cannam@86
|
19254 # Whether or not to disallow shared libs when runtime libs are static
|
cannam@86
|
19255 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
|
cannam@86
|
19256
|
cannam@86
|
19257 # Whether or not to optimize for fast installation.
|
cannam@86
|
19258 fast_install=$enable_fast_install
|
cannam@86
|
19259
|
cannam@86
|
19260 # The host system.
|
cannam@86
|
19261 host_alias=$host_alias
|
cannam@86
|
19262 host=$host
|
cannam@86
|
19263 host_os=$host_os
|
cannam@86
|
19264
|
cannam@86
|
19265 # The build system.
|
cannam@86
|
19266 build_alias=$build_alias
|
cannam@86
|
19267 build=$build
|
cannam@86
|
19268 build_os=$build_os
|
cannam@86
|
19269
|
cannam@86
|
19270 # An echo program that does not interpret backslashes.
|
cannam@86
|
19271 echo=$lt_echo
|
cannam@86
|
19272
|
cannam@86
|
19273 # The archiver.
|
cannam@86
|
19274 AR=$lt_AR
|
cannam@86
|
19275 AR_FLAGS=$lt_AR_FLAGS
|
cannam@86
|
19276
|
cannam@86
|
19277 # A C compiler.
|
cannam@86
|
19278 LTCC=$lt_LTCC
|
cannam@86
|
19279
|
cannam@86
|
19280 # A language-specific compiler.
|
cannam@86
|
19281 CC=$lt_compiler_RC
|
cannam@86
|
19282
|
cannam@86
|
19283 # Is the compiler the GNU C compiler?
|
cannam@86
|
19284 with_gcc=$GCC_RC
|
cannam@86
|
19285
|
cannam@86
|
19286 # An ERE matcher.
|
cannam@86
|
19287 EGREP=$lt_EGREP
|
cannam@86
|
19288
|
cannam@86
|
19289 # The linker used to build libraries.
|
cannam@86
|
19290 LD=$lt_LD_RC
|
cannam@86
|
19291
|
cannam@86
|
19292 # Whether we need hard or soft links.
|
cannam@86
|
19293 LN_S=$lt_LN_S
|
cannam@86
|
19294
|
cannam@86
|
19295 # A BSD-compatible nm program.
|
cannam@86
|
19296 NM=$lt_NM
|
cannam@86
|
19297
|
cannam@86
|
19298 # A symbol stripping program
|
cannam@86
|
19299 STRIP=$lt_STRIP
|
cannam@86
|
19300
|
cannam@86
|
19301 # Used to examine libraries when file_magic_cmd begins "file"
|
cannam@86
|
19302 MAGIC_CMD=$MAGIC_CMD
|
cannam@86
|
19303
|
cannam@86
|
19304 # Used on cygwin: DLL creation program.
|
cannam@86
|
19305 DLLTOOL="$DLLTOOL"
|
cannam@86
|
19306
|
cannam@86
|
19307 # Used on cygwin: object dumper.
|
cannam@86
|
19308 OBJDUMP="$OBJDUMP"
|
cannam@86
|
19309
|
cannam@86
|
19310 # Used on cygwin: assembler.
|
cannam@86
|
19311 AS="$AS"
|
cannam@86
|
19312
|
cannam@86
|
19313 # The name of the directory that contains temporary libtool files.
|
cannam@86
|
19314 objdir=$objdir
|
cannam@86
|
19315
|
cannam@86
|
19316 # How to create reloadable object files.
|
cannam@86
|
19317 reload_flag=$lt_reload_flag
|
cannam@86
|
19318 reload_cmds=$lt_reload_cmds
|
cannam@86
|
19319
|
cannam@86
|
19320 # How to pass a linker flag through the compiler.
|
cannam@86
|
19321 wl=$lt_lt_prog_compiler_wl_RC
|
cannam@86
|
19322
|
cannam@86
|
19323 # Object file suffix (normally "o").
|
cannam@86
|
19324 objext="$ac_objext"
|
cannam@86
|
19325
|
cannam@86
|
19326 # Old archive suffix (normally "a").
|
cannam@86
|
19327 libext="$libext"
|
cannam@86
|
19328
|
cannam@86
|
19329 # Shared library suffix (normally ".so").
|
cannam@86
|
19330 shrext_cmds='$shrext_cmds'
|
cannam@86
|
19331
|
cannam@86
|
19332 # Executable file suffix (normally "").
|
cannam@86
|
19333 exeext="$exeext"
|
cannam@86
|
19334
|
cannam@86
|
19335 # Additional compiler flags for building library objects.
|
cannam@86
|
19336 pic_flag=$lt_lt_prog_compiler_pic_RC
|
cannam@86
|
19337 pic_mode=$pic_mode
|
cannam@86
|
19338
|
cannam@86
|
19339 # What is the maximum length of a command?
|
cannam@86
|
19340 max_cmd_len=$lt_cv_sys_max_cmd_len
|
cannam@86
|
19341
|
cannam@86
|
19342 # Does compiler simultaneously support -c and -o options?
|
cannam@86
|
19343 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
|
cannam@86
|
19344
|
cannam@86
|
19345 # Must we lock files when doing compilation?
|
cannam@86
|
19346 need_locks=$lt_need_locks
|
cannam@86
|
19347
|
cannam@86
|
19348 # Do we need the lib prefix for modules?
|
cannam@86
|
19349 need_lib_prefix=$need_lib_prefix
|
cannam@86
|
19350
|
cannam@86
|
19351 # Do we need a version for libraries?
|
cannam@86
|
19352 need_version=$need_version
|
cannam@86
|
19353
|
cannam@86
|
19354 # Whether dlopen is supported.
|
cannam@86
|
19355 dlopen_support=$enable_dlopen
|
cannam@86
|
19356
|
cannam@86
|
19357 # Whether dlopen of programs is supported.
|
cannam@86
|
19358 dlopen_self=$enable_dlopen_self
|
cannam@86
|
19359
|
cannam@86
|
19360 # Whether dlopen of statically linked programs is supported.
|
cannam@86
|
19361 dlopen_self_static=$enable_dlopen_self_static
|
cannam@86
|
19362
|
cannam@86
|
19363 # Compiler flag to prevent dynamic linking.
|
cannam@86
|
19364 link_static_flag=$lt_lt_prog_compiler_static_RC
|
cannam@86
|
19365
|
cannam@86
|
19366 # Compiler flag to turn off builtin functions.
|
cannam@86
|
19367 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
|
cannam@86
|
19368
|
cannam@86
|
19369 # Compiler flag to allow reflexive dlopens.
|
cannam@86
|
19370 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
|
cannam@86
|
19371
|
cannam@86
|
19372 # Compiler flag to generate shared objects directly from archives.
|
cannam@86
|
19373 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
|
cannam@86
|
19374
|
cannam@86
|
19375 # Compiler flag to generate thread-safe objects.
|
cannam@86
|
19376 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
|
cannam@86
|
19377
|
cannam@86
|
19378 # Library versioning type.
|
cannam@86
|
19379 version_type=$version_type
|
cannam@86
|
19380
|
cannam@86
|
19381 # Format of library name prefix.
|
cannam@86
|
19382 libname_spec=$lt_libname_spec
|
cannam@86
|
19383
|
cannam@86
|
19384 # List of archive names. First name is the real one, the rest are links.
|
cannam@86
|
19385 # The last name is the one that the linker finds with -lNAME.
|
cannam@86
|
19386 library_names_spec=$lt_library_names_spec
|
cannam@86
|
19387
|
cannam@86
|
19388 # The coded name of the library, if different from the real name.
|
cannam@86
|
19389 soname_spec=$lt_soname_spec
|
cannam@86
|
19390
|
cannam@86
|
19391 # Commands used to build and install an old-style archive.
|
cannam@86
|
19392 RANLIB=$lt_RANLIB
|
cannam@86
|
19393 old_archive_cmds=$lt_old_archive_cmds_RC
|
cannam@86
|
19394 old_postinstall_cmds=$lt_old_postinstall_cmds
|
cannam@86
|
19395 old_postuninstall_cmds=$lt_old_postuninstall_cmds
|
cannam@86
|
19396
|
cannam@86
|
19397 # Create an old-style archive from a shared archive.
|
cannam@86
|
19398 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
|
cannam@86
|
19399
|
cannam@86
|
19400 # Create a temporary old-style archive to link instead of a shared archive.
|
cannam@86
|
19401 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
|
cannam@86
|
19402
|
cannam@86
|
19403 # Commands used to build and install a shared archive.
|
cannam@86
|
19404 archive_cmds=$lt_archive_cmds_RC
|
cannam@86
|
19405 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
|
cannam@86
|
19406 postinstall_cmds=$lt_postinstall_cmds
|
cannam@86
|
19407 postuninstall_cmds=$lt_postuninstall_cmds
|
cannam@86
|
19408
|
cannam@86
|
19409 # Commands used to build a loadable module (assumed same as above if empty)
|
cannam@86
|
19410 module_cmds=$lt_module_cmds_RC
|
cannam@86
|
19411 module_expsym_cmds=$lt_module_expsym_cmds_RC
|
cannam@86
|
19412
|
cannam@86
|
19413 # Commands to strip libraries.
|
cannam@86
|
19414 old_striplib=$lt_old_striplib
|
cannam@86
|
19415 striplib=$lt_striplib
|
cannam@86
|
19416
|
cannam@86
|
19417 # Dependencies to place before the objects being linked to create a
|
cannam@86
|
19418 # shared library.
|
cannam@86
|
19419 predep_objects=$lt_predep_objects_RC
|
cannam@86
|
19420
|
cannam@86
|
19421 # Dependencies to place after the objects being linked to create a
|
cannam@86
|
19422 # shared library.
|
cannam@86
|
19423 postdep_objects=$lt_postdep_objects_RC
|
cannam@86
|
19424
|
cannam@86
|
19425 # Dependencies to place before the objects being linked to create a
|
cannam@86
|
19426 # shared library.
|
cannam@86
|
19427 predeps=$lt_predeps_RC
|
cannam@86
|
19428
|
cannam@86
|
19429 # Dependencies to place after the objects being linked to create a
|
cannam@86
|
19430 # shared library.
|
cannam@86
|
19431 postdeps=$lt_postdeps_RC
|
cannam@86
|
19432
|
cannam@86
|
19433 # The library search path used internally by the compiler when linking
|
cannam@86
|
19434 # a shared library.
|
cannam@86
|
19435 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
|
cannam@86
|
19436
|
cannam@86
|
19437 # Method to check whether dependent libraries are shared objects.
|
cannam@86
|
19438 deplibs_check_method=$lt_deplibs_check_method
|
cannam@86
|
19439
|
cannam@86
|
19440 # Command to use when deplibs_check_method == file_magic.
|
cannam@86
|
19441 file_magic_cmd=$lt_file_magic_cmd
|
cannam@86
|
19442
|
cannam@86
|
19443 # Flag that allows shared libraries with undefined symbols to be built.
|
cannam@86
|
19444 allow_undefined_flag=$lt_allow_undefined_flag_RC
|
cannam@86
|
19445
|
cannam@86
|
19446 # Flag that forces no undefined symbols.
|
cannam@86
|
19447 no_undefined_flag=$lt_no_undefined_flag_RC
|
cannam@86
|
19448
|
cannam@86
|
19449 # Commands used to finish a libtool library installation in a directory.
|
cannam@86
|
19450 finish_cmds=$lt_finish_cmds
|
cannam@86
|
19451
|
cannam@86
|
19452 # Same as above, but a single script fragment to be evaled but not shown.
|
cannam@86
|
19453 finish_eval=$lt_finish_eval
|
cannam@86
|
19454
|
cannam@86
|
19455 # Take the output of nm and produce a listing of raw symbols and C names.
|
cannam@86
|
19456 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
|
cannam@86
|
19457
|
cannam@86
|
19458 # Transform the output of nm in a proper C declaration
|
cannam@86
|
19459 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
|
cannam@86
|
19460
|
cannam@86
|
19461 # Transform the output of nm in a C name address pair
|
cannam@86
|
19462 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
cannam@86
|
19463
|
cannam@86
|
19464 # This is the shared library runtime path variable.
|
cannam@86
|
19465 runpath_var=$runpath_var
|
cannam@86
|
19466
|
cannam@86
|
19467 # This is the shared library path variable.
|
cannam@86
|
19468 shlibpath_var=$shlibpath_var
|
cannam@86
|
19469
|
cannam@86
|
19470 # Is shlibpath searched before the hard-coded library search path?
|
cannam@86
|
19471 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
|
cannam@86
|
19472
|
cannam@86
|
19473 # How to hardcode a shared library path into an executable.
|
cannam@86
|
19474 hardcode_action=$hardcode_action_RC
|
cannam@86
|
19475
|
cannam@86
|
19476 # Whether we should hardcode library paths into libraries.
|
cannam@86
|
19477 hardcode_into_libs=$hardcode_into_libs
|
cannam@86
|
19478
|
cannam@86
|
19479 # Flag to hardcode \$libdir into a binary during linking.
|
cannam@86
|
19480 # This must work even if \$libdir does not exist.
|
cannam@86
|
19481 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
|
cannam@86
|
19482
|
cannam@86
|
19483 # If ld is used when linking, flag to hardcode \$libdir into
|
cannam@86
|
19484 # a binary during linking. This must work even if \$libdir does
|
cannam@86
|
19485 # not exist.
|
cannam@86
|
19486 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
|
cannam@86
|
19487
|
cannam@86
|
19488 # Whether we need a single -rpath flag with a separated argument.
|
cannam@86
|
19489 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
|
cannam@86
|
19490
|
cannam@86
|
19491 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
|
cannam@86
|
19492 # resulting binary.
|
cannam@86
|
19493 hardcode_direct=$hardcode_direct_RC
|
cannam@86
|
19494
|
cannam@86
|
19495 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
|
cannam@86
|
19496 # resulting binary.
|
cannam@86
|
19497 hardcode_minus_L=$hardcode_minus_L_RC
|
cannam@86
|
19498
|
cannam@86
|
19499 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
|
cannam@86
|
19500 # the resulting binary.
|
cannam@86
|
19501 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
|
cannam@86
|
19502
|
cannam@86
|
19503 # Set to yes if building a shared library automatically hardcodes DIR into the library
|
cannam@86
|
19504 # and all subsequent libraries and executables linked against it.
|
cannam@86
|
19505 hardcode_automatic=$hardcode_automatic_RC
|
cannam@86
|
19506
|
cannam@86
|
19507 # Variables whose values should be saved in libtool wrapper scripts and
|
cannam@86
|
19508 # restored at relink time.
|
cannam@86
|
19509 variables_saved_for_relink="$variables_saved_for_relink"
|
cannam@86
|
19510
|
cannam@86
|
19511 # Whether libtool must link a program against all its dependency libraries.
|
cannam@86
|
19512 link_all_deplibs=$link_all_deplibs_RC
|
cannam@86
|
19513
|
cannam@86
|
19514 # Compile-time system search path for libraries
|
cannam@86
|
19515 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
|
cannam@86
|
19516
|
cannam@86
|
19517 # Run-time system search path for libraries
|
cannam@86
|
19518 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
|
cannam@86
|
19519
|
cannam@86
|
19520 # Fix the shell variable \$srcfile for the compiler.
|
cannam@86
|
19521 fix_srcfile_path="$fix_srcfile_path_RC"
|
cannam@86
|
19522
|
cannam@86
|
19523 # Set to yes if exported symbols are required.
|
cannam@86
|
19524 always_export_symbols=$always_export_symbols_RC
|
cannam@86
|
19525
|
cannam@86
|
19526 # The commands to list exported symbols.
|
cannam@86
|
19527 export_symbols_cmds=$lt_export_symbols_cmds_RC
|
cannam@86
|
19528
|
cannam@86
|
19529 # The commands to extract the exported symbol list from a shared archive.
|
cannam@86
|
19530 extract_expsyms_cmds=$lt_extract_expsyms_cmds
|
cannam@86
|
19531
|
cannam@86
|
19532 # Symbols that should not be listed in the preloaded symbols.
|
cannam@86
|
19533 exclude_expsyms=$lt_exclude_expsyms_RC
|
cannam@86
|
19534
|
cannam@86
|
19535 # Symbols that must always be exported.
|
cannam@86
|
19536 include_expsyms=$lt_include_expsyms_RC
|
cannam@86
|
19537
|
cannam@86
|
19538 # ### END LIBTOOL TAG CONFIG: $tagname
|
cannam@86
|
19539
|
cannam@86
|
19540 __EOF__
|
cannam@86
|
19541
|
cannam@86
|
19542
|
cannam@86
|
19543 else
|
cannam@86
|
19544 # If there is no Makefile yet, we rely on a make rule to execute
|
cannam@86
|
19545 # `config.status --recheck' to rerun these tests and create the
|
cannam@86
|
19546 # libtool script then.
|
cannam@86
|
19547 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
|
cannam@86
|
19548 if test -f "$ltmain_in"; then
|
cannam@86
|
19549 test -f Makefile && make "$ltmain"
|
cannam@86
|
19550 fi
|
cannam@86
|
19551 fi
|
cannam@86
|
19552
|
cannam@86
|
19553
|
cannam@86
|
19554 ac_ext=c
|
cannam@86
|
19555 ac_cpp='$CPP $CPPFLAGS'
|
cannam@86
|
19556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
cannam@86
|
19557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
cannam@86
|
19558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
cannam@86
|
19559
|
cannam@86
|
19560 CC="$lt_save_CC"
|
cannam@86
|
19561
|
cannam@86
|
19562 ;;
|
cannam@86
|
19563
|
cannam@86
|
19564 *)
|
cannam@86
|
19565 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
|
cannam@86
|
19566 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
|
cannam@86
|
19567 { (exit 1); exit 1; }; }
|
cannam@86
|
19568 ;;
|
cannam@86
|
19569 esac
|
cannam@86
|
19570
|
cannam@86
|
19571 # Append the new tag name to the list of available tags.
|
cannam@86
|
19572 if test -n "$tagname" ; then
|
cannam@86
|
19573 available_tags="$available_tags $tagname"
|
cannam@86
|
19574 fi
|
cannam@86
|
19575 fi
|
cannam@86
|
19576 done
|
cannam@86
|
19577 IFS="$lt_save_ifs"
|
cannam@86
|
19578
|
cannam@86
|
19579 # Now substitute the updated list of available tags.
|
cannam@86
|
19580 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
|
cannam@86
|
19581 mv "${ofile}T" "$ofile"
|
cannam@86
|
19582 chmod +x "$ofile"
|
cannam@86
|
19583 else
|
cannam@86
|
19584 rm -f "${ofile}T"
|
cannam@86
|
19585 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
|
cannam@86
|
19586 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
|
cannam@86
|
19587 { (exit 1); exit 1; }; }
|
cannam@86
|
19588 fi
|
cannam@86
|
19589 fi
|
cannam@86
|
19590
|
cannam@86
|
19591
|
cannam@86
|
19592
|
cannam@86
|
19593 # This can be used to rebuild libtool when needed
|
cannam@86
|
19594 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
|
cannam@86
|
19595
|
cannam@86
|
19596 # Always use our own libtool.
|
cannam@86
|
19597 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
cannam@86
|
19598
|
cannam@86
|
19599 # Prevent multiple expansion
|
cannam@86
|
19600
|
cannam@86
|
19601
|
cannam@86
|
19602
|
cannam@86
|
19603
|
cannam@86
|
19604
|
cannam@86
|
19605
|
cannam@86
|
19606
|
cannam@86
|
19607
|
cannam@86
|
19608
|
cannam@86
|
19609
|
cannam@86
|
19610
|
cannam@86
|
19611
|
cannam@86
|
19612
|
cannam@86
|
19613
|
cannam@86
|
19614
|
cannam@86
|
19615
|
cannam@86
|
19616
|
cannam@86
|
19617
|
cannam@86
|
19618
|
cannam@86
|
19619
|
cannam@86
|
19620 sed -e 's/^build_old_libs=yes/build_old_libs=no/' libtool > libtool-disable-static
|
cannam@86
|
19621 chmod +x libtool-disable-static
|
cannam@86
|
19622
|
cannam@86
|
19623 ACLOCAL_AMFLAGS="-I m4"
|
cannam@86
|
19624
|
cannam@86
|
19625
|
cannam@86
|
19626 # By default we simply use the C compiler to build assembly code.
|
cannam@86
|
19627
|
cannam@86
|
19628 : ${CCAS='$(CC)'}
|
cannam@86
|
19629 # Set ASFLAGS if not already set.
|
cannam@86
|
19630 : ${CCASFLAGS='$(CFLAGS)'}
|
cannam@86
|
19631
|
cannam@86
|
19632
|
cannam@86
|
19633 ac_ext=cc
|
cannam@86
|
19634 ac_cpp='$CXXCPP $CPPFLAGS'
|
cannam@86
|
19635 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
cannam@86
|
19636 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
cannam@86
|
19637 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
cannam@86
|
19638 if test -n "$ac_tool_prefix"; then
|
cannam@86
|
19639 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
cannam@86
|
19640 do
|
cannam@86
|
19641 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
cannam@86
|
19642 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
cannam@86
|
19643 echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@86
|
19644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
cannam@86
|
19645 if test "${ac_cv_prog_CXX+set}" = set; then
|
cannam@86
|
19646 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
19647 else
|
cannam@86
|
19648 if test -n "$CXX"; then
|
cannam@86
|
19649 ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
cannam@86
|
19650 else
|
cannam@86
|
19651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@86
|
19652 for as_dir in $PATH
|
cannam@86
|
19653 do
|
cannam@86
|
19654 IFS=$as_save_IFS
|
cannam@86
|
19655 test -z "$as_dir" && as_dir=.
|
cannam@86
|
19656 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@86
|
19657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@86
|
19658 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
cannam@86
|
19659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@86
|
19660 break 2
|
cannam@86
|
19661 fi
|
cannam@86
|
19662 done
|
cannam@86
|
19663 done
|
cannam@86
|
19664
|
cannam@86
|
19665 fi
|
cannam@86
|
19666 fi
|
cannam@86
|
19667 CXX=$ac_cv_prog_CXX
|
cannam@86
|
19668 if test -n "$CXX"; then
|
cannam@86
|
19669 echo "$as_me:$LINENO: result: $CXX" >&5
|
cannam@86
|
19670 echo "${ECHO_T}$CXX" >&6
|
cannam@86
|
19671 else
|
cannam@86
|
19672 echo "$as_me:$LINENO: result: no" >&5
|
cannam@86
|
19673 echo "${ECHO_T}no" >&6
|
cannam@86
|
19674 fi
|
cannam@86
|
19675
|
cannam@86
|
19676 test -n "$CXX" && break
|
cannam@86
|
19677 done
|
cannam@86
|
19678 fi
|
cannam@86
|
19679 if test -z "$CXX"; then
|
cannam@86
|
19680 ac_ct_CXX=$CXX
|
cannam@86
|
19681 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
cannam@86
|
19682 do
|
cannam@86
|
19683 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
cannam@86
|
19684 set dummy $ac_prog; ac_word=$2
|
cannam@86
|
19685 echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@86
|
19686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
cannam@86
|
19687 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
|
cannam@86
|
19688 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
19689 else
|
cannam@86
|
19690 if test -n "$ac_ct_CXX"; then
|
cannam@86
|
19691 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
cannam@86
|
19692 else
|
cannam@86
|
19693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@86
|
19694 for as_dir in $PATH
|
cannam@86
|
19695 do
|
cannam@86
|
19696 IFS=$as_save_IFS
|
cannam@86
|
19697 test -z "$as_dir" && as_dir=.
|
cannam@86
|
19698 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@86
|
19699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@86
|
19700 ac_cv_prog_ac_ct_CXX="$ac_prog"
|
cannam@86
|
19701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@86
|
19702 break 2
|
cannam@86
|
19703 fi
|
cannam@86
|
19704 done
|
cannam@86
|
19705 done
|
cannam@86
|
19706
|
cannam@86
|
19707 fi
|
cannam@86
|
19708 fi
|
cannam@86
|
19709 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
cannam@86
|
19710 if test -n "$ac_ct_CXX"; then
|
cannam@86
|
19711 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
|
cannam@86
|
19712 echo "${ECHO_T}$ac_ct_CXX" >&6
|
cannam@86
|
19713 else
|
cannam@86
|
19714 echo "$as_me:$LINENO: result: no" >&5
|
cannam@86
|
19715 echo "${ECHO_T}no" >&6
|
cannam@86
|
19716 fi
|
cannam@86
|
19717
|
cannam@86
|
19718 test -n "$ac_ct_CXX" && break
|
cannam@86
|
19719 done
|
cannam@86
|
19720 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
|
cannam@86
|
19721
|
cannam@86
|
19722 CXX=$ac_ct_CXX
|
cannam@86
|
19723 fi
|
cannam@86
|
19724
|
cannam@86
|
19725
|
cannam@86
|
19726 # Provide some information about the compiler.
|
cannam@86
|
19727 echo "$as_me:$LINENO:" \
|
cannam@86
|
19728 "checking for C++ compiler version" >&5
|
cannam@86
|
19729 ac_compiler=`set X $ac_compile; echo $2`
|
cannam@86
|
19730 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
cannam@86
|
19731 (eval $ac_compiler --version </dev/null >&5) 2>&5
|
cannam@86
|
19732 ac_status=$?
|
cannam@86
|
19733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
19734 (exit $ac_status); }
|
cannam@86
|
19735 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
cannam@86
|
19736 (eval $ac_compiler -v </dev/null >&5) 2>&5
|
cannam@86
|
19737 ac_status=$?
|
cannam@86
|
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
19739 (exit $ac_status); }
|
cannam@86
|
19740 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
cannam@86
|
19741 (eval $ac_compiler -V </dev/null >&5) 2>&5
|
cannam@86
|
19742 ac_status=$?
|
cannam@86
|
19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
19744 (exit $ac_status); }
|
cannam@86
|
19745
|
cannam@86
|
19746 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
|
cannam@86
|
19747 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
|
cannam@86
|
19748 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
|
cannam@86
|
19749 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
19750 else
|
cannam@86
|
19751 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
19752 /* confdefs.h. */
|
cannam@86
|
19753 _ACEOF
|
cannam@86
|
19754 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
19755 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
19756 /* end confdefs.h. */
|
cannam@86
|
19757
|
cannam@86
|
19758 int
|
cannam@86
|
19759 main ()
|
cannam@86
|
19760 {
|
cannam@86
|
19761 #ifndef __GNUC__
|
cannam@86
|
19762 choke me
|
cannam@86
|
19763 #endif
|
cannam@86
|
19764
|
cannam@86
|
19765 ;
|
cannam@86
|
19766 return 0;
|
cannam@86
|
19767 }
|
cannam@86
|
19768 _ACEOF
|
cannam@86
|
19769 rm -f conftest.$ac_objext
|
cannam@86
|
19770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
19771 (eval $ac_compile) 2>conftest.er1
|
cannam@86
|
19772 ac_status=$?
|
cannam@86
|
19773 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
19774 rm -f conftest.er1
|
cannam@86
|
19775 cat conftest.err >&5
|
cannam@86
|
19776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
19777 (exit $ac_status); } &&
|
cannam@86
|
19778 { ac_try='test -z "$ac_cxx_werror_flag"
|
cannam@86
|
19779 || test ! -s conftest.err'
|
cannam@86
|
19780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
19781 (eval $ac_try) 2>&5
|
cannam@86
|
19782 ac_status=$?
|
cannam@86
|
19783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
19784 (exit $ac_status); }; } &&
|
cannam@86
|
19785 { ac_try='test -s conftest.$ac_objext'
|
cannam@86
|
19786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
19787 (eval $ac_try) 2>&5
|
cannam@86
|
19788 ac_status=$?
|
cannam@86
|
19789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
19790 (exit $ac_status); }; }; then
|
cannam@86
|
19791 ac_compiler_gnu=yes
|
cannam@86
|
19792 else
|
cannam@86
|
19793 echo "$as_me: failed program was:" >&5
|
cannam@86
|
19794 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
19795
|
cannam@86
|
19796 ac_compiler_gnu=no
|
cannam@86
|
19797 fi
|
cannam@86
|
19798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@86
|
19799 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
cannam@86
|
19800
|
cannam@86
|
19801 fi
|
cannam@86
|
19802 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
|
cannam@86
|
19803 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
|
cannam@86
|
19804 GXX=`test $ac_compiler_gnu = yes && echo yes`
|
cannam@86
|
19805 ac_test_CXXFLAGS=${CXXFLAGS+set}
|
cannam@86
|
19806 ac_save_CXXFLAGS=$CXXFLAGS
|
cannam@86
|
19807 CXXFLAGS="-g"
|
cannam@86
|
19808 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
|
cannam@86
|
19809 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
|
cannam@86
|
19810 if test "${ac_cv_prog_cxx_g+set}" = set; then
|
cannam@86
|
19811 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
19812 else
|
cannam@86
|
19813 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
19814 /* confdefs.h. */
|
cannam@86
|
19815 _ACEOF
|
cannam@86
|
19816 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
19817 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
19818 /* end confdefs.h. */
|
cannam@86
|
19819
|
cannam@86
|
19820 int
|
cannam@86
|
19821 main ()
|
cannam@86
|
19822 {
|
cannam@86
|
19823
|
cannam@86
|
19824 ;
|
cannam@86
|
19825 return 0;
|
cannam@86
|
19826 }
|
cannam@86
|
19827 _ACEOF
|
cannam@86
|
19828 rm -f conftest.$ac_objext
|
cannam@86
|
19829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
19830 (eval $ac_compile) 2>conftest.er1
|
cannam@86
|
19831 ac_status=$?
|
cannam@86
|
19832 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
19833 rm -f conftest.er1
|
cannam@86
|
19834 cat conftest.err >&5
|
cannam@86
|
19835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
19836 (exit $ac_status); } &&
|
cannam@86
|
19837 { ac_try='test -z "$ac_cxx_werror_flag"
|
cannam@86
|
19838 || test ! -s conftest.err'
|
cannam@86
|
19839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
19840 (eval $ac_try) 2>&5
|
cannam@86
|
19841 ac_status=$?
|
cannam@86
|
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
19843 (exit $ac_status); }; } &&
|
cannam@86
|
19844 { ac_try='test -s conftest.$ac_objext'
|
cannam@86
|
19845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
19846 (eval $ac_try) 2>&5
|
cannam@86
|
19847 ac_status=$?
|
cannam@86
|
19848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
19849 (exit $ac_status); }; }; then
|
cannam@86
|
19850 ac_cv_prog_cxx_g=yes
|
cannam@86
|
19851 else
|
cannam@86
|
19852 echo "$as_me: failed program was:" >&5
|
cannam@86
|
19853 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
19854
|
cannam@86
|
19855 ac_cv_prog_cxx_g=no
|
cannam@86
|
19856 fi
|
cannam@86
|
19857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@86
|
19858 fi
|
cannam@86
|
19859 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
|
cannam@86
|
19860 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
|
cannam@86
|
19861 if test "$ac_test_CXXFLAGS" = set; then
|
cannam@86
|
19862 CXXFLAGS=$ac_save_CXXFLAGS
|
cannam@86
|
19863 elif test $ac_cv_prog_cxx_g = yes; then
|
cannam@86
|
19864 if test "$GXX" = yes; then
|
cannam@86
|
19865 CXXFLAGS="-g -O2"
|
cannam@86
|
19866 else
|
cannam@86
|
19867 CXXFLAGS="-g"
|
cannam@86
|
19868 fi
|
cannam@86
|
19869 else
|
cannam@86
|
19870 if test "$GXX" = yes; then
|
cannam@86
|
19871 CXXFLAGS="-O2"
|
cannam@86
|
19872 else
|
cannam@86
|
19873 CXXFLAGS=
|
cannam@86
|
19874 fi
|
cannam@86
|
19875 fi
|
cannam@86
|
19876 for ac_declaration in \
|
cannam@86
|
19877 '' \
|
cannam@86
|
19878 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
cannam@86
|
19879 'extern "C" void std::exit (int); using std::exit;' \
|
cannam@86
|
19880 'extern "C" void exit (int) throw ();' \
|
cannam@86
|
19881 'extern "C" void exit (int);' \
|
cannam@86
|
19882 'void exit (int);'
|
cannam@86
|
19883 do
|
cannam@86
|
19884 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
19885 /* confdefs.h. */
|
cannam@86
|
19886 _ACEOF
|
cannam@86
|
19887 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
19888 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
19889 /* end confdefs.h. */
|
cannam@86
|
19890 $ac_declaration
|
cannam@86
|
19891 #include <stdlib.h>
|
cannam@86
|
19892 int
|
cannam@86
|
19893 main ()
|
cannam@86
|
19894 {
|
cannam@86
|
19895 exit (42);
|
cannam@86
|
19896 ;
|
cannam@86
|
19897 return 0;
|
cannam@86
|
19898 }
|
cannam@86
|
19899 _ACEOF
|
cannam@86
|
19900 rm -f conftest.$ac_objext
|
cannam@86
|
19901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
19902 (eval $ac_compile) 2>conftest.er1
|
cannam@86
|
19903 ac_status=$?
|
cannam@86
|
19904 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
19905 rm -f conftest.er1
|
cannam@86
|
19906 cat conftest.err >&5
|
cannam@86
|
19907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
19908 (exit $ac_status); } &&
|
cannam@86
|
19909 { ac_try='test -z "$ac_cxx_werror_flag"
|
cannam@86
|
19910 || test ! -s conftest.err'
|
cannam@86
|
19911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
19912 (eval $ac_try) 2>&5
|
cannam@86
|
19913 ac_status=$?
|
cannam@86
|
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
19915 (exit $ac_status); }; } &&
|
cannam@86
|
19916 { ac_try='test -s conftest.$ac_objext'
|
cannam@86
|
19917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
19918 (eval $ac_try) 2>&5
|
cannam@86
|
19919 ac_status=$?
|
cannam@86
|
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
19921 (exit $ac_status); }; }; then
|
cannam@86
|
19922 :
|
cannam@86
|
19923 else
|
cannam@86
|
19924 echo "$as_me: failed program was:" >&5
|
cannam@86
|
19925 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
19926
|
cannam@86
|
19927 continue
|
cannam@86
|
19928 fi
|
cannam@86
|
19929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@86
|
19930 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
19931 /* confdefs.h. */
|
cannam@86
|
19932 _ACEOF
|
cannam@86
|
19933 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
19934 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
19935 /* end confdefs.h. */
|
cannam@86
|
19936 $ac_declaration
|
cannam@86
|
19937 int
|
cannam@86
|
19938 main ()
|
cannam@86
|
19939 {
|
cannam@86
|
19940 exit (42);
|
cannam@86
|
19941 ;
|
cannam@86
|
19942 return 0;
|
cannam@86
|
19943 }
|
cannam@86
|
19944 _ACEOF
|
cannam@86
|
19945 rm -f conftest.$ac_objext
|
cannam@86
|
19946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
19947 (eval $ac_compile) 2>conftest.er1
|
cannam@86
|
19948 ac_status=$?
|
cannam@86
|
19949 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
19950 rm -f conftest.er1
|
cannam@86
|
19951 cat conftest.err >&5
|
cannam@86
|
19952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
19953 (exit $ac_status); } &&
|
cannam@86
|
19954 { ac_try='test -z "$ac_cxx_werror_flag"
|
cannam@86
|
19955 || test ! -s conftest.err'
|
cannam@86
|
19956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
19957 (eval $ac_try) 2>&5
|
cannam@86
|
19958 ac_status=$?
|
cannam@86
|
19959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
19960 (exit $ac_status); }; } &&
|
cannam@86
|
19961 { ac_try='test -s conftest.$ac_objext'
|
cannam@86
|
19962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
19963 (eval $ac_try) 2>&5
|
cannam@86
|
19964 ac_status=$?
|
cannam@86
|
19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
19966 (exit $ac_status); }; }; then
|
cannam@86
|
19967 break
|
cannam@86
|
19968 else
|
cannam@86
|
19969 echo "$as_me: failed program was:" >&5
|
cannam@86
|
19970 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
19971
|
cannam@86
|
19972 fi
|
cannam@86
|
19973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@86
|
19974 done
|
cannam@86
|
19975 rm -f conftest*
|
cannam@86
|
19976 if test -n "$ac_declaration"; then
|
cannam@86
|
19977 echo '#ifdef __cplusplus' >>confdefs.h
|
cannam@86
|
19978 echo $ac_declaration >>confdefs.h
|
cannam@86
|
19979 echo '#endif' >>confdefs.h
|
cannam@86
|
19980 fi
|
cannam@86
|
19981
|
cannam@86
|
19982 ac_ext=c
|
cannam@86
|
19983 ac_cpp='$CPP $CPPFLAGS'
|
cannam@86
|
19984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
cannam@86
|
19985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
cannam@86
|
19986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
cannam@86
|
19987
|
cannam@86
|
19988 depcc="$CXX" am_compiler_list=
|
cannam@86
|
19989
|
cannam@86
|
19990 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
|
cannam@86
|
19991 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
|
cannam@86
|
19992 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
|
cannam@86
|
19993 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
19994 else
|
cannam@86
|
19995 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
cannam@86
|
19996 # We make a subdir and do the tests there. Otherwise we can end up
|
cannam@86
|
19997 # making bogus files that we don't know about and never remove. For
|
cannam@86
|
19998 # instance it was reported that on HP-UX the gcc test will end up
|
cannam@86
|
19999 # making a dummy file named `D' -- because `-MD' means `put the output
|
cannam@86
|
20000 # in D'.
|
cannam@86
|
20001 mkdir conftest.dir
|
cannam@86
|
20002 # Copy depcomp to subdir because otherwise we won't find it if we're
|
cannam@86
|
20003 # using a relative directory.
|
cannam@86
|
20004 cp "$am_depcomp" conftest.dir
|
cannam@86
|
20005 cd conftest.dir
|
cannam@86
|
20006 # We will build objects and dependencies in a subdirectory because
|
cannam@86
|
20007 # it helps to detect inapplicable dependency modes. For instance
|
cannam@86
|
20008 # both Tru64's cc and ICC support -MD to output dependencies as a
|
cannam@86
|
20009 # side effect of compilation, but ICC will put the dependencies in
|
cannam@86
|
20010 # the current directory while Tru64 will put them in the object
|
cannam@86
|
20011 # directory.
|
cannam@86
|
20012 mkdir sub
|
cannam@86
|
20013
|
cannam@86
|
20014 am_cv_CXX_dependencies_compiler_type=none
|
cannam@86
|
20015 if test "$am_compiler_list" = ""; then
|
cannam@86
|
20016 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
|
cannam@86
|
20017 fi
|
cannam@86
|
20018 for depmode in $am_compiler_list; do
|
cannam@86
|
20019 # Setup a source with many dependencies, because some compilers
|
cannam@86
|
20020 # like to wrap large dependency lists on column 80 (with \), and
|
cannam@86
|
20021 # we should not choose a depcomp mode which is confused by this.
|
cannam@86
|
20022 #
|
cannam@86
|
20023 # We need to recreate these files for each test, as the compiler may
|
cannam@86
|
20024 # overwrite some of them when testing with obscure command lines.
|
cannam@86
|
20025 # This happens at least with the AIX C compiler.
|
cannam@86
|
20026 : > sub/conftest.c
|
cannam@86
|
20027 for i in 1 2 3 4 5 6; do
|
cannam@86
|
20028 echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
cannam@86
|
20029 : > sub/conftst$i.h
|
cannam@86
|
20030 done
|
cannam@86
|
20031 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
cannam@86
|
20032
|
cannam@86
|
20033 case $depmode in
|
cannam@86
|
20034 nosideeffect)
|
cannam@86
|
20035 # after this tag, mechanisms are not by side-effect, so they'll
|
cannam@86
|
20036 # only be used when explicitly requested
|
cannam@86
|
20037 if test "x$enable_dependency_tracking" = xyes; then
|
cannam@86
|
20038 continue
|
cannam@86
|
20039 else
|
cannam@86
|
20040 break
|
cannam@86
|
20041 fi
|
cannam@86
|
20042 ;;
|
cannam@86
|
20043 none) break ;;
|
cannam@86
|
20044 esac
|
cannam@86
|
20045 # We check with `-c' and `-o' for the sake of the "dashmstdout"
|
cannam@86
|
20046 # mode. It turns out that the SunPro C++ compiler does not properly
|
cannam@86
|
20047 # handle `-M -o', and we need to detect this.
|
cannam@86
|
20048 if depmode=$depmode \
|
cannam@86
|
20049 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
|
cannam@86
|
20050 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
cannam@86
|
20051 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
|
cannam@86
|
20052 >/dev/null 2>conftest.err &&
|
cannam@86
|
20053 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
cannam@86
|
20054 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
|
cannam@86
|
20055 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
cannam@86
|
20056 # icc doesn't choke on unknown options, it will just issue warnings
|
cannam@86
|
20057 # (even with -Werror). So we grep stderr for any message
|
cannam@86
|
20058 # that says an option was ignored.
|
cannam@86
|
20059 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
|
cannam@86
|
20060 am_cv_CXX_dependencies_compiler_type=$depmode
|
cannam@86
|
20061 break
|
cannam@86
|
20062 fi
|
cannam@86
|
20063 fi
|
cannam@86
|
20064 done
|
cannam@86
|
20065
|
cannam@86
|
20066 cd ..
|
cannam@86
|
20067 rm -rf conftest.dir
|
cannam@86
|
20068 else
|
cannam@86
|
20069 am_cv_CXX_dependencies_compiler_type=none
|
cannam@86
|
20070 fi
|
cannam@86
|
20071
|
cannam@86
|
20072 fi
|
cannam@86
|
20073 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
|
cannam@86
|
20074 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
|
cannam@86
|
20075 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
|
cannam@86
|
20076
|
cannam@86
|
20077
|
cannam@86
|
20078
|
cannam@86
|
20079 if
|
cannam@86
|
20080 test "x$enable_dependency_tracking" != xno \
|
cannam@86
|
20081 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
|
cannam@86
|
20082 am__fastdepCXX_TRUE=
|
cannam@86
|
20083 am__fastdepCXX_FALSE='#'
|
cannam@86
|
20084 else
|
cannam@86
|
20085 am__fastdepCXX_TRUE='#'
|
cannam@86
|
20086 am__fastdepCXX_FALSE=
|
cannam@86
|
20087 fi
|
cannam@86
|
20088
|
cannam@86
|
20089
|
cannam@86
|
20090 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
cannam@86
|
20091 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
|
cannam@86
|
20092 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
|
cannam@86
|
20093 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
|
cannam@86
|
20094 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
20095 else
|
cannam@86
|
20096 cat >conftest.make <<\_ACEOF
|
cannam@86
|
20097 all:
|
cannam@86
|
20098 @echo 'ac_maketemp="$(MAKE)"'
|
cannam@86
|
20099 _ACEOF
|
cannam@86
|
20100 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
cannam@86
|
20101 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
|
cannam@86
|
20102 if test -n "$ac_maketemp"; then
|
cannam@86
|
20103 eval ac_cv_prog_make_${ac_make}_set=yes
|
cannam@86
|
20104 else
|
cannam@86
|
20105 eval ac_cv_prog_make_${ac_make}_set=no
|
cannam@86
|
20106 fi
|
cannam@86
|
20107 rm -f conftest.make
|
cannam@86
|
20108 fi
|
cannam@86
|
20109 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
cannam@86
|
20110 echo "$as_me:$LINENO: result: yes" >&5
|
cannam@86
|
20111 echo "${ECHO_T}yes" >&6
|
cannam@86
|
20112 SET_MAKE=
|
cannam@86
|
20113 else
|
cannam@86
|
20114 echo "$as_me:$LINENO: result: no" >&5
|
cannam@86
|
20115 echo "${ECHO_T}no" >&6
|
cannam@86
|
20116 SET_MAKE="MAKE=${MAKE-make}"
|
cannam@86
|
20117 fi
|
cannam@86
|
20118
|
cannam@86
|
20119
|
cannam@86
|
20120 # Check whether --enable-largefile or --disable-largefile was given.
|
cannam@86
|
20121 if test "${enable_largefile+set}" = set; then
|
cannam@86
|
20122 enableval="$enable_largefile"
|
cannam@86
|
20123
|
cannam@86
|
20124 fi;
|
cannam@86
|
20125 if test "$enable_largefile" != no; then
|
cannam@86
|
20126
|
cannam@86
|
20127 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
|
cannam@86
|
20128 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
|
cannam@86
|
20129 if test "${ac_cv_sys_largefile_CC+set}" = set; then
|
cannam@86
|
20130 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
20131 else
|
cannam@86
|
20132 ac_cv_sys_largefile_CC=no
|
cannam@86
|
20133 if test "$GCC" != yes; then
|
cannam@86
|
20134 ac_save_CC=$CC
|
cannam@86
|
20135 while :; do
|
cannam@86
|
20136 # IRIX 6.2 and later do not support large files by default,
|
cannam@86
|
20137 # so use the C compiler's -n32 option if that helps.
|
cannam@86
|
20138 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
20139 /* confdefs.h. */
|
cannam@86
|
20140 _ACEOF
|
cannam@86
|
20141 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
20142 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
20143 /* end confdefs.h. */
|
cannam@86
|
20144 #include <sys/types.h>
|
cannam@86
|
20145 /* Check that off_t can represent 2**63 - 1 correctly.
|
cannam@86
|
20146 We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
cannam@86
|
20147 since some C++ compilers masquerading as C compilers
|
cannam@86
|
20148 incorrectly reject 9223372036854775807. */
|
cannam@86
|
20149 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
cannam@86
|
20150 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
cannam@86
|
20151 && LARGE_OFF_T % 2147483647 == 1)
|
cannam@86
|
20152 ? 1 : -1];
|
cannam@86
|
20153 int
|
cannam@86
|
20154 main ()
|
cannam@86
|
20155 {
|
cannam@86
|
20156
|
cannam@86
|
20157 ;
|
cannam@86
|
20158 return 0;
|
cannam@86
|
20159 }
|
cannam@86
|
20160 _ACEOF
|
cannam@86
|
20161 rm -f conftest.$ac_objext
|
cannam@86
|
20162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
20163 (eval $ac_compile) 2>conftest.er1
|
cannam@86
|
20164 ac_status=$?
|
cannam@86
|
20165 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
20166 rm -f conftest.er1
|
cannam@86
|
20167 cat conftest.err >&5
|
cannam@86
|
20168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
20169 (exit $ac_status); } &&
|
cannam@86
|
20170 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
20171 || test ! -s conftest.err'
|
cannam@86
|
20172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
20173 (eval $ac_try) 2>&5
|
cannam@86
|
20174 ac_status=$?
|
cannam@86
|
20175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
20176 (exit $ac_status); }; } &&
|
cannam@86
|
20177 { ac_try='test -s conftest.$ac_objext'
|
cannam@86
|
20178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
20179 (eval $ac_try) 2>&5
|
cannam@86
|
20180 ac_status=$?
|
cannam@86
|
20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
20182 (exit $ac_status); }; }; then
|
cannam@86
|
20183 break
|
cannam@86
|
20184 else
|
cannam@86
|
20185 echo "$as_me: failed program was:" >&5
|
cannam@86
|
20186 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
20187
|
cannam@86
|
20188 fi
|
cannam@86
|
20189 rm -f conftest.err conftest.$ac_objext
|
cannam@86
|
20190 CC="$CC -n32"
|
cannam@86
|
20191 rm -f conftest.$ac_objext
|
cannam@86
|
20192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
20193 (eval $ac_compile) 2>conftest.er1
|
cannam@86
|
20194 ac_status=$?
|
cannam@86
|
20195 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
20196 rm -f conftest.er1
|
cannam@86
|
20197 cat conftest.err >&5
|
cannam@86
|
20198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
20199 (exit $ac_status); } &&
|
cannam@86
|
20200 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
20201 || test ! -s conftest.err'
|
cannam@86
|
20202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
20203 (eval $ac_try) 2>&5
|
cannam@86
|
20204 ac_status=$?
|
cannam@86
|
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
20206 (exit $ac_status); }; } &&
|
cannam@86
|
20207 { ac_try='test -s conftest.$ac_objext'
|
cannam@86
|
20208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
20209 (eval $ac_try) 2>&5
|
cannam@86
|
20210 ac_status=$?
|
cannam@86
|
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
20212 (exit $ac_status); }; }; then
|
cannam@86
|
20213 ac_cv_sys_largefile_CC=' -n32'; break
|
cannam@86
|
20214 else
|
cannam@86
|
20215 echo "$as_me: failed program was:" >&5
|
cannam@86
|
20216 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
20217
|
cannam@86
|
20218 fi
|
cannam@86
|
20219 rm -f conftest.err conftest.$ac_objext
|
cannam@86
|
20220 break
|
cannam@86
|
20221 done
|
cannam@86
|
20222 CC=$ac_save_CC
|
cannam@86
|
20223 rm -f conftest.$ac_ext
|
cannam@86
|
20224 fi
|
cannam@86
|
20225 fi
|
cannam@86
|
20226 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
|
cannam@86
|
20227 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
|
cannam@86
|
20228 if test "$ac_cv_sys_largefile_CC" != no; then
|
cannam@86
|
20229 CC=$CC$ac_cv_sys_largefile_CC
|
cannam@86
|
20230 fi
|
cannam@86
|
20231
|
cannam@86
|
20232 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
|
cannam@86
|
20233 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
|
cannam@86
|
20234 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
|
cannam@86
|
20235 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
20236 else
|
cannam@86
|
20237 while :; do
|
cannam@86
|
20238 ac_cv_sys_file_offset_bits=no
|
cannam@86
|
20239 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
20240 /* confdefs.h. */
|
cannam@86
|
20241 _ACEOF
|
cannam@86
|
20242 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
20243 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
20244 /* end confdefs.h. */
|
cannam@86
|
20245 #include <sys/types.h>
|
cannam@86
|
20246 /* Check that off_t can represent 2**63 - 1 correctly.
|
cannam@86
|
20247 We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
cannam@86
|
20248 since some C++ compilers masquerading as C compilers
|
cannam@86
|
20249 incorrectly reject 9223372036854775807. */
|
cannam@86
|
20250 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
cannam@86
|
20251 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
cannam@86
|
20252 && LARGE_OFF_T % 2147483647 == 1)
|
cannam@86
|
20253 ? 1 : -1];
|
cannam@86
|
20254 int
|
cannam@86
|
20255 main ()
|
cannam@86
|
20256 {
|
cannam@86
|
20257
|
cannam@86
|
20258 ;
|
cannam@86
|
20259 return 0;
|
cannam@86
|
20260 }
|
cannam@86
|
20261 _ACEOF
|
cannam@86
|
20262 rm -f conftest.$ac_objext
|
cannam@86
|
20263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
20264 (eval $ac_compile) 2>conftest.er1
|
cannam@86
|
20265 ac_status=$?
|
cannam@86
|
20266 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
20267 rm -f conftest.er1
|
cannam@86
|
20268 cat conftest.err >&5
|
cannam@86
|
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
20270 (exit $ac_status); } &&
|
cannam@86
|
20271 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
20272 || test ! -s conftest.err'
|
cannam@86
|
20273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
20274 (eval $ac_try) 2>&5
|
cannam@86
|
20275 ac_status=$?
|
cannam@86
|
20276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
20277 (exit $ac_status); }; } &&
|
cannam@86
|
20278 { ac_try='test -s conftest.$ac_objext'
|
cannam@86
|
20279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
20280 (eval $ac_try) 2>&5
|
cannam@86
|
20281 ac_status=$?
|
cannam@86
|
20282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
20283 (exit $ac_status); }; }; then
|
cannam@86
|
20284 break
|
cannam@86
|
20285 else
|
cannam@86
|
20286 echo "$as_me: failed program was:" >&5
|
cannam@86
|
20287 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
20288
|
cannam@86
|
20289 fi
|
cannam@86
|
20290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@86
|
20291 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
20292 /* confdefs.h. */
|
cannam@86
|
20293 _ACEOF
|
cannam@86
|
20294 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
20295 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
20296 /* end confdefs.h. */
|
cannam@86
|
20297 #define _FILE_OFFSET_BITS 64
|
cannam@86
|
20298 #include <sys/types.h>
|
cannam@86
|
20299 /* Check that off_t can represent 2**63 - 1 correctly.
|
cannam@86
|
20300 We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
cannam@86
|
20301 since some C++ compilers masquerading as C compilers
|
cannam@86
|
20302 incorrectly reject 9223372036854775807. */
|
cannam@86
|
20303 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
cannam@86
|
20304 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
cannam@86
|
20305 && LARGE_OFF_T % 2147483647 == 1)
|
cannam@86
|
20306 ? 1 : -1];
|
cannam@86
|
20307 int
|
cannam@86
|
20308 main ()
|
cannam@86
|
20309 {
|
cannam@86
|
20310
|
cannam@86
|
20311 ;
|
cannam@86
|
20312 return 0;
|
cannam@86
|
20313 }
|
cannam@86
|
20314 _ACEOF
|
cannam@86
|
20315 rm -f conftest.$ac_objext
|
cannam@86
|
20316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
20317 (eval $ac_compile) 2>conftest.er1
|
cannam@86
|
20318 ac_status=$?
|
cannam@86
|
20319 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
20320 rm -f conftest.er1
|
cannam@86
|
20321 cat conftest.err >&5
|
cannam@86
|
20322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
20323 (exit $ac_status); } &&
|
cannam@86
|
20324 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
20325 || test ! -s conftest.err'
|
cannam@86
|
20326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
20327 (eval $ac_try) 2>&5
|
cannam@86
|
20328 ac_status=$?
|
cannam@86
|
20329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
20330 (exit $ac_status); }; } &&
|
cannam@86
|
20331 { ac_try='test -s conftest.$ac_objext'
|
cannam@86
|
20332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
20333 (eval $ac_try) 2>&5
|
cannam@86
|
20334 ac_status=$?
|
cannam@86
|
20335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
20336 (exit $ac_status); }; }; then
|
cannam@86
|
20337 ac_cv_sys_file_offset_bits=64; break
|
cannam@86
|
20338 else
|
cannam@86
|
20339 echo "$as_me: failed program was:" >&5
|
cannam@86
|
20340 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
20341
|
cannam@86
|
20342 fi
|
cannam@86
|
20343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@86
|
20344 break
|
cannam@86
|
20345 done
|
cannam@86
|
20346 fi
|
cannam@86
|
20347 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
|
cannam@86
|
20348 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
|
cannam@86
|
20349 if test "$ac_cv_sys_file_offset_bits" != no; then
|
cannam@86
|
20350
|
cannam@86
|
20351 cat >>confdefs.h <<_ACEOF
|
cannam@86
|
20352 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
|
cannam@86
|
20353 _ACEOF
|
cannam@86
|
20354
|
cannam@86
|
20355 fi
|
cannam@86
|
20356 rm -f conftest*
|
cannam@86
|
20357 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
|
cannam@86
|
20358 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
|
cannam@86
|
20359 if test "${ac_cv_sys_large_files+set}" = set; then
|
cannam@86
|
20360 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
20361 else
|
cannam@86
|
20362 while :; do
|
cannam@86
|
20363 ac_cv_sys_large_files=no
|
cannam@86
|
20364 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
20365 /* confdefs.h. */
|
cannam@86
|
20366 _ACEOF
|
cannam@86
|
20367 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
20368 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
20369 /* end confdefs.h. */
|
cannam@86
|
20370 #include <sys/types.h>
|
cannam@86
|
20371 /* Check that off_t can represent 2**63 - 1 correctly.
|
cannam@86
|
20372 We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
cannam@86
|
20373 since some C++ compilers masquerading as C compilers
|
cannam@86
|
20374 incorrectly reject 9223372036854775807. */
|
cannam@86
|
20375 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
cannam@86
|
20376 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
cannam@86
|
20377 && LARGE_OFF_T % 2147483647 == 1)
|
cannam@86
|
20378 ? 1 : -1];
|
cannam@86
|
20379 int
|
cannam@86
|
20380 main ()
|
cannam@86
|
20381 {
|
cannam@86
|
20382
|
cannam@86
|
20383 ;
|
cannam@86
|
20384 return 0;
|
cannam@86
|
20385 }
|
cannam@86
|
20386 _ACEOF
|
cannam@86
|
20387 rm -f conftest.$ac_objext
|
cannam@86
|
20388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
20389 (eval $ac_compile) 2>conftest.er1
|
cannam@86
|
20390 ac_status=$?
|
cannam@86
|
20391 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
20392 rm -f conftest.er1
|
cannam@86
|
20393 cat conftest.err >&5
|
cannam@86
|
20394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
20395 (exit $ac_status); } &&
|
cannam@86
|
20396 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
20397 || test ! -s conftest.err'
|
cannam@86
|
20398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
20399 (eval $ac_try) 2>&5
|
cannam@86
|
20400 ac_status=$?
|
cannam@86
|
20401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
20402 (exit $ac_status); }; } &&
|
cannam@86
|
20403 { ac_try='test -s conftest.$ac_objext'
|
cannam@86
|
20404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
20405 (eval $ac_try) 2>&5
|
cannam@86
|
20406 ac_status=$?
|
cannam@86
|
20407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
20408 (exit $ac_status); }; }; then
|
cannam@86
|
20409 break
|
cannam@86
|
20410 else
|
cannam@86
|
20411 echo "$as_me: failed program was:" >&5
|
cannam@86
|
20412 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
20413
|
cannam@86
|
20414 fi
|
cannam@86
|
20415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@86
|
20416 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
20417 /* confdefs.h. */
|
cannam@86
|
20418 _ACEOF
|
cannam@86
|
20419 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
20420 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
20421 /* end confdefs.h. */
|
cannam@86
|
20422 #define _LARGE_FILES 1
|
cannam@86
|
20423 #include <sys/types.h>
|
cannam@86
|
20424 /* Check that off_t can represent 2**63 - 1 correctly.
|
cannam@86
|
20425 We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
cannam@86
|
20426 since some C++ compilers masquerading as C compilers
|
cannam@86
|
20427 incorrectly reject 9223372036854775807. */
|
cannam@86
|
20428 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
cannam@86
|
20429 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
cannam@86
|
20430 && LARGE_OFF_T % 2147483647 == 1)
|
cannam@86
|
20431 ? 1 : -1];
|
cannam@86
|
20432 int
|
cannam@86
|
20433 main ()
|
cannam@86
|
20434 {
|
cannam@86
|
20435
|
cannam@86
|
20436 ;
|
cannam@86
|
20437 return 0;
|
cannam@86
|
20438 }
|
cannam@86
|
20439 _ACEOF
|
cannam@86
|
20440 rm -f conftest.$ac_objext
|
cannam@86
|
20441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
20442 (eval $ac_compile) 2>conftest.er1
|
cannam@86
|
20443 ac_status=$?
|
cannam@86
|
20444 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
20445 rm -f conftest.er1
|
cannam@86
|
20446 cat conftest.err >&5
|
cannam@86
|
20447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
20448 (exit $ac_status); } &&
|
cannam@86
|
20449 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
20450 || test ! -s conftest.err'
|
cannam@86
|
20451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
20452 (eval $ac_try) 2>&5
|
cannam@86
|
20453 ac_status=$?
|
cannam@86
|
20454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
20455 (exit $ac_status); }; } &&
|
cannam@86
|
20456 { ac_try='test -s conftest.$ac_objext'
|
cannam@86
|
20457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
20458 (eval $ac_try) 2>&5
|
cannam@86
|
20459 ac_status=$?
|
cannam@86
|
20460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
20461 (exit $ac_status); }; }; then
|
cannam@86
|
20462 ac_cv_sys_large_files=1; break
|
cannam@86
|
20463 else
|
cannam@86
|
20464 echo "$as_me: failed program was:" >&5
|
cannam@86
|
20465 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
20466
|
cannam@86
|
20467 fi
|
cannam@86
|
20468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@86
|
20469 break
|
cannam@86
|
20470 done
|
cannam@86
|
20471 fi
|
cannam@86
|
20472 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
|
cannam@86
|
20473 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
|
cannam@86
|
20474 if test "$ac_cv_sys_large_files" != no; then
|
cannam@86
|
20475
|
cannam@86
|
20476 cat >>confdefs.h <<_ACEOF
|
cannam@86
|
20477 #define _LARGE_FILES $ac_cv_sys_large_files
|
cannam@86
|
20478 _ACEOF
|
cannam@86
|
20479
|
cannam@86
|
20480 fi
|
cannam@86
|
20481 rm -f conftest*
|
cannam@86
|
20482 fi
|
cannam@86
|
20483
|
cannam@86
|
20484 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
|
cannam@86
|
20485 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
|
cannam@86
|
20486 if test "${ac_cv_sys_largefile_source+set}" = set; then
|
cannam@86
|
20487 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
20488 else
|
cannam@86
|
20489 while :; do
|
cannam@86
|
20490 ac_cv_sys_largefile_source=no
|
cannam@86
|
20491 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
20492 /* confdefs.h. */
|
cannam@86
|
20493 _ACEOF
|
cannam@86
|
20494 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
20495 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
20496 /* end confdefs.h. */
|
cannam@86
|
20497 #include <stdio.h>
|
cannam@86
|
20498 int
|
cannam@86
|
20499 main ()
|
cannam@86
|
20500 {
|
cannam@86
|
20501 return !fseeko;
|
cannam@86
|
20502 ;
|
cannam@86
|
20503 return 0;
|
cannam@86
|
20504 }
|
cannam@86
|
20505 _ACEOF
|
cannam@86
|
20506 rm -f conftest.$ac_objext
|
cannam@86
|
20507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
20508 (eval $ac_compile) 2>conftest.er1
|
cannam@86
|
20509 ac_status=$?
|
cannam@86
|
20510 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
20511 rm -f conftest.er1
|
cannam@86
|
20512 cat conftest.err >&5
|
cannam@86
|
20513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
20514 (exit $ac_status); } &&
|
cannam@86
|
20515 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
20516 || test ! -s conftest.err'
|
cannam@86
|
20517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
20518 (eval $ac_try) 2>&5
|
cannam@86
|
20519 ac_status=$?
|
cannam@86
|
20520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
20521 (exit $ac_status); }; } &&
|
cannam@86
|
20522 { ac_try='test -s conftest.$ac_objext'
|
cannam@86
|
20523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
20524 (eval $ac_try) 2>&5
|
cannam@86
|
20525 ac_status=$?
|
cannam@86
|
20526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
20527 (exit $ac_status); }; }; then
|
cannam@86
|
20528 break
|
cannam@86
|
20529 else
|
cannam@86
|
20530 echo "$as_me: failed program was:" >&5
|
cannam@86
|
20531 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
20532
|
cannam@86
|
20533 fi
|
cannam@86
|
20534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@86
|
20535 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
20536 /* confdefs.h. */
|
cannam@86
|
20537 _ACEOF
|
cannam@86
|
20538 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
20539 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
20540 /* end confdefs.h. */
|
cannam@86
|
20541 #define _LARGEFILE_SOURCE 1
|
cannam@86
|
20542 #include <stdio.h>
|
cannam@86
|
20543 int
|
cannam@86
|
20544 main ()
|
cannam@86
|
20545 {
|
cannam@86
|
20546 return !fseeko;
|
cannam@86
|
20547 ;
|
cannam@86
|
20548 return 0;
|
cannam@86
|
20549 }
|
cannam@86
|
20550 _ACEOF
|
cannam@86
|
20551 rm -f conftest.$ac_objext
|
cannam@86
|
20552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
20553 (eval $ac_compile) 2>conftest.er1
|
cannam@86
|
20554 ac_status=$?
|
cannam@86
|
20555 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
20556 rm -f conftest.er1
|
cannam@86
|
20557 cat conftest.err >&5
|
cannam@86
|
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
20559 (exit $ac_status); } &&
|
cannam@86
|
20560 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
20561 || test ! -s conftest.err'
|
cannam@86
|
20562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
20563 (eval $ac_try) 2>&5
|
cannam@86
|
20564 ac_status=$?
|
cannam@86
|
20565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
20566 (exit $ac_status); }; } &&
|
cannam@86
|
20567 { ac_try='test -s conftest.$ac_objext'
|
cannam@86
|
20568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
20569 (eval $ac_try) 2>&5
|
cannam@86
|
20570 ac_status=$?
|
cannam@86
|
20571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
20572 (exit $ac_status); }; }; then
|
cannam@86
|
20573 ac_cv_sys_largefile_source=1; break
|
cannam@86
|
20574 else
|
cannam@86
|
20575 echo "$as_me: failed program was:" >&5
|
cannam@86
|
20576 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
20577
|
cannam@86
|
20578 fi
|
cannam@86
|
20579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@86
|
20580 break
|
cannam@86
|
20581 done
|
cannam@86
|
20582 fi
|
cannam@86
|
20583 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
|
cannam@86
|
20584 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
|
cannam@86
|
20585 if test "$ac_cv_sys_largefile_source" != no; then
|
cannam@86
|
20586
|
cannam@86
|
20587 cat >>confdefs.h <<_ACEOF
|
cannam@86
|
20588 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
|
cannam@86
|
20589 _ACEOF
|
cannam@86
|
20590
|
cannam@86
|
20591 fi
|
cannam@86
|
20592 rm -f conftest*
|
cannam@86
|
20593
|
cannam@86
|
20594 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
|
cannam@86
|
20595 # in glibc 2.1.3, but that breaks too many other things.
|
cannam@86
|
20596 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
|
cannam@86
|
20597 echo "$as_me:$LINENO: checking for fseeko" >&5
|
cannam@86
|
20598 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
|
cannam@86
|
20599 if test "${ac_cv_func_fseeko+set}" = set; then
|
cannam@86
|
20600 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
20601 else
|
cannam@86
|
20602 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
20603 /* confdefs.h. */
|
cannam@86
|
20604 _ACEOF
|
cannam@86
|
20605 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
20606 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
20607 /* end confdefs.h. */
|
cannam@86
|
20608 #include <stdio.h>
|
cannam@86
|
20609 int
|
cannam@86
|
20610 main ()
|
cannam@86
|
20611 {
|
cannam@86
|
20612 return fseeko && fseeko (stdin, 0, 0);
|
cannam@86
|
20613 ;
|
cannam@86
|
20614 return 0;
|
cannam@86
|
20615 }
|
cannam@86
|
20616 _ACEOF
|
cannam@86
|
20617 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@86
|
20618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@86
|
20619 (eval $ac_link) 2>conftest.er1
|
cannam@86
|
20620 ac_status=$?
|
cannam@86
|
20621 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
20622 rm -f conftest.er1
|
cannam@86
|
20623 cat conftest.err >&5
|
cannam@86
|
20624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
20625 (exit $ac_status); } &&
|
cannam@86
|
20626 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
20627 || test ! -s conftest.err'
|
cannam@86
|
20628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
20629 (eval $ac_try) 2>&5
|
cannam@86
|
20630 ac_status=$?
|
cannam@86
|
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
20632 (exit $ac_status); }; } &&
|
cannam@86
|
20633 { ac_try='test -s conftest$ac_exeext'
|
cannam@86
|
20634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
20635 (eval $ac_try) 2>&5
|
cannam@86
|
20636 ac_status=$?
|
cannam@86
|
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
20638 (exit $ac_status); }; }; then
|
cannam@86
|
20639 ac_cv_func_fseeko=yes
|
cannam@86
|
20640 else
|
cannam@86
|
20641 echo "$as_me: failed program was:" >&5
|
cannam@86
|
20642 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
20643
|
cannam@86
|
20644 ac_cv_func_fseeko=no
|
cannam@86
|
20645 fi
|
cannam@86
|
20646 rm -f conftest.err conftest.$ac_objext \
|
cannam@86
|
20647 conftest$ac_exeext conftest.$ac_ext
|
cannam@86
|
20648 fi
|
cannam@86
|
20649 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
|
cannam@86
|
20650 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
|
cannam@86
|
20651 if test $ac_cv_func_fseeko = yes; then
|
cannam@86
|
20652
|
cannam@86
|
20653 cat >>confdefs.h <<\_ACEOF
|
cannam@86
|
20654 #define HAVE_FSEEKO 1
|
cannam@86
|
20655 _ACEOF
|
cannam@86
|
20656
|
cannam@86
|
20657 fi
|
cannam@86
|
20658
|
cannam@86
|
20659
|
cannam@86
|
20660 echo "$as_me:$LINENO: checking for void*" >&5
|
cannam@86
|
20661 echo $ECHO_N "checking for void*... $ECHO_C" >&6
|
cannam@86
|
20662 if test "${ac_cv_type_voidp+set}" = set; then
|
cannam@86
|
20663 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
20664 else
|
cannam@86
|
20665 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
20666 /* confdefs.h. */
|
cannam@86
|
20667 _ACEOF
|
cannam@86
|
20668 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
20669 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
20670 /* end confdefs.h. */
|
cannam@86
|
20671 $ac_includes_default
|
cannam@86
|
20672 int
|
cannam@86
|
20673 main ()
|
cannam@86
|
20674 {
|
cannam@86
|
20675 if ((void* *) 0)
|
cannam@86
|
20676 return 0;
|
cannam@86
|
20677 if (sizeof (void*))
|
cannam@86
|
20678 return 0;
|
cannam@86
|
20679 ;
|
cannam@86
|
20680 return 0;
|
cannam@86
|
20681 }
|
cannam@86
|
20682 _ACEOF
|
cannam@86
|
20683 rm -f conftest.$ac_objext
|
cannam@86
|
20684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
20685 (eval $ac_compile) 2>conftest.er1
|
cannam@86
|
20686 ac_status=$?
|
cannam@86
|
20687 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
20688 rm -f conftest.er1
|
cannam@86
|
20689 cat conftest.err >&5
|
cannam@86
|
20690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
20691 (exit $ac_status); } &&
|
cannam@86
|
20692 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
20693 || test ! -s conftest.err'
|
cannam@86
|
20694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
20695 (eval $ac_try) 2>&5
|
cannam@86
|
20696 ac_status=$?
|
cannam@86
|
20697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
20698 (exit $ac_status); }; } &&
|
cannam@86
|
20699 { ac_try='test -s conftest.$ac_objext'
|
cannam@86
|
20700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
20701 (eval $ac_try) 2>&5
|
cannam@86
|
20702 ac_status=$?
|
cannam@86
|
20703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
20704 (exit $ac_status); }; }; then
|
cannam@86
|
20705 ac_cv_type_voidp=yes
|
cannam@86
|
20706 else
|
cannam@86
|
20707 echo "$as_me: failed program was:" >&5
|
cannam@86
|
20708 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
20709
|
cannam@86
|
20710 ac_cv_type_voidp=no
|
cannam@86
|
20711 fi
|
cannam@86
|
20712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@86
|
20713 fi
|
cannam@86
|
20714 echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
|
cannam@86
|
20715 echo "${ECHO_T}$ac_cv_type_voidp" >&6
|
cannam@86
|
20716
|
cannam@86
|
20717 echo "$as_me:$LINENO: checking size of void*" >&5
|
cannam@86
|
20718 echo $ECHO_N "checking size of void*... $ECHO_C" >&6
|
cannam@86
|
20719 if test "${ac_cv_sizeof_voidp+set}" = set; then
|
cannam@86
|
20720 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
20721 else
|
cannam@86
|
20722 if test "$ac_cv_type_voidp" = yes; then
|
cannam@86
|
20723 # The cast to unsigned long works around a bug in the HP C Compiler
|
cannam@86
|
20724 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
cannam@86
|
20725 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
cannam@86
|
20726 # This bug is HP SR number 8606223364.
|
cannam@86
|
20727 if test "$cross_compiling" = yes; then
|
cannam@86
|
20728 # Depending upon the size, compute the lo and hi bounds.
|
cannam@86
|
20729 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
20730 /* confdefs.h. */
|
cannam@86
|
20731 _ACEOF
|
cannam@86
|
20732 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
20733 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
20734 /* end confdefs.h. */
|
cannam@86
|
20735 $ac_includes_default
|
cannam@86
|
20736 int
|
cannam@86
|
20737 main ()
|
cannam@86
|
20738 {
|
cannam@86
|
20739 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= 0)];
|
cannam@86
|
20740 test_array [0] = 0
|
cannam@86
|
20741
|
cannam@86
|
20742 ;
|
cannam@86
|
20743 return 0;
|
cannam@86
|
20744 }
|
cannam@86
|
20745 _ACEOF
|
cannam@86
|
20746 rm -f conftest.$ac_objext
|
cannam@86
|
20747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
20748 (eval $ac_compile) 2>conftest.er1
|
cannam@86
|
20749 ac_status=$?
|
cannam@86
|
20750 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
20751 rm -f conftest.er1
|
cannam@86
|
20752 cat conftest.err >&5
|
cannam@86
|
20753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
20754 (exit $ac_status); } &&
|
cannam@86
|
20755 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
20756 || test ! -s conftest.err'
|
cannam@86
|
20757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
20758 (eval $ac_try) 2>&5
|
cannam@86
|
20759 ac_status=$?
|
cannam@86
|
20760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
20761 (exit $ac_status); }; } &&
|
cannam@86
|
20762 { ac_try='test -s conftest.$ac_objext'
|
cannam@86
|
20763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
20764 (eval $ac_try) 2>&5
|
cannam@86
|
20765 ac_status=$?
|
cannam@86
|
20766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
20767 (exit $ac_status); }; }; then
|
cannam@86
|
20768 ac_lo=0 ac_mid=0
|
cannam@86
|
20769 while :; do
|
cannam@86
|
20770 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
20771 /* confdefs.h. */
|
cannam@86
|
20772 _ACEOF
|
cannam@86
|
20773 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
20774 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
20775 /* end confdefs.h. */
|
cannam@86
|
20776 $ac_includes_default
|
cannam@86
|
20777 int
|
cannam@86
|
20778 main ()
|
cannam@86
|
20779 {
|
cannam@86
|
20780 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
|
cannam@86
|
20781 test_array [0] = 0
|
cannam@86
|
20782
|
cannam@86
|
20783 ;
|
cannam@86
|
20784 return 0;
|
cannam@86
|
20785 }
|
cannam@86
|
20786 _ACEOF
|
cannam@86
|
20787 rm -f conftest.$ac_objext
|
cannam@86
|
20788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
20789 (eval $ac_compile) 2>conftest.er1
|
cannam@86
|
20790 ac_status=$?
|
cannam@86
|
20791 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
20792 rm -f conftest.er1
|
cannam@86
|
20793 cat conftest.err >&5
|
cannam@86
|
20794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
20795 (exit $ac_status); } &&
|
cannam@86
|
20796 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
20797 || test ! -s conftest.err'
|
cannam@86
|
20798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
20799 (eval $ac_try) 2>&5
|
cannam@86
|
20800 ac_status=$?
|
cannam@86
|
20801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
20802 (exit $ac_status); }; } &&
|
cannam@86
|
20803 { ac_try='test -s conftest.$ac_objext'
|
cannam@86
|
20804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
20805 (eval $ac_try) 2>&5
|
cannam@86
|
20806 ac_status=$?
|
cannam@86
|
20807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
20808 (exit $ac_status); }; }; then
|
cannam@86
|
20809 ac_hi=$ac_mid; break
|
cannam@86
|
20810 else
|
cannam@86
|
20811 echo "$as_me: failed program was:" >&5
|
cannam@86
|
20812 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
20813
|
cannam@86
|
20814 ac_lo=`expr $ac_mid + 1`
|
cannam@86
|
20815 if test $ac_lo -le $ac_mid; then
|
cannam@86
|
20816 ac_lo= ac_hi=
|
cannam@86
|
20817 break
|
cannam@86
|
20818 fi
|
cannam@86
|
20819 ac_mid=`expr 2 '*' $ac_mid + 1`
|
cannam@86
|
20820 fi
|
cannam@86
|
20821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@86
|
20822 done
|
cannam@86
|
20823 else
|
cannam@86
|
20824 echo "$as_me: failed program was:" >&5
|
cannam@86
|
20825 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
20826
|
cannam@86
|
20827 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
20828 /* confdefs.h. */
|
cannam@86
|
20829 _ACEOF
|
cannam@86
|
20830 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
20831 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
20832 /* end confdefs.h. */
|
cannam@86
|
20833 $ac_includes_default
|
cannam@86
|
20834 int
|
cannam@86
|
20835 main ()
|
cannam@86
|
20836 {
|
cannam@86
|
20837 static int test_array [1 - 2 * !(((long) (sizeof (void*))) < 0)];
|
cannam@86
|
20838 test_array [0] = 0
|
cannam@86
|
20839
|
cannam@86
|
20840 ;
|
cannam@86
|
20841 return 0;
|
cannam@86
|
20842 }
|
cannam@86
|
20843 _ACEOF
|
cannam@86
|
20844 rm -f conftest.$ac_objext
|
cannam@86
|
20845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
20846 (eval $ac_compile) 2>conftest.er1
|
cannam@86
|
20847 ac_status=$?
|
cannam@86
|
20848 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
20849 rm -f conftest.er1
|
cannam@86
|
20850 cat conftest.err >&5
|
cannam@86
|
20851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
20852 (exit $ac_status); } &&
|
cannam@86
|
20853 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
20854 || test ! -s conftest.err'
|
cannam@86
|
20855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
20856 (eval $ac_try) 2>&5
|
cannam@86
|
20857 ac_status=$?
|
cannam@86
|
20858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
20859 (exit $ac_status); }; } &&
|
cannam@86
|
20860 { ac_try='test -s conftest.$ac_objext'
|
cannam@86
|
20861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
20862 (eval $ac_try) 2>&5
|
cannam@86
|
20863 ac_status=$?
|
cannam@86
|
20864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
20865 (exit $ac_status); }; }; then
|
cannam@86
|
20866 ac_hi=-1 ac_mid=-1
|
cannam@86
|
20867 while :; do
|
cannam@86
|
20868 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
20869 /* confdefs.h. */
|
cannam@86
|
20870 _ACEOF
|
cannam@86
|
20871 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
20872 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
20873 /* end confdefs.h. */
|
cannam@86
|
20874 $ac_includes_default
|
cannam@86
|
20875 int
|
cannam@86
|
20876 main ()
|
cannam@86
|
20877 {
|
cannam@86
|
20878 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= $ac_mid)];
|
cannam@86
|
20879 test_array [0] = 0
|
cannam@86
|
20880
|
cannam@86
|
20881 ;
|
cannam@86
|
20882 return 0;
|
cannam@86
|
20883 }
|
cannam@86
|
20884 _ACEOF
|
cannam@86
|
20885 rm -f conftest.$ac_objext
|
cannam@86
|
20886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
20887 (eval $ac_compile) 2>conftest.er1
|
cannam@86
|
20888 ac_status=$?
|
cannam@86
|
20889 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
20890 rm -f conftest.er1
|
cannam@86
|
20891 cat conftest.err >&5
|
cannam@86
|
20892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
20893 (exit $ac_status); } &&
|
cannam@86
|
20894 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
20895 || test ! -s conftest.err'
|
cannam@86
|
20896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
20897 (eval $ac_try) 2>&5
|
cannam@86
|
20898 ac_status=$?
|
cannam@86
|
20899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
20900 (exit $ac_status); }; } &&
|
cannam@86
|
20901 { ac_try='test -s conftest.$ac_objext'
|
cannam@86
|
20902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
20903 (eval $ac_try) 2>&5
|
cannam@86
|
20904 ac_status=$?
|
cannam@86
|
20905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
20906 (exit $ac_status); }; }; then
|
cannam@86
|
20907 ac_lo=$ac_mid; break
|
cannam@86
|
20908 else
|
cannam@86
|
20909 echo "$as_me: failed program was:" >&5
|
cannam@86
|
20910 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
20911
|
cannam@86
|
20912 ac_hi=`expr '(' $ac_mid ')' - 1`
|
cannam@86
|
20913 if test $ac_mid -le $ac_hi; then
|
cannam@86
|
20914 ac_lo= ac_hi=
|
cannam@86
|
20915 break
|
cannam@86
|
20916 fi
|
cannam@86
|
20917 ac_mid=`expr 2 '*' $ac_mid`
|
cannam@86
|
20918 fi
|
cannam@86
|
20919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@86
|
20920 done
|
cannam@86
|
20921 else
|
cannam@86
|
20922 echo "$as_me: failed program was:" >&5
|
cannam@86
|
20923 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
20924
|
cannam@86
|
20925 ac_lo= ac_hi=
|
cannam@86
|
20926 fi
|
cannam@86
|
20927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@86
|
20928 fi
|
cannam@86
|
20929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@86
|
20930 # Binary search between lo and hi bounds.
|
cannam@86
|
20931 while test "x$ac_lo" != "x$ac_hi"; do
|
cannam@86
|
20932 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
|
cannam@86
|
20933 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
20934 /* confdefs.h. */
|
cannam@86
|
20935 _ACEOF
|
cannam@86
|
20936 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
20937 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
20938 /* end confdefs.h. */
|
cannam@86
|
20939 $ac_includes_default
|
cannam@86
|
20940 int
|
cannam@86
|
20941 main ()
|
cannam@86
|
20942 {
|
cannam@86
|
20943 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
|
cannam@86
|
20944 test_array [0] = 0
|
cannam@86
|
20945
|
cannam@86
|
20946 ;
|
cannam@86
|
20947 return 0;
|
cannam@86
|
20948 }
|
cannam@86
|
20949 _ACEOF
|
cannam@86
|
20950 rm -f conftest.$ac_objext
|
cannam@86
|
20951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
20952 (eval $ac_compile) 2>conftest.er1
|
cannam@86
|
20953 ac_status=$?
|
cannam@86
|
20954 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
20955 rm -f conftest.er1
|
cannam@86
|
20956 cat conftest.err >&5
|
cannam@86
|
20957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
20958 (exit $ac_status); } &&
|
cannam@86
|
20959 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
20960 || test ! -s conftest.err'
|
cannam@86
|
20961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
20962 (eval $ac_try) 2>&5
|
cannam@86
|
20963 ac_status=$?
|
cannam@86
|
20964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
20965 (exit $ac_status); }; } &&
|
cannam@86
|
20966 { ac_try='test -s conftest.$ac_objext'
|
cannam@86
|
20967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
20968 (eval $ac_try) 2>&5
|
cannam@86
|
20969 ac_status=$?
|
cannam@86
|
20970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
20971 (exit $ac_status); }; }; then
|
cannam@86
|
20972 ac_hi=$ac_mid
|
cannam@86
|
20973 else
|
cannam@86
|
20974 echo "$as_me: failed program was:" >&5
|
cannam@86
|
20975 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
20976
|
cannam@86
|
20977 ac_lo=`expr '(' $ac_mid ')' + 1`
|
cannam@86
|
20978 fi
|
cannam@86
|
20979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@86
|
20980 done
|
cannam@86
|
20981 case $ac_lo in
|
cannam@86
|
20982 ?*) ac_cv_sizeof_voidp=$ac_lo;;
|
cannam@86
|
20983 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
|
cannam@86
|
20984 See \`config.log' for more details." >&5
|
cannam@86
|
20985 echo "$as_me: error: cannot compute sizeof (void*), 77
|
cannam@86
|
20986 See \`config.log' for more details." >&2;}
|
cannam@86
|
20987 { (exit 1); exit 1; }; } ;;
|
cannam@86
|
20988 esac
|
cannam@86
|
20989 else
|
cannam@86
|
20990 if test "$cross_compiling" = yes; then
|
cannam@86
|
20991 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
|
cannam@86
|
20992 See \`config.log' for more details." >&5
|
cannam@86
|
20993 echo "$as_me: error: cannot run test program while cross compiling
|
cannam@86
|
20994 See \`config.log' for more details." >&2;}
|
cannam@86
|
20995 { (exit 1); exit 1; }; }
|
cannam@86
|
20996 else
|
cannam@86
|
20997 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
20998 /* confdefs.h. */
|
cannam@86
|
20999 _ACEOF
|
cannam@86
|
21000 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
21001 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
21002 /* end confdefs.h. */
|
cannam@86
|
21003 $ac_includes_default
|
cannam@86
|
21004 long longval () { return (long) (sizeof (void*)); }
|
cannam@86
|
21005 unsigned long ulongval () { return (long) (sizeof (void*)); }
|
cannam@86
|
21006 #include <stdio.h>
|
cannam@86
|
21007 #include <stdlib.h>
|
cannam@86
|
21008 int
|
cannam@86
|
21009 main ()
|
cannam@86
|
21010 {
|
cannam@86
|
21011
|
cannam@86
|
21012 FILE *f = fopen ("conftest.val", "w");
|
cannam@86
|
21013 if (! f)
|
cannam@86
|
21014 exit (1);
|
cannam@86
|
21015 if (((long) (sizeof (void*))) < 0)
|
cannam@86
|
21016 {
|
cannam@86
|
21017 long i = longval ();
|
cannam@86
|
21018 if (i != ((long) (sizeof (void*))))
|
cannam@86
|
21019 exit (1);
|
cannam@86
|
21020 fprintf (f, "%ld\n", i);
|
cannam@86
|
21021 }
|
cannam@86
|
21022 else
|
cannam@86
|
21023 {
|
cannam@86
|
21024 unsigned long i = ulongval ();
|
cannam@86
|
21025 if (i != ((long) (sizeof (void*))))
|
cannam@86
|
21026 exit (1);
|
cannam@86
|
21027 fprintf (f, "%lu\n", i);
|
cannam@86
|
21028 }
|
cannam@86
|
21029 exit (ferror (f) || fclose (f) != 0);
|
cannam@86
|
21030
|
cannam@86
|
21031 ;
|
cannam@86
|
21032 return 0;
|
cannam@86
|
21033 }
|
cannam@86
|
21034 _ACEOF
|
cannam@86
|
21035 rm -f conftest$ac_exeext
|
cannam@86
|
21036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@86
|
21037 (eval $ac_link) 2>&5
|
cannam@86
|
21038 ac_status=$?
|
cannam@86
|
21039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
21040 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
cannam@86
|
21041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
21042 (eval $ac_try) 2>&5
|
cannam@86
|
21043 ac_status=$?
|
cannam@86
|
21044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
21045 (exit $ac_status); }; }; then
|
cannam@86
|
21046 ac_cv_sizeof_voidp=`cat conftest.val`
|
cannam@86
|
21047 else
|
cannam@86
|
21048 echo "$as_me: program exited with status $ac_status" >&5
|
cannam@86
|
21049 echo "$as_me: failed program was:" >&5
|
cannam@86
|
21050 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
21051
|
cannam@86
|
21052 ( exit $ac_status )
|
cannam@86
|
21053 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
|
cannam@86
|
21054 See \`config.log' for more details." >&5
|
cannam@86
|
21055 echo "$as_me: error: cannot compute sizeof (void*), 77
|
cannam@86
|
21056 See \`config.log' for more details." >&2;}
|
cannam@86
|
21057 { (exit 1); exit 1; }; }
|
cannam@86
|
21058 fi
|
cannam@86
|
21059 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
cannam@86
|
21060 fi
|
cannam@86
|
21061 fi
|
cannam@86
|
21062 rm -f conftest.val
|
cannam@86
|
21063 else
|
cannam@86
|
21064 ac_cv_sizeof_voidp=0
|
cannam@86
|
21065 fi
|
cannam@86
|
21066 fi
|
cannam@86
|
21067 echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
|
cannam@86
|
21068 echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6
|
cannam@86
|
21069 cat >>confdefs.h <<_ACEOF
|
cannam@86
|
21070 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
|
cannam@86
|
21071 _ACEOF
|
cannam@86
|
21072
|
cannam@86
|
21073
|
cannam@86
|
21074
|
cannam@86
|
21075 #@@@ new name is AC_CONFIG_HEADERS
|
cannam@86
|
21076 ac_config_headers="$ac_config_headers config.h"
|
cannam@86
|
21077
|
cannam@86
|
21078
|
cannam@86
|
21079 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
|
cannam@86
|
21080 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
|
cannam@86
|
21081 if test "${ac_cv_c_bigendian+set}" = set; then
|
cannam@86
|
21082 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
21083 else
|
cannam@86
|
21084 # See if sys/param.h defines the BYTE_ORDER macro.
|
cannam@86
|
21085 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
21086 /* confdefs.h. */
|
cannam@86
|
21087 _ACEOF
|
cannam@86
|
21088 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
21089 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
21090 /* end confdefs.h. */
|
cannam@86
|
21091 #include <sys/types.h>
|
cannam@86
|
21092 #include <sys/param.h>
|
cannam@86
|
21093
|
cannam@86
|
21094 int
|
cannam@86
|
21095 main ()
|
cannam@86
|
21096 {
|
cannam@86
|
21097 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
|
cannam@86
|
21098 bogus endian macros
|
cannam@86
|
21099 #endif
|
cannam@86
|
21100
|
cannam@86
|
21101 ;
|
cannam@86
|
21102 return 0;
|
cannam@86
|
21103 }
|
cannam@86
|
21104 _ACEOF
|
cannam@86
|
21105 rm -f conftest.$ac_objext
|
cannam@86
|
21106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
21107 (eval $ac_compile) 2>conftest.er1
|
cannam@86
|
21108 ac_status=$?
|
cannam@86
|
21109 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
21110 rm -f conftest.er1
|
cannam@86
|
21111 cat conftest.err >&5
|
cannam@86
|
21112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
21113 (exit $ac_status); } &&
|
cannam@86
|
21114 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
21115 || test ! -s conftest.err'
|
cannam@86
|
21116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
21117 (eval $ac_try) 2>&5
|
cannam@86
|
21118 ac_status=$?
|
cannam@86
|
21119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
21120 (exit $ac_status); }; } &&
|
cannam@86
|
21121 { ac_try='test -s conftest.$ac_objext'
|
cannam@86
|
21122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
21123 (eval $ac_try) 2>&5
|
cannam@86
|
21124 ac_status=$?
|
cannam@86
|
21125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
21126 (exit $ac_status); }; }; then
|
cannam@86
|
21127 # It does; now see whether it defined to BIG_ENDIAN or not.
|
cannam@86
|
21128 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
21129 /* confdefs.h. */
|
cannam@86
|
21130 _ACEOF
|
cannam@86
|
21131 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
21132 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
21133 /* end confdefs.h. */
|
cannam@86
|
21134 #include <sys/types.h>
|
cannam@86
|
21135 #include <sys/param.h>
|
cannam@86
|
21136
|
cannam@86
|
21137 int
|
cannam@86
|
21138 main ()
|
cannam@86
|
21139 {
|
cannam@86
|
21140 #if BYTE_ORDER != BIG_ENDIAN
|
cannam@86
|
21141 not big endian
|
cannam@86
|
21142 #endif
|
cannam@86
|
21143
|
cannam@86
|
21144 ;
|
cannam@86
|
21145 return 0;
|
cannam@86
|
21146 }
|
cannam@86
|
21147 _ACEOF
|
cannam@86
|
21148 rm -f conftest.$ac_objext
|
cannam@86
|
21149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
21150 (eval $ac_compile) 2>conftest.er1
|
cannam@86
|
21151 ac_status=$?
|
cannam@86
|
21152 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
21153 rm -f conftest.er1
|
cannam@86
|
21154 cat conftest.err >&5
|
cannam@86
|
21155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
21156 (exit $ac_status); } &&
|
cannam@86
|
21157 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
21158 || test ! -s conftest.err'
|
cannam@86
|
21159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
21160 (eval $ac_try) 2>&5
|
cannam@86
|
21161 ac_status=$?
|
cannam@86
|
21162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
21163 (exit $ac_status); }; } &&
|
cannam@86
|
21164 { ac_try='test -s conftest.$ac_objext'
|
cannam@86
|
21165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
21166 (eval $ac_try) 2>&5
|
cannam@86
|
21167 ac_status=$?
|
cannam@86
|
21168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
21169 (exit $ac_status); }; }; then
|
cannam@86
|
21170 ac_cv_c_bigendian=yes
|
cannam@86
|
21171 else
|
cannam@86
|
21172 echo "$as_me: failed program was:" >&5
|
cannam@86
|
21173 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
21174
|
cannam@86
|
21175 ac_cv_c_bigendian=no
|
cannam@86
|
21176 fi
|
cannam@86
|
21177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@86
|
21178 else
|
cannam@86
|
21179 echo "$as_me: failed program was:" >&5
|
cannam@86
|
21180 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
21181
|
cannam@86
|
21182 # It does not; compile a test program.
|
cannam@86
|
21183 if test "$cross_compiling" = yes; then
|
cannam@86
|
21184 # try to guess the endianness by grepping values into an object file
|
cannam@86
|
21185 ac_cv_c_bigendian=unknown
|
cannam@86
|
21186 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
21187 /* confdefs.h. */
|
cannam@86
|
21188 _ACEOF
|
cannam@86
|
21189 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
21190 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
21191 /* end confdefs.h. */
|
cannam@86
|
21192 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
cannam@86
|
21193 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
cannam@86
|
21194 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
|
cannam@86
|
21195 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
cannam@86
|
21196 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
cannam@86
|
21197 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
|
cannam@86
|
21198 int
|
cannam@86
|
21199 main ()
|
cannam@86
|
21200 {
|
cannam@86
|
21201 _ascii (); _ebcdic ();
|
cannam@86
|
21202 ;
|
cannam@86
|
21203 return 0;
|
cannam@86
|
21204 }
|
cannam@86
|
21205 _ACEOF
|
cannam@86
|
21206 rm -f conftest.$ac_objext
|
cannam@86
|
21207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
21208 (eval $ac_compile) 2>conftest.er1
|
cannam@86
|
21209 ac_status=$?
|
cannam@86
|
21210 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
21211 rm -f conftest.er1
|
cannam@86
|
21212 cat conftest.err >&5
|
cannam@86
|
21213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
21214 (exit $ac_status); } &&
|
cannam@86
|
21215 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
21216 || test ! -s conftest.err'
|
cannam@86
|
21217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
21218 (eval $ac_try) 2>&5
|
cannam@86
|
21219 ac_status=$?
|
cannam@86
|
21220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
21221 (exit $ac_status); }; } &&
|
cannam@86
|
21222 { ac_try='test -s conftest.$ac_objext'
|
cannam@86
|
21223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
21224 (eval $ac_try) 2>&5
|
cannam@86
|
21225 ac_status=$?
|
cannam@86
|
21226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
21227 (exit $ac_status); }; }; then
|
cannam@86
|
21228 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
|
cannam@86
|
21229 ac_cv_c_bigendian=yes
|
cannam@86
|
21230 fi
|
cannam@86
|
21231 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
cannam@86
|
21232 if test "$ac_cv_c_bigendian" = unknown; then
|
cannam@86
|
21233 ac_cv_c_bigendian=no
|
cannam@86
|
21234 else
|
cannam@86
|
21235 # finding both strings is unlikely to happen, but who knows?
|
cannam@86
|
21236 ac_cv_c_bigendian=unknown
|
cannam@86
|
21237 fi
|
cannam@86
|
21238 fi
|
cannam@86
|
21239 else
|
cannam@86
|
21240 echo "$as_me: failed program was:" >&5
|
cannam@86
|
21241 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
21242
|
cannam@86
|
21243 fi
|
cannam@86
|
21244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@86
|
21245 else
|
cannam@86
|
21246 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
21247 /* confdefs.h. */
|
cannam@86
|
21248 _ACEOF
|
cannam@86
|
21249 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
21250 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
21251 /* end confdefs.h. */
|
cannam@86
|
21252 int
|
cannam@86
|
21253 main ()
|
cannam@86
|
21254 {
|
cannam@86
|
21255 /* Are we little or big endian? From Harbison&Steele. */
|
cannam@86
|
21256 union
|
cannam@86
|
21257 {
|
cannam@86
|
21258 long l;
|
cannam@86
|
21259 char c[sizeof (long)];
|
cannam@86
|
21260 } u;
|
cannam@86
|
21261 u.l = 1;
|
cannam@86
|
21262 exit (u.c[sizeof (long) - 1] == 1);
|
cannam@86
|
21263 }
|
cannam@86
|
21264 _ACEOF
|
cannam@86
|
21265 rm -f conftest$ac_exeext
|
cannam@86
|
21266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@86
|
21267 (eval $ac_link) 2>&5
|
cannam@86
|
21268 ac_status=$?
|
cannam@86
|
21269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
21270 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
cannam@86
|
21271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
21272 (eval $ac_try) 2>&5
|
cannam@86
|
21273 ac_status=$?
|
cannam@86
|
21274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
21275 (exit $ac_status); }; }; then
|
cannam@86
|
21276 ac_cv_c_bigendian=no
|
cannam@86
|
21277 else
|
cannam@86
|
21278 echo "$as_me: program exited with status $ac_status" >&5
|
cannam@86
|
21279 echo "$as_me: failed program was:" >&5
|
cannam@86
|
21280 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
21281
|
cannam@86
|
21282 ( exit $ac_status )
|
cannam@86
|
21283 ac_cv_c_bigendian=yes
|
cannam@86
|
21284 fi
|
cannam@86
|
21285 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
cannam@86
|
21286 fi
|
cannam@86
|
21287 fi
|
cannam@86
|
21288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@86
|
21289 fi
|
cannam@86
|
21290 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
|
cannam@86
|
21291 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
|
cannam@86
|
21292 case $ac_cv_c_bigendian in
|
cannam@86
|
21293 yes)
|
cannam@86
|
21294
|
cannam@86
|
21295 cat >>confdefs.h <<\_ACEOF
|
cannam@86
|
21296 #define WORDS_BIGENDIAN 1
|
cannam@86
|
21297 _ACEOF
|
cannam@86
|
21298 ;;
|
cannam@86
|
21299 no)
|
cannam@86
|
21300 ;;
|
cannam@86
|
21301 *)
|
cannam@86
|
21302 { { echo "$as_me:$LINENO: error: unknown endianness
|
cannam@86
|
21303 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
|
cannam@86
|
21304 echo "$as_me: error: unknown endianness
|
cannam@86
|
21305 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
|
cannam@86
|
21306 { (exit 1); exit 1; }; } ;;
|
cannam@86
|
21307 esac
|
cannam@86
|
21308
|
cannam@86
|
21309
|
cannam@86
|
21310 echo "$as_me:$LINENO: checking for socklen_t" >&5
|
cannam@86
|
21311 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
|
cannam@86
|
21312 if test "${ac_cv_type_socklen_t+set}" = set; then
|
cannam@86
|
21313 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
21314 else
|
cannam@86
|
21315 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
21316 /* confdefs.h. */
|
cannam@86
|
21317 _ACEOF
|
cannam@86
|
21318 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
21319 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
21320 /* end confdefs.h. */
|
cannam@86
|
21321 $ac_includes_default
|
cannam@86
|
21322 int
|
cannam@86
|
21323 main ()
|
cannam@86
|
21324 {
|
cannam@86
|
21325 if ((socklen_t *) 0)
|
cannam@86
|
21326 return 0;
|
cannam@86
|
21327 if (sizeof (socklen_t))
|
cannam@86
|
21328 return 0;
|
cannam@86
|
21329 ;
|
cannam@86
|
21330 return 0;
|
cannam@86
|
21331 }
|
cannam@86
|
21332 _ACEOF
|
cannam@86
|
21333 rm -f conftest.$ac_objext
|
cannam@86
|
21334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
21335 (eval $ac_compile) 2>conftest.er1
|
cannam@86
|
21336 ac_status=$?
|
cannam@86
|
21337 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
21338 rm -f conftest.er1
|
cannam@86
|
21339 cat conftest.err >&5
|
cannam@86
|
21340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
21341 (exit $ac_status); } &&
|
cannam@86
|
21342 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
21343 || test ! -s conftest.err'
|
cannam@86
|
21344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
21345 (eval $ac_try) 2>&5
|
cannam@86
|
21346 ac_status=$?
|
cannam@86
|
21347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
21348 (exit $ac_status); }; } &&
|
cannam@86
|
21349 { ac_try='test -s conftest.$ac_objext'
|
cannam@86
|
21350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
21351 (eval $ac_try) 2>&5
|
cannam@86
|
21352 ac_status=$?
|
cannam@86
|
21353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
21354 (exit $ac_status); }; }; then
|
cannam@86
|
21355 ac_cv_type_socklen_t=yes
|
cannam@86
|
21356 else
|
cannam@86
|
21357 echo "$as_me: failed program was:" >&5
|
cannam@86
|
21358 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
21359
|
cannam@86
|
21360 ac_cv_type_socklen_t=no
|
cannam@86
|
21361 fi
|
cannam@86
|
21362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@86
|
21363 fi
|
cannam@86
|
21364 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
|
cannam@86
|
21365 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
|
cannam@86
|
21366 if test $ac_cv_type_socklen_t = yes; then
|
cannam@86
|
21367
|
cannam@86
|
21368 cat >>confdefs.h <<_ACEOF
|
cannam@86
|
21369 #define HAVE_SOCKLEN_T 1
|
cannam@86
|
21370 _ACEOF
|
cannam@86
|
21371
|
cannam@86
|
21372
|
cannam@86
|
21373 fi
|
cannam@86
|
21374
|
cannam@86
|
21375
|
cannam@86
|
21376
|
cannam@86
|
21377 for ac_func in getopt_long
|
cannam@86
|
21378 do
|
cannam@86
|
21379 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
cannam@86
|
21380 echo "$as_me:$LINENO: checking for $ac_func" >&5
|
cannam@86
|
21381 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
cannam@86
|
21382 if eval "test \"\${$as_ac_var+set}\" = set"; then
|
cannam@86
|
21383 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
21384 else
|
cannam@86
|
21385 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
21386 /* confdefs.h. */
|
cannam@86
|
21387 _ACEOF
|
cannam@86
|
21388 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
21389 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
21390 /* end confdefs.h. */
|
cannam@86
|
21391 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
cannam@86
|
21392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
cannam@86
|
21393 #define $ac_func innocuous_$ac_func
|
cannam@86
|
21394
|
cannam@86
|
21395 /* System header to define __stub macros and hopefully few prototypes,
|
cannam@86
|
21396 which can conflict with char $ac_func (); below.
|
cannam@86
|
21397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
cannam@86
|
21398 <limits.h> exists even on freestanding compilers. */
|
cannam@86
|
21399
|
cannam@86
|
21400 #ifdef __STDC__
|
cannam@86
|
21401 # include <limits.h>
|
cannam@86
|
21402 #else
|
cannam@86
|
21403 # include <assert.h>
|
cannam@86
|
21404 #endif
|
cannam@86
|
21405
|
cannam@86
|
21406 #undef $ac_func
|
cannam@86
|
21407
|
cannam@86
|
21408 /* Override any gcc2 internal prototype to avoid an error. */
|
cannam@86
|
21409 #ifdef __cplusplus
|
cannam@86
|
21410 extern "C"
|
cannam@86
|
21411 {
|
cannam@86
|
21412 #endif
|
cannam@86
|
21413 /* We use char because int might match the return type of a gcc2
|
cannam@86
|
21414 builtin and then its argument prototype would still apply. */
|
cannam@86
|
21415 char $ac_func ();
|
cannam@86
|
21416 /* The GNU C library defines this for functions which it implements
|
cannam@86
|
21417 to always fail with ENOSYS. Some functions are actually named
|
cannam@86
|
21418 something starting with __ and the normal name is an alias. */
|
cannam@86
|
21419 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
cannam@86
|
21420 choke me
|
cannam@86
|
21421 #else
|
cannam@86
|
21422 char (*f) () = $ac_func;
|
cannam@86
|
21423 #endif
|
cannam@86
|
21424 #ifdef __cplusplus
|
cannam@86
|
21425 }
|
cannam@86
|
21426 #endif
|
cannam@86
|
21427
|
cannam@86
|
21428 int
|
cannam@86
|
21429 main ()
|
cannam@86
|
21430 {
|
cannam@86
|
21431 return f != $ac_func;
|
cannam@86
|
21432 ;
|
cannam@86
|
21433 return 0;
|
cannam@86
|
21434 }
|
cannam@86
|
21435 _ACEOF
|
cannam@86
|
21436 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@86
|
21437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@86
|
21438 (eval $ac_link) 2>conftest.er1
|
cannam@86
|
21439 ac_status=$?
|
cannam@86
|
21440 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
21441 rm -f conftest.er1
|
cannam@86
|
21442 cat conftest.err >&5
|
cannam@86
|
21443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
21444 (exit $ac_status); } &&
|
cannam@86
|
21445 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
21446 || test ! -s conftest.err'
|
cannam@86
|
21447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
21448 (eval $ac_try) 2>&5
|
cannam@86
|
21449 ac_status=$?
|
cannam@86
|
21450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
21451 (exit $ac_status); }; } &&
|
cannam@86
|
21452 { ac_try='test -s conftest$ac_exeext'
|
cannam@86
|
21453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
21454 (eval $ac_try) 2>&5
|
cannam@86
|
21455 ac_status=$?
|
cannam@86
|
21456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
21457 (exit $ac_status); }; }; then
|
cannam@86
|
21458 eval "$as_ac_var=yes"
|
cannam@86
|
21459 else
|
cannam@86
|
21460 echo "$as_me: failed program was:" >&5
|
cannam@86
|
21461 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
21462
|
cannam@86
|
21463 eval "$as_ac_var=no"
|
cannam@86
|
21464 fi
|
cannam@86
|
21465 rm -f conftest.err conftest.$ac_objext \
|
cannam@86
|
21466 conftest$ac_exeext conftest.$ac_ext
|
cannam@86
|
21467 fi
|
cannam@86
|
21468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
cannam@86
|
21469 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
cannam@86
|
21470 if test `eval echo '${'$as_ac_var'}'` = yes; then
|
cannam@86
|
21471 cat >>confdefs.h <<_ACEOF
|
cannam@86
|
21472 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
cannam@86
|
21473 _ACEOF
|
cannam@86
|
21474
|
cannam@86
|
21475 fi
|
cannam@86
|
21476 done
|
cannam@86
|
21477
|
cannam@86
|
21478
|
cannam@86
|
21479 case "$host_cpu" in
|
cannam@86
|
21480 i*86)
|
cannam@86
|
21481 cpu_ia32=true
|
cannam@86
|
21482 cat >>confdefs.h <<\_ACEOF
|
cannam@86
|
21483 #define FLAC__CPU_IA32 1
|
cannam@86
|
21484 _ACEOF
|
cannam@86
|
21485
|
cannam@86
|
21486
|
cannam@86
|
21487
|
cannam@86
|
21488 ;;
|
cannam@86
|
21489 powerpc)
|
cannam@86
|
21490 cpu_ppc=true
|
cannam@86
|
21491 cat >>confdefs.h <<\_ACEOF
|
cannam@86
|
21492 #define FLAC__CPU_PPC 1
|
cannam@86
|
21493 _ACEOF
|
cannam@86
|
21494
|
cannam@86
|
21495
|
cannam@86
|
21496
|
cannam@86
|
21497 ;;
|
cannam@86
|
21498 sparc)
|
cannam@86
|
21499 cpu_sparc=true
|
cannam@86
|
21500 cat >>confdefs.h <<\_ACEOF
|
cannam@86
|
21501 #define FLAC__CPU_SPARC 1
|
cannam@86
|
21502 _ACEOF
|
cannam@86
|
21503
|
cannam@86
|
21504
|
cannam@86
|
21505
|
cannam@86
|
21506 ;;
|
cannam@86
|
21507 esac
|
cannam@86
|
21508
|
cannam@86
|
21509
|
cannam@86
|
21510 if test "x$cpu_ia32" = xtrue; then
|
cannam@86
|
21511 FLaC__CPU_IA32_TRUE=
|
cannam@86
|
21512 FLaC__CPU_IA32_FALSE='#'
|
cannam@86
|
21513 else
|
cannam@86
|
21514 FLaC__CPU_IA32_TRUE='#'
|
cannam@86
|
21515 FLaC__CPU_IA32_FALSE=
|
cannam@86
|
21516 fi
|
cannam@86
|
21517
|
cannam@86
|
21518
|
cannam@86
|
21519
|
cannam@86
|
21520 if test "x$cpu_ppc" = xtrue; then
|
cannam@86
|
21521 FLaC__CPU_PPC_TRUE=
|
cannam@86
|
21522 FLaC__CPU_PPC_FALSE='#'
|
cannam@86
|
21523 else
|
cannam@86
|
21524 FLaC__CPU_PPC_TRUE='#'
|
cannam@86
|
21525 FLaC__CPU_PPC_FALSE=
|
cannam@86
|
21526 fi
|
cannam@86
|
21527
|
cannam@86
|
21528
|
cannam@86
|
21529
|
cannam@86
|
21530 if test "x$cpu_sparc" = xtrue; then
|
cannam@86
|
21531 FLaC__CPU_SPARC_TRUE=
|
cannam@86
|
21532 FLaC__CPU_SPARC_FALSE='#'
|
cannam@86
|
21533 else
|
cannam@86
|
21534 FLaC__CPU_SPARC_TRUE='#'
|
cannam@86
|
21535 FLaC__CPU_SPARC_FALSE=
|
cannam@86
|
21536 fi
|
cannam@86
|
21537
|
cannam@86
|
21538
|
cannam@86
|
21539 case "$host" in
|
cannam@86
|
21540 i386-*-openbsd3.[0-3]) OBJ_FORMAT=aoutb ;;
|
cannam@86
|
21541 *-*-cygwin|*mingw*) OBJ_FORMAT=win32 ;;
|
cannam@86
|
21542 *-*-darwin*) OBJ_FORMAT=macho ;;
|
cannam@86
|
21543 *) OBJ_FORMAT=elf ;;
|
cannam@86
|
21544 esac
|
cannam@86
|
21545
|
cannam@86
|
21546
|
cannam@86
|
21547 # only needed because of ntohl() usage, can get rid of after that's gone:
|
cannam@86
|
21548 case "$host" in
|
cannam@86
|
21549 *-*-cygwin|*mingw*) MINGW_WINSOCK_LIBS=-lwsock32 ;;
|
cannam@86
|
21550 *) MINGW_WINSOCK_LIBS= ;;
|
cannam@86
|
21551 esac
|
cannam@86
|
21552
|
cannam@86
|
21553
|
cannam@86
|
21554 case "$host" in
|
cannam@86
|
21555 *-pc-linux-gnu)
|
cannam@86
|
21556 sys_linux=true
|
cannam@86
|
21557 cat >>confdefs.h <<\_ACEOF
|
cannam@86
|
21558 #define FLAC__SYS_LINUX 1
|
cannam@86
|
21559 _ACEOF
|
cannam@86
|
21560
|
cannam@86
|
21561
|
cannam@86
|
21562
|
cannam@86
|
21563 ;;
|
cannam@86
|
21564 *-*-darwin*)
|
cannam@86
|
21565 sys_darwin=true
|
cannam@86
|
21566 cat >>confdefs.h <<\_ACEOF
|
cannam@86
|
21567 #define FLAC__SYS_DARWIN 1
|
cannam@86
|
21568 _ACEOF
|
cannam@86
|
21569
|
cannam@86
|
21570
|
cannam@86
|
21571
|
cannam@86
|
21572 ;;
|
cannam@86
|
21573 esac
|
cannam@86
|
21574
|
cannam@86
|
21575
|
cannam@86
|
21576 if test "x$sys_darwin" = xtrue; then
|
cannam@86
|
21577 FLaC__SYS_DARWIN_TRUE=
|
cannam@86
|
21578 FLaC__SYS_DARWIN_FALSE='#'
|
cannam@86
|
21579 else
|
cannam@86
|
21580 FLaC__SYS_DARWIN_TRUE='#'
|
cannam@86
|
21581 FLaC__SYS_DARWIN_FALSE=
|
cannam@86
|
21582 fi
|
cannam@86
|
21583
|
cannam@86
|
21584
|
cannam@86
|
21585
|
cannam@86
|
21586 if test "x$sys_linux" = xtrue; then
|
cannam@86
|
21587 FLaC__SYS_LINUX_TRUE=
|
cannam@86
|
21588 FLaC__SYS_LINUX_FALSE='#'
|
cannam@86
|
21589 else
|
cannam@86
|
21590 FLaC__SYS_LINUX_TRUE='#'
|
cannam@86
|
21591 FLaC__SYS_LINUX_FALSE=
|
cannam@86
|
21592 fi
|
cannam@86
|
21593
|
cannam@86
|
21594
|
cannam@86
|
21595 if test "x$cpu_ia32" = xtrue ; then
|
cannam@86
|
21596 cat >>confdefs.h <<\_ACEOF
|
cannam@86
|
21597 #define FLAC__ALIGN_MALLOC_DATA 1
|
cannam@86
|
21598 _ACEOF
|
cannam@86
|
21599
|
cannam@86
|
21600
|
cannam@86
|
21601
|
cannam@86
|
21602 fi
|
cannam@86
|
21603
|
cannam@86
|
21604 # Check whether --enable-asm-optimizations or --disable-asm-optimizations was given.
|
cannam@86
|
21605 if test "${enable_asm_optimizations+set}" = set; then
|
cannam@86
|
21606 enableval="$enable_asm_optimizations"
|
cannam@86
|
21607 asm_opt=no
|
cannam@86
|
21608 else
|
cannam@86
|
21609 asm_opt=yes
|
cannam@86
|
21610 fi;
|
cannam@86
|
21611
|
cannam@86
|
21612
|
cannam@86
|
21613 if test "x$asm_opt" = xno; then
|
cannam@86
|
21614 FLaC__NO_ASM_TRUE=
|
cannam@86
|
21615 FLaC__NO_ASM_FALSE='#'
|
cannam@86
|
21616 else
|
cannam@86
|
21617 FLaC__NO_ASM_TRUE='#'
|
cannam@86
|
21618 FLaC__NO_ASM_FALSE=
|
cannam@86
|
21619 fi
|
cannam@86
|
21620
|
cannam@86
|
21621 if test "x$asm_opt" = xno ; then
|
cannam@86
|
21622 cat >>confdefs.h <<\_ACEOF
|
cannam@86
|
21623 #define FLAC__NO_ASM 1
|
cannam@86
|
21624 _ACEOF
|
cannam@86
|
21625
|
cannam@86
|
21626
|
cannam@86
|
21627
|
cannam@86
|
21628 fi
|
cannam@86
|
21629
|
cannam@86
|
21630 # Check whether --enable-debug or --disable-debug was given.
|
cannam@86
|
21631 if test "${enable_debug+set}" = set; then
|
cannam@86
|
21632 enableval="$enable_debug"
|
cannam@86
|
21633 case "${enableval}" in
|
cannam@86
|
21634 yes) debug=true ;;
|
cannam@86
|
21635 no) debug=false ;;
|
cannam@86
|
21636 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
|
cannam@86
|
21637 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
|
cannam@86
|
21638 { (exit 1); exit 1; }; } ;;
|
cannam@86
|
21639 esac
|
cannam@86
|
21640 else
|
cannam@86
|
21641 debug=false
|
cannam@86
|
21642 fi;
|
cannam@86
|
21643
|
cannam@86
|
21644
|
cannam@86
|
21645 if test "x$debug" = xtrue; then
|
cannam@86
|
21646 DEBUG_TRUE=
|
cannam@86
|
21647 DEBUG_FALSE='#'
|
cannam@86
|
21648 else
|
cannam@86
|
21649 DEBUG_TRUE='#'
|
cannam@86
|
21650 DEBUG_FALSE=
|
cannam@86
|
21651 fi
|
cannam@86
|
21652
|
cannam@86
|
21653
|
cannam@86
|
21654 # Check whether --enable-sse or --disable-sse was given.
|
cannam@86
|
21655 if test "${enable_sse+set}" = set; then
|
cannam@86
|
21656 enableval="$enable_sse"
|
cannam@86
|
21657 case "${enableval}" in
|
cannam@86
|
21658 yes) sse_os=true ;;
|
cannam@86
|
21659 no) sse_os=false ;;
|
cannam@86
|
21660 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-sse" >&5
|
cannam@86
|
21661 echo "$as_me: error: bad value ${enableval} for --enable-sse" >&2;}
|
cannam@86
|
21662 { (exit 1); exit 1; }; } ;;
|
cannam@86
|
21663 esac
|
cannam@86
|
21664 else
|
cannam@86
|
21665 sse_os=false
|
cannam@86
|
21666 fi;
|
cannam@86
|
21667
|
cannam@86
|
21668
|
cannam@86
|
21669 if test "x$sse_os" = xtrue; then
|
cannam@86
|
21670 FLaC__SSE_OS_TRUE=
|
cannam@86
|
21671 FLaC__SSE_OS_FALSE='#'
|
cannam@86
|
21672 else
|
cannam@86
|
21673 FLaC__SSE_OS_TRUE='#'
|
cannam@86
|
21674 FLaC__SSE_OS_FALSE=
|
cannam@86
|
21675 fi
|
cannam@86
|
21676
|
cannam@86
|
21677 if test "x$sse_os" = xtrue ; then
|
cannam@86
|
21678 cat >>confdefs.h <<\_ACEOF
|
cannam@86
|
21679 #define FLAC__SSE_OS 1
|
cannam@86
|
21680 _ACEOF
|
cannam@86
|
21681
|
cannam@86
|
21682
|
cannam@86
|
21683
|
cannam@86
|
21684 fi
|
cannam@86
|
21685
|
cannam@86
|
21686 # Check whether --enable-3dnow or --disable-3dnow was given.
|
cannam@86
|
21687 if test "${enable_3dnow+set}" = set; then
|
cannam@86
|
21688 enableval="$enable_3dnow"
|
cannam@86
|
21689 case "${enableval}" in
|
cannam@86
|
21690 yes) use_3dnow=true ;;
|
cannam@86
|
21691 no) use_3dnow=false ;;
|
cannam@86
|
21692 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-3dnow" >&5
|
cannam@86
|
21693 echo "$as_me: error: bad value ${enableval} for --enable-3dnow" >&2;}
|
cannam@86
|
21694 { (exit 1); exit 1; }; } ;;
|
cannam@86
|
21695 esac
|
cannam@86
|
21696 else
|
cannam@86
|
21697 use_3dnow=true
|
cannam@86
|
21698 fi;
|
cannam@86
|
21699
|
cannam@86
|
21700
|
cannam@86
|
21701 if test "x$use_3dnow" = xtrue; then
|
cannam@86
|
21702 FLaC__USE_3DNOW_TRUE=
|
cannam@86
|
21703 FLaC__USE_3DNOW_FALSE='#'
|
cannam@86
|
21704 else
|
cannam@86
|
21705 FLaC__USE_3DNOW_TRUE='#'
|
cannam@86
|
21706 FLaC__USE_3DNOW_FALSE=
|
cannam@86
|
21707 fi
|
cannam@86
|
21708
|
cannam@86
|
21709 if test "x$use_3dnow" = xtrue ; then
|
cannam@86
|
21710 cat >>confdefs.h <<\_ACEOF
|
cannam@86
|
21711 #define FLAC__USE_3DNOW 1
|
cannam@86
|
21712 _ACEOF
|
cannam@86
|
21713
|
cannam@86
|
21714
|
cannam@86
|
21715
|
cannam@86
|
21716 fi
|
cannam@86
|
21717
|
cannam@86
|
21718 # Check whether --enable-altivec or --disable-altivec was given.
|
cannam@86
|
21719 if test "${enable_altivec+set}" = set; then
|
cannam@86
|
21720 enableval="$enable_altivec"
|
cannam@86
|
21721 case "${enableval}" in
|
cannam@86
|
21722 yes) use_altivec=true ;;
|
cannam@86
|
21723 no) use_altivec=false ;;
|
cannam@86
|
21724 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-altivec" >&5
|
cannam@86
|
21725 echo "$as_me: error: bad value ${enableval} for --enable-altivec" >&2;}
|
cannam@86
|
21726 { (exit 1); exit 1; }; } ;;
|
cannam@86
|
21727 esac
|
cannam@86
|
21728 else
|
cannam@86
|
21729 use_altivec=true
|
cannam@86
|
21730 fi;
|
cannam@86
|
21731
|
cannam@86
|
21732
|
cannam@86
|
21733 if test "x$use_altivec" = xtrue; then
|
cannam@86
|
21734 FLaC__USE_ALTIVEC_TRUE=
|
cannam@86
|
21735 FLaC__USE_ALTIVEC_FALSE='#'
|
cannam@86
|
21736 else
|
cannam@86
|
21737 FLaC__USE_ALTIVEC_TRUE='#'
|
cannam@86
|
21738 FLaC__USE_ALTIVEC_FALSE=
|
cannam@86
|
21739 fi
|
cannam@86
|
21740
|
cannam@86
|
21741 if test "x$use_altivec" = xtrue ; then
|
cannam@86
|
21742 cat >>confdefs.h <<\_ACEOF
|
cannam@86
|
21743 #define FLAC__USE_ALTIVEC 1
|
cannam@86
|
21744 _ACEOF
|
cannam@86
|
21745
|
cannam@86
|
21746
|
cannam@86
|
21747
|
cannam@86
|
21748 fi
|
cannam@86
|
21749
|
cannam@86
|
21750 # Check whether --enable-thorough-tests or --disable-thorough-tests was given.
|
cannam@86
|
21751 if test "${enable_thorough_tests+set}" = set; then
|
cannam@86
|
21752 enableval="$enable_thorough_tests"
|
cannam@86
|
21753 case "${enableval}" in
|
cannam@86
|
21754 yes) thorough_tests=true ;;
|
cannam@86
|
21755 no) thorough_tests=false ;;
|
cannam@86
|
21756 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-thorough-tests" >&5
|
cannam@86
|
21757 echo "$as_me: error: bad value ${enableval} for --enable-thorough-tests" >&2;}
|
cannam@86
|
21758 { (exit 1); exit 1; }; } ;;
|
cannam@86
|
21759 esac
|
cannam@86
|
21760 else
|
cannam@86
|
21761 thorough_tests=true
|
cannam@86
|
21762 fi;
|
cannam@86
|
21763 # Check whether --enable-exhaustive-tests or --disable-exhaustive-tests was given.
|
cannam@86
|
21764 if test "${enable_exhaustive_tests+set}" = set; then
|
cannam@86
|
21765 enableval="$enable_exhaustive_tests"
|
cannam@86
|
21766 case "${enableval}" in
|
cannam@86
|
21767 yes) exhaustive_tests=true ;;
|
cannam@86
|
21768 no) exhaustive_tests=false ;;
|
cannam@86
|
21769 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-exhaustive-tests" >&5
|
cannam@86
|
21770 echo "$as_me: error: bad value ${enableval} for --enable-exhaustive-tests" >&2;}
|
cannam@86
|
21771 { (exit 1); exit 1; }; } ;;
|
cannam@86
|
21772 esac
|
cannam@86
|
21773 else
|
cannam@86
|
21774 exhaustive_tests=false
|
cannam@86
|
21775 fi;
|
cannam@86
|
21776 if test "x$thorough_tests" = xfalse ; then
|
cannam@86
|
21777 FLAC__TEST_LEVEL=0
|
cannam@86
|
21778 elif test "x$exhaustive_tests" = xfalse ; then
|
cannam@86
|
21779 FLAC__TEST_LEVEL=1
|
cannam@86
|
21780 else
|
cannam@86
|
21781 FLAC__TEST_LEVEL=2
|
cannam@86
|
21782 fi
|
cannam@86
|
21783
|
cannam@86
|
21784
|
cannam@86
|
21785 # Check whether --enable-valgrind-testing or --disable-valgrind-testing was given.
|
cannam@86
|
21786 if test "${enable_valgrind_testing+set}" = set; then
|
cannam@86
|
21787 enableval="$enable_valgrind_testing"
|
cannam@86
|
21788 case "${enableval}" in
|
cannam@86
|
21789 yes) FLAC__TEST_WITH_VALGRIND=yes ;;
|
cannam@86
|
21790 no) FLAC__TEST_WITH_VALGRIND=no ;;
|
cannam@86
|
21791 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-valgrind-testing" >&5
|
cannam@86
|
21792 echo "$as_me: error: bad value ${enableval} for --enable-valgrind-testing" >&2;}
|
cannam@86
|
21793 { (exit 1); exit 1; }; } ;;
|
cannam@86
|
21794 esac
|
cannam@86
|
21795 else
|
cannam@86
|
21796 FLAC__TEST_WITH_VALGRIND=no
|
cannam@86
|
21797 fi;
|
cannam@86
|
21798
|
cannam@86
|
21799
|
cannam@86
|
21800 # Check whether --enable-doxygen-docs or --disable-doxygen-docs was given.
|
cannam@86
|
21801 if test "${enable_doxygen_docs+set}" = set; then
|
cannam@86
|
21802 enableval="$enable_doxygen_docs"
|
cannam@86
|
21803 case "${enableval}" in
|
cannam@86
|
21804 yes) enable_doxygen_docs=true ;;
|
cannam@86
|
21805 no) enable_doxygen_docs=false ;;
|
cannam@86
|
21806 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-doxygen-docs" >&5
|
cannam@86
|
21807 echo "$as_me: error: bad value ${enableval} for --enable-doxygen-docs" >&2;}
|
cannam@86
|
21808 { (exit 1); exit 1; }; } ;;
|
cannam@86
|
21809 esac
|
cannam@86
|
21810 else
|
cannam@86
|
21811 enable_doxygen_docs=true
|
cannam@86
|
21812 fi;
|
cannam@86
|
21813 if test "x$enable_doxygen_docs" != xfalse ; then
|
cannam@86
|
21814 for ac_prog in doxygen
|
cannam@86
|
21815 do
|
cannam@86
|
21816 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
cannam@86
|
21817 set dummy $ac_prog; ac_word=$2
|
cannam@86
|
21818 echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@86
|
21819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
cannam@86
|
21820 if test "${ac_cv_prog_DOXYGEN+set}" = set; then
|
cannam@86
|
21821 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
21822 else
|
cannam@86
|
21823 if test -n "$DOXYGEN"; then
|
cannam@86
|
21824 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
|
cannam@86
|
21825 else
|
cannam@86
|
21826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@86
|
21827 for as_dir in $PATH
|
cannam@86
|
21828 do
|
cannam@86
|
21829 IFS=$as_save_IFS
|
cannam@86
|
21830 test -z "$as_dir" && as_dir=.
|
cannam@86
|
21831 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@86
|
21832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@86
|
21833 ac_cv_prog_DOXYGEN="$ac_prog"
|
cannam@86
|
21834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@86
|
21835 break 2
|
cannam@86
|
21836 fi
|
cannam@86
|
21837 done
|
cannam@86
|
21838 done
|
cannam@86
|
21839
|
cannam@86
|
21840 fi
|
cannam@86
|
21841 fi
|
cannam@86
|
21842 DOXYGEN=$ac_cv_prog_DOXYGEN
|
cannam@86
|
21843 if test -n "$DOXYGEN"; then
|
cannam@86
|
21844 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
|
cannam@86
|
21845 echo "${ECHO_T}$DOXYGEN" >&6
|
cannam@86
|
21846 else
|
cannam@86
|
21847 echo "$as_me:$LINENO: result: no" >&5
|
cannam@86
|
21848 echo "${ECHO_T}no" >&6
|
cannam@86
|
21849 fi
|
cannam@86
|
21850
|
cannam@86
|
21851 test -n "$DOXYGEN" && break
|
cannam@86
|
21852 done
|
cannam@86
|
21853
|
cannam@86
|
21854 fi
|
cannam@86
|
21855
|
cannam@86
|
21856
|
cannam@86
|
21857 if test -n "$DOXYGEN"; then
|
cannam@86
|
21858 FLaC__HAS_DOXYGEN_TRUE=
|
cannam@86
|
21859 FLaC__HAS_DOXYGEN_FALSE='#'
|
cannam@86
|
21860 else
|
cannam@86
|
21861 FLaC__HAS_DOXYGEN_TRUE='#'
|
cannam@86
|
21862 FLaC__HAS_DOXYGEN_FALSE=
|
cannam@86
|
21863 fi
|
cannam@86
|
21864
|
cannam@86
|
21865
|
cannam@86
|
21866 # Check whether --enable-local-xmms-plugin or --disable-local-xmms-plugin was given.
|
cannam@86
|
21867 if test "${enable_local_xmms_plugin+set}" = set; then
|
cannam@86
|
21868 enableval="$enable_local_xmms_plugin"
|
cannam@86
|
21869 case "${enableval}" in
|
cannam@86
|
21870 yes) install_xmms_plugin_locally=true ;;
|
cannam@86
|
21871 no) install_xmms_plugin_locally=false ;;
|
cannam@86
|
21872 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-local-xmms-plugin" >&5
|
cannam@86
|
21873 echo "$as_me: error: bad value ${enableval} for --enable-local-xmms-plugin" >&2;}
|
cannam@86
|
21874 { (exit 1); exit 1; }; } ;;
|
cannam@86
|
21875 esac
|
cannam@86
|
21876 else
|
cannam@86
|
21877 install_xmms_plugin_locally=false
|
cannam@86
|
21878 fi;
|
cannam@86
|
21879
|
cannam@86
|
21880
|
cannam@86
|
21881 if test "x$install_xmms_plugin_locally" = xtrue; then
|
cannam@86
|
21882 FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_TRUE=
|
cannam@86
|
21883 FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_FALSE='#'
|
cannam@86
|
21884 else
|
cannam@86
|
21885 FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_TRUE='#'
|
cannam@86
|
21886 FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_FALSE=
|
cannam@86
|
21887 fi
|
cannam@86
|
21888
|
cannam@86
|
21889
|
cannam@86
|
21890 # Check whether --enable-xmms-plugin or --disable-xmms-plugin was given.
|
cannam@86
|
21891 if test "${enable_xmms_plugin+set}" = set; then
|
cannam@86
|
21892 enableval="$enable_xmms_plugin"
|
cannam@86
|
21893 case "${enableval}" in
|
cannam@86
|
21894 yes) enable_xmms_plugin=true ;;
|
cannam@86
|
21895 no) enable_xmms_plugin=false ;;
|
cannam@86
|
21896 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-xmms-plugin" >&5
|
cannam@86
|
21897 echo "$as_me: error: bad value ${enableval} for --enable-xmms-plugin" >&2;}
|
cannam@86
|
21898 { (exit 1); exit 1; }; } ;;
|
cannam@86
|
21899 esac
|
cannam@86
|
21900 else
|
cannam@86
|
21901 enable_xmms_plugin=true
|
cannam@86
|
21902 fi;
|
cannam@86
|
21903 if test "x$enable_xmms_plugin" != xfalse ; then
|
cannam@86
|
21904
|
cannam@86
|
21905
|
cannam@86
|
21906 # Check whether --with-xmms-prefix or --without-xmms-prefix was given.
|
cannam@86
|
21907 if test "${with_xmms_prefix+set}" = set; then
|
cannam@86
|
21908 withval="$with_xmms_prefix"
|
cannam@86
|
21909 xmms_config_prefix="$withval"
|
cannam@86
|
21910 else
|
cannam@86
|
21911 xmms_config_prefix=""
|
cannam@86
|
21912 fi;
|
cannam@86
|
21913
|
cannam@86
|
21914 # Check whether --with-xmms-exec-prefix or --without-xmms-exec-prefix was given.
|
cannam@86
|
21915 if test "${with_xmms_exec_prefix+set}" = set; then
|
cannam@86
|
21916 withval="$with_xmms_exec_prefix"
|
cannam@86
|
21917 xmms_config_exec_prefix="$withval"
|
cannam@86
|
21918 else
|
cannam@86
|
21919 xmms_config_exec_prefix=""
|
cannam@86
|
21920 fi;
|
cannam@86
|
21921
|
cannam@86
|
21922 if test x$xmms_config_exec_prefix != x; then
|
cannam@86
|
21923 xmms_config_args="$xmms_config_args --exec-prefix=$xmms_config_exec_prefix"
|
cannam@86
|
21924 if test x${XMMS_CONFIG+set} != xset; then
|
cannam@86
|
21925 XMMS_CONFIG=$xmms_config_exec_prefix/bin/xmms-config
|
cannam@86
|
21926 fi
|
cannam@86
|
21927 fi
|
cannam@86
|
21928
|
cannam@86
|
21929 if test x$xmms_config_prefix != x; then
|
cannam@86
|
21930 xmms_config_args="$xmms_config_args --prefix=$xmms_config_prefix"
|
cannam@86
|
21931 if test x${XMMS_CONFIG+set} != xset; then
|
cannam@86
|
21932 XMMS_CONFIG=$xmms_config_prefix/bin/xmms-config
|
cannam@86
|
21933 fi
|
cannam@86
|
21934 fi
|
cannam@86
|
21935
|
cannam@86
|
21936 # Extract the first word of "xmms-config", so it can be a program name with args.
|
cannam@86
|
21937 set dummy xmms-config; ac_word=$2
|
cannam@86
|
21938 echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@86
|
21939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
cannam@86
|
21940 if test "${ac_cv_path_XMMS_CONFIG+set}" = set; then
|
cannam@86
|
21941 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
21942 else
|
cannam@86
|
21943 case $XMMS_CONFIG in
|
cannam@86
|
21944 [\\/]* | ?:[\\/]*)
|
cannam@86
|
21945 ac_cv_path_XMMS_CONFIG="$XMMS_CONFIG" # Let the user override the test with a path.
|
cannam@86
|
21946 ;;
|
cannam@86
|
21947 *)
|
cannam@86
|
21948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@86
|
21949 for as_dir in $PATH
|
cannam@86
|
21950 do
|
cannam@86
|
21951 IFS=$as_save_IFS
|
cannam@86
|
21952 test -z "$as_dir" && as_dir=.
|
cannam@86
|
21953 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@86
|
21954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@86
|
21955 ac_cv_path_XMMS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
|
cannam@86
|
21956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@86
|
21957 break 2
|
cannam@86
|
21958 fi
|
cannam@86
|
21959 done
|
cannam@86
|
21960 done
|
cannam@86
|
21961
|
cannam@86
|
21962 test -z "$ac_cv_path_XMMS_CONFIG" && ac_cv_path_XMMS_CONFIG="no"
|
cannam@86
|
21963 ;;
|
cannam@86
|
21964 esac
|
cannam@86
|
21965 fi
|
cannam@86
|
21966 XMMS_CONFIG=$ac_cv_path_XMMS_CONFIG
|
cannam@86
|
21967
|
cannam@86
|
21968 if test -n "$XMMS_CONFIG"; then
|
cannam@86
|
21969 echo "$as_me:$LINENO: result: $XMMS_CONFIG" >&5
|
cannam@86
|
21970 echo "${ECHO_T}$XMMS_CONFIG" >&6
|
cannam@86
|
21971 else
|
cannam@86
|
21972 echo "$as_me:$LINENO: result: no" >&5
|
cannam@86
|
21973 echo "${ECHO_T}no" >&6
|
cannam@86
|
21974 fi
|
cannam@86
|
21975
|
cannam@86
|
21976 min_xmms_version=0.9.5.1
|
cannam@86
|
21977
|
cannam@86
|
21978 if test "$XMMS_CONFIG" = "no"; then
|
cannam@86
|
21979 no_xmms=yes
|
cannam@86
|
21980 else
|
cannam@86
|
21981 XMMS_CFLAGS=`$XMMS_CONFIG $xmms_config_args --cflags`
|
cannam@86
|
21982 XMMS_LIBS=`$XMMS_CONFIG $xmms_config_args --libs`
|
cannam@86
|
21983 XMMS_VERSION=`$XMMS_CONFIG $xmms_config_args --version`
|
cannam@86
|
21984 XMMS_DATA_DIR=`$XMMS_CONFIG $xmms_config_args --data-dir`
|
cannam@86
|
21985 XMMS_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --plugin-dir`
|
cannam@86
|
21986 XMMS_VISUALIZATION_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args \
|
cannam@86
|
21987 --visualization-plugin-dir`
|
cannam@86
|
21988 XMMS_INPUT_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --input-plugin-dir`
|
cannam@86
|
21989 XMMS_OUTPUT_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --output-plugin-dir`
|
cannam@86
|
21990 XMMS_EFFECT_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --effect-plugin-dir`
|
cannam@86
|
21991 XMMS_GENERAL_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --general-plugin-dir`
|
cannam@86
|
21992
|
cannam@86
|
21993
|
cannam@86
|
21994
|
cannam@86
|
21995 # Determine which version number is greater. Prints 2 to stdout if
|
cannam@86
|
21996 # the second number is greater, 1 if the first number is greater,
|
cannam@86
|
21997 # 0 if the numbers are equal.
|
cannam@86
|
21998
|
cannam@86
|
21999 # Written 15 December 1999 by Ben Gertzfield <che@debian.org>
|
cannam@86
|
22000 # Revised 15 December 1999 by Jim Monty <monty@primenet.com>
|
cannam@86
|
22001
|
cannam@86
|
22002 for ac_prog in gawk mawk nawk awk
|
cannam@86
|
22003 do
|
cannam@86
|
22004 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
cannam@86
|
22005 set dummy $ac_prog; ac_word=$2
|
cannam@86
|
22006 echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@86
|
22007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
cannam@86
|
22008 if test "${ac_cv_prog_AWK+set}" = set; then
|
cannam@86
|
22009 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
22010 else
|
cannam@86
|
22011 if test -n "$AWK"; then
|
cannam@86
|
22012 ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
cannam@86
|
22013 else
|
cannam@86
|
22014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@86
|
22015 for as_dir in $PATH
|
cannam@86
|
22016 do
|
cannam@86
|
22017 IFS=$as_save_IFS
|
cannam@86
|
22018 test -z "$as_dir" && as_dir=.
|
cannam@86
|
22019 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@86
|
22020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@86
|
22021 ac_cv_prog_AWK="$ac_prog"
|
cannam@86
|
22022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@86
|
22023 break 2
|
cannam@86
|
22024 fi
|
cannam@86
|
22025 done
|
cannam@86
|
22026 done
|
cannam@86
|
22027
|
cannam@86
|
22028 fi
|
cannam@86
|
22029 fi
|
cannam@86
|
22030 AWK=$ac_cv_prog_AWK
|
cannam@86
|
22031 if test -n "$AWK"; then
|
cannam@86
|
22032 echo "$as_me:$LINENO: result: $AWK" >&5
|
cannam@86
|
22033 echo "${ECHO_T}$AWK" >&6
|
cannam@86
|
22034 else
|
cannam@86
|
22035 echo "$as_me:$LINENO: result: no" >&5
|
cannam@86
|
22036 echo "${ECHO_T}no" >&6
|
cannam@86
|
22037 fi
|
cannam@86
|
22038
|
cannam@86
|
22039 test -n "$AWK" && break
|
cannam@86
|
22040 done
|
cannam@86
|
22041
|
cannam@86
|
22042 xmms_got_version=` $AWK ' \
|
cannam@86
|
22043 BEGIN { \
|
cannam@86
|
22044 print vercmp(ARGV[1], ARGV[2]); \
|
cannam@86
|
22045 } \
|
cannam@86
|
22046 \
|
cannam@86
|
22047 function vercmp(ver1, ver2, ver1arr, ver2arr, \
|
cannam@86
|
22048 ver1len, ver2len, \
|
cannam@86
|
22049 ver1int, ver2int, len, i, p) { \
|
cannam@86
|
22050 \
|
cannam@86
|
22051 ver1len = split(ver1, ver1arr, /\./); \
|
cannam@86
|
22052 ver2len = split(ver2, ver2arr, /\./); \
|
cannam@86
|
22053 \
|
cannam@86
|
22054 len = ver1len > ver2len ? ver1len : ver2len; \
|
cannam@86
|
22055 \
|
cannam@86
|
22056 for (i = 1; i <= len; i++) { \
|
cannam@86
|
22057 p = 1000 ^ (len - i); \
|
cannam@86
|
22058 ver1int += ver1arr[i] * p; \
|
cannam@86
|
22059 ver2int += ver2arr[i] * p; \
|
cannam@86
|
22060 } \
|
cannam@86
|
22061 \
|
cannam@86
|
22062 if (ver1int < ver2int) \
|
cannam@86
|
22063 return 2; \
|
cannam@86
|
22064 else if (ver1int > ver2int) \
|
cannam@86
|
22065 return 1; \
|
cannam@86
|
22066 else \
|
cannam@86
|
22067 return 0; \
|
cannam@86
|
22068 }' $XMMS_VERSION $min_xmms_version`
|
cannam@86
|
22069
|
cannam@86
|
22070 if test $xmms_got_version -eq 2; then # failure
|
cannam@86
|
22071 no_xmms=version
|
cannam@86
|
22072 else # success!
|
cannam@86
|
22073 :
|
cannam@86
|
22074 fi
|
cannam@86
|
22075
|
cannam@86
|
22076 fi
|
cannam@86
|
22077
|
cannam@86
|
22078 echo "$as_me:$LINENO: checking for XMMS - version >= $min_xmms_version" >&5
|
cannam@86
|
22079 echo $ECHO_N "checking for XMMS - version >= $min_xmms_version... $ECHO_C" >&6
|
cannam@86
|
22080
|
cannam@86
|
22081 if test "x$no_xmms" = x; then
|
cannam@86
|
22082 echo "$as_me:$LINENO: result: yes" >&5
|
cannam@86
|
22083 echo "${ECHO_T}yes" >&6
|
cannam@86
|
22084 :
|
cannam@86
|
22085 else
|
cannam@86
|
22086 echo "$as_me:$LINENO: result: no" >&5
|
cannam@86
|
22087 echo "${ECHO_T}no" >&6
|
cannam@86
|
22088
|
cannam@86
|
22089 if test "$XMMS_CONFIG" = "no" ; then
|
cannam@86
|
22090 echo "*** The xmms-config script installed by XMMS could not be found."
|
cannam@86
|
22091 echo "*** If XMMS was installed in PREFIX, make sure PREFIX/bin is in"
|
cannam@86
|
22092 echo "*** your path, or set the XMMS_CONFIG environment variable to the"
|
cannam@86
|
22093 echo "*** full path to xmms-config."
|
cannam@86
|
22094 else
|
cannam@86
|
22095 if test "$no_xmms" = "version"; then
|
cannam@86
|
22096 echo "*** An old version of XMMS, $XMMS_VERSION, was found."
|
cannam@86
|
22097 echo "*** You need a version of XMMS newer than $min_xmms_version."
|
cannam@86
|
22098 echo "*** The latest version of XMMS is always available from"
|
cannam@86
|
22099 echo "*** http://www.xmms.org/"
|
cannam@86
|
22100 echo "***"
|
cannam@86
|
22101
|
cannam@86
|
22102 echo "*** If you have already installed a sufficiently new version, this error"
|
cannam@86
|
22103 echo "*** probably means that the wrong copy of the xmms-config shell script is"
|
cannam@86
|
22104 echo "*** being found. The easiest way to fix this is to remove the old version"
|
cannam@86
|
22105 echo "*** of XMMS, but you can also set the XMMS_CONFIG environment to point to the"
|
cannam@86
|
22106 echo "*** correct copy of xmms-config. (In this case, you will have to"
|
cannam@86
|
22107 echo "*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf"
|
cannam@86
|
22108 echo "*** so that the correct libraries are found at run-time)"
|
cannam@86
|
22109 fi
|
cannam@86
|
22110 fi
|
cannam@86
|
22111 XMMS_CFLAGS=""
|
cannam@86
|
22112 XMMS_LIBS=""
|
cannam@86
|
22113 { echo "$as_me:$LINENO: WARNING: *** XMMS >= 0.9.5.1 not installed - XMMS support will not be built" >&5
|
cannam@86
|
22114 echo "$as_me: WARNING: *** XMMS >= 0.9.5.1 not installed - XMMS support will not be built" >&2;}
|
cannam@86
|
22115 fi
|
cannam@86
|
22116
|
cannam@86
|
22117
|
cannam@86
|
22118
|
cannam@86
|
22119
|
cannam@86
|
22120
|
cannam@86
|
22121
|
cannam@86
|
22122
|
cannam@86
|
22123
|
cannam@86
|
22124
|
cannam@86
|
22125
|
cannam@86
|
22126
|
cannam@86
|
22127 fi
|
cannam@86
|
22128
|
cannam@86
|
22129
|
cannam@86
|
22130 if test -n "$XMMS_INPUT_PLUGIN_DIR"; then
|
cannam@86
|
22131 FLaC__HAS_XMMS_TRUE=
|
cannam@86
|
22132 FLaC__HAS_XMMS_FALSE='#'
|
cannam@86
|
22133 else
|
cannam@86
|
22134 FLaC__HAS_XMMS_TRUE='#'
|
cannam@86
|
22135 FLaC__HAS_XMMS_FALSE=
|
cannam@86
|
22136 fi
|
cannam@86
|
22137
|
cannam@86
|
22138
|
cannam@86
|
22139 # Check whether --enable-cpplibs or --disable-cpplibs was given.
|
cannam@86
|
22140 if test "${enable_cpplibs+set}" = set; then
|
cannam@86
|
22141 enableval="$enable_cpplibs"
|
cannam@86
|
22142 case "${enableval}" in
|
cannam@86
|
22143 yes) disable_cpplibs=false ;;
|
cannam@86
|
22144 no) disable_cpplibs=true ;;
|
cannam@86
|
22145 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-cpplibs" >&5
|
cannam@86
|
22146 echo "$as_me: error: bad value ${enableval} for --enable-cpplibs" >&2;}
|
cannam@86
|
22147 { (exit 1); exit 1; }; } ;;
|
cannam@86
|
22148 esac
|
cannam@86
|
22149 else
|
cannam@86
|
22150 disable_cpplibs=false
|
cannam@86
|
22151 fi;
|
cannam@86
|
22152
|
cannam@86
|
22153
|
cannam@86
|
22154 if test "x$disable_cpplibs" != xtrue; then
|
cannam@86
|
22155 FLaC__WITH_CPPLIBS_TRUE=
|
cannam@86
|
22156 FLaC__WITH_CPPLIBS_FALSE='#'
|
cannam@86
|
22157 else
|
cannam@86
|
22158 FLaC__WITH_CPPLIBS_TRUE='#'
|
cannam@86
|
22159 FLaC__WITH_CPPLIBS_FALSE=
|
cannam@86
|
22160 fi
|
cannam@86
|
22161
|
cannam@86
|
22162
|
cannam@86
|
22163 # Check whether --enable-ogg or --disable-ogg was given.
|
cannam@86
|
22164 if test "${enable_ogg+set}" = set; then
|
cannam@86
|
22165 enableval="$enable_ogg"
|
cannam@86
|
22166 want_ogg=$enableval
|
cannam@86
|
22167 else
|
cannam@86
|
22168 want_ogg=yes
|
cannam@86
|
22169 fi;
|
cannam@86
|
22170
|
cannam@86
|
22171 if test "x$want_ogg" != "xno"; then
|
cannam@86
|
22172
|
cannam@86
|
22173 # Check whether --with-ogg or --without-ogg was given.
|
cannam@86
|
22174 if test "${with_ogg+set}" = set; then
|
cannam@86
|
22175 withval="$with_ogg"
|
cannam@86
|
22176 ogg_prefix="$withval"
|
cannam@86
|
22177 else
|
cannam@86
|
22178 ogg_prefix=""
|
cannam@86
|
22179 fi;
|
cannam@86
|
22180
|
cannam@86
|
22181 # Check whether --with-ogg-libraries or --without-ogg-libraries was given.
|
cannam@86
|
22182 if test "${with_ogg_libraries+set}" = set; then
|
cannam@86
|
22183 withval="$with_ogg_libraries"
|
cannam@86
|
22184 ogg_libraries="$withval"
|
cannam@86
|
22185 else
|
cannam@86
|
22186 ogg_libraries=""
|
cannam@86
|
22187 fi;
|
cannam@86
|
22188
|
cannam@86
|
22189 # Check whether --with-ogg-includes or --without-ogg-includes was given.
|
cannam@86
|
22190 if test "${with_ogg_includes+set}" = set; then
|
cannam@86
|
22191 withval="$with_ogg_includes"
|
cannam@86
|
22192 ogg_includes="$withval"
|
cannam@86
|
22193 else
|
cannam@86
|
22194 ogg_includes=""
|
cannam@86
|
22195 fi;
|
cannam@86
|
22196 # Check whether --enable-oggtest or --disable-oggtest was given.
|
cannam@86
|
22197 if test "${enable_oggtest+set}" = set; then
|
cannam@86
|
22198 enableval="$enable_oggtest"
|
cannam@86
|
22199
|
cannam@86
|
22200 else
|
cannam@86
|
22201 enable_oggtest=yes
|
cannam@86
|
22202 fi;
|
cannam@86
|
22203
|
cannam@86
|
22204 if test "x$ogg_libraries" != "x" ; then
|
cannam@86
|
22205 OGG_LIBS="-L$ogg_libraries"
|
cannam@86
|
22206 elif test "x$ogg_prefix" != "x" ; then
|
cannam@86
|
22207 OGG_LIBS="-L$ogg_prefix/lib"
|
cannam@86
|
22208 elif test "x$prefix" != "xNONE" ; then
|
cannam@86
|
22209 OGG_LIBS="-L$prefix/lib"
|
cannam@86
|
22210 fi
|
cannam@86
|
22211
|
cannam@86
|
22212 OGG_LIBS="$OGG_LIBS -logg"
|
cannam@86
|
22213
|
cannam@86
|
22214 if test "x$ogg_includes" != "x" ; then
|
cannam@86
|
22215 OGG_CFLAGS="-I$ogg_includes"
|
cannam@86
|
22216 elif test "x$ogg_prefix" != "x" ; then
|
cannam@86
|
22217 OGG_CFLAGS="-I$ogg_prefix/include"
|
cannam@86
|
22218 elif test "x$prefix" != "xNONE"; then
|
cannam@86
|
22219 OGG_CFLAGS="-I$prefix/include"
|
cannam@86
|
22220 fi
|
cannam@86
|
22221
|
cannam@86
|
22222 echo "$as_me:$LINENO: checking for Ogg" >&5
|
cannam@86
|
22223 echo $ECHO_N "checking for Ogg... $ECHO_C" >&6
|
cannam@86
|
22224 no_ogg=""
|
cannam@86
|
22225
|
cannam@86
|
22226
|
cannam@86
|
22227 if test "x$enable_oggtest" = "xyes" ; then
|
cannam@86
|
22228 ac_save_CFLAGS="$CFLAGS"
|
cannam@86
|
22229 ac_save_LIBS="$LIBS"
|
cannam@86
|
22230 CFLAGS="$CFLAGS $OGG_CFLAGS"
|
cannam@86
|
22231 LIBS="$LIBS $OGG_LIBS"
|
cannam@86
|
22232 rm -f conf.oggtest
|
cannam@86
|
22233 if test "$cross_compiling" = yes; then
|
cannam@86
|
22234 echo $ac_n "cross compiling; assumed OK... $ac_c"
|
cannam@86
|
22235 else
|
cannam@86
|
22236 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
22237 /* confdefs.h. */
|
cannam@86
|
22238 _ACEOF
|
cannam@86
|
22239 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
22240 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
22241 /* end confdefs.h. */
|
cannam@86
|
22242
|
cannam@86
|
22243 #include <stdio.h>
|
cannam@86
|
22244 #include <stdlib.h>
|
cannam@86
|
22245 #include <string.h>
|
cannam@86
|
22246 #include <ogg/ogg.h>
|
cannam@86
|
22247
|
cannam@86
|
22248 int main ()
|
cannam@86
|
22249 {
|
cannam@86
|
22250 system("touch conf.oggtest");
|
cannam@86
|
22251 return 0;
|
cannam@86
|
22252 }
|
cannam@86
|
22253
|
cannam@86
|
22254
|
cannam@86
|
22255 _ACEOF
|
cannam@86
|
22256 rm -f conftest$ac_exeext
|
cannam@86
|
22257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@86
|
22258 (eval $ac_link) 2>&5
|
cannam@86
|
22259 ac_status=$?
|
cannam@86
|
22260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
22261 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
cannam@86
|
22262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
22263 (eval $ac_try) 2>&5
|
cannam@86
|
22264 ac_status=$?
|
cannam@86
|
22265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
22266 (exit $ac_status); }; }; then
|
cannam@86
|
22267 :
|
cannam@86
|
22268 else
|
cannam@86
|
22269 echo "$as_me: program exited with status $ac_status" >&5
|
cannam@86
|
22270 echo "$as_me: failed program was:" >&5
|
cannam@86
|
22271 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
22272
|
cannam@86
|
22273 ( exit $ac_status )
|
cannam@86
|
22274 no_ogg=yes
|
cannam@86
|
22275 fi
|
cannam@86
|
22276 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
cannam@86
|
22277 fi
|
cannam@86
|
22278 CFLAGS="$ac_save_CFLAGS"
|
cannam@86
|
22279 LIBS="$ac_save_LIBS"
|
cannam@86
|
22280 fi
|
cannam@86
|
22281
|
cannam@86
|
22282 if test "x$no_ogg" = "x" ; then
|
cannam@86
|
22283 echo "$as_me:$LINENO: result: yes" >&5
|
cannam@86
|
22284 echo "${ECHO_T}yes" >&6
|
cannam@86
|
22285 have_ogg=yes
|
cannam@86
|
22286 else
|
cannam@86
|
22287 echo "$as_me:$LINENO: result: no" >&5
|
cannam@86
|
22288 echo "${ECHO_T}no" >&6
|
cannam@86
|
22289 if test -f conf.oggtest ; then
|
cannam@86
|
22290 :
|
cannam@86
|
22291 else
|
cannam@86
|
22292 echo "*** Could not run Ogg test program, checking why..."
|
cannam@86
|
22293 CFLAGS="$CFLAGS $OGG_CFLAGS"
|
cannam@86
|
22294 LIBS="$LIBS $OGG_LIBS"
|
cannam@86
|
22295 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
22296 /* confdefs.h. */
|
cannam@86
|
22297 _ACEOF
|
cannam@86
|
22298 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
22299 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
22300 /* end confdefs.h. */
|
cannam@86
|
22301
|
cannam@86
|
22302 #include <stdio.h>
|
cannam@86
|
22303 #include <ogg/ogg.h>
|
cannam@86
|
22304
|
cannam@86
|
22305 int
|
cannam@86
|
22306 main ()
|
cannam@86
|
22307 {
|
cannam@86
|
22308 return 0;
|
cannam@86
|
22309 ;
|
cannam@86
|
22310 return 0;
|
cannam@86
|
22311 }
|
cannam@86
|
22312 _ACEOF
|
cannam@86
|
22313 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@86
|
22314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@86
|
22315 (eval $ac_link) 2>conftest.er1
|
cannam@86
|
22316 ac_status=$?
|
cannam@86
|
22317 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
22318 rm -f conftest.er1
|
cannam@86
|
22319 cat conftest.err >&5
|
cannam@86
|
22320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
22321 (exit $ac_status); } &&
|
cannam@86
|
22322 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
22323 || test ! -s conftest.err'
|
cannam@86
|
22324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
22325 (eval $ac_try) 2>&5
|
cannam@86
|
22326 ac_status=$?
|
cannam@86
|
22327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
22328 (exit $ac_status); }; } &&
|
cannam@86
|
22329 { ac_try='test -s conftest$ac_exeext'
|
cannam@86
|
22330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
22331 (eval $ac_try) 2>&5
|
cannam@86
|
22332 ac_status=$?
|
cannam@86
|
22333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
22334 (exit $ac_status); }; }; then
|
cannam@86
|
22335 echo "*** The test program compiled, but did not run. This usually means"
|
cannam@86
|
22336 echo "*** that the run-time linker is not finding Ogg or finding the wrong"
|
cannam@86
|
22337 echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
|
cannam@86
|
22338 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
|
cannam@86
|
22339 echo "*** to the installed location Also, make sure you have run ldconfig if that"
|
cannam@86
|
22340 echo "*** is required on your system"
|
cannam@86
|
22341 echo "***"
|
cannam@86
|
22342 echo "*** If you have an old version installed, it is best to remove it, although"
|
cannam@86
|
22343 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
|
cannam@86
|
22344 else
|
cannam@86
|
22345 echo "$as_me: failed program was:" >&5
|
cannam@86
|
22346 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
22347
|
cannam@86
|
22348 echo "*** The test program failed to compile or link. See the file config.log for the"
|
cannam@86
|
22349 echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
|
cannam@86
|
22350 echo "*** or that you have moved Ogg since it was installed."
|
cannam@86
|
22351 fi
|
cannam@86
|
22352 rm -f conftest.err conftest.$ac_objext \
|
cannam@86
|
22353 conftest$ac_exeext conftest.$ac_ext
|
cannam@86
|
22354 CFLAGS="$ac_save_CFLAGS"
|
cannam@86
|
22355 LIBS="$ac_save_LIBS"
|
cannam@86
|
22356 fi
|
cannam@86
|
22357 OGG_CFLAGS=""
|
cannam@86
|
22358 OGG_LIBS=""
|
cannam@86
|
22359 { echo "$as_me:$LINENO: WARNING: *** Ogg development enviroment not installed - Ogg support will not be built" >&5
|
cannam@86
|
22360 echo "$as_me: WARNING: *** Ogg development enviroment not installed - Ogg support will not be built" >&2;}
|
cannam@86
|
22361 fi
|
cannam@86
|
22362
|
cannam@86
|
22363
|
cannam@86
|
22364 rm -f conf.oggtest
|
cannam@86
|
22365
|
cannam@86
|
22366 fi
|
cannam@86
|
22367
|
cannam@86
|
22368
|
cannam@86
|
22369
|
cannam@86
|
22370 if test "x$have_ogg" = xyes; then
|
cannam@86
|
22371 FLaC__HAS_OGG_TRUE=
|
cannam@86
|
22372 FLaC__HAS_OGG_FALSE='#'
|
cannam@86
|
22373 else
|
cannam@86
|
22374 FLaC__HAS_OGG_TRUE='#'
|
cannam@86
|
22375 FLaC__HAS_OGG_FALSE=
|
cannam@86
|
22376 fi
|
cannam@86
|
22377
|
cannam@86
|
22378 if test "x$have_ogg" = xyes ; then
|
cannam@86
|
22379 cat >>confdefs.h <<\_ACEOF
|
cannam@86
|
22380 #define FLAC__HAS_OGG 1
|
cannam@86
|
22381 _ACEOF
|
cannam@86
|
22382
|
cannam@86
|
22383
|
cannam@86
|
22384
|
cannam@86
|
22385 fi
|
cannam@86
|
22386
|
cannam@86
|
22387
|
cannam@86
|
22388 if test "X$prefix" = "XNONE"; then
|
cannam@86
|
22389 acl_final_prefix="$ac_default_prefix"
|
cannam@86
|
22390 else
|
cannam@86
|
22391 acl_final_prefix="$prefix"
|
cannam@86
|
22392 fi
|
cannam@86
|
22393 if test "X$exec_prefix" = "XNONE"; then
|
cannam@86
|
22394 acl_final_exec_prefix='${prefix}'
|
cannam@86
|
22395 else
|
cannam@86
|
22396 acl_final_exec_prefix="$exec_prefix"
|
cannam@86
|
22397 fi
|
cannam@86
|
22398 acl_save_prefix="$prefix"
|
cannam@86
|
22399 prefix="$acl_final_prefix"
|
cannam@86
|
22400 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
|
cannam@86
|
22401 prefix="$acl_save_prefix"
|
cannam@86
|
22402
|
cannam@86
|
22403
|
cannam@86
|
22404 # Check whether --with-gnu-ld or --without-gnu-ld was given.
|
cannam@86
|
22405 if test "${with_gnu_ld+set}" = set; then
|
cannam@86
|
22406 withval="$with_gnu_ld"
|
cannam@86
|
22407 test "$withval" = no || with_gnu_ld=yes
|
cannam@86
|
22408 else
|
cannam@86
|
22409 with_gnu_ld=no
|
cannam@86
|
22410 fi;
|
cannam@86
|
22411 # Prepare PATH_SEPARATOR.
|
cannam@86
|
22412 # The user is always right.
|
cannam@86
|
22413 if test "${PATH_SEPARATOR+set}" != set; then
|
cannam@86
|
22414 echo "#! /bin/sh" >conf$$.sh
|
cannam@86
|
22415 echo "exit 0" >>conf$$.sh
|
cannam@86
|
22416 chmod +x conf$$.sh
|
cannam@86
|
22417 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
cannam@86
|
22418 PATH_SEPARATOR=';'
|
cannam@86
|
22419 else
|
cannam@86
|
22420 PATH_SEPARATOR=:
|
cannam@86
|
22421 fi
|
cannam@86
|
22422 rm -f conf$$.sh
|
cannam@86
|
22423 fi
|
cannam@86
|
22424 ac_prog=ld
|
cannam@86
|
22425 if test "$GCC" = yes; then
|
cannam@86
|
22426 # Check if gcc -print-prog-name=ld gives a path.
|
cannam@86
|
22427 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
|
cannam@86
|
22428 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
|
cannam@86
|
22429 case $host in
|
cannam@86
|
22430 *-*-mingw*)
|
cannam@86
|
22431 # gcc leaves a trailing carriage return which upsets mingw
|
cannam@86
|
22432 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
cannam@86
|
22433 *)
|
cannam@86
|
22434 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
cannam@86
|
22435 esac
|
cannam@86
|
22436 case $ac_prog in
|
cannam@86
|
22437 # Accept absolute paths.
|
cannam@86
|
22438 [\\/]* | [A-Za-z]:[\\/]*)
|
cannam@86
|
22439 re_direlt='/[^/][^/]*/\.\./'
|
cannam@86
|
22440 # Canonicalize the path of ld
|
cannam@86
|
22441 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
|
cannam@86
|
22442 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
|
cannam@86
|
22443 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
|
cannam@86
|
22444 done
|
cannam@86
|
22445 test -z "$LD" && LD="$ac_prog"
|
cannam@86
|
22446 ;;
|
cannam@86
|
22447 "")
|
cannam@86
|
22448 # If it fails, then pretend we aren't using GCC.
|
cannam@86
|
22449 ac_prog=ld
|
cannam@86
|
22450 ;;
|
cannam@86
|
22451 *)
|
cannam@86
|
22452 # If it is relative, then search for the first ld in PATH.
|
cannam@86
|
22453 with_gnu_ld=unknown
|
cannam@86
|
22454 ;;
|
cannam@86
|
22455 esac
|
cannam@86
|
22456 elif test "$with_gnu_ld" = yes; then
|
cannam@86
|
22457 echo "$as_me:$LINENO: checking for GNU ld" >&5
|
cannam@86
|
22458 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
|
cannam@86
|
22459 else
|
cannam@86
|
22460 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
|
cannam@86
|
22461 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
|
cannam@86
|
22462 fi
|
cannam@86
|
22463 if test "${acl_cv_path_LD+set}" = set; then
|
cannam@86
|
22464 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
22465 else
|
cannam@86
|
22466 if test -z "$LD"; then
|
cannam@86
|
22467 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
cannam@86
|
22468 for ac_dir in $PATH; do
|
cannam@86
|
22469 test -z "$ac_dir" && ac_dir=.
|
cannam@86
|
22470 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
cannam@86
|
22471 acl_cv_path_LD="$ac_dir/$ac_prog"
|
cannam@86
|
22472 # Check to see if the program is GNU ld. I'd rather use --version,
|
cannam@86
|
22473 # but apparently some GNU ld's only accept -v.
|
cannam@86
|
22474 # Break only if it was the GNU/non-GNU ld that we prefer.
|
cannam@86
|
22475 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
|
cannam@86
|
22476 *GNU* | *'with BFD'*)
|
cannam@86
|
22477 test "$with_gnu_ld" != no && break ;;
|
cannam@86
|
22478 *)
|
cannam@86
|
22479 test "$with_gnu_ld" != yes && break ;;
|
cannam@86
|
22480 esac
|
cannam@86
|
22481 fi
|
cannam@86
|
22482 done
|
cannam@86
|
22483 IFS="$ac_save_ifs"
|
cannam@86
|
22484 else
|
cannam@86
|
22485 acl_cv_path_LD="$LD" # Let the user override the test with a path.
|
cannam@86
|
22486 fi
|
cannam@86
|
22487 fi
|
cannam@86
|
22488
|
cannam@86
|
22489 LD="$acl_cv_path_LD"
|
cannam@86
|
22490 if test -n "$LD"; then
|
cannam@86
|
22491 echo "$as_me:$LINENO: result: $LD" >&5
|
cannam@86
|
22492 echo "${ECHO_T}$LD" >&6
|
cannam@86
|
22493 else
|
cannam@86
|
22494 echo "$as_me:$LINENO: result: no" >&5
|
cannam@86
|
22495 echo "${ECHO_T}no" >&6
|
cannam@86
|
22496 fi
|
cannam@86
|
22497 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
|
cannam@86
|
22498 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
|
cannam@86
|
22499 { (exit 1); exit 1; }; }
|
cannam@86
|
22500 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
|
cannam@86
|
22501 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
|
cannam@86
|
22502 if test "${acl_cv_prog_gnu_ld+set}" = set; then
|
cannam@86
|
22503 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
22504 else
|
cannam@86
|
22505 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
|
cannam@86
|
22506 case `$LD -v 2>&1 </dev/null` in
|
cannam@86
|
22507 *GNU* | *'with BFD'*)
|
cannam@86
|
22508 acl_cv_prog_gnu_ld=yes ;;
|
cannam@86
|
22509 *)
|
cannam@86
|
22510 acl_cv_prog_gnu_ld=no ;;
|
cannam@86
|
22511 esac
|
cannam@86
|
22512 fi
|
cannam@86
|
22513 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
|
cannam@86
|
22514 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
|
cannam@86
|
22515 with_gnu_ld=$acl_cv_prog_gnu_ld
|
cannam@86
|
22516
|
cannam@86
|
22517
|
cannam@86
|
22518
|
cannam@86
|
22519
|
cannam@86
|
22520 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
|
cannam@86
|
22521 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
|
cannam@86
|
22522 if test "${acl_cv_rpath+set}" = set; then
|
cannam@86
|
22523 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
22524 else
|
cannam@86
|
22525
|
cannam@86
|
22526 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
|
cannam@86
|
22527 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
|
cannam@86
|
22528 . ./conftest.sh
|
cannam@86
|
22529 rm -f ./conftest.sh
|
cannam@86
|
22530 acl_cv_rpath=done
|
cannam@86
|
22531
|
cannam@86
|
22532 fi
|
cannam@86
|
22533 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
|
cannam@86
|
22534 echo "${ECHO_T}$acl_cv_rpath" >&6
|
cannam@86
|
22535 wl="$acl_cv_wl"
|
cannam@86
|
22536 libext="$acl_cv_libext"
|
cannam@86
|
22537 shlibext="$acl_cv_shlibext"
|
cannam@86
|
22538 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
|
cannam@86
|
22539 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
|
cannam@86
|
22540 hardcode_direct="$acl_cv_hardcode_direct"
|
cannam@86
|
22541 hardcode_minus_L="$acl_cv_hardcode_minus_L"
|
cannam@86
|
22542 # Check whether --enable-rpath or --disable-rpath was given.
|
cannam@86
|
22543 if test "${enable_rpath+set}" = set; then
|
cannam@86
|
22544 enableval="$enable_rpath"
|
cannam@86
|
22545 :
|
cannam@86
|
22546 else
|
cannam@86
|
22547 enable_rpath=yes
|
cannam@86
|
22548 fi;
|
cannam@86
|
22549
|
cannam@86
|
22550
|
cannam@86
|
22551
|
cannam@86
|
22552
|
cannam@86
|
22553
|
cannam@86
|
22554
|
cannam@86
|
22555
|
cannam@86
|
22556 use_additional=yes
|
cannam@86
|
22557
|
cannam@86
|
22558 acl_save_prefix="$prefix"
|
cannam@86
|
22559 prefix="$acl_final_prefix"
|
cannam@86
|
22560 acl_save_exec_prefix="$exec_prefix"
|
cannam@86
|
22561 exec_prefix="$acl_final_exec_prefix"
|
cannam@86
|
22562
|
cannam@86
|
22563 eval additional_includedir=\"$includedir\"
|
cannam@86
|
22564 eval additional_libdir=\"$libdir\"
|
cannam@86
|
22565
|
cannam@86
|
22566 exec_prefix="$acl_save_exec_prefix"
|
cannam@86
|
22567 prefix="$acl_save_prefix"
|
cannam@86
|
22568
|
cannam@86
|
22569
|
cannam@86
|
22570 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
|
cannam@86
|
22571 if test "${with_libiconv_prefix+set}" = set; then
|
cannam@86
|
22572 withval="$with_libiconv_prefix"
|
cannam@86
|
22573
|
cannam@86
|
22574 if test "X$withval" = "Xno"; then
|
cannam@86
|
22575 use_additional=no
|
cannam@86
|
22576 else
|
cannam@86
|
22577 if test "X$withval" = "X"; then
|
cannam@86
|
22578
|
cannam@86
|
22579 acl_save_prefix="$prefix"
|
cannam@86
|
22580 prefix="$acl_final_prefix"
|
cannam@86
|
22581 acl_save_exec_prefix="$exec_prefix"
|
cannam@86
|
22582 exec_prefix="$acl_final_exec_prefix"
|
cannam@86
|
22583
|
cannam@86
|
22584 eval additional_includedir=\"$includedir\"
|
cannam@86
|
22585 eval additional_libdir=\"$libdir\"
|
cannam@86
|
22586
|
cannam@86
|
22587 exec_prefix="$acl_save_exec_prefix"
|
cannam@86
|
22588 prefix="$acl_save_prefix"
|
cannam@86
|
22589
|
cannam@86
|
22590 else
|
cannam@86
|
22591 additional_includedir="$withval/include"
|
cannam@86
|
22592 additional_libdir="$withval/lib"
|
cannam@86
|
22593 fi
|
cannam@86
|
22594 fi
|
cannam@86
|
22595
|
cannam@86
|
22596 fi;
|
cannam@86
|
22597 LIBICONV=
|
cannam@86
|
22598 LTLIBICONV=
|
cannam@86
|
22599 INCICONV=
|
cannam@86
|
22600 rpathdirs=
|
cannam@86
|
22601 ltrpathdirs=
|
cannam@86
|
22602 names_already_handled=
|
cannam@86
|
22603 names_next_round='iconv '
|
cannam@86
|
22604 while test -n "$names_next_round"; do
|
cannam@86
|
22605 names_this_round="$names_next_round"
|
cannam@86
|
22606 names_next_round=
|
cannam@86
|
22607 for name in $names_this_round; do
|
cannam@86
|
22608 already_handled=
|
cannam@86
|
22609 for n in $names_already_handled; do
|
cannam@86
|
22610 if test "$n" = "$name"; then
|
cannam@86
|
22611 already_handled=yes
|
cannam@86
|
22612 break
|
cannam@86
|
22613 fi
|
cannam@86
|
22614 done
|
cannam@86
|
22615 if test -z "$already_handled"; then
|
cannam@86
|
22616 names_already_handled="$names_already_handled $name"
|
cannam@86
|
22617 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
|
cannam@86
|
22618 eval value=\"\$HAVE_LIB$uppername\"
|
cannam@86
|
22619 if test -n "$value"; then
|
cannam@86
|
22620 if test "$value" = yes; then
|
cannam@86
|
22621 eval value=\"\$LIB$uppername\"
|
cannam@86
|
22622 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
|
cannam@86
|
22623 eval value=\"\$LTLIB$uppername\"
|
cannam@86
|
22624 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
|
cannam@86
|
22625 else
|
cannam@86
|
22626 :
|
cannam@86
|
22627 fi
|
cannam@86
|
22628 else
|
cannam@86
|
22629 found_dir=
|
cannam@86
|
22630 found_la=
|
cannam@86
|
22631 found_so=
|
cannam@86
|
22632 found_a=
|
cannam@86
|
22633 if test $use_additional = yes; then
|
cannam@86
|
22634 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
|
cannam@86
|
22635 found_dir="$additional_libdir"
|
cannam@86
|
22636 found_so="$additional_libdir/lib$name.$shlibext"
|
cannam@86
|
22637 if test -f "$additional_libdir/lib$name.la"; then
|
cannam@86
|
22638 found_la="$additional_libdir/lib$name.la"
|
cannam@86
|
22639 fi
|
cannam@86
|
22640 else
|
cannam@86
|
22641 if test -f "$additional_libdir/lib$name.$libext"; then
|
cannam@86
|
22642 found_dir="$additional_libdir"
|
cannam@86
|
22643 found_a="$additional_libdir/lib$name.$libext"
|
cannam@86
|
22644 if test -f "$additional_libdir/lib$name.la"; then
|
cannam@86
|
22645 found_la="$additional_libdir/lib$name.la"
|
cannam@86
|
22646 fi
|
cannam@86
|
22647 fi
|
cannam@86
|
22648 fi
|
cannam@86
|
22649 fi
|
cannam@86
|
22650 if test "X$found_dir" = "X"; then
|
cannam@86
|
22651 for x in $LDFLAGS $LTLIBICONV; do
|
cannam@86
|
22652
|
cannam@86
|
22653 acl_save_prefix="$prefix"
|
cannam@86
|
22654 prefix="$acl_final_prefix"
|
cannam@86
|
22655 acl_save_exec_prefix="$exec_prefix"
|
cannam@86
|
22656 exec_prefix="$acl_final_exec_prefix"
|
cannam@86
|
22657 eval x=\"$x\"
|
cannam@86
|
22658 exec_prefix="$acl_save_exec_prefix"
|
cannam@86
|
22659 prefix="$acl_save_prefix"
|
cannam@86
|
22660
|
cannam@86
|
22661 case "$x" in
|
cannam@86
|
22662 -L*)
|
cannam@86
|
22663 dir=`echo "X$x" | sed -e 's/^X-L//'`
|
cannam@86
|
22664 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
|
cannam@86
|
22665 found_dir="$dir"
|
cannam@86
|
22666 found_so="$dir/lib$name.$shlibext"
|
cannam@86
|
22667 if test -f "$dir/lib$name.la"; then
|
cannam@86
|
22668 found_la="$dir/lib$name.la"
|
cannam@86
|
22669 fi
|
cannam@86
|
22670 else
|
cannam@86
|
22671 if test -f "$dir/lib$name.$libext"; then
|
cannam@86
|
22672 found_dir="$dir"
|
cannam@86
|
22673 found_a="$dir/lib$name.$libext"
|
cannam@86
|
22674 if test -f "$dir/lib$name.la"; then
|
cannam@86
|
22675 found_la="$dir/lib$name.la"
|
cannam@86
|
22676 fi
|
cannam@86
|
22677 fi
|
cannam@86
|
22678 fi
|
cannam@86
|
22679 ;;
|
cannam@86
|
22680 esac
|
cannam@86
|
22681 if test "X$found_dir" != "X"; then
|
cannam@86
|
22682 break
|
cannam@86
|
22683 fi
|
cannam@86
|
22684 done
|
cannam@86
|
22685 fi
|
cannam@86
|
22686 if test "X$found_dir" != "X"; then
|
cannam@86
|
22687 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
|
cannam@86
|
22688 if test "X$found_so" != "X"; then
|
cannam@86
|
22689 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
|
cannam@86
|
22690 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
|
cannam@86
|
22691 else
|
cannam@86
|
22692 haveit=
|
cannam@86
|
22693 for x in $ltrpathdirs; do
|
cannam@86
|
22694 if test "X$x" = "X$found_dir"; then
|
cannam@86
|
22695 haveit=yes
|
cannam@86
|
22696 break
|
cannam@86
|
22697 fi
|
cannam@86
|
22698 done
|
cannam@86
|
22699 if test -z "$haveit"; then
|
cannam@86
|
22700 ltrpathdirs="$ltrpathdirs $found_dir"
|
cannam@86
|
22701 fi
|
cannam@86
|
22702 if test "$hardcode_direct" = yes; then
|
cannam@86
|
22703 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
|
cannam@86
|
22704 else
|
cannam@86
|
22705 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
|
cannam@86
|
22706 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
|
cannam@86
|
22707 haveit=
|
cannam@86
|
22708 for x in $rpathdirs; do
|
cannam@86
|
22709 if test "X$x" = "X$found_dir"; then
|
cannam@86
|
22710 haveit=yes
|
cannam@86
|
22711 break
|
cannam@86
|
22712 fi
|
cannam@86
|
22713 done
|
cannam@86
|
22714 if test -z "$haveit"; then
|
cannam@86
|
22715 rpathdirs="$rpathdirs $found_dir"
|
cannam@86
|
22716 fi
|
cannam@86
|
22717 else
|
cannam@86
|
22718 haveit=
|
cannam@86
|
22719 for x in $LDFLAGS $LIBICONV; do
|
cannam@86
|
22720
|
cannam@86
|
22721 acl_save_prefix="$prefix"
|
cannam@86
|
22722 prefix="$acl_final_prefix"
|
cannam@86
|
22723 acl_save_exec_prefix="$exec_prefix"
|
cannam@86
|
22724 exec_prefix="$acl_final_exec_prefix"
|
cannam@86
|
22725 eval x=\"$x\"
|
cannam@86
|
22726 exec_prefix="$acl_save_exec_prefix"
|
cannam@86
|
22727 prefix="$acl_save_prefix"
|
cannam@86
|
22728
|
cannam@86
|
22729 if test "X$x" = "X-L$found_dir"; then
|
cannam@86
|
22730 haveit=yes
|
cannam@86
|
22731 break
|
cannam@86
|
22732 fi
|
cannam@86
|
22733 done
|
cannam@86
|
22734 if test -z "$haveit"; then
|
cannam@86
|
22735 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
|
cannam@86
|
22736 fi
|
cannam@86
|
22737 if test "$hardcode_minus_L" != no; then
|
cannam@86
|
22738 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
|
cannam@86
|
22739 else
|
cannam@86
|
22740 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
|
cannam@86
|
22741 fi
|
cannam@86
|
22742 fi
|
cannam@86
|
22743 fi
|
cannam@86
|
22744 fi
|
cannam@86
|
22745 else
|
cannam@86
|
22746 if test "X$found_a" != "X"; then
|
cannam@86
|
22747 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
|
cannam@86
|
22748 else
|
cannam@86
|
22749 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
|
cannam@86
|
22750 fi
|
cannam@86
|
22751 fi
|
cannam@86
|
22752 additional_includedir=
|
cannam@86
|
22753 case "$found_dir" in
|
cannam@86
|
22754 */lib | */lib/)
|
cannam@86
|
22755 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
|
cannam@86
|
22756 additional_includedir="$basedir/include"
|
cannam@86
|
22757 ;;
|
cannam@86
|
22758 esac
|
cannam@86
|
22759 if test "X$additional_includedir" != "X"; then
|
cannam@86
|
22760 if test "X$additional_includedir" != "X/usr/include"; then
|
cannam@86
|
22761 haveit=
|
cannam@86
|
22762 if test "X$additional_includedir" = "X/usr/local/include"; then
|
cannam@86
|
22763 if test -n "$GCC"; then
|
cannam@86
|
22764 case $host_os in
|
cannam@86
|
22765 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
|
cannam@86
|
22766 esac
|
cannam@86
|
22767 fi
|
cannam@86
|
22768 fi
|
cannam@86
|
22769 if test -z "$haveit"; then
|
cannam@86
|
22770 for x in $CPPFLAGS $INCICONV; do
|
cannam@86
|
22771
|
cannam@86
|
22772 acl_save_prefix="$prefix"
|
cannam@86
|
22773 prefix="$acl_final_prefix"
|
cannam@86
|
22774 acl_save_exec_prefix="$exec_prefix"
|
cannam@86
|
22775 exec_prefix="$acl_final_exec_prefix"
|
cannam@86
|
22776 eval x=\"$x\"
|
cannam@86
|
22777 exec_prefix="$acl_save_exec_prefix"
|
cannam@86
|
22778 prefix="$acl_save_prefix"
|
cannam@86
|
22779
|
cannam@86
|
22780 if test "X$x" = "X-I$additional_includedir"; then
|
cannam@86
|
22781 haveit=yes
|
cannam@86
|
22782 break
|
cannam@86
|
22783 fi
|
cannam@86
|
22784 done
|
cannam@86
|
22785 if test -z "$haveit"; then
|
cannam@86
|
22786 if test -d "$additional_includedir"; then
|
cannam@86
|
22787 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
|
cannam@86
|
22788 fi
|
cannam@86
|
22789 fi
|
cannam@86
|
22790 fi
|
cannam@86
|
22791 fi
|
cannam@86
|
22792 fi
|
cannam@86
|
22793 if test -n "$found_la"; then
|
cannam@86
|
22794 save_libdir="$libdir"
|
cannam@86
|
22795 case "$found_la" in
|
cannam@86
|
22796 */* | *\\*) . "$found_la" ;;
|
cannam@86
|
22797 *) . "./$found_la" ;;
|
cannam@86
|
22798 esac
|
cannam@86
|
22799 libdir="$save_libdir"
|
cannam@86
|
22800 for dep in $dependency_libs; do
|
cannam@86
|
22801 case "$dep" in
|
cannam@86
|
22802 -L*)
|
cannam@86
|
22803 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
|
cannam@86
|
22804 if test "X$additional_libdir" != "X/usr/lib"; then
|
cannam@86
|
22805 haveit=
|
cannam@86
|
22806 if test "X$additional_libdir" = "X/usr/local/lib"; then
|
cannam@86
|
22807 if test -n "$GCC"; then
|
cannam@86
|
22808 case $host_os in
|
cannam@86
|
22809 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
|
cannam@86
|
22810 esac
|
cannam@86
|
22811 fi
|
cannam@86
|
22812 fi
|
cannam@86
|
22813 if test -z "$haveit"; then
|
cannam@86
|
22814 haveit=
|
cannam@86
|
22815 for x in $LDFLAGS $LIBICONV; do
|
cannam@86
|
22816
|
cannam@86
|
22817 acl_save_prefix="$prefix"
|
cannam@86
|
22818 prefix="$acl_final_prefix"
|
cannam@86
|
22819 acl_save_exec_prefix="$exec_prefix"
|
cannam@86
|
22820 exec_prefix="$acl_final_exec_prefix"
|
cannam@86
|
22821 eval x=\"$x\"
|
cannam@86
|
22822 exec_prefix="$acl_save_exec_prefix"
|
cannam@86
|
22823 prefix="$acl_save_prefix"
|
cannam@86
|
22824
|
cannam@86
|
22825 if test "X$x" = "X-L$additional_libdir"; then
|
cannam@86
|
22826 haveit=yes
|
cannam@86
|
22827 break
|
cannam@86
|
22828 fi
|
cannam@86
|
22829 done
|
cannam@86
|
22830 if test -z "$haveit"; then
|
cannam@86
|
22831 if test -d "$additional_libdir"; then
|
cannam@86
|
22832 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
|
cannam@86
|
22833 fi
|
cannam@86
|
22834 fi
|
cannam@86
|
22835 haveit=
|
cannam@86
|
22836 for x in $LDFLAGS $LTLIBICONV; do
|
cannam@86
|
22837
|
cannam@86
|
22838 acl_save_prefix="$prefix"
|
cannam@86
|
22839 prefix="$acl_final_prefix"
|
cannam@86
|
22840 acl_save_exec_prefix="$exec_prefix"
|
cannam@86
|
22841 exec_prefix="$acl_final_exec_prefix"
|
cannam@86
|
22842 eval x=\"$x\"
|
cannam@86
|
22843 exec_prefix="$acl_save_exec_prefix"
|
cannam@86
|
22844 prefix="$acl_save_prefix"
|
cannam@86
|
22845
|
cannam@86
|
22846 if test "X$x" = "X-L$additional_libdir"; then
|
cannam@86
|
22847 haveit=yes
|
cannam@86
|
22848 break
|
cannam@86
|
22849 fi
|
cannam@86
|
22850 done
|
cannam@86
|
22851 if test -z "$haveit"; then
|
cannam@86
|
22852 if test -d "$additional_libdir"; then
|
cannam@86
|
22853 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
|
cannam@86
|
22854 fi
|
cannam@86
|
22855 fi
|
cannam@86
|
22856 fi
|
cannam@86
|
22857 fi
|
cannam@86
|
22858 ;;
|
cannam@86
|
22859 -R*)
|
cannam@86
|
22860 dir=`echo "X$dep" | sed -e 's/^X-R//'`
|
cannam@86
|
22861 if test "$enable_rpath" != no; then
|
cannam@86
|
22862 haveit=
|
cannam@86
|
22863 for x in $rpathdirs; do
|
cannam@86
|
22864 if test "X$x" = "X$dir"; then
|
cannam@86
|
22865 haveit=yes
|
cannam@86
|
22866 break
|
cannam@86
|
22867 fi
|
cannam@86
|
22868 done
|
cannam@86
|
22869 if test -z "$haveit"; then
|
cannam@86
|
22870 rpathdirs="$rpathdirs $dir"
|
cannam@86
|
22871 fi
|
cannam@86
|
22872 haveit=
|
cannam@86
|
22873 for x in $ltrpathdirs; do
|
cannam@86
|
22874 if test "X$x" = "X$dir"; then
|
cannam@86
|
22875 haveit=yes
|
cannam@86
|
22876 break
|
cannam@86
|
22877 fi
|
cannam@86
|
22878 done
|
cannam@86
|
22879 if test -z "$haveit"; then
|
cannam@86
|
22880 ltrpathdirs="$ltrpathdirs $dir"
|
cannam@86
|
22881 fi
|
cannam@86
|
22882 fi
|
cannam@86
|
22883 ;;
|
cannam@86
|
22884 -l*)
|
cannam@86
|
22885 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
|
cannam@86
|
22886 ;;
|
cannam@86
|
22887 *.la)
|
cannam@86
|
22888 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
|
cannam@86
|
22889 ;;
|
cannam@86
|
22890 *)
|
cannam@86
|
22891 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
|
cannam@86
|
22892 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
|
cannam@86
|
22893 ;;
|
cannam@86
|
22894 esac
|
cannam@86
|
22895 done
|
cannam@86
|
22896 fi
|
cannam@86
|
22897 else
|
cannam@86
|
22898 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
|
cannam@86
|
22899 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
|
cannam@86
|
22900 fi
|
cannam@86
|
22901 fi
|
cannam@86
|
22902 fi
|
cannam@86
|
22903 done
|
cannam@86
|
22904 done
|
cannam@86
|
22905 if test "X$rpathdirs" != "X"; then
|
cannam@86
|
22906 if test -n "$hardcode_libdir_separator"; then
|
cannam@86
|
22907 alldirs=
|
cannam@86
|
22908 for found_dir in $rpathdirs; do
|
cannam@86
|
22909 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
|
cannam@86
|
22910 done
|
cannam@86
|
22911 acl_save_libdir="$libdir"
|
cannam@86
|
22912 libdir="$alldirs"
|
cannam@86
|
22913 eval flag=\"$hardcode_libdir_flag_spec\"
|
cannam@86
|
22914 libdir="$acl_save_libdir"
|
cannam@86
|
22915 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
|
cannam@86
|
22916 else
|
cannam@86
|
22917 for found_dir in $rpathdirs; do
|
cannam@86
|
22918 acl_save_libdir="$libdir"
|
cannam@86
|
22919 libdir="$found_dir"
|
cannam@86
|
22920 eval flag=\"$hardcode_libdir_flag_spec\"
|
cannam@86
|
22921 libdir="$acl_save_libdir"
|
cannam@86
|
22922 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
|
cannam@86
|
22923 done
|
cannam@86
|
22924 fi
|
cannam@86
|
22925 fi
|
cannam@86
|
22926 if test "X$ltrpathdirs" != "X"; then
|
cannam@86
|
22927 for found_dir in $ltrpathdirs; do
|
cannam@86
|
22928 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
|
cannam@86
|
22929 done
|
cannam@86
|
22930 fi
|
cannam@86
|
22931
|
cannam@86
|
22932
|
cannam@86
|
22933
|
cannam@86
|
22934
|
cannam@86
|
22935
|
cannam@86
|
22936
|
cannam@86
|
22937
|
cannam@86
|
22938 am_save_CPPFLAGS="$CPPFLAGS"
|
cannam@86
|
22939
|
cannam@86
|
22940 for element in $INCICONV; do
|
cannam@86
|
22941 haveit=
|
cannam@86
|
22942 for x in $CPPFLAGS; do
|
cannam@86
|
22943
|
cannam@86
|
22944 acl_save_prefix="$prefix"
|
cannam@86
|
22945 prefix="$acl_final_prefix"
|
cannam@86
|
22946 acl_save_exec_prefix="$exec_prefix"
|
cannam@86
|
22947 exec_prefix="$acl_final_exec_prefix"
|
cannam@86
|
22948 eval x=\"$x\"
|
cannam@86
|
22949 exec_prefix="$acl_save_exec_prefix"
|
cannam@86
|
22950 prefix="$acl_save_prefix"
|
cannam@86
|
22951
|
cannam@86
|
22952 if test "X$x" = "X$element"; then
|
cannam@86
|
22953 haveit=yes
|
cannam@86
|
22954 break
|
cannam@86
|
22955 fi
|
cannam@86
|
22956 done
|
cannam@86
|
22957 if test -z "$haveit"; then
|
cannam@86
|
22958 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
|
cannam@86
|
22959 fi
|
cannam@86
|
22960 done
|
cannam@86
|
22961
|
cannam@86
|
22962
|
cannam@86
|
22963 echo "$as_me:$LINENO: checking for iconv" >&5
|
cannam@86
|
22964 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
|
cannam@86
|
22965 if test "${am_cv_func_iconv+set}" = set; then
|
cannam@86
|
22966 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
22967 else
|
cannam@86
|
22968
|
cannam@86
|
22969 am_cv_func_iconv="no, consider installing GNU libiconv"
|
cannam@86
|
22970 am_cv_lib_iconv=no
|
cannam@86
|
22971 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
22972 /* confdefs.h. */
|
cannam@86
|
22973 _ACEOF
|
cannam@86
|
22974 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
22975 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
22976 /* end confdefs.h. */
|
cannam@86
|
22977 #include <stdlib.h>
|
cannam@86
|
22978 #include <iconv.h>
|
cannam@86
|
22979 int
|
cannam@86
|
22980 main ()
|
cannam@86
|
22981 {
|
cannam@86
|
22982 iconv_t cd = iconv_open("","");
|
cannam@86
|
22983 iconv(cd,NULL,NULL,NULL,NULL);
|
cannam@86
|
22984 iconv_close(cd);
|
cannam@86
|
22985 ;
|
cannam@86
|
22986 return 0;
|
cannam@86
|
22987 }
|
cannam@86
|
22988 _ACEOF
|
cannam@86
|
22989 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@86
|
22990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@86
|
22991 (eval $ac_link) 2>conftest.er1
|
cannam@86
|
22992 ac_status=$?
|
cannam@86
|
22993 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
22994 rm -f conftest.er1
|
cannam@86
|
22995 cat conftest.err >&5
|
cannam@86
|
22996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
22997 (exit $ac_status); } &&
|
cannam@86
|
22998 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
22999 || test ! -s conftest.err'
|
cannam@86
|
23000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
23001 (eval $ac_try) 2>&5
|
cannam@86
|
23002 ac_status=$?
|
cannam@86
|
23003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
23004 (exit $ac_status); }; } &&
|
cannam@86
|
23005 { ac_try='test -s conftest$ac_exeext'
|
cannam@86
|
23006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
23007 (eval $ac_try) 2>&5
|
cannam@86
|
23008 ac_status=$?
|
cannam@86
|
23009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
23010 (exit $ac_status); }; }; then
|
cannam@86
|
23011 am_cv_func_iconv=yes
|
cannam@86
|
23012 else
|
cannam@86
|
23013 echo "$as_me: failed program was:" >&5
|
cannam@86
|
23014 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
23015
|
cannam@86
|
23016 fi
|
cannam@86
|
23017 rm -f conftest.err conftest.$ac_objext \
|
cannam@86
|
23018 conftest$ac_exeext conftest.$ac_ext
|
cannam@86
|
23019 if test "$am_cv_func_iconv" != yes; then
|
cannam@86
|
23020 am_save_LIBS="$LIBS"
|
cannam@86
|
23021 LIBS="$LIBS $LIBICONV"
|
cannam@86
|
23022 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
23023 /* confdefs.h. */
|
cannam@86
|
23024 _ACEOF
|
cannam@86
|
23025 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
23026 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
23027 /* end confdefs.h. */
|
cannam@86
|
23028 #include <stdlib.h>
|
cannam@86
|
23029 #include <iconv.h>
|
cannam@86
|
23030 int
|
cannam@86
|
23031 main ()
|
cannam@86
|
23032 {
|
cannam@86
|
23033 iconv_t cd = iconv_open("","");
|
cannam@86
|
23034 iconv(cd,NULL,NULL,NULL,NULL);
|
cannam@86
|
23035 iconv_close(cd);
|
cannam@86
|
23036 ;
|
cannam@86
|
23037 return 0;
|
cannam@86
|
23038 }
|
cannam@86
|
23039 _ACEOF
|
cannam@86
|
23040 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@86
|
23041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@86
|
23042 (eval $ac_link) 2>conftest.er1
|
cannam@86
|
23043 ac_status=$?
|
cannam@86
|
23044 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
23045 rm -f conftest.er1
|
cannam@86
|
23046 cat conftest.err >&5
|
cannam@86
|
23047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
23048 (exit $ac_status); } &&
|
cannam@86
|
23049 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
23050 || test ! -s conftest.err'
|
cannam@86
|
23051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
23052 (eval $ac_try) 2>&5
|
cannam@86
|
23053 ac_status=$?
|
cannam@86
|
23054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
23055 (exit $ac_status); }; } &&
|
cannam@86
|
23056 { ac_try='test -s conftest$ac_exeext'
|
cannam@86
|
23057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
23058 (eval $ac_try) 2>&5
|
cannam@86
|
23059 ac_status=$?
|
cannam@86
|
23060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
23061 (exit $ac_status); }; }; then
|
cannam@86
|
23062 am_cv_lib_iconv=yes
|
cannam@86
|
23063 am_cv_func_iconv=yes
|
cannam@86
|
23064 else
|
cannam@86
|
23065 echo "$as_me: failed program was:" >&5
|
cannam@86
|
23066 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
23067
|
cannam@86
|
23068 fi
|
cannam@86
|
23069 rm -f conftest.err conftest.$ac_objext \
|
cannam@86
|
23070 conftest$ac_exeext conftest.$ac_ext
|
cannam@86
|
23071 LIBS="$am_save_LIBS"
|
cannam@86
|
23072 fi
|
cannam@86
|
23073
|
cannam@86
|
23074 fi
|
cannam@86
|
23075 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
|
cannam@86
|
23076 echo "${ECHO_T}$am_cv_func_iconv" >&6
|
cannam@86
|
23077 if test "$am_cv_func_iconv" = yes; then
|
cannam@86
|
23078
|
cannam@86
|
23079 cat >>confdefs.h <<\_ACEOF
|
cannam@86
|
23080 #define HAVE_ICONV 1
|
cannam@86
|
23081 _ACEOF
|
cannam@86
|
23082
|
cannam@86
|
23083 fi
|
cannam@86
|
23084 if test "$am_cv_lib_iconv" = yes; then
|
cannam@86
|
23085 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
|
cannam@86
|
23086 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
|
cannam@86
|
23087 echo "$as_me:$LINENO: result: $LIBICONV" >&5
|
cannam@86
|
23088 echo "${ECHO_T}$LIBICONV" >&6
|
cannam@86
|
23089 else
|
cannam@86
|
23090 CPPFLAGS="$am_save_CPPFLAGS"
|
cannam@86
|
23091 LIBICONV=
|
cannam@86
|
23092 LTLIBICONV=
|
cannam@86
|
23093 fi
|
cannam@86
|
23094
|
cannam@86
|
23095
|
cannam@86
|
23096
|
cannam@86
|
23097 if test "$am_cv_func_iconv" = yes; then
|
cannam@86
|
23098 echo "$as_me:$LINENO: checking for iconv declaration" >&5
|
cannam@86
|
23099 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
|
cannam@86
|
23100 if test "${am_cv_proto_iconv+set}" = set; then
|
cannam@86
|
23101 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
23102 else
|
cannam@86
|
23103
|
cannam@86
|
23104 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
23105 /* confdefs.h. */
|
cannam@86
|
23106 _ACEOF
|
cannam@86
|
23107 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
23108 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
23109 /* end confdefs.h. */
|
cannam@86
|
23110
|
cannam@86
|
23111 #include <stdlib.h>
|
cannam@86
|
23112 #include <iconv.h>
|
cannam@86
|
23113 extern
|
cannam@86
|
23114 #ifdef __cplusplus
|
cannam@86
|
23115 "C"
|
cannam@86
|
23116 #endif
|
cannam@86
|
23117 #if defined(__STDC__) || defined(__cplusplus)
|
cannam@86
|
23118 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
|
cannam@86
|
23119 #else
|
cannam@86
|
23120 size_t iconv();
|
cannam@86
|
23121 #endif
|
cannam@86
|
23122
|
cannam@86
|
23123 int
|
cannam@86
|
23124 main ()
|
cannam@86
|
23125 {
|
cannam@86
|
23126
|
cannam@86
|
23127 ;
|
cannam@86
|
23128 return 0;
|
cannam@86
|
23129 }
|
cannam@86
|
23130 _ACEOF
|
cannam@86
|
23131 rm -f conftest.$ac_objext
|
cannam@86
|
23132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
cannam@86
|
23133 (eval $ac_compile) 2>conftest.er1
|
cannam@86
|
23134 ac_status=$?
|
cannam@86
|
23135 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
23136 rm -f conftest.er1
|
cannam@86
|
23137 cat conftest.err >&5
|
cannam@86
|
23138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
23139 (exit $ac_status); } &&
|
cannam@86
|
23140 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
23141 || test ! -s conftest.err'
|
cannam@86
|
23142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
23143 (eval $ac_try) 2>&5
|
cannam@86
|
23144 ac_status=$?
|
cannam@86
|
23145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
23146 (exit $ac_status); }; } &&
|
cannam@86
|
23147 { ac_try='test -s conftest.$ac_objext'
|
cannam@86
|
23148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
23149 (eval $ac_try) 2>&5
|
cannam@86
|
23150 ac_status=$?
|
cannam@86
|
23151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
23152 (exit $ac_status); }; }; then
|
cannam@86
|
23153 am_cv_proto_iconv_arg1=""
|
cannam@86
|
23154 else
|
cannam@86
|
23155 echo "$as_me: failed program was:" >&5
|
cannam@86
|
23156 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
23157
|
cannam@86
|
23158 am_cv_proto_iconv_arg1="const"
|
cannam@86
|
23159 fi
|
cannam@86
|
23160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@86
|
23161 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
|
cannam@86
|
23162 fi
|
cannam@86
|
23163
|
cannam@86
|
23164 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
|
cannam@86
|
23165 echo "$as_me:$LINENO: result: ${ac_t:-
|
cannam@86
|
23166 }$am_cv_proto_iconv" >&5
|
cannam@86
|
23167 echo "${ECHO_T}${ac_t:-
|
cannam@86
|
23168 }$am_cv_proto_iconv" >&6
|
cannam@86
|
23169
|
cannam@86
|
23170 cat >>confdefs.h <<_ACEOF
|
cannam@86
|
23171 #define ICONV_CONST $am_cv_proto_iconv_arg1
|
cannam@86
|
23172 _ACEOF
|
cannam@86
|
23173
|
cannam@86
|
23174 fi
|
cannam@86
|
23175
|
cannam@86
|
23176
|
cannam@86
|
23177 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
|
cannam@86
|
23178 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
|
cannam@86
|
23179 if test "${am_cv_langinfo_codeset+set}" = set; then
|
cannam@86
|
23180 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
23181 else
|
cannam@86
|
23182 cat >conftest.$ac_ext <<_ACEOF
|
cannam@86
|
23183 /* confdefs.h. */
|
cannam@86
|
23184 _ACEOF
|
cannam@86
|
23185 cat confdefs.h >>conftest.$ac_ext
|
cannam@86
|
23186 cat >>conftest.$ac_ext <<_ACEOF
|
cannam@86
|
23187 /* end confdefs.h. */
|
cannam@86
|
23188 #include <langinfo.h>
|
cannam@86
|
23189 int
|
cannam@86
|
23190 main ()
|
cannam@86
|
23191 {
|
cannam@86
|
23192 char* cs = nl_langinfo(CODESET);
|
cannam@86
|
23193 ;
|
cannam@86
|
23194 return 0;
|
cannam@86
|
23195 }
|
cannam@86
|
23196 _ACEOF
|
cannam@86
|
23197 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@86
|
23198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
cannam@86
|
23199 (eval $ac_link) 2>conftest.er1
|
cannam@86
|
23200 ac_status=$?
|
cannam@86
|
23201 grep -v '^ *+' conftest.er1 >conftest.err
|
cannam@86
|
23202 rm -f conftest.er1
|
cannam@86
|
23203 cat conftest.err >&5
|
cannam@86
|
23204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
23205 (exit $ac_status); } &&
|
cannam@86
|
23206 { ac_try='test -z "$ac_c_werror_flag"
|
cannam@86
|
23207 || test ! -s conftest.err'
|
cannam@86
|
23208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
23209 (eval $ac_try) 2>&5
|
cannam@86
|
23210 ac_status=$?
|
cannam@86
|
23211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
23212 (exit $ac_status); }; } &&
|
cannam@86
|
23213 { ac_try='test -s conftest$ac_exeext'
|
cannam@86
|
23214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
cannam@86
|
23215 (eval $ac_try) 2>&5
|
cannam@86
|
23216 ac_status=$?
|
cannam@86
|
23217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@86
|
23218 (exit $ac_status); }; }; then
|
cannam@86
|
23219 am_cv_langinfo_codeset=yes
|
cannam@86
|
23220 else
|
cannam@86
|
23221 echo "$as_me: failed program was:" >&5
|
cannam@86
|
23222 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@86
|
23223
|
cannam@86
|
23224 am_cv_langinfo_codeset=no
|
cannam@86
|
23225 fi
|
cannam@86
|
23226 rm -f conftest.err conftest.$ac_objext \
|
cannam@86
|
23227 conftest$ac_exeext conftest.$ac_ext
|
cannam@86
|
23228
|
cannam@86
|
23229 fi
|
cannam@86
|
23230 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
|
cannam@86
|
23231 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
|
cannam@86
|
23232 if test $am_cv_langinfo_codeset = yes; then
|
cannam@86
|
23233
|
cannam@86
|
23234 cat >>confdefs.h <<\_ACEOF
|
cannam@86
|
23235 #define HAVE_LANGINFO_CODESET 1
|
cannam@86
|
23236 _ACEOF
|
cannam@86
|
23237
|
cannam@86
|
23238 fi
|
cannam@86
|
23239
|
cannam@86
|
23240
|
cannam@86
|
23241 for ac_prog in docbook-to-man docbook2man
|
cannam@86
|
23242 do
|
cannam@86
|
23243 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
cannam@86
|
23244 set dummy $ac_prog; ac_word=$2
|
cannam@86
|
23245 echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@86
|
23246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
cannam@86
|
23247 if test "${ac_cv_prog_DOCBOOK_TO_MAN+set}" = set; then
|
cannam@86
|
23248 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
23249 else
|
cannam@86
|
23250 if test -n "$DOCBOOK_TO_MAN"; then
|
cannam@86
|
23251 ac_cv_prog_DOCBOOK_TO_MAN="$DOCBOOK_TO_MAN" # Let the user override the test.
|
cannam@86
|
23252 else
|
cannam@86
|
23253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@86
|
23254 for as_dir in $PATH
|
cannam@86
|
23255 do
|
cannam@86
|
23256 IFS=$as_save_IFS
|
cannam@86
|
23257 test -z "$as_dir" && as_dir=.
|
cannam@86
|
23258 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@86
|
23259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@86
|
23260 ac_cv_prog_DOCBOOK_TO_MAN="$ac_prog"
|
cannam@86
|
23261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@86
|
23262 break 2
|
cannam@86
|
23263 fi
|
cannam@86
|
23264 done
|
cannam@86
|
23265 done
|
cannam@86
|
23266
|
cannam@86
|
23267 fi
|
cannam@86
|
23268 fi
|
cannam@86
|
23269 DOCBOOK_TO_MAN=$ac_cv_prog_DOCBOOK_TO_MAN
|
cannam@86
|
23270 if test -n "$DOCBOOK_TO_MAN"; then
|
cannam@86
|
23271 echo "$as_me:$LINENO: result: $DOCBOOK_TO_MAN" >&5
|
cannam@86
|
23272 echo "${ECHO_T}$DOCBOOK_TO_MAN" >&6
|
cannam@86
|
23273 else
|
cannam@86
|
23274 echo "$as_me:$LINENO: result: no" >&5
|
cannam@86
|
23275 echo "${ECHO_T}no" >&6
|
cannam@86
|
23276 fi
|
cannam@86
|
23277
|
cannam@86
|
23278 test -n "$DOCBOOK_TO_MAN" && break
|
cannam@86
|
23279 done
|
cannam@86
|
23280
|
cannam@86
|
23281
|
cannam@86
|
23282
|
cannam@86
|
23283 if test -n "$DOCBOOK_TO_MAN"; then
|
cannam@86
|
23284 FLaC__HAS_DOCBOOK_TO_MAN_TRUE=
|
cannam@86
|
23285 FLaC__HAS_DOCBOOK_TO_MAN_FALSE='#'
|
cannam@86
|
23286 else
|
cannam@86
|
23287 FLaC__HAS_DOCBOOK_TO_MAN_TRUE='#'
|
cannam@86
|
23288 FLaC__HAS_DOCBOOK_TO_MAN_FALSE=
|
cannam@86
|
23289 fi
|
cannam@86
|
23290
|
cannam@86
|
23291 if test -n "$DOCBOOK_TO_MAN" ; then
|
cannam@86
|
23292 cat >>confdefs.h <<\_ACEOF
|
cannam@86
|
23293 #define FLAC__HAS_DOCBOOK_TO_MAN 1
|
cannam@86
|
23294 _ACEOF
|
cannam@86
|
23295
|
cannam@86
|
23296
|
cannam@86
|
23297
|
cannam@86
|
23298 fi
|
cannam@86
|
23299
|
cannam@86
|
23300 # only matters for x86
|
cannam@86
|
23301 for ac_prog in nasm
|
cannam@86
|
23302 do
|
cannam@86
|
23303 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
cannam@86
|
23304 set dummy $ac_prog; ac_word=$2
|
cannam@86
|
23305 echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@86
|
23306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
cannam@86
|
23307 if test "${ac_cv_prog_NASM+set}" = set; then
|
cannam@86
|
23308 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
23309 else
|
cannam@86
|
23310 if test -n "$NASM"; then
|
cannam@86
|
23311 ac_cv_prog_NASM="$NASM" # Let the user override the test.
|
cannam@86
|
23312 else
|
cannam@86
|
23313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@86
|
23314 for as_dir in $PATH
|
cannam@86
|
23315 do
|
cannam@86
|
23316 IFS=$as_save_IFS
|
cannam@86
|
23317 test -z "$as_dir" && as_dir=.
|
cannam@86
|
23318 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@86
|
23319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@86
|
23320 ac_cv_prog_NASM="$ac_prog"
|
cannam@86
|
23321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@86
|
23322 break 2
|
cannam@86
|
23323 fi
|
cannam@86
|
23324 done
|
cannam@86
|
23325 done
|
cannam@86
|
23326
|
cannam@86
|
23327 fi
|
cannam@86
|
23328 fi
|
cannam@86
|
23329 NASM=$ac_cv_prog_NASM
|
cannam@86
|
23330 if test -n "$NASM"; then
|
cannam@86
|
23331 echo "$as_me:$LINENO: result: $NASM" >&5
|
cannam@86
|
23332 echo "${ECHO_T}$NASM" >&6
|
cannam@86
|
23333 else
|
cannam@86
|
23334 echo "$as_me:$LINENO: result: no" >&5
|
cannam@86
|
23335 echo "${ECHO_T}no" >&6
|
cannam@86
|
23336 fi
|
cannam@86
|
23337
|
cannam@86
|
23338 test -n "$NASM" && break
|
cannam@86
|
23339 done
|
cannam@86
|
23340
|
cannam@86
|
23341
|
cannam@86
|
23342
|
cannam@86
|
23343 if test -n "$NASM"; then
|
cannam@86
|
23344 FLaC__HAS_NASM_TRUE=
|
cannam@86
|
23345 FLaC__HAS_NASM_FALSE='#'
|
cannam@86
|
23346 else
|
cannam@86
|
23347 FLaC__HAS_NASM_TRUE='#'
|
cannam@86
|
23348 FLaC__HAS_NASM_FALSE=
|
cannam@86
|
23349 fi
|
cannam@86
|
23350
|
cannam@86
|
23351 if test -n "$NASM" ; then
|
cannam@86
|
23352 cat >>confdefs.h <<\_ACEOF
|
cannam@86
|
23353 #define FLAC__HAS_NASM 1
|
cannam@86
|
23354 _ACEOF
|
cannam@86
|
23355
|
cannam@86
|
23356
|
cannam@86
|
23357
|
cannam@86
|
23358 fi
|
cannam@86
|
23359
|
cannam@86
|
23360 # only matters for PowerPC
|
cannam@86
|
23361 for ac_prog in as
|
cannam@86
|
23362 do
|
cannam@86
|
23363 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
cannam@86
|
23364 set dummy $ac_prog; ac_word=$2
|
cannam@86
|
23365 echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@86
|
23366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
cannam@86
|
23367 if test "${ac_cv_prog_AS+set}" = set; then
|
cannam@86
|
23368 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
23369 else
|
cannam@86
|
23370 if test -n "$AS"; then
|
cannam@86
|
23371 ac_cv_prog_AS="$AS" # Let the user override the test.
|
cannam@86
|
23372 else
|
cannam@86
|
23373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@86
|
23374 for as_dir in $PATH
|
cannam@86
|
23375 do
|
cannam@86
|
23376 IFS=$as_save_IFS
|
cannam@86
|
23377 test -z "$as_dir" && as_dir=.
|
cannam@86
|
23378 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@86
|
23379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@86
|
23380 ac_cv_prog_AS="$ac_prog"
|
cannam@86
|
23381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@86
|
23382 break 2
|
cannam@86
|
23383 fi
|
cannam@86
|
23384 done
|
cannam@86
|
23385 done
|
cannam@86
|
23386
|
cannam@86
|
23387 fi
|
cannam@86
|
23388 fi
|
cannam@86
|
23389 AS=$ac_cv_prog_AS
|
cannam@86
|
23390 if test -n "$AS"; then
|
cannam@86
|
23391 echo "$as_me:$LINENO: result: $AS" >&5
|
cannam@86
|
23392 echo "${ECHO_T}$AS" >&6
|
cannam@86
|
23393 else
|
cannam@86
|
23394 echo "$as_me:$LINENO: result: no" >&5
|
cannam@86
|
23395 echo "${ECHO_T}no" >&6
|
cannam@86
|
23396 fi
|
cannam@86
|
23397
|
cannam@86
|
23398 test -n "$AS" && break
|
cannam@86
|
23399 done
|
cannam@86
|
23400 test -n "$AS" || AS="as"
|
cannam@86
|
23401
|
cannam@86
|
23402 for ac_prog in gas
|
cannam@86
|
23403 do
|
cannam@86
|
23404 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
cannam@86
|
23405 set dummy $ac_prog; ac_word=$2
|
cannam@86
|
23406 echo "$as_me:$LINENO: checking for $ac_word" >&5
|
cannam@86
|
23407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
cannam@86
|
23408 if test "${ac_cv_prog_GAS+set}" = set; then
|
cannam@86
|
23409 echo $ECHO_N "(cached) $ECHO_C" >&6
|
cannam@86
|
23410 else
|
cannam@86
|
23411 if test -n "$GAS"; then
|
cannam@86
|
23412 ac_cv_prog_GAS="$GAS" # Let the user override the test.
|
cannam@86
|
23413 else
|
cannam@86
|
23414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@86
|
23415 for as_dir in $PATH
|
cannam@86
|
23416 do
|
cannam@86
|
23417 IFS=$as_save_IFS
|
cannam@86
|
23418 test -z "$as_dir" && as_dir=.
|
cannam@86
|
23419 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@86
|
23420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@86
|
23421 ac_cv_prog_GAS="$ac_prog"
|
cannam@86
|
23422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@86
|
23423 break 2
|
cannam@86
|
23424 fi
|
cannam@86
|
23425 done
|
cannam@86
|
23426 done
|
cannam@86
|
23427
|
cannam@86
|
23428 fi
|
cannam@86
|
23429 fi
|
cannam@86
|
23430 GAS=$ac_cv_prog_GAS
|
cannam@86
|
23431 if test -n "$GAS"; then
|
cannam@86
|
23432 echo "$as_me:$LINENO: result: $GAS" >&5
|
cannam@86
|
23433 echo "${ECHO_T}$GAS" >&6
|
cannam@86
|
23434 else
|
cannam@86
|
23435 echo "$as_me:$LINENO: result: no" >&5
|
cannam@86
|
23436 echo "${ECHO_T}no" >&6
|
cannam@86
|
23437 fi
|
cannam@86
|
23438
|
cannam@86
|
23439 test -n "$GAS" && break
|
cannam@86
|
23440 done
|
cannam@86
|
23441 test -n "$GAS" || GAS="gas"
|
cannam@86
|
23442
|
cannam@86
|
23443
|
cannam@86
|
23444 # try -v (apple as) and --version (gas) at the same time
|
cannam@86
|
23445 test "$AS" = "as" && as --version -v < /dev/null 2>&1 | grep Apple >/dev/null || AS=gas
|
cannam@86
|
23446
|
cannam@86
|
23447
|
cannam@86
|
23448
|
cannam@86
|
23449 if test "$AS" = "as"; then
|
cannam@86
|
23450 FLaC__HAS_AS_TRUE=
|
cannam@86
|
23451 FLaC__HAS_AS_FALSE='#'
|
cannam@86
|
23452 else
|
cannam@86
|
23453 FLaC__HAS_AS_TRUE='#'
|
cannam@86
|
23454 FLaC__HAS_AS_FALSE=
|
cannam@86
|
23455 fi
|
cannam@86
|
23456
|
cannam@86
|
23457
|
cannam@86
|
23458
|
cannam@86
|
23459 if test "$AS" = "gas"; then
|
cannam@86
|
23460 FLaC__HAS_GAS_TRUE=
|
cannam@86
|
23461 FLaC__HAS_GAS_FALSE='#'
|
cannam@86
|
23462 else
|
cannam@86
|
23463 FLaC__HAS_GAS_TRUE='#'
|
cannam@86
|
23464 FLaC__HAS_GAS_FALSE=
|
cannam@86
|
23465 fi
|
cannam@86
|
23466
|
cannam@86
|
23467 if test "$AS" = "as" ; then
|
cannam@86
|
23468 cat >>confdefs.h <<\_ACEOF
|
cannam@86
|
23469 #define FLAC__HAS_AS 1
|
cannam@86
|
23470 _ACEOF
|
cannam@86
|
23471
|
cannam@86
|
23472
|
cannam@86
|
23473
|
cannam@86
|
23474 fi
|
cannam@86
|
23475 if test "$AS" = "gas" ; then
|
cannam@86
|
23476 # funniest. macro. ever.
|
cannam@86
|
23477 cat >>confdefs.h <<\_ACEOF
|
cannam@86
|
23478 #define FLAC__HAS_GAS 1
|
cannam@86
|
23479 _ACEOF
|
cannam@86
|
23480
|
cannam@86
|
23481
|
cannam@86
|
23482
|
cannam@86
|
23483 fi
|
cannam@86
|
23484
|
cannam@86
|
23485 CPPFLAGS='-I$(top_builddir) -I$(srcdir)/include -I$(top_srcdir)/include'" $CPPFLAGS"
|
cannam@86
|
23486 if test "x$debug" = xtrue; then
|
cannam@86
|
23487 CPPFLAGS="-DDEBUG $CPPFLAGS"
|
cannam@86
|
23488 CFLAGS="-g $CFLAGS"
|
cannam@86
|
23489 else
|
cannam@86
|
23490 CPPFLAGS="-DNDEBUG $CPPFLAGS"
|
cannam@86
|
23491 if test "x$GCC" = xyes; then
|
cannam@86
|
23492 CPPFLAGS="-DFLaC__INLINE=__inline__ $CPPFLAGS"
|
cannam@86
|
23493 CFLAGS="-O3 -funroll-loops -finline-functions -Wall -W -Winline $CFLAGS"
|
cannam@86
|
23494 fi
|
cannam@86
|
23495 fi
|
cannam@86
|
23496
|
cannam@86
|
23497 #@@@
|
cannam@86
|
23498
|
cannam@86
|
23499
|
cannam@86
|
23500 if test "yes" = "no"; then
|
cannam@86
|
23501 FLaC__HAS_AS__TEMPORARILY_DISABLED_TRUE=
|
cannam@86
|
23502 FLaC__HAS_AS__TEMPORARILY_DISABLED_FALSE='#'
|
cannam@86
|
23503 else
|
cannam@86
|
23504 FLaC__HAS_AS__TEMPORARILY_DISABLED_TRUE='#'
|
cannam@86
|
23505 FLaC__HAS_AS__TEMPORARILY_DISABLED_FALSE=
|
cannam@86
|
23506 fi
|
cannam@86
|
23507
|
cannam@86
|
23508
|
cannam@86
|
23509
|
cannam@86
|
23510 if test "yes" = "no"; then
|
cannam@86
|
23511 FLaC__HAS_GAS__TEMPORARILY_DISABLED_TRUE=
|
cannam@86
|
23512 FLaC__HAS_GAS__TEMPORARILY_DISABLED_FALSE='#'
|
cannam@86
|
23513 else
|
cannam@86
|
23514 FLaC__HAS_GAS__TEMPORARILY_DISABLED_TRUE='#'
|
cannam@86
|
23515 FLaC__HAS_GAS__TEMPORARILY_DISABLED_FALSE=
|
cannam@86
|
23516 fi
|
cannam@86
|
23517
|
cannam@86
|
23518
|
cannam@86
|
23519 ac_config_files="$ac_config_files Makefile src/Makefile src/libFLAC/Makefile src/libFLAC/flac.pc src/libFLAC/ia32/Makefile src/libFLAC/ppc/Makefile src/libFLAC/ppc/as/Makefile src/libFLAC/ppc/gas/Makefile src/libFLAC/include/Makefile src/libFLAC/include/private/Makefile src/libFLAC/include/protected/Makefile src/libFLAC++/Makefile src/libFLAC++/flac++.pc src/flac/Makefile src/metaflac/Makefile src/monkeys_audio_utilities/Makefile src/monkeys_audio_utilities/flac_mac/Makefile src/monkeys_audio_utilities/flac_ren/Makefile src/plugin_common/Makefile src/plugin_winamp2/Makefile src/plugin_winamp2/include/Makefile src/plugin_winamp2/include/winamp2/Makefile src/plugin_xmms/Makefile src/share/Makefile src/share/getopt/Makefile src/share/grabbag/Makefile src/share/replaygain_analysis/Makefile src/share/replaygain_synthesis/Makefile src/share/replaygain_synthesis/include/Makefile src/share/replaygain_synthesis/include/private/Makefile src/share/utf8/Makefile src/test_grabbag/Makefile src/test_grabbag/cuesheet/Makefile src/test_grabbag/picture/Makefile src/test_libs_common/Makefile src/test_libFLAC/Makefile src/test_libFLAC++/Makefile src/test_seeking/Makefile src/test_streams/Makefile examples/Makefile examples/c/Makefile examples/c/decode/Makefile examples/c/decode/file/Makefile examples/c/encode/Makefile examples/c/encode/file/Makefile examples/cpp/Makefile examples/cpp/decode/Makefile examples/cpp/decode/file/Makefile examples/cpp/encode/Makefile examples/cpp/encode/file/Makefile include/Makefile include/FLAC/Makefile include/FLAC++/Makefile include/share/Makefile include/share/grabbag/Makefile include/test_libs_common/Makefile doc/Makefile doc/html/Makefile doc/html/images/Makefile doc/html/images/hw/Makefile doc/html/ru/Makefile m4/Makefile man/Makefile test/Makefile test/cuesheets/Makefile test/flac-to-flac-metadata-test-files/Makefile test/metaflac-test-files/Makefile test/pictures/Makefile build/Makefile obj/Makefile obj/debug/Makefile obj/debug/bin/Makefile obj/debug/lib/Makefile obj/release/Makefile obj/release/bin/Makefile obj/release/lib/Makefile"
|
cannam@86
|
23520
|
cannam@86
|
23521 cat >confcache <<\_ACEOF
|
cannam@86
|
23522 # This file is a shell script that caches the results of configure
|
cannam@86
|
23523 # tests run on this system so they can be shared between configure
|
cannam@86
|
23524 # scripts and configure runs, see configure's option --config-cache.
|
cannam@86
|
23525 # It is not useful on other systems. If it contains results you don't
|
cannam@86
|
23526 # want to keep, you may remove or edit it.
|
cannam@86
|
23527 #
|
cannam@86
|
23528 # config.status only pays attention to the cache file if you give it
|
cannam@86
|
23529 # the --recheck option to rerun configure.
|
cannam@86
|
23530 #
|
cannam@86
|
23531 # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
cannam@86
|
23532 # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
cannam@86
|
23533 # following values.
|
cannam@86
|
23534
|
cannam@86
|
23535 _ACEOF
|
cannam@86
|
23536
|
cannam@86
|
23537 # The following way of writing the cache mishandles newlines in values,
|
cannam@86
|
23538 # but we know of no workaround that is simple, portable, and efficient.
|
cannam@86
|
23539 # So, don't put newlines in cache variables' values.
|
cannam@86
|
23540 # Ultrix sh set writes to stderr and can't be redirected directly,
|
cannam@86
|
23541 # and sets the high bit in the cache file unless we assign to the vars.
|
cannam@86
|
23542 {
|
cannam@86
|
23543 (set) 2>&1 |
|
cannam@86
|
23544 case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
cannam@86
|
23545 *ac_space=\ *)
|
cannam@86
|
23546 # `set' does not quote correctly, so add quotes (double-quote
|
cannam@86
|
23547 # substitution turns \\\\ into \\, and sed turns \\ into \).
|
cannam@86
|
23548 sed -n \
|
cannam@86
|
23549 "s/'/'\\\\''/g;
|
cannam@86
|
23550 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
cannam@86
|
23551 ;;
|
cannam@86
|
23552 *)
|
cannam@86
|
23553 # `set' quotes correctly as required by POSIX, so do not add quotes.
|
cannam@86
|
23554 sed -n \
|
cannam@86
|
23555 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
cannam@86
|
23556 ;;
|
cannam@86
|
23557 esac;
|
cannam@86
|
23558 } |
|
cannam@86
|
23559 sed '
|
cannam@86
|
23560 t clear
|
cannam@86
|
23561 : clear
|
cannam@86
|
23562 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
cannam@86
|
23563 t end
|
cannam@86
|
23564 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
cannam@86
|
23565 : end' >>confcache
|
cannam@86
|
23566 if diff $cache_file confcache >/dev/null 2>&1; then :; else
|
cannam@86
|
23567 if test -w $cache_file; then
|
cannam@86
|
23568 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
|
cannam@86
|
23569 cat confcache >$cache_file
|
cannam@86
|
23570 else
|
cannam@86
|
23571 echo "not updating unwritable cache $cache_file"
|
cannam@86
|
23572 fi
|
cannam@86
|
23573 fi
|
cannam@86
|
23574 rm -f confcache
|
cannam@86
|
23575
|
cannam@86
|
23576 test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
cannam@86
|
23577 # Let make expand exec_prefix.
|
cannam@86
|
23578 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
cannam@86
|
23579
|
cannam@86
|
23580 # VPATH may cause trouble with some makes, so we remove $(srcdir),
|
cannam@86
|
23581 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
cannam@86
|
23582 # trailing colons and then remove the whole line if VPATH becomes empty
|
cannam@86
|
23583 # (actually we leave an empty line to preserve line numbers).
|
cannam@86
|
23584 if test "x$srcdir" = x.; then
|
cannam@86
|
23585 ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
cannam@86
|
23586 s/:*\$(srcdir):*/:/;
|
cannam@86
|
23587 s/:*\${srcdir}:*/:/;
|
cannam@86
|
23588 s/:*@srcdir@:*/:/;
|
cannam@86
|
23589 s/^\([^=]*=[ ]*\):*/\1/;
|
cannam@86
|
23590 s/:*$//;
|
cannam@86
|
23591 s/^[^=]*=[ ]*$//;
|
cannam@86
|
23592 }'
|
cannam@86
|
23593 fi
|
cannam@86
|
23594
|
cannam@86
|
23595 DEFS=-DHAVE_CONFIG_H
|
cannam@86
|
23596
|
cannam@86
|
23597 ac_libobjs=
|
cannam@86
|
23598 ac_ltlibobjs=
|
cannam@86
|
23599 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
cannam@86
|
23600 # 1. Remove the extension, and $U if already installed.
|
cannam@86
|
23601 ac_i=`echo "$ac_i" |
|
cannam@86
|
23602 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
|
cannam@86
|
23603 # 2. Add them.
|
cannam@86
|
23604 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
|
cannam@86
|
23605 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
|
cannam@86
|
23606 done
|
cannam@86
|
23607 LIBOBJS=$ac_libobjs
|
cannam@86
|
23608
|
cannam@86
|
23609 LTLIBOBJS=$ac_ltlibobjs
|
cannam@86
|
23610
|
cannam@86
|
23611
|
cannam@86
|
23612 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
|
cannam@86
|
23613 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
|
cannam@86
|
23614 Usually this means the macro was only invoked conditionally." >&5
|
cannam@86
|
23615 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
|
cannam@86
|
23616 Usually this means the macro was only invoked conditionally." >&2;}
|
cannam@86
|
23617 { (exit 1); exit 1; }; }
|
cannam@86
|
23618 fi
|
cannam@86
|
23619 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
|
cannam@86
|
23620 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
|
cannam@86
|
23621 Usually this means the macro was only invoked conditionally." >&5
|
cannam@86
|
23622 echo "$as_me: error: conditional \"AMDEP\" was never defined.
|
cannam@86
|
23623 Usually this means the macro was only invoked conditionally." >&2;}
|
cannam@86
|
23624 { (exit 1); exit 1; }; }
|
cannam@86
|
23625 fi
|
cannam@86
|
23626 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
|
cannam@86
|
23627 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
|
cannam@86
|
23628 Usually this means the macro was only invoked conditionally." >&5
|
cannam@86
|
23629 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
|
cannam@86
|
23630 Usually this means the macro was only invoked conditionally." >&2;}
|
cannam@86
|
23631 { (exit 1); exit 1; }; }
|
cannam@86
|
23632 fi
|
cannam@86
|
23633 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
|
cannam@86
|
23634 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
|
cannam@86
|
23635 Usually this means the macro was only invoked conditionally." >&5
|
cannam@86
|
23636 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
|
cannam@86
|
23637 Usually this means the macro was only invoked conditionally." >&2;}
|
cannam@86
|
23638 { (exit 1); exit 1; }; }
|
cannam@86
|
23639 fi
|
cannam@86
|
23640 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
|
cannam@86
|
23641 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
|
cannam@86
|
23642 Usually this means the macro was only invoked conditionally." >&5
|
cannam@86
|
23643 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
|
cannam@86
|
23644 Usually this means the macro was only invoked conditionally." >&2;}
|
cannam@86
|
23645 { (exit 1); exit 1; }; }
|
cannam@86
|
23646 fi
|
cannam@86
|
23647 if test -z "${FLaC__CPU_IA32_TRUE}" && test -z "${FLaC__CPU_IA32_FALSE}"; then
|
cannam@86
|
23648 { { echo "$as_me:$LINENO: error: conditional \"FLaC__CPU_IA32\" was never defined.
|
cannam@86
|
23649 Usually this means the macro was only invoked conditionally." >&5
|
cannam@86
|
23650 echo "$as_me: error: conditional \"FLaC__CPU_IA32\" was never defined.
|
cannam@86
|
23651 Usually this means the macro was only invoked conditionally." >&2;}
|
cannam@86
|
23652 { (exit 1); exit 1; }; }
|
cannam@86
|
23653 fi
|
cannam@86
|
23654 if test -z "${FLaC__CPU_PPC_TRUE}" && test -z "${FLaC__CPU_PPC_FALSE}"; then
|
cannam@86
|
23655 { { echo "$as_me:$LINENO: error: conditional \"FLaC__CPU_PPC\" was never defined.
|
cannam@86
|
23656 Usually this means the macro was only invoked conditionally." >&5
|
cannam@86
|
23657 echo "$as_me: error: conditional \"FLaC__CPU_PPC\" was never defined.
|
cannam@86
|
23658 Usually this means the macro was only invoked conditionally." >&2;}
|
cannam@86
|
23659 { (exit 1); exit 1; }; }
|
cannam@86
|
23660 fi
|
cannam@86
|
23661 if test -z "${FLaC__CPU_SPARC_TRUE}" && test -z "${FLaC__CPU_SPARC_FALSE}"; then
|
cannam@86
|
23662 { { echo "$as_me:$LINENO: error: conditional \"FLaC__CPU_SPARC\" was never defined.
|
cannam@86
|
23663 Usually this means the macro was only invoked conditionally." >&5
|
cannam@86
|
23664 echo "$as_me: error: conditional \"FLaC__CPU_SPARC\" was never defined.
|
cannam@86
|
23665 Usually this means the macro was only invoked conditionally." >&2;}
|
cannam@86
|
23666 { (exit 1); exit 1; }; }
|
cannam@86
|
23667 fi
|
cannam@86
|
23668 if test -z "${FLaC__SYS_DARWIN_TRUE}" && test -z "${FLaC__SYS_DARWIN_FALSE}"; then
|
cannam@86
|
23669 { { echo "$as_me:$LINENO: error: conditional \"FLaC__SYS_DARWIN\" was never defined.
|
cannam@86
|
23670 Usually this means the macro was only invoked conditionally." >&5
|
cannam@86
|
23671 echo "$as_me: error: conditional \"FLaC__SYS_DARWIN\" was never defined.
|
cannam@86
|
23672 Usually this means the macro was only invoked conditionally." >&2;}
|
cannam@86
|
23673 { (exit 1); exit 1; }; }
|
cannam@86
|
23674 fi
|
cannam@86
|
23675 if test -z "${FLaC__SYS_LINUX_TRUE}" && test -z "${FLaC__SYS_LINUX_FALSE}"; then
|
cannam@86
|
23676 { { echo "$as_me:$LINENO: error: conditional \"FLaC__SYS_LINUX\" was never defined.
|
cannam@86
|
23677 Usually this means the macro was only invoked conditionally." >&5
|
cannam@86
|
23678 echo "$as_me: error: conditional \"FLaC__SYS_LINUX\" was never defined.
|
cannam@86
|
23679 Usually this means the macro was only invoked conditionally." >&2;}
|
cannam@86
|
23680 { (exit 1); exit 1; }; }
|
cannam@86
|
23681 fi
|
cannam@86
|
23682 if test -z "${FLaC__NO_ASM_TRUE}" && test -z "${FLaC__NO_ASM_FALSE}"; then
|
cannam@86
|
23683 { { echo "$as_me:$LINENO: error: conditional \"FLaC__NO_ASM\" was never defined.
|
cannam@86
|
23684 Usually this means the macro was only invoked conditionally." >&5
|
cannam@86
|
23685 echo "$as_me: error: conditional \"FLaC__NO_ASM\" was never defined.
|
cannam@86
|
23686 Usually this means the macro was only invoked conditionally." >&2;}
|
cannam@86
|
23687 { (exit 1); exit 1; }; }
|
cannam@86
|
23688 fi
|
cannam@86
|
23689 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
|
cannam@86
|
23690 { { echo "$as_me:$LINENO: error: conditional \"DEBUG\" was never defined.
|
cannam@86
|
23691 Usually this means the macro was only invoked conditionally." >&5
|
cannam@86
|
23692 echo "$as_me: error: conditional \"DEBUG\" was never defined.
|
cannam@86
|
23693 Usually this means the macro was only invoked conditionally." >&2;}
|
cannam@86
|
23694 { (exit 1); exit 1; }; }
|
cannam@86
|
23695 fi
|
cannam@86
|
23696 if test -z "${FLaC__SSE_OS_TRUE}" && test -z "${FLaC__SSE_OS_FALSE}"; then
|
cannam@86
|
23697 { { echo "$as_me:$LINENO: error: conditional \"FLaC__SSE_OS\" was never defined.
|
cannam@86
|
23698 Usually this means the macro was only invoked conditionally." >&5
|
cannam@86
|
23699 echo "$as_me: error: conditional \"FLaC__SSE_OS\" was never defined.
|
cannam@86
|
23700 Usually this means the macro was only invoked conditionally." >&2;}
|
cannam@86
|
23701 { (exit 1); exit 1; }; }
|
cannam@86
|
23702 fi
|
cannam@86
|
23703 if test -z "${FLaC__USE_3DNOW_TRUE}" && test -z "${FLaC__USE_3DNOW_FALSE}"; then
|
cannam@86
|
23704 { { echo "$as_me:$LINENO: error: conditional \"FLaC__USE_3DNOW\" was never defined.
|
cannam@86
|
23705 Usually this means the macro was only invoked conditionally." >&5
|
cannam@86
|
23706 echo "$as_me: error: conditional \"FLaC__USE_3DNOW\" was never defined.
|
cannam@86
|
23707 Usually this means the macro was only invoked conditionally." >&2;}
|
cannam@86
|
23708 { (exit 1); exit 1; }; }
|
cannam@86
|
23709 fi
|
cannam@86
|
23710 if test -z "${FLaC__USE_ALTIVEC_TRUE}" && test -z "${FLaC__USE_ALTIVEC_FALSE}"; then
|
cannam@86
|
23711 { { echo "$as_me:$LINENO: error: conditional \"FLaC__USE_ALTIVEC\" was never defined.
|
cannam@86
|
23712 Usually this means the macro was only invoked conditionally." >&5
|
cannam@86
|
23713 echo "$as_me: error: conditional \"FLaC__USE_ALTIVEC\" was never defined.
|
cannam@86
|
23714 Usually this means the macro was only invoked conditionally." >&2;}
|
cannam@86
|
23715 { (exit 1); exit 1; }; }
|
cannam@86
|
23716 fi
|
cannam@86
|
23717 if test -z "${FLaC__HAS_DOXYGEN_TRUE}" && test -z "${FLaC__HAS_DOXYGEN_FALSE}"; then
|
cannam@86
|
23718 { { echo "$as_me:$LINENO: error: conditional \"FLaC__HAS_DOXYGEN\" was never defined.
|
cannam@86
|
23719 Usually this means the macro was only invoked conditionally." >&5
|
cannam@86
|
23720 echo "$as_me: error: conditional \"FLaC__HAS_DOXYGEN\" was never defined.
|
cannam@86
|
23721 Usually this means the macro was only invoked conditionally." >&2;}
|
cannam@86
|
23722 { (exit 1); exit 1; }; }
|
cannam@86
|
23723 fi
|
cannam@86
|
23724 if test -z "${FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_TRUE}" && test -z "${FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_FALSE}"; then
|
cannam@86
|
23725 { { echo "$as_me:$LINENO: error: conditional \"FLaC__INSTALL_XMMS_PLUGIN_LOCALLY\" was never defined.
|
cannam@86
|
23726 Usually this means the macro was only invoked conditionally." >&5
|
cannam@86
|
23727 echo "$as_me: error: conditional \"FLaC__INSTALL_XMMS_PLUGIN_LOCALLY\" was never defined.
|
cannam@86
|
23728 Usually this means the macro was only invoked conditionally." >&2;}
|
cannam@86
|
23729 { (exit 1); exit 1; }; }
|
cannam@86
|
23730 fi
|
cannam@86
|
23731 if test -z "${FLaC__HAS_XMMS_TRUE}" && test -z "${FLaC__HAS_XMMS_FALSE}"; then
|
cannam@86
|
23732 { { echo "$as_me:$LINENO: error: conditional \"FLaC__HAS_XMMS\" was never defined.
|
cannam@86
|
23733 Usually this means the macro was only invoked conditionally." >&5
|
cannam@86
|
23734 echo "$as_me: error: conditional \"FLaC__HAS_XMMS\" was never defined.
|
cannam@86
|
23735 Usually this means the macro was only invoked conditionally." >&2;}
|
cannam@86
|
23736 { (exit 1); exit 1; }; }
|
cannam@86
|
23737 fi
|
cannam@86
|
23738 if test -z "${FLaC__WITH_CPPLIBS_TRUE}" && test -z "${FLaC__WITH_CPPLIBS_FALSE}"; then
|
cannam@86
|
23739 { { echo "$as_me:$LINENO: error: conditional \"FLaC__WITH_CPPLIBS\" was never defined.
|
cannam@86
|
23740 Usually this means the macro was only invoked conditionally." >&5
|
cannam@86
|
23741 echo "$as_me: error: conditional \"FLaC__WITH_CPPLIBS\" was never defined.
|
cannam@86
|
23742 Usually this means the macro was only invoked conditionally." >&2;}
|
cannam@86
|
23743 { (exit 1); exit 1; }; }
|
cannam@86
|
23744 fi
|
cannam@86
|
23745 if test -z "${FLaC__HAS_OGG_TRUE}" && test -z "${FLaC__HAS_OGG_FALSE}"; then
|
cannam@86
|
23746 { { echo "$as_me:$LINENO: error: conditional \"FLaC__HAS_OGG\" was never defined.
|
cannam@86
|
23747 Usually this means the macro was only invoked conditionally." >&5
|
cannam@86
|
23748 echo "$as_me: error: conditional \"FLaC__HAS_OGG\" was never defined.
|
cannam@86
|
23749 Usually this means the macro was only invoked conditionally." >&2;}
|
cannam@86
|
23750 { (exit 1); exit 1; }; }
|
cannam@86
|
23751 fi
|
cannam@86
|
23752 if test -z "${FLaC__HAS_DOCBOOK_TO_MAN_TRUE}" && test -z "${FLaC__HAS_DOCBOOK_TO_MAN_FALSE}"; then
|
cannam@86
|
23753 { { echo "$as_me:$LINENO: error: conditional \"FLaC__HAS_DOCBOOK_TO_MAN\" was never defined.
|
cannam@86
|
23754 Usually this means the macro was only invoked conditionally." >&5
|
cannam@86
|
23755 echo "$as_me: error: conditional \"FLaC__HAS_DOCBOOK_TO_MAN\" was never defined.
|
cannam@86
|
23756 Usually this means the macro was only invoked conditionally." >&2;}
|
cannam@86
|
23757 { (exit 1); exit 1; }; }
|
cannam@86
|
23758 fi
|
cannam@86
|
23759 if test -z "${FLaC__HAS_NASM_TRUE}" && test -z "${FLaC__HAS_NASM_FALSE}"; then
|
cannam@86
|
23760 { { echo "$as_me:$LINENO: error: conditional \"FLaC__HAS_NASM\" was never defined.
|
cannam@86
|
23761 Usually this means the macro was only invoked conditionally." >&5
|
cannam@86
|
23762 echo "$as_me: error: conditional \"FLaC__HAS_NASM\" was never defined.
|
cannam@86
|
23763 Usually this means the macro was only invoked conditionally." >&2;}
|
cannam@86
|
23764 { (exit 1); exit 1; }; }
|
cannam@86
|
23765 fi
|
cannam@86
|
23766 if test -z "${FLaC__HAS_AS_TRUE}" && test -z "${FLaC__HAS_AS_FALSE}"; then
|
cannam@86
|
23767 { { echo "$as_me:$LINENO: error: conditional \"FLaC__HAS_AS\" was never defined.
|
cannam@86
|
23768 Usually this means the macro was only invoked conditionally." >&5
|
cannam@86
|
23769 echo "$as_me: error: conditional \"FLaC__HAS_AS\" was never defined.
|
cannam@86
|
23770 Usually this means the macro was only invoked conditionally." >&2;}
|
cannam@86
|
23771 { (exit 1); exit 1; }; }
|
cannam@86
|
23772 fi
|
cannam@86
|
23773 if test -z "${FLaC__HAS_GAS_TRUE}" && test -z "${FLaC__HAS_GAS_FALSE}"; then
|
cannam@86
|
23774 { { echo "$as_me:$LINENO: error: conditional \"FLaC__HAS_GAS\" was never defined.
|
cannam@86
|
23775 Usually this means the macro was only invoked conditionally." >&5
|
cannam@86
|
23776 echo "$as_me: error: conditional \"FLaC__HAS_GAS\" was never defined.
|
cannam@86
|
23777 Usually this means the macro was only invoked conditionally." >&2;}
|
cannam@86
|
23778 { (exit 1); exit 1; }; }
|
cannam@86
|
23779 fi
|
cannam@86
|
23780 if test -z "${FLaC__HAS_AS__TEMPORARILY_DISABLED_TRUE}" && test -z "${FLaC__HAS_AS__TEMPORARILY_DISABLED_FALSE}"; then
|
cannam@86
|
23781 { { echo "$as_me:$LINENO: error: conditional \"FLaC__HAS_AS__TEMPORARILY_DISABLED\" was never defined.
|
cannam@86
|
23782 Usually this means the macro was only invoked conditionally." >&5
|
cannam@86
|
23783 echo "$as_me: error: conditional \"FLaC__HAS_AS__TEMPORARILY_DISABLED\" was never defined.
|
cannam@86
|
23784 Usually this means the macro was only invoked conditionally." >&2;}
|
cannam@86
|
23785 { (exit 1); exit 1; }; }
|
cannam@86
|
23786 fi
|
cannam@86
|
23787 if test -z "${FLaC__HAS_GAS__TEMPORARILY_DISABLED_TRUE}" && test -z "${FLaC__HAS_GAS__TEMPORARILY_DISABLED_FALSE}"; then
|
cannam@86
|
23788 { { echo "$as_me:$LINENO: error: conditional \"FLaC__HAS_GAS__TEMPORARILY_DISABLED\" was never defined.
|
cannam@86
|
23789 Usually this means the macro was only invoked conditionally." >&5
|
cannam@86
|
23790 echo "$as_me: error: conditional \"FLaC__HAS_GAS__TEMPORARILY_DISABLED\" was never defined.
|
cannam@86
|
23791 Usually this means the macro was only invoked conditionally." >&2;}
|
cannam@86
|
23792 { (exit 1); exit 1; }; }
|
cannam@86
|
23793 fi
|
cannam@86
|
23794
|
cannam@86
|
23795 : ${CONFIG_STATUS=./config.status}
|
cannam@86
|
23796 ac_clean_files_save=$ac_clean_files
|
cannam@86
|
23797 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
cannam@86
|
23798 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
|
cannam@86
|
23799 echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
cannam@86
|
23800 cat >$CONFIG_STATUS <<_ACEOF
|
cannam@86
|
23801 #! $SHELL
|
cannam@86
|
23802 # Generated by $as_me.
|
cannam@86
|
23803 # Run this file to recreate the current configuration.
|
cannam@86
|
23804 # Compiler output produced by configure, useful for debugging
|
cannam@86
|
23805 # configure, is in config.log if it exists.
|
cannam@86
|
23806
|
cannam@86
|
23807 debug=false
|
cannam@86
|
23808 ac_cs_recheck=false
|
cannam@86
|
23809 ac_cs_silent=false
|
cannam@86
|
23810 SHELL=\${CONFIG_SHELL-$SHELL}
|
cannam@86
|
23811 _ACEOF
|
cannam@86
|
23812
|
cannam@86
|
23813 cat >>$CONFIG_STATUS <<\_ACEOF
|
cannam@86
|
23814 ## --------------------- ##
|
cannam@86
|
23815 ## M4sh Initialization. ##
|
cannam@86
|
23816 ## --------------------- ##
|
cannam@86
|
23817
|
cannam@86
|
23818 # Be Bourne compatible
|
cannam@86
|
23819 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
cannam@86
|
23820 emulate sh
|
cannam@86
|
23821 NULLCMD=:
|
cannam@86
|
23822 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
cannam@86
|
23823 # is contrary to our usage. Disable this feature.
|
cannam@86
|
23824 alias -g '${1+"$@"}'='"$@"'
|
cannam@86
|
23825 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
cannam@86
|
23826 set -o posix
|
cannam@86
|
23827 fi
|
cannam@86
|
23828 DUALCASE=1; export DUALCASE # for MKS sh
|
cannam@86
|
23829
|
cannam@86
|
23830 # Support unset when possible.
|
cannam@86
|
23831 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
cannam@86
|
23832 as_unset=unset
|
cannam@86
|
23833 else
|
cannam@86
|
23834 as_unset=false
|
cannam@86
|
23835 fi
|
cannam@86
|
23836
|
cannam@86
|
23837
|
cannam@86
|
23838 # Work around bugs in pre-3.0 UWIN ksh.
|
cannam@86
|
23839 $as_unset ENV MAIL MAILPATH
|
cannam@86
|
23840 PS1='$ '
|
cannam@86
|
23841 PS2='> '
|
cannam@86
|
23842 PS4='+ '
|
cannam@86
|
23843
|
cannam@86
|
23844 # NLS nuisances.
|
cannam@86
|
23845 for as_var in \
|
cannam@86
|
23846 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
cannam@86
|
23847 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
cannam@86
|
23848 LC_TELEPHONE LC_TIME
|
cannam@86
|
23849 do
|
cannam@86
|
23850 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
cannam@86
|
23851 eval $as_var=C; export $as_var
|
cannam@86
|
23852 else
|
cannam@86
|
23853 $as_unset $as_var
|
cannam@86
|
23854 fi
|
cannam@86
|
23855 done
|
cannam@86
|
23856
|
cannam@86
|
23857 # Required to use basename.
|
cannam@86
|
23858 if expr a : '\(a\)' >/dev/null 2>&1; then
|
cannam@86
|
23859 as_expr=expr
|
cannam@86
|
23860 else
|
cannam@86
|
23861 as_expr=false
|
cannam@86
|
23862 fi
|
cannam@86
|
23863
|
cannam@86
|
23864 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
cannam@86
|
23865 as_basename=basename
|
cannam@86
|
23866 else
|
cannam@86
|
23867 as_basename=false
|
cannam@86
|
23868 fi
|
cannam@86
|
23869
|
cannam@86
|
23870
|
cannam@86
|
23871 # Name of the executable.
|
cannam@86
|
23872 as_me=`$as_basename "$0" ||
|
cannam@86
|
23873 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
cannam@86
|
23874 X"$0" : 'X\(//\)$' \| \
|
cannam@86
|
23875 X"$0" : 'X\(/\)$' \| \
|
cannam@86
|
23876 . : '\(.\)' 2>/dev/null ||
|
cannam@86
|
23877 echo X/"$0" |
|
cannam@86
|
23878 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
|
cannam@86
|
23879 /^X\/\(\/\/\)$/{ s//\1/; q; }
|
cannam@86
|
23880 /^X\/\(\/\).*/{ s//\1/; q; }
|
cannam@86
|
23881 s/.*/./; q'`
|
cannam@86
|
23882
|
cannam@86
|
23883
|
cannam@86
|
23884 # PATH needs CR, and LINENO needs CR and PATH.
|
cannam@86
|
23885 # Avoid depending upon Character Ranges.
|
cannam@86
|
23886 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
cannam@86
|
23887 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
cannam@86
|
23888 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
cannam@86
|
23889 as_cr_digits='0123456789'
|
cannam@86
|
23890 as_cr_alnum=$as_cr_Letters$as_cr_digits
|
cannam@86
|
23891
|
cannam@86
|
23892 # The user is always right.
|
cannam@86
|
23893 if test "${PATH_SEPARATOR+set}" != set; then
|
cannam@86
|
23894 echo "#! /bin/sh" >conf$$.sh
|
cannam@86
|
23895 echo "exit 0" >>conf$$.sh
|
cannam@86
|
23896 chmod +x conf$$.sh
|
cannam@86
|
23897 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
cannam@86
|
23898 PATH_SEPARATOR=';'
|
cannam@86
|
23899 else
|
cannam@86
|
23900 PATH_SEPARATOR=:
|
cannam@86
|
23901 fi
|
cannam@86
|
23902 rm -f conf$$.sh
|
cannam@86
|
23903 fi
|
cannam@86
|
23904
|
cannam@86
|
23905
|
cannam@86
|
23906 as_lineno_1=$LINENO
|
cannam@86
|
23907 as_lineno_2=$LINENO
|
cannam@86
|
23908 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
cannam@86
|
23909 test "x$as_lineno_1" != "x$as_lineno_2" &&
|
cannam@86
|
23910 test "x$as_lineno_3" = "x$as_lineno_2" || {
|
cannam@86
|
23911 # Find who we are. Look in the path if we contain no path at all
|
cannam@86
|
23912 # relative or not.
|
cannam@86
|
23913 case $0 in
|
cannam@86
|
23914 *[\\/]* ) as_myself=$0 ;;
|
cannam@86
|
23915 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@86
|
23916 for as_dir in $PATH
|
cannam@86
|
23917 do
|
cannam@86
|
23918 IFS=$as_save_IFS
|
cannam@86
|
23919 test -z "$as_dir" && as_dir=.
|
cannam@86
|
23920 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
cannam@86
|
23921 done
|
cannam@86
|
23922
|
cannam@86
|
23923 ;;
|
cannam@86
|
23924 esac
|
cannam@86
|
23925 # We did not find ourselves, most probably we were run as `sh COMMAND'
|
cannam@86
|
23926 # in which case we are not to be found in the path.
|
cannam@86
|
23927 if test "x$as_myself" = x; then
|
cannam@86
|
23928 as_myself=$0
|
cannam@86
|
23929 fi
|
cannam@86
|
23930 if test ! -f "$as_myself"; then
|
cannam@86
|
23931 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
|
cannam@86
|
23932 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
|
cannam@86
|
23933 { (exit 1); exit 1; }; }
|
cannam@86
|
23934 fi
|
cannam@86
|
23935 case $CONFIG_SHELL in
|
cannam@86
|
23936 '')
|
cannam@86
|
23937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@86
|
23938 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
cannam@86
|
23939 do
|
cannam@86
|
23940 IFS=$as_save_IFS
|
cannam@86
|
23941 test -z "$as_dir" && as_dir=.
|
cannam@86
|
23942 for as_base in sh bash ksh sh5; do
|
cannam@86
|
23943 case $as_dir in
|
cannam@86
|
23944 /*)
|
cannam@86
|
23945 if ("$as_dir/$as_base" -c '
|
cannam@86
|
23946 as_lineno_1=$LINENO
|
cannam@86
|
23947 as_lineno_2=$LINENO
|
cannam@86
|
23948 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
cannam@86
|
23949 test "x$as_lineno_1" != "x$as_lineno_2" &&
|
cannam@86
|
23950 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
|
cannam@86
|
23951 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
|
cannam@86
|
23952 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
|
cannam@86
|
23953 CONFIG_SHELL=$as_dir/$as_base
|
cannam@86
|
23954 export CONFIG_SHELL
|
cannam@86
|
23955 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
|
cannam@86
|
23956 fi;;
|
cannam@86
|
23957 esac
|
cannam@86
|
23958 done
|
cannam@86
|
23959 done
|
cannam@86
|
23960 ;;
|
cannam@86
|
23961 esac
|
cannam@86
|
23962
|
cannam@86
|
23963 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
cannam@86
|
23964 # uniformly replaced by the line number. The first 'sed' inserts a
|
cannam@86
|
23965 # line-number line before each line; the second 'sed' does the real
|
cannam@86
|
23966 # work. The second script uses 'N' to pair each line-number line
|
cannam@86
|
23967 # with the numbered line, and appends trailing '-' during
|
cannam@86
|
23968 # substitution so that $LINENO is not a special case at line end.
|
cannam@86
|
23969 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
cannam@86
|
23970 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
|
cannam@86
|
23971 sed '=' <$as_myself |
|
cannam@86
|
23972 sed '
|
cannam@86
|
23973 N
|
cannam@86
|
23974 s,$,-,
|
cannam@86
|
23975 : loop
|
cannam@86
|
23976 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
cannam@86
|
23977 t loop
|
cannam@86
|
23978 s,-$,,
|
cannam@86
|
23979 s,^['$as_cr_digits']*\n,,
|
cannam@86
|
23980 ' >$as_me.lineno &&
|
cannam@86
|
23981 chmod +x $as_me.lineno ||
|
cannam@86
|
23982 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
|
cannam@86
|
23983 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
|
cannam@86
|
23984 { (exit 1); exit 1; }; }
|
cannam@86
|
23985
|
cannam@86
|
23986 # Don't try to exec as it changes $[0], causing all sort of problems
|
cannam@86
|
23987 # (the dirname of $[0] is not the place where we might find the
|
cannam@86
|
23988 # original and so on. Autoconf is especially sensible to this).
|
cannam@86
|
23989 . ./$as_me.lineno
|
cannam@86
|
23990 # Exit status is that of the last command.
|
cannam@86
|
23991 exit
|
cannam@86
|
23992 }
|
cannam@86
|
23993
|
cannam@86
|
23994
|
cannam@86
|
23995 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
|
cannam@86
|
23996 *c*,-n*) ECHO_N= ECHO_C='
|
cannam@86
|
23997 ' ECHO_T=' ' ;;
|
cannam@86
|
23998 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
|
cannam@86
|
23999 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
|
cannam@86
|
24000 esac
|
cannam@86
|
24001
|
cannam@86
|
24002 if expr a : '\(a\)' >/dev/null 2>&1; then
|
cannam@86
|
24003 as_expr=expr
|
cannam@86
|
24004 else
|
cannam@86
|
24005 as_expr=false
|
cannam@86
|
24006 fi
|
cannam@86
|
24007
|
cannam@86
|
24008 rm -f conf$$ conf$$.exe conf$$.file
|
cannam@86
|
24009 echo >conf$$.file
|
cannam@86
|
24010 if ln -s conf$$.file conf$$ 2>/dev/null; then
|
cannam@86
|
24011 # We could just check for DJGPP; but this test a) works b) is more generic
|
cannam@86
|
24012 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
|
cannam@86
|
24013 if test -f conf$$.exe; then
|
cannam@86
|
24014 # Don't use ln at all; we don't have any links
|
cannam@86
|
24015 as_ln_s='cp -p'
|
cannam@86
|
24016 else
|
cannam@86
|
24017 as_ln_s='ln -s'
|
cannam@86
|
24018 fi
|
cannam@86
|
24019 elif ln conf$$.file conf$$ 2>/dev/null; then
|
cannam@86
|
24020 as_ln_s=ln
|
cannam@86
|
24021 else
|
cannam@86
|
24022 as_ln_s='cp -p'
|
cannam@86
|
24023 fi
|
cannam@86
|
24024 rm -f conf$$ conf$$.exe conf$$.file
|
cannam@86
|
24025
|
cannam@86
|
24026 if mkdir -p . 2>/dev/null; then
|
cannam@86
|
24027 as_mkdir_p=:
|
cannam@86
|
24028 else
|
cannam@86
|
24029 test -d ./-p && rmdir ./-p
|
cannam@86
|
24030 as_mkdir_p=false
|
cannam@86
|
24031 fi
|
cannam@86
|
24032
|
cannam@86
|
24033 as_executable_p="test -f"
|
cannam@86
|
24034
|
cannam@86
|
24035 # Sed expression to map a string onto a valid CPP name.
|
cannam@86
|
24036 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
cannam@86
|
24037
|
cannam@86
|
24038 # Sed expression to map a string onto a valid variable name.
|
cannam@86
|
24039 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
cannam@86
|
24040
|
cannam@86
|
24041
|
cannam@86
|
24042 # IFS
|
cannam@86
|
24043 # We need space, tab and new line, in precisely that order.
|
cannam@86
|
24044 as_nl='
|
cannam@86
|
24045 '
|
cannam@86
|
24046 IFS=" $as_nl"
|
cannam@86
|
24047
|
cannam@86
|
24048 # CDPATH.
|
cannam@86
|
24049 $as_unset CDPATH
|
cannam@86
|
24050
|
cannam@86
|
24051 exec 6>&1
|
cannam@86
|
24052
|
cannam@86
|
24053 # Open the log real soon, to keep \$[0] and so on meaningful, and to
|
cannam@86
|
24054 # report actual input values of CONFIG_FILES etc. instead of their
|
cannam@86
|
24055 # values after options handling. Logging --version etc. is OK.
|
cannam@86
|
24056 exec 5>>config.log
|
cannam@86
|
24057 {
|
cannam@86
|
24058 echo
|
cannam@86
|
24059 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
cannam@86
|
24060 ## Running $as_me. ##
|
cannam@86
|
24061 _ASBOX
|
cannam@86
|
24062 } >&5
|
cannam@86
|
24063 cat >&5 <<_CSEOF
|
cannam@86
|
24064
|
cannam@86
|
24065 This file was extended by $as_me, which was
|
cannam@86
|
24066 generated by GNU Autoconf 2.59. Invocation command line was
|
cannam@86
|
24067
|
cannam@86
|
24068 CONFIG_FILES = $CONFIG_FILES
|
cannam@86
|
24069 CONFIG_HEADERS = $CONFIG_HEADERS
|
cannam@86
|
24070 CONFIG_LINKS = $CONFIG_LINKS
|
cannam@86
|
24071 CONFIG_COMMANDS = $CONFIG_COMMANDS
|
cannam@86
|
24072 $ $0 $@
|
cannam@86
|
24073
|
cannam@86
|
24074 _CSEOF
|
cannam@86
|
24075 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
|
cannam@86
|
24076 echo >&5
|
cannam@86
|
24077 _ACEOF
|
cannam@86
|
24078
|
cannam@86
|
24079 # Files that config.status was made for.
|
cannam@86
|
24080 if test -n "$ac_config_files"; then
|
cannam@86
|
24081 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
|
cannam@86
|
24082 fi
|
cannam@86
|
24083
|
cannam@86
|
24084 if test -n "$ac_config_headers"; then
|
cannam@86
|
24085 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
|
cannam@86
|
24086 fi
|
cannam@86
|
24087
|
cannam@86
|
24088 if test -n "$ac_config_links"; then
|
cannam@86
|
24089 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
|
cannam@86
|
24090 fi
|
cannam@86
|
24091
|
cannam@86
|
24092 if test -n "$ac_config_commands"; then
|
cannam@86
|
24093 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
|
cannam@86
|
24094 fi
|
cannam@86
|
24095
|
cannam@86
|
24096 cat >>$CONFIG_STATUS <<\_ACEOF
|
cannam@86
|
24097
|
cannam@86
|
24098 ac_cs_usage="\
|
cannam@86
|
24099 \`$as_me' instantiates files from templates according to the
|
cannam@86
|
24100 current configuration.
|
cannam@86
|
24101
|
cannam@86
|
24102 Usage: $0 [OPTIONS] [FILE]...
|
cannam@86
|
24103
|
cannam@86
|
24104 -h, --help print this help, then exit
|
cannam@86
|
24105 -V, --version print version number, then exit
|
cannam@86
|
24106 -q, --quiet do not print progress messages
|
cannam@86
|
24107 -d, --debug don't remove temporary files
|
cannam@86
|
24108 --recheck update $as_me by reconfiguring in the same conditions
|
cannam@86
|
24109 --file=FILE[:TEMPLATE]
|
cannam@86
|
24110 instantiate the configuration file FILE
|
cannam@86
|
24111 --header=FILE[:TEMPLATE]
|
cannam@86
|
24112 instantiate the configuration header FILE
|
cannam@86
|
24113
|
cannam@86
|
24114 Configuration files:
|
cannam@86
|
24115 $config_files
|
cannam@86
|
24116
|
cannam@86
|
24117 Configuration headers:
|
cannam@86
|
24118 $config_headers
|
cannam@86
|
24119
|
cannam@86
|
24120 Configuration commands:
|
cannam@86
|
24121 $config_commands
|
cannam@86
|
24122
|
cannam@86
|
24123 Report bugs to <bug-autoconf@gnu.org>."
|
cannam@86
|
24124 _ACEOF
|
cannam@86
|
24125
|
cannam@86
|
24126 cat >>$CONFIG_STATUS <<_ACEOF
|
cannam@86
|
24127 ac_cs_version="\\
|
cannam@86
|
24128 config.status
|
cannam@86
|
24129 configured by $0, generated by GNU Autoconf 2.59,
|
cannam@86
|
24130 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
|
cannam@86
|
24131
|
cannam@86
|
24132 Copyright (C) 2003 Free Software Foundation, Inc.
|
cannam@86
|
24133 This config.status script is free software; the Free Software Foundation
|
cannam@86
|
24134 gives unlimited permission to copy, distribute and modify it."
|
cannam@86
|
24135 srcdir=$srcdir
|
cannam@86
|
24136 INSTALL="$INSTALL"
|
cannam@86
|
24137 _ACEOF
|
cannam@86
|
24138
|
cannam@86
|
24139 cat >>$CONFIG_STATUS <<\_ACEOF
|
cannam@86
|
24140 # If no file are specified by the user, then we need to provide default
|
cannam@86
|
24141 # value. By we need to know if files were specified by the user.
|
cannam@86
|
24142 ac_need_defaults=:
|
cannam@86
|
24143 while test $# != 0
|
cannam@86
|
24144 do
|
cannam@86
|
24145 case $1 in
|
cannam@86
|
24146 --*=*)
|
cannam@86
|
24147 ac_option=`expr "x$1" : 'x\([^=]*\)='`
|
cannam@86
|
24148 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
|
cannam@86
|
24149 ac_shift=:
|
cannam@86
|
24150 ;;
|
cannam@86
|
24151 -*)
|
cannam@86
|
24152 ac_option=$1
|
cannam@86
|
24153 ac_optarg=$2
|
cannam@86
|
24154 ac_shift=shift
|
cannam@86
|
24155 ;;
|
cannam@86
|
24156 *) # This is not an option, so the user has probably given explicit
|
cannam@86
|
24157 # arguments.
|
cannam@86
|
24158 ac_option=$1
|
cannam@86
|
24159 ac_need_defaults=false;;
|
cannam@86
|
24160 esac
|
cannam@86
|
24161
|
cannam@86
|
24162 case $ac_option in
|
cannam@86
|
24163 # Handling of the options.
|
cannam@86
|
24164 _ACEOF
|
cannam@86
|
24165 cat >>$CONFIG_STATUS <<\_ACEOF
|
cannam@86
|
24166 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
cannam@86
|
24167 ac_cs_recheck=: ;;
|
cannam@86
|
24168 --version | --vers* | -V )
|
cannam@86
|
24169 echo "$ac_cs_version"; exit 0 ;;
|
cannam@86
|
24170 --he | --h)
|
cannam@86
|
24171 # Conflict between --help and --header
|
cannam@86
|
24172 { { echo "$as_me:$LINENO: error: ambiguous option: $1
|
cannam@86
|
24173 Try \`$0 --help' for more information." >&5
|
cannam@86
|
24174 echo "$as_me: error: ambiguous option: $1
|
cannam@86
|
24175 Try \`$0 --help' for more information." >&2;}
|
cannam@86
|
24176 { (exit 1); exit 1; }; };;
|
cannam@86
|
24177 --help | --hel | -h )
|
cannam@86
|
24178 echo "$ac_cs_usage"; exit 0 ;;
|
cannam@86
|
24179 --debug | --d* | -d )
|
cannam@86
|
24180 debug=: ;;
|
cannam@86
|
24181 --file | --fil | --fi | --f )
|
cannam@86
|
24182 $ac_shift
|
cannam@86
|
24183 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
|
cannam@86
|
24184 ac_need_defaults=false;;
|
cannam@86
|
24185 --header | --heade | --head | --hea )
|
cannam@86
|
24186 $ac_shift
|
cannam@86
|
24187 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
|
cannam@86
|
24188 ac_need_defaults=false;;
|
cannam@86
|
24189 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
cannam@86
|
24190 | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
cannam@86
|
24191 ac_cs_silent=: ;;
|
cannam@86
|
24192
|
cannam@86
|
24193 # This is an error.
|
cannam@86
|
24194 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
|
cannam@86
|
24195 Try \`$0 --help' for more information." >&5
|
cannam@86
|
24196 echo "$as_me: error: unrecognized option: $1
|
cannam@86
|
24197 Try \`$0 --help' for more information." >&2;}
|
cannam@86
|
24198 { (exit 1); exit 1; }; } ;;
|
cannam@86
|
24199
|
cannam@86
|
24200 *) ac_config_targets="$ac_config_targets $1" ;;
|
cannam@86
|
24201
|
cannam@86
|
24202 esac
|
cannam@86
|
24203 shift
|
cannam@86
|
24204 done
|
cannam@86
|
24205
|
cannam@86
|
24206 ac_configure_extra_args=
|
cannam@86
|
24207
|
cannam@86
|
24208 if $ac_cs_silent; then
|
cannam@86
|
24209 exec 6>/dev/null
|
cannam@86
|
24210 ac_configure_extra_args="$ac_configure_extra_args --silent"
|
cannam@86
|
24211 fi
|
cannam@86
|
24212
|
cannam@86
|
24213 _ACEOF
|
cannam@86
|
24214 cat >>$CONFIG_STATUS <<_ACEOF
|
cannam@86
|
24215 if \$ac_cs_recheck; then
|
cannam@86
|
24216 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
|
cannam@86
|
24217 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
cannam@86
|
24218 fi
|
cannam@86
|
24219
|
cannam@86
|
24220 _ACEOF
|
cannam@86
|
24221
|
cannam@86
|
24222 cat >>$CONFIG_STATUS <<_ACEOF
|
cannam@86
|
24223 #
|
cannam@86
|
24224 # INIT-COMMANDS section.
|
cannam@86
|
24225 #
|
cannam@86
|
24226
|
cannam@86
|
24227 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
|
cannam@86
|
24228
|
cannam@86
|
24229 _ACEOF
|
cannam@86
|
24230
|
cannam@86
|
24231
|
cannam@86
|
24232
|
cannam@86
|
24233 cat >>$CONFIG_STATUS <<\_ACEOF
|
cannam@86
|
24234 for ac_config_target in $ac_config_targets
|
cannam@86
|
24235 do
|
cannam@86
|
24236 case "$ac_config_target" in
|
cannam@86
|
24237 # Handling of arguments.
|
cannam@86
|
24238 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
cannam@86
|
24239 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
|
cannam@86
|
24240 "src/libFLAC/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libFLAC/Makefile" ;;
|
cannam@86
|
24241 "src/libFLAC/flac.pc" ) CONFIG_FILES="$CONFIG_FILES src/libFLAC/flac.pc" ;;
|
cannam@86
|
24242 "src/libFLAC/ia32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libFLAC/ia32/Makefile" ;;
|
cannam@86
|
24243 "src/libFLAC/ppc/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libFLAC/ppc/Makefile" ;;
|
cannam@86
|
24244 "src/libFLAC/ppc/as/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libFLAC/ppc/as/Makefile" ;;
|
cannam@86
|
24245 "src/libFLAC/ppc/gas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libFLAC/ppc/gas/Makefile" ;;
|
cannam@86
|
24246 "src/libFLAC/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libFLAC/include/Makefile" ;;
|
cannam@86
|
24247 "src/libFLAC/include/private/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libFLAC/include/private/Makefile" ;;
|
cannam@86
|
24248 "src/libFLAC/include/protected/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libFLAC/include/protected/Makefile" ;;
|
cannam@86
|
24249 "src/libFLAC++/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libFLAC++/Makefile" ;;
|
cannam@86
|
24250 "src/libFLAC++/flac++.pc" ) CONFIG_FILES="$CONFIG_FILES src/libFLAC++/flac++.pc" ;;
|
cannam@86
|
24251 "src/flac/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/flac/Makefile" ;;
|
cannam@86
|
24252 "src/metaflac/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/metaflac/Makefile" ;;
|
cannam@86
|
24253 "src/monkeys_audio_utilities/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/monkeys_audio_utilities/Makefile" ;;
|
cannam@86
|
24254 "src/monkeys_audio_utilities/flac_mac/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/monkeys_audio_utilities/flac_mac/Makefile" ;;
|
cannam@86
|
24255 "src/monkeys_audio_utilities/flac_ren/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/monkeys_audio_utilities/flac_ren/Makefile" ;;
|
cannam@86
|
24256 "src/plugin_common/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/plugin_common/Makefile" ;;
|
cannam@86
|
24257 "src/plugin_winamp2/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/plugin_winamp2/Makefile" ;;
|
cannam@86
|
24258 "src/plugin_winamp2/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/plugin_winamp2/include/Makefile" ;;
|
cannam@86
|
24259 "src/plugin_winamp2/include/winamp2/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/plugin_winamp2/include/winamp2/Makefile" ;;
|
cannam@86
|
24260 "src/plugin_xmms/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/plugin_xmms/Makefile" ;;
|
cannam@86
|
24261 "src/share/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/share/Makefile" ;;
|
cannam@86
|
24262 "src/share/getopt/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/share/getopt/Makefile" ;;
|
cannam@86
|
24263 "src/share/grabbag/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/share/grabbag/Makefile" ;;
|
cannam@86
|
24264 "src/share/replaygain_analysis/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/share/replaygain_analysis/Makefile" ;;
|
cannam@86
|
24265 "src/share/replaygain_synthesis/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/share/replaygain_synthesis/Makefile" ;;
|
cannam@86
|
24266 "src/share/replaygain_synthesis/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/share/replaygain_synthesis/include/Makefile" ;;
|
cannam@86
|
24267 "src/share/replaygain_synthesis/include/private/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/share/replaygain_synthesis/include/private/Makefile" ;;
|
cannam@86
|
24268 "src/share/utf8/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/share/utf8/Makefile" ;;
|
cannam@86
|
24269 "src/test_grabbag/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test_grabbag/Makefile" ;;
|
cannam@86
|
24270 "src/test_grabbag/cuesheet/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test_grabbag/cuesheet/Makefile" ;;
|
cannam@86
|
24271 "src/test_grabbag/picture/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test_grabbag/picture/Makefile" ;;
|
cannam@86
|
24272 "src/test_libs_common/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test_libs_common/Makefile" ;;
|
cannam@86
|
24273 "src/test_libFLAC/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test_libFLAC/Makefile" ;;
|
cannam@86
|
24274 "src/test_libFLAC++/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test_libFLAC++/Makefile" ;;
|
cannam@86
|
24275 "src/test_seeking/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test_seeking/Makefile" ;;
|
cannam@86
|
24276 "src/test_streams/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test_streams/Makefile" ;;
|
cannam@86
|
24277 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
|
cannam@86
|
24278 "examples/c/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/c/Makefile" ;;
|
cannam@86
|
24279 "examples/c/decode/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/c/decode/Makefile" ;;
|
cannam@86
|
24280 "examples/c/decode/file/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/c/decode/file/Makefile" ;;
|
cannam@86
|
24281 "examples/c/encode/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/c/encode/Makefile" ;;
|
cannam@86
|
24282 "examples/c/encode/file/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/c/encode/file/Makefile" ;;
|
cannam@86
|
24283 "examples/cpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/cpp/Makefile" ;;
|
cannam@86
|
24284 "examples/cpp/decode/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/cpp/decode/Makefile" ;;
|
cannam@86
|
24285 "examples/cpp/decode/file/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/cpp/decode/file/Makefile" ;;
|
cannam@86
|
24286 "examples/cpp/encode/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/cpp/encode/Makefile" ;;
|
cannam@86
|
24287 "examples/cpp/encode/file/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/cpp/encode/file/Makefile" ;;
|
cannam@86
|
24288 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
|
cannam@86
|
24289 "include/FLAC/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/FLAC/Makefile" ;;
|
cannam@86
|
24290 "include/FLAC++/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/FLAC++/Makefile" ;;
|
cannam@86
|
24291 "include/share/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/share/Makefile" ;;
|
cannam@86
|
24292 "include/share/grabbag/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/share/grabbag/Makefile" ;;
|
cannam@86
|
24293 "include/test_libs_common/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/test_libs_common/Makefile" ;;
|
cannam@86
|
24294 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
|
cannam@86
|
24295 "doc/html/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/html/Makefile" ;;
|
cannam@86
|
24296 "doc/html/images/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/html/images/Makefile" ;;
|
cannam@86
|
24297 "doc/html/images/hw/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/html/images/hw/Makefile" ;;
|
cannam@86
|
24298 "doc/html/ru/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/html/ru/Makefile" ;;
|
cannam@86
|
24299 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
|
cannam@86
|
24300 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
|
cannam@86
|
24301 "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
|
cannam@86
|
24302 "test/cuesheets/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/cuesheets/Makefile" ;;
|
cannam@86
|
24303 "test/flac-to-flac-metadata-test-files/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/flac-to-flac-metadata-test-files/Makefile" ;;
|
cannam@86
|
24304 "test/metaflac-test-files/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/metaflac-test-files/Makefile" ;;
|
cannam@86
|
24305 "test/pictures/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/pictures/Makefile" ;;
|
cannam@86
|
24306 "build/Makefile" ) CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
|
cannam@86
|
24307 "obj/Makefile" ) CONFIG_FILES="$CONFIG_FILES obj/Makefile" ;;
|
cannam@86
|
24308 "obj/debug/Makefile" ) CONFIG_FILES="$CONFIG_FILES obj/debug/Makefile" ;;
|
cannam@86
|
24309 "obj/debug/bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES obj/debug/bin/Makefile" ;;
|
cannam@86
|
24310 "obj/debug/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES obj/debug/lib/Makefile" ;;
|
cannam@86
|
24311 "obj/release/Makefile" ) CONFIG_FILES="$CONFIG_FILES obj/release/Makefile" ;;
|
cannam@86
|
24312 "obj/release/bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES obj/release/bin/Makefile" ;;
|
cannam@86
|
24313 "obj/release/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES obj/release/lib/Makefile" ;;
|
cannam@86
|
24314 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
|
cannam@86
|
24315 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
cannam@86
|
24316 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
cannam@86
|
24317 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
cannam@86
|
24318 { (exit 1); exit 1; }; };;
|
cannam@86
|
24319 esac
|
cannam@86
|
24320 done
|
cannam@86
|
24321
|
cannam@86
|
24322 # If the user did not use the arguments to specify the items to instantiate,
|
cannam@86
|
24323 # then the envvar interface is used. Set only those that are not.
|
cannam@86
|
24324 # We use the long form for the default assignment because of an extremely
|
cannam@86
|
24325 # bizarre bug on SunOS 4.1.3.
|
cannam@86
|
24326 if $ac_need_defaults; then
|
cannam@86
|
24327 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
cannam@86
|
24328 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
cannam@86
|
24329 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
|
cannam@86
|
24330 fi
|
cannam@86
|
24331
|
cannam@86
|
24332 # Have a temporary directory for convenience. Make it in the build tree
|
cannam@86
|
24333 # simply because there is no reason to put it here, and in addition,
|
cannam@86
|
24334 # creating and moving files from /tmp can sometimes cause problems.
|
cannam@86
|
24335 # Create a temporary directory, and hook for its removal unless debugging.
|
cannam@86
|
24336 $debug ||
|
cannam@86
|
24337 {
|
cannam@86
|
24338 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
|
cannam@86
|
24339 trap '{ (exit 1); exit 1; }' 1 2 13 15
|
cannam@86
|
24340 }
|
cannam@86
|
24341
|
cannam@86
|
24342 # Create a (secure) tmp directory for tmp files.
|
cannam@86
|
24343
|
cannam@86
|
24344 {
|
cannam@86
|
24345 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
|
cannam@86
|
24346 test -n "$tmp" && test -d "$tmp"
|
cannam@86
|
24347 } ||
|
cannam@86
|
24348 {
|
cannam@86
|
24349 tmp=./confstat$$-$RANDOM
|
cannam@86
|
24350 (umask 077 && mkdir $tmp)
|
cannam@86
|
24351 } ||
|
cannam@86
|
24352 {
|
cannam@86
|
24353 echo "$me: cannot create a temporary directory in ." >&2
|
cannam@86
|
24354 { (exit 1); exit 1; }
|
cannam@86
|
24355 }
|
cannam@86
|
24356
|
cannam@86
|
24357 _ACEOF
|
cannam@86
|
24358
|
cannam@86
|
24359 cat >>$CONFIG_STATUS <<_ACEOF
|
cannam@86
|
24360
|
cannam@86
|
24361 #
|
cannam@86
|
24362 # CONFIG_FILES section.
|
cannam@86
|
24363 #
|
cannam@86
|
24364
|
cannam@86
|
24365 # No need to generate the scripts if there are no CONFIG_FILES.
|
cannam@86
|
24366 # This happens for instance when ./config.status config.h
|
cannam@86
|
24367 if test -n "\$CONFIG_FILES"; then
|
cannam@86
|
24368 # Protect against being on the right side of a sed subst in config.status.
|
cannam@86
|
24369 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
|
cannam@86
|
24370 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
|
cannam@86
|
24371 s,@SHELL@,$SHELL,;t t
|
cannam@86
|
24372 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
|
cannam@86
|
24373 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
|
cannam@86
|
24374 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
|
cannam@86
|
24375 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
|
cannam@86
|
24376 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
|
cannam@86
|
24377 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
|
cannam@86
|
24378 s,@exec_prefix@,$exec_prefix,;t t
|
cannam@86
|
24379 s,@prefix@,$prefix,;t t
|
cannam@86
|
24380 s,@program_transform_name@,$program_transform_name,;t t
|
cannam@86
|
24381 s,@bindir@,$bindir,;t t
|
cannam@86
|
24382 s,@sbindir@,$sbindir,;t t
|
cannam@86
|
24383 s,@libexecdir@,$libexecdir,;t t
|
cannam@86
|
24384 s,@datadir@,$datadir,;t t
|
cannam@86
|
24385 s,@sysconfdir@,$sysconfdir,;t t
|
cannam@86
|
24386 s,@sharedstatedir@,$sharedstatedir,;t t
|
cannam@86
|
24387 s,@localstatedir@,$localstatedir,;t t
|
cannam@86
|
24388 s,@libdir@,$libdir,;t t
|
cannam@86
|
24389 s,@includedir@,$includedir,;t t
|
cannam@86
|
24390 s,@oldincludedir@,$oldincludedir,;t t
|
cannam@86
|
24391 s,@infodir@,$infodir,;t t
|
cannam@86
|
24392 s,@mandir@,$mandir,;t t
|
cannam@86
|
24393 s,@build_alias@,$build_alias,;t t
|
cannam@86
|
24394 s,@host_alias@,$host_alias,;t t
|
cannam@86
|
24395 s,@target_alias@,$target_alias,;t t
|
cannam@86
|
24396 s,@DEFS@,$DEFS,;t t
|
cannam@86
|
24397 s,@ECHO_C@,$ECHO_C,;t t
|
cannam@86
|
24398 s,@ECHO_N@,$ECHO_N,;t t
|
cannam@86
|
24399 s,@ECHO_T@,$ECHO_T,;t t
|
cannam@86
|
24400 s,@LIBS@,$LIBS,;t t
|
cannam@86
|
24401 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
|
cannam@86
|
24402 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
|
cannam@86
|
24403 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
|
cannam@86
|
24404 s,@CYGPATH_W@,$CYGPATH_W,;t t
|
cannam@86
|
24405 s,@PACKAGE@,$PACKAGE,;t t
|
cannam@86
|
24406 s,@VERSION@,$VERSION,;t t
|
cannam@86
|
24407 s,@ACLOCAL@,$ACLOCAL,;t t
|
cannam@86
|
24408 s,@AUTOCONF@,$AUTOCONF,;t t
|
cannam@86
|
24409 s,@AUTOMAKE@,$AUTOMAKE,;t t
|
cannam@86
|
24410 s,@AUTOHEADER@,$AUTOHEADER,;t t
|
cannam@86
|
24411 s,@MAKEINFO@,$MAKEINFO,;t t
|
cannam@86
|
24412 s,@AMTAR@,$AMTAR,;t t
|
cannam@86
|
24413 s,@install_sh@,$install_sh,;t t
|
cannam@86
|
24414 s,@STRIP@,$STRIP,;t t
|
cannam@86
|
24415 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
|
cannam@86
|
24416 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
|
cannam@86
|
24417 s,@AWK@,$AWK,;t t
|
cannam@86
|
24418 s,@SET_MAKE@,$SET_MAKE,;t t
|
cannam@86
|
24419 s,@am__leading_dot@,$am__leading_dot,;t t
|
cannam@86
|
24420 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
|
cannam@86
|
24421 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
|
cannam@86
|
24422 s,@MAINT@,$MAINT,;t t
|
cannam@86
|
24423 s,@build@,$build,;t t
|
cannam@86
|
24424 s,@build_cpu@,$build_cpu,;t t
|
cannam@86
|
24425 s,@build_vendor@,$build_vendor,;t t
|
cannam@86
|
24426 s,@build_os@,$build_os,;t t
|
cannam@86
|
24427 s,@host@,$host,;t t
|
cannam@86
|
24428 s,@host_cpu@,$host_cpu,;t t
|
cannam@86
|
24429 s,@host_vendor@,$host_vendor,;t t
|
cannam@86
|
24430 s,@host_os@,$host_os,;t t
|
cannam@86
|
24431 s,@CC@,$CC,;t t
|
cannam@86
|
24432 s,@CFLAGS@,$CFLAGS,;t t
|
cannam@86
|
24433 s,@LDFLAGS@,$LDFLAGS,;t t
|
cannam@86
|
24434 s,@CPPFLAGS@,$CPPFLAGS,;t t
|
cannam@86
|
24435 s,@ac_ct_CC@,$ac_ct_CC,;t t
|
cannam@86
|
24436 s,@EXEEXT@,$EXEEXT,;t t
|
cannam@86
|
24437 s,@OBJEXT@,$OBJEXT,;t t
|
cannam@86
|
24438 s,@DEPDIR@,$DEPDIR,;t t
|
cannam@86
|
24439 s,@am__include@,$am__include,;t t
|
cannam@86
|
24440 s,@am__quote@,$am__quote,;t t
|
cannam@86
|
24441 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
|
cannam@86
|
24442 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
|
cannam@86
|
24443 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
|
cannam@86
|
24444 s,@CCDEPMODE@,$CCDEPMODE,;t t
|
cannam@86
|
24445 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
|
cannam@86
|
24446 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
|
cannam@86
|
24447 s,@EGREP@,$EGREP,;t t
|
cannam@86
|
24448 s,@LN_S@,$LN_S,;t t
|
cannam@86
|
24449 s,@ECHO@,$ECHO,;t t
|
cannam@86
|
24450 s,@AR@,$AR,;t t
|
cannam@86
|
24451 s,@ac_ct_AR@,$ac_ct_AR,;t t
|
cannam@86
|
24452 s,@RANLIB@,$RANLIB,;t t
|
cannam@86
|
24453 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
|
cannam@86
|
24454 s,@CPP@,$CPP,;t t
|
cannam@86
|
24455 s,@CXX@,$CXX,;t t
|
cannam@86
|
24456 s,@CXXFLAGS@,$CXXFLAGS,;t t
|
cannam@86
|
24457 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
|
cannam@86
|
24458 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
|
cannam@86
|
24459 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
|
cannam@86
|
24460 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
|
cannam@86
|
24461 s,@CXXCPP@,$CXXCPP,;t t
|
cannam@86
|
24462 s,@F77@,$F77,;t t
|
cannam@86
|
24463 s,@FFLAGS@,$FFLAGS,;t t
|
cannam@86
|
24464 s,@ac_ct_F77@,$ac_ct_F77,;t t
|
cannam@86
|
24465 s,@LIBTOOL@,$LIBTOOL,;t t
|
cannam@86
|
24466 s,@ACLOCAL_AMFLAGS@,$ACLOCAL_AMFLAGS,;t t
|
cannam@86
|
24467 s,@CCAS@,$CCAS,;t t
|
cannam@86
|
24468 s,@CCASFLAGS@,$CCASFLAGS,;t t
|
cannam@86
|
24469 s,@FLaC__CPU_IA32_TRUE@,$FLaC__CPU_IA32_TRUE,;t t
|
cannam@86
|
24470 s,@FLaC__CPU_IA32_FALSE@,$FLaC__CPU_IA32_FALSE,;t t
|
cannam@86
|
24471 s,@FLaC__CPU_PPC_TRUE@,$FLaC__CPU_PPC_TRUE,;t t
|
cannam@86
|
24472 s,@FLaC__CPU_PPC_FALSE@,$FLaC__CPU_PPC_FALSE,;t t
|
cannam@86
|
24473 s,@FLaC__CPU_SPARC_TRUE@,$FLaC__CPU_SPARC_TRUE,;t t
|
cannam@86
|
24474 s,@FLaC__CPU_SPARC_FALSE@,$FLaC__CPU_SPARC_FALSE,;t t
|
cannam@86
|
24475 s,@OBJ_FORMAT@,$OBJ_FORMAT,;t t
|
cannam@86
|
24476 s,@MINGW_WINSOCK_LIBS@,$MINGW_WINSOCK_LIBS,;t t
|
cannam@86
|
24477 s,@FLaC__SYS_DARWIN_TRUE@,$FLaC__SYS_DARWIN_TRUE,;t t
|
cannam@86
|
24478 s,@FLaC__SYS_DARWIN_FALSE@,$FLaC__SYS_DARWIN_FALSE,;t t
|
cannam@86
|
24479 s,@FLaC__SYS_LINUX_TRUE@,$FLaC__SYS_LINUX_TRUE,;t t
|
cannam@86
|
24480 s,@FLaC__SYS_LINUX_FALSE@,$FLaC__SYS_LINUX_FALSE,;t t
|
cannam@86
|
24481 s,@FLaC__NO_ASM_TRUE@,$FLaC__NO_ASM_TRUE,;t t
|
cannam@86
|
24482 s,@FLaC__NO_ASM_FALSE@,$FLaC__NO_ASM_FALSE,;t t
|
cannam@86
|
24483 s,@DEBUG_TRUE@,$DEBUG_TRUE,;t t
|
cannam@86
|
24484 s,@DEBUG_FALSE@,$DEBUG_FALSE,;t t
|
cannam@86
|
24485 s,@FLaC__SSE_OS_TRUE@,$FLaC__SSE_OS_TRUE,;t t
|
cannam@86
|
24486 s,@FLaC__SSE_OS_FALSE@,$FLaC__SSE_OS_FALSE,;t t
|
cannam@86
|
24487 s,@FLaC__USE_3DNOW_TRUE@,$FLaC__USE_3DNOW_TRUE,;t t
|
cannam@86
|
24488 s,@FLaC__USE_3DNOW_FALSE@,$FLaC__USE_3DNOW_FALSE,;t t
|
cannam@86
|
24489 s,@FLaC__USE_ALTIVEC_TRUE@,$FLaC__USE_ALTIVEC_TRUE,;t t
|
cannam@86
|
24490 s,@FLaC__USE_ALTIVEC_FALSE@,$FLaC__USE_ALTIVEC_FALSE,;t t
|
cannam@86
|
24491 s,@FLAC__TEST_LEVEL@,$FLAC__TEST_LEVEL,;t t
|
cannam@86
|
24492 s,@FLAC__TEST_WITH_VALGRIND@,$FLAC__TEST_WITH_VALGRIND,;t t
|
cannam@86
|
24493 s,@DOXYGEN@,$DOXYGEN,;t t
|
cannam@86
|
24494 s,@FLaC__HAS_DOXYGEN_TRUE@,$FLaC__HAS_DOXYGEN_TRUE,;t t
|
cannam@86
|
24495 s,@FLaC__HAS_DOXYGEN_FALSE@,$FLaC__HAS_DOXYGEN_FALSE,;t t
|
cannam@86
|
24496 s,@FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_TRUE@,$FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_TRUE,;t t
|
cannam@86
|
24497 s,@FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_FALSE@,$FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_FALSE,;t t
|
cannam@86
|
24498 s,@XMMS_CONFIG@,$XMMS_CONFIG,;t t
|
cannam@86
|
24499 s,@XMMS_CFLAGS@,$XMMS_CFLAGS,;t t
|
cannam@86
|
24500 s,@XMMS_LIBS@,$XMMS_LIBS,;t t
|
cannam@86
|
24501 s,@XMMS_VERSION@,$XMMS_VERSION,;t t
|
cannam@86
|
24502 s,@XMMS_DATA_DIR@,$XMMS_DATA_DIR,;t t
|
cannam@86
|
24503 s,@XMMS_PLUGIN_DIR@,$XMMS_PLUGIN_DIR,;t t
|
cannam@86
|
24504 s,@XMMS_VISUALIZATION_PLUGIN_DIR@,$XMMS_VISUALIZATION_PLUGIN_DIR,;t t
|
cannam@86
|
24505 s,@XMMS_INPUT_PLUGIN_DIR@,$XMMS_INPUT_PLUGIN_DIR,;t t
|
cannam@86
|
24506 s,@XMMS_OUTPUT_PLUGIN_DIR@,$XMMS_OUTPUT_PLUGIN_DIR,;t t
|
cannam@86
|
24507 s,@XMMS_GENERAL_PLUGIN_DIR@,$XMMS_GENERAL_PLUGIN_DIR,;t t
|
cannam@86
|
24508 s,@XMMS_EFFECT_PLUGIN_DIR@,$XMMS_EFFECT_PLUGIN_DIR,;t t
|
cannam@86
|
24509 s,@FLaC__HAS_XMMS_TRUE@,$FLaC__HAS_XMMS_TRUE,;t t
|
cannam@86
|
24510 s,@FLaC__HAS_XMMS_FALSE@,$FLaC__HAS_XMMS_FALSE,;t t
|
cannam@86
|
24511 s,@FLaC__WITH_CPPLIBS_TRUE@,$FLaC__WITH_CPPLIBS_TRUE,;t t
|
cannam@86
|
24512 s,@FLaC__WITH_CPPLIBS_FALSE@,$FLaC__WITH_CPPLIBS_FALSE,;t t
|
cannam@86
|
24513 s,@OGG_CFLAGS@,$OGG_CFLAGS,;t t
|
cannam@86
|
24514 s,@OGG_LIBS@,$OGG_LIBS,;t t
|
cannam@86
|
24515 s,@FLaC__HAS_OGG_TRUE@,$FLaC__HAS_OGG_TRUE,;t t
|
cannam@86
|
24516 s,@FLaC__HAS_OGG_FALSE@,$FLaC__HAS_OGG_FALSE,;t t
|
cannam@86
|
24517 s,@LIBICONV@,$LIBICONV,;t t
|
cannam@86
|
24518 s,@LTLIBICONV@,$LTLIBICONV,;t t
|
cannam@86
|
24519 s,@DOCBOOK_TO_MAN@,$DOCBOOK_TO_MAN,;t t
|
cannam@86
|
24520 s,@FLaC__HAS_DOCBOOK_TO_MAN_TRUE@,$FLaC__HAS_DOCBOOK_TO_MAN_TRUE,;t t
|
cannam@86
|
24521 s,@FLaC__HAS_DOCBOOK_TO_MAN_FALSE@,$FLaC__HAS_DOCBOOK_TO_MAN_FALSE,;t t
|
cannam@86
|
24522 s,@NASM@,$NASM,;t t
|
cannam@86
|
24523 s,@FLaC__HAS_NASM_TRUE@,$FLaC__HAS_NASM_TRUE,;t t
|
cannam@86
|
24524 s,@FLaC__HAS_NASM_FALSE@,$FLaC__HAS_NASM_FALSE,;t t
|
cannam@86
|
24525 s,@AS@,$AS,;t t
|
cannam@86
|
24526 s,@GAS@,$GAS,;t t
|
cannam@86
|
24527 s,@FLaC__HAS_AS_TRUE@,$FLaC__HAS_AS_TRUE,;t t
|
cannam@86
|
24528 s,@FLaC__HAS_AS_FALSE@,$FLaC__HAS_AS_FALSE,;t t
|
cannam@86
|
24529 s,@FLaC__HAS_GAS_TRUE@,$FLaC__HAS_GAS_TRUE,;t t
|
cannam@86
|
24530 s,@FLaC__HAS_GAS_FALSE@,$FLaC__HAS_GAS_FALSE,;t t
|
cannam@86
|
24531 s,@FLaC__HAS_AS__TEMPORARILY_DISABLED_TRUE@,$FLaC__HAS_AS__TEMPORARILY_DISABLED_TRUE,;t t
|
cannam@86
|
24532 s,@FLaC__HAS_AS__TEMPORARILY_DISABLED_FALSE@,$FLaC__HAS_AS__TEMPORARILY_DISABLED_FALSE,;t t
|
cannam@86
|
24533 s,@FLaC__HAS_GAS__TEMPORARILY_DISABLED_TRUE@,$FLaC__HAS_GAS__TEMPORARILY_DISABLED_TRUE,;t t
|
cannam@86
|
24534 s,@FLaC__HAS_GAS__TEMPORARILY_DISABLED_FALSE@,$FLaC__HAS_GAS__TEMPORARILY_DISABLED_FALSE,;t t
|
cannam@86
|
24535 s,@LIBOBJS@,$LIBOBJS,;t t
|
cannam@86
|
24536 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
|
cannam@86
|
24537 CEOF
|
cannam@86
|
24538
|
cannam@86
|
24539 _ACEOF
|
cannam@86
|
24540
|
cannam@86
|
24541 cat >>$CONFIG_STATUS <<\_ACEOF
|
cannam@86
|
24542 # Split the substitutions into bite-sized pieces for seds with
|
cannam@86
|
24543 # small command number limits, like on Digital OSF/1 and HP-UX.
|
cannam@86
|
24544 ac_max_sed_lines=48
|
cannam@86
|
24545 ac_sed_frag=1 # Number of current file.
|
cannam@86
|
24546 ac_beg=1 # First line for current file.
|
cannam@86
|
24547 ac_end=$ac_max_sed_lines # Line after last line for current file.
|
cannam@86
|
24548 ac_more_lines=:
|
cannam@86
|
24549 ac_sed_cmds=
|
cannam@86
|
24550 while $ac_more_lines; do
|
cannam@86
|
24551 if test $ac_beg -gt 1; then
|
cannam@86
|
24552 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
cannam@86
|
24553 else
|
cannam@86
|
24554 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
cannam@86
|
24555 fi
|
cannam@86
|
24556 if test ! -s $tmp/subs.frag; then
|
cannam@86
|
24557 ac_more_lines=false
|
cannam@86
|
24558 else
|
cannam@86
|
24559 # The purpose of the label and of the branching condition is to
|
cannam@86
|
24560 # speed up the sed processing (if there are no `@' at all, there
|
cannam@86
|
24561 # is no need to browse any of the substitutions).
|
cannam@86
|
24562 # These are the two extra sed commands mentioned above.
|
cannam@86
|
24563 (echo ':t
|
cannam@86
|
24564 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
|
cannam@86
|
24565 if test -z "$ac_sed_cmds"; then
|
cannam@86
|
24566 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
|
cannam@86
|
24567 else
|
cannam@86
|
24568 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
|
cannam@86
|
24569 fi
|
cannam@86
|
24570 ac_sed_frag=`expr $ac_sed_frag + 1`
|
cannam@86
|
24571 ac_beg=$ac_end
|
cannam@86
|
24572 ac_end=`expr $ac_end + $ac_max_sed_lines`
|
cannam@86
|
24573 fi
|
cannam@86
|
24574 done
|
cannam@86
|
24575 if test -z "$ac_sed_cmds"; then
|
cannam@86
|
24576 ac_sed_cmds=cat
|
cannam@86
|
24577 fi
|
cannam@86
|
24578 fi # test -n "$CONFIG_FILES"
|
cannam@86
|
24579
|
cannam@86
|
24580 _ACEOF
|
cannam@86
|
24581 cat >>$CONFIG_STATUS <<\_ACEOF
|
cannam@86
|
24582 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
|
cannam@86
|
24583 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
cannam@86
|
24584 case $ac_file in
|
cannam@86
|
24585 - | *:- | *:-:* ) # input from stdin
|
cannam@86
|
24586 cat >$tmp/stdin
|
cannam@86
|
24587 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
cannam@86
|
24588 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
cannam@86
|
24589 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
cannam@86
|
24590 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
cannam@86
|
24591 * ) ac_file_in=$ac_file.in ;;
|
cannam@86
|
24592 esac
|
cannam@86
|
24593
|
cannam@86
|
24594 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
|
cannam@86
|
24595 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
cannam@86
|
24596 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
cannam@86
|
24597 X"$ac_file" : 'X\(//\)[^/]' \| \
|
cannam@86
|
24598 X"$ac_file" : 'X\(//\)$' \| \
|
cannam@86
|
24599 X"$ac_file" : 'X\(/\)' \| \
|
cannam@86
|
24600 . : '\(.\)' 2>/dev/null ||
|
cannam@86
|
24601 echo X"$ac_file" |
|
cannam@86
|
24602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
cannam@86
|
24603 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
cannam@86
|
24604 /^X\(\/\/\)$/{ s//\1/; q; }
|
cannam@86
|
24605 /^X\(\/\).*/{ s//\1/; q; }
|
cannam@86
|
24606 s/.*/./; q'`
|
cannam@86
|
24607 { if $as_mkdir_p; then
|
cannam@86
|
24608 mkdir -p "$ac_dir"
|
cannam@86
|
24609 else
|
cannam@86
|
24610 as_dir="$ac_dir"
|
cannam@86
|
24611 as_dirs=
|
cannam@86
|
24612 while test ! -d "$as_dir"; do
|
cannam@86
|
24613 as_dirs="$as_dir $as_dirs"
|
cannam@86
|
24614 as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
cannam@86
|
24615 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
cannam@86
|
24616 X"$as_dir" : 'X\(//\)[^/]' \| \
|
cannam@86
|
24617 X"$as_dir" : 'X\(//\)$' \| \
|
cannam@86
|
24618 X"$as_dir" : 'X\(/\)' \| \
|
cannam@86
|
24619 . : '\(.\)' 2>/dev/null ||
|
cannam@86
|
24620 echo X"$as_dir" |
|
cannam@86
|
24621 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
cannam@86
|
24622 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
cannam@86
|
24623 /^X\(\/\/\)$/{ s//\1/; q; }
|
cannam@86
|
24624 /^X\(\/\).*/{ s//\1/; q; }
|
cannam@86
|
24625 s/.*/./; q'`
|
cannam@86
|
24626 done
|
cannam@86
|
24627 test ! -n "$as_dirs" || mkdir $as_dirs
|
cannam@86
|
24628 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
cannam@86
|
24629 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
cannam@86
|
24630 { (exit 1); exit 1; }; }; }
|
cannam@86
|
24631
|
cannam@86
|
24632 ac_builddir=.
|
cannam@86
|
24633
|
cannam@86
|
24634 if test "$ac_dir" != .; then
|
cannam@86
|
24635 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
cannam@86
|
24636 # A "../" for each directory in $ac_dir_suffix.
|
cannam@86
|
24637 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
cannam@86
|
24638 else
|
cannam@86
|
24639 ac_dir_suffix= ac_top_builddir=
|
cannam@86
|
24640 fi
|
cannam@86
|
24641
|
cannam@86
|
24642 case $srcdir in
|
cannam@86
|
24643 .) # No --srcdir option. We are building in place.
|
cannam@86
|
24644 ac_srcdir=.
|
cannam@86
|
24645 if test -z "$ac_top_builddir"; then
|
cannam@86
|
24646 ac_top_srcdir=.
|
cannam@86
|
24647 else
|
cannam@86
|
24648 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
cannam@86
|
24649 fi ;;
|
cannam@86
|
24650 [\\/]* | ?:[\\/]* ) # Absolute path.
|
cannam@86
|
24651 ac_srcdir=$srcdir$ac_dir_suffix;
|
cannam@86
|
24652 ac_top_srcdir=$srcdir ;;
|
cannam@86
|
24653 *) # Relative path.
|
cannam@86
|
24654 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
cannam@86
|
24655 ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
cannam@86
|
24656 esac
|
cannam@86
|
24657
|
cannam@86
|
24658 # Do not use `cd foo && pwd` to compute absolute paths, because
|
cannam@86
|
24659 # the directories may not exist.
|
cannam@86
|
24660 case `pwd` in
|
cannam@86
|
24661 .) ac_abs_builddir="$ac_dir";;
|
cannam@86
|
24662 *)
|
cannam@86
|
24663 case "$ac_dir" in
|
cannam@86
|
24664 .) ac_abs_builddir=`pwd`;;
|
cannam@86
|
24665 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
cannam@86
|
24666 *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
cannam@86
|
24667 esac;;
|
cannam@86
|
24668 esac
|
cannam@86
|
24669 case $ac_abs_builddir in
|
cannam@86
|
24670 .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
cannam@86
|
24671 *)
|
cannam@86
|
24672 case ${ac_top_builddir}. in
|
cannam@86
|
24673 .) ac_abs_top_builddir=$ac_abs_builddir;;
|
cannam@86
|
24674 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
cannam@86
|
24675 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
cannam@86
|
24676 esac;;
|
cannam@86
|
24677 esac
|
cannam@86
|
24678 case $ac_abs_builddir in
|
cannam@86
|
24679 .) ac_abs_srcdir=$ac_srcdir;;
|
cannam@86
|
24680 *)
|
cannam@86
|
24681 case $ac_srcdir in
|
cannam@86
|
24682 .) ac_abs_srcdir=$ac_abs_builddir;;
|
cannam@86
|
24683 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
cannam@86
|
24684 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
cannam@86
|
24685 esac;;
|
cannam@86
|
24686 esac
|
cannam@86
|
24687 case $ac_abs_builddir in
|
cannam@86
|
24688 .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
cannam@86
|
24689 *)
|
cannam@86
|
24690 case $ac_top_srcdir in
|
cannam@86
|
24691 .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
cannam@86
|
24692 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
cannam@86
|
24693 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
cannam@86
|
24694 esac;;
|
cannam@86
|
24695 esac
|
cannam@86
|
24696
|
cannam@86
|
24697
|
cannam@86
|
24698 case $INSTALL in
|
cannam@86
|
24699 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
cannam@86
|
24700 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
|
cannam@86
|
24701 esac
|
cannam@86
|
24702
|
cannam@86
|
24703 if test x"$ac_file" != x-; then
|
cannam@86
|
24704 { echo "$as_me:$LINENO: creating $ac_file" >&5
|
cannam@86
|
24705 echo "$as_me: creating $ac_file" >&6;}
|
cannam@86
|
24706 rm -f "$ac_file"
|
cannam@86
|
24707 fi
|
cannam@86
|
24708 # Let's still pretend it is `configure' which instantiates (i.e., don't
|
cannam@86
|
24709 # use $as_me), people would be surprised to read:
|
cannam@86
|
24710 # /* config.h. Generated by config.status. */
|
cannam@86
|
24711 if test x"$ac_file" = x-; then
|
cannam@86
|
24712 configure_input=
|
cannam@86
|
24713 else
|
cannam@86
|
24714 configure_input="$ac_file. "
|
cannam@86
|
24715 fi
|
cannam@86
|
24716 configure_input=$configure_input"Generated from `echo $ac_file_in |
|
cannam@86
|
24717 sed 's,.*/,,'` by configure."
|
cannam@86
|
24718
|
cannam@86
|
24719 # First look for the input files in the build tree, otherwise in the
|
cannam@86
|
24720 # src tree.
|
cannam@86
|
24721 ac_file_inputs=`IFS=:
|
cannam@86
|
24722 for f in $ac_file_in; do
|
cannam@86
|
24723 case $f in
|
cannam@86
|
24724 -) echo $tmp/stdin ;;
|
cannam@86
|
24725 [\\/$]*)
|
cannam@86
|
24726 # Absolute (can't be DOS-style, as IFS=:)
|
cannam@86
|
24727 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
cannam@86
|
24728 echo "$as_me: error: cannot find input file: $f" >&2;}
|
cannam@86
|
24729 { (exit 1); exit 1; }; }
|
cannam@86
|
24730 echo "$f";;
|
cannam@86
|
24731 *) # Relative
|
cannam@86
|
24732 if test -f "$f"; then
|
cannam@86
|
24733 # Build tree
|
cannam@86
|
24734 echo "$f"
|
cannam@86
|
24735 elif test -f "$srcdir/$f"; then
|
cannam@86
|
24736 # Source tree
|
cannam@86
|
24737 echo "$srcdir/$f"
|
cannam@86
|
24738 else
|
cannam@86
|
24739 # /dev/null tree
|
cannam@86
|
24740 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
cannam@86
|
24741 echo "$as_me: error: cannot find input file: $f" >&2;}
|
cannam@86
|
24742 { (exit 1); exit 1; }; }
|
cannam@86
|
24743 fi;;
|
cannam@86
|
24744 esac
|
cannam@86
|
24745 done` || { (exit 1); exit 1; }
|
cannam@86
|
24746 _ACEOF
|
cannam@86
|
24747 cat >>$CONFIG_STATUS <<_ACEOF
|
cannam@86
|
24748 sed "$ac_vpsub
|
cannam@86
|
24749 $extrasub
|
cannam@86
|
24750 _ACEOF
|
cannam@86
|
24751 cat >>$CONFIG_STATUS <<\_ACEOF
|
cannam@86
|
24752 :t
|
cannam@86
|
24753 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
cannam@86
|
24754 s,@configure_input@,$configure_input,;t t
|
cannam@86
|
24755 s,@srcdir@,$ac_srcdir,;t t
|
cannam@86
|
24756 s,@abs_srcdir@,$ac_abs_srcdir,;t t
|
cannam@86
|
24757 s,@top_srcdir@,$ac_top_srcdir,;t t
|
cannam@86
|
24758 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
|
cannam@86
|
24759 s,@builddir@,$ac_builddir,;t t
|
cannam@86
|
24760 s,@abs_builddir@,$ac_abs_builddir,;t t
|
cannam@86
|
24761 s,@top_builddir@,$ac_top_builddir,;t t
|
cannam@86
|
24762 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
|
cannam@86
|
24763 s,@INSTALL@,$ac_INSTALL,;t t
|
cannam@86
|
24764 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
|
cannam@86
|
24765 rm -f $tmp/stdin
|
cannam@86
|
24766 if test x"$ac_file" != x-; then
|
cannam@86
|
24767 mv $tmp/out $ac_file
|
cannam@86
|
24768 else
|
cannam@86
|
24769 cat $tmp/out
|
cannam@86
|
24770 rm -f $tmp/out
|
cannam@86
|
24771 fi
|
cannam@86
|
24772
|
cannam@86
|
24773 done
|
cannam@86
|
24774 _ACEOF
|
cannam@86
|
24775 cat >>$CONFIG_STATUS <<\_ACEOF
|
cannam@86
|
24776
|
cannam@86
|
24777 #
|
cannam@86
|
24778 # CONFIG_HEADER section.
|
cannam@86
|
24779 #
|
cannam@86
|
24780
|
cannam@86
|
24781 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
cannam@86
|
24782 # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
cannam@86
|
24783 #
|
cannam@86
|
24784 # ac_d sets the value in "#define NAME VALUE" lines.
|
cannam@86
|
24785 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
cannam@86
|
24786 ac_dB='[ ].*$,\1#\2'
|
cannam@86
|
24787 ac_dC=' '
|
cannam@86
|
24788 ac_dD=',;t'
|
cannam@86
|
24789 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
cannam@86
|
24790 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
cannam@86
|
24791 ac_uB='$,\1#\2define\3'
|
cannam@86
|
24792 ac_uC=' '
|
cannam@86
|
24793 ac_uD=',;t'
|
cannam@86
|
24794
|
cannam@86
|
24795 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
|
cannam@86
|
24796 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
cannam@86
|
24797 case $ac_file in
|
cannam@86
|
24798 - | *:- | *:-:* ) # input from stdin
|
cannam@86
|
24799 cat >$tmp/stdin
|
cannam@86
|
24800 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
cannam@86
|
24801 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
cannam@86
|
24802 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
cannam@86
|
24803 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
cannam@86
|
24804 * ) ac_file_in=$ac_file.in ;;
|
cannam@86
|
24805 esac
|
cannam@86
|
24806
|
cannam@86
|
24807 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
|
cannam@86
|
24808 echo "$as_me: creating $ac_file" >&6;}
|
cannam@86
|
24809
|
cannam@86
|
24810 # First look for the input files in the build tree, otherwise in the
|
cannam@86
|
24811 # src tree.
|
cannam@86
|
24812 ac_file_inputs=`IFS=:
|
cannam@86
|
24813 for f in $ac_file_in; do
|
cannam@86
|
24814 case $f in
|
cannam@86
|
24815 -) echo $tmp/stdin ;;
|
cannam@86
|
24816 [\\/$]*)
|
cannam@86
|
24817 # Absolute (can't be DOS-style, as IFS=:)
|
cannam@86
|
24818 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
cannam@86
|
24819 echo "$as_me: error: cannot find input file: $f" >&2;}
|
cannam@86
|
24820 { (exit 1); exit 1; }; }
|
cannam@86
|
24821 # Do quote $f, to prevent DOS paths from being IFS'd.
|
cannam@86
|
24822 echo "$f";;
|
cannam@86
|
24823 *) # Relative
|
cannam@86
|
24824 if test -f "$f"; then
|
cannam@86
|
24825 # Build tree
|
cannam@86
|
24826 echo "$f"
|
cannam@86
|
24827 elif test -f "$srcdir/$f"; then
|
cannam@86
|
24828 # Source tree
|
cannam@86
|
24829 echo "$srcdir/$f"
|
cannam@86
|
24830 else
|
cannam@86
|
24831 # /dev/null tree
|
cannam@86
|
24832 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
cannam@86
|
24833 echo "$as_me: error: cannot find input file: $f" >&2;}
|
cannam@86
|
24834 { (exit 1); exit 1; }; }
|
cannam@86
|
24835 fi;;
|
cannam@86
|
24836 esac
|
cannam@86
|
24837 done` || { (exit 1); exit 1; }
|
cannam@86
|
24838 # Remove the trailing spaces.
|
cannam@86
|
24839 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
|
cannam@86
|
24840
|
cannam@86
|
24841 _ACEOF
|
cannam@86
|
24842
|
cannam@86
|
24843 # Transform confdefs.h into two sed scripts, `conftest.defines' and
|
cannam@86
|
24844 # `conftest.undefs', that substitutes the proper values into
|
cannam@86
|
24845 # config.h.in to produce config.h. The first handles `#define'
|
cannam@86
|
24846 # templates, and the second `#undef' templates.
|
cannam@86
|
24847 # And first: Protect against being on the right side of a sed subst in
|
cannam@86
|
24848 # config.status. Protect against being in an unquoted here document
|
cannam@86
|
24849 # in config.status.
|
cannam@86
|
24850 rm -f conftest.defines conftest.undefs
|
cannam@86
|
24851 # Using a here document instead of a string reduces the quoting nightmare.
|
cannam@86
|
24852 # Putting comments in sed scripts is not portable.
|
cannam@86
|
24853 #
|
cannam@86
|
24854 # `end' is used to avoid that the second main sed command (meant for
|
cannam@86
|
24855 # 0-ary CPP macros) applies to n-ary macro definitions.
|
cannam@86
|
24856 # See the Autoconf documentation for `clear'.
|
cannam@86
|
24857 cat >confdef2sed.sed <<\_ACEOF
|
cannam@86
|
24858 s/[\\&,]/\\&/g
|
cannam@86
|
24859 s,[\\$`],\\&,g
|
cannam@86
|
24860 t clear
|
cannam@86
|
24861 : clear
|
cannam@86
|
24862 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
|
cannam@86
|
24863 t end
|
cannam@86
|
24864 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
|
cannam@86
|
24865 : end
|
cannam@86
|
24866 _ACEOF
|
cannam@86
|
24867 # If some macros were called several times there might be several times
|
cannam@86
|
24868 # the same #defines, which is useless. Nevertheless, we may not want to
|
cannam@86
|
24869 # sort them, since we want the *last* AC-DEFINE to be honored.
|
cannam@86
|
24870 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
|
cannam@86
|
24871 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
|
cannam@86
|
24872 rm -f confdef2sed.sed
|
cannam@86
|
24873
|
cannam@86
|
24874 # This sed command replaces #undef with comments. This is necessary, for
|
cannam@86
|
24875 # example, in the case of _POSIX_SOURCE, which is predefined and required
|
cannam@86
|
24876 # on some systems where configure will not decide to define it.
|
cannam@86
|
24877 cat >>conftest.undefs <<\_ACEOF
|
cannam@86
|
24878 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
|
cannam@86
|
24879 _ACEOF
|
cannam@86
|
24880
|
cannam@86
|
24881 # Break up conftest.defines because some shells have a limit on the size
|
cannam@86
|
24882 # of here documents, and old seds have small limits too (100 cmds).
|
cannam@86
|
24883 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
|
cannam@86
|
24884 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
|
cannam@86
|
24885 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
|
cannam@86
|
24886 echo ' :' >>$CONFIG_STATUS
|
cannam@86
|
24887 rm -f conftest.tail
|
cannam@86
|
24888 while grep . conftest.defines >/dev/null
|
cannam@86
|
24889 do
|
cannam@86
|
24890 # Write a limited-size here document to $tmp/defines.sed.
|
cannam@86
|
24891 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
|
cannam@86
|
24892 # Speed up: don't consider the non `#define' lines.
|
cannam@86
|
24893 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
|
cannam@86
|
24894 # Work around the forget-to-reset-the-flag bug.
|
cannam@86
|
24895 echo 't clr' >>$CONFIG_STATUS
|
cannam@86
|
24896 echo ': clr' >>$CONFIG_STATUS
|
cannam@86
|
24897 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
|
cannam@86
|
24898 echo 'CEOF
|
cannam@86
|
24899 sed -f $tmp/defines.sed $tmp/in >$tmp/out
|
cannam@86
|
24900 rm -f $tmp/in
|
cannam@86
|
24901 mv $tmp/out $tmp/in
|
cannam@86
|
24902 ' >>$CONFIG_STATUS
|
cannam@86
|
24903 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
|
cannam@86
|
24904 rm -f conftest.defines
|
cannam@86
|
24905 mv conftest.tail conftest.defines
|
cannam@86
|
24906 done
|
cannam@86
|
24907 rm -f conftest.defines
|
cannam@86
|
24908 echo ' fi # grep' >>$CONFIG_STATUS
|
cannam@86
|
24909 echo >>$CONFIG_STATUS
|
cannam@86
|
24910
|
cannam@86
|
24911 # Break up conftest.undefs because some shells have a limit on the size
|
cannam@86
|
24912 # of here documents, and old seds have small limits too (100 cmds).
|
cannam@86
|
24913 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
|
cannam@86
|
24914 rm -f conftest.tail
|
cannam@86
|
24915 while grep . conftest.undefs >/dev/null
|
cannam@86
|
24916 do
|
cannam@86
|
24917 # Write a limited-size here document to $tmp/undefs.sed.
|
cannam@86
|
24918 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
|
cannam@86
|
24919 # Speed up: don't consider the non `#undef'
|
cannam@86
|
24920 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
|
cannam@86
|
24921 # Work around the forget-to-reset-the-flag bug.
|
cannam@86
|
24922 echo 't clr' >>$CONFIG_STATUS
|
cannam@86
|
24923 echo ': clr' >>$CONFIG_STATUS
|
cannam@86
|
24924 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
|
cannam@86
|
24925 echo 'CEOF
|
cannam@86
|
24926 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
|
cannam@86
|
24927 rm -f $tmp/in
|
cannam@86
|
24928 mv $tmp/out $tmp/in
|
cannam@86
|
24929 ' >>$CONFIG_STATUS
|
cannam@86
|
24930 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
|
cannam@86
|
24931 rm -f conftest.undefs
|
cannam@86
|
24932 mv conftest.tail conftest.undefs
|
cannam@86
|
24933 done
|
cannam@86
|
24934 rm -f conftest.undefs
|
cannam@86
|
24935
|
cannam@86
|
24936 cat >>$CONFIG_STATUS <<\_ACEOF
|
cannam@86
|
24937 # Let's still pretend it is `configure' which instantiates (i.e., don't
|
cannam@86
|
24938 # use $as_me), people would be surprised to read:
|
cannam@86
|
24939 # /* config.h. Generated by config.status. */
|
cannam@86
|
24940 if test x"$ac_file" = x-; then
|
cannam@86
|
24941 echo "/* Generated by configure. */" >$tmp/config.h
|
cannam@86
|
24942 else
|
cannam@86
|
24943 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
|
cannam@86
|
24944 fi
|
cannam@86
|
24945 cat $tmp/in >>$tmp/config.h
|
cannam@86
|
24946 rm -f $tmp/in
|
cannam@86
|
24947 if test x"$ac_file" != x-; then
|
cannam@86
|
24948 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
|
cannam@86
|
24949 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
|
cannam@86
|
24950 echo "$as_me: $ac_file is unchanged" >&6;}
|
cannam@86
|
24951 else
|
cannam@86
|
24952 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
cannam@86
|
24953 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
cannam@86
|
24954 X"$ac_file" : 'X\(//\)[^/]' \| \
|
cannam@86
|
24955 X"$ac_file" : 'X\(//\)$' \| \
|
cannam@86
|
24956 X"$ac_file" : 'X\(/\)' \| \
|
cannam@86
|
24957 . : '\(.\)' 2>/dev/null ||
|
cannam@86
|
24958 echo X"$ac_file" |
|
cannam@86
|
24959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
cannam@86
|
24960 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
cannam@86
|
24961 /^X\(\/\/\)$/{ s//\1/; q; }
|
cannam@86
|
24962 /^X\(\/\).*/{ s//\1/; q; }
|
cannam@86
|
24963 s/.*/./; q'`
|
cannam@86
|
24964 { if $as_mkdir_p; then
|
cannam@86
|
24965 mkdir -p "$ac_dir"
|
cannam@86
|
24966 else
|
cannam@86
|
24967 as_dir="$ac_dir"
|
cannam@86
|
24968 as_dirs=
|
cannam@86
|
24969 while test ! -d "$as_dir"; do
|
cannam@86
|
24970 as_dirs="$as_dir $as_dirs"
|
cannam@86
|
24971 as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
cannam@86
|
24972 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
cannam@86
|
24973 X"$as_dir" : 'X\(//\)[^/]' \| \
|
cannam@86
|
24974 X"$as_dir" : 'X\(//\)$' \| \
|
cannam@86
|
24975 X"$as_dir" : 'X\(/\)' \| \
|
cannam@86
|
24976 . : '\(.\)' 2>/dev/null ||
|
cannam@86
|
24977 echo X"$as_dir" |
|
cannam@86
|
24978 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
cannam@86
|
24979 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
cannam@86
|
24980 /^X\(\/\/\)$/{ s//\1/; q; }
|
cannam@86
|
24981 /^X\(\/\).*/{ s//\1/; q; }
|
cannam@86
|
24982 s/.*/./; q'`
|
cannam@86
|
24983 done
|
cannam@86
|
24984 test ! -n "$as_dirs" || mkdir $as_dirs
|
cannam@86
|
24985 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
cannam@86
|
24986 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
cannam@86
|
24987 { (exit 1); exit 1; }; }; }
|
cannam@86
|
24988
|
cannam@86
|
24989 rm -f $ac_file
|
cannam@86
|
24990 mv $tmp/config.h $ac_file
|
cannam@86
|
24991 fi
|
cannam@86
|
24992 else
|
cannam@86
|
24993 cat $tmp/config.h
|
cannam@86
|
24994 rm -f $tmp/config.h
|
cannam@86
|
24995 fi
|
cannam@86
|
24996 # Compute $ac_file's index in $config_headers.
|
cannam@86
|
24997 _am_stamp_count=1
|
cannam@86
|
24998 for _am_header in $config_headers :; do
|
cannam@86
|
24999 case $_am_header in
|
cannam@86
|
25000 $ac_file | $ac_file:* )
|
cannam@86
|
25001 break ;;
|
cannam@86
|
25002 * )
|
cannam@86
|
25003 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
|
cannam@86
|
25004 esac
|
cannam@86
|
25005 done
|
cannam@86
|
25006 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
|
cannam@86
|
25007 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
cannam@86
|
25008 X$ac_file : 'X\(//\)[^/]' \| \
|
cannam@86
|
25009 X$ac_file : 'X\(//\)$' \| \
|
cannam@86
|
25010 X$ac_file : 'X\(/\)' \| \
|
cannam@86
|
25011 . : '\(.\)' 2>/dev/null ||
|
cannam@86
|
25012 echo X$ac_file |
|
cannam@86
|
25013 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
cannam@86
|
25014 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
cannam@86
|
25015 /^X\(\/\/\)$/{ s//\1/; q; }
|
cannam@86
|
25016 /^X\(\/\).*/{ s//\1/; q; }
|
cannam@86
|
25017 s/.*/./; q'`/stamp-h$_am_stamp_count
|
cannam@86
|
25018 done
|
cannam@86
|
25019 _ACEOF
|
cannam@86
|
25020 cat >>$CONFIG_STATUS <<\_ACEOF
|
cannam@86
|
25021
|
cannam@86
|
25022 #
|
cannam@86
|
25023 # CONFIG_COMMANDS section.
|
cannam@86
|
25024 #
|
cannam@86
|
25025 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
|
cannam@86
|
25026 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
|
cannam@86
|
25027 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
cannam@86
|
25028 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
|
cannam@86
|
25029 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
cannam@86
|
25030 X"$ac_dest" : 'X\(//\)[^/]' \| \
|
cannam@86
|
25031 X"$ac_dest" : 'X\(//\)$' \| \
|
cannam@86
|
25032 X"$ac_dest" : 'X\(/\)' \| \
|
cannam@86
|
25033 . : '\(.\)' 2>/dev/null ||
|
cannam@86
|
25034 echo X"$ac_dest" |
|
cannam@86
|
25035 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
cannam@86
|
25036 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
cannam@86
|
25037 /^X\(\/\/\)$/{ s//\1/; q; }
|
cannam@86
|
25038 /^X\(\/\).*/{ s//\1/; q; }
|
cannam@86
|
25039 s/.*/./; q'`
|
cannam@86
|
25040 { if $as_mkdir_p; then
|
cannam@86
|
25041 mkdir -p "$ac_dir"
|
cannam@86
|
25042 else
|
cannam@86
|
25043 as_dir="$ac_dir"
|
cannam@86
|
25044 as_dirs=
|
cannam@86
|
25045 while test ! -d "$as_dir"; do
|
cannam@86
|
25046 as_dirs="$as_dir $as_dirs"
|
cannam@86
|
25047 as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
cannam@86
|
25048 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
cannam@86
|
25049 X"$as_dir" : 'X\(//\)[^/]' \| \
|
cannam@86
|
25050 X"$as_dir" : 'X\(//\)$' \| \
|
cannam@86
|
25051 X"$as_dir" : 'X\(/\)' \| \
|
cannam@86
|
25052 . : '\(.\)' 2>/dev/null ||
|
cannam@86
|
25053 echo X"$as_dir" |
|
cannam@86
|
25054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
cannam@86
|
25055 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
cannam@86
|
25056 /^X\(\/\/\)$/{ s//\1/; q; }
|
cannam@86
|
25057 /^X\(\/\).*/{ s//\1/; q; }
|
cannam@86
|
25058 s/.*/./; q'`
|
cannam@86
|
25059 done
|
cannam@86
|
25060 test ! -n "$as_dirs" || mkdir $as_dirs
|
cannam@86
|
25061 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
cannam@86
|
25062 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
cannam@86
|
25063 { (exit 1); exit 1; }; }; }
|
cannam@86
|
25064
|
cannam@86
|
25065 ac_builddir=.
|
cannam@86
|
25066
|
cannam@86
|
25067 if test "$ac_dir" != .; then
|
cannam@86
|
25068 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
cannam@86
|
25069 # A "../" for each directory in $ac_dir_suffix.
|
cannam@86
|
25070 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
cannam@86
|
25071 else
|
cannam@86
|
25072 ac_dir_suffix= ac_top_builddir=
|
cannam@86
|
25073 fi
|
cannam@86
|
25074
|
cannam@86
|
25075 case $srcdir in
|
cannam@86
|
25076 .) # No --srcdir option. We are building in place.
|
cannam@86
|
25077 ac_srcdir=.
|
cannam@86
|
25078 if test -z "$ac_top_builddir"; then
|
cannam@86
|
25079 ac_top_srcdir=.
|
cannam@86
|
25080 else
|
cannam@86
|
25081 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
cannam@86
|
25082 fi ;;
|
cannam@86
|
25083 [\\/]* | ?:[\\/]* ) # Absolute path.
|
cannam@86
|
25084 ac_srcdir=$srcdir$ac_dir_suffix;
|
cannam@86
|
25085 ac_top_srcdir=$srcdir ;;
|
cannam@86
|
25086 *) # Relative path.
|
cannam@86
|
25087 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
cannam@86
|
25088 ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
cannam@86
|
25089 esac
|
cannam@86
|
25090
|
cannam@86
|
25091 # Do not use `cd foo && pwd` to compute absolute paths, because
|
cannam@86
|
25092 # the directories may not exist.
|
cannam@86
|
25093 case `pwd` in
|
cannam@86
|
25094 .) ac_abs_builddir="$ac_dir";;
|
cannam@86
|
25095 *)
|
cannam@86
|
25096 case "$ac_dir" in
|
cannam@86
|
25097 .) ac_abs_builddir=`pwd`;;
|
cannam@86
|
25098 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
cannam@86
|
25099 *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
cannam@86
|
25100 esac;;
|
cannam@86
|
25101 esac
|
cannam@86
|
25102 case $ac_abs_builddir in
|
cannam@86
|
25103 .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
cannam@86
|
25104 *)
|
cannam@86
|
25105 case ${ac_top_builddir}. in
|
cannam@86
|
25106 .) ac_abs_top_builddir=$ac_abs_builddir;;
|
cannam@86
|
25107 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
cannam@86
|
25108 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
cannam@86
|
25109 esac;;
|
cannam@86
|
25110 esac
|
cannam@86
|
25111 case $ac_abs_builddir in
|
cannam@86
|
25112 .) ac_abs_srcdir=$ac_srcdir;;
|
cannam@86
|
25113 *)
|
cannam@86
|
25114 case $ac_srcdir in
|
cannam@86
|
25115 .) ac_abs_srcdir=$ac_abs_builddir;;
|
cannam@86
|
25116 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
cannam@86
|
25117 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
cannam@86
|
25118 esac;;
|
cannam@86
|
25119 esac
|
cannam@86
|
25120 case $ac_abs_builddir in
|
cannam@86
|
25121 .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
cannam@86
|
25122 *)
|
cannam@86
|
25123 case $ac_top_srcdir in
|
cannam@86
|
25124 .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
cannam@86
|
25125 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
cannam@86
|
25126 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
cannam@86
|
25127 esac;;
|
cannam@86
|
25128 esac
|
cannam@86
|
25129
|
cannam@86
|
25130
|
cannam@86
|
25131 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
|
cannam@86
|
25132 echo "$as_me: executing $ac_dest commands" >&6;}
|
cannam@86
|
25133 case $ac_dest in
|
cannam@86
|
25134 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
|
cannam@86
|
25135 # Strip MF so we end up with the name of the file.
|
cannam@86
|
25136 mf=`echo "$mf" | sed -e 's/:.*$//'`
|
cannam@86
|
25137 # Check whether this is an Automake generated Makefile or not.
|
cannam@86
|
25138 # We used to match only the files named `Makefile.in', but
|
cannam@86
|
25139 # some people rename them; so instead we look at the file content.
|
cannam@86
|
25140 # Grep'ing the first line is not enough: some people post-process
|
cannam@86
|
25141 # each Makefile.in and add a new line on top of each file to say so.
|
cannam@86
|
25142 # So let's grep whole file.
|
cannam@86
|
25143 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
|
cannam@86
|
25144 dirpart=`(dirname "$mf") 2>/dev/null ||
|
cannam@86
|
25145 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
cannam@86
|
25146 X"$mf" : 'X\(//\)[^/]' \| \
|
cannam@86
|
25147 X"$mf" : 'X\(//\)$' \| \
|
cannam@86
|
25148 X"$mf" : 'X\(/\)' \| \
|
cannam@86
|
25149 . : '\(.\)' 2>/dev/null ||
|
cannam@86
|
25150 echo X"$mf" |
|
cannam@86
|
25151 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
cannam@86
|
25152 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
cannam@86
|
25153 /^X\(\/\/\)$/{ s//\1/; q; }
|
cannam@86
|
25154 /^X\(\/\).*/{ s//\1/; q; }
|
cannam@86
|
25155 s/.*/./; q'`
|
cannam@86
|
25156 else
|
cannam@86
|
25157 continue
|
cannam@86
|
25158 fi
|
cannam@86
|
25159 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
|
cannam@86
|
25160 # Extract the definition of DEP_FILES from the Makefile without
|
cannam@86
|
25161 # running `make'.
|
cannam@86
|
25162 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
|
cannam@86
|
25163 test -z "$DEPDIR" && continue
|
cannam@86
|
25164 # When using ansi2knr, U may be empty or an underscore; expand it
|
cannam@86
|
25165 U=`sed -n -e '/^U = / s///p' < "$mf"`
|
cannam@86
|
25166 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
|
cannam@86
|
25167 # We invoke sed twice because it is the simplest approach to
|
cannam@86
|
25168 # changing $(DEPDIR) to its actual value in the expansion.
|
cannam@86
|
25169 for file in `sed -n -e '
|
cannam@86
|
25170 /^DEP_FILES = .*\\\\$/ {
|
cannam@86
|
25171 s/^DEP_FILES = //
|
cannam@86
|
25172 :loop
|
cannam@86
|
25173 s/\\\\$//
|
cannam@86
|
25174 p
|
cannam@86
|
25175 n
|
cannam@86
|
25176 /\\\\$/ b loop
|
cannam@86
|
25177 p
|
cannam@86
|
25178 }
|
cannam@86
|
25179 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
|
cannam@86
|
25180 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
|
cannam@86
|
25181 # Make sure the directory exists.
|
cannam@86
|
25182 test -f "$dirpart/$file" && continue
|
cannam@86
|
25183 fdir=`(dirname "$file") 2>/dev/null ||
|
cannam@86
|
25184 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
cannam@86
|
25185 X"$file" : 'X\(//\)[^/]' \| \
|
cannam@86
|
25186 X"$file" : 'X\(//\)$' \| \
|
cannam@86
|
25187 X"$file" : 'X\(/\)' \| \
|
cannam@86
|
25188 . : '\(.\)' 2>/dev/null ||
|
cannam@86
|
25189 echo X"$file" |
|
cannam@86
|
25190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
cannam@86
|
25191 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
cannam@86
|
25192 /^X\(\/\/\)$/{ s//\1/; q; }
|
cannam@86
|
25193 /^X\(\/\).*/{ s//\1/; q; }
|
cannam@86
|
25194 s/.*/./; q'`
|
cannam@86
|
25195 { if $as_mkdir_p; then
|
cannam@86
|
25196 mkdir -p $dirpart/$fdir
|
cannam@86
|
25197 else
|
cannam@86
|
25198 as_dir=$dirpart/$fdir
|
cannam@86
|
25199 as_dirs=
|
cannam@86
|
25200 while test ! -d "$as_dir"; do
|
cannam@86
|
25201 as_dirs="$as_dir $as_dirs"
|
cannam@86
|
25202 as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
cannam@86
|
25203 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
cannam@86
|
25204 X"$as_dir" : 'X\(//\)[^/]' \| \
|
cannam@86
|
25205 X"$as_dir" : 'X\(//\)$' \| \
|
cannam@86
|
25206 X"$as_dir" : 'X\(/\)' \| \
|
cannam@86
|
25207 . : '\(.\)' 2>/dev/null ||
|
cannam@86
|
25208 echo X"$as_dir" |
|
cannam@86
|
25209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
cannam@86
|
25210 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
cannam@86
|
25211 /^X\(\/\/\)$/{ s//\1/; q; }
|
cannam@86
|
25212 /^X\(\/\).*/{ s//\1/; q; }
|
cannam@86
|
25213 s/.*/./; q'`
|
cannam@86
|
25214 done
|
cannam@86
|
25215 test ! -n "$as_dirs" || mkdir $as_dirs
|
cannam@86
|
25216 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
|
cannam@86
|
25217 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
|
cannam@86
|
25218 { (exit 1); exit 1; }; }; }
|
cannam@86
|
25219
|
cannam@86
|
25220 # echo "creating $dirpart/$file"
|
cannam@86
|
25221 echo '# dummy' > "$dirpart/$file"
|
cannam@86
|
25222 done
|
cannam@86
|
25223 done
|
cannam@86
|
25224 ;;
|
cannam@86
|
25225 esac
|
cannam@86
|
25226 done
|
cannam@86
|
25227 _ACEOF
|
cannam@86
|
25228
|
cannam@86
|
25229 cat >>$CONFIG_STATUS <<\_ACEOF
|
cannam@86
|
25230
|
cannam@86
|
25231 { (exit 0); exit 0; }
|
cannam@86
|
25232 _ACEOF
|
cannam@86
|
25233 chmod +x $CONFIG_STATUS
|
cannam@86
|
25234 ac_clean_files=$ac_clean_files_save
|
cannam@86
|
25235
|
cannam@86
|
25236
|
cannam@86
|
25237 # configure is writing to config.log, and then calls config.status.
|
cannam@86
|
25238 # config.status does its own redirection, appending to config.log.
|
cannam@86
|
25239 # Unfortunately, on DOS this fails, as config.log is still kept open
|
cannam@86
|
25240 # by configure, so config.status won't be able to write to it; its
|
cannam@86
|
25241 # output is simply discarded. So we exec the FD to /dev/null,
|
cannam@86
|
25242 # effectively closing config.log, so it can be properly (re)opened and
|
cannam@86
|
25243 # appended to by config.status. When coming back to configure, we
|
cannam@86
|
25244 # need to make the FD available again.
|
cannam@86
|
25245 if test "$no_create" != yes; then
|
cannam@86
|
25246 ac_cs_success=:
|
cannam@86
|
25247 ac_config_status_args=
|
cannam@86
|
25248 test "$silent" = yes &&
|
cannam@86
|
25249 ac_config_status_args="$ac_config_status_args --quiet"
|
cannam@86
|
25250 exec 5>/dev/null
|
cannam@86
|
25251 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
cannam@86
|
25252 exec 5>>config.log
|
cannam@86
|
25253 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
cannam@86
|
25254 # would make configure fail if this is the last instruction.
|
cannam@86
|
25255 $ac_cs_success || { (exit 1); exit 1; }
|
cannam@86
|
25256 fi
|
cannam@86
|
25257
|