d9898ee8 |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. |
3 | # Generated by GNU Autoconf 2.59 for courier-authlib 0.59.3. |
4 | # |
5 | # Report bugs to <courier-users@lists.sourceforge.net>. |
6 | # |
7 | # Copyright (C) 2003 Free Software Foundation, Inc. |
8 | # This configure script is free software; the Free Software Foundation |
9 | # gives unlimited permission to copy, distribute and modify it. |
10 | ## --------------------- ## |
11 | ## M4sh Initialization. ## |
12 | ## --------------------- ## |
13 | |
14 | # Be Bourne compatible |
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
16 | emulate sh |
17 | NULLCMD=: |
18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
19 | # is contrary to our usage. Disable this feature. |
20 | alias -g '${1+"$@"}'='"$@"' |
21 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
22 | set -o posix |
23 | fi |
24 | DUALCASE=1; export DUALCASE # for MKS sh |
25 | |
26 | # Support unset when possible. |
27 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
28 | as_unset=unset |
29 | else |
30 | as_unset=false |
31 | fi |
32 | |
33 | |
34 | # Work around bugs in pre-3.0 UWIN ksh. |
35 | $as_unset ENV MAIL MAILPATH |
36 | PS1='$ ' |
37 | PS2='> ' |
38 | PS4='+ ' |
39 | |
40 | # NLS nuisances. |
41 | for as_var in \ |
42 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
43 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
44 | LC_TELEPHONE LC_TIME |
45 | do |
46 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
47 | eval $as_var=C; export $as_var |
48 | else |
49 | $as_unset $as_var |
50 | fi |
51 | done |
52 | |
53 | # Required to use basename. |
54 | if expr a : '\(a\)' >/dev/null 2>&1; then |
55 | as_expr=expr |
56 | else |
57 | as_expr=false |
58 | fi |
59 | |
60 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
61 | as_basename=basename |
62 | else |
63 | as_basename=false |
64 | fi |
65 | |
66 | |
67 | # Name of the executable. |
68 | as_me=`$as_basename "$0" || |
69 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
70 | X"$0" : 'X\(//\)$' \| \ |
71 | X"$0" : 'X\(/\)$' \| \ |
72 | . : '\(.\)' 2>/dev/null || |
73 | echo X/"$0" | |
74 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
75 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
76 | /^X\/\(\/\).*/{ s//\1/; q; } |
77 | s/.*/./; q'` |
78 | |
79 | |
80 | # PATH needs CR, and LINENO needs CR and PATH. |
81 | # Avoid depending upon Character Ranges. |
82 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
83 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
84 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
85 | as_cr_digits='0123456789' |
86 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
87 | |
88 | # The user is always right. |
89 | if test "${PATH_SEPARATOR+set}" != set; then |
90 | echo "#! /bin/sh" >conf$$.sh |
91 | echo "exit 0" >>conf$$.sh |
92 | chmod +x conf$$.sh |
93 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
94 | PATH_SEPARATOR=';' |
95 | else |
96 | PATH_SEPARATOR=: |
97 | fi |
98 | rm -f conf$$.sh |
99 | fi |
100 | |
101 | |
102 | as_lineno_1=$LINENO |
103 | as_lineno_2=$LINENO |
104 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
105 | test "x$as_lineno_1" != "x$as_lineno_2" && |
106 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
107 | # Find who we are. Look in the path if we contain no path at all |
108 | # relative or not. |
109 | case $0 in |
110 | *[\\/]* ) as_myself=$0 ;; |
111 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
112 | for as_dir in $PATH |
113 | do |
114 | IFS=$as_save_IFS |
115 | test -z "$as_dir" && as_dir=. |
116 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
117 | done |
118 | |
119 | ;; |
120 | esac |
121 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
122 | # in which case we are not to be found in the path. |
123 | if test "x$as_myself" = x; then |
124 | as_myself=$0 |
125 | fi |
126 | if test ! -f "$as_myself"; then |
127 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
128 | { (exit 1); exit 1; }; } |
129 | fi |
130 | case $CONFIG_SHELL in |
131 | '') |
132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
133 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
134 | do |
135 | IFS=$as_save_IFS |
136 | test -z "$as_dir" && as_dir=. |
137 | for as_base in sh bash ksh sh5; do |
138 | case $as_dir in |
139 | /*) |
140 | if ("$as_dir/$as_base" -c ' |
141 | as_lineno_1=$LINENO |
142 | as_lineno_2=$LINENO |
143 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
144 | test "x$as_lineno_1" != "x$as_lineno_2" && |
145 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
146 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
147 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
148 | CONFIG_SHELL=$as_dir/$as_base |
149 | export CONFIG_SHELL |
150 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
151 | fi;; |
152 | esac |
153 | done |
154 | done |
155 | ;; |
156 | esac |
157 | |
158 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
159 | # uniformly replaced by the line number. The first 'sed' inserts a |
160 | # line-number line before each line; the second 'sed' does the real |
161 | # work. The second script uses 'N' to pair each line-number line |
162 | # with the numbered line, and appends trailing '-' during |
163 | # substitution so that $LINENO is not a special case at line end. |
164 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
165 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
166 | sed '=' <$as_myself | |
167 | sed ' |
168 | N |
169 | s,$,-, |
170 | : loop |
171 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
172 | t loop |
173 | s,-$,, |
174 | s,^['$as_cr_digits']*\n,, |
175 | ' >$as_me.lineno && |
176 | chmod +x $as_me.lineno || |
177 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
178 | { (exit 1); exit 1; }; } |
179 | |
180 | # Don't try to exec as it changes $[0], causing all sort of problems |
181 | # (the dirname of $[0] is not the place where we might find the |
182 | # original and so on. Autoconf is especially sensible to this). |
183 | . ./$as_me.lineno |
184 | # Exit status is that of the last command. |
185 | exit |
186 | } |
187 | |
188 | |
189 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
190 | *c*,-n*) ECHO_N= ECHO_C=' |
191 | ' ECHO_T=' ' ;; |
192 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
193 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
194 | esac |
195 | |
196 | if expr a : '\(a\)' >/dev/null 2>&1; then |
197 | as_expr=expr |
198 | else |
199 | as_expr=false |
200 | fi |
201 | |
202 | rm -f conf$$ conf$$.exe conf$$.file |
203 | echo >conf$$.file |
204 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
205 | # We could just check for DJGPP; but this test a) works b) is more generic |
206 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
207 | if test -f conf$$.exe; then |
208 | # Don't use ln at all; we don't have any links |
209 | as_ln_s='cp -p' |
210 | else |
211 | as_ln_s='ln -s' |
212 | fi |
213 | elif ln conf$$.file conf$$ 2>/dev/null; then |
214 | as_ln_s=ln |
215 | else |
216 | as_ln_s='cp -p' |
217 | fi |
218 | rm -f conf$$ conf$$.exe conf$$.file |
219 | |
220 | if mkdir -p . 2>/dev/null; then |
221 | as_mkdir_p=: |
222 | else |
223 | test -d ./-p && rmdir ./-p |
224 | as_mkdir_p=false |
225 | fi |
226 | |
227 | as_executable_p="test -f" |
228 | |
229 | # Sed expression to map a string onto a valid CPP name. |
230 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
231 | |
232 | # Sed expression to map a string onto a valid variable name. |
233 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
234 | |
235 | |
236 | # IFS |
237 | # We need space, tab and new line, in precisely that order. |
238 | as_nl=' |
239 | ' |
240 | IFS=" $as_nl" |
241 | |
242 | # CDPATH. |
243 | $as_unset CDPATH |
244 | |
245 | |
246 | |
247 | # Check that we are running under the correct shell. |
248 | SHELL=${CONFIG_SHELL-/bin/sh} |
249 | |
250 | case X$ECHO in |
251 | X*--fallback-echo) |
252 | # Remove one level of quotation (which was required for Make). |
253 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
254 | ;; |
255 | esac |
256 | |
257 | echo=${ECHO-echo} |
258 | if test "X$1" = X--no-reexec; then |
259 | # Discard the --no-reexec flag, and continue. |
260 | shift |
261 | elif test "X$1" = X--fallback-echo; then |
262 | # Avoid inline document here, it may be left over |
263 | : |
264 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
265 | # Yippee, $echo works! |
266 | : |
267 | else |
268 | # Restart under the correct shell. |
269 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
270 | fi |
271 | |
272 | if test "X$1" = X--fallback-echo; then |
273 | # used as fallback echo |
274 | shift |
275 | cat <<EOF |
276 | $* |
277 | EOF |
278 | exit 0 |
279 | fi |
280 | |
281 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
282 | # if CDPATH is set. |
283 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
284 | |
285 | if test -z "$ECHO"; then |
286 | if test "X${echo_test_string+set}" != Xset; then |
287 | # find a string as large as possible, as long as the shell can cope with it |
288 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
289 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
290 | if (echo_test_string=`eval $cmd`) 2>/dev/null && |
291 | echo_test_string=`eval $cmd` && |
292 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
293 | then |
294 | break |
295 | fi |
296 | done |
297 | fi |
298 | |
299 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
300 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
301 | test "X$echo_testing_string" = "X$echo_test_string"; then |
302 | : |
303 | else |
304 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
305 | # backslashes. This makes it impossible to quote backslashes using |
306 | # echo "$something" | sed 's/\\/\\\\/g' |
307 | # |
308 | # So, first we look for a working echo in the user's PATH. |
309 | |
310 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
311 | for dir in $PATH /usr/ucb; do |
312 | IFS="$lt_save_ifs" |
313 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
314 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
315 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
316 | test "X$echo_testing_string" = "X$echo_test_string"; then |
317 | echo="$dir/echo" |
318 | break |
319 | fi |
320 | done |
321 | IFS="$lt_save_ifs" |
322 | |
323 | if test "X$echo" = Xecho; then |
324 | # We didn't find a better echo, so look for alternatives. |
325 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
326 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
327 | test "X$echo_testing_string" = "X$echo_test_string"; then |
328 | # This shell has a builtin print -r that does the trick. |
329 | echo='print -r' |
330 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
331 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
332 | # If we have ksh, try running configure again with it. |
333 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
334 | export ORIGINAL_CONFIG_SHELL |
335 | CONFIG_SHELL=/bin/ksh |
336 | export CONFIG_SHELL |
337 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
338 | else |
339 | # Try using printf. |
340 | echo='printf %s\n' |
341 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
342 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
343 | test "X$echo_testing_string" = "X$echo_test_string"; then |
344 | # Cool, printf works |
345 | : |
346 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
347 | test "X$echo_testing_string" = 'X\t' && |
348 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
349 | test "X$echo_testing_string" = "X$echo_test_string"; then |
350 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
351 | export CONFIG_SHELL |
352 | SHELL="$CONFIG_SHELL" |
353 | export SHELL |
354 | echo="$CONFIG_SHELL $0 --fallback-echo" |
355 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
356 | test "X$echo_testing_string" = 'X\t' && |
357 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
358 | test "X$echo_testing_string" = "X$echo_test_string"; then |
359 | echo="$CONFIG_SHELL $0 --fallback-echo" |
360 | else |
361 | # maybe with a smaller string... |
362 | prev=: |
363 | |
364 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
365 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
366 | then |
367 | break |
368 | fi |
369 | prev="$cmd" |
370 | done |
371 | |
372 | if test "$prev" != 'sed 50q "$0"'; then |
373 | echo_test_string=`eval $prev` |
374 | export echo_test_string |
375 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
376 | else |
377 | # Oops. We lost completely, so just stick with echo. |
378 | echo=echo |
379 | fi |
380 | fi |
381 | fi |
382 | fi |
383 | fi |
384 | fi |
385 | |
386 | # Copy echo and quote the copy suitably for passing to libtool from |
387 | # the Makefile, instead of quoting the original, which is used later. |
388 | ECHO=$echo |
389 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
390 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
391 | fi |
392 | |
393 | |
394 | |
395 | |
396 | tagnames=${tagnames+${tagnames},}CXX |
397 | |
398 | tagnames=${tagnames+${tagnames},}F77 |
399 | |
400 | # Name of the host. |
401 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
402 | # so uname gets run too. |
403 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
404 | |
405 | exec 6>&1 |
406 | |
407 | # |
408 | # Initializations. |
409 | # |
410 | ac_default_prefix=/usr/local |
411 | ac_config_libobj_dir=. |
412 | cross_compiling=no |
413 | subdirs= |
414 | MFLAGS= |
415 | MAKEFLAGS= |
416 | SHELL=${CONFIG_SHELL-/bin/sh} |
417 | |
418 | # Maximum number of lines to put in a shell here document. |
419 | # This variable seems obsolete. It should probably be removed, and |
420 | # only ac_max_sed_lines should be used. |
421 | : ${ac_max_here_lines=38} |
422 | |
423 | # Identity of this package. |
424 | PACKAGE_NAME='courier-authlib' |
425 | PACKAGE_TARNAME='courier-authlib' |
426 | PACKAGE_VERSION='0.59.3' |
427 | PACKAGE_STRING='courier-authlib 0.59.3' |
428 | PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' |
429 | |
430 | ac_unique_file="courierauth.h" |
431 | # Factoring default headers for most tests. |
432 | ac_includes_default="\ |
433 | #include <stdio.h> |
434 | #if HAVE_SYS_TYPES_H |
435 | # include <sys/types.h> |
436 | #endif |
437 | #if HAVE_SYS_STAT_H |
438 | # include <sys/stat.h> |
439 | #endif |
440 | #if STDC_HEADERS |
441 | # include <stdlib.h> |
442 | # include <stddef.h> |
443 | #else |
444 | # if HAVE_STDLIB_H |
445 | # include <stdlib.h> |
446 | # endif |
447 | #endif |
448 | #if HAVE_STRING_H |
449 | # if !STDC_HEADERS && HAVE_MEMORY_H |
450 | # include <memory.h> |
451 | # endif |
452 | # include <string.h> |
453 | #endif |
454 | #if HAVE_STRINGS_H |
455 | # include <strings.h> |
456 | #endif |
457 | #if HAVE_INTTYPES_H |
458 | # include <inttypes.h> |
459 | #else |
460 | # if HAVE_STDINT_H |
461 | # include <stdint.h> |
462 | # endif |
463 | #endif |
464 | #if HAVE_UNISTD_H |
465 | # include <unistd.h> |
466 | #endif" |
467 | |
468 | ac_subdirs_all="$ac_subdirs_all libltdl bdbobj gdbmobj md5 sha1 libhmac numlib makedat userdb rfc822 random128 liblock liblog" |
469 | 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 install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar 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 CPP LN_S SYSCONFTOOL_PERL SYSCONFTOOL build build_cpu build_vendor build_os host host_cpu host_vendor host_os SED EGREP ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LTDLINCL LIBLTDL PERL COURIERCONFIG EXPECT PASSWD MD5LIB HAVE_MD5_TRUE HAVE_MD5_FALSE SHA1LIB HAVE_SHA1_TRUE HAVE_SHA1_FALSE HMACLIB HAVE_HMACLIB_TRUE HAVE_HMACLIB_FALSE NETLIBS DBSUBDIR USE_GDBM USE_DB LIBDB LIBGDBM dblibrary LIBAUTHUSERDB userdb LIBDL AUTHPAMCRYPT LIBAUTHPAM authldaprc LDAPLIBS LIBAUTHLDAP HAVE_LDAP_TRUE HAVE_LDAP_FALSE SHADOWLIBS LIBAUTHSHADOW LIBAUTHPWD vpopmail_home VPOPMAILLIBS LIBAUTHVCHKPW authpgsqlrc PG_CONFIG PGSQL_LIBS LIBAUTHPGSQL HAVE_AUTHPGSQL_TRUE HAVE_AUTHPGSQL_FALSE authmysqlrc MYSQL_CONFIG LIBAUTHMYSQL MYSQL_LIBS HAVE_AUTHMYSQL_TRUE HAVE_AUTHMYSQL_FALSE HAVE_CUSTOM_TRUE HAVE_CUSTOM_FALSE LIBAUTHCUSTOM authProg HAVE_PIPE_TRUE HAVE_PIPE_FALSE LIBAUTHPIPE CRYPTLIBS authdaemonrc authdaemonvar LIBM mailuser mailgroup LIBLTDL_SUBDIR REPOSITORY HAVE_SGML_TRUE HAVE_SGML_FALSE subdirs LIBOBJS LTLIBOBJS' |
470 | ac_subst_files='' |
471 | |
472 | # Initialize some variables set by options. |
473 | ac_init_help= |
474 | ac_init_version=false |
475 | # The variables have the same names as the options, with |
476 | # dashes changed to underlines. |
477 | cache_file=/dev/null |
478 | exec_prefix=NONE |
479 | no_create= |
480 | no_recursion= |
481 | prefix=NONE |
482 | program_prefix=NONE |
483 | program_suffix=NONE |
484 | program_transform_name=s,x,x, |
485 | silent= |
486 | site= |
487 | srcdir= |
488 | verbose= |
489 | x_includes=NONE |
490 | x_libraries=NONE |
491 | |
492 | # Installation directory options. |
493 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
494 | # and all the variables that are supposed to be based on exec_prefix |
495 | # by default will actually change. |
496 | # Use braces instead of parens because sh, perl, etc. also accept them. |
497 | bindir='${exec_prefix}/bin' |
498 | sbindir='${exec_prefix}/sbin' |
499 | libexecdir='${exec_prefix}/libexec' |
500 | datadir='${prefix}/share' |
501 | sysconfdir='${prefix}/etc' |
502 | sharedstatedir='${prefix}/com' |
503 | localstatedir='${prefix}/var' |
504 | libdir='${exec_prefix}/lib' |
505 | includedir='${prefix}/include' |
506 | oldincludedir='/usr/include' |
507 | infodir='${prefix}/info' |
508 | mandir='${prefix}/man' |
509 | |
510 | ac_prev= |
511 | for ac_option |
512 | do |
513 | # If the previous option needs an argument, assign it. |
514 | if test -n "$ac_prev"; then |
515 | eval "$ac_prev=\$ac_option" |
516 | ac_prev= |
517 | continue |
518 | fi |
519 | |
520 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
521 | |
522 | # Accept the important Cygnus configure options, so we can diagnose typos. |
523 | |
524 | case $ac_option in |
525 | |
526 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
527 | ac_prev=bindir ;; |
528 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
529 | bindir=$ac_optarg ;; |
530 | |
531 | -build | --build | --buil | --bui | --bu) |
532 | ac_prev=build_alias ;; |
533 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
534 | build_alias=$ac_optarg ;; |
535 | |
536 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
537 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
538 | ac_prev=cache_file ;; |
539 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
540 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
541 | cache_file=$ac_optarg ;; |
542 | |
543 | --config-cache | -C) |
544 | cache_file=config.cache ;; |
545 | |
546 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
547 | ac_prev=datadir ;; |
548 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
549 | | --da=*) |
550 | datadir=$ac_optarg ;; |
551 | |
552 | -disable-* | --disable-*) |
553 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
554 | # Reject names that are not valid shell variable names. |
555 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
556 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
557 | { (exit 1); exit 1; }; } |
558 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
559 | eval "enable_$ac_feature=no" ;; |
560 | |
561 | -enable-* | --enable-*) |
562 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
563 | # Reject names that are not valid shell variable names. |
564 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
565 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
566 | { (exit 1); exit 1; }; } |
567 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
568 | case $ac_option in |
569 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
570 | *) ac_optarg=yes ;; |
571 | esac |
572 | eval "enable_$ac_feature='$ac_optarg'" ;; |
573 | |
574 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
575 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
576 | | --exec | --exe | --ex) |
577 | ac_prev=exec_prefix ;; |
578 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
579 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
580 | | --exec=* | --exe=* | --ex=*) |
581 | exec_prefix=$ac_optarg ;; |
582 | |
583 | -gas | --gas | --ga | --g) |
584 | # Obsolete; use --with-gas. |
585 | with_gas=yes ;; |
586 | |
587 | -help | --help | --hel | --he | -h) |
588 | ac_init_help=long ;; |
589 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
590 | ac_init_help=recursive ;; |
591 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
592 | ac_init_help=short ;; |
593 | |
594 | -host | --host | --hos | --ho) |
595 | ac_prev=host_alias ;; |
596 | -host=* | --host=* | --hos=* | --ho=*) |
597 | host_alias=$ac_optarg ;; |
598 | |
599 | -includedir | --includedir | --includedi | --included | --include \ |
600 | | --includ | --inclu | --incl | --inc) |
601 | ac_prev=includedir ;; |
602 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
603 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
604 | includedir=$ac_optarg ;; |
605 | |
606 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
607 | ac_prev=infodir ;; |
608 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
609 | infodir=$ac_optarg ;; |
610 | |
611 | -libdir | --libdir | --libdi | --libd) |
612 | ac_prev=libdir ;; |
613 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
614 | libdir=$ac_optarg ;; |
615 | |
616 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
617 | | --libexe | --libex | --libe) |
618 | ac_prev=libexecdir ;; |
619 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
620 | | --libexe=* | --libex=* | --libe=*) |
621 | libexecdir=$ac_optarg ;; |
622 | |
623 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
624 | | --localstate | --localstat | --localsta | --localst \ |
625 | | --locals | --local | --loca | --loc | --lo) |
626 | ac_prev=localstatedir ;; |
627 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
628 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
629 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
630 | localstatedir=$ac_optarg ;; |
631 | |
632 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
633 | ac_prev=mandir ;; |
634 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
635 | mandir=$ac_optarg ;; |
636 | |
637 | -nfp | --nfp | --nf) |
638 | # Obsolete; use --without-fp. |
639 | with_fp=no ;; |
640 | |
641 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
642 | | --no-cr | --no-c | -n) |
643 | no_create=yes ;; |
644 | |
645 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
646 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
647 | no_recursion=yes ;; |
648 | |
649 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
650 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
651 | | --oldin | --oldi | --old | --ol | --o) |
652 | ac_prev=oldincludedir ;; |
653 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
654 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
655 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
656 | oldincludedir=$ac_optarg ;; |
657 | |
658 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
659 | ac_prev=prefix ;; |
660 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
661 | prefix=$ac_optarg ;; |
662 | |
663 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
664 | | --program-pre | --program-pr | --program-p) |
665 | ac_prev=program_prefix ;; |
666 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
667 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
668 | program_prefix=$ac_optarg ;; |
669 | |
670 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
671 | | --program-suf | --program-su | --program-s) |
672 | ac_prev=program_suffix ;; |
673 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
674 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
675 | program_suffix=$ac_optarg ;; |
676 | |
677 | -program-transform-name | --program-transform-name \ |
678 | | --program-transform-nam | --program-transform-na \ |
679 | | --program-transform-n | --program-transform- \ |
680 | | --program-transform | --program-transfor \ |
681 | | --program-transfo | --program-transf \ |
682 | | --program-trans | --program-tran \ |
683 | | --progr-tra | --program-tr | --program-t) |
684 | ac_prev=program_transform_name ;; |
685 | -program-transform-name=* | --program-transform-name=* \ |
686 | | --program-transform-nam=* | --program-transform-na=* \ |
687 | | --program-transform-n=* | --program-transform-=* \ |
688 | | --program-transform=* | --program-transfor=* \ |
689 | | --program-transfo=* | --program-transf=* \ |
690 | | --program-trans=* | --program-tran=* \ |
691 | | --progr-tra=* | --program-tr=* | --program-t=*) |
692 | program_transform_name=$ac_optarg ;; |
693 | |
694 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
695 | | -silent | --silent | --silen | --sile | --sil) |
696 | silent=yes ;; |
697 | |
698 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
699 | ac_prev=sbindir ;; |
700 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
701 | | --sbi=* | --sb=*) |
702 | sbindir=$ac_optarg ;; |
703 | |
704 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
705 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
706 | | --sharedst | --shareds | --shared | --share | --shar \ |
707 | | --sha | --sh) |
708 | ac_prev=sharedstatedir ;; |
709 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
710 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
711 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
712 | | --sha=* | --sh=*) |
713 | sharedstatedir=$ac_optarg ;; |
714 | |
715 | -site | --site | --sit) |
716 | ac_prev=site ;; |
717 | -site=* | --site=* | --sit=*) |
718 | site=$ac_optarg ;; |
719 | |
720 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
721 | ac_prev=srcdir ;; |
722 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
723 | srcdir=$ac_optarg ;; |
724 | |
725 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
726 | | --syscon | --sysco | --sysc | --sys | --sy) |
727 | ac_prev=sysconfdir ;; |
728 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
729 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
730 | sysconfdir=$ac_optarg ;; |
731 | |
732 | -target | --target | --targe | --targ | --tar | --ta | --t) |
733 | ac_prev=target_alias ;; |
734 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
735 | target_alias=$ac_optarg ;; |
736 | |
737 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
738 | verbose=yes ;; |
739 | |
740 | -version | --version | --versio | --versi | --vers | -V) |
741 | ac_init_version=: ;; |
742 | |
743 | -with-* | --with-*) |
744 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
745 | # Reject names that are not valid shell variable names. |
746 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
747 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
748 | { (exit 1); exit 1; }; } |
749 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
750 | case $ac_option in |
751 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
752 | *) ac_optarg=yes ;; |
753 | esac |
754 | eval "with_$ac_package='$ac_optarg'" ;; |
755 | |
756 | -without-* | --without-*) |
757 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
758 | # Reject names that are not valid shell variable names. |
759 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
760 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
761 | { (exit 1); exit 1; }; } |
762 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
763 | eval "with_$ac_package=no" ;; |
764 | |
765 | --x) |
766 | # Obsolete; use --with-x. |
767 | with_x=yes ;; |
768 | |
769 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
770 | | --x-incl | --x-inc | --x-in | --x-i) |
771 | ac_prev=x_includes ;; |
772 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
773 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
774 | x_includes=$ac_optarg ;; |
775 | |
776 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
777 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
778 | ac_prev=x_libraries ;; |
779 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
780 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
781 | x_libraries=$ac_optarg ;; |
782 | |
783 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
784 | Try \`$0 --help' for more information." >&2 |
785 | { (exit 1); exit 1; }; } |
786 | ;; |
787 | |
788 | *=*) |
789 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
790 | # Reject names that are not valid shell variable names. |
791 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
792 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
793 | { (exit 1); exit 1; }; } |
794 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
795 | eval "$ac_envvar='$ac_optarg'" |
796 | export $ac_envvar ;; |
797 | |
798 | *) |
799 | # FIXME: should be removed in autoconf 3.0. |
800 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
801 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
802 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
803 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
804 | ;; |
805 | |
806 | esac |
807 | done |
808 | |
809 | if test -n "$ac_prev"; then |
810 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
811 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
812 | { (exit 1); exit 1; }; } |
813 | fi |
814 | |
815 | # Be sure to have absolute paths. |
816 | for ac_var in exec_prefix prefix |
817 | do |
818 | eval ac_val=$`echo $ac_var` |
819 | case $ac_val in |
820 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
821 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
822 | { (exit 1); exit 1; }; };; |
823 | esac |
824 | done |
825 | |
826 | # Be sure to have absolute paths. |
827 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
828 | localstatedir libdir includedir oldincludedir infodir mandir |
829 | do |
830 | eval ac_val=$`echo $ac_var` |
831 | case $ac_val in |
832 | [\\/$]* | ?:[\\/]* ) ;; |
833 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
834 | { (exit 1); exit 1; }; };; |
835 | esac |
836 | done |
837 | |
838 | # There might be people who depend on the old broken behavior: `$host' |
839 | # used to hold the argument of --host etc. |
840 | # FIXME: To remove some day. |
841 | build=$build_alias |
842 | host=$host_alias |
843 | target=$target_alias |
844 | |
845 | # FIXME: To remove some day. |
846 | if test "x$host_alias" != x; then |
847 | if test "x$build_alias" = x; then |
848 | cross_compiling=maybe |
849 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
850 | If a cross compiler is detected then cross compile mode will be used." >&2 |
851 | elif test "x$build_alias" != "x$host_alias"; then |
852 | cross_compiling=yes |
853 | fi |
854 | fi |
855 | |
856 | ac_tool_prefix= |
857 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
858 | |
859 | test "$silent" = yes && exec 6>/dev/null |
860 | |
861 | |
862 | # Find the source files, if location was not specified. |
863 | if test -z "$srcdir"; then |
864 | ac_srcdir_defaulted=yes |
865 | # Try the directory containing this script, then its parent. |
866 | ac_confdir=`(dirname "$0") 2>/dev/null || |
867 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
868 | X"$0" : 'X\(//\)[^/]' \| \ |
869 | X"$0" : 'X\(//\)$' \| \ |
870 | X"$0" : 'X\(/\)' \| \ |
871 | . : '\(.\)' 2>/dev/null || |
872 | echo X"$0" | |
873 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
874 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
875 | /^X\(\/\/\)$/{ s//\1/; q; } |
876 | /^X\(\/\).*/{ s//\1/; q; } |
877 | s/.*/./; q'` |
878 | srcdir=$ac_confdir |
879 | if test ! -r $srcdir/$ac_unique_file; then |
880 | srcdir=.. |
881 | fi |
882 | else |
883 | ac_srcdir_defaulted=no |
884 | fi |
885 | if test ! -r $srcdir/$ac_unique_file; then |
886 | if test "$ac_srcdir_defaulted" = yes; then |
887 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
888 | { (exit 1); exit 1; }; } |
889 | else |
890 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
891 | { (exit 1); exit 1; }; } |
892 | fi |
893 | fi |
894 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
895 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
896 | { (exit 1); exit 1; }; } |
897 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
898 | ac_env_build_alias_set=${build_alias+set} |
899 | ac_env_build_alias_value=$build_alias |
900 | ac_cv_env_build_alias_set=${build_alias+set} |
901 | ac_cv_env_build_alias_value=$build_alias |
902 | ac_env_host_alias_set=${host_alias+set} |
903 | ac_env_host_alias_value=$host_alias |
904 | ac_cv_env_host_alias_set=${host_alias+set} |
905 | ac_cv_env_host_alias_value=$host_alias |
906 | ac_env_target_alias_set=${target_alias+set} |
907 | ac_env_target_alias_value=$target_alias |
908 | ac_cv_env_target_alias_set=${target_alias+set} |
909 | ac_cv_env_target_alias_value=$target_alias |
910 | ac_env_CC_set=${CC+set} |
911 | ac_env_CC_value=$CC |
912 | ac_cv_env_CC_set=${CC+set} |
913 | ac_cv_env_CC_value=$CC |
914 | ac_env_CFLAGS_set=${CFLAGS+set} |
915 | ac_env_CFLAGS_value=$CFLAGS |
916 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
917 | ac_cv_env_CFLAGS_value=$CFLAGS |
918 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
919 | ac_env_LDFLAGS_value=$LDFLAGS |
920 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
921 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
922 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
923 | ac_env_CPPFLAGS_value=$CPPFLAGS |
924 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
925 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
926 | ac_env_CPP_set=${CPP+set} |
927 | ac_env_CPP_value=$CPP |
928 | ac_cv_env_CPP_set=${CPP+set} |
929 | ac_cv_env_CPP_value=$CPP |
930 | ac_env_CXX_set=${CXX+set} |
931 | ac_env_CXX_value=$CXX |
932 | ac_cv_env_CXX_set=${CXX+set} |
933 | ac_cv_env_CXX_value=$CXX |
934 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
935 | ac_env_CXXFLAGS_value=$CXXFLAGS |
936 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
937 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
938 | ac_env_CXXCPP_set=${CXXCPP+set} |
939 | ac_env_CXXCPP_value=$CXXCPP |
940 | ac_cv_env_CXXCPP_set=${CXXCPP+set} |
941 | ac_cv_env_CXXCPP_value=$CXXCPP |
942 | ac_env_F77_set=${F77+set} |
943 | ac_env_F77_value=$F77 |
944 | ac_cv_env_F77_set=${F77+set} |
945 | ac_cv_env_F77_value=$F77 |
946 | ac_env_FFLAGS_set=${FFLAGS+set} |
947 | ac_env_FFLAGS_value=$FFLAGS |
948 | ac_cv_env_FFLAGS_set=${FFLAGS+set} |
949 | ac_cv_env_FFLAGS_value=$FFLAGS |
950 | |
951 | # |
952 | # Report the --help message. |
953 | # |
954 | if test "$ac_init_help" = "long"; then |
955 | # Omit some internal or obsolete options to make the list less imposing. |
956 | # This message is too long to be a string in the A/UX 3.1 sh. |
957 | cat <<_ACEOF |
958 | \`configure' configures courier-authlib 0.59.3 to adapt to many kinds of systems. |
959 | |
960 | Usage: $0 [OPTION]... [VAR=VALUE]... |
961 | |
962 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
963 | VAR=VALUE. See below for descriptions of some of the useful variables. |
964 | |
965 | Defaults for the options are specified in brackets. |
966 | |
967 | Configuration: |
968 | -h, --help display this help and exit |
969 | --help=short display options specific to this package |
970 | --help=recursive display the short help of all the included packages |
971 | -V, --version display version information and exit |
972 | -q, --quiet, --silent do not print \`checking...' messages |
973 | --cache-file=FILE cache test results in FILE [disabled] |
974 | -C, --config-cache alias for \`--cache-file=config.cache' |
975 | -n, --no-create do not create output files |
976 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
977 | |
978 | _ACEOF |
979 | |
980 | cat <<_ACEOF |
981 | Installation directories: |
982 | --prefix=PREFIX install architecture-independent files in PREFIX |
983 | [$ac_default_prefix] |
984 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
985 | [PREFIX] |
986 | |
987 | By default, \`make install' will install all the files in |
988 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
989 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
990 | for instance \`--prefix=\$HOME'. |
991 | |
992 | For better control, use the options below. |
993 | |
994 | Fine tuning of the installation directories: |
995 | --bindir=DIR user executables [EPREFIX/bin] |
996 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
997 | --libexecdir=DIR program executables [EPREFIX/libexec] |
998 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
999 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1000 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1001 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1002 | --libdir=DIR object code libraries [EPREFIX/lib] |
1003 | --includedir=DIR C header files [PREFIX/include] |
1004 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
1005 | --infodir=DIR info documentation [PREFIX/info] |
1006 | --mandir=DIR man documentation [PREFIX/man] |
1007 | _ACEOF |
1008 | |
1009 | cat <<\_ACEOF |
1010 | |
1011 | Program names: |
1012 | --program-prefix=PREFIX prepend PREFIX to installed program names |
1013 | --program-suffix=SUFFIX append SUFFIX to installed program names |
1014 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
1015 | |
1016 | System types: |
1017 | --build=BUILD configure for building on BUILD [guessed] |
1018 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
1019 | _ACEOF |
1020 | fi |
1021 | |
1022 | if test -n "$ac_init_help"; then |
1023 | case $ac_init_help in |
1024 | short | recursive ) echo "Configuration of courier-authlib 0.59.3:";; |
1025 | esac |
1026 | cat <<\_ACEOF |
1027 | |
1028 | Optional Features: |
1029 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1030 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1031 | --disable-dependency-tracking speeds up one-time build |
1032 | --enable-dependency-tracking do not reject slow dependency extractors |
1033 | --enable-shared[=PKGS] |
1034 | build shared libraries [default=yes] |
1035 | --enable-static[=PKGS] |
1036 | build static libraries [default=yes] |
1037 | --enable-fast-install[=PKGS] |
1038 | optimize for fast installation [default=yes] |
1039 | --disable-libtool-lock avoid locking (might break parallel builds) |
1040 | |
1041 | Optional Packages: |
1042 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1043 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1044 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1045 | --with-pic try to use only PIC/non-PIC objects [default=use |
1046 | both] |
1047 | --with-tags[=TAGS] |
1048 | include additional configurations [automatic] |
1049 | |
1050 | --with-pkgconfdir=d Install config files in directory |
1051 | --with-db=gdbm Use the GDBM library. |
1052 | --with-db=db Use the libdb.a library. |
1053 | --without-authuserdb Do not include the authuserdb module |
1054 | |
1055 | --without-authpam Do not include the authpam module |
1056 | --with-authpam-libraries="libs" Link 'libs' with authpam, this may be |
1057 | required for FreeBSD 3.3 |
1058 | --without-authldap Do not include the authldap module |
1059 | --with-authldaprc=filename Expect to find authldaprc here |
1060 | --without-authpwd Do not include the authpwd module |
1061 | --without-authshadow Do not include the authshadow module |
1062 | --without-authvchkpw Do not include the authvchkpw module |
1063 | --with-authpgsqlrc=filename Expect to find authpgsql here |
1064 | --without-authpgsql Do not include the authpgsql module |
1065 | --with-pgsql-libs=DIR Look for pgsql libs in this dir |
1066 | --with-pgsql-includes=DIR Look for pgsql includes in this dir |
1067 | --with-authmysqlrc=filename Expect to find authmysql here |
1068 | --without-authmysql Do not include the authmysql module |
1069 | --with-mysql-libs=DIR Look for mysql libs in this dir |
1070 | --with-mysql-includes=DIR Look for mysql includes in this dir |
1071 | --without-authcustom Do not include the authcustom module |
1072 | --with-pipeprog=filename Expect to find the pipe-prog here |
1073 | --without-authpipe Do not include the authpipe module |
1074 | --with-authdaemonrc=filename Expect to find authdaemonrc here |
1075 | --with-authdaemonvar=directory Directory where authdaemon.pid and |
1076 | the listening socket is created |
1077 | --with-mailuser=user Specify mail user name (defaults to |
1078 | courier, daemon, admin, bin, or root) |
1079 | --with-mailgroup=group Specify mail group name (defaults to courier, |
1080 | daemon, sys, adm, or root) |
1081 | --without-stdheaderdir Header files will be installed into a directory |
1082 | not in the compiler's default search path. |
1083 | |
1084 | Some influential environment variables: |
1085 | CC C compiler command |
1086 | CFLAGS C compiler flags |
1087 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1088 | nonstandard directory <lib dir> |
1089 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
1090 | headers in a nonstandard directory <include dir> |
1091 | CPP C preprocessor |
1092 | CXX C++ compiler command |
1093 | CXXFLAGS C++ compiler flags |
1094 | CXXCPP C++ preprocessor |
1095 | F77 Fortran 77 compiler command |
1096 | FFLAGS Fortran 77 compiler flags |
1097 | |
1098 | Use these variables to override the choices made by `configure' or to help |
1099 | it to find libraries and programs with nonstandard names/locations. |
1100 | |
1101 | Report bugs to <courier-users@lists.sourceforge.net>. |
1102 | _ACEOF |
1103 | fi |
1104 | |
1105 | if test "$ac_init_help" = "recursive"; then |
1106 | # If there are subdirs, report their specific --help. |
1107 | ac_popdir=`pwd` |
1108 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
1109 | test -d $ac_dir || continue |
1110 | ac_builddir=. |
1111 | |
1112 | if test "$ac_dir" != .; then |
1113 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
1114 | # A "../" for each directory in $ac_dir_suffix. |
1115 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
1116 | else |
1117 | ac_dir_suffix= ac_top_builddir= |
1118 | fi |
1119 | |
1120 | case $srcdir in |
1121 | .) # No --srcdir option. We are building in place. |
1122 | ac_srcdir=. |
1123 | if test -z "$ac_top_builddir"; then |
1124 | ac_top_srcdir=. |
1125 | else |
1126 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
1127 | fi ;; |
1128 | [\\/]* | ?:[\\/]* ) # Absolute path. |
1129 | ac_srcdir=$srcdir$ac_dir_suffix; |
1130 | ac_top_srcdir=$srcdir ;; |
1131 | *) # Relative path. |
1132 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
1133 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
1134 | esac |
1135 | |
1136 | # Do not use `cd foo && pwd` to compute absolute paths, because |
1137 | # the directories may not exist. |
1138 | case `pwd` in |
1139 | .) ac_abs_builddir="$ac_dir";; |
1140 | *) |
1141 | case "$ac_dir" in |
1142 | .) ac_abs_builddir=`pwd`;; |
1143 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
1144 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
1145 | esac;; |
1146 | esac |
1147 | case $ac_abs_builddir in |
1148 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
1149 | *) |
1150 | case ${ac_top_builddir}. in |
1151 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
1152 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
1153 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
1154 | esac;; |
1155 | esac |
1156 | case $ac_abs_builddir in |
1157 | .) ac_abs_srcdir=$ac_srcdir;; |
1158 | *) |
1159 | case $ac_srcdir in |
1160 | .) ac_abs_srcdir=$ac_abs_builddir;; |
1161 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
1162 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
1163 | esac;; |
1164 | esac |
1165 | case $ac_abs_builddir in |
1166 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
1167 | *) |
1168 | case $ac_top_srcdir in |
1169 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
1170 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
1171 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
1172 | esac;; |
1173 | esac |
1174 | |
1175 | cd $ac_dir |
1176 | # Check for guested configure; otherwise get Cygnus style configure. |
1177 | if test -f $ac_srcdir/configure.gnu; then |
1178 | echo |
1179 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
1180 | elif test -f $ac_srcdir/configure; then |
1181 | echo |
1182 | $SHELL $ac_srcdir/configure --help=recursive |
1183 | elif test -f $ac_srcdir/configure.ac || |
1184 | test -f $ac_srcdir/configure.in; then |
1185 | echo |
1186 | $ac_configure --help |
1187 | else |
1188 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1189 | fi |
1190 | cd $ac_popdir |
1191 | done |
1192 | fi |
1193 | |
1194 | test -n "$ac_init_help" && exit 0 |
1195 | if $ac_init_version; then |
1196 | cat <<\_ACEOF |
1197 | courier-authlib configure 0.59.3 |
1198 | generated by GNU Autoconf 2.59 |
1199 | |
1200 | Copyright (C) 2003 Free Software Foundation, Inc. |
1201 | This configure script is free software; the Free Software Foundation |
1202 | gives unlimited permission to copy, distribute and modify it. |
1203 | _ACEOF |
1204 | exit 0 |
1205 | fi |
1206 | exec 5>config.log |
1207 | cat >&5 <<_ACEOF |
1208 | This file contains any messages produced by compilers while |
1209 | running configure, to aid debugging if configure makes a mistake. |
1210 | |
1211 | It was created by courier-authlib $as_me 0.59.3, which was |
1212 | generated by GNU Autoconf 2.59. Invocation command line was |
1213 | |
1214 | $ $0 $@ |
1215 | |
1216 | _ACEOF |
1217 | { |
1218 | cat <<_ASUNAME |
1219 | ## --------- ## |
1220 | ## Platform. ## |
1221 | ## --------- ## |
1222 | |
1223 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
1224 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
1225 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
1226 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
1227 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
1228 | |
1229 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
1230 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
1231 | |
1232 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
1233 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
1234 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
1235 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
1236 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1237 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
1238 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
1239 | |
1240 | _ASUNAME |
1241 | |
1242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1243 | for as_dir in $PATH |
1244 | do |
1245 | IFS=$as_save_IFS |
1246 | test -z "$as_dir" && as_dir=. |
1247 | echo "PATH: $as_dir" |
1248 | done |
1249 | |
1250 | } >&5 |
1251 | |
1252 | cat >&5 <<_ACEOF |
1253 | |
1254 | |
1255 | ## ----------- ## |
1256 | ## Core tests. ## |
1257 | ## ----------- ## |
1258 | |
1259 | _ACEOF |
1260 | |
1261 | |
1262 | # Keep a trace of the command line. |
1263 | # Strip out --no-create and --no-recursion so they do not pile up. |
1264 | # Strip out --silent because we don't want to record it for future runs. |
1265 | # Also quote any args containing shell meta-characters. |
1266 | # Make two passes to allow for proper duplicate-argument suppression. |
1267 | ac_configure_args= |
1268 | ac_configure_args0= |
1269 | ac_configure_args1= |
1270 | ac_sep= |
1271 | ac_must_keep_next=false |
1272 | for ac_pass in 1 2 |
1273 | do |
1274 | for ac_arg |
1275 | do |
1276 | case $ac_arg in |
1277 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1278 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1279 | | -silent | --silent | --silen | --sile | --sil) |
1280 | continue ;; |
1281 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1282 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1283 | esac |
1284 | case $ac_pass in |
1285 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
1286 | 2) |
1287 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
1288 | if test $ac_must_keep_next = true; then |
1289 | ac_must_keep_next=false # Got value, back to normal. |
1290 | else |
1291 | case $ac_arg in |
1292 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
1293 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
1294 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
1295 | | -with-* | --with-* | -without-* | --without-* | --x) |
1296 | case "$ac_configure_args0 " in |
1297 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
1298 | esac |
1299 | ;; |
1300 | -* ) ac_must_keep_next=true ;; |
1301 | esac |
1302 | fi |
1303 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
1304 | # Get rid of the leading space. |
1305 | ac_sep=" " |
1306 | ;; |
1307 | esac |
1308 | done |
1309 | done |
1310 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1311 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
1312 | |
1313 | # When interrupted or exit'd, cleanup temporary files, and complete |
1314 | # config.log. We remove comments because anyway the quotes in there |
1315 | # would cause problems or look ugly. |
1316 | # WARNING: Be sure not to use single quotes in there, as some shells, |
1317 | # such as our DU 5.0 friend, will then `close' the trap. |
1318 | trap 'exit_status=$? |
1319 | # Save into config.log some information that might help in debugging. |
1320 | { |
1321 | echo |
1322 | |
1323 | cat <<\_ASBOX |
1324 | ## ---------------- ## |
1325 | ## Cache variables. ## |
1326 | ## ---------------- ## |
1327 | _ASBOX |
1328 | echo |
1329 | # The following way of writing the cache mishandles newlines in values, |
1330 | { |
1331 | (set) 2>&1 | |
1332 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
1333 | *ac_space=\ *) |
1334 | sed -n \ |
1335 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1336 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
1337 | ;; |
1338 | *) |
1339 | sed -n \ |
1340 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
1341 | ;; |
1342 | esac; |
1343 | } |
1344 | echo |
1345 | |
1346 | cat <<\_ASBOX |
1347 | ## ----------------- ## |
1348 | ## Output variables. ## |
1349 | ## ----------------- ## |
1350 | _ASBOX |
1351 | echo |
1352 | for ac_var in $ac_subst_vars |
1353 | do |
1354 | eval ac_val=$`echo $ac_var` |
1355 | echo "$ac_var='"'"'$ac_val'"'"'" |
1356 | done | sort |
1357 | echo |
1358 | |
1359 | if test -n "$ac_subst_files"; then |
1360 | cat <<\_ASBOX |
1361 | ## ------------- ## |
1362 | ## Output files. ## |
1363 | ## ------------- ## |
1364 | _ASBOX |
1365 | echo |
1366 | for ac_var in $ac_subst_files |
1367 | do |
1368 | eval ac_val=$`echo $ac_var` |
1369 | echo "$ac_var='"'"'$ac_val'"'"'" |
1370 | done | sort |
1371 | echo |
1372 | fi |
1373 | |
1374 | if test -s confdefs.h; then |
1375 | cat <<\_ASBOX |
1376 | ## ----------- ## |
1377 | ## confdefs.h. ## |
1378 | ## ----------- ## |
1379 | _ASBOX |
1380 | echo |
1381 | sed "/^$/d" confdefs.h | sort |
1382 | echo |
1383 | fi |
1384 | test "$ac_signal" != 0 && |
1385 | echo "$as_me: caught signal $ac_signal" |
1386 | echo "$as_me: exit $exit_status" |
1387 | } >&5 |
1388 | rm -f core *.core && |
1389 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1390 | exit $exit_status |
1391 | ' 0 |
1392 | for ac_signal in 1 2 13 15; do |
1393 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
1394 | done |
1395 | ac_signal=0 |
1396 | |
1397 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
1398 | rm -rf conftest* confdefs.h |
1399 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
1400 | echo >confdefs.h |
1401 | |
1402 | # Predefined preprocessor variables. |
1403 | |
1404 | cat >>confdefs.h <<_ACEOF |
1405 | #define PACKAGE_NAME "$PACKAGE_NAME" |
1406 | _ACEOF |
1407 | |
1408 | |
1409 | cat >>confdefs.h <<_ACEOF |
1410 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
1411 | _ACEOF |
1412 | |
1413 | |
1414 | cat >>confdefs.h <<_ACEOF |
1415 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
1416 | _ACEOF |
1417 | |
1418 | |
1419 | cat >>confdefs.h <<_ACEOF |
1420 | #define PACKAGE_STRING "$PACKAGE_STRING" |
1421 | _ACEOF |
1422 | |
1423 | |
1424 | cat >>confdefs.h <<_ACEOF |
1425 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
1426 | _ACEOF |
1427 | |
1428 | |
1429 | # Let the site file select an alternate cache file if it wants to. |
1430 | # Prefer explicitly selected file to automatically selected ones. |
1431 | if test -z "$CONFIG_SITE"; then |
1432 | if test "x$prefix" != xNONE; then |
1433 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
1434 | else |
1435 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
1436 | fi |
1437 | fi |
1438 | for ac_site_file in $CONFIG_SITE; do |
1439 | if test -r "$ac_site_file"; then |
1440 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1441 | echo "$as_me: loading site script $ac_site_file" >&6;} |
1442 | sed 's/^/| /' "$ac_site_file" >&5 |
1443 | . "$ac_site_file" |
1444 | fi |
1445 | done |
1446 | |
1447 | if test -r "$cache_file"; then |
1448 | # Some versions of bash will fail to source /dev/null (special |
1449 | # files actually), so we avoid doing that. |
1450 | if test -f "$cache_file"; then |
1451 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1452 | echo "$as_me: loading cache $cache_file" >&6;} |
1453 | case $cache_file in |
1454 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
1455 | *) . ./$cache_file;; |
1456 | esac |
1457 | fi |
1458 | else |
1459 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1460 | echo "$as_me: creating cache $cache_file" >&6;} |
1461 | >$cache_file |
1462 | fi |
1463 | |
1464 | # Check that the precious variables saved in the cache have kept the same |
1465 | # value. |
1466 | ac_cache_corrupted=false |
1467 | for ac_var in `(set) 2>&1 | |
1468 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
1469 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1470 | eval ac_new_set=\$ac_env_${ac_var}_set |
1471 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
1472 | eval ac_new_val="\$ac_env_${ac_var}_value" |
1473 | case $ac_old_set,$ac_new_set in |
1474 | set,) |
1475 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1476 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1477 | ac_cache_corrupted=: ;; |
1478 | ,set) |
1479 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1480 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1481 | ac_cache_corrupted=: ;; |
1482 | ,);; |
1483 | *) |
1484 | if test "x$ac_old_val" != "x$ac_new_val"; then |
1485 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1486 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1487 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
1488 | echo "$as_me: former value: $ac_old_val" >&2;} |
1489 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
1490 | echo "$as_me: current value: $ac_new_val" >&2;} |
1491 | ac_cache_corrupted=: |
1492 | fi;; |
1493 | esac |
1494 | # Pass precious variables to config.status. |
1495 | if test "$ac_new_set" = set; then |
1496 | case $ac_new_val in |
1497 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1498 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1499 | *) ac_arg=$ac_var=$ac_new_val ;; |
1500 | esac |
1501 | case " $ac_configure_args " in |
1502 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
1503 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
1504 | esac |
1505 | fi |
1506 | done |
1507 | if $ac_cache_corrupted; then |
1508 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1509 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
1510 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
1511 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1512 | { (exit 1); exit 1; }; } |
1513 | fi |
1514 | |
1515 | ac_ext=c |
1516 | ac_cpp='$CPP $CPPFLAGS' |
1517 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1518 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1519 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1520 | |
1521 | |
1522 | |
1523 | |
1524 | |
1525 | |
1526 | |
1527 | |
1528 | |
1529 | |
1530 | |
1531 | |
1532 | |
1533 | |
1534 | |
1535 | |
1536 | |
1537 | |
1538 | |
1539 | |
1540 | |
1541 | |
1542 | |
1543 | |
1544 | |
1545 | |
1546 | |
1547 | |
1548 | |
1549 | ac_config_headers="$ac_config_headers courier_auth_config.h" |
1550 | |
1551 | |
1552 | am__api_version="1.9" |
1553 | ac_aux_dir= |
1554 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
1555 | if test -f $ac_dir/install-sh; then |
1556 | ac_aux_dir=$ac_dir |
1557 | ac_install_sh="$ac_aux_dir/install-sh -c" |
1558 | break |
1559 | elif test -f $ac_dir/install.sh; then |
1560 | ac_aux_dir=$ac_dir |
1561 | ac_install_sh="$ac_aux_dir/install.sh -c" |
1562 | break |
1563 | elif test -f $ac_dir/shtool; then |
1564 | ac_aux_dir=$ac_dir |
1565 | ac_install_sh="$ac_aux_dir/shtool install -c" |
1566 | break |
1567 | fi |
1568 | done |
1569 | if test -z "$ac_aux_dir"; then |
1570 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
1571 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
1572 | { (exit 1); exit 1; }; } |
1573 | fi |
1574 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1575 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
1576 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
1577 | |
1578 | # Find a good install program. We prefer a C program (faster), |
1579 | # so one script is as good as another. But avoid the broken or |
1580 | # incompatible versions: |
1581 | # SysV /etc/install, /usr/sbin/install |
1582 | # SunOS /usr/etc/install |
1583 | # IRIX /sbin/install |
1584 | # AIX /bin/install |
1585 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
1586 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
1587 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
1588 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
1589 | # OS/2's system install, which has a completely different semantic |
1590 | # ./install, which can be erroneously created by make from ./install.sh. |
1591 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
1592 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
1593 | if test -z "$INSTALL"; then |
1594 | if test "${ac_cv_path_install+set}" = set; then |
1595 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1596 | else |
1597 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1598 | for as_dir in $PATH |
1599 | do |
1600 | IFS=$as_save_IFS |
1601 | test -z "$as_dir" && as_dir=. |
1602 | # Account for people who put trailing slashes in PATH elements. |
1603 | case $as_dir/ in |
1604 | ./ | .// | /cC/* | \ |
1605 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
1606 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
1607 | /usr/ucb/* ) ;; |
1608 | *) |
1609 | # OSF1 and SCO ODT 3.0 have their own names for install. |
1610 | # Don't use installbsd from OSF since it installs stuff as root |
1611 | # by default. |
1612 | for ac_prog in ginstall scoinst install; do |
1613 | for ac_exec_ext in '' $ac_executable_extensions; do |
1614 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
1615 | if test $ac_prog = install && |
1616 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
1617 | # AIX install. It has an incompatible calling convention. |
1618 | : |
1619 | elif test $ac_prog = install && |
1620 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
1621 | # program-specific install script used by HP pwplus--don't use. |
1622 | : |
1623 | else |
1624 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
1625 | break 3 |
1626 | fi |
1627 | fi |
1628 | done |
1629 | done |
1630 | ;; |
1631 | esac |
1632 | done |
1633 | |
1634 | |
1635 | fi |
1636 | if test "${ac_cv_path_install+set}" = set; then |
1637 | INSTALL=$ac_cv_path_install |
1638 | else |
1639 | # As a last resort, use the slow shell script. We don't cache a |
1640 | # path for INSTALL within a source directory, because that will |
1641 | # break other packages using the cache if that directory is |
1642 | # removed, or if the path is relative. |
1643 | INSTALL=$ac_install_sh |
1644 | fi |
1645 | fi |
1646 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
1647 | echo "${ECHO_T}$INSTALL" >&6 |
1648 | |
1649 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
1650 | # It thinks the first close brace ends the variable substitution. |
1651 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
1652 | |
1653 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
1654 | |
1655 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
1656 | |
1657 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
1658 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
1659 | # Just in case |
1660 | sleep 1 |
1661 | echo timestamp > conftest.file |
1662 | # Do `set' in a subshell so we don't clobber the current shell's |
1663 | # arguments. Must try -L first in case configure is actually a |
1664 | # symlink; some systems play weird games with the mod time of symlinks |
1665 | # (eg FreeBSD returns the mod time of the symlink's containing |
1666 | # directory). |
1667 | if ( |
1668 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
1669 | if test "$*" = "X"; then |
1670 | # -L didn't work. |
1671 | set X `ls -t $srcdir/configure conftest.file` |
1672 | fi |
1673 | rm -f conftest.file |
1674 | if test "$*" != "X $srcdir/configure conftest.file" \ |
1675 | && test "$*" != "X conftest.file $srcdir/configure"; then |
1676 | |
1677 | # If neither matched, then we have a broken ls. This can happen |
1678 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
1679 | # broken ls alias from the environment. This has actually |
1680 | # happened. Such a system could not be considered "sane". |
1681 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
1682 | alias in your environment" >&5 |
1683 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
1684 | alias in your environment" >&2;} |
1685 | { (exit 1); exit 1; }; } |
1686 | fi |
1687 | |
1688 | test "$2" = conftest.file |
1689 | ) |
1690 | then |
1691 | # Ok. |
1692 | : |
1693 | else |
1694 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
1695 | Check your system clock" >&5 |
1696 | echo "$as_me: error: newly created file is older than distributed files! |
1697 | Check your system clock" >&2;} |
1698 | { (exit 1); exit 1; }; } |
1699 | fi |
1700 | echo "$as_me:$LINENO: result: yes" >&5 |
1701 | echo "${ECHO_T}yes" >&6 |
1702 | test "$program_prefix" != NONE && |
1703 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
1704 | # Use a double $ so make ignores it. |
1705 | test "$program_suffix" != NONE && |
1706 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
1707 | # Double any \ or $. echo might interpret backslashes. |
1708 | # By default was `s,x,x', remove it if useless. |
1709 | cat <<\_ACEOF >conftest.sed |
1710 | s/[\\$]/&&/g;s/;s,x,x,$// |
1711 | _ACEOF |
1712 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
1713 | rm conftest.sed |
1714 | |
1715 | # expand $ac_aux_dir to an absolute path |
1716 | am_aux_dir=`cd $ac_aux_dir && pwd` |
1717 | |
1718 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
1719 | # Use eval to expand $SHELL |
1720 | if eval "$MISSING --run true"; then |
1721 | am_missing_run="$MISSING --run " |
1722 | else |
1723 | am_missing_run= |
1724 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
1725 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
1726 | fi |
1727 | |
1728 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
1729 | # We used to keeping the `.' as first argument, in order to |
1730 | # allow $(mkdir_p) to be used without argument. As in |
1731 | # $(mkdir_p) $(somedir) |
1732 | # where $(somedir) is conditionally defined. However this is wrong |
1733 | # for two reasons: |
1734 | # 1. if the package is installed by a user who cannot write `.' |
1735 | # make install will fail, |
1736 | # 2. the above comment should most certainly read |
1737 | # $(mkdir_p) $(DESTDIR)$(somedir) |
1738 | # so it does not work when $(somedir) is undefined and |
1739 | # $(DESTDIR) is not. |
1740 | # To support the latter case, we have to write |
1741 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), |
1742 | # so the `.' trick is pointless. |
1743 | mkdir_p='mkdir -p --' |
1744 | else |
1745 | # On NextStep and OpenStep, the `mkdir' command does not |
1746 | # recognize any option. It will interpret all options as |
1747 | # directories to create, and then abort because `.' already |
1748 | # exists. |
1749 | for d in ./-p ./--version; |
1750 | do |
1751 | test -d $d && rmdir $d |
1752 | done |
1753 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
1754 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
1755 | mkdir_p='$(mkinstalldirs)' |
1756 | else |
1757 | mkdir_p='$(install_sh) -d' |
1758 | fi |
1759 | fi |
1760 | |
1761 | for ac_prog in gawk mawk nawk awk |
1762 | do |
1763 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
1764 | set dummy $ac_prog; ac_word=$2 |
1765 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1766 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1767 | if test "${ac_cv_prog_AWK+set}" = set; then |
1768 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1769 | else |
1770 | if test -n "$AWK"; then |
1771 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
1772 | else |
1773 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1774 | for as_dir in $PATH |
1775 | do |
1776 | IFS=$as_save_IFS |
1777 | test -z "$as_dir" && as_dir=. |
1778 | for ac_exec_ext in '' $ac_executable_extensions; do |
1779 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1780 | ac_cv_prog_AWK="$ac_prog" |
1781 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1782 | break 2 |
1783 | fi |
1784 | done |
1785 | done |
1786 | |
1787 | fi |
1788 | fi |
1789 | AWK=$ac_cv_prog_AWK |
1790 | if test -n "$AWK"; then |
1791 | echo "$as_me:$LINENO: result: $AWK" >&5 |
1792 | echo "${ECHO_T}$AWK" >&6 |
1793 | else |
1794 | echo "$as_me:$LINENO: result: no" >&5 |
1795 | echo "${ECHO_T}no" >&6 |
1796 | fi |
1797 | |
1798 | test -n "$AWK" && break |
1799 | done |
1800 | |
1801 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
1802 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
1803 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
1804 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
1805 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1806 | else |
1807 | cat >conftest.make <<\_ACEOF |
1808 | all: |
1809 | @echo 'ac_maketemp="$(MAKE)"' |
1810 | _ACEOF |
1811 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
1812 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
1813 | if test -n "$ac_maketemp"; then |
1814 | eval ac_cv_prog_make_${ac_make}_set=yes |
1815 | else |
1816 | eval ac_cv_prog_make_${ac_make}_set=no |
1817 | fi |
1818 | rm -f conftest.make |
1819 | fi |
1820 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
1821 | echo "$as_me:$LINENO: result: yes" >&5 |
1822 | echo "${ECHO_T}yes" >&6 |
1823 | SET_MAKE= |
1824 | else |
1825 | echo "$as_me:$LINENO: result: no" >&5 |
1826 | echo "${ECHO_T}no" >&6 |
1827 | SET_MAKE="MAKE=${MAKE-make}" |
1828 | fi |
1829 | |
1830 | rm -rf .tst 2>/dev/null |
1831 | mkdir .tst 2>/dev/null |
1832 | if test -d .tst; then |
1833 | am__leading_dot=. |
1834 | else |
1835 | am__leading_dot=_ |
1836 | fi |
1837 | rmdir .tst 2>/dev/null |
1838 | |
1839 | # test to see if srcdir already configured |
1840 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
1841 | test -f $srcdir/config.status; then |
1842 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
1843 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
1844 | { (exit 1); exit 1; }; } |
1845 | fi |
1846 | |
1847 | # test whether we have cygpath |
1848 | if test -z "$CYGPATH_W"; then |
1849 | if (cygpath --version) >/dev/null 2>/dev/null; then |
1850 | CYGPATH_W='cygpath -w' |
1851 | else |
1852 | CYGPATH_W=echo |
1853 | fi |
1854 | fi |
1855 | |
1856 | |
1857 | # Define the identity of the package. |
1858 | PACKAGE='courier-authlib' |
1859 | VERSION='0.59.3' |
1860 | |
1861 | |
1862 | cat >>confdefs.h <<_ACEOF |
1863 | #define PACKAGE "$PACKAGE" |
1864 | _ACEOF |
1865 | |
1866 | |
1867 | cat >>confdefs.h <<_ACEOF |
1868 | #define VERSION "$VERSION" |
1869 | _ACEOF |
1870 | |
1871 | # Some tools Automake needs. |
1872 | |
1873 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
1874 | |
1875 | |
1876 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
1877 | |
1878 | |
1879 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
1880 | |
1881 | |
1882 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
1883 | |
1884 | |
1885 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
1886 | |
1887 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
1888 | |
1889 | # Installed binaries are usually stripped using `strip' when the user |
1890 | # run `make install-strip'. However `strip' might not be the right |
1891 | # tool to use in cross-compilation environments, therefore Automake |
1892 | # will honor the `STRIP' environment variable to overrule this program. |
1893 | if test "$cross_compiling" != no; then |
1894 | if test -n "$ac_tool_prefix"; then |
1895 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
1896 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
1897 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1898 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1899 | if test "${ac_cv_prog_STRIP+set}" = set; then |
1900 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1901 | else |
1902 | if test -n "$STRIP"; then |
1903 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
1904 | else |
1905 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1906 | for as_dir in $PATH |
1907 | do |
1908 | IFS=$as_save_IFS |
1909 | test -z "$as_dir" && as_dir=. |
1910 | for ac_exec_ext in '' $ac_executable_extensions; do |
1911 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1912 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
1913 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1914 | break 2 |
1915 | fi |
1916 | done |
1917 | done |
1918 | |
1919 | fi |
1920 | fi |
1921 | STRIP=$ac_cv_prog_STRIP |
1922 | if test -n "$STRIP"; then |
1923 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
1924 | echo "${ECHO_T}$STRIP" >&6 |
1925 | else |
1926 | echo "$as_me:$LINENO: result: no" >&5 |
1927 | echo "${ECHO_T}no" >&6 |
1928 | fi |
1929 | |
1930 | fi |
1931 | if test -z "$ac_cv_prog_STRIP"; then |
1932 | ac_ct_STRIP=$STRIP |
1933 | # Extract the first word of "strip", so it can be a program name with args. |
1934 | set dummy strip; ac_word=$2 |
1935 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1936 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1937 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
1938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1939 | else |
1940 | if test -n "$ac_ct_STRIP"; then |
1941 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
1942 | else |
1943 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1944 | for as_dir in $PATH |
1945 | do |
1946 | IFS=$as_save_IFS |
1947 | test -z "$as_dir" && as_dir=. |
1948 | for ac_exec_ext in '' $ac_executable_extensions; do |
1949 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1950 | ac_cv_prog_ac_ct_STRIP="strip" |
1951 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1952 | break 2 |
1953 | fi |
1954 | done |
1955 | done |
1956 | |
1957 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
1958 | fi |
1959 | fi |
1960 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
1961 | if test -n "$ac_ct_STRIP"; then |
1962 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
1963 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
1964 | else |
1965 | echo "$as_me:$LINENO: result: no" >&5 |
1966 | echo "${ECHO_T}no" >&6 |
1967 | fi |
1968 | |
1969 | STRIP=$ac_ct_STRIP |
1970 | else |
1971 | STRIP="$ac_cv_prog_STRIP" |
1972 | fi |
1973 | |
1974 | fi |
1975 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
1976 | |
1977 | # We need awk for the "check" target. The system "awk" is bad on |
1978 | # some platforms. |
1979 | # Always define AMTAR for backward compatibility. |
1980 | |
1981 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
1982 | |
1983 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
1984 | |
1985 | |
1986 | |
1987 | |
1988 | |
1989 | >confdefs.h # Kill PACKAGE_ macros |
1990 | |
1991 | LPATH="$PATH:/usr/local/bin" |
1992 | |
1993 | for ac_prog in gawk mawk nawk awk |
1994 | do |
1995 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
1996 | set dummy $ac_prog; ac_word=$2 |
1997 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1998 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1999 | if test "${ac_cv_prog_AWK+set}" = set; then |
2000 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2001 | else |
2002 | if test -n "$AWK"; then |
2003 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
2004 | else |
2005 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2006 | for as_dir in $PATH |
2007 | do |
2008 | IFS=$as_save_IFS |
2009 | test -z "$as_dir" && as_dir=. |
2010 | for ac_exec_ext in '' $ac_executable_extensions; do |
2011 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2012 | ac_cv_prog_AWK="$ac_prog" |
2013 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2014 | break 2 |
2015 | fi |
2016 | done |
2017 | done |
2018 | |
2019 | fi |
2020 | fi |
2021 | AWK=$ac_cv_prog_AWK |
2022 | if test -n "$AWK"; then |
2023 | echo "$as_me:$LINENO: result: $AWK" >&5 |
2024 | echo "${ECHO_T}$AWK" >&6 |
2025 | else |
2026 | echo "$as_me:$LINENO: result: no" >&5 |
2027 | echo "${ECHO_T}no" >&6 |
2028 | fi |
2029 | |
2030 | test -n "$AWK" && break |
2031 | done |
2032 | |
2033 | ac_ext=c |
2034 | ac_cpp='$CPP $CPPFLAGS' |
2035 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2036 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2037 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2038 | if test -n "$ac_tool_prefix"; then |
2039 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
2040 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
2041 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2042 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2043 | if test "${ac_cv_prog_CC+set}" = set; then |
2044 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2045 | else |
2046 | if test -n "$CC"; then |
2047 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2048 | else |
2049 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2050 | for as_dir in $PATH |
2051 | do |
2052 | IFS=$as_save_IFS |
2053 | test -z "$as_dir" && as_dir=. |
2054 | for ac_exec_ext in '' $ac_executable_extensions; do |
2055 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2056 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2057 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2058 | break 2 |
2059 | fi |
2060 | done |
2061 | done |
2062 | |
2063 | fi |
2064 | fi |
2065 | CC=$ac_cv_prog_CC |
2066 | if test -n "$CC"; then |
2067 | echo "$as_me:$LINENO: result: $CC" >&5 |
2068 | echo "${ECHO_T}$CC" >&6 |
2069 | else |
2070 | echo "$as_me:$LINENO: result: no" >&5 |
2071 | echo "${ECHO_T}no" >&6 |
2072 | fi |
2073 | |
2074 | fi |
2075 | if test -z "$ac_cv_prog_CC"; then |
2076 | ac_ct_CC=$CC |
2077 | # Extract the first word of "gcc", so it can be a program name with args. |
2078 | set dummy gcc; ac_word=$2 |
2079 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2080 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2081 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2082 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2083 | else |
2084 | if test -n "$ac_ct_CC"; then |
2085 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2086 | else |
2087 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2088 | for as_dir in $PATH |
2089 | do |
2090 | IFS=$as_save_IFS |
2091 | test -z "$as_dir" && as_dir=. |
2092 | for ac_exec_ext in '' $ac_executable_extensions; do |
2093 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2094 | ac_cv_prog_ac_ct_CC="gcc" |
2095 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2096 | break 2 |
2097 | fi |
2098 | done |
2099 | done |
2100 | |
2101 | fi |
2102 | fi |
2103 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2104 | if test -n "$ac_ct_CC"; then |
2105 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2106 | echo "${ECHO_T}$ac_ct_CC" >&6 |
2107 | else |
2108 | echo "$as_me:$LINENO: result: no" >&5 |
2109 | echo "${ECHO_T}no" >&6 |
2110 | fi |
2111 | |
2112 | CC=$ac_ct_CC |
2113 | else |
2114 | CC="$ac_cv_prog_CC" |
2115 | fi |
2116 | |
2117 | if test -z "$CC"; then |
2118 | if test -n "$ac_tool_prefix"; then |
2119 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
2120 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
2121 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2122 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2123 | if test "${ac_cv_prog_CC+set}" = set; then |
2124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2125 | else |
2126 | if test -n "$CC"; then |
2127 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2128 | else |
2129 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2130 | for as_dir in $PATH |
2131 | do |
2132 | IFS=$as_save_IFS |
2133 | test -z "$as_dir" && as_dir=. |
2134 | for ac_exec_ext in '' $ac_executable_extensions; do |
2135 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2136 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2137 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2138 | break 2 |
2139 | fi |
2140 | done |
2141 | done |
2142 | |
2143 | fi |
2144 | fi |
2145 | CC=$ac_cv_prog_CC |
2146 | if test -n "$CC"; then |
2147 | echo "$as_me:$LINENO: result: $CC" >&5 |
2148 | echo "${ECHO_T}$CC" >&6 |
2149 | else |
2150 | echo "$as_me:$LINENO: result: no" >&5 |
2151 | echo "${ECHO_T}no" >&6 |
2152 | fi |
2153 | |
2154 | fi |
2155 | if test -z "$ac_cv_prog_CC"; then |
2156 | ac_ct_CC=$CC |
2157 | # Extract the first word of "cc", so it can be a program name with args. |
2158 | set dummy cc; ac_word=$2 |
2159 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2160 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2161 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2163 | else |
2164 | if test -n "$ac_ct_CC"; then |
2165 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2166 | else |
2167 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2168 | for as_dir in $PATH |
2169 | do |
2170 | IFS=$as_save_IFS |
2171 | test -z "$as_dir" && as_dir=. |
2172 | for ac_exec_ext in '' $ac_executable_extensions; do |
2173 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2174 | ac_cv_prog_ac_ct_CC="cc" |
2175 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2176 | break 2 |
2177 | fi |
2178 | done |
2179 | done |
2180 | |
2181 | fi |
2182 | fi |
2183 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2184 | if test -n "$ac_ct_CC"; then |
2185 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2186 | echo "${ECHO_T}$ac_ct_CC" >&6 |
2187 | else |
2188 | echo "$as_me:$LINENO: result: no" >&5 |
2189 | echo "${ECHO_T}no" >&6 |
2190 | fi |
2191 | |
2192 | CC=$ac_ct_CC |
2193 | else |
2194 | CC="$ac_cv_prog_CC" |
2195 | fi |
2196 | |
2197 | fi |
2198 | if test -z "$CC"; then |
2199 | # Extract the first word of "cc", so it can be a program name with args. |
2200 | set dummy cc; ac_word=$2 |
2201 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2202 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2203 | if test "${ac_cv_prog_CC+set}" = set; then |
2204 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2205 | else |
2206 | if test -n "$CC"; then |
2207 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2208 | else |
2209 | ac_prog_rejected=no |
2210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2211 | for as_dir in $PATH |
2212 | do |
2213 | IFS=$as_save_IFS |
2214 | test -z "$as_dir" && as_dir=. |
2215 | for ac_exec_ext in '' $ac_executable_extensions; do |
2216 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2217 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2218 | ac_prog_rejected=yes |
2219 | continue |
2220 | fi |
2221 | ac_cv_prog_CC="cc" |
2222 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2223 | break 2 |
2224 | fi |
2225 | done |
2226 | done |
2227 | |
2228 | if test $ac_prog_rejected = yes; then |
2229 | # We found a bogon in the path, so make sure we never use it. |
2230 | set dummy $ac_cv_prog_CC |
2231 | shift |
2232 | if test $# != 0; then |
2233 | # We chose a different compiler from the bogus one. |
2234 | # However, it has the same basename, so the bogon will be chosen |
2235 | # first if we set CC to just the basename; use the full file name. |
2236 | shift |
2237 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
2238 | fi |
2239 | fi |
2240 | fi |
2241 | fi |
2242 | CC=$ac_cv_prog_CC |
2243 | if test -n "$CC"; then |
2244 | echo "$as_me:$LINENO: result: $CC" >&5 |
2245 | echo "${ECHO_T}$CC" >&6 |
2246 | else |
2247 | echo "$as_me:$LINENO: result: no" >&5 |
2248 | echo "${ECHO_T}no" >&6 |
2249 | fi |
2250 | |
2251 | fi |
2252 | if test -z "$CC"; then |
2253 | if test -n "$ac_tool_prefix"; then |
2254 | for ac_prog in cl |
2255 | do |
2256 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2257 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2258 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2259 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2260 | if test "${ac_cv_prog_CC+set}" = set; then |
2261 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2262 | else |
2263 | if test -n "$CC"; then |
2264 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2265 | else |
2266 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2267 | for as_dir in $PATH |
2268 | do |
2269 | IFS=$as_save_IFS |
2270 | test -z "$as_dir" && as_dir=. |
2271 | for ac_exec_ext in '' $ac_executable_extensions; do |
2272 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2273 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2274 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2275 | break 2 |
2276 | fi |
2277 | done |
2278 | done |
2279 | |
2280 | fi |
2281 | fi |
2282 | CC=$ac_cv_prog_CC |
2283 | if test -n "$CC"; then |
2284 | echo "$as_me:$LINENO: result: $CC" >&5 |
2285 | echo "${ECHO_T}$CC" >&6 |
2286 | else |
2287 | echo "$as_me:$LINENO: result: no" >&5 |
2288 | echo "${ECHO_T}no" >&6 |
2289 | fi |
2290 | |
2291 | test -n "$CC" && break |
2292 | done |
2293 | fi |
2294 | if test -z "$CC"; then |
2295 | ac_ct_CC=$CC |
2296 | for ac_prog in cl |
2297 | do |
2298 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2299 | set dummy $ac_prog; ac_word=$2 |
2300 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2301 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2302 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2304 | else |
2305 | if test -n "$ac_ct_CC"; then |
2306 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2307 | else |
2308 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2309 | for as_dir in $PATH |
2310 | do |
2311 | IFS=$as_save_IFS |
2312 | test -z "$as_dir" && as_dir=. |
2313 | for ac_exec_ext in '' $ac_executable_extensions; do |
2314 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2315 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2316 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2317 | break 2 |
2318 | fi |
2319 | done |
2320 | done |
2321 | |
2322 | fi |
2323 | fi |
2324 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2325 | if test -n "$ac_ct_CC"; then |
2326 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2327 | echo "${ECHO_T}$ac_ct_CC" >&6 |
2328 | else |
2329 | echo "$as_me:$LINENO: result: no" >&5 |
2330 | echo "${ECHO_T}no" >&6 |
2331 | fi |
2332 | |
2333 | test -n "$ac_ct_CC" && break |
2334 | done |
2335 | |
2336 | CC=$ac_ct_CC |
2337 | fi |
2338 | |
2339 | fi |
2340 | |
2341 | |
2342 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
2343 | See \`config.log' for more details." >&5 |
2344 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
2345 | See \`config.log' for more details." >&2;} |
2346 | { (exit 1); exit 1; }; } |
2347 | |
2348 | # Provide some information about the compiler. |
2349 | echo "$as_me:$LINENO:" \ |
2350 | "checking for C compiler version" >&5 |
2351 | ac_compiler=`set X $ac_compile; echo $2` |
2352 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
2353 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
2354 | ac_status=$? |
2355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2356 | (exit $ac_status); } |
2357 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
2358 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
2359 | ac_status=$? |
2360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2361 | (exit $ac_status); } |
2362 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
2363 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
2364 | ac_status=$? |
2365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2366 | (exit $ac_status); } |
2367 | |
2368 | cat >conftest.$ac_ext <<_ACEOF |
2369 | /* confdefs.h. */ |
2370 | _ACEOF |
2371 | cat confdefs.h >>conftest.$ac_ext |
2372 | cat >>conftest.$ac_ext <<_ACEOF |
2373 | /* end confdefs.h. */ |
2374 | |
2375 | int |
2376 | main () |
2377 | { |
2378 | |
2379 | ; |
2380 | return 0; |
2381 | } |
2382 | _ACEOF |
2383 | ac_clean_files_save=$ac_clean_files |
2384 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
2385 | # Try to create an executable without -o first, disregard a.out. |
2386 | # It will help us diagnose broken compilers, and finding out an intuition |
2387 | # of exeext. |
2388 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2389 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
2390 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2391 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
2392 | (eval $ac_link_default) 2>&5 |
2393 | ac_status=$? |
2394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2395 | (exit $ac_status); }; then |
2396 | # Find the output, starting from the most likely. This scheme is |
2397 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
2398 | # resort. |
2399 | |
2400 | # Be careful to initialize this variable, since it used to be cached. |
2401 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
2402 | ac_cv_exeext= |
2403 | # b.out is created by i960 compilers. |
2404 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
2405 | do |
2406 | test -f "$ac_file" || continue |
2407 | case $ac_file in |
2408 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
2409 | ;; |
2410 | conftest.$ac_ext ) |
2411 | # This is the source file. |
2412 | ;; |
2413 | [ab].out ) |
2414 | # We found the default executable, but exeext='' is most |
2415 | # certainly right. |
2416 | break;; |
2417 | *.* ) |
2418 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2419 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
2420 | # but it would be cool to find out if it's true. Does anybody |
2421 | # maintain Libtool? --akim. |
2422 | export ac_cv_exeext |
2423 | break;; |
2424 | * ) |
2425 | break;; |
2426 | esac |
2427 | done |
2428 | else |
2429 | echo "$as_me: failed program was:" >&5 |
2430 | sed 's/^/| /' conftest.$ac_ext >&5 |
2431 | |
2432 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
2433 | See \`config.log' for more details." >&5 |
2434 | echo "$as_me: error: C compiler cannot create executables |
2435 | See \`config.log' for more details." >&2;} |
2436 | { (exit 77); exit 77; }; } |
2437 | fi |
2438 | |
2439 | ac_exeext=$ac_cv_exeext |
2440 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
2441 | echo "${ECHO_T}$ac_file" >&6 |
2442 | |
2443 | # Check the compiler produces executables we can run. If not, either |
2444 | # the compiler is broken, or we cross compile. |
2445 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2446 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
2447 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2448 | # If not cross compiling, check that we can run a simple program. |
2449 | if test "$cross_compiling" != yes; then |
2450 | if { ac_try='./$ac_file' |
2451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2452 | (eval $ac_try) 2>&5 |
2453 | ac_status=$? |
2454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2455 | (exit $ac_status); }; }; then |
2456 | cross_compiling=no |
2457 | else |
2458 | if test "$cross_compiling" = maybe; then |
2459 | cross_compiling=yes |
2460 | else |
2461 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
2462 | If you meant to cross compile, use \`--host'. |
2463 | See \`config.log' for more details." >&5 |
2464 | echo "$as_me: error: cannot run C compiled programs. |
2465 | If you meant to cross compile, use \`--host'. |
2466 | See \`config.log' for more details." >&2;} |
2467 | { (exit 1); exit 1; }; } |
2468 | fi |
2469 | fi |
2470 | fi |
2471 | echo "$as_me:$LINENO: result: yes" >&5 |
2472 | echo "${ECHO_T}yes" >&6 |
2473 | |
2474 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
2475 | ac_clean_files=$ac_clean_files_save |
2476 | # Check the compiler produces executables we can run. If not, either |
2477 | # the compiler is broken, or we cross compile. |
2478 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2479 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
2480 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
2481 | echo "${ECHO_T}$cross_compiling" >&6 |
2482 | |
2483 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2484 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
2485 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
2486 | (eval $ac_link) 2>&5 |
2487 | ac_status=$? |
2488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2489 | (exit $ac_status); }; then |
2490 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
2491 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
2492 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
2493 | # `rm'. |
2494 | for ac_file in conftest.exe conftest conftest.*; do |
2495 | test -f "$ac_file" || continue |
2496 | case $ac_file in |
2497 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
2498 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2499 | export ac_cv_exeext |
2500 | break;; |
2501 | * ) break;; |
2502 | esac |
2503 | done |
2504 | else |
2505 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
2506 | See \`config.log' for more details." >&5 |
2507 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
2508 | See \`config.log' for more details." >&2;} |
2509 | { (exit 1); exit 1; }; } |
2510 | fi |
2511 | |
2512 | rm -f conftest$ac_cv_exeext |
2513 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2514 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
2515 | |
2516 | rm -f conftest.$ac_ext |
2517 | EXEEXT=$ac_cv_exeext |
2518 | ac_exeext=$EXEEXT |
2519 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2520 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
2521 | if test "${ac_cv_objext+set}" = set; then |
2522 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2523 | else |
2524 | cat >conftest.$ac_ext <<_ACEOF |
2525 | /* confdefs.h. */ |
2526 | _ACEOF |
2527 | cat confdefs.h >>conftest.$ac_ext |
2528 | cat >>conftest.$ac_ext <<_ACEOF |
2529 | /* end confdefs.h. */ |
2530 | |
2531 | int |
2532 | main () |
2533 | { |
2534 | |
2535 | ; |
2536 | return 0; |
2537 | } |
2538 | _ACEOF |
2539 | rm -f conftest.o conftest.obj |
2540 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2541 | (eval $ac_compile) 2>&5 |
2542 | ac_status=$? |
2543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2544 | (exit $ac_status); }; then |
2545 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
2546 | case $ac_file in |
2547 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
2548 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2549 | break;; |
2550 | esac |
2551 | done |
2552 | else |
2553 | echo "$as_me: failed program was:" >&5 |
2554 | sed 's/^/| /' conftest.$ac_ext >&5 |
2555 | |
2556 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
2557 | See \`config.log' for more details." >&5 |
2558 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
2559 | See \`config.log' for more details." >&2;} |
2560 | { (exit 1); exit 1; }; } |
2561 | fi |
2562 | |
2563 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2564 | fi |
2565 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2566 | echo "${ECHO_T}$ac_cv_objext" >&6 |
2567 | OBJEXT=$ac_cv_objext |
2568 | ac_objext=$OBJEXT |
2569 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2570 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
2571 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
2572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2573 | else |
2574 | cat >conftest.$ac_ext <<_ACEOF |
2575 | /* confdefs.h. */ |
2576 | _ACEOF |
2577 | cat confdefs.h >>conftest.$ac_ext |
2578 | cat >>conftest.$ac_ext <<_ACEOF |
2579 | /* end confdefs.h. */ |
2580 | |
2581 | int |
2582 | main () |
2583 | { |
2584 | #ifndef __GNUC__ |
2585 | choke me |
2586 | #endif |
2587 | |
2588 | ; |
2589 | return 0; |
2590 | } |
2591 | _ACEOF |
2592 | rm -f conftest.$ac_objext |
2593 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2594 | (eval $ac_compile) 2>conftest.er1 |
2595 | ac_status=$? |
2596 | grep -v '^ *+' conftest.er1 >conftest.err |
2597 | rm -f conftest.er1 |
2598 | cat conftest.err >&5 |
2599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2600 | (exit $ac_status); } && |
2601 | { ac_try='test -z "$ac_c_werror_flag" |
2602 | || test ! -s conftest.err' |
2603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2604 | (eval $ac_try) 2>&5 |
2605 | ac_status=$? |
2606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2607 | (exit $ac_status); }; } && |
2608 | { ac_try='test -s conftest.$ac_objext' |
2609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2610 | (eval $ac_try) 2>&5 |
2611 | ac_status=$? |
2612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2613 | (exit $ac_status); }; }; then |
2614 | ac_compiler_gnu=yes |
2615 | else |
2616 | echo "$as_me: failed program was:" >&5 |
2617 | sed 's/^/| /' conftest.$ac_ext >&5 |
2618 | |
2619 | ac_compiler_gnu=no |
2620 | fi |
2621 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2622 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2623 | |
2624 | fi |
2625 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2626 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
2627 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
2628 | ac_test_CFLAGS=${CFLAGS+set} |
2629 | ac_save_CFLAGS=$CFLAGS |
2630 | CFLAGS="-g" |
2631 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2632 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
2633 | if test "${ac_cv_prog_cc_g+set}" = set; then |
2634 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2635 | else |
2636 | cat >conftest.$ac_ext <<_ACEOF |
2637 | /* confdefs.h. */ |
2638 | _ACEOF |
2639 | cat confdefs.h >>conftest.$ac_ext |
2640 | cat >>conftest.$ac_ext <<_ACEOF |
2641 | /* end confdefs.h. */ |
2642 | |
2643 | int |
2644 | main () |
2645 | { |
2646 | |
2647 | ; |
2648 | return 0; |
2649 | } |
2650 | _ACEOF |
2651 | rm -f conftest.$ac_objext |
2652 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2653 | (eval $ac_compile) 2>conftest.er1 |
2654 | ac_status=$? |
2655 | grep -v '^ *+' conftest.er1 >conftest.err |
2656 | rm -f conftest.er1 |
2657 | cat conftest.err >&5 |
2658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2659 | (exit $ac_status); } && |
2660 | { ac_try='test -z "$ac_c_werror_flag" |
2661 | || test ! -s conftest.err' |
2662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2663 | (eval $ac_try) 2>&5 |
2664 | ac_status=$? |
2665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2666 | (exit $ac_status); }; } && |
2667 | { ac_try='test -s conftest.$ac_objext' |
2668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2669 | (eval $ac_try) 2>&5 |
2670 | ac_status=$? |
2671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2672 | (exit $ac_status); }; }; then |
2673 | ac_cv_prog_cc_g=yes |
2674 | else |
2675 | echo "$as_me: failed program was:" >&5 |
2676 | sed 's/^/| /' conftest.$ac_ext >&5 |
2677 | |
2678 | ac_cv_prog_cc_g=no |
2679 | fi |
2680 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2681 | fi |
2682 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2683 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
2684 | if test "$ac_test_CFLAGS" = set; then |
2685 | CFLAGS=$ac_save_CFLAGS |
2686 | elif test $ac_cv_prog_cc_g = yes; then |
2687 | if test "$GCC" = yes; then |
2688 | CFLAGS="-g -O2" |
2689 | else |
2690 | CFLAGS="-g" |
2691 | fi |
2692 | else |
2693 | if test "$GCC" = yes; then |
2694 | CFLAGS="-O2" |
2695 | else |
2696 | CFLAGS= |
2697 | fi |
2698 | fi |
2699 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2700 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
2701 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
2702 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2703 | else |
2704 | ac_cv_prog_cc_stdc=no |
2705 | ac_save_CC=$CC |
2706 | cat >conftest.$ac_ext <<_ACEOF |
2707 | /* confdefs.h. */ |
2708 | _ACEOF |
2709 | cat confdefs.h >>conftest.$ac_ext |
2710 | cat >>conftest.$ac_ext <<_ACEOF |
2711 | /* end confdefs.h. */ |
2712 | #include <stdarg.h> |
2713 | #include <stdio.h> |
2714 | #include <sys/types.h> |
2715 | #include <sys/stat.h> |
2716 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
2717 | struct buf { int x; }; |
2718 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
2719 | static char *e (p, i) |
2720 | char **p; |
2721 | int i; |
2722 | { |
2723 | return p[i]; |
2724 | } |
2725 | static char *f (char * (*g) (char **, int), char **p, ...) |
2726 | { |
2727 | char *s; |
2728 | va_list v; |
2729 | va_start (v,p); |
2730 | s = g (p, va_arg (v,int)); |
2731 | va_end (v); |
2732 | return s; |
2733 | } |
2734 | |
2735 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
2736 | function prototypes and stuff, but not '\xHH' hex character constants. |
2737 | These don't provoke an error unfortunately, instead are silently treated |
2738 | as 'x'. The following induces an error, until -std1 is added to get |
2739 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2740 | array size at least. It's necessary to write '\x00'==0 to get something |
2741 | that's true only with -std1. */ |
2742 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2743 | |
2744 | int test (int i, double x); |
2745 | struct s1 {int (*f) (int a);}; |
2746 | struct s2 {int (*f) (double a);}; |
2747 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
2748 | int argc; |
2749 | char **argv; |
2750 | int |
2751 | main () |
2752 | { |
2753 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
2754 | ; |
2755 | return 0; |
2756 | } |
2757 | _ACEOF |
2758 | # Don't try gcc -ansi; that turns off useful extensions and |
2759 | # breaks some systems' header files. |
2760 | # AIX -qlanglvl=ansi |
2761 | # Ultrix and OSF/1 -std1 |
2762 | # HP-UX 10.20 and later -Ae |
2763 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
2764 | # SVR4 -Xc -D__EXTENSIONS__ |
2765 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
2766 | do |
2767 | CC="$ac_save_CC $ac_arg" |
2768 | rm -f conftest.$ac_objext |
2769 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2770 | (eval $ac_compile) 2>conftest.er1 |
2771 | ac_status=$? |
2772 | grep -v '^ *+' conftest.er1 >conftest.err |
2773 | rm -f conftest.er1 |
2774 | cat conftest.err >&5 |
2775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2776 | (exit $ac_status); } && |
2777 | { ac_try='test -z "$ac_c_werror_flag" |
2778 | || test ! -s conftest.err' |
2779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2780 | (eval $ac_try) 2>&5 |
2781 | ac_status=$? |
2782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2783 | (exit $ac_status); }; } && |
2784 | { ac_try='test -s conftest.$ac_objext' |
2785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2786 | (eval $ac_try) 2>&5 |
2787 | ac_status=$? |
2788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2789 | (exit $ac_status); }; }; then |
2790 | ac_cv_prog_cc_stdc=$ac_arg |
2791 | break |
2792 | else |
2793 | echo "$as_me: failed program was:" >&5 |
2794 | sed 's/^/| /' conftest.$ac_ext >&5 |
2795 | |
2796 | fi |
2797 | rm -f conftest.err conftest.$ac_objext |
2798 | done |
2799 | rm -f conftest.$ac_ext conftest.$ac_objext |
2800 | CC=$ac_save_CC |
2801 | |
2802 | fi |
2803 | |
2804 | case "x$ac_cv_prog_cc_stdc" in |
2805 | x|xno) |
2806 | echo "$as_me:$LINENO: result: none needed" >&5 |
2807 | echo "${ECHO_T}none needed" >&6 ;; |
2808 | *) |
2809 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
2810 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
2811 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
2812 | esac |
2813 | |
2814 | # Some people use a C++ compiler to compile C. Since we use `exit', |
2815 | # in C++ we need to declare it. In case someone uses the same compiler |
2816 | # for both compiling C and C++ we need to have the C++ compiler decide |
2817 | # the declaration of exit, since it's the most demanding environment. |
2818 | cat >conftest.$ac_ext <<_ACEOF |
2819 | #ifndef __cplusplus |
2820 | choke me |
2821 | #endif |
2822 | _ACEOF |
2823 | rm -f conftest.$ac_objext |
2824 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2825 | (eval $ac_compile) 2>conftest.er1 |
2826 | ac_status=$? |
2827 | grep -v '^ *+' conftest.er1 >conftest.err |
2828 | rm -f conftest.er1 |
2829 | cat conftest.err >&5 |
2830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2831 | (exit $ac_status); } && |
2832 | { ac_try='test -z "$ac_c_werror_flag" |
2833 | || test ! -s conftest.err' |
2834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2835 | (eval $ac_try) 2>&5 |
2836 | ac_status=$? |
2837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2838 | (exit $ac_status); }; } && |
2839 | { ac_try='test -s conftest.$ac_objext' |
2840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2841 | (eval $ac_try) 2>&5 |
2842 | ac_status=$? |
2843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2844 | (exit $ac_status); }; }; then |
2845 | for ac_declaration in \ |
2846 | '' \ |
2847 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
2848 | 'extern "C" void std::exit (int); using std::exit;' \ |
2849 | 'extern "C" void exit (int) throw ();' \ |
2850 | 'extern "C" void exit (int);' \ |
2851 | 'void exit (int);' |
2852 | do |
2853 | cat >conftest.$ac_ext <<_ACEOF |
2854 | /* confdefs.h. */ |
2855 | _ACEOF |
2856 | cat confdefs.h >>conftest.$ac_ext |
2857 | cat >>conftest.$ac_ext <<_ACEOF |
2858 | /* end confdefs.h. */ |
2859 | $ac_declaration |
2860 | #include <stdlib.h> |
2861 | int |
2862 | main () |
2863 | { |
2864 | exit (42); |
2865 | ; |
2866 | return 0; |
2867 | } |
2868 | _ACEOF |
2869 | rm -f conftest.$ac_objext |
2870 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2871 | (eval $ac_compile) 2>conftest.er1 |
2872 | ac_status=$? |
2873 | grep -v '^ *+' conftest.er1 >conftest.err |
2874 | rm -f conftest.er1 |
2875 | cat conftest.err >&5 |
2876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2877 | (exit $ac_status); } && |
2878 | { ac_try='test -z "$ac_c_werror_flag" |
2879 | || test ! -s conftest.err' |
2880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2881 | (eval $ac_try) 2>&5 |
2882 | ac_status=$? |
2883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2884 | (exit $ac_status); }; } && |
2885 | { ac_try='test -s conftest.$ac_objext' |
2886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2887 | (eval $ac_try) 2>&5 |
2888 | ac_status=$? |
2889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2890 | (exit $ac_status); }; }; then |
2891 | : |
2892 | else |
2893 | echo "$as_me: failed program was:" >&5 |
2894 | sed 's/^/| /' conftest.$ac_ext >&5 |
2895 | |
2896 | continue |
2897 | fi |
2898 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2899 | cat >conftest.$ac_ext <<_ACEOF |
2900 | /* confdefs.h. */ |
2901 | _ACEOF |
2902 | cat confdefs.h >>conftest.$ac_ext |
2903 | cat >>conftest.$ac_ext <<_ACEOF |
2904 | /* end confdefs.h. */ |
2905 | $ac_declaration |
2906 | int |
2907 | main () |
2908 | { |
2909 | exit (42); |
2910 | ; |
2911 | return 0; |
2912 | } |
2913 | _ACEOF |
2914 | rm -f conftest.$ac_objext |
2915 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2916 | (eval $ac_compile) 2>conftest.er1 |
2917 | ac_status=$? |
2918 | grep -v '^ *+' conftest.er1 >conftest.err |
2919 | rm -f conftest.er1 |
2920 | cat conftest.err >&5 |
2921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2922 | (exit $ac_status); } && |
2923 | { ac_try='test -z "$ac_c_werror_flag" |
2924 | || test ! -s conftest.err' |
2925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2926 | (eval $ac_try) 2>&5 |
2927 | ac_status=$? |
2928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2929 | (exit $ac_status); }; } && |
2930 | { ac_try='test -s conftest.$ac_objext' |
2931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2932 | (eval $ac_try) 2>&5 |
2933 | ac_status=$? |
2934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2935 | (exit $ac_status); }; }; then |
2936 | break |
2937 | else |
2938 | echo "$as_me: failed program was:" >&5 |
2939 | sed 's/^/| /' conftest.$ac_ext >&5 |
2940 | |
2941 | fi |
2942 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2943 | done |
2944 | rm -f conftest* |
2945 | if test -n "$ac_declaration"; then |
2946 | echo '#ifdef __cplusplus' >>confdefs.h |
2947 | echo $ac_declaration >>confdefs.h |
2948 | echo '#endif' >>confdefs.h |
2949 | fi |
2950 | |
2951 | else |
2952 | echo "$as_me: failed program was:" >&5 |
2953 | sed 's/^/| /' conftest.$ac_ext >&5 |
2954 | |
2955 | fi |
2956 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2957 | ac_ext=c |
2958 | ac_cpp='$CPP $CPPFLAGS' |
2959 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2960 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2961 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2962 | DEPDIR="${am__leading_dot}deps" |
2963 | |
2964 | ac_config_commands="$ac_config_commands depfiles" |
2965 | |
2966 | |
2967 | am_make=${MAKE-make} |
2968 | cat > confinc << 'END' |
2969 | am__doit: |
2970 | @echo done |
2971 | .PHONY: am__doit |
2972 | END |
2973 | # If we don't find an include directive, just comment out the code. |
2974 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
2975 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
2976 | am__include="#" |
2977 | am__quote= |
2978 | _am_result=none |
2979 | # First try GNU make style include. |
2980 | echo "include confinc" > confmf |
2981 | # We grep out `Entering directory' and `Leaving directory' |
2982 | # messages which can occur if `w' ends up in MAKEFLAGS. |
2983 | # In particular we don't look at `^make:' because GNU make might |
2984 | # be invoked under some other name (usually "gmake"), in which |
2985 | # case it prints its new name instead of `make'. |
2986 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
2987 | am__include=include |
2988 | am__quote= |
2989 | _am_result=GNU |
2990 | fi |
2991 | # Now try BSD make style include. |
2992 | if test "$am__include" = "#"; then |
2993 | echo '.include "confinc"' > confmf |
2994 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
2995 | am__include=.include |
2996 | am__quote="\"" |
2997 | _am_result=BSD |
2998 | fi |
2999 | fi |
3000 | |
3001 | |
3002 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
3003 | echo "${ECHO_T}$_am_result" >&6 |
3004 | rm -f confinc confmf |
3005 | |
3006 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
3007 | if test "${enable_dependency_tracking+set}" = set; then |
3008 | enableval="$enable_dependency_tracking" |
3009 | |
3010 | fi; |
3011 | if test "x$enable_dependency_tracking" != xno; then |
3012 | am_depcomp="$ac_aux_dir/depcomp" |
3013 | AMDEPBACKSLASH='\' |
3014 | fi |
3015 | |
3016 | |
3017 | if test "x$enable_dependency_tracking" != xno; then |
3018 | AMDEP_TRUE= |
3019 | AMDEP_FALSE='#' |
3020 | else |
3021 | AMDEP_TRUE='#' |
3022 | AMDEP_FALSE= |
3023 | fi |
3024 | |
3025 | |
3026 | |
3027 | |
3028 | depcc="$CC" am_compiler_list= |
3029 | |
3030 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3031 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
3032 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
3033 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3034 | else |
3035 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
3036 | # We make a subdir and do the tests there. Otherwise we can end up |
3037 | # making bogus files that we don't know about and never remove. For |
3038 | # instance it was reported that on HP-UX the gcc test will end up |
3039 | # making a dummy file named `D' -- because `-MD' means `put the output |
3040 | # in D'. |
3041 | mkdir conftest.dir |
3042 | # Copy depcomp to subdir because otherwise we won't find it if we're |
3043 | # using a relative directory. |
3044 | cp "$am_depcomp" conftest.dir |
3045 | cd conftest.dir |
3046 | # We will build objects and dependencies in a subdirectory because |
3047 | # it helps to detect inapplicable dependency modes. For instance |
3048 | # both Tru64's cc and ICC support -MD to output dependencies as a |
3049 | # side effect of compilation, but ICC will put the dependencies in |
3050 | # the current directory while Tru64 will put them in the object |
3051 | # directory. |
3052 | mkdir sub |
3053 | |
3054 | am_cv_CC_dependencies_compiler_type=none |
3055 | if test "$am_compiler_list" = ""; then |
3056 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
3057 | fi |
3058 | for depmode in $am_compiler_list; do |
3059 | # Setup a source with many dependencies, because some compilers |
3060 | # like to wrap large dependency lists on column 80 (with \), and |
3061 | # we should not choose a depcomp mode which is confused by this. |
3062 | # |
3063 | # We need to recreate these files for each test, as the compiler may |
3064 | # overwrite some of them when testing with obscure command lines. |
3065 | # This happens at least with the AIX C compiler. |
3066 | : > sub/conftest.c |
3067 | for i in 1 2 3 4 5 6; do |
3068 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
3069 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
3070 | # Solaris 8's {/usr,}/bin/sh. |
3071 | touch sub/conftst$i.h |
3072 | done |
3073 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
3074 | |
3075 | case $depmode in |
3076 | nosideeffect) |
3077 | # after this tag, mechanisms are not by side-effect, so they'll |
3078 | # only be used when explicitly requested |
3079 | if test "x$enable_dependency_tracking" = xyes; then |
3080 | continue |
3081 | else |
3082 | break |
3083 | fi |
3084 | ;; |
3085 | none) break ;; |
3086 | esac |
3087 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
3088 | # mode. It turns out that the SunPro C++ compiler does not properly |
3089 | # handle `-M -o', and we need to detect this. |
3090 | if depmode=$depmode \ |
3091 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
3092 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
3093 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
3094 | >/dev/null 2>conftest.err && |
3095 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
3096 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
3097 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3098 | # icc doesn't choke on unknown options, it will just issue warnings |
3099 | # or remarks (even with -Werror). So we grep stderr for any message |
3100 | # that says an option was ignored or not supported. |
3101 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
3102 | # icc: Command line warning: ignoring option '-M'; no argument required |
3103 | # The diagnosis changed in icc 8.0: |
3104 | # icc: Command line remark: option '-MP' not supported |
3105 | if (grep 'ignoring option' conftest.err || |
3106 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
3107 | am_cv_CC_dependencies_compiler_type=$depmode |
3108 | break |
3109 | fi |
3110 | fi |
3111 | done |
3112 | |
3113 | cd .. |
3114 | rm -rf conftest.dir |
3115 | else |
3116 | am_cv_CC_dependencies_compiler_type=none |
3117 | fi |
3118 | |
3119 | fi |
3120 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3121 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
3122 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3123 | |
3124 | |
3125 | |
3126 | if |
3127 | test "x$enable_dependency_tracking" != xno \ |
3128 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
3129 | am__fastdepCC_TRUE= |
3130 | am__fastdepCC_FALSE='#' |
3131 | else |
3132 | am__fastdepCC_TRUE='#' |
3133 | am__fastdepCC_FALSE= |
3134 | fi |
3135 | |
3136 | |
3137 | ac_ext=c |
3138 | ac_cpp='$CPP $CPPFLAGS' |
3139 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3140 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3141 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3142 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3143 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
3144 | # On Suns, sometimes $CPP names a directory. |
3145 | if test -n "$CPP" && test -d "$CPP"; then |
3146 | CPP= |
3147 | fi |
3148 | if test -z "$CPP"; then |
3149 | if test "${ac_cv_prog_CPP+set}" = set; then |
3150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3151 | else |
3152 | # Double quotes because CPP needs to be expanded |
3153 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
3154 | do |
3155 | ac_preproc_ok=false |
3156 | for ac_c_preproc_warn_flag in '' yes |
3157 | do |
3158 | # Use a header file that comes with gcc, so configuring glibc |
3159 | # with a fresh cross-compiler works. |
3160 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3161 | # <limits.h> exists even on freestanding compilers. |
3162 | # On the NeXT, cc -E runs the code through the compiler's parser, |
3163 | # not just through cpp. "Syntax error" is here to catch this case. |
3164 | cat >conftest.$ac_ext <<_ACEOF |
3165 | /* confdefs.h. */ |
3166 | _ACEOF |
3167 | cat confdefs.h >>conftest.$ac_ext |
3168 | cat >>conftest.$ac_ext <<_ACEOF |
3169 | /* end confdefs.h. */ |
3170 | #ifdef __STDC__ |
3171 | # include <limits.h> |
3172 | #else |
3173 | # include <assert.h> |
3174 | #endif |
3175 | Syntax error |
3176 | _ACEOF |
3177 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3178 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3179 | ac_status=$? |
3180 | grep -v '^ *+' conftest.er1 >conftest.err |
3181 | rm -f conftest.er1 |
3182 | cat conftest.err >&5 |
3183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3184 | (exit $ac_status); } >/dev/null; then |
3185 | if test -s conftest.err; then |
3186 | ac_cpp_err=$ac_c_preproc_warn_flag |
3187 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
3188 | else |
3189 | ac_cpp_err= |
3190 | fi |
3191 | else |
3192 | ac_cpp_err=yes |
3193 | fi |
3194 | if test -z "$ac_cpp_err"; then |
3195 | : |
3196 | else |
3197 | echo "$as_me: failed program was:" >&5 |
3198 | sed 's/^/| /' conftest.$ac_ext >&5 |
3199 | |
3200 | # Broken: fails on valid input. |
3201 | continue |
3202 | fi |
3203 | rm -f conftest.err conftest.$ac_ext |
3204 | |
3205 | # OK, works on sane cases. Now check whether non-existent headers |
3206 | # can be detected and how. |
3207 | cat >conftest.$ac_ext <<_ACEOF |
3208 | /* confdefs.h. */ |
3209 | _ACEOF |
3210 | cat confdefs.h >>conftest.$ac_ext |
3211 | cat >>conftest.$ac_ext <<_ACEOF |
3212 | /* end confdefs.h. */ |
3213 | #include <ac_nonexistent.h> |
3214 | _ACEOF |
3215 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3216 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3217 | ac_status=$? |
3218 | grep -v '^ *+' conftest.er1 >conftest.err |
3219 | rm -f conftest.er1 |
3220 | cat conftest.err >&5 |
3221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3222 | (exit $ac_status); } >/dev/null; then |
3223 | if test -s conftest.err; then |
3224 | ac_cpp_err=$ac_c_preproc_warn_flag |
3225 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
3226 | else |
3227 | ac_cpp_err= |
3228 | fi |
3229 | else |
3230 | ac_cpp_err=yes |
3231 | fi |
3232 | if test -z "$ac_cpp_err"; then |
3233 | # Broken: success on invalid input. |
3234 | continue |
3235 | else |
3236 | echo "$as_me: failed program was:" >&5 |
3237 | sed 's/^/| /' conftest.$ac_ext >&5 |
3238 | |
3239 | # Passes both tests. |
3240 | ac_preproc_ok=: |
3241 | break |
3242 | fi |
3243 | rm -f conftest.err conftest.$ac_ext |
3244 | |
3245 | done |
3246 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3247 | rm -f conftest.err conftest.$ac_ext |
3248 | if $ac_preproc_ok; then |
3249 | break |
3250 | fi |
3251 | |
3252 | done |
3253 | ac_cv_prog_CPP=$CPP |
3254 | |
3255 | fi |
3256 | CPP=$ac_cv_prog_CPP |
3257 | else |
3258 | ac_cv_prog_CPP=$CPP |
3259 | fi |
3260 | echo "$as_me:$LINENO: result: $CPP" >&5 |
3261 | echo "${ECHO_T}$CPP" >&6 |
3262 | ac_preproc_ok=false |
3263 | for ac_c_preproc_warn_flag in '' yes |
3264 | do |
3265 | # Use a header file that comes with gcc, so configuring glibc |
3266 | # with a fresh cross-compiler works. |
3267 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3268 | # <limits.h> exists even on freestanding compilers. |
3269 | # On the NeXT, cc -E runs the code through the compiler's parser, |
3270 | # not just through cpp. "Syntax error" is here to catch this case. |
3271 | cat >conftest.$ac_ext <<_ACEOF |
3272 | /* confdefs.h. */ |
3273 | _ACEOF |
3274 | cat confdefs.h >>conftest.$ac_ext |
3275 | cat >>conftest.$ac_ext <<_ACEOF |
3276 | /* end confdefs.h. */ |
3277 | #ifdef __STDC__ |
3278 | # include <limits.h> |
3279 | #else |
3280 | # include <assert.h> |
3281 | #endif |
3282 | Syntax error |
3283 | _ACEOF |
3284 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3285 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3286 | ac_status=$? |
3287 | grep -v '^ *+' conftest.er1 >conftest.err |
3288 | rm -f conftest.er1 |
3289 | cat conftest.err >&5 |
3290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3291 | (exit $ac_status); } >/dev/null; then |
3292 | if test -s conftest.err; then |
3293 | ac_cpp_err=$ac_c_preproc_warn_flag |
3294 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
3295 | else |
3296 | ac_cpp_err= |
3297 | fi |
3298 | else |
3299 | ac_cpp_err=yes |
3300 | fi |
3301 | if test -z "$ac_cpp_err"; then |
3302 | : |
3303 | else |
3304 | echo "$as_me: failed program was:" >&5 |
3305 | sed 's/^/| /' conftest.$ac_ext >&5 |
3306 | |
3307 | # Broken: fails on valid input. |
3308 | continue |
3309 | fi |
3310 | rm -f conftest.err conftest.$ac_ext |
3311 | |
3312 | # OK, works on sane cases. Now check whether non-existent headers |
3313 | # can be detected and how. |
3314 | cat >conftest.$ac_ext <<_ACEOF |
3315 | /* confdefs.h. */ |
3316 | _ACEOF |
3317 | cat confdefs.h >>conftest.$ac_ext |
3318 | cat >>conftest.$ac_ext <<_ACEOF |
3319 | /* end confdefs.h. */ |
3320 | #include <ac_nonexistent.h> |
3321 | _ACEOF |
3322 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3323 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3324 | ac_status=$? |
3325 | grep -v '^ *+' conftest.er1 >conftest.err |
3326 | rm -f conftest.er1 |
3327 | cat conftest.err >&5 |
3328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3329 | (exit $ac_status); } >/dev/null; then |
3330 | if test -s conftest.err; then |
3331 | ac_cpp_err=$ac_c_preproc_warn_flag |
3332 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
3333 | else |
3334 | ac_cpp_err= |
3335 | fi |
3336 | else |
3337 | ac_cpp_err=yes |
3338 | fi |
3339 | if test -z "$ac_cpp_err"; then |
3340 | # Broken: success on invalid input. |
3341 | continue |
3342 | else |
3343 | echo "$as_me: failed program was:" >&5 |
3344 | sed 's/^/| /' conftest.$ac_ext >&5 |
3345 | |
3346 | # Passes both tests. |
3347 | ac_preproc_ok=: |
3348 | break |
3349 | fi |
3350 | rm -f conftest.err conftest.$ac_ext |
3351 | |
3352 | done |
3353 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3354 | rm -f conftest.err conftest.$ac_ext |
3355 | if $ac_preproc_ok; then |
3356 | : |
3357 | else |
3358 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
3359 | See \`config.log' for more details." >&5 |
3360 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
3361 | See \`config.log' for more details." >&2;} |
3362 | { (exit 1); exit 1; }; } |
3363 | fi |
3364 | |
3365 | ac_ext=c |
3366 | ac_cpp='$CPP $CPPFLAGS' |
3367 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3368 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3369 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3370 | |
3371 | # Find a good install program. We prefer a C program (faster), |
3372 | # so one script is as good as another. But avoid the broken or |
3373 | # incompatible versions: |
3374 | # SysV /etc/install, /usr/sbin/install |
3375 | # SunOS /usr/etc/install |
3376 | # IRIX /sbin/install |
3377 | # AIX /bin/install |
3378 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
3379 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
3380 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
3381 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
3382 | # OS/2's system install, which has a completely different semantic |
3383 | # ./install, which can be erroneously created by make from ./install.sh. |
3384 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
3385 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
3386 | if test -z "$INSTALL"; then |
3387 | if test "${ac_cv_path_install+set}" = set; then |
3388 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3389 | else |
3390 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3391 | for as_dir in $PATH |
3392 | do |
3393 | IFS=$as_save_IFS |
3394 | test -z "$as_dir" && as_dir=. |
3395 | # Account for people who put trailing slashes in PATH elements. |
3396 | case $as_dir/ in |
3397 | ./ | .// | /cC/* | \ |
3398 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
3399 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
3400 | /usr/ucb/* ) ;; |
3401 | *) |
3402 | # OSF1 and SCO ODT 3.0 have their own names for install. |
3403 | # Don't use installbsd from OSF since it installs stuff as root |
3404 | # by default. |
3405 | for ac_prog in ginstall scoinst install; do |
3406 | for ac_exec_ext in '' $ac_executable_extensions; do |
3407 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
3408 | if test $ac_prog = install && |
3409 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
3410 | # AIX install. It has an incompatible calling convention. |
3411 | : |
3412 | elif test $ac_prog = install && |
3413 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
3414 | # program-specific install script used by HP pwplus--don't use. |
3415 | : |
3416 | else |
3417 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
3418 | break 3 |
3419 | fi |
3420 | fi |
3421 | done |
3422 | done |
3423 | ;; |
3424 | esac |
3425 | done |
3426 | |
3427 | |
3428 | fi |
3429 | if test "${ac_cv_path_install+set}" = set; then |
3430 | INSTALL=$ac_cv_path_install |
3431 | else |
3432 | # As a last resort, use the slow shell script. We don't cache a |
3433 | # path for INSTALL within a source directory, because that will |
3434 | # break other packages using the cache if that directory is |
3435 | # removed, or if the path is relative. |
3436 | INSTALL=$ac_install_sh |
3437 | fi |
3438 | fi |
3439 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3440 | echo "${ECHO_T}$INSTALL" >&6 |
3441 | |
3442 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3443 | # It thinks the first close brace ends the variable substitution. |
3444 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
3445 | |
3446 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
3447 | |
3448 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3449 | |
3450 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3451 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
3452 | LN_S=$as_ln_s |
3453 | if test "$LN_S" = "ln -s"; then |
3454 | echo "$as_me:$LINENO: result: yes" >&5 |
3455 | echo "${ECHO_T}yes" >&6 |
3456 | else |
3457 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3458 | echo "${ECHO_T}no, using $LN_S" >&6 |
3459 | fi |
3460 | |
3461 | |
3462 | |
3463 | for ac_prog in perl5 perl |
3464 | do |
3465 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
3466 | set dummy $ac_prog; ac_word=$2 |
3467 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3468 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3469 | if test "${ac_cv_path_SYSCONFTOOL_PERL+set}" = set; then |
3470 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3471 | else |
3472 | case $SYSCONFTOOL_PERL in |
3473 | [\\/]* | ?:[\\/]*) |
3474 | ac_cv_path_SYSCONFTOOL_PERL="$SYSCONFTOOL_PERL" # Let the user override the test with a path. |
3475 | ;; |
3476 | *) |
3477 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3478 | for as_dir in $PATH |
3479 | do |
3480 | IFS=$as_save_IFS |
3481 | test -z "$as_dir" && as_dir=. |
3482 | for ac_exec_ext in '' $ac_executable_extensions; do |
3483 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3484 | ac_cv_path_SYSCONFTOOL_PERL="$as_dir/$ac_word$ac_exec_ext" |
3485 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3486 | break 2 |
3487 | fi |
3488 | done |
3489 | done |
3490 | |
3491 | ;; |
3492 | esac |
3493 | fi |
3494 | SYSCONFTOOL_PERL=$ac_cv_path_SYSCONFTOOL_PERL |
3495 | |
3496 | if test -n "$SYSCONFTOOL_PERL"; then |
3497 | echo "$as_me:$LINENO: result: $SYSCONFTOOL_PERL" >&5 |
3498 | echo "${ECHO_T}$SYSCONFTOOL_PERL" >&6 |
3499 | else |
3500 | echo "$as_me:$LINENO: result: no" >&5 |
3501 | echo "${ECHO_T}no" >&6 |
3502 | fi |
3503 | |
3504 | test -n "$SYSCONFTOOL_PERL" && break |
3505 | done |
3506 | test -n "$SYSCONFTOOL_PERL" || SYSCONFTOOL_PERL="perl" |
3507 | |
3508 | |
3509 | if test "$SYSCONFTOOL_PERL" = "perl" |
3510 | then |
3511 | { { echo "$as_me:$LINENO: error: perl not found - please install perl" >&5 |
3512 | echo "$as_me: error: perl not found - please install perl" >&2;} |
3513 | { (exit 1); exit 1; }; } |
3514 | fi |
3515 | |
3516 | echo "$as_me:$LINENO: checking for sysconftool..." >&5 |
3517 | echo $ECHO_N "checking for sysconftool...... $ECHO_C" >&6 |
3518 | SYSCONFTOOL="" |
3519 | for sysconf_dir in $ac_aux_dir . .. ../.. |
3520 | do |
3521 | if test -f $srcdir/$sysconf_dir/sysconftool |
3522 | then |
3523 | SYSCONFTOOL=$srcdir/$sysconf_dir/sysconftool |
3524 | break |
3525 | fi |
3526 | done |
3527 | |
3528 | if test "$SYSCONFTOOL" = "" |
3529 | then |
3530 | { { echo "$as_me:$LINENO: error: sysconftool missing - not in the package" >&5 |
3531 | echo "$as_me: error: sysconftool missing - not in the package" >&2;} |
3532 | { (exit 1); exit 1; }; } |
3533 | fi |
3534 | |
3535 | echo "$as_me:$LINENO: result: $SYSCONFTOOL" >&5 |
3536 | echo "${ECHO_T}$SYSCONFTOOL" >&6 |
3537 | SYSCONFTOOL="$SYSCONFTOOL_PERL $SYSCONFTOOL" |
3538 | |
3539 | |
3540 | |
3541 | |
3542 | echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5 |
3543 | echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6 |
3544 | if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then |
3545 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3546 | else |
3547 | ac_check_lib_save_LIBS=$LIBS |
3548 | LIBS="-lltdl $LIBS" |
3549 | cat >conftest.$ac_ext <<_ACEOF |
3550 | /* confdefs.h. */ |
3551 | _ACEOF |
3552 | cat confdefs.h >>conftest.$ac_ext |
3553 | cat >>conftest.$ac_ext <<_ACEOF |
3554 | /* end confdefs.h. */ |
3555 | |
3556 | /* Override any gcc2 internal prototype to avoid an error. */ |
3557 | #ifdef __cplusplus |
3558 | extern "C" |
3559 | #endif |
3560 | /* We use char because int might match the return type of a gcc2 |
3561 | builtin and then its argument prototype would still apply. */ |
3562 | char lt_dlinit (); |
3563 | int |
3564 | main () |
3565 | { |
3566 | lt_dlinit (); |
3567 | ; |
3568 | return 0; |
3569 | } |
3570 | _ACEOF |
3571 | rm -f conftest.$ac_objext conftest$ac_exeext |
3572 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3573 | (eval $ac_link) 2>conftest.er1 |
3574 | ac_status=$? |
3575 | grep -v '^ *+' conftest.er1 >conftest.err |
3576 | rm -f conftest.er1 |
3577 | cat conftest.err >&5 |
3578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3579 | (exit $ac_status); } && |
3580 | { ac_try='test -z "$ac_c_werror_flag" |
3581 | || test ! -s conftest.err' |
3582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3583 | (eval $ac_try) 2>&5 |
3584 | ac_status=$? |
3585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3586 | (exit $ac_status); }; } && |
3587 | { ac_try='test -s conftest$ac_exeext' |
3588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3589 | (eval $ac_try) 2>&5 |
3590 | ac_status=$? |
3591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3592 | (exit $ac_status); }; }; then |
3593 | ac_cv_lib_ltdl_lt_dlinit=yes |
3594 | else |
3595 | echo "$as_me: failed program was:" >&5 |
3596 | sed 's/^/| /' conftest.$ac_ext >&5 |
3597 | |
3598 | ac_cv_lib_ltdl_lt_dlinit=no |
3599 | fi |
3600 | rm -f conftest.err conftest.$ac_objext \ |
3601 | conftest$ac_exeext conftest.$ac_ext |
3602 | LIBS=$ac_check_lib_save_LIBS |
3603 | fi |
3604 | echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5 |
3605 | echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6 |
3606 | if test $ac_cv_lib_ltdl_lt_dlinit = yes; then |
3607 | test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no |
3608 | else |
3609 | if test x"$enable_ltdl_install" = xno; then |
3610 | { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5 |
3611 | echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;} |
3612 | else |
3613 | enable_ltdl_install=yes |
3614 | fi |
3615 | |
3616 | fi |
3617 | |
3618 | if test x"$enable_ltdl_install" = x"yes"; then |
3619 | ac_configure_args="$ac_configure_args --enable-ltdl-install" |
3620 | LIBLTDL='${top_builddir}/''libltdl'/libltdl.la |
3621 | LTDLINCL='-I${top_srcdir}/''libltdl' |
3622 | else |
3623 | ac_configure_args="$ac_configure_args --enable-ltdl-install=no" |
3624 | LIBLTDL="-lltdl" |
3625 | LTDLINCL= |
3626 | fi |
3627 | # For backwards non-gettext consistent compatibility... |
3628 | INCLTDL="$LTDLINCL" |
3629 | |
3630 | |
3631 | |
3632 | # Check whether --enable-shared or --disable-shared was given. |
3633 | if test "${enable_shared+set}" = set; then |
3634 | enableval="$enable_shared" |
3635 | p=${PACKAGE-default} |
3636 | case $enableval in |
3637 | yes) enable_shared=yes ;; |
3638 | no) enable_shared=no ;; |
3639 | *) |
3640 | enable_shared=no |
3641 | # Look at the argument we got. We use all the common list separators. |
3642 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3643 | for pkg in $enableval; do |
3644 | IFS="$lt_save_ifs" |
3645 | if test "X$pkg" = "X$p"; then |
3646 | enable_shared=yes |
3647 | fi |
3648 | done |
3649 | IFS="$lt_save_ifs" |
3650 | ;; |
3651 | esac |
3652 | else |
3653 | enable_shared=yes |
3654 | fi; |
3655 | |
3656 | # Check whether --enable-static or --disable-static was given. |
3657 | if test "${enable_static+set}" = set; then |
3658 | enableval="$enable_static" |
3659 | p=${PACKAGE-default} |
3660 | case $enableval in |
3661 | yes) enable_static=yes ;; |
3662 | no) enable_static=no ;; |
3663 | *) |
3664 | enable_static=no |
3665 | # Look at the argument we got. We use all the common list separators. |
3666 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3667 | for pkg in $enableval; do |
3668 | IFS="$lt_save_ifs" |
3669 | if test "X$pkg" = "X$p"; then |
3670 | enable_static=yes |
3671 | fi |
3672 | done |
3673 | IFS="$lt_save_ifs" |
3674 | ;; |
3675 | esac |
3676 | else |
3677 | enable_static=yes |
3678 | fi; |
3679 | |
3680 | # Check whether --enable-fast-install or --disable-fast-install was given. |
3681 | if test "${enable_fast_install+set}" = set; then |
3682 | enableval="$enable_fast_install" |
3683 | p=${PACKAGE-default} |
3684 | case $enableval in |
3685 | yes) enable_fast_install=yes ;; |
3686 | no) enable_fast_install=no ;; |
3687 | *) |
3688 | enable_fast_install=no |
3689 | # Look at the argument we got. We use all the common list separators. |
3690 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3691 | for pkg in $enableval; do |
3692 | IFS="$lt_save_ifs" |
3693 | if test "X$pkg" = "X$p"; then |
3694 | enable_fast_install=yes |
3695 | fi |
3696 | done |
3697 | IFS="$lt_save_ifs" |
3698 | ;; |
3699 | esac |
3700 | else |
3701 | enable_fast_install=yes |
3702 | fi; |
3703 | |
3704 | # Make sure we can run config.sub. |
3705 | $ac_config_sub sun4 >/dev/null 2>&1 || |
3706 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
3707 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
3708 | { (exit 1); exit 1; }; } |
3709 | |
3710 | echo "$as_me:$LINENO: checking build system type" >&5 |
3711 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
3712 | if test "${ac_cv_build+set}" = set; then |
3713 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3714 | else |
3715 | ac_cv_build_alias=$build_alias |
3716 | test -z "$ac_cv_build_alias" && |
3717 | ac_cv_build_alias=`$ac_config_guess` |
3718 | test -z "$ac_cv_build_alias" && |
3719 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
3720 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
3721 | { (exit 1); exit 1; }; } |
3722 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
3723 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
3724 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
3725 | { (exit 1); exit 1; }; } |
3726 | |
3727 | fi |
3728 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
3729 | echo "${ECHO_T}$ac_cv_build" >&6 |
3730 | build=$ac_cv_build |
3731 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
3732 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
3733 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
3734 | |
3735 | |
3736 | echo "$as_me:$LINENO: checking host system type" >&5 |
3737 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
3738 | if test "${ac_cv_host+set}" = set; then |
3739 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3740 | else |
3741 | ac_cv_host_alias=$host_alias |
3742 | test -z "$ac_cv_host_alias" && |
3743 | ac_cv_host_alias=$ac_cv_build_alias |
3744 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
3745 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
3746 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
3747 | { (exit 1); exit 1; }; } |
3748 | |
3749 | fi |
3750 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
3751 | echo "${ECHO_T}$ac_cv_host" >&6 |
3752 | host=$ac_cv_host |
3753 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
3754 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
3755 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
3756 | |
3757 | |
3758 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
3759 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
3760 | if test "${lt_cv_path_SED+set}" = set; then |
3761 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3762 | else |
3763 | # Loop through the user's path and test for sed and gsed. |
3764 | # Then use that list of sed's as ones to test for truncation. |
3765 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3766 | for as_dir in $PATH |
3767 | do |
3768 | IFS=$as_save_IFS |
3769 | test -z "$as_dir" && as_dir=. |
3770 | for lt_ac_prog in sed gsed; do |
3771 | for ac_exec_ext in '' $ac_executable_extensions; do |
3772 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
3773 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
3774 | fi |
3775 | done |
3776 | done |
3777 | done |
3778 | IFS=$as_save_IFS |
3779 | lt_ac_max=0 |
3780 | lt_ac_count=0 |
3781 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
3782 | # along with /bin/sed that truncates output. |
3783 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
3784 | test ! -f $lt_ac_sed && continue |
3785 | cat /dev/null > conftest.in |
3786 | lt_ac_count=0 |
3787 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
3788 | # Check for GNU sed and select it if it is found. |
3789 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
3790 | lt_cv_path_SED=$lt_ac_sed |
3791 | break |
3792 | fi |
3793 | while true; do |
3794 | cat conftest.in conftest.in >conftest.tmp |
3795 | mv conftest.tmp conftest.in |
3796 | cp conftest.in conftest.nl |
3797 | echo >>conftest.nl |
3798 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
3799 | cmp -s conftest.out conftest.nl || break |
3800 | # 10000 chars as input seems more than enough |
3801 | test $lt_ac_count -gt 10 && break |
3802 | lt_ac_count=`expr $lt_ac_count + 1` |
3803 | if test $lt_ac_count -gt $lt_ac_max; then |
3804 | lt_ac_max=$lt_ac_count |
3805 | lt_cv_path_SED=$lt_ac_sed |
3806 | fi |
3807 | done |
3808 | done |
3809 | |
3810 | fi |
3811 | |
3812 | SED=$lt_cv_path_SED |
3813 | |
3814 | echo "$as_me:$LINENO: result: $SED" >&5 |
3815 | echo "${ECHO_T}$SED" >&6 |
3816 | |
3817 | echo "$as_me:$LINENO: checking for egrep" >&5 |
3818 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
3819 | if test "${ac_cv_prog_egrep+set}" = set; then |
3820 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3821 | else |
3822 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
3823 | then ac_cv_prog_egrep='grep -E' |
3824 | else ac_cv_prog_egrep='egrep' |
3825 | fi |
3826 | fi |
3827 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
3828 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
3829 | EGREP=$ac_cv_prog_egrep |
3830 | |
3831 | |
3832 | |
3833 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
3834 | if test "${with_gnu_ld+set}" = set; then |
3835 | withval="$with_gnu_ld" |
3836 | test "$withval" = no || with_gnu_ld=yes |
3837 | else |
3838 | with_gnu_ld=no |
3839 | fi; |
3840 | ac_prog=ld |
3841 | if test "$GCC" = yes; then |
3842 | # Check if gcc -print-prog-name=ld gives a path. |
3843 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
3844 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
3845 | case $host in |
3846 | *-*-mingw*) |
3847 | # gcc leaves a trailing carriage return which upsets mingw |
3848 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
3849 | *) |
3850 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
3851 | esac |
3852 | case $ac_prog in |
3853 | # Accept absolute paths. |
3854 | [\\/]* | ?:[\\/]*) |
3855 | re_direlt='/[^/][^/]*/\.\./' |
3856 | # Canonicalize the pathname of ld |
3857 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
3858 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
3859 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
3860 | done |
3861 | test -z "$LD" && LD="$ac_prog" |
3862 | ;; |
3863 | "") |
3864 | # If it fails, then pretend we aren't using GCC. |
3865 | ac_prog=ld |
3866 | ;; |
3867 | *) |
3868 | # If it is relative, then search for the first ld in PATH. |
3869 | with_gnu_ld=unknown |
3870 | ;; |
3871 | esac |
3872 | elif test "$with_gnu_ld" = yes; then |
3873 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
3874 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
3875 | else |
3876 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
3877 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
3878 | fi |
3879 | if test "${lt_cv_path_LD+set}" = set; then |
3880 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3881 | else |
3882 | if test -z "$LD"; then |
3883 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
3884 | for ac_dir in $PATH; do |
3885 | IFS="$lt_save_ifs" |
3886 | test -z "$ac_dir" && ac_dir=. |
3887 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
3888 | lt_cv_path_LD="$ac_dir/$ac_prog" |
3889 | # Check to see if the program is GNU ld. I'd rather use --version, |
3890 | # but apparently some variants of GNU ld only accept -v. |
3891 | # Break only if it was the GNU/non-GNU ld that we prefer. |
3892 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
3893 | *GNU* | *'with BFD'*) |
3894 | test "$with_gnu_ld" != no && break |
3895 | ;; |
3896 | *) |
3897 | test "$with_gnu_ld" != yes && break |
3898 | ;; |
3899 | esac |
3900 | fi |
3901 | done |
3902 | IFS="$lt_save_ifs" |
3903 | else |
3904 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
3905 | fi |
3906 | fi |
3907 | |
3908 | LD="$lt_cv_path_LD" |
3909 | if test -n "$LD"; then |
3910 | echo "$as_me:$LINENO: result: $LD" >&5 |
3911 | echo "${ECHO_T}$LD" >&6 |
3912 | else |
3913 | echo "$as_me:$LINENO: result: no" >&5 |
3914 | echo "${ECHO_T}no" >&6 |
3915 | fi |
3916 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
3917 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
3918 | { (exit 1); exit 1; }; } |
3919 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
3920 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
3921 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
3922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3923 | else |
3924 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
3925 | case `$LD -v 2>&1 </dev/null` in |
3926 | *GNU* | *'with BFD'*) |
3927 | lt_cv_prog_gnu_ld=yes |
3928 | ;; |
3929 | *) |
3930 | lt_cv_prog_gnu_ld=no |
3931 | ;; |
3932 | esac |
3933 | fi |
3934 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
3935 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
3936 | with_gnu_ld=$lt_cv_prog_gnu_ld |
3937 | |
3938 | |
3939 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
3940 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
3941 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
3942 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3943 | else |
3944 | lt_cv_ld_reload_flag='-r' |
3945 | fi |
3946 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
3947 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
3948 | reload_flag=$lt_cv_ld_reload_flag |
3949 | case $reload_flag in |
3950 | "" | " "*) ;; |
3951 | *) reload_flag=" $reload_flag" ;; |
3952 | esac |
3953 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
3954 | case $host_os in |
3955 | darwin*) |
3956 | if test "$GCC" = yes; then |
3957 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
3958 | else |
3959 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
3960 | fi |
3961 | ;; |
3962 | esac |
3963 | |
3964 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
3965 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
3966 | if test "${lt_cv_path_NM+set}" = set; then |
3967 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3968 | else |
3969 | if test -n "$NM"; then |
3970 | # Let the user override the test. |
3971 | lt_cv_path_NM="$NM" |
3972 | else |
3973 | lt_nm_to_check="${ac_tool_prefix}nm" |
3974 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
3975 | lt_nm_to_check="$lt_nm_to_check nm" |
3976 | fi |
3977 | for lt_tmp_nm in $lt_nm_to_check; do |
3978 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
3979 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
3980 | IFS="$lt_save_ifs" |
3981 | test -z "$ac_dir" && ac_dir=. |
3982 | tmp_nm="$ac_dir/$lt_tmp_nm" |
3983 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
3984 | # Check to see if the nm accepts a BSD-compat flag. |
3985 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
3986 | # nm: unknown option "B" ignored |
3987 | # Tru64's nm complains that /dev/null is an invalid object file |
3988 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
3989 | */dev/null* | *'Invalid file or object type'*) |
3990 | lt_cv_path_NM="$tmp_nm -B" |
3991 | break |
3992 | ;; |
3993 | *) |
3994 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
3995 | */dev/null*) |
3996 | lt_cv_path_NM="$tmp_nm -p" |
3997 | break |
3998 | ;; |
3999 | *) |
4000 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
4001 | continue # so that we can try to find one that supports BSD flags |
4002 | ;; |
4003 | esac |
4004 | ;; |
4005 | esac |
4006 | fi |
4007 | done |
4008 | IFS="$lt_save_ifs" |
4009 | done |
4010 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
4011 | fi |
4012 | fi |
4013 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
4014 | echo "${ECHO_T}$lt_cv_path_NM" >&6 |
4015 | NM="$lt_cv_path_NM" |
4016 | |
4017 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
4018 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
4019 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
4020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4021 | else |
4022 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
4023 | lt_cv_file_magic_test_file= |
4024 | lt_cv_deplibs_check_method='unknown' |
4025 | # Need to set the preceding variable on all platforms that support |
4026 | # interlibrary dependencies. |
4027 | # 'none' -- dependencies not supported. |
4028 | # `unknown' -- same as none, but documents that we really don't know. |
4029 | # 'pass_all' -- all dependencies passed with no checks. |
4030 | # 'test_compile' -- check by making test program. |
4031 | # 'file_magic [[regex]]' -- check by looking for files in library path |
4032 | # which responds to the $file_magic_cmd with a given extended regex. |
4033 | # If you have `file' or equivalent on your system and you're not sure |
4034 | # whether `pass_all' will *always* work, you probably want this one. |
4035 | |
4036 | case $host_os in |
4037 | aix4* | aix5*) |
4038 | lt_cv_deplibs_check_method=pass_all |
4039 | ;; |
4040 | |
4041 | beos*) |
4042 | lt_cv_deplibs_check_method=pass_all |
4043 | ;; |
4044 | |
4045 | bsdi[45]*) |
4046 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
4047 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
4048 | lt_cv_file_magic_test_file=/shlib/libc.so |
4049 | ;; |
4050 | |
4051 | cygwin*) |
4052 | # func_win32_libid is a shell function defined in ltmain.sh |
4053 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
4054 | lt_cv_file_magic_cmd='func_win32_libid' |
4055 | ;; |
4056 | |
4057 | mingw* | pw32*) |
4058 | # Base MSYS/MinGW do not provide the 'file' command needed by |
4059 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
4060 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
4061 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
4062 | ;; |
4063 | |
4064 | darwin* | rhapsody*) |
4065 | lt_cv_deplibs_check_method=pass_all |
4066 | ;; |
4067 | |
4068 | freebsd* | kfreebsd*-gnu | dragonfly*) |
4069 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
4070 | case $host_cpu in |
4071 | i*86 ) |
4072 | # Not sure whether the presence of OpenBSD here was a mistake. |
4073 | # Let's accept both of them until this is cleared up. |
4074 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
4075 | lt_cv_file_magic_cmd=/usr/bin/file |
4076 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
4077 | ;; |
4078 | esac |
4079 | else |
4080 | lt_cv_deplibs_check_method=pass_all |
4081 | fi |
4082 | ;; |
4083 | |
4084 | gnu*) |
4085 | lt_cv_deplibs_check_method=pass_all |
4086 | ;; |
4087 | |
4088 | hpux10.20* | hpux11*) |
4089 | lt_cv_file_magic_cmd=/usr/bin/file |
4090 | case $host_cpu in |
4091 | ia64*) |
4092 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
4093 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
4094 | ;; |
4095 | hppa*64*) |
4096 | 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]' |
4097 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
4098 | ;; |
4099 | *) |
4100 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
4101 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
4102 | ;; |
4103 | esac |
4104 | ;; |
4105 | |
4106 | interix3*) |
4107 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
4108 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
4109 | ;; |
4110 | |
4111 | irix5* | irix6* | nonstopux*) |
4112 | case $LD in |
4113 | *-32|*"-32 ") libmagic=32-bit;; |
4114 | *-n32|*"-n32 ") libmagic=N32;; |
4115 | *-64|*"-64 ") libmagic=64-bit;; |
4116 | *) libmagic=never-match;; |
4117 | esac |
4118 | lt_cv_deplibs_check_method=pass_all |
4119 | ;; |
4120 | |
4121 | # This must be Linux ELF. |
4122 | linux*) |
4123 | lt_cv_deplibs_check_method=pass_all |
4124 | ;; |
4125 | |
4126 | netbsd*) |
4127 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
4128 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
4129 | else |
4130 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
4131 | fi |
4132 | ;; |
4133 | |
4134 | newos6*) |
4135 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
4136 | lt_cv_file_magic_cmd=/usr/bin/file |
4137 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
4138 | ;; |
4139 | |
4140 | nto-qnx*) |
4141 | lt_cv_deplibs_check_method=unknown |
4142 | ;; |
4143 | |
4144 | openbsd*) |
4145 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
4146 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
4147 | else |
4148 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
4149 | fi |
4150 | ;; |
4151 | |
4152 | osf3* | osf4* | osf5*) |
4153 | lt_cv_deplibs_check_method=pass_all |
4154 | ;; |
4155 | |
4156 | solaris*) |
4157 | lt_cv_deplibs_check_method=pass_all |
4158 | ;; |
4159 | |
4160 | sysv4 | sysv4.3*) |
4161 | case $host_vendor in |
4162 | motorola) |
4163 | 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]' |
4164 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
4165 | ;; |
4166 | ncr) |
4167 | lt_cv_deplibs_check_method=pass_all |
4168 | ;; |
4169 | sequent) |
4170 | lt_cv_file_magic_cmd='/bin/file' |
4171 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
4172 | ;; |
4173 | sni) |
4174 | lt_cv_file_magic_cmd='/bin/file' |
4175 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
4176 | lt_cv_file_magic_test_file=/lib/libc.so |
4177 | ;; |
4178 | siemens) |
4179 | lt_cv_deplibs_check_method=pass_all |
4180 | ;; |
4181 | pc) |
4182 | lt_cv_deplibs_check_method=pass_all |
4183 | ;; |
4184 | esac |
4185 | ;; |
4186 | |
4187 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
4188 | lt_cv_deplibs_check_method=pass_all |
4189 | ;; |
4190 | esac |
4191 | |
4192 | fi |
4193 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
4194 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
4195 | file_magic_cmd=$lt_cv_file_magic_cmd |
4196 | deplibs_check_method=$lt_cv_deplibs_check_method |
4197 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
4198 | |
4199 | |
4200 | |
4201 | |
4202 | # If no C compiler was specified, use CC. |
4203 | LTCC=${LTCC-"$CC"} |
4204 | |
4205 | # If no C compiler flags were specified, use CFLAGS. |
4206 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
4207 | |
4208 | # Allow CC to be a program name with arguments. |
4209 | compiler=$CC |
4210 | |
4211 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
4212 | if test "${enable_libtool_lock+set}" = set; then |
4213 | enableval="$enable_libtool_lock" |
4214 | |
4215 | fi; |
4216 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
4217 | |
4218 | # Some flags need to be propagated to the compiler or linker for good |
4219 | # libtool support. |
4220 | case $host in |
4221 | ia64-*-hpux*) |
4222 | # Find out which ABI we are using. |
4223 | echo 'int i;' > conftest.$ac_ext |
4224 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4225 | (eval $ac_compile) 2>&5 |
4226 | ac_status=$? |
4227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4228 | (exit $ac_status); }; then |
4229 | case `/usr/bin/file conftest.$ac_objext` in |
4230 | *ELF-32*) |
4231 | HPUX_IA64_MODE="32" |
4232 | ;; |
4233 | *ELF-64*) |
4234 | HPUX_IA64_MODE="64" |
4235 | ;; |
4236 | esac |
4237 | fi |
4238 | rm -rf conftest* |
4239 | ;; |
4240 | *-*-irix6*) |
4241 | # Find out which ABI we are using. |
4242 | echo '#line 4242 "configure"' > conftest.$ac_ext |
4243 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4244 | (eval $ac_compile) 2>&5 |
4245 | ac_status=$? |
4246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4247 | (exit $ac_status); }; then |
4248 | if test "$lt_cv_prog_gnu_ld" = yes; then |
4249 | case `/usr/bin/file conftest.$ac_objext` in |
4250 | *32-bit*) |
4251 | LD="${LD-ld} -melf32bsmip" |
4252 | ;; |
4253 | *N32*) |
4254 | LD="${LD-ld} -melf32bmipn32" |
4255 | ;; |
4256 | *64-bit*) |
4257 | LD="${LD-ld} -melf64bmip" |
4258 | ;; |
4259 | esac |
4260 | else |
4261 | case `/usr/bin/file conftest.$ac_objext` in |
4262 | *32-bit*) |
4263 | LD="${LD-ld} -32" |
4264 | ;; |
4265 | *N32*) |
4266 | LD="${LD-ld} -n32" |
4267 | ;; |
4268 | *64-bit*) |
4269 | LD="${LD-ld} -64" |
4270 | ;; |
4271 | esac |
4272 | fi |
4273 | fi |
4274 | rm -rf conftest* |
4275 | ;; |
4276 | |
4277 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
4278 | # Find out which ABI we are using. |
4279 | echo 'int i;' > conftest.$ac_ext |
4280 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4281 | (eval $ac_compile) 2>&5 |
4282 | ac_status=$? |
4283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4284 | (exit $ac_status); }; then |
4285 | case `/usr/bin/file conftest.o` in |
4286 | *32-bit*) |
4287 | case $host in |
4288 | x86_64-*linux*) |
4289 | LD="${LD-ld} -m elf_i386" |
4290 | ;; |
4291 | ppc64-*linux*|powerpc64-*linux*) |
4292 | LD="${LD-ld} -m elf32ppclinux" |
4293 | ;; |
4294 | s390x-*linux*) |
4295 | LD="${LD-ld} -m elf_s390" |
4296 | ;; |
4297 | sparc64-*linux*) |
4298 | LD="${LD-ld} -m elf32_sparc" |
4299 | ;; |
4300 | esac |
4301 | ;; |
4302 | *64-bit*) |
4303 | case $host in |
4304 | x86_64-*linux*) |
4305 | LD="${LD-ld} -m elf_x86_64" |
4306 | ;; |
4307 | ppc*-*linux*|powerpc*-*linux*) |
4308 | LD="${LD-ld} -m elf64ppc" |
4309 | ;; |
4310 | s390*-*linux*) |
4311 | LD="${LD-ld} -m elf64_s390" |
4312 | ;; |
4313 | sparc*-*linux*) |
4314 | LD="${LD-ld} -m elf64_sparc" |
4315 | ;; |
4316 | esac |
4317 | ;; |
4318 | esac |
4319 | fi |
4320 | rm -rf conftest* |
4321 | ;; |
4322 | |
4323 | *-*-sco3.2v5*) |
4324 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
4325 | SAVE_CFLAGS="$CFLAGS" |
4326 | CFLAGS="$CFLAGS -belf" |
4327 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
4328 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
4329 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
4330 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4331 | else |
4332 | ac_ext=c |
4333 | ac_cpp='$CPP $CPPFLAGS' |
4334 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4335 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4336 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4337 | |
4338 | cat >conftest.$ac_ext <<_ACEOF |
4339 | /* confdefs.h. */ |
4340 | _ACEOF |
4341 | cat confdefs.h >>conftest.$ac_ext |
4342 | cat >>conftest.$ac_ext <<_ACEOF |
4343 | /* end confdefs.h. */ |
4344 | |
4345 | int |
4346 | main () |
4347 | { |
4348 | |
4349 | ; |
4350 | return 0; |
4351 | } |
4352 | _ACEOF |
4353 | rm -f conftest.$ac_objext conftest$ac_exeext |
4354 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4355 | (eval $ac_link) 2>conftest.er1 |
4356 | ac_status=$? |
4357 | grep -v '^ *+' conftest.er1 >conftest.err |
4358 | rm -f conftest.er1 |
4359 | cat conftest.err >&5 |
4360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4361 | (exit $ac_status); } && |
4362 | { ac_try='test -z "$ac_c_werror_flag" |
4363 | || test ! -s conftest.err' |
4364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4365 | (eval $ac_try) 2>&5 |
4366 | ac_status=$? |
4367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4368 | (exit $ac_status); }; } && |
4369 | { ac_try='test -s conftest$ac_exeext' |
4370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4371 | (eval $ac_try) 2>&5 |
4372 | ac_status=$? |
4373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4374 | (exit $ac_status); }; }; then |
4375 | lt_cv_cc_needs_belf=yes |
4376 | else |
4377 | echo "$as_me: failed program was:" >&5 |
4378 | sed 's/^/| /' conftest.$ac_ext >&5 |
4379 | |
4380 | lt_cv_cc_needs_belf=no |
4381 | fi |
4382 | rm -f conftest.err conftest.$ac_objext \ |
4383 | conftest$ac_exeext conftest.$ac_ext |
4384 | ac_ext=c |
4385 | ac_cpp='$CPP $CPPFLAGS' |
4386 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4387 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4388 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4389 | |
4390 | fi |
4391 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
4392 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
4393 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
4394 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
4395 | CFLAGS="$SAVE_CFLAGS" |
4396 | fi |
4397 | ;; |
4398 | sparc*-*solaris*) |
4399 | # Find out which ABI we are using. |
4400 | echo 'int i;' > conftest.$ac_ext |
4401 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4402 | (eval $ac_compile) 2>&5 |
4403 | ac_status=$? |
4404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4405 | (exit $ac_status); }; then |
4406 | case `/usr/bin/file conftest.o` in |
4407 | *64-bit*) |
4408 | case $lt_cv_prog_gnu_ld in |
4409 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
4410 | *) LD="${LD-ld} -64" ;; |
4411 | esac |
4412 | ;; |
4413 | esac |
4414 | fi |
4415 | rm -rf conftest* |
4416 | ;; |
4417 | |
4418 | |
4419 | esac |
4420 | |
4421 | need_locks="$enable_libtool_lock" |
4422 | |
4423 | |
4424 | |
4425 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4426 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
4427 | if test "${ac_cv_header_stdc+set}" = set; then |
4428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4429 | else |
4430 | cat >conftest.$ac_ext <<_ACEOF |
4431 | /* confdefs.h. */ |
4432 | _ACEOF |
4433 | cat confdefs.h >>conftest.$ac_ext |
4434 | cat >>conftest.$ac_ext <<_ACEOF |
4435 | /* end confdefs.h. */ |
4436 | #include <stdlib.h> |
4437 | #include <stdarg.h> |
4438 | #include <string.h> |
4439 | #include <float.h> |
4440 | |
4441 | int |
4442 | main () |
4443 | { |
4444 | |
4445 | ; |
4446 | return 0; |
4447 | } |
4448 | _ACEOF |
4449 | rm -f conftest.$ac_objext |
4450 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4451 | (eval $ac_compile) 2>conftest.er1 |
4452 | ac_status=$? |
4453 | grep -v '^ *+' conftest.er1 >conftest.err |
4454 | rm -f conftest.er1 |
4455 | cat conftest.err >&5 |
4456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4457 | (exit $ac_status); } && |
4458 | { ac_try='test -z "$ac_c_werror_flag" |
4459 | || test ! -s conftest.err' |
4460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4461 | (eval $ac_try) 2>&5 |
4462 | ac_status=$? |
4463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4464 | (exit $ac_status); }; } && |
4465 | { ac_try='test -s conftest.$ac_objext' |
4466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4467 | (eval $ac_try) 2>&5 |
4468 | ac_status=$? |
4469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4470 | (exit $ac_status); }; }; then |
4471 | ac_cv_header_stdc=yes |
4472 | else |
4473 | echo "$as_me: failed program was:" >&5 |
4474 | sed 's/^/| /' conftest.$ac_ext >&5 |
4475 | |
4476 | ac_cv_header_stdc=no |
4477 | fi |
4478 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4479 | |
4480 | if test $ac_cv_header_stdc = yes; then |
4481 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
4482 | cat >conftest.$ac_ext <<_ACEOF |
4483 | /* confdefs.h. */ |
4484 | _ACEOF |
4485 | cat confdefs.h >>conftest.$ac_ext |
4486 | cat >>conftest.$ac_ext <<_ACEOF |
4487 | /* end confdefs.h. */ |
4488 | #include <string.h> |
4489 | |
4490 | _ACEOF |
4491 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4492 | $EGREP "memchr" >/dev/null 2>&1; then |
4493 | : |
4494 | else |
4495 | ac_cv_header_stdc=no |
4496 | fi |
4497 | rm -f conftest* |
4498 | |
4499 | fi |
4500 | |
4501 | if test $ac_cv_header_stdc = yes; then |
4502 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
4503 | cat >conftest.$ac_ext <<_ACEOF |
4504 | /* confdefs.h. */ |
4505 | _ACEOF |
4506 | cat confdefs.h >>conftest.$ac_ext |
4507 | cat >>conftest.$ac_ext <<_ACEOF |
4508 | /* end confdefs.h. */ |
4509 | #include <stdlib.h> |
4510 | |
4511 | _ACEOF |
4512 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4513 | $EGREP "free" >/dev/null 2>&1; then |
4514 | : |
4515 | else |
4516 | ac_cv_header_stdc=no |
4517 | fi |
4518 | rm -f conftest* |
4519 | |
4520 | fi |
4521 | |
4522 | if test $ac_cv_header_stdc = yes; then |
4523 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
4524 | if test "$cross_compiling" = yes; then |
4525 | : |
4526 | else |
4527 | cat >conftest.$ac_ext <<_ACEOF |
4528 | /* confdefs.h. */ |
4529 | _ACEOF |
4530 | cat confdefs.h >>conftest.$ac_ext |
4531 | cat >>conftest.$ac_ext <<_ACEOF |
4532 | /* end confdefs.h. */ |
4533 | #include <ctype.h> |
4534 | #if ((' ' & 0x0FF) == 0x020) |
4535 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
4536 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
4537 | #else |
4538 | # define ISLOWER(c) \ |
4539 | (('a' <= (c) && (c) <= 'i') \ |
4540 | || ('j' <= (c) && (c) <= 'r') \ |
4541 | || ('s' <= (c) && (c) <= 'z')) |
4542 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
4543 | #endif |
4544 | |
4545 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4546 | int |
4547 | main () |
4548 | { |
4549 | int i; |
4550 | for (i = 0; i < 256; i++) |
4551 | if (XOR (islower (i), ISLOWER (i)) |
4552 | || toupper (i) != TOUPPER (i)) |
4553 | exit(2); |
4554 | exit (0); |
4555 | } |
4556 | _ACEOF |
4557 | rm -f conftest$ac_exeext |
4558 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4559 | (eval $ac_link) 2>&5 |
4560 | ac_status=$? |
4561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4562 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
4563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4564 | (eval $ac_try) 2>&5 |
4565 | ac_status=$? |
4566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4567 | (exit $ac_status); }; }; then |
4568 | : |
4569 | else |
4570 | echo "$as_me: program exited with status $ac_status" >&5 |
4571 | echo "$as_me: failed program was:" >&5 |
4572 | sed 's/^/| /' conftest.$ac_ext >&5 |
4573 | |
4574 | ( exit $ac_status ) |
4575 | ac_cv_header_stdc=no |
4576 | fi |
4577 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
4578 | fi |
4579 | fi |
4580 | fi |
4581 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4582 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
4583 | if test $ac_cv_header_stdc = yes; then |
4584 | |
4585 | cat >>confdefs.h <<\_ACEOF |
4586 | #define STDC_HEADERS 1 |
4587 | _ACEOF |
4588 | |
4589 | fi |
4590 | |
4591 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4592 | |
4593 | |
4594 | |
4595 | |
4596 | |
4597 | |
4598 | |
4599 | |
4600 | |
4601 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4602 | inttypes.h stdint.h unistd.h |
4603 | do |
4604 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4605 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4606 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4607 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4608 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4609 | else |
4610 | cat >conftest.$ac_ext <<_ACEOF |
4611 | /* confdefs.h. */ |
4612 | _ACEOF |
4613 | cat confdefs.h >>conftest.$ac_ext |
4614 | cat >>conftest.$ac_ext <<_ACEOF |
4615 | /* end confdefs.h. */ |
4616 | $ac_includes_default |
4617 | |
4618 | #include <$ac_header> |
4619 | _ACEOF |
4620 | rm -f conftest.$ac_objext |
4621 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4622 | (eval $ac_compile) 2>conftest.er1 |
4623 | ac_status=$? |
4624 | grep -v '^ *+' conftest.er1 >conftest.err |
4625 | rm -f conftest.er1 |
4626 | cat conftest.err >&5 |
4627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4628 | (exit $ac_status); } && |
4629 | { ac_try='test -z "$ac_c_werror_flag" |
4630 | || test ! -s conftest.err' |
4631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4632 | (eval $ac_try) 2>&5 |
4633 | ac_status=$? |
4634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4635 | (exit $ac_status); }; } && |
4636 | { ac_try='test -s conftest.$ac_objext' |
4637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4638 | (eval $ac_try) 2>&5 |
4639 | ac_status=$? |
4640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4641 | (exit $ac_status); }; }; then |
4642 | eval "$as_ac_Header=yes" |
4643 | else |
4644 | echo "$as_me: failed program was:" >&5 |
4645 | sed 's/^/| /' conftest.$ac_ext >&5 |
4646 | |
4647 | eval "$as_ac_Header=no" |
4648 | fi |
4649 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4650 | fi |
4651 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4652 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
4653 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
4654 | cat >>confdefs.h <<_ACEOF |
4655 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
4656 | _ACEOF |
4657 | |
4658 | fi |
4659 | |
4660 | done |
4661 | |
4662 | |
4663 | |
4664 | for ac_header in dlfcn.h |
4665 | do |
4666 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4667 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4668 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4669 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4670 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4672 | fi |
4673 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4674 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
4675 | else |
4676 | # Is the header compilable? |
4677 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4678 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
4679 | cat >conftest.$ac_ext <<_ACEOF |
4680 | /* confdefs.h. */ |
4681 | _ACEOF |
4682 | cat confdefs.h >>conftest.$ac_ext |
4683 | cat >>conftest.$ac_ext <<_ACEOF |
4684 | /* end confdefs.h. */ |
4685 | $ac_includes_default |
4686 | #include <$ac_header> |
4687 | _ACEOF |
4688 | rm -f conftest.$ac_objext |
4689 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4690 | (eval $ac_compile) 2>conftest.er1 |
4691 | ac_status=$? |
4692 | grep -v '^ *+' conftest.er1 >conftest.err |
4693 | rm -f conftest.er1 |
4694 | cat conftest.err >&5 |
4695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4696 | (exit $ac_status); } && |
4697 | { ac_try='test -z "$ac_c_werror_flag" |
4698 | || test ! -s conftest.err' |
4699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4700 | (eval $ac_try) 2>&5 |
4701 | ac_status=$? |
4702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4703 | (exit $ac_status); }; } && |
4704 | { ac_try='test -s conftest.$ac_objext' |
4705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4706 | (eval $ac_try) 2>&5 |
4707 | ac_status=$? |
4708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4709 | (exit $ac_status); }; }; then |
4710 | ac_header_compiler=yes |
4711 | else |
4712 | echo "$as_me: failed program was:" >&5 |
4713 | sed 's/^/| /' conftest.$ac_ext >&5 |
4714 | |
4715 | ac_header_compiler=no |
4716 | fi |
4717 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4718 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4719 | echo "${ECHO_T}$ac_header_compiler" >&6 |
4720 | |
4721 | # Is the header present? |
4722 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4723 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
4724 | cat >conftest.$ac_ext <<_ACEOF |
4725 | /* confdefs.h. */ |
4726 | _ACEOF |
4727 | cat confdefs.h >>conftest.$ac_ext |
4728 | cat >>conftest.$ac_ext <<_ACEOF |
4729 | /* end confdefs.h. */ |
4730 | #include <$ac_header> |
4731 | _ACEOF |
4732 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4733 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4734 | ac_status=$? |
4735 | grep -v '^ *+' conftest.er1 >conftest.err |
4736 | rm -f conftest.er1 |
4737 | cat conftest.err >&5 |
4738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4739 | (exit $ac_status); } >/dev/null; then |
4740 | if test -s conftest.err; then |
4741 | ac_cpp_err=$ac_c_preproc_warn_flag |
4742 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4743 | else |
4744 | ac_cpp_err= |
4745 | fi |
4746 | else |
4747 | ac_cpp_err=yes |
4748 | fi |
4749 | if test -z "$ac_cpp_err"; then |
4750 | ac_header_preproc=yes |
4751 | else |
4752 | echo "$as_me: failed program was:" >&5 |
4753 | sed 's/^/| /' conftest.$ac_ext >&5 |
4754 | |
4755 | ac_header_preproc=no |
4756 | fi |
4757 | rm -f conftest.err conftest.$ac_ext |
4758 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4759 | echo "${ECHO_T}$ac_header_preproc" >&6 |
4760 | |
4761 | # So? What about this header? |
4762 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4763 | yes:no: ) |
4764 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4765 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
4766 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
4767 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
4768 | ac_header_preproc=yes |
4769 | ;; |
4770 | no:yes:* ) |
4771 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4772 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
4773 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
4774 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
4775 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
4776 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
4777 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
4778 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
4779 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
4780 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
4781 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
4782 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
4783 | ( |
4784 | cat <<\_ASBOX |
4785 | ## -------------------------------------------------- ## |
4786 | ## Report this to courier-users@lists.sourceforge.net ## |
4787 | ## -------------------------------------------------- ## |
4788 | _ASBOX |
4789 | ) | |
4790 | sed "s/^/$as_me: WARNING: /" >&2 |
4791 | ;; |
4792 | esac |
4793 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4794 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4795 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4796 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4797 | else |
4798 | eval "$as_ac_Header=\$ac_header_preproc" |
4799 | fi |
4800 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4801 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
4802 | |
4803 | fi |
4804 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
4805 | cat >>confdefs.h <<_ACEOF |
4806 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
4807 | _ACEOF |
4808 | |
4809 | fi |
4810 | |
4811 | done |
4812 | |
4813 | ac_ext=cc |
4814 | ac_cpp='$CXXCPP $CPPFLAGS' |
4815 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4816 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4817 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
4818 | if test -n "$ac_tool_prefix"; then |
4819 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
4820 | do |
4821 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
4822 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
4823 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4824 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4825 | if test "${ac_cv_prog_CXX+set}" = set; then |
4826 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4827 | else |
4828 | if test -n "$CXX"; then |
4829 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
4830 | else |
4831 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4832 | for as_dir in $PATH |
4833 | do |
4834 | IFS=$as_save_IFS |
4835 | test -z "$as_dir" && as_dir=. |
4836 | for ac_exec_ext in '' $ac_executable_extensions; do |
4837 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4838 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
4839 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4840 | break 2 |
4841 | fi |
4842 | done |
4843 | done |
4844 | |
4845 | fi |
4846 | fi |
4847 | CXX=$ac_cv_prog_CXX |
4848 | if test -n "$CXX"; then |
4849 | echo "$as_me:$LINENO: result: $CXX" >&5 |
4850 | echo "${ECHO_T}$CXX" >&6 |
4851 | else |
4852 | echo "$as_me:$LINENO: result: no" >&5 |
4853 | echo "${ECHO_T}no" >&6 |
4854 | fi |
4855 | |
4856 | test -n "$CXX" && break |
4857 | done |
4858 | fi |
4859 | if test -z "$CXX"; then |
4860 | ac_ct_CXX=$CXX |
4861 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
4862 | do |
4863 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
4864 | set dummy $ac_prog; ac_word=$2 |
4865 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4866 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4867 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
4868 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4869 | else |
4870 | if test -n "$ac_ct_CXX"; then |
4871 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
4872 | else |
4873 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4874 | for as_dir in $PATH |
4875 | do |
4876 | IFS=$as_save_IFS |
4877 | test -z "$as_dir" && as_dir=. |
4878 | for ac_exec_ext in '' $ac_executable_extensions; do |
4879 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4880 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
4881 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4882 | break 2 |
4883 | fi |
4884 | done |
4885 | done |
4886 | |
4887 | fi |
4888 | fi |
4889 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
4890 | if test -n "$ac_ct_CXX"; then |
4891 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
4892 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
4893 | else |
4894 | echo "$as_me:$LINENO: result: no" >&5 |
4895 | echo "${ECHO_T}no" >&6 |
4896 | fi |
4897 | |
4898 | test -n "$ac_ct_CXX" && break |
4899 | done |
4900 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
4901 | |
4902 | CXX=$ac_ct_CXX |
4903 | fi |
4904 | |
4905 | |
4906 | # Provide some information about the compiler. |
4907 | echo "$as_me:$LINENO:" \ |
4908 | "checking for C++ compiler version" >&5 |
4909 | ac_compiler=`set X $ac_compile; echo $2` |
4910 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
4911 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
4912 | ac_status=$? |
4913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4914 | (exit $ac_status); } |
4915 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
4916 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
4917 | ac_status=$? |
4918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4919 | (exit $ac_status); } |
4920 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
4921 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
4922 | ac_status=$? |
4923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4924 | (exit $ac_status); } |
4925 | |
4926 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
4927 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
4928 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
4929 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4930 | else |
4931 | cat >conftest.$ac_ext <<_ACEOF |
4932 | /* confdefs.h. */ |
4933 | _ACEOF |
4934 | cat confdefs.h >>conftest.$ac_ext |
4935 | cat >>conftest.$ac_ext <<_ACEOF |
4936 | /* end confdefs.h. */ |
4937 | |
4938 | int |
4939 | main () |
4940 | { |
4941 | #ifndef __GNUC__ |
4942 | choke me |
4943 | #endif |
4944 | |
4945 | ; |
4946 | return 0; |
4947 | } |
4948 | _ACEOF |
4949 | rm -f conftest.$ac_objext |
4950 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4951 | (eval $ac_compile) 2>conftest.er1 |
4952 | ac_status=$? |
4953 | grep -v '^ *+' conftest.er1 >conftest.err |
4954 | rm -f conftest.er1 |
4955 | cat conftest.err >&5 |
4956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4957 | (exit $ac_status); } && |
4958 | { ac_try='test -z "$ac_cxx_werror_flag" |
4959 | || test ! -s conftest.err' |
4960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4961 | (eval $ac_try) 2>&5 |
4962 | ac_status=$? |
4963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4964 | (exit $ac_status); }; } && |
4965 | { ac_try='test -s conftest.$ac_objext' |
4966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4967 | (eval $ac_try) 2>&5 |
4968 | ac_status=$? |
4969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4970 | (exit $ac_status); }; }; then |
4971 | ac_compiler_gnu=yes |
4972 | else |
4973 | echo "$as_me: failed program was:" >&5 |
4974 | sed 's/^/| /' conftest.$ac_ext >&5 |
4975 | |
4976 | ac_compiler_gnu=no |
4977 | fi |
4978 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4979 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
4980 | |
4981 | fi |
4982 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
4983 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
4984 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
4985 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4986 | ac_save_CXXFLAGS=$CXXFLAGS |
4987 | CXXFLAGS="-g" |
4988 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
4989 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
4990 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
4991 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4992 | else |
4993 | cat >conftest.$ac_ext <<_ACEOF |
4994 | /* confdefs.h. */ |
4995 | _ACEOF |
4996 | cat confdefs.h >>conftest.$ac_ext |
4997 | cat >>conftest.$ac_ext <<_ACEOF |
4998 | /* end confdefs.h. */ |
4999 | |
5000 | int |
5001 | main () |
5002 | { |
5003 | |
5004 | ; |
5005 | return 0; |
5006 | } |
5007 | _ACEOF |
5008 | rm -f conftest.$ac_objext |
5009 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5010 | (eval $ac_compile) 2>conftest.er1 |
5011 | ac_status=$? |
5012 | grep -v '^ *+' conftest.er1 >conftest.err |
5013 | rm -f conftest.er1 |
5014 | cat conftest.err >&5 |
5015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5016 | (exit $ac_status); } && |
5017 | { ac_try='test -z "$ac_cxx_werror_flag" |
5018 | || test ! -s conftest.err' |
5019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5020 | (eval $ac_try) 2>&5 |
5021 | ac_status=$? |
5022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5023 | (exit $ac_status); }; } && |
5024 | { ac_try='test -s conftest.$ac_objext' |
5025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5026 | (eval $ac_try) 2>&5 |
5027 | ac_status=$? |
5028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5029 | (exit $ac_status); }; }; then |
5030 | ac_cv_prog_cxx_g=yes |
5031 | else |
5032 | echo "$as_me: failed program was:" >&5 |
5033 | sed 's/^/| /' conftest.$ac_ext >&5 |
5034 | |
5035 | ac_cv_prog_cxx_g=no |
5036 | fi |
5037 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5038 | fi |
5039 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
5040 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
5041 | if test "$ac_test_CXXFLAGS" = set; then |
5042 | CXXFLAGS=$ac_save_CXXFLAGS |
5043 | elif test $ac_cv_prog_cxx_g = yes; then |
5044 | if test "$GXX" = yes; then |
5045 | CXXFLAGS="-g -O2" |
5046 | else |
5047 | CXXFLAGS="-g" |
5048 | fi |
5049 | else |
5050 | if test "$GXX" = yes; then |
5051 | CXXFLAGS="-O2" |
5052 | else |
5053 | CXXFLAGS= |
5054 | fi |
5055 | fi |
5056 | for ac_declaration in \ |
5057 | '' \ |
5058 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
5059 | 'extern "C" void std::exit (int); using std::exit;' \ |
5060 | 'extern "C" void exit (int) throw ();' \ |
5061 | 'extern "C" void exit (int);' \ |
5062 | 'void exit (int);' |
5063 | do |
5064 | cat >conftest.$ac_ext <<_ACEOF |
5065 | /* confdefs.h. */ |
5066 | _ACEOF |
5067 | cat confdefs.h >>conftest.$ac_ext |
5068 | cat >>conftest.$ac_ext <<_ACEOF |
5069 | /* end confdefs.h. */ |
5070 | $ac_declaration |
5071 | #include <stdlib.h> |
5072 | int |
5073 | main () |
5074 | { |
5075 | exit (42); |
5076 | ; |
5077 | return 0; |
5078 | } |
5079 | _ACEOF |
5080 | rm -f conftest.$ac_objext |
5081 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5082 | (eval $ac_compile) 2>conftest.er1 |
5083 | ac_status=$? |
5084 | grep -v '^ *+' conftest.er1 >conftest.err |
5085 | rm -f conftest.er1 |
5086 | cat conftest.err >&5 |
5087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5088 | (exit $ac_status); } && |
5089 | { ac_try='test -z "$ac_cxx_werror_flag" |
5090 | || test ! -s conftest.err' |
5091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5092 | (eval $ac_try) 2>&5 |
5093 | ac_status=$? |
5094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5095 | (exit $ac_status); }; } && |
5096 | { ac_try='test -s conftest.$ac_objext' |
5097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5098 | (eval $ac_try) 2>&5 |
5099 | ac_status=$? |
5100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5101 | (exit $ac_status); }; }; then |
5102 | : |
5103 | else |
5104 | echo "$as_me: failed program was:" >&5 |
5105 | sed 's/^/| /' conftest.$ac_ext >&5 |
5106 | |
5107 | continue |
5108 | fi |
5109 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5110 | cat >conftest.$ac_ext <<_ACEOF |
5111 | /* confdefs.h. */ |
5112 | _ACEOF |
5113 | cat confdefs.h >>conftest.$ac_ext |
5114 | cat >>conftest.$ac_ext <<_ACEOF |
5115 | /* end confdefs.h. */ |
5116 | $ac_declaration |
5117 | int |
5118 | main () |
5119 | { |
5120 | exit (42); |
5121 | ; |
5122 | return 0; |
5123 | } |
5124 | _ACEOF |
5125 | rm -f conftest.$ac_objext |
5126 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5127 | (eval $ac_compile) 2>conftest.er1 |
5128 | ac_status=$? |
5129 | grep -v '^ *+' conftest.er1 >conftest.err |
5130 | rm -f conftest.er1 |
5131 | cat conftest.err >&5 |
5132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5133 | (exit $ac_status); } && |
5134 | { ac_try='test -z "$ac_cxx_werror_flag" |
5135 | || test ! -s conftest.err' |
5136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5137 | (eval $ac_try) 2>&5 |
5138 | ac_status=$? |
5139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5140 | (exit $ac_status); }; } && |
5141 | { ac_try='test -s conftest.$ac_objext' |
5142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5143 | (eval $ac_try) 2>&5 |
5144 | ac_status=$? |
5145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5146 | (exit $ac_status); }; }; then |
5147 | break |
5148 | else |
5149 | echo "$as_me: failed program was:" >&5 |
5150 | sed 's/^/| /' conftest.$ac_ext >&5 |
5151 | |
5152 | fi |
5153 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5154 | done |
5155 | rm -f conftest* |
5156 | if test -n "$ac_declaration"; then |
5157 | echo '#ifdef __cplusplus' >>confdefs.h |
5158 | echo $ac_declaration >>confdefs.h |
5159 | echo '#endif' >>confdefs.h |
5160 | fi |
5161 | |
5162 | ac_ext=cc |
5163 | ac_cpp='$CXXCPP $CPPFLAGS' |
5164 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5165 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5166 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5167 | |
5168 | depcc="$CXX" am_compiler_list= |
5169 | |
5170 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
5171 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
5172 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
5173 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5174 | else |
5175 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
5176 | # We make a subdir and do the tests there. Otherwise we can end up |
5177 | # making bogus files that we don't know about and never remove. For |
5178 | # instance it was reported that on HP-UX the gcc test will end up |
5179 | # making a dummy file named `D' -- because `-MD' means `put the output |
5180 | # in D'. |
5181 | mkdir conftest.dir |
5182 | # Copy depcomp to subdir because otherwise we won't find it if we're |
5183 | # using a relative directory. |
5184 | cp "$am_depcomp" conftest.dir |
5185 | cd conftest.dir |
5186 | # We will build objects and dependencies in a subdirectory because |
5187 | # it helps to detect inapplicable dependency modes. For instance |
5188 | # both Tru64's cc and ICC support -MD to output dependencies as a |
5189 | # side effect of compilation, but ICC will put the dependencies in |
5190 | # the current directory while Tru64 will put them in the object |
5191 | # directory. |
5192 | mkdir sub |
5193 | |
5194 | am_cv_CXX_dependencies_compiler_type=none |
5195 | if test "$am_compiler_list" = ""; then |
5196 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
5197 | fi |
5198 | for depmode in $am_compiler_list; do |
5199 | # Setup a source with many dependencies, because some compilers |
5200 | # like to wrap large dependency lists on column 80 (with \), and |
5201 | # we should not choose a depcomp mode which is confused by this. |
5202 | # |
5203 | # We need to recreate these files for each test, as the compiler may |
5204 | # overwrite some of them when testing with obscure command lines. |
5205 | # This happens at least with the AIX C compiler. |
5206 | : > sub/conftest.c |
5207 | for i in 1 2 3 4 5 6; do |
5208 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
5209 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
5210 | # Solaris 8's {/usr,}/bin/sh. |
5211 | touch sub/conftst$i.h |
5212 | done |
5213 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
5214 | |
5215 | case $depmode in |
5216 | nosideeffect) |
5217 | # after this tag, mechanisms are not by side-effect, so they'll |
5218 | # only be used when explicitly requested |
5219 | if test "x$enable_dependency_tracking" = xyes; then |
5220 | continue |
5221 | else |
5222 | break |
5223 | fi |
5224 | ;; |
5225 | none) break ;; |
5226 | esac |
5227 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
5228 | # mode. It turns out that the SunPro C++ compiler does not properly |
5229 | # handle `-M -o', and we need to detect this. |
5230 | if depmode=$depmode \ |
5231 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
5232 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
5233 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
5234 | >/dev/null 2>conftest.err && |
5235 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
5236 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
5237 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
5238 | # icc doesn't choke on unknown options, it will just issue warnings |
5239 | # or remarks (even with -Werror). So we grep stderr for any message |
5240 | # that says an option was ignored or not supported. |
5241 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
5242 | # icc: Command line warning: ignoring option '-M'; no argument required |
5243 | # The diagnosis changed in icc 8.0: |
5244 | # icc: Command line remark: option '-MP' not supported |
5245 | if (grep 'ignoring option' conftest.err || |
5246 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
5247 | am_cv_CXX_dependencies_compiler_type=$depmode |
5248 | break |
5249 | fi |
5250 | fi |
5251 | done |
5252 | |
5253 | cd .. |
5254 | rm -rf conftest.dir |
5255 | else |
5256 | am_cv_CXX_dependencies_compiler_type=none |
5257 | fi |
5258 | |
5259 | fi |
5260 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
5261 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
5262 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
5263 | |
5264 | |
5265 | |
5266 | if |
5267 | test "x$enable_dependency_tracking" != xno \ |
5268 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
5269 | am__fastdepCXX_TRUE= |
5270 | am__fastdepCXX_FALSE='#' |
5271 | else |
5272 | am__fastdepCXX_TRUE='#' |
5273 | am__fastdepCXX_FALSE= |
5274 | fi |
5275 | |
5276 | |
5277 | |
5278 | |
5279 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
5280 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
5281 | (test "X$CXX" != "Xg++"))) ; then |
5282 | ac_ext=cc |
5283 | ac_cpp='$CXXCPP $CPPFLAGS' |
5284 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5285 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5286 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5287 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
5288 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
5289 | if test -z "$CXXCPP"; then |
5290 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
5291 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5292 | else |
5293 | # Double quotes because CXXCPP needs to be expanded |
5294 | for CXXCPP in "$CXX -E" "/lib/cpp" |
5295 | do |
5296 | ac_preproc_ok=false |
5297 | for ac_cxx_preproc_warn_flag in '' yes |
5298 | do |
5299 | # Use a header file that comes with gcc, so configuring glibc |
5300 | # with a fresh cross-compiler works. |
5301 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5302 | # <limits.h> exists even on freestanding compilers. |
5303 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5304 | # not just through cpp. "Syntax error" is here to catch this case. |
5305 | cat >conftest.$ac_ext <<_ACEOF |
5306 | /* confdefs.h. */ |
5307 | _ACEOF |
5308 | cat confdefs.h >>conftest.$ac_ext |
5309 | cat >>conftest.$ac_ext <<_ACEOF |
5310 | /* end confdefs.h. */ |
5311 | #ifdef __STDC__ |
5312 | # include <limits.h> |
5313 | #else |
5314 | # include <assert.h> |
5315 | #endif |
5316 | Syntax error |
5317 | _ACEOF |
5318 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5319 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5320 | ac_status=$? |
5321 | grep -v '^ *+' conftest.er1 >conftest.err |
5322 | rm -f conftest.er1 |
5323 | cat conftest.err >&5 |
5324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5325 | (exit $ac_status); } >/dev/null; then |
5326 | if test -s conftest.err; then |
5327 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
5328 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
5329 | else |
5330 | ac_cpp_err= |
5331 | fi |
5332 | else |
5333 | ac_cpp_err=yes |
5334 | fi |
5335 | if test -z "$ac_cpp_err"; then |
5336 | : |
5337 | else |
5338 | echo "$as_me: failed program was:" >&5 |
5339 | sed 's/^/| /' conftest.$ac_ext >&5 |
5340 | |
5341 | # Broken: fails on valid input. |
5342 | continue |
5343 | fi |
5344 | rm -f conftest.err conftest.$ac_ext |
5345 | |
5346 | # OK, works on sane cases. Now check whether non-existent headers |
5347 | # can be detected and how. |
5348 | cat >conftest.$ac_ext <<_ACEOF |
5349 | /* confdefs.h. */ |
5350 | _ACEOF |
5351 | cat confdefs.h >>conftest.$ac_ext |
5352 | cat >>conftest.$ac_ext <<_ACEOF |
5353 | /* end confdefs.h. */ |
5354 | #include <ac_nonexistent.h> |
5355 | _ACEOF |
5356 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5357 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5358 | ac_status=$? |
5359 | grep -v '^ *+' conftest.er1 >conftest.err |
5360 | rm -f conftest.er1 |
5361 | cat conftest.err >&5 |
5362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5363 | (exit $ac_status); } >/dev/null; then |
5364 | if test -s conftest.err; then |
5365 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
5366 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
5367 | else |
5368 | ac_cpp_err= |
5369 | fi |
5370 | else |
5371 | ac_cpp_err=yes |
5372 | fi |
5373 | if test -z "$ac_cpp_err"; then |
5374 | # Broken: success on invalid input. |
5375 | continue |
5376 | else |
5377 | echo "$as_me: failed program was:" >&5 |
5378 | sed 's/^/| /' conftest.$ac_ext >&5 |
5379 | |
5380 | # Passes both tests. |
5381 | ac_preproc_ok=: |
5382 | break |
5383 | fi |
5384 | rm -f conftest.err conftest.$ac_ext |
5385 | |
5386 | done |
5387 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5388 | rm -f conftest.err conftest.$ac_ext |
5389 | if $ac_preproc_ok; then |
5390 | break |
5391 | fi |
5392 | |
5393 | done |
5394 | ac_cv_prog_CXXCPP=$CXXCPP |
5395 | |
5396 | fi |
5397 | CXXCPP=$ac_cv_prog_CXXCPP |
5398 | else |
5399 | ac_cv_prog_CXXCPP=$CXXCPP |
5400 | fi |
5401 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
5402 | echo "${ECHO_T}$CXXCPP" >&6 |
5403 | ac_preproc_ok=false |
5404 | for ac_cxx_preproc_warn_flag in '' yes |
5405 | do |
5406 | # Use a header file that comes with gcc, so configuring glibc |
5407 | # with a fresh cross-compiler works. |
5408 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5409 | # <limits.h> exists even on freestanding compilers. |
5410 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5411 | # not just through cpp. "Syntax error" is here to catch this case. |
5412 | cat >conftest.$ac_ext <<_ACEOF |
5413 | /* confdefs.h. */ |
5414 | _ACEOF |
5415 | cat confdefs.h >>conftest.$ac_ext |
5416 | cat >>conftest.$ac_ext <<_ACEOF |
5417 | /* end confdefs.h. */ |
5418 | #ifdef __STDC__ |
5419 | # include <limits.h> |
5420 | #else |
5421 | # include <assert.h> |
5422 | #endif |
5423 | Syntax error |
5424 | _ACEOF |
5425 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5426 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5427 | ac_status=$? |
5428 | grep -v '^ *+' conftest.er1 >conftest.err |
5429 | rm -f conftest.er1 |
5430 | cat conftest.err >&5 |
5431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5432 | (exit $ac_status); } >/dev/null; then |
5433 | if test -s conftest.err; then |
5434 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
5435 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
5436 | else |
5437 | ac_cpp_err= |
5438 | fi |
5439 | else |
5440 | ac_cpp_err=yes |
5441 | fi |
5442 | if test -z "$ac_cpp_err"; then |
5443 | : |
5444 | else |
5445 | echo "$as_me: failed program was:" >&5 |
5446 | sed 's/^/| /' conftest.$ac_ext >&5 |
5447 | |
5448 | # Broken: fails on valid input. |
5449 | continue |
5450 | fi |
5451 | rm -f conftest.err conftest.$ac_ext |
5452 | |
5453 | # OK, works on sane cases. Now check whether non-existent headers |
5454 | # can be detected and how. |
5455 | cat >conftest.$ac_ext <<_ACEOF |
5456 | /* confdefs.h. */ |
5457 | _ACEOF |
5458 | cat confdefs.h >>conftest.$ac_ext |
5459 | cat >>conftest.$ac_ext <<_ACEOF |
5460 | /* end confdefs.h. */ |
5461 | #include <ac_nonexistent.h> |
5462 | _ACEOF |
5463 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5464 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5465 | ac_status=$? |
5466 | grep -v '^ *+' conftest.er1 >conftest.err |
5467 | rm -f conftest.er1 |
5468 | cat conftest.err >&5 |
5469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5470 | (exit $ac_status); } >/dev/null; then |
5471 | if test -s conftest.err; then |
5472 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
5473 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
5474 | else |
5475 | ac_cpp_err= |
5476 | fi |
5477 | else |
5478 | ac_cpp_err=yes |
5479 | fi |
5480 | if test -z "$ac_cpp_err"; then |
5481 | # Broken: success on invalid input. |
5482 | continue |
5483 | else |
5484 | echo "$as_me: failed program was:" >&5 |
5485 | sed 's/^/| /' conftest.$ac_ext >&5 |
5486 | |
5487 | # Passes both tests. |
5488 | ac_preproc_ok=: |
5489 | break |
5490 | fi |
5491 | rm -f conftest.err conftest.$ac_ext |
5492 | |
5493 | done |
5494 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5495 | rm -f conftest.err conftest.$ac_ext |
5496 | if $ac_preproc_ok; then |
5497 | : |
5498 | else |
5499 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
5500 | See \`config.log' for more details." >&5 |
5501 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
5502 | See \`config.log' for more details." >&2;} |
5503 | { (exit 1); exit 1; }; } |
5504 | fi |
5505 | |
5506 | ac_ext=cc |
5507 | ac_cpp='$CXXCPP $CPPFLAGS' |
5508 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5509 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5510 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5511 | |
5512 | fi |
5513 | |
5514 | |
5515 | ac_ext=f |
5516 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
5517 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5518 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
5519 | if test -n "$ac_tool_prefix"; then |
5520 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
5521 | do |
5522 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
5523 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
5524 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5525 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5526 | if test "${ac_cv_prog_F77+set}" = set; then |
5527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5528 | else |
5529 | if test -n "$F77"; then |
5530 | ac_cv_prog_F77="$F77" # Let the user override the test. |
5531 | else |
5532 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5533 | for as_dir in $PATH |
5534 | do |
5535 | IFS=$as_save_IFS |
5536 | test -z "$as_dir" && as_dir=. |
5537 | for ac_exec_ext in '' $ac_executable_extensions; do |
5538 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5539 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
5540 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5541 | break 2 |
5542 | fi |
5543 | done |
5544 | done |
5545 | |
5546 | fi |
5547 | fi |
5548 | F77=$ac_cv_prog_F77 |
5549 | if test -n "$F77"; then |
5550 | echo "$as_me:$LINENO: result: $F77" >&5 |
5551 | echo "${ECHO_T}$F77" >&6 |
5552 | else |
5553 | echo "$as_me:$LINENO: result: no" >&5 |
5554 | echo "${ECHO_T}no" >&6 |
5555 | fi |
5556 | |
5557 | test -n "$F77" && break |
5558 | done |
5559 | fi |
5560 | if test -z "$F77"; then |
5561 | ac_ct_F77=$F77 |
5562 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
5563 | do |
5564 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
5565 | set dummy $ac_prog; ac_word=$2 |
5566 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5567 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5568 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
5569 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5570 | else |
5571 | if test -n "$ac_ct_F77"; then |
5572 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
5573 | else |
5574 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5575 | for as_dir in $PATH |
5576 | do |
5577 | IFS=$as_save_IFS |
5578 | test -z "$as_dir" && as_dir=. |
5579 | for ac_exec_ext in '' $ac_executable_extensions; do |
5580 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5581 | ac_cv_prog_ac_ct_F77="$ac_prog" |
5582 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5583 | break 2 |
5584 | fi |
5585 | done |
5586 | done |
5587 | |
5588 | fi |
5589 | fi |
5590 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
5591 | if test -n "$ac_ct_F77"; then |
5592 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
5593 | echo "${ECHO_T}$ac_ct_F77" >&6 |
5594 | else |
5595 | echo "$as_me:$LINENO: result: no" >&5 |
5596 | echo "${ECHO_T}no" >&6 |
5597 | fi |
5598 | |
5599 | test -n "$ac_ct_F77" && break |
5600 | done |
5601 | |
5602 | F77=$ac_ct_F77 |
5603 | fi |
5604 | |
5605 | |
5606 | # Provide some information about the compiler. |
5607 | echo "$as_me:5607:" \ |
5608 | "checking for Fortran 77 compiler version" >&5 |
5609 | ac_compiler=`set X $ac_compile; echo $2` |
5610 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
5611 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
5612 | ac_status=$? |
5613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5614 | (exit $ac_status); } |
5615 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
5616 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
5617 | ac_status=$? |
5618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5619 | (exit $ac_status); } |
5620 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
5621 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
5622 | ac_status=$? |
5623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5624 | (exit $ac_status); } |
5625 | rm -f a.out |
5626 | |
5627 | # If we don't use `.F' as extension, the preprocessor is not run on the |
5628 | # input file. (Note that this only needs to work for GNU compilers.) |
5629 | ac_save_ext=$ac_ext |
5630 | ac_ext=F |
5631 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
5632 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 |
5633 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
5634 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5635 | else |
5636 | cat >conftest.$ac_ext <<_ACEOF |
5637 | program main |
5638 | #ifndef __GNUC__ |
5639 | choke me |
5640 | #endif |
5641 | |
5642 | end |
5643 | _ACEOF |
5644 | rm -f conftest.$ac_objext |
5645 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5646 | (eval $ac_compile) 2>conftest.er1 |
5647 | ac_status=$? |
5648 | grep -v '^ *+' conftest.er1 >conftest.err |
5649 | rm -f conftest.er1 |
5650 | cat conftest.err >&5 |
5651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5652 | (exit $ac_status); } && |
5653 | { ac_try='test -z "$ac_f77_werror_flag" |
5654 | || test ! -s conftest.err' |
5655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5656 | (eval $ac_try) 2>&5 |
5657 | ac_status=$? |
5658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5659 | (exit $ac_status); }; } && |
5660 | { ac_try='test -s conftest.$ac_objext' |
5661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5662 | (eval $ac_try) 2>&5 |
5663 | ac_status=$? |
5664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5665 | (exit $ac_status); }; }; then |
5666 | ac_compiler_gnu=yes |
5667 | else |
5668 | echo "$as_me: failed program was:" >&5 |
5669 | sed 's/^/| /' conftest.$ac_ext >&5 |
5670 | |
5671 | ac_compiler_gnu=no |
5672 | fi |
5673 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5674 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
5675 | |
5676 | fi |
5677 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
5678 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 |
5679 | ac_ext=$ac_save_ext |
5680 | ac_test_FFLAGS=${FFLAGS+set} |
5681 | ac_save_FFLAGS=$FFLAGS |
5682 | FFLAGS= |
5683 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
5684 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 |
5685 | if test "${ac_cv_prog_f77_g+set}" = set; then |
5686 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5687 | else |
5688 | FFLAGS=-g |
5689 | cat >conftest.$ac_ext <<_ACEOF |
5690 | program main |
5691 | |
5692 | end |
5693 | _ACEOF |
5694 | rm -f conftest.$ac_objext |
5695 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5696 | (eval $ac_compile) 2>conftest.er1 |
5697 | ac_status=$? |
5698 | grep -v '^ *+' conftest.er1 >conftest.err |
5699 | rm -f conftest.er1 |
5700 | cat conftest.err >&5 |
5701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5702 | (exit $ac_status); } && |
5703 | { ac_try='test -z "$ac_f77_werror_flag" |
5704 | || test ! -s conftest.err' |
5705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5706 | (eval $ac_try) 2>&5 |
5707 | ac_status=$? |
5708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5709 | (exit $ac_status); }; } && |
5710 | { ac_try='test -s conftest.$ac_objext' |
5711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5712 | (eval $ac_try) 2>&5 |
5713 | ac_status=$? |
5714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5715 | (exit $ac_status); }; }; then |
5716 | ac_cv_prog_f77_g=yes |
5717 | else |
5718 | echo "$as_me: failed program was:" >&5 |
5719 | sed 's/^/| /' conftest.$ac_ext >&5 |
5720 | |
5721 | ac_cv_prog_f77_g=no |
5722 | fi |
5723 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5724 | |
5725 | fi |
5726 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
5727 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 |
5728 | if test "$ac_test_FFLAGS" = set; then |
5729 | FFLAGS=$ac_save_FFLAGS |
5730 | elif test $ac_cv_prog_f77_g = yes; then |
5731 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
5732 | FFLAGS="-g -O2" |
5733 | else |
5734 | FFLAGS="-g" |
5735 | fi |
5736 | else |
5737 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
5738 | FFLAGS="-O2" |
5739 | else |
5740 | FFLAGS= |
5741 | fi |
5742 | fi |
5743 | |
5744 | G77=`test $ac_compiler_gnu = yes && echo yes` |
5745 | ac_ext=c |
5746 | ac_cpp='$CPP $CPPFLAGS' |
5747 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5748 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5749 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
5750 | |
5751 | |
5752 | |
5753 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
5754 | |
5755 | # find the maximum length of command line arguments |
5756 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
5757 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
5758 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
5759 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5760 | else |
5761 | i=0 |
5762 | teststring="ABCD" |
5763 | |
5764 | case $build_os in |
5765 | msdosdjgpp*) |
5766 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
5767 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
5768 | # during glob expansion). Even if it were fixed, the result of this |
5769 | # check would be larger than it should be. |
5770 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
5771 | ;; |
5772 | |
5773 | gnu*) |
5774 | # Under GNU Hurd, this test is not required because there is |
5775 | # no limit to the length of command line arguments. |
5776 | # Libtool will interpret -1 as no limit whatsoever |
5777 | lt_cv_sys_max_cmd_len=-1; |
5778 | ;; |
5779 | |
5780 | cygwin* | mingw*) |
5781 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
5782 | # about 5 minutes as the teststring grows exponentially. |
5783 | # Worse, since 9x/ME are not pre-emptively multitasking, |
5784 | # you end up with a "frozen" computer, even though with patience |
5785 | # the test eventually succeeds (with a max line length of 256k). |
5786 | # Instead, let's just punt: use the minimum linelength reported by |
5787 | # all of the supported platforms: 8192 (on NT/2K/XP). |
5788 | lt_cv_sys_max_cmd_len=8192; |
5789 | ;; |
5790 | |
5791 | amigaos*) |
5792 | # On AmigaOS with pdksh, this test takes hours, literally. |
5793 | # So we just punt and use a minimum line length of 8192. |
5794 | lt_cv_sys_max_cmd_len=8192; |
5795 | ;; |
5796 | |
5797 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
5798 | # This has been around since 386BSD, at least. Likely further. |
5799 | if test -x /sbin/sysctl; then |
5800 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
5801 | elif test -x /usr/sbin/sysctl; then |
5802 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
5803 | else |
5804 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
5805 | fi |
5806 | # And add a safety zone |
5807 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
5808 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
5809 | ;; |
5810 | |
5811 | interix*) |
5812 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
5813 | lt_cv_sys_max_cmd_len=196608 |
5814 | ;; |
5815 | |
5816 | osf*) |
5817 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
5818 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
5819 | # nice to cause kernel panics so lets avoid the loop below. |
5820 | # First set a reasonable default. |
5821 | lt_cv_sys_max_cmd_len=16384 |
5822 | # |
5823 | if test -x /sbin/sysconfig; then |
5824 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
5825 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
5826 | esac |
5827 | fi |
5828 | ;; |
5829 | sco3.2v5*) |
5830 | lt_cv_sys_max_cmd_len=102400 |
5831 | ;; |
5832 | sysv5* | sco5v6* | sysv4.2uw2*) |
5833 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
5834 | if test -n "$kargmax"; then |
5835 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
5836 | else |
5837 | lt_cv_sys_max_cmd_len=32768 |
5838 | fi |
5839 | ;; |
5840 | *) |
5841 | # If test is not a shell built-in, we'll probably end up computing a |
5842 | # maximum length that is only half of the actual maximum length, but |
5843 | # we can't tell. |
5844 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
5845 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
5846 | = "XX$teststring") >/dev/null 2>&1 && |
5847 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
5848 | lt_cv_sys_max_cmd_len=$new_result && |
5849 | test $i != 17 # 1/2 MB should be enough |
5850 | do |
5851 | i=`expr $i + 1` |
5852 | teststring=$teststring$teststring |
5853 | done |
5854 | teststring= |
5855 | # Add a significant safety factor because C++ compilers can tack on massive |
5856 | # amounts of additional arguments before passing them to the linker. |
5857 | # It appears as though 1/2 is a usable value. |
5858 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
5859 | ;; |
5860 | esac |
5861 | |
5862 | fi |
5863 | |
5864 | if test -n $lt_cv_sys_max_cmd_len ; then |
5865 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
5866 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
5867 | else |
5868 | echo "$as_me:$LINENO: result: none" >&5 |
5869 | echo "${ECHO_T}none" >&6 |
5870 | fi |
5871 | |
5872 | |
5873 | |
5874 | |
5875 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
5876 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
5877 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
5878 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
5879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5880 | else |
5881 | |
5882 | # These are sane defaults that work on at least a few old systems. |
5883 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
5884 | |
5885 | # Character class describing NM global symbol codes. |
5886 | symcode='[BCDEGRST]' |
5887 | |
5888 | # Regexp to match symbols that can be accessed directly from C. |
5889 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
5890 | |
5891 | # Transform an extracted symbol line into a proper C declaration |
5892 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
5893 | |
5894 | # Transform an extracted symbol line into symbol name and symbol address |
5895 | 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'" |
5896 | |
5897 | # Define system-specific variables. |
5898 | case $host_os in |
5899 | aix*) |
5900 | symcode='[BCDT]' |
5901 | ;; |
5902 | cygwin* | mingw* | pw32*) |
5903 | symcode='[ABCDGISTW]' |
5904 | ;; |
5905 | hpux*) # Its linker distinguishes data from code symbols |
5906 | if test "$host_cpu" = ia64; then |
5907 | symcode='[ABCDEGRST]' |
5908 | fi |
5909 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
5910 | 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'" |
5911 | ;; |
5912 | linux*) |
5913 | if test "$host_cpu" = ia64; then |
5914 | symcode='[ABCDGIRSTW]' |
5915 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
5916 | 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'" |
5917 | fi |
5918 | ;; |
5919 | irix* | nonstopux*) |
5920 | symcode='[BCDEGRST]' |
5921 | ;; |
5922 | osf*) |
5923 | symcode='[BCDEGQRST]' |
5924 | ;; |
5925 | solaris*) |
5926 | symcode='[BDRT]' |
5927 | ;; |
5928 | sco3.2v5*) |
5929 | symcode='[DT]' |
5930 | ;; |
5931 | sysv4.2uw2*) |
5932 | symcode='[DT]' |
5933 | ;; |
5934 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
5935 | symcode='[ABDT]' |
5936 | ;; |
5937 | sysv4) |
5938 | symcode='[DFNSTU]' |
5939 | ;; |
5940 | esac |
5941 | |
5942 | # Handle CRLF in mingw tool chain |
5943 | opt_cr= |
5944 | case $build_os in |
5945 | mingw*) |
5946 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
5947 | ;; |
5948 | esac |
5949 | |
5950 | # If we're using GNU nm, then use its standard symbol codes. |
5951 | case `$NM -V 2>&1` in |
5952 | *GNU* | *'with BFD'*) |
5953 | symcode='[ABCDGIRSTW]' ;; |
5954 | esac |
5955 | |
5956 | # Try without a prefix undercore, then with it. |
5957 | for ac_symprfx in "" "_"; do |
5958 | |
5959 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
5960 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
5961 | |
5962 | # Write the raw and C identifiers. |
5963 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
5964 | |
5965 | # Check to see that the pipe works correctly. |
5966 | pipe_works=no |
5967 | |
5968 | rm -f conftest* |
5969 | cat > conftest.$ac_ext <<EOF |
5970 | #ifdef __cplusplus |
5971 | extern "C" { |
5972 | #endif |
5973 | char nm_test_var; |
5974 | void nm_test_func(){} |
5975 | #ifdef __cplusplus |
5976 | } |
5977 | #endif |
5978 | int main(){nm_test_var='a';nm_test_func();return(0);} |
5979 | EOF |
5980 | |
5981 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5982 | (eval $ac_compile) 2>&5 |
5983 | ac_status=$? |
5984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5985 | (exit $ac_status); }; then |
5986 | # Now try to grab the symbols. |
5987 | nlist=conftest.nm |
5988 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
5989 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
5990 | ac_status=$? |
5991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5992 | (exit $ac_status); } && test -s "$nlist"; then |
5993 | # Try sorting and uniquifying the output. |
5994 | if sort "$nlist" | uniq > "$nlist"T; then |
5995 | mv -f "$nlist"T "$nlist" |
5996 | else |
5997 | rm -f "$nlist"T |
5998 | fi |
5999 | |
6000 | # Make sure that we snagged all the symbols we need. |
6001 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
6002 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
6003 | cat <<EOF > conftest.$ac_ext |
6004 | #ifdef __cplusplus |
6005 | extern "C" { |
6006 | #endif |
6007 | |
6008 | EOF |
6009 | # Now generate the symbol file. |
6010 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
6011 | |
6012 | cat <<EOF >> conftest.$ac_ext |
6013 | #if defined (__STDC__) && __STDC__ |
6014 | # define lt_ptr_t void * |
6015 | #else |
6016 | # define lt_ptr_t char * |
6017 | # define const |
6018 | #endif |
6019 | |
6020 | /* The mapping between symbol names and symbols. */ |
6021 | const struct { |
6022 | const char *name; |
6023 | lt_ptr_t address; |
6024 | } |
6025 | lt_preloaded_symbols[] = |
6026 | { |
6027 | EOF |
6028 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
6029 | cat <<\EOF >> conftest.$ac_ext |
6030 | {0, (lt_ptr_t) 0} |
6031 | }; |
6032 | |
6033 | #ifdef __cplusplus |
6034 | } |
6035 | #endif |
6036 | EOF |
6037 | # Now try linking the two files. |
6038 | mv conftest.$ac_objext conftstm.$ac_objext |
6039 | lt_save_LIBS="$LIBS" |
6040 | lt_save_CFLAGS="$CFLAGS" |
6041 | LIBS="conftstm.$ac_objext" |
6042 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
6043 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6044 | (eval $ac_link) 2>&5 |
6045 | ac_status=$? |
6046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6047 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
6048 | pipe_works=yes |
6049 | fi |
6050 | LIBS="$lt_save_LIBS" |
6051 | CFLAGS="$lt_save_CFLAGS" |
6052 | else |
6053 | echo "cannot find nm_test_func in $nlist" >&5 |
6054 | fi |
6055 | else |
6056 | echo "cannot find nm_test_var in $nlist" >&5 |
6057 | fi |
6058 | else |
6059 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
6060 | fi |
6061 | else |
6062 | echo "$progname: failed program was:" >&5 |
6063 | cat conftest.$ac_ext >&5 |
6064 | fi |
6065 | rm -f conftest* conftst* |
6066 | |
6067 | # Do not use the global_symbol_pipe unless it works. |
6068 | if test "$pipe_works" = yes; then |
6069 | break |
6070 | else |
6071 | lt_cv_sys_global_symbol_pipe= |
6072 | fi |
6073 | done |
6074 | |
6075 | fi |
6076 | |
6077 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
6078 | lt_cv_sys_global_symbol_to_cdecl= |
6079 | fi |
6080 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
6081 | echo "$as_me:$LINENO: result: failed" >&5 |
6082 | echo "${ECHO_T}failed" >&6 |
6083 | else |
6084 | echo "$as_me:$LINENO: result: ok" >&5 |
6085 | echo "${ECHO_T}ok" >&6 |
6086 | fi |
6087 | |
6088 | echo "$as_me:$LINENO: checking for objdir" >&5 |
6089 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
6090 | if test "${lt_cv_objdir+set}" = set; then |
6091 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6092 | else |
6093 | rm -f .libs 2>/dev/null |
6094 | mkdir .libs 2>/dev/null |
6095 | if test -d .libs; then |
6096 | lt_cv_objdir=.libs |
6097 | else |
6098 | # MS-DOS does not allow filenames that begin with a dot. |
6099 | lt_cv_objdir=_libs |
6100 | fi |
6101 | rmdir .libs 2>/dev/null |
6102 | fi |
6103 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
6104 | echo "${ECHO_T}$lt_cv_objdir" >&6 |
6105 | objdir=$lt_cv_objdir |
6106 | |
6107 | |
6108 | |
6109 | |
6110 | |
6111 | case $host_os in |
6112 | aix3*) |
6113 | # AIX sometimes has problems with the GCC collect2 program. For some |
6114 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
6115 | # vanish in a puff of smoke. |
6116 | if test "X${COLLECT_NAMES+set}" != Xset; then |
6117 | COLLECT_NAMES= |
6118 | export COLLECT_NAMES |
6119 | fi |
6120 | ;; |
6121 | esac |
6122 | |
6123 | # Sed substitution that helps us do robust quoting. It backslashifies |
6124 | # metacharacters that are still active within double-quoted strings. |
6125 | Xsed='sed -e 1s/^X//' |
6126 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
6127 | |
6128 | # Same as above, but do not quote variable references. |
6129 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
6130 | |
6131 | # Sed substitution to delay expansion of an escaped shell variable in a |
6132 | # double_quote_subst'ed string. |
6133 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
6134 | |
6135 | # Sed substitution to avoid accidental globbing in evaled expressions |
6136 | no_glob_subst='s/\*/\\\*/g' |
6137 | |
6138 | # Constants: |
6139 | rm="rm -f" |
6140 | |
6141 | # Global variables: |
6142 | default_ofile=libtool |
6143 | can_build_shared=yes |
6144 | |
6145 | # All known linkers require a `.a' archive for static linking (except MSVC, |
6146 | # which needs '.lib'). |
6147 | libext=a |
6148 | ltmain="$ac_aux_dir/ltmain.sh" |
6149 | ofile="$default_ofile" |
6150 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
6151 | |
6152 | if test -n "$ac_tool_prefix"; then |
6153 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
6154 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
6155 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6156 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6157 | if test "${ac_cv_prog_AR+set}" = set; then |
6158 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6159 | else |
6160 | if test -n "$AR"; then |
6161 | ac_cv_prog_AR="$AR" # Let the user override the test. |
6162 | else |
6163 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6164 | for as_dir in $PATH |
6165 | do |
6166 | IFS=$as_save_IFS |
6167 | test -z "$as_dir" && as_dir=. |
6168 | for ac_exec_ext in '' $ac_executable_extensions; do |
6169 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6170 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
6171 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6172 | break 2 |
6173 | fi |
6174 | done |
6175 | done |
6176 | |
6177 | fi |
6178 | fi |
6179 | AR=$ac_cv_prog_AR |
6180 | if test -n "$AR"; then |
6181 | echo "$as_me:$LINENO: result: $AR" >&5 |
6182 | echo "${ECHO_T}$AR" >&6 |
6183 | else |
6184 | echo "$as_me:$LINENO: result: no" >&5 |
6185 | echo "${ECHO_T}no" >&6 |
6186 | fi |
6187 | |
6188 | fi |
6189 | if test -z "$ac_cv_prog_AR"; then |
6190 | ac_ct_AR=$AR |
6191 | # Extract the first word of "ar", so it can be a program name with args. |
6192 | set dummy ar; ac_word=$2 |
6193 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6194 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6195 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
6196 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6197 | else |
6198 | if test -n "$ac_ct_AR"; then |
6199 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
6200 | else |
6201 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6202 | for as_dir in $PATH |
6203 | do |
6204 | IFS=$as_save_IFS |
6205 | test -z "$as_dir" && as_dir=. |
6206 | for ac_exec_ext in '' $ac_executable_extensions; do |
6207 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6208 | ac_cv_prog_ac_ct_AR="ar" |
6209 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6210 | break 2 |
6211 | fi |
6212 | done |
6213 | done |
6214 | |
6215 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
6216 | fi |
6217 | fi |
6218 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
6219 | if test -n "$ac_ct_AR"; then |
6220 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
6221 | echo "${ECHO_T}$ac_ct_AR" >&6 |
6222 | else |
6223 | echo "$as_me:$LINENO: result: no" >&5 |
6224 | echo "${ECHO_T}no" >&6 |
6225 | fi |
6226 | |
6227 | AR=$ac_ct_AR |
6228 | else |
6229 | AR="$ac_cv_prog_AR" |
6230 | fi |
6231 | |
6232 | if test -n "$ac_tool_prefix"; then |
6233 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
6234 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
6235 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6236 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6237 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
6238 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6239 | else |
6240 | if test -n "$RANLIB"; then |
6241 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
6242 | else |
6243 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6244 | for as_dir in $PATH |
6245 | do |
6246 | IFS=$as_save_IFS |
6247 | test -z "$as_dir" && as_dir=. |
6248 | for ac_exec_ext in '' $ac_executable_extensions; do |
6249 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6250 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6251 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6252 | break 2 |
6253 | fi |
6254 | done |
6255 | done |
6256 | |
6257 | fi |
6258 | fi |
6259 | RANLIB=$ac_cv_prog_RANLIB |
6260 | if test -n "$RANLIB"; then |
6261 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
6262 | echo "${ECHO_T}$RANLIB" >&6 |
6263 | else |
6264 | echo "$as_me:$LINENO: result: no" >&5 |
6265 | echo "${ECHO_T}no" >&6 |
6266 | fi |
6267 | |
6268 | fi |
6269 | if test -z "$ac_cv_prog_RANLIB"; then |
6270 | ac_ct_RANLIB=$RANLIB |
6271 | # Extract the first word of "ranlib", so it can be a program name with args. |
6272 | set dummy ranlib; ac_word=$2 |
6273 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6274 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6275 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
6276 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6277 | else |
6278 | if test -n "$ac_ct_RANLIB"; then |
6279 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
6280 | else |
6281 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6282 | for as_dir in $PATH |
6283 | do |
6284 | IFS=$as_save_IFS |
6285 | test -z "$as_dir" && as_dir=. |
6286 | for ac_exec_ext in '' $ac_executable_extensions; do |
6287 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6288 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
6289 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6290 | break 2 |
6291 | fi |
6292 | done |
6293 | done |
6294 | |
6295 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
6296 | fi |
6297 | fi |
6298 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
6299 | if test -n "$ac_ct_RANLIB"; then |
6300 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
6301 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
6302 | else |
6303 | echo "$as_me:$LINENO: result: no" >&5 |
6304 | echo "${ECHO_T}no" >&6 |
6305 | fi |
6306 | |
6307 | RANLIB=$ac_ct_RANLIB |
6308 | else |
6309 | RANLIB="$ac_cv_prog_RANLIB" |
6310 | fi |
6311 | |
6312 | if test -n "$ac_tool_prefix"; then |
6313 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
6314 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
6315 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6316 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6317 | if test "${ac_cv_prog_STRIP+set}" = set; then |
6318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6319 | else |
6320 | if test -n "$STRIP"; then |
6321 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
6322 | else |
6323 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6324 | for as_dir in $PATH |
6325 | do |
6326 | IFS=$as_save_IFS |
6327 | test -z "$as_dir" && as_dir=. |
6328 | for ac_exec_ext in '' $ac_executable_extensions; do |
6329 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6330 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
6331 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6332 | break 2 |
6333 | fi |
6334 | done |
6335 | done |
6336 | |
6337 | fi |
6338 | fi |
6339 | STRIP=$ac_cv_prog_STRIP |
6340 | if test -n "$STRIP"; then |
6341 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
6342 | echo "${ECHO_T}$STRIP" >&6 |
6343 | else |
6344 | echo "$as_me:$LINENO: result: no" >&5 |
6345 | echo "${ECHO_T}no" >&6 |
6346 | fi |
6347 | |
6348 | fi |
6349 | if test -z "$ac_cv_prog_STRIP"; then |
6350 | ac_ct_STRIP=$STRIP |
6351 | # Extract the first word of "strip", so it can be a program name with args. |
6352 | set dummy strip; ac_word=$2 |
6353 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6354 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6355 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
6356 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6357 | else |
6358 | if test -n "$ac_ct_STRIP"; then |
6359 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
6360 | else |
6361 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6362 | for as_dir in $PATH |
6363 | do |
6364 | IFS=$as_save_IFS |
6365 | test -z "$as_dir" && as_dir=. |
6366 | for ac_exec_ext in '' $ac_executable_extensions; do |
6367 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6368 | ac_cv_prog_ac_ct_STRIP="strip" |
6369 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6370 | break 2 |
6371 | fi |
6372 | done |
6373 | done |
6374 | |
6375 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
6376 | fi |
6377 | fi |
6378 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
6379 | if test -n "$ac_ct_STRIP"; then |
6380 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
6381 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
6382 | else |
6383 | echo "$as_me:$LINENO: result: no" >&5 |
6384 | echo "${ECHO_T}no" >&6 |
6385 | fi |
6386 | |
6387 | STRIP=$ac_ct_STRIP |
6388 | else |
6389 | STRIP="$ac_cv_prog_STRIP" |
6390 | fi |
6391 | |
6392 | |
6393 | old_CC="$CC" |
6394 | old_CFLAGS="$CFLAGS" |
6395 | |
6396 | # Set sane defaults for various variables |
6397 | test -z "$AR" && AR=ar |
6398 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
6399 | test -z "$AS" && AS=as |
6400 | test -z "$CC" && CC=cc |
6401 | test -z "$LTCC" && LTCC=$CC |
6402 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
6403 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
6404 | test -z "$LD" && LD=ld |
6405 | test -z "$LN_S" && LN_S="ln -s" |
6406 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
6407 | test -z "$NM" && NM=nm |
6408 | test -z "$SED" && SED=sed |
6409 | test -z "$OBJDUMP" && OBJDUMP=objdump |
6410 | test -z "$RANLIB" && RANLIB=: |
6411 | test -z "$STRIP" && STRIP=: |
6412 | test -z "$ac_objext" && ac_objext=o |
6413 | |
6414 | # Determine commands to create old-style static archives. |
6415 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
6416 | old_postinstall_cmds='chmod 644 $oldlib' |
6417 | old_postuninstall_cmds= |
6418 | |
6419 | if test -n "$RANLIB"; then |
6420 | case $host_os in |
6421 | openbsd*) |
6422 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
6423 | ;; |
6424 | *) |
6425 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
6426 | ;; |
6427 | esac |
6428 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
6429 | fi |
6430 | |
6431 | for cc_temp in $compiler""; do |
6432 | case $cc_temp in |
6433 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
6434 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
6435 | \-*) ;; |
6436 | *) break;; |
6437 | esac |
6438 | done |
6439 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
6440 | |
6441 | |
6442 | # Only perform the check for file, if the check method requires it |
6443 | case $deplibs_check_method in |
6444 | file_magic*) |
6445 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
6446 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
6447 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
6448 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
6449 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6450 | else |
6451 | case $MAGIC_CMD in |
6452 | [\\/*] | ?:[\\/]*) |
6453 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
6454 | ;; |
6455 | *) |
6456 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
6457 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
6458 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
6459 | for ac_dir in $ac_dummy; do |
6460 | IFS="$lt_save_ifs" |
6461 | test -z "$ac_dir" && ac_dir=. |
6462 | if test -f $ac_dir/${ac_tool_prefix}file; then |
6463 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
6464 | if test -n "$file_magic_test_file"; then |
6465 | case $deplibs_check_method in |
6466 | "file_magic "*) |
6467 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
6468 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6469 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
6470 | $EGREP "$file_magic_regex" > /dev/null; then |
6471 | : |
6472 | else |
6473 | cat <<EOF 1>&2 |
6474 | |
6475 | *** Warning: the command libtool uses to detect shared libraries, |
6476 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
6477 | *** The result is that libtool may fail to recognize shared libraries |
6478 | *** as such. This will affect the creation of libtool libraries that |
6479 | *** depend on shared libraries, but programs linked with such libtool |
6480 | *** libraries will work regardless of this problem. Nevertheless, you |
6481 | *** may want to report the problem to your system manager and/or to |
6482 | *** bug-libtool@gnu.org |
6483 | |
6484 | EOF |
6485 | fi ;; |
6486 | esac |
6487 | fi |
6488 | break |
6489 | fi |
6490 | done |
6491 | IFS="$lt_save_ifs" |
6492 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
6493 | ;; |
6494 | esac |
6495 | fi |
6496 | |
6497 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6498 | if test -n "$MAGIC_CMD"; then |
6499 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
6500 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
6501 | else |
6502 | echo "$as_me:$LINENO: result: no" >&5 |
6503 | echo "${ECHO_T}no" >&6 |
6504 | fi |
6505 | |
6506 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
6507 | if test -n "$ac_tool_prefix"; then |
6508 | echo "$as_me:$LINENO: checking for file" >&5 |
6509 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
6510 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
6511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6512 | else |
6513 | case $MAGIC_CMD in |
6514 | [\\/*] | ?:[\\/]*) |
6515 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
6516 | ;; |
6517 | *) |
6518 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
6519 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
6520 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
6521 | for ac_dir in $ac_dummy; do |
6522 | IFS="$lt_save_ifs" |
6523 | test -z "$ac_dir" && ac_dir=. |
6524 | if test -f $ac_dir/file; then |
6525 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
6526 | if test -n "$file_magic_test_file"; then |
6527 | case $deplibs_check_method in |
6528 | "file_magic "*) |
6529 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
6530 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6531 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
6532 | $EGREP "$file_magic_regex" > /dev/null; then |
6533 | : |
6534 | else |
6535 | cat <<EOF 1>&2 |
6536 | |
6537 | *** Warning: the command libtool uses to detect shared libraries, |
6538 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
6539 | *** The result is that libtool may fail to recognize shared libraries |
6540 | *** as such. This will affect the creation of libtool libraries that |
6541 | *** depend on shared libraries, but programs linked with such libtool |
6542 | *** libraries will work regardless of this problem. Nevertheless, you |
6543 | *** may want to report the problem to your system manager and/or to |
6544 | *** bug-libtool@gnu.org |
6545 | |
6546 | EOF |
6547 | fi ;; |
6548 | esac |
6549 | fi |
6550 | break |
6551 | fi |
6552 | done |
6553 | IFS="$lt_save_ifs" |
6554 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
6555 | ;; |
6556 | esac |
6557 | fi |
6558 | |
6559 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6560 | if test -n "$MAGIC_CMD"; then |
6561 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
6562 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
6563 | else |
6564 | echo "$as_me:$LINENO: result: no" >&5 |
6565 | echo "${ECHO_T}no" >&6 |
6566 | fi |
6567 | |
6568 | else |
6569 | MAGIC_CMD=: |
6570 | fi |
6571 | fi |
6572 | |
6573 | fi |
6574 | ;; |
6575 | esac |
6576 | |
6577 | enable_dlopen=yes |
6578 | enable_win32_dll=no |
6579 | |
6580 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
6581 | if test "${enable_libtool_lock+set}" = set; then |
6582 | enableval="$enable_libtool_lock" |
6583 | |
6584 | fi; |
6585 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
6586 | |
6587 | |
6588 | # Check whether --with-pic or --without-pic was given. |
6589 | if test "${with_pic+set}" = set; then |
6590 | withval="$with_pic" |
6591 | pic_mode="$withval" |
6592 | else |
6593 | pic_mode=default |
6594 | fi; |
6595 | test -z "$pic_mode" && pic_mode=default |
6596 | |
6597 | # Use C for the default configuration in the libtool script |
6598 | tagname= |
6599 | lt_save_CC="$CC" |
6600 | ac_ext=c |
6601 | ac_cpp='$CPP $CPPFLAGS' |
6602 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6603 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6604 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6605 | |
6606 | |
6607 | # Source file extension for C test sources. |
6608 | ac_ext=c |
6609 | |
6610 | # Object file extension for compiled C test sources. |
6611 | objext=o |
6612 | objext=$objext |
6613 | |
6614 | # Code to be used in simple compile tests |
6615 | lt_simple_compile_test_code="int some_variable = 0;\n" |
6616 | |
6617 | # Code to be used in simple link tests |
6618 | lt_simple_link_test_code='int main(){return(0);}\n' |
6619 | |
6620 | |
6621 | # If no C compiler was specified, use CC. |
6622 | LTCC=${LTCC-"$CC"} |
6623 | |
6624 | # If no C compiler flags were specified, use CFLAGS. |
6625 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
6626 | |
6627 | # Allow CC to be a program name with arguments. |
6628 | compiler=$CC |
6629 | |
6630 | |
6631 | # save warnings/boilerplate of simple test code |
6632 | ac_outfile=conftest.$ac_objext |
6633 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
6634 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
6635 | _lt_compiler_boilerplate=`cat conftest.err` |
6636 | $rm conftest* |
6637 | |
6638 | ac_outfile=conftest.$ac_objext |
6639 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
6640 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
6641 | _lt_linker_boilerplate=`cat conftest.err` |
6642 | $rm conftest* |
6643 | |
6644 | |
6645 | |
6646 | lt_prog_compiler_no_builtin_flag= |
6647 | |
6648 | if test "$GCC" = yes; then |
6649 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
6650 | |
6651 | |
6652 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
6653 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
6654 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
6655 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6656 | else |
6657 | lt_cv_prog_compiler_rtti_exceptions=no |
6658 | ac_outfile=conftest.$ac_objext |
6659 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
6660 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
6661 | # Insert the option either (1) after the last *FLAGS variable, or |
6662 | # (2) before a word containing "conftest.", or (3) at the end. |
6663 | # Note that $ac_compile itself does not contain backslashes and begins |
6664 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
6665 | # The option is referenced via a variable to avoid confusing sed. |
6666 | lt_compile=`echo "$ac_compile" | $SED \ |
6667 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
6668 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
6669 | -e 's:$: $lt_compiler_flag:'` |
6670 | (eval echo "\"\$as_me:6670: $lt_compile\"" >&5) |
6671 | (eval "$lt_compile" 2>conftest.err) |
6672 | ac_status=$? |
6673 | cat conftest.err >&5 |
6674 | echo "$as_me:6674: \$? = $ac_status" >&5 |
6675 | if (exit $ac_status) && test -s "$ac_outfile"; then |
6676 | # The compiler can only warn and ignore the option if not recognized |
6677 | # So say no if there are warnings other than the usual output. |
6678 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
6679 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
6680 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
6681 | lt_cv_prog_compiler_rtti_exceptions=yes |
6682 | fi |
6683 | fi |
6684 | $rm conftest* |
6685 | |
6686 | fi |
6687 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
6688 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
6689 | |
6690 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
6691 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
6692 | else |
6693 | : |
6694 | fi |
6695 | |
6696 | fi |
6697 | |
6698 | lt_prog_compiler_wl= |
6699 | lt_prog_compiler_pic= |
6700 | lt_prog_compiler_static= |
6701 | |
6702 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
6703 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
6704 | |
6705 | if test "$GCC" = yes; then |
6706 | lt_prog_compiler_wl='-Wl,' |
6707 | lt_prog_compiler_static='-static' |
6708 | |
6709 | case $host_os in |
6710 | aix*) |
6711 | # All AIX code is PIC. |
6712 | if test "$host_cpu" = ia64; then |
6713 | # AIX 5 now supports IA64 processor |
6714 | lt_prog_compiler_static='-Bstatic' |
6715 | fi |
6716 | ;; |
6717 | |
6718 | amigaos*) |
6719 | # FIXME: we need at least 68020 code to build shared libraries, but |
6720 | # adding the `-m68020' flag to GCC prevents building anything better, |
6721 | # like `-m68040'. |
6722 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
6723 | ;; |
6724 | |
6725 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
6726 | # PIC is the default for these OSes. |
6727 | ;; |
6728 | |
6729 | mingw* | pw32* | os2*) |
6730 | # This hack is so that the source file can tell whether it is being |
6731 | # built for inclusion in a dll (and should export symbols for example). |
6732 | lt_prog_compiler_pic='-DDLL_EXPORT' |
6733 | ;; |
6734 | |
6735 | darwin* | rhapsody*) |
6736 | # PIC is the default on this platform |
6737 | # Common symbols not allowed in MH_DYLIB files |
6738 | lt_prog_compiler_pic='-fno-common' |
6739 | ;; |
6740 | |
6741 | interix3*) |
6742 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
6743 | # Instead, we relocate shared libraries at runtime. |
6744 | ;; |
6745 | |
6746 | msdosdjgpp*) |
6747 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
6748 | # on systems that don't support them. |
6749 | lt_prog_compiler_can_build_shared=no |
6750 | enable_shared=no |
6751 | ;; |
6752 | |
6753 | sysv4*MP*) |
6754 | if test -d /usr/nec; then |
6755 | lt_prog_compiler_pic=-Kconform_pic |
6756 | fi |
6757 | ;; |
6758 | |
6759 | hpux*) |
6760 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
6761 | # not for PA HP-UX. |
6762 | case $host_cpu in |
6763 | hppa*64*|ia64*) |
6764 | # +Z the default |
6765 | ;; |
6766 | *) |
6767 | lt_prog_compiler_pic='-fPIC' |
6768 | ;; |
6769 | esac |
6770 | ;; |
6771 | |
6772 | *) |
6773 | lt_prog_compiler_pic='-fPIC' |
6774 | ;; |
6775 | esac |
6776 | else |
6777 | # PORTME Check for flag to pass linker flags through the system compiler. |
6778 | case $host_os in |
6779 | aix*) |
6780 | lt_prog_compiler_wl='-Wl,' |
6781 | if test "$host_cpu" = ia64; then |
6782 | # AIX 5 now supports IA64 processor |
6783 | lt_prog_compiler_static='-Bstatic' |
6784 | else |
6785 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
6786 | fi |
6787 | ;; |
6788 | darwin*) |
6789 | # PIC is the default on this platform |
6790 | # Common symbols not allowed in MH_DYLIB files |
6791 | case $cc_basename in |
6792 | xlc*) |
6793 | lt_prog_compiler_pic='-qnocommon' |
6794 | lt_prog_compiler_wl='-Wl,' |
6795 | ;; |
6796 | esac |
6797 | ;; |
6798 | |
6799 | mingw* | pw32* | os2*) |
6800 | # This hack is so that the source file can tell whether it is being |
6801 | # built for inclusion in a dll (and should export symbols for example). |
6802 | lt_prog_compiler_pic='-DDLL_EXPORT' |
6803 | ;; |
6804 | |
6805 | hpux9* | hpux10* | hpux11*) |
6806 | lt_prog_compiler_wl='-Wl,' |
6807 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
6808 | # not for PA HP-UX. |
6809 | case $host_cpu in |
6810 | hppa*64*|ia64*) |
6811 | # +Z the default |
6812 | ;; |
6813 | *) |
6814 | lt_prog_compiler_pic='+Z' |
6815 | ;; |
6816 | esac |
6817 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
6818 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
6819 | ;; |
6820 | |
6821 | irix5* | irix6* | nonstopux*) |
6822 | lt_prog_compiler_wl='-Wl,' |
6823 | # PIC (with -KPIC) is the default. |
6824 | lt_prog_compiler_static='-non_shared' |
6825 | ;; |
6826 | |
6827 | newsos6) |
6828 | lt_prog_compiler_pic='-KPIC' |
6829 | lt_prog_compiler_static='-Bstatic' |
6830 | ;; |
6831 | |
6832 | linux*) |
6833 | case $cc_basename in |
6834 | icc* | ecc*) |
6835 | lt_prog_compiler_wl='-Wl,' |
6836 | lt_prog_compiler_pic='-KPIC' |
6837 | lt_prog_compiler_static='-static' |
6838 | ;; |
6839 | pgcc* | pgf77* | pgf90* | pgf95*) |
6840 | # Portland Group compilers (*not* the Pentium gcc compiler, |
6841 | # which looks to be a dead project) |
6842 | lt_prog_compiler_wl='-Wl,' |
6843 | lt_prog_compiler_pic='-fpic' |
6844 | lt_prog_compiler_static='-Bstatic' |
6845 | ;; |
6846 | ccc*) |
6847 | lt_prog_compiler_wl='-Wl,' |
6848 | # All Alpha code is PIC. |
6849 | lt_prog_compiler_static='-non_shared' |
6850 | ;; |
6851 | esac |
6852 | ;; |
6853 | |
6854 | osf3* | osf4* | osf5*) |
6855 | lt_prog_compiler_wl='-Wl,' |
6856 | # All OSF/1 code is PIC. |
6857 | lt_prog_compiler_static='-non_shared' |
6858 | ;; |
6859 | |
6860 | solaris*) |
6861 | lt_prog_compiler_pic='-KPIC' |
6862 | lt_prog_compiler_static='-Bstatic' |
6863 | case $cc_basename in |
6864 | f77* | f90* | f95*) |
6865 | lt_prog_compiler_wl='-Qoption ld ';; |
6866 | *) |
6867 | lt_prog_compiler_wl='-Wl,';; |
6868 | esac |
6869 | ;; |
6870 | |
6871 | sunos4*) |
6872 | lt_prog_compiler_wl='-Qoption ld ' |
6873 | lt_prog_compiler_pic='-PIC' |
6874 | lt_prog_compiler_static='-Bstatic' |
6875 | ;; |
6876 | |
6877 | sysv4 | sysv4.2uw2* | sysv4.3*) |
6878 | lt_prog_compiler_wl='-Wl,' |
6879 | lt_prog_compiler_pic='-KPIC' |
6880 | lt_prog_compiler_static='-Bstatic' |
6881 | ;; |
6882 | |
6883 | sysv4*MP*) |
6884 | if test -d /usr/nec ;then |
6885 | lt_prog_compiler_pic='-Kconform_pic' |
6886 | lt_prog_compiler_static='-Bstatic' |
6887 | fi |
6888 | ;; |
6889 | |
6890 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
6891 | lt_prog_compiler_wl='-Wl,' |
6892 | lt_prog_compiler_pic='-KPIC' |
6893 | lt_prog_compiler_static='-Bstatic' |
6894 | ;; |
6895 | |
6896 | unicos*) |
6897 | lt_prog_compiler_wl='-Wl,' |
6898 | lt_prog_compiler_can_build_shared=no |
6899 | ;; |
6900 | |
6901 | uts4*) |
6902 | lt_prog_compiler_pic='-pic' |
6903 | lt_prog_compiler_static='-Bstatic' |
6904 | ;; |
6905 | |
6906 | *) |
6907 | lt_prog_compiler_can_build_shared=no |
6908 | ;; |
6909 | esac |
6910 | fi |
6911 | |
6912 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
6913 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
6914 | |
6915 | # |
6916 | # Check to make sure the PIC flag actually works. |
6917 | # |
6918 | if test -n "$lt_prog_compiler_pic"; then |
6919 | |
6920 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
6921 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
6922 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
6923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6924 | else |
6925 | lt_prog_compiler_pic_works=no |
6926 | ac_outfile=conftest.$ac_objext |
6927 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
6928 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
6929 | # Insert the option either (1) after the last *FLAGS variable, or |
6930 | # (2) before a word containing "conftest.", or (3) at the end. |
6931 | # Note that $ac_compile itself does not contain backslashes and begins |
6932 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
6933 | # The option is referenced via a variable to avoid confusing sed. |
6934 | lt_compile=`echo "$ac_compile" | $SED \ |
6935 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
6936 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
6937 | -e 's:$: $lt_compiler_flag:'` |
6938 | (eval echo "\"\$as_me:6938: $lt_compile\"" >&5) |
6939 | (eval "$lt_compile" 2>conftest.err) |
6940 | ac_status=$? |
6941 | cat conftest.err >&5 |
6942 | echo "$as_me:6942: \$? = $ac_status" >&5 |
6943 | if (exit $ac_status) && test -s "$ac_outfile"; then |
6944 | # The compiler can only warn and ignore the option if not recognized |
6945 | # So say no if there are warnings other than the usual output. |
6946 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
6947 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
6948 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
6949 | lt_prog_compiler_pic_works=yes |
6950 | fi |
6951 | fi |
6952 | $rm conftest* |
6953 | |
6954 | fi |
6955 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
6956 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
6957 | |
6958 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
6959 | case $lt_prog_compiler_pic in |
6960 | "" | " "*) ;; |
6961 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
6962 | esac |
6963 | else |
6964 | lt_prog_compiler_pic= |
6965 | lt_prog_compiler_can_build_shared=no |
6966 | fi |
6967 | |
6968 | fi |
6969 | case $host_os in |
6970 | # For platforms which do not support PIC, -DPIC is meaningless: |
6971 | *djgpp*) |
6972 | lt_prog_compiler_pic= |
6973 | ;; |
6974 | *) |
6975 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
6976 | ;; |
6977 | esac |
6978 | |
6979 | # |
6980 | # Check to make sure the static flag actually works. |
6981 | # |
6982 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
6983 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
6984 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
6985 | if test "${lt_prog_compiler_static_works+set}" = set; then |
6986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6987 | else |
6988 | lt_prog_compiler_static_works=no |
6989 | save_LDFLAGS="$LDFLAGS" |
6990 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
6991 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
6992 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
6993 | # The linker can only warn and ignore the option if not recognized |
6994 | # So say no if there are warnings |
6995 | if test -s conftest.err; then |
6996 | # Append any errors to the config.log. |
6997 | cat conftest.err 1>&5 |
6998 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
6999 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7000 | if diff conftest.exp conftest.er2 >/dev/null; then |
7001 | lt_prog_compiler_static_works=yes |
7002 | fi |
7003 | else |
7004 | lt_prog_compiler_static_works=yes |
7005 | fi |
7006 | fi |
7007 | $rm conftest* |
7008 | LDFLAGS="$save_LDFLAGS" |
7009 | |
7010 | fi |
7011 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
7012 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
7013 | |
7014 | if test x"$lt_prog_compiler_static_works" = xyes; then |
7015 | : |
7016 | else |
7017 | lt_prog_compiler_static= |
7018 | fi |
7019 | |
7020 | |
7021 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
7022 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
7023 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
7024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7025 | else |
7026 | lt_cv_prog_compiler_c_o=no |
7027 | $rm -r conftest 2>/dev/null |
7028 | mkdir conftest |
7029 | cd conftest |
7030 | mkdir out |
7031 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
7032 | |
7033 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
7034 | # Insert the option either (1) after the last *FLAGS variable, or |
7035 | # (2) before a word containing "conftest.", or (3) at the end. |
7036 | # Note that $ac_compile itself does not contain backslashes and begins |
7037 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
7038 | lt_compile=`echo "$ac_compile" | $SED \ |
7039 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7040 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7041 | -e 's:$: $lt_compiler_flag:'` |
7042 | (eval echo "\"\$as_me:7042: $lt_compile\"" >&5) |
7043 | (eval "$lt_compile" 2>out/conftest.err) |
7044 | ac_status=$? |
7045 | cat out/conftest.err >&5 |
7046 | echo "$as_me:7046: \$? = $ac_status" >&5 |
7047 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7048 | then |
7049 | # The compiler can only warn and ignore the option if not recognized |
7050 | # So say no if there are warnings |
7051 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
7052 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
7053 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
7054 | lt_cv_prog_compiler_c_o=yes |
7055 | fi |
7056 | fi |
7057 | chmod u+w . 2>&5 |
7058 | $rm conftest* |
7059 | # SGI C++ compiler will create directory out/ii_files/ for |
7060 | # template instantiation |
7061 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
7062 | $rm out/* && rmdir out |
7063 | cd .. |
7064 | rmdir conftest |
7065 | $rm conftest* |
7066 | |
7067 | fi |
7068 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
7069 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
7070 | |
7071 | |
7072 | hard_links="nottested" |
7073 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
7074 | # do not overwrite the value of need_locks provided by the user |
7075 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
7076 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
7077 | hard_links=yes |
7078 | $rm conftest* |
7079 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
7080 | touch conftest.a |
7081 | ln conftest.a conftest.b 2>&5 || hard_links=no |
7082 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
7083 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
7084 | echo "${ECHO_T}$hard_links" >&6 |
7085 | if test "$hard_links" = no; then |
7086 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
7087 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
7088 | need_locks=warn |
7089 | fi |
7090 | else |
7091 | need_locks=no |
7092 | fi |
7093 | |
7094 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
7095 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
7096 | |
7097 | runpath_var= |
7098 | allow_undefined_flag= |
7099 | enable_shared_with_static_runtimes=no |
7100 | archive_cmds= |
7101 | archive_expsym_cmds= |
7102 | old_archive_From_new_cmds= |
7103 | old_archive_from_expsyms_cmds= |
7104 | export_dynamic_flag_spec= |
7105 | whole_archive_flag_spec= |
7106 | thread_safe_flag_spec= |
7107 | hardcode_libdir_flag_spec= |
7108 | hardcode_libdir_flag_spec_ld= |
7109 | hardcode_libdir_separator= |
7110 | hardcode_direct=no |
7111 | hardcode_minus_L=no |
7112 | hardcode_shlibpath_var=unsupported |
7113 | link_all_deplibs=unknown |
7114 | hardcode_automatic=no |
7115 | module_cmds= |
7116 | module_expsym_cmds= |
7117 | always_export_symbols=no |
7118 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
7119 | # include_expsyms should be a list of space-separated symbols to be *always* |
7120 | # included in the symbol list |
7121 | include_expsyms= |
7122 | # exclude_expsyms can be an extended regexp of symbols to exclude |
7123 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
7124 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
7125 | # as well as any symbol that contains `d'. |
7126 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
7127 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
7128 | # platforms (ab)use it in PIC code, but their linkers get confused if |
7129 | # the symbol is explicitly referenced. Since portable code cannot |
7130 | # rely on this symbol name, it's probably fine to never include it in |
7131 | # preloaded symbol tables. |
7132 | extract_expsyms_cmds= |
7133 | # Just being paranoid about ensuring that cc_basename is set. |
7134 | for cc_temp in $compiler""; do |
7135 | case $cc_temp in |
7136 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
7137 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
7138 | \-*) ;; |
7139 | *) break;; |
7140 | esac |
7141 | done |
7142 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
7143 | |
7144 | case $host_os in |
7145 | cygwin* | mingw* | pw32*) |
7146 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
7147 | # When not using gcc, we currently assume that we are using |
7148 | # Microsoft Visual C++. |
7149 | if test "$GCC" != yes; then |
7150 | with_gnu_ld=no |
7151 | fi |
7152 | ;; |
7153 | interix*) |
7154 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
7155 | with_gnu_ld=yes |
7156 | ;; |
7157 | openbsd*) |
7158 | with_gnu_ld=no |
7159 | ;; |
7160 | esac |
7161 | |
7162 | ld_shlibs=yes |
7163 | if test "$with_gnu_ld" = yes; then |
7164 | # If archive_cmds runs LD, not CC, wlarc should be empty |
7165 | wlarc='${wl}' |
7166 | |
7167 | # Set some defaults for GNU ld with shared library support. These |
7168 | # are reset later if shared libraries are not supported. Putting them |
7169 | # here allows them to be overridden if necessary. |
7170 | runpath_var=LD_RUN_PATH |
7171 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
7172 | export_dynamic_flag_spec='${wl}--export-dynamic' |
7173 | # ancient GNU ld didn't support --whole-archive et. al. |
7174 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
7175 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
7176 | else |
7177 | whole_archive_flag_spec= |
7178 | fi |
7179 | supports_anon_versioning=no |
7180 | case `$LD -v 2>/dev/null` in |
7181 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
7182 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
7183 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
7184 | *\ 2.11.*) ;; # other 2.11 versions |
7185 | *) supports_anon_versioning=yes ;; |
7186 | esac |
7187 | |
7188 | # See if GNU ld supports shared libraries. |
7189 | case $host_os in |
7190 | aix3* | aix4* | aix5*) |
7191 | # On AIX/PPC, the GNU linker is very broken |
7192 | if test "$host_cpu" != ia64; then |
7193 | ld_shlibs=no |
7194 | cat <<EOF 1>&2 |
7195 | |
7196 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
7197 | *** to be unable to reliably create shared libraries on AIX. |
7198 | *** Therefore, libtool is disabling shared libraries support. If you |
7199 | *** really care for shared libraries, you may want to modify your PATH |
7200 | *** so that a non-GNU linker is found, and then restart. |
7201 | |
7202 | EOF |
7203 | fi |
7204 | ;; |
7205 | |
7206 | amigaos*) |
7207 | 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)' |
7208 | hardcode_libdir_flag_spec='-L$libdir' |
7209 | hardcode_minus_L=yes |
7210 | |
7211 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
7212 | # that the semantics of dynamic libraries on AmigaOS, at least up |
7213 | # to version 4, is to share data among multiple programs linked |
7214 | # with the same dynamic library. Since this doesn't match the |
7215 | # behavior of shared libraries on other platforms, we can't use |
7216 | # them. |
7217 | ld_shlibs=no |
7218 | ;; |
7219 | |
7220 | beos*) |
7221 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7222 | allow_undefined_flag=unsupported |
7223 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
7224 | # support --undefined. This deserves some investigation. FIXME |
7225 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7226 | else |
7227 | ld_shlibs=no |
7228 | fi |
7229 | ;; |
7230 | |
7231 | cygwin* | mingw* | pw32*) |
7232 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
7233 | # as there is no search path for DLLs. |
7234 | hardcode_libdir_flag_spec='-L$libdir' |
7235 | allow_undefined_flag=unsupported |
7236 | always_export_symbols=no |
7237 | enable_shared_with_static_runtimes=yes |
7238 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
7239 | |
7240 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
7241 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
7242 | # If the export-symbols file already is a .def file (1st line |
7243 | # is EXPORTS), use it as is; otherwise, prepend... |
7244 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
7245 | cp $export_symbols $output_objdir/$soname.def; |
7246 | else |
7247 | echo EXPORTS > $output_objdir/$soname.def; |
7248 | cat $export_symbols >> $output_objdir/$soname.def; |
7249 | fi~ |
7250 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
7251 | else |
7252 | ld_shlibs=no |
7253 | fi |
7254 | ;; |
7255 | |
7256 | interix3*) |
7257 | hardcode_direct=no |
7258 | hardcode_shlibpath_var=no |
7259 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
7260 | export_dynamic_flag_spec='${wl}-E' |
7261 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
7262 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
7263 | # default) and relocated if they conflict, which is a slow very memory |
7264 | # consuming and fragmenting process. To avoid this, we pick a random, |
7265 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
7266 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
7267 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
7268 | archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
7269 | ;; |
7270 | |
7271 | linux*) |
7272 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7273 | tmp_addflag= |
7274 | case $cc_basename,$host_cpu in |
7275 | pgcc*) # Portland Group C compiler |
7276 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
7277 | tmp_addflag=' $pic_flag' |
7278 | ;; |
7279 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
7280 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
7281 | tmp_addflag=' $pic_flag -Mnomain' ;; |
7282 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
7283 | tmp_addflag=' -i_dynamic' ;; |
7284 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
7285 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
7286 | ifc* | ifort*) # Intel Fortran compiler |
7287 | tmp_addflag=' -nofor_main' ;; |
7288 | esac |
7289 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7290 | |
7291 | if test $supports_anon_versioning = yes; then |
7292 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
7293 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
7294 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
7295 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
7296 | fi |
7297 | else |
7298 | ld_shlibs=no |
7299 | fi |
7300 | ;; |
7301 | |
7302 | netbsd*) |
7303 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
7304 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
7305 | wlarc= |
7306 | else |
7307 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7308 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7309 | fi |
7310 | ;; |
7311 | |
7312 | solaris*) |
7313 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
7314 | ld_shlibs=no |
7315 | cat <<EOF 1>&2 |
7316 | |
7317 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
7318 | *** create shared libraries on Solaris systems. Therefore, libtool |
7319 | *** is disabling shared libraries support. We urge you to upgrade GNU |
7320 | *** binutils to release 2.9.1 or newer. Another option is to modify |
7321 | *** your PATH or compiler configuration so that the native linker is |
7322 | *** used, and then restart. |
7323 | |
7324 | EOF |
7325 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7326 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7327 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7328 | else |
7329 | ld_shlibs=no |
7330 | fi |
7331 | ;; |
7332 | |
7333 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
7334 | case `$LD -v 2>&1` in |
7335 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
7336 | ld_shlibs=no |
7337 | cat <<_LT_EOF 1>&2 |
7338 | |
7339 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
7340 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
7341 | *** is disabling shared libraries support. We urge you to upgrade GNU |
7342 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
7343 | *** your PATH or compiler configuration so that the native linker is |
7344 | *** used, and then restart. |
7345 | |
7346 | _LT_EOF |
7347 | ;; |
7348 | *) |
7349 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7350 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
7351 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
7352 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
7353 | else |
7354 | ld_shlibs=no |
7355 | fi |
7356 | ;; |
7357 | esac |
7358 | ;; |
7359 | |
7360 | sunos4*) |
7361 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
7362 | wlarc= |
7363 | hardcode_direct=yes |
7364 | hardcode_shlibpath_var=no |
7365 | ;; |
7366 | |
7367 | *) |
7368 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7369 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7370 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7371 | else |
7372 | ld_shlibs=no |
7373 | fi |
7374 | ;; |
7375 | esac |
7376 | |
7377 | if test "$ld_shlibs" = no; then |
7378 | runpath_var= |
7379 | hardcode_libdir_flag_spec= |
7380 | export_dynamic_flag_spec= |
7381 | whole_archive_flag_spec= |
7382 | fi |
7383 | else |
7384 | # PORTME fill in a description of your system's linker (not GNU ld) |
7385 | case $host_os in |
7386 | aix3*) |
7387 | allow_undefined_flag=unsupported |
7388 | always_export_symbols=yes |
7389 | 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' |
7390 | # Note: this linker hardcodes the directories in LIBPATH if there |
7391 | # are no directories specified by -L. |
7392 | hardcode_minus_L=yes |
7393 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
7394 | # Neither direct hardcoding nor static linking is supported with a |
7395 | # broken collect2. |
7396 | hardcode_direct=unsupported |
7397 | fi |
7398 | ;; |
7399 | |
7400 | aix4* | aix5*) |
7401 | if test "$host_cpu" = ia64; then |
7402 | # On IA64, the linker does run time linking by default, so we don't |
7403 | # have to do anything special. |
7404 | aix_use_runtimelinking=no |
7405 | exp_sym_flag='-Bexport' |
7406 | no_entry_flag="" |
7407 | else |
7408 | # If we're using GNU nm, then we don't want the "-C" option. |
7409 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
7410 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
7411 | 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' |
7412 | else |
7413 | 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' |
7414 | fi |
7415 | aix_use_runtimelinking=no |
7416 | |
7417 | # Test if we are trying to use run time linking or normal |
7418 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
7419 | # need to do runtime linking. |
7420 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
7421 | for ld_flag in $LDFLAGS; do |
7422 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
7423 | aix_use_runtimelinking=yes |
7424 | break |
7425 | fi |
7426 | done |
7427 | ;; |
7428 | esac |
7429 | |
7430 | exp_sym_flag='-bexport' |
7431 | no_entry_flag='-bnoentry' |
7432 | fi |
7433 | |
7434 | # When large executables or shared objects are built, AIX ld can |
7435 | # have problems creating the table of contents. If linking a library |
7436 | # or program results in "error TOC overflow" add -mminimal-toc to |
7437 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
7438 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
7439 | |
7440 | archive_cmds='' |
7441 | hardcode_direct=yes |
7442 | hardcode_libdir_separator=':' |
7443 | link_all_deplibs=yes |
7444 | |
7445 | if test "$GCC" = yes; then |
7446 | case $host_os in aix4.[012]|aix4.[012].*) |
7447 | # We only want to do this on AIX 4.2 and lower, the check |
7448 | # below for broken collect2 doesn't work under 4.3+ |
7449 | collect2name=`${CC} -print-prog-name=collect2` |
7450 | if test -f "$collect2name" && \ |
7451 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
7452 | then |
7453 | # We have reworked collect2 |
7454 | hardcode_direct=yes |
7455 | else |
7456 | # We have old collect2 |
7457 | hardcode_direct=unsupported |
7458 | # It fails to find uninstalled libraries when the uninstalled |
7459 | # path is not listed in the libpath. Setting hardcode_minus_L |
7460 | # to unsupported forces relinking |
7461 | hardcode_minus_L=yes |
7462 | hardcode_libdir_flag_spec='-L$libdir' |
7463 | hardcode_libdir_separator= |
7464 | fi |
7465 | ;; |
7466 | esac |
7467 | shared_flag='-shared' |
7468 | if test "$aix_use_runtimelinking" = yes; then |
7469 | shared_flag="$shared_flag "'${wl}-G' |
7470 | fi |
7471 | else |
7472 | # not using gcc |
7473 | if test "$host_cpu" = ia64; then |
7474 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
7475 | # chokes on -Wl,-G. The following line is correct: |
7476 | shared_flag='-G' |
7477 | else |
7478 | if test "$aix_use_runtimelinking" = yes; then |
7479 | shared_flag='${wl}-G' |
7480 | else |
7481 | shared_flag='${wl}-bM:SRE' |
7482 | fi |
7483 | fi |
7484 | fi |
7485 | |
7486 | # It seems that -bexpall does not export symbols beginning with |
7487 | # underscore (_), so it is better to generate a list of symbols to export. |
7488 | always_export_symbols=yes |
7489 | if test "$aix_use_runtimelinking" = yes; then |
7490 | # Warning - without using the other runtime loading flags (-brtl), |
7491 | # -berok will link without error, but may produce a broken library. |
7492 | allow_undefined_flag='-berok' |
7493 | # Determine the default libpath from the value encoded in an empty executable. |
7494 | cat >conftest.$ac_ext <<_ACEOF |
7495 | /* confdefs.h. */ |
7496 | _ACEOF |
7497 | cat confdefs.h >>conftest.$ac_ext |
7498 | cat >>conftest.$ac_ext <<_ACEOF |
7499 | /* end confdefs.h. */ |
7500 | |
7501 | int |
7502 | main () |
7503 | { |
7504 | |
7505 | ; |
7506 | return 0; |
7507 | } |
7508 | _ACEOF |
7509 | rm -f conftest.$ac_objext conftest$ac_exeext |
7510 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7511 | (eval $ac_link) 2>conftest.er1 |
7512 | ac_status=$? |
7513 | grep -v '^ *+' conftest.er1 >conftest.err |
7514 | rm -f conftest.er1 |
7515 | cat conftest.err >&5 |
7516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7517 | (exit $ac_status); } && |
7518 | { ac_try='test -z "$ac_c_werror_flag" |
7519 | || test ! -s conftest.err' |
7520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7521 | (eval $ac_try) 2>&5 |
7522 | ac_status=$? |
7523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7524 | (exit $ac_status); }; } && |
7525 | { ac_try='test -s conftest$ac_exeext' |
7526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7527 | (eval $ac_try) 2>&5 |
7528 | ac_status=$? |
7529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7530 | (exit $ac_status); }; }; then |
7531 | |
7532 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
7533 | }'` |
7534 | # Check for a 64-bit object if we didn't find anything. |
7535 | 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; } |
7536 | }'`; fi |
7537 | else |
7538 | echo "$as_me: failed program was:" >&5 |
7539 | sed 's/^/| /' conftest.$ac_ext >&5 |
7540 | |
7541 | fi |
7542 | rm -f conftest.err conftest.$ac_objext \ |
7543 | conftest$ac_exeext conftest.$ac_ext |
7544 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
7545 | |
7546 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
7547 | archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
7548 | else |
7549 | if test "$host_cpu" = ia64; then |
7550 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
7551 | allow_undefined_flag="-z nodefs" |
7552 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
7553 | else |
7554 | # Determine the default libpath from the value encoded in an empty executable. |
7555 | cat >conftest.$ac_ext <<_ACEOF |
7556 | /* confdefs.h. */ |
7557 | _ACEOF |
7558 | cat confdefs.h >>conftest.$ac_ext |
7559 | cat >>conftest.$ac_ext <<_ACEOF |
7560 | /* end confdefs.h. */ |
7561 | |
7562 | int |
7563 | main () |
7564 | { |
7565 | |
7566 | ; |
7567 | return 0; |
7568 | } |
7569 | _ACEOF |
7570 | rm -f conftest.$ac_objext conftest$ac_exeext |
7571 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7572 | (eval $ac_link) 2>conftest.er1 |
7573 | ac_status=$? |
7574 | grep -v '^ *+' conftest.er1 >conftest.err |
7575 | rm -f conftest.er1 |
7576 | cat conftest.err >&5 |
7577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7578 | (exit $ac_status); } && |
7579 | { ac_try='test -z "$ac_c_werror_flag" |
7580 | || test ! -s conftest.err' |
7581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7582 | (eval $ac_try) 2>&5 |
7583 | ac_status=$? |
7584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7585 | (exit $ac_status); }; } && |
7586 | { ac_try='test -s conftest$ac_exeext' |
7587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7588 | (eval $ac_try) 2>&5 |
7589 | ac_status=$? |
7590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7591 | (exit $ac_status); }; }; then |
7592 | |
7593 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
7594 | }'` |
7595 | # Check for a 64-bit object if we didn't find anything. |
7596 | 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; } |
7597 | }'`; fi |
7598 | else |
7599 | echo "$as_me: failed program was:" >&5 |
7600 | sed 's/^/| /' conftest.$ac_ext >&5 |
7601 | |
7602 | fi |
7603 | rm -f conftest.err conftest.$ac_objext \ |
7604 | conftest$ac_exeext conftest.$ac_ext |
7605 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
7606 | |
7607 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
7608 | # Warning - without using the other run time loading flags, |
7609 | # -berok will link without error, but may produce a broken library. |
7610 | no_undefined_flag=' ${wl}-bernotok' |
7611 | allow_undefined_flag=' ${wl}-berok' |
7612 | # Exported symbols can be pulled into shared objects from archives |
7613 | whole_archive_flag_spec='$convenience' |
7614 | archive_cmds_need_lc=yes |
7615 | # This is similar to how AIX traditionally builds its shared libraries. |
7616 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
7617 | fi |
7618 | fi |
7619 | ;; |
7620 | |
7621 | amigaos*) |
7622 | 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)' |
7623 | hardcode_libdir_flag_spec='-L$libdir' |
7624 | hardcode_minus_L=yes |
7625 | # see comment about different semantics on the GNU ld section |
7626 | ld_shlibs=no |
7627 | ;; |
7628 | |
7629 | bsdi[45]*) |
7630 | export_dynamic_flag_spec=-rdynamic |
7631 | ;; |
7632 | |
7633 | cygwin* | mingw* | pw32*) |
7634 | # When not using gcc, we currently assume that we are using |
7635 | # Microsoft Visual C++. |
7636 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
7637 | # no search path for DLLs. |
7638 | hardcode_libdir_flag_spec=' ' |
7639 | allow_undefined_flag=unsupported |
7640 | # Tell ltmain to make .lib files, not .a files. |
7641 | libext=lib |
7642 | # Tell ltmain to make .dll files, not .so files. |
7643 | shrext_cmds=".dll" |
7644 | # FIXME: Setting linknames here is a bad hack. |
7645 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
7646 | # The linker will automatically build a .lib file if we build a DLL. |
7647 | old_archive_From_new_cmds='true' |
7648 | # FIXME: Should let the user specify the lib program. |
7649 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
7650 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
7651 | enable_shared_with_static_runtimes=yes |
7652 | ;; |
7653 | |
7654 | darwin* | rhapsody*) |
7655 | case $host_os in |
7656 | rhapsody* | darwin1.[012]) |
7657 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
7658 | ;; |
7659 | *) # Darwin 1.3 on |
7660 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
7661 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
7662 | else |
7663 | case ${MACOSX_DEPLOYMENT_TARGET} in |
7664 | 10.[012]) |
7665 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
7666 | ;; |
7667 | 10.*) |
7668 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
7669 | ;; |
7670 | esac |
7671 | fi |
7672 | ;; |
7673 | esac |
7674 | archive_cmds_need_lc=no |
7675 | hardcode_direct=no |
7676 | hardcode_automatic=yes |
7677 | hardcode_shlibpath_var=unsupported |
7678 | whole_archive_flag_spec='' |
7679 | link_all_deplibs=yes |
7680 | if test "$GCC" = yes ; then |
7681 | output_verbose_link_cmd='echo' |
7682 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
7683 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
7684 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
7685 | 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}' |
7686 | 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}' |
7687 | else |
7688 | case $cc_basename in |
7689 | xlc*) |
7690 | output_verbose_link_cmd='echo' |
7691 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
7692 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
7693 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
7694 | 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}' |
7695 | 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}' |
7696 | ;; |
7697 | *) |
7698 | ld_shlibs=no |
7699 | ;; |
7700 | esac |
7701 | fi |
7702 | ;; |
7703 | |
7704 | dgux*) |
7705 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7706 | hardcode_libdir_flag_spec='-L$libdir' |
7707 | hardcode_shlibpath_var=no |
7708 | ;; |
7709 | |
7710 | freebsd1*) |
7711 | ld_shlibs=no |
7712 | ;; |
7713 | |
7714 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
7715 | # support. Future versions do this automatically, but an explicit c++rt0.o |
7716 | # does not break anything, and helps significantly (at the cost of a little |
7717 | # extra space). |
7718 | freebsd2.2*) |
7719 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
7720 | hardcode_libdir_flag_spec='-R$libdir' |
7721 | hardcode_direct=yes |
7722 | hardcode_shlibpath_var=no |
7723 | ;; |
7724 | |
7725 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
7726 | freebsd2*) |
7727 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
7728 | hardcode_direct=yes |
7729 | hardcode_minus_L=yes |
7730 | hardcode_shlibpath_var=no |
7731 | ;; |
7732 | |
7733 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
7734 | freebsd* | kfreebsd*-gnu | dragonfly*) |
7735 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
7736 | hardcode_libdir_flag_spec='-R$libdir' |
7737 | hardcode_direct=yes |
7738 | hardcode_shlibpath_var=no |
7739 | ;; |
7740 | |
7741 | hpux9*) |
7742 | if test "$GCC" = yes; then |
7743 | 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' |
7744 | else |
7745 | 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' |
7746 | fi |
7747 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
7748 | hardcode_libdir_separator=: |
7749 | hardcode_direct=yes |
7750 | |
7751 | # hardcode_minus_L: Not really in the search PATH, |
7752 | # but as the default location of the library. |
7753 | hardcode_minus_L=yes |
7754 | export_dynamic_flag_spec='${wl}-E' |
7755 | ;; |
7756 | |
7757 | hpux10*) |
7758 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
7759 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
7760 | else |
7761 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
7762 | fi |
7763 | if test "$with_gnu_ld" = no; then |
7764 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
7765 | hardcode_libdir_separator=: |
7766 | |
7767 | hardcode_direct=yes |
7768 | export_dynamic_flag_spec='${wl}-E' |
7769 | |
7770 | # hardcode_minus_L: Not really in the search PATH, |
7771 | # but as the default location of the library. |
7772 | hardcode_minus_L=yes |
7773 | fi |
7774 | ;; |
7775 | |
7776 | hpux11*) |
7777 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
7778 | case $host_cpu in |
7779 | hppa*64*) |
7780 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7781 | ;; |
7782 | ia64*) |
7783 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
7784 | ;; |
7785 | *) |
7786 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
7787 | ;; |
7788 | esac |
7789 | else |
7790 | case $host_cpu in |
7791 | hppa*64*) |
7792 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7793 | ;; |
7794 | ia64*) |
7795 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
7796 | ;; |
7797 | *) |
7798 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
7799 | ;; |
7800 | esac |
7801 | fi |
7802 | if test "$with_gnu_ld" = no; then |
7803 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
7804 | hardcode_libdir_separator=: |
7805 | |
7806 | case $host_cpu in |
7807 | hppa*64*|ia64*) |
7808 | hardcode_libdir_flag_spec_ld='+b $libdir' |
7809 | hardcode_direct=no |
7810 | hardcode_shlibpath_var=no |
7811 | ;; |
7812 | *) |
7813 | hardcode_direct=yes |
7814 | export_dynamic_flag_spec='${wl}-E' |
7815 | |
7816 | # hardcode_minus_L: Not really in the search PATH, |
7817 | # but as the default location of the library. |
7818 | hardcode_minus_L=yes |
7819 | ;; |
7820 | esac |
7821 | fi |
7822 | ;; |
7823 | |
7824 | irix5* | irix6* | nonstopux*) |
7825 | if test "$GCC" = yes; then |
7826 | 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' |
7827 | else |
7828 | 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' |
7829 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
7830 | fi |
7831 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
7832 | hardcode_libdir_separator=: |
7833 | link_all_deplibs=yes |
7834 | ;; |
7835 | |
7836 | netbsd*) |
7837 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
7838 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
7839 | else |
7840 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
7841 | fi |
7842 | hardcode_libdir_flag_spec='-R$libdir' |
7843 | hardcode_direct=yes |
7844 | hardcode_shlibpath_var=no |
7845 | ;; |
7846 | |
7847 | newsos6) |
7848 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7849 | hardcode_direct=yes |
7850 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
7851 | hardcode_libdir_separator=: |
7852 | hardcode_shlibpath_var=no |
7853 | ;; |
7854 | |
7855 | openbsd*) |
7856 | hardcode_direct=yes |
7857 | hardcode_shlibpath_var=no |
7858 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
7859 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
7860 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
7861 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
7862 | export_dynamic_flag_spec='${wl}-E' |
7863 | else |
7864 | case $host_os in |
7865 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
7866 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
7867 | hardcode_libdir_flag_spec='-R$libdir' |
7868 | ;; |
7869 | *) |
7870 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
7871 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
7872 | ;; |
7873 | esac |
7874 | fi |
7875 | ;; |
7876 | |
7877 | os2*) |
7878 | hardcode_libdir_flag_spec='-L$libdir' |
7879 | hardcode_minus_L=yes |
7880 | allow_undefined_flag=unsupported |
7881 | 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' |
7882 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
7883 | ;; |
7884 | |
7885 | osf3*) |
7886 | if test "$GCC" = yes; then |
7887 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
7888 | 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' |
7889 | else |
7890 | allow_undefined_flag=' -expect_unresolved \*' |
7891 | 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' |
7892 | fi |
7893 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
7894 | hardcode_libdir_separator=: |
7895 | ;; |
7896 | |
7897 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
7898 | if test "$GCC" = yes; then |
7899 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
7900 | 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' |
7901 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
7902 | else |
7903 | allow_undefined_flag=' -expect_unresolved \*' |
7904 | 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' |
7905 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
7906 | $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' |
7907 | |
7908 | # Both c and cxx compiler support -rpath directly |
7909 | hardcode_libdir_flag_spec='-rpath $libdir' |
7910 | fi |
7911 | hardcode_libdir_separator=: |
7912 | ;; |
7913 | |
7914 | solaris*) |
7915 | no_undefined_flag=' -z text' |
7916 | if test "$GCC" = yes; then |
7917 | wlarc='${wl}' |
7918 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7919 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
7920 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
7921 | else |
7922 | wlarc='' |
7923 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7924 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
7925 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
7926 | fi |
7927 | hardcode_libdir_flag_spec='-R$libdir' |
7928 | hardcode_shlibpath_var=no |
7929 | case $host_os in |
7930 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
7931 | *) |
7932 | # The compiler driver will combine linker options so we |
7933 | # cannot just pass the convience library names through |
7934 | # without $wl, iff we do not link with $LD. |
7935 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
7936 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
7937 | case $wlarc in |
7938 | '') |
7939 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
7940 | *) |
7941 | 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' ;; |
7942 | esac ;; |
7943 | esac |
7944 | link_all_deplibs=yes |
7945 | ;; |
7946 | |
7947 | sunos4*) |
7948 | if test "x$host_vendor" = xsequent; then |
7949 | # Use $CC to link under sequent, because it throws in some extra .o |
7950 | # files that make .init and .fini sections work. |
7951 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
7952 | else |
7953 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
7954 | fi |
7955 | hardcode_libdir_flag_spec='-L$libdir' |
7956 | hardcode_direct=yes |
7957 | hardcode_minus_L=yes |
7958 | hardcode_shlibpath_var=no |
7959 | ;; |
7960 | |
7961 | sysv4) |
7962 | case $host_vendor in |
7963 | sni) |
7964 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7965 | hardcode_direct=yes # is this really true??? |
7966 | ;; |
7967 | siemens) |
7968 | ## LD is ld it makes a PLAMLIB |
7969 | ## CC just makes a GrossModule. |
7970 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
7971 | reload_cmds='$CC -r -o $output$reload_objs' |
7972 | hardcode_direct=no |
7973 | ;; |
7974 | motorola) |
7975 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7976 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
7977 | ;; |
7978 | esac |
7979 | runpath_var='LD_RUN_PATH' |
7980 | hardcode_shlibpath_var=no |
7981 | ;; |
7982 | |
7983 | sysv4.3*) |
7984 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7985 | hardcode_shlibpath_var=no |
7986 | export_dynamic_flag_spec='-Bexport' |
7987 | ;; |
7988 | |
7989 | sysv4*MP*) |
7990 | if test -d /usr/nec; then |
7991 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7992 | hardcode_shlibpath_var=no |
7993 | runpath_var=LD_RUN_PATH |
7994 | hardcode_runpath_var=yes |
7995 | ld_shlibs=yes |
7996 | fi |
7997 | ;; |
7998 | |
7999 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
8000 | no_undefined_flag='${wl}-z,text' |
8001 | archive_cmds_need_lc=no |
8002 | hardcode_shlibpath_var=no |
8003 | runpath_var='LD_RUN_PATH' |
8004 | |
8005 | if test "$GCC" = yes; then |
8006 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8007 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8008 | else |
8009 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8010 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8011 | fi |
8012 | ;; |
8013 | |
8014 | sysv5* | sco3.2v5* | sco5v6*) |
8015 | # Note: We can NOT use -z defs as we might desire, because we do not |
8016 | # link with -lc, and that would cause any symbols used from libc to |
8017 | # always be unresolved, which means just about no library would |
8018 | # ever link correctly. If we're not using GNU ld we use -z text |
8019 | # though, which does catch some bad symbols but isn't as heavy-handed |
8020 | # as -z defs. |
8021 | no_undefined_flag='${wl}-z,text' |
8022 | allow_undefined_flag='${wl}-z,nodefs' |
8023 | archive_cmds_need_lc=no |
8024 | hardcode_shlibpath_var=no |
8025 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
8026 | hardcode_libdir_separator=':' |
8027 | link_all_deplibs=yes |
8028 | export_dynamic_flag_spec='${wl}-Bexport' |
8029 | runpath_var='LD_RUN_PATH' |
8030 | |
8031 | if test "$GCC" = yes; then |
8032 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8033 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8034 | else |
8035 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8036 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8037 | fi |
8038 | ;; |
8039 | |
8040 | uts4*) |
8041 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8042 | hardcode_libdir_flag_spec='-L$libdir' |
8043 | hardcode_shlibpath_var=no |
8044 | ;; |
8045 | |
8046 | *) |
8047 | ld_shlibs=no |
8048 | ;; |
8049 | esac |
8050 | fi |
8051 | |
8052 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
8053 | echo "${ECHO_T}$ld_shlibs" >&6 |
8054 | test "$ld_shlibs" = no && can_build_shared=no |
8055 | |
8056 | # |
8057 | # Do we need to explicitly link libc? |
8058 | # |
8059 | case "x$archive_cmds_need_lc" in |
8060 | x|xyes) |
8061 | # Assume -lc should be added |
8062 | archive_cmds_need_lc=yes |
8063 | |
8064 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
8065 | case $archive_cmds in |
8066 | *'~'*) |
8067 | # FIXME: we may have to deal with multi-command sequences. |
8068 | ;; |
8069 | '$CC '*) |
8070 | # Test whether the compiler implicitly links with -lc since on some |
8071 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
8072 | # to ld, don't add -lc before -lgcc. |
8073 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
8074 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
8075 | $rm conftest* |
8076 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
8077 | |
8078 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8079 | (eval $ac_compile) 2>&5 |
8080 | ac_status=$? |
8081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8082 | (exit $ac_status); } 2>conftest.err; then |
8083 | soname=conftest |
8084 | lib=conftest |
8085 | libobjs=conftest.$ac_objext |
8086 | deplibs= |
8087 | wl=$lt_prog_compiler_wl |
8088 | pic_flag=$lt_prog_compiler_pic |
8089 | compiler_flags=-v |
8090 | linker_flags=-v |
8091 | verstring= |
8092 | output_objdir=. |
8093 | libname=conftest |
8094 | lt_save_allow_undefined_flag=$allow_undefined_flag |
8095 | allow_undefined_flag= |
8096 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
8097 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
8098 | ac_status=$? |
8099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8100 | (exit $ac_status); } |
8101 | then |
8102 | archive_cmds_need_lc=no |
8103 | else |
8104 | archive_cmds_need_lc=yes |
8105 | fi |
8106 | allow_undefined_flag=$lt_save_allow_undefined_flag |
8107 | else |
8108 | cat conftest.err 1>&5 |
8109 | fi |
8110 | $rm conftest* |
8111 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
8112 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 |
8113 | ;; |
8114 | esac |
8115 | fi |
8116 | ;; |
8117 | esac |
8118 | |
8119 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
8120 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
8121 | library_names_spec= |
8122 | libname_spec='lib$name' |
8123 | soname_spec= |
8124 | shrext_cmds=".so" |
8125 | postinstall_cmds= |
8126 | postuninstall_cmds= |
8127 | finish_cmds= |
8128 | finish_eval= |
8129 | shlibpath_var= |
8130 | shlibpath_overrides_runpath=unknown |
8131 | version_type=none |
8132 | dynamic_linker="$host_os ld.so" |
8133 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
8134 | if test "$GCC" = yes; then |
8135 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
8136 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
8137 | # if the path contains ";" then we assume it to be the separator |
8138 | # otherwise default to the standard path separator (i.e. ":") - it is |
8139 | # assumed that no part of a normal pathname contains ";" but that should |
8140 | # okay in the real world where ";" in dirpaths is itself problematic. |
8141 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
8142 | else |
8143 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
8144 | fi |
8145 | else |
8146 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
8147 | fi |
8148 | need_lib_prefix=unknown |
8149 | hardcode_into_libs=no |
8150 | |
8151 | # when you set need_version to no, make sure it does not cause -set_version |
8152 | # flags to be left without arguments |
8153 | need_version=unknown |
8154 | |
8155 | case $host_os in |
8156 | aix3*) |
8157 | version_type=linux |
8158 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
8159 | shlibpath_var=LIBPATH |
8160 | |
8161 | # AIX 3 has no versioning support, so we append a major version to the name. |
8162 | soname_spec='${libname}${release}${shared_ext}$major' |
8163 | ;; |
8164 | |
8165 | aix4* | aix5*) |
8166 | version_type=linux |
8167 | need_lib_prefix=no |
8168 | need_version=no |
8169 | hardcode_into_libs=yes |
8170 | if test "$host_cpu" = ia64; then |
8171 | # AIX 5 supports IA64 |
8172 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
8173 | shlibpath_var=LD_LIBRARY_PATH |
8174 | else |
8175 | # With GCC up to 2.95.x, collect2 would create an import file |
8176 | # for dependence libraries. The import file would start with |
8177 | # the line `#! .'. This would cause the generated library to |
8178 | # depend on `.', always an invalid library. This was fixed in |
8179 | # development snapshots of GCC prior to 3.0. |
8180 | case $host_os in |
8181 | aix4 | aix4.[01] | aix4.[01].*) |
8182 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
8183 | echo ' yes ' |
8184 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
8185 | : |
8186 | else |
8187 | can_build_shared=no |
8188 | fi |
8189 | ;; |
8190 | esac |
8191 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
8192 | # soname into executable. Probably we can add versioning support to |
8193 | # collect2, so additional links can be useful in future. |
8194 | if test "$aix_use_runtimelinking" = yes; then |
8195 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
8196 | # instead of lib<name>.a to let people know that these are not |
8197 | # typical AIX shared libraries. |
8198 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8199 | else |
8200 | # We preserve .a as extension for shared libraries through AIX4.2 |
8201 | # and later when we are not doing run time linking. |
8202 | library_names_spec='${libname}${release}.a $libname.a' |
8203 | soname_spec='${libname}${release}${shared_ext}$major' |
8204 | fi |
8205 | shlibpath_var=LIBPATH |
8206 | fi |
8207 | ;; |
8208 | |
8209 | amigaos*) |
8210 | library_names_spec='$libname.ixlibrary $libname.a' |
8211 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
8212 | 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' |
8213 | ;; |
8214 | |
8215 | beos*) |
8216 | library_names_spec='${libname}${shared_ext}' |
8217 | dynamic_linker="$host_os ld.so" |
8218 | shlibpath_var=LIBRARY_PATH |
8219 | ;; |
8220 | |
8221 | bsdi[45]*) |
8222 | version_type=linux |
8223 | need_version=no |
8224 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8225 | soname_spec='${libname}${release}${shared_ext}$major' |
8226 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
8227 | shlibpath_var=LD_LIBRARY_PATH |
8228 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
8229 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
8230 | # the default ld.so.conf also contains /usr/contrib/lib and |
8231 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
8232 | # libtool to hard-code these into programs |
8233 | ;; |
8234 | |
8235 | cygwin* | mingw* | pw32*) |
8236 | version_type=windows |
8237 | shrext_cmds=".dll" |
8238 | need_version=no |
8239 | need_lib_prefix=no |
8240 | |
8241 | case $GCC,$host_os in |
8242 | yes,cygwin* | yes,mingw* | yes,pw32*) |
8243 | library_names_spec='$libname.dll.a' |
8244 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
8245 | postinstall_cmds='base_file=`basename \${file}`~ |
8246 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
8247 | dldir=$destdir/`dirname \$dlpath`~ |
8248 | test -d \$dldir || mkdir -p \$dldir~ |
8249 | $install_prog $dir/$dlname \$dldir/$dlname~ |
8250 | chmod a+x \$dldir/$dlname' |
8251 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
8252 | dlpath=$dir/\$dldll~ |
8253 | $rm \$dlpath' |
8254 | shlibpath_overrides_runpath=yes |
8255 | |
8256 | case $host_os in |
8257 | cygwin*) |
8258 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
8259 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8260 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
8261 | ;; |
8262 | mingw*) |
8263 | # MinGW DLLs use traditional 'lib' prefix |
8264 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8265 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
8266 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
8267 | # It is most probably a Windows format PATH printed by |
8268 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
8269 | # path with ; separators, and with drive letters. We can handle the |
8270 | # drive letters (cygwin fileutils understands them), so leave them, |
8271 | # especially as we might pass files found there to a mingw objdump, |
8272 | # which wouldn't understand a cygwinified path. Ahh. |
8273 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
8274 | else |
8275 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
8276 | fi |
8277 | ;; |
8278 | pw32*) |
8279 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
8280 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8281 | ;; |
8282 | esac |
8283 | ;; |
8284 | |
8285 | *) |
8286 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
8287 | ;; |
8288 | esac |
8289 | dynamic_linker='Win32 ld.exe' |
8290 | # FIXME: first we should search . and the directory the executable is in |
8291 | shlibpath_var=PATH |
8292 | ;; |
8293 | |
8294 | darwin* | rhapsody*) |
8295 | dynamic_linker="$host_os dyld" |
8296 | version_type=darwin |
8297 | need_lib_prefix=no |
8298 | need_version=no |
8299 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
8300 | soname_spec='${libname}${release}${major}$shared_ext' |
8301 | shlibpath_overrides_runpath=yes |
8302 | shlibpath_var=DYLD_LIBRARY_PATH |
8303 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
8304 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
8305 | if test "$GCC" = yes; then |
8306 | 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"` |
8307 | else |
8308 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
8309 | fi |
8310 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
8311 | ;; |
8312 | |
8313 | dgux*) |
8314 | version_type=linux |
8315 | need_lib_prefix=no |
8316 | need_version=no |
8317 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
8318 | soname_spec='${libname}${release}${shared_ext}$major' |
8319 | shlibpath_var=LD_LIBRARY_PATH |
8320 | ;; |
8321 | |
8322 | freebsd1*) |
8323 | dynamic_linker=no |
8324 | ;; |
8325 | |
8326 | kfreebsd*-gnu) |
8327 | version_type=linux |
8328 | need_lib_prefix=no |
8329 | need_version=no |
8330 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
8331 | soname_spec='${libname}${release}${shared_ext}$major' |
8332 | shlibpath_var=LD_LIBRARY_PATH |
8333 | shlibpath_overrides_runpath=no |
8334 | hardcode_into_libs=yes |
8335 | dynamic_linker='GNU ld.so' |
8336 | ;; |
8337 | |
8338 | freebsd* | dragonfly*) |
8339 | # DragonFly does not have aout. When/if they implement a new |
8340 | # versioning mechanism, adjust this. |
8341 | if test -x /usr/bin/objformat; then |
8342 | objformat=`/usr/bin/objformat` |
8343 | else |
8344 | case $host_os in |
8345 | freebsd[123]*) objformat=aout ;; |
8346 | *) objformat=elf ;; |
8347 | esac |
8348 | fi |
8349 | version_type=freebsd-$objformat |
8350 | case $version_type in |
8351 | freebsd-elf*) |
8352 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
8353 | need_version=no |
8354 | need_lib_prefix=no |
8355 | ;; |
8356 | freebsd-*) |
8357 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
8358 | need_version=yes |
8359 | ;; |
8360 | esac |
8361 | shlibpath_var=LD_LIBRARY_PATH |
8362 | case $host_os in |
8363 | freebsd2*) |
8364 | shlibpath_overrides_runpath=yes |
8365 | ;; |
8366 | freebsd3.[01]* | freebsdelf3.[01]*) |
8367 | shlibpath_overrides_runpath=yes |
8368 | hardcode_into_libs=yes |
8369 | ;; |
8370 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
8371 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
8372 | shlibpath_overrides_runpath=no |
8373 | hardcode_into_libs=yes |
8374 | ;; |
8375 | freebsd*) # from 4.6 on |
8376 | shlibpath_overrides_runpath=yes |
8377 | hardcode_into_libs=yes |
8378 | ;; |
8379 | esac |
8380 | ;; |
8381 | |
8382 | gnu*) |
8383 | version_type=linux |
8384 | need_lib_prefix=no |
8385 | need_version=no |
8386 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
8387 | soname_spec='${libname}${release}${shared_ext}$major' |
8388 | shlibpath_var=LD_LIBRARY_PATH |
8389 | hardcode_into_libs=yes |
8390 | ;; |
8391 | |
8392 | hpux9* | hpux10* | hpux11*) |
8393 | # Give a soname corresponding to the major version so that dld.sl refuses to |
8394 | # link against other versions. |
8395 | version_type=sunos |
8396 | need_lib_prefix=no |
8397 | need_version=no |
8398 | case $host_cpu in |
8399 | ia64*) |
8400 | shrext_cmds='.so' |
8401 | hardcode_into_libs=yes |
8402 | dynamic_linker="$host_os dld.so" |
8403 | shlibpath_var=LD_LIBRARY_PATH |
8404 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
8405 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8406 | soname_spec='${libname}${release}${shared_ext}$major' |
8407 | if test "X$HPUX_IA64_MODE" = X32; then |
8408 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
8409 | else |
8410 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
8411 | fi |
8412 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
8413 | ;; |
8414 | hppa*64*) |
8415 | shrext_cmds='.sl' |
8416 | hardcode_into_libs=yes |
8417 | dynamic_linker="$host_os dld.sl" |
8418 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
8419 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
8420 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8421 | soname_spec='${libname}${release}${shared_ext}$major' |
8422 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
8423 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
8424 | ;; |
8425 | *) |
8426 | shrext_cmds='.sl' |
8427 | dynamic_linker="$host_os dld.sl" |
8428 | shlibpath_var=SHLIB_PATH |
8429 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
8430 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8431 | soname_spec='${libname}${release}${shared_ext}$major' |
8432 | ;; |
8433 | esac |
8434 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
8435 | postinstall_cmds='chmod 555 $lib' |
8436 | ;; |
8437 | |
8438 | interix3*) |
8439 | version_type=linux |
8440 | need_lib_prefix=no |
8441 | need_version=no |
8442 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
8443 | soname_spec='${libname}${release}${shared_ext}$major' |
8444 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
8445 | shlibpath_var=LD_LIBRARY_PATH |
8446 | shlibpath_overrides_runpath=no |
8447 | hardcode_into_libs=yes |
8448 | ;; |
8449 | |
8450 | irix5* | irix6* | nonstopux*) |
8451 | case $host_os in |
8452 | nonstopux*) version_type=nonstopux ;; |
8453 | *) |
8454 | if test "$lt_cv_prog_gnu_ld" = yes; then |
8455 | version_type=linux |
8456 | else |
8457 | version_type=irix |
8458 | fi ;; |
8459 | esac |
8460 | need_lib_prefix=no |
8461 | need_version=no |
8462 | soname_spec='${libname}${release}${shared_ext}$major' |
8463 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
8464 | case $host_os in |
8465 | irix5* | nonstopux*) |
8466 | libsuff= shlibsuff= |
8467 | ;; |
8468 | *) |
8469 | case $LD in # libtool.m4 will add one of these switches to LD |
8470 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
8471 | libsuff= shlibsuff= libmagic=32-bit;; |
8472 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
8473 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
8474 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
8475 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
8476 | *) libsuff= shlibsuff= libmagic=never-match;; |
8477 | esac |
8478 | ;; |
8479 | esac |
8480 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
8481 | shlibpath_overrides_runpath=no |
8482 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
8483 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
8484 | hardcode_into_libs=yes |
8485 | ;; |
8486 | |
8487 | # No shared lib support for Linux oldld, aout, or coff. |
8488 | linux*oldld* | linux*aout* | linux*coff*) |
8489 | dynamic_linker=no |
8490 | ;; |
8491 | |
8492 | # This must be Linux ELF. |
8493 | linux*) |
8494 | version_type=linux |
8495 | need_lib_prefix=no |
8496 | need_version=no |
8497 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8498 | soname_spec='${libname}${release}${shared_ext}$major' |
8499 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
8500 | shlibpath_var=LD_LIBRARY_PATH |
8501 | shlibpath_overrides_runpath=no |
8502 | # This implies no fast_install, which is unacceptable. |
8503 | # Some rework will be needed to allow for fast_install |
8504 | # before this can be enabled. |
8505 | hardcode_into_libs=yes |
8506 | |
8507 | # find out which ABI we are using |
8508 | libsuff= |
8509 | case "$host_cpu" in |
8510 | x86_64*|s390x*|powerpc64*) |
8511 | echo '#line 8511 "configure"' > conftest.$ac_ext |
8512 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8513 | (eval $ac_compile) 2>&5 |
8514 | ac_status=$? |
8515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8516 | (exit $ac_status); }; then |
8517 | case `/usr/bin/file conftest.$ac_objext` in |
8518 | *64-bit*) |
8519 | libsuff=64 |
8520 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
8521 | ;; |
8522 | esac |
8523 | fi |
8524 | rm -rf conftest* |
8525 | ;; |
8526 | esac |
8527 | |
8528 | # Append ld.so.conf contents to the search path |
8529 | if test -f /etc/ld.so.conf; then |
8530 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
8531 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
8532 | fi |
8533 | |
8534 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
8535 | # powerpc, because MkLinux only supported shared libraries with the |
8536 | # GNU dynamic linker. Since this was broken with cross compilers, |
8537 | # most powerpc-linux boxes support dynamic linking these days and |
8538 | # people can always --disable-shared, the test was removed, and we |
8539 | # assume the GNU/Linux dynamic linker is in use. |
8540 | dynamic_linker='GNU/Linux ld.so' |
8541 | ;; |
8542 | |
8543 | knetbsd*-gnu) |
8544 | version_type=linux |
8545 | need_lib_prefix=no |
8546 | need_version=no |
8547 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
8548 | soname_spec='${libname}${release}${shared_ext}$major' |
8549 | shlibpath_var=LD_LIBRARY_PATH |
8550 | shlibpath_overrides_runpath=no |
8551 | hardcode_into_libs=yes |
8552 | dynamic_linker='GNU ld.so' |
8553 | ;; |
8554 | |
8555 | netbsd*) |
8556 | version_type=sunos |
8557 | need_lib_prefix=no |
8558 | need_version=no |
8559 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
8560 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
8561 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
8562 | dynamic_linker='NetBSD (a.out) ld.so' |
8563 | else |
8564 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
8565 | soname_spec='${libname}${release}${shared_ext}$major' |
8566 | dynamic_linker='NetBSD ld.elf_so' |
8567 | fi |
8568 | shlibpath_var=LD_LIBRARY_PATH |
8569 | shlibpath_overrides_runpath=yes |
8570 | hardcode_into_libs=yes |
8571 | ;; |
8572 | |
8573 | newsos6) |
8574 | version_type=linux |
8575 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8576 | shlibpath_var=LD_LIBRARY_PATH |
8577 | shlibpath_overrides_runpath=yes |
8578 | ;; |
8579 | |
8580 | nto-qnx*) |
8581 | version_type=linux |
8582 | need_lib_prefix=no |
8583 | need_version=no |
8584 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8585 | soname_spec='${libname}${release}${shared_ext}$major' |
8586 | shlibpath_var=LD_LIBRARY_PATH |
8587 | shlibpath_overrides_runpath=yes |
8588 | ;; |
8589 | |
8590 | openbsd*) |
8591 | version_type=sunos |
8592 | sys_lib_dlsearch_path_spec="/usr/lib" |
8593 | need_lib_prefix=no |
8594 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
8595 | case $host_os in |
8596 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
8597 | *) need_version=no ;; |
8598 | esac |
8599 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
8600 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
8601 | shlibpath_var=LD_LIBRARY_PATH |
8602 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
8603 | case $host_os in |
8604 | openbsd2.[89] | openbsd2.[89].*) |
8605 | shlibpath_overrides_runpath=no |
8606 | ;; |
8607 | *) |
8608 | shlibpath_overrides_runpath=yes |
8609 | ;; |
8610 | esac |
8611 | else |
8612 | shlibpath_overrides_runpath=yes |
8613 | fi |
8614 | ;; |
8615 | |
8616 | os2*) |
8617 | libname_spec='$name' |
8618 | shrext_cmds=".dll" |
8619 | need_lib_prefix=no |
8620 | library_names_spec='$libname${shared_ext} $libname.a' |
8621 | dynamic_linker='OS/2 ld.exe' |
8622 | shlibpath_var=LIBPATH |
8623 | ;; |
8624 | |
8625 | osf3* | osf4* | osf5*) |
8626 | version_type=osf |
8627 | need_lib_prefix=no |
8628 | need_version=no |
8629 | soname_spec='${libname}${release}${shared_ext}$major' |
8630 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8631 | shlibpath_var=LD_LIBRARY_PATH |
8632 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
8633 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
8634 | ;; |
8635 | |
8636 | solaris*) |
8637 | version_type=linux |
8638 | need_lib_prefix=no |
8639 | need_version=no |
8640 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8641 | soname_spec='${libname}${release}${shared_ext}$major' |
8642 | shlibpath_var=LD_LIBRARY_PATH |
8643 | shlibpath_overrides_runpath=yes |
8644 | hardcode_into_libs=yes |
8645 | # ldd complains unless libraries are executable |
8646 | postinstall_cmds='chmod +x $lib' |
8647 | ;; |
8648 | |
8649 | sunos4*) |
8650 | version_type=sunos |
8651 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
8652 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
8653 | shlibpath_var=LD_LIBRARY_PATH |
8654 | shlibpath_overrides_runpath=yes |
8655 | if test "$with_gnu_ld" = yes; then |
8656 | need_lib_prefix=no |
8657 | fi |
8658 | need_version=yes |
8659 | ;; |
8660 | |
8661 | sysv4 | sysv4.3*) |
8662 | version_type=linux |
8663 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8664 | soname_spec='${libname}${release}${shared_ext}$major' |
8665 | shlibpath_var=LD_LIBRARY_PATH |
8666 | case $host_vendor in |
8667 | sni) |
8668 | shlibpath_overrides_runpath=no |
8669 | need_lib_prefix=no |
8670 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
8671 | runpath_var=LD_RUN_PATH |
8672 | ;; |
8673 | siemens) |
8674 | need_lib_prefix=no |
8675 | ;; |
8676 | motorola) |
8677 | need_lib_prefix=no |
8678 | need_version=no |
8679 | shlibpath_overrides_runpath=no |
8680 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
8681 | ;; |
8682 | esac |
8683 | ;; |
8684 | |
8685 | sysv4*MP*) |
8686 | if test -d /usr/nec ;then |
8687 | version_type=linux |
8688 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
8689 | soname_spec='$libname${shared_ext}.$major' |
8690 | shlibpath_var=LD_LIBRARY_PATH |
8691 | fi |
8692 | ;; |
8693 | |
8694 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
8695 | version_type=freebsd-elf |
8696 | need_lib_prefix=no |
8697 | need_version=no |
8698 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
8699 | soname_spec='${libname}${release}${shared_ext}$major' |
8700 | shlibpath_var=LD_LIBRARY_PATH |
8701 | hardcode_into_libs=yes |
8702 | if test "$with_gnu_ld" = yes; then |
8703 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
8704 | shlibpath_overrides_runpath=no |
8705 | else |
8706 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
8707 | shlibpath_overrides_runpath=yes |
8708 | case $host_os in |
8709 | sco3.2v5*) |
8710 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
8711 | ;; |
8712 | esac |
8713 | fi |
8714 | sys_lib_dlsearch_path_spec='/usr/lib' |
8715 | ;; |
8716 | |
8717 | uts4*) |
8718 | version_type=linux |
8719 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8720 | soname_spec='${libname}${release}${shared_ext}$major' |
8721 | shlibpath_var=LD_LIBRARY_PATH |
8722 | ;; |
8723 | |
8724 | *) |
8725 | dynamic_linker=no |
8726 | ;; |
8727 | esac |
8728 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
8729 | echo "${ECHO_T}$dynamic_linker" >&6 |
8730 | test "$dynamic_linker" = no && can_build_shared=no |
8731 | |
8732 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
8733 | if test "$GCC" = yes; then |
8734 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
8735 | fi |
8736 | |
8737 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
8738 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
8739 | hardcode_action= |
8740 | if test -n "$hardcode_libdir_flag_spec" || \ |
8741 | test -n "$runpath_var" || \ |
8742 | test "X$hardcode_automatic" = "Xyes" ; then |
8743 | |
8744 | # We can hardcode non-existant directories. |
8745 | if test "$hardcode_direct" != no && |
8746 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
8747 | # have to relink, otherwise we might link with an installed library |
8748 | # when we should be linking with a yet-to-be-installed one |
8749 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
8750 | test "$hardcode_minus_L" != no; then |
8751 | # Linking always hardcodes the temporary library directory. |
8752 | hardcode_action=relink |
8753 | else |
8754 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
8755 | hardcode_action=immediate |
8756 | fi |
8757 | else |
8758 | # We cannot hardcode anything, or else we can only hardcode existing |
8759 | # directories. |
8760 | hardcode_action=unsupported |
8761 | fi |
8762 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
8763 | echo "${ECHO_T}$hardcode_action" >&6 |
8764 | |
8765 | if test "$hardcode_action" = relink; then |
8766 | # Fast installation is not supported |
8767 | enable_fast_install=no |
8768 | elif test "$shlibpath_overrides_runpath" = yes || |
8769 | test "$enable_shared" = no; then |
8770 | # Fast installation is not necessary |
8771 | enable_fast_install=needless |
8772 | fi |
8773 | |
8774 | striplib= |
8775 | old_striplib= |
8776 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
8777 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
8778 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
8779 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
8780 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
8781 | echo "$as_me:$LINENO: result: yes" >&5 |
8782 | echo "${ECHO_T}yes" >&6 |
8783 | else |
8784 | # FIXME - insert some real tests, host_os isn't really good enough |
8785 | case $host_os in |
8786 | darwin*) |
8787 | if test -n "$STRIP" ; then |
8788 | striplib="$STRIP -x" |
8789 | echo "$as_me:$LINENO: result: yes" >&5 |
8790 | echo "${ECHO_T}yes" >&6 |
8791 | else |
8792 | echo "$as_me:$LINENO: result: no" >&5 |
8793 | echo "${ECHO_T}no" >&6 |
8794 | fi |
8795 | ;; |
8796 | *) |
8797 | echo "$as_me:$LINENO: result: no" >&5 |
8798 | echo "${ECHO_T}no" >&6 |
8799 | ;; |
8800 | esac |
8801 | fi |
8802 | |
8803 | if test "x$enable_dlopen" != xyes; then |
8804 | enable_dlopen=unknown |
8805 | enable_dlopen_self=unknown |
8806 | enable_dlopen_self_static=unknown |
8807 | else |
8808 | lt_cv_dlopen=no |
8809 | lt_cv_dlopen_libs= |
8810 | |
8811 | case $host_os in |
8812 | beos*) |
8813 | lt_cv_dlopen="load_add_on" |
8814 | lt_cv_dlopen_libs= |
8815 | lt_cv_dlopen_self=yes |
8816 | ;; |
8817 | |
8818 | mingw* | pw32*) |
8819 | lt_cv_dlopen="LoadLibrary" |
8820 | lt_cv_dlopen_libs= |
8821 | ;; |
8822 | |
8823 | cygwin*) |
8824 | lt_cv_dlopen="dlopen" |
8825 | lt_cv_dlopen_libs= |
8826 | ;; |
8827 | |
8828 | darwin*) |
8829 | # if libdl is installed we need to link against it |
8830 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
8831 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
8832 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
8833 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8834 | else |
8835 | ac_check_lib_save_LIBS=$LIBS |
8836 | LIBS="-ldl $LIBS" |
8837 | cat >conftest.$ac_ext <<_ACEOF |
8838 | /* confdefs.h. */ |
8839 | _ACEOF |
8840 | cat confdefs.h >>conftest.$ac_ext |
8841 | cat >>conftest.$ac_ext <<_ACEOF |
8842 | /* end confdefs.h. */ |
8843 | |
8844 | /* Override any gcc2 internal prototype to avoid an error. */ |
8845 | #ifdef __cplusplus |
8846 | extern "C" |
8847 | #endif |
8848 | /* We use char because int might match the return type of a gcc2 |
8849 | builtin and then its argument prototype would still apply. */ |
8850 | char dlopen (); |
8851 | int |
8852 | main () |
8853 | { |
8854 | dlopen (); |
8855 | ; |
8856 | return 0; |
8857 | } |
8858 | _ACEOF |
8859 | rm -f conftest.$ac_objext conftest$ac_exeext |
8860 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8861 | (eval $ac_link) 2>conftest.er1 |
8862 | ac_status=$? |
8863 | grep -v '^ *+' conftest.er1 >conftest.err |
8864 | rm -f conftest.er1 |
8865 | cat conftest.err >&5 |
8866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8867 | (exit $ac_status); } && |
8868 | { ac_try='test -z "$ac_c_werror_flag" |
8869 | || test ! -s conftest.err' |
8870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8871 | (eval $ac_try) 2>&5 |
8872 | ac_status=$? |
8873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8874 | (exit $ac_status); }; } && |
8875 | { ac_try='test -s conftest$ac_exeext' |
8876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8877 | (eval $ac_try) 2>&5 |
8878 | ac_status=$? |
8879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8880 | (exit $ac_status); }; }; then |
8881 | ac_cv_lib_dl_dlopen=yes |
8882 | else |
8883 | echo "$as_me: failed program was:" >&5 |
8884 | sed 's/^/| /' conftest.$ac_ext >&5 |
8885 | |
8886 | ac_cv_lib_dl_dlopen=no |
8887 | fi |
8888 | rm -f conftest.err conftest.$ac_objext \ |
8889 | conftest$ac_exeext conftest.$ac_ext |
8890 | LIBS=$ac_check_lib_save_LIBS |
8891 | fi |
8892 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
8893 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
8894 | if test $ac_cv_lib_dl_dlopen = yes; then |
8895 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
8896 | else |
8897 | |
8898 | lt_cv_dlopen="dyld" |
8899 | lt_cv_dlopen_libs= |
8900 | lt_cv_dlopen_self=yes |
8901 | |
8902 | fi |
8903 | |
8904 | ;; |
8905 | |
8906 | *) |
8907 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
8908 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
8909 | if test "${ac_cv_func_shl_load+set}" = set; then |
8910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8911 | else |
8912 | cat >conftest.$ac_ext <<_ACEOF |
8913 | /* confdefs.h. */ |
8914 | _ACEOF |
8915 | cat confdefs.h >>conftest.$ac_ext |
8916 | cat >>conftest.$ac_ext <<_ACEOF |
8917 | /* end confdefs.h. */ |
8918 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
8919 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
8920 | #define shl_load innocuous_shl_load |
8921 | |
8922 | /* System header to define __stub macros and hopefully few prototypes, |
8923 | which can conflict with char shl_load (); below. |
8924 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
8925 | <limits.h> exists even on freestanding compilers. */ |
8926 | |
8927 | #ifdef __STDC__ |
8928 | # include <limits.h> |
8929 | #else |
8930 | # include <assert.h> |
8931 | #endif |
8932 | |
8933 | #undef shl_load |
8934 | |
8935 | /* Override any gcc2 internal prototype to avoid an error. */ |
8936 | #ifdef __cplusplus |
8937 | extern "C" |
8938 | { |
8939 | #endif |
8940 | /* We use char because int might match the return type of a gcc2 |
8941 | builtin and then its argument prototype would still apply. */ |
8942 | char shl_load (); |
8943 | /* The GNU C library defines this for functions which it implements |
8944 | to always fail with ENOSYS. Some functions are actually named |
8945 | something starting with __ and the normal name is an alias. */ |
8946 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
8947 | choke me |
8948 | #else |
8949 | char (*f) () = shl_load; |
8950 | #endif |
8951 | #ifdef __cplusplus |
8952 | } |
8953 | #endif |
8954 | |
8955 | int |
8956 | main () |
8957 | { |
8958 | return f != shl_load; |
8959 | ; |
8960 | return 0; |
8961 | } |
8962 | _ACEOF |
8963 | rm -f conftest.$ac_objext conftest$ac_exeext |
8964 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8965 | (eval $ac_link) 2>conftest.er1 |
8966 | ac_status=$? |
8967 | grep -v '^ *+' conftest.er1 >conftest.err |
8968 | rm -f conftest.er1 |
8969 | cat conftest.err >&5 |
8970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8971 | (exit $ac_status); } && |
8972 | { ac_try='test -z "$ac_c_werror_flag" |
8973 | || test ! -s conftest.err' |
8974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8975 | (eval $ac_try) 2>&5 |
8976 | ac_status=$? |
8977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8978 | (exit $ac_status); }; } && |
8979 | { ac_try='test -s conftest$ac_exeext' |
8980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8981 | (eval $ac_try) 2>&5 |
8982 | ac_status=$? |
8983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8984 | (exit $ac_status); }; }; then |
8985 | ac_cv_func_shl_load=yes |
8986 | else |
8987 | echo "$as_me: failed program was:" >&5 |
8988 | sed 's/^/| /' conftest.$ac_ext >&5 |
8989 | |
8990 | ac_cv_func_shl_load=no |
8991 | fi |
8992 | rm -f conftest.err conftest.$ac_objext \ |
8993 | conftest$ac_exeext conftest.$ac_ext |
8994 | fi |
8995 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
8996 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
8997 | if test $ac_cv_func_shl_load = yes; then |
8998 | lt_cv_dlopen="shl_load" |
8999 | else |
9000 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
9001 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
9002 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
9003 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9004 | else |
9005 | ac_check_lib_save_LIBS=$LIBS |
9006 | LIBS="-ldld $LIBS" |
9007 | cat >conftest.$ac_ext <<_ACEOF |
9008 | /* confdefs.h. */ |
9009 | _ACEOF |
9010 | cat confdefs.h >>conftest.$ac_ext |
9011 | cat >>conftest.$ac_ext <<_ACEOF |
9012 | /* end confdefs.h. */ |
9013 | |
9014 | /* Override any gcc2 internal prototype to avoid an error. */ |
9015 | #ifdef __cplusplus |
9016 | extern "C" |
9017 | #endif |
9018 | /* We use char because int might match the return type of a gcc2 |
9019 | builtin and then its argument prototype would still apply. */ |
9020 | char shl_load (); |
9021 | int |
9022 | main () |
9023 | { |
9024 | shl_load (); |
9025 | ; |
9026 | return 0; |
9027 | } |
9028 | _ACEOF |
9029 | rm -f conftest.$ac_objext conftest$ac_exeext |
9030 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9031 | (eval $ac_link) 2>conftest.er1 |
9032 | ac_status=$? |
9033 | grep -v '^ *+' conftest.er1 >conftest.err |
9034 | rm -f conftest.er1 |
9035 | cat conftest.err >&5 |
9036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9037 | (exit $ac_status); } && |
9038 | { ac_try='test -z "$ac_c_werror_flag" |
9039 | || test ! -s conftest.err' |
9040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9041 | (eval $ac_try) 2>&5 |
9042 | ac_status=$? |
9043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9044 | (exit $ac_status); }; } && |
9045 | { ac_try='test -s conftest$ac_exeext' |
9046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9047 | (eval $ac_try) 2>&5 |
9048 | ac_status=$? |
9049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9050 | (exit $ac_status); }; }; then |
9051 | ac_cv_lib_dld_shl_load=yes |
9052 | else |
9053 | echo "$as_me: failed program was:" >&5 |
9054 | sed 's/^/| /' conftest.$ac_ext >&5 |
9055 | |
9056 | ac_cv_lib_dld_shl_load=no |
9057 | fi |
9058 | rm -f conftest.err conftest.$ac_objext \ |
9059 | conftest$ac_exeext conftest.$ac_ext |
9060 | LIBS=$ac_check_lib_save_LIBS |
9061 | fi |
9062 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
9063 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
9064 | if test $ac_cv_lib_dld_shl_load = yes; then |
9065 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
9066 | else |
9067 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
9068 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
9069 | if test "${ac_cv_func_dlopen+set}" = set; then |
9070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9071 | else |
9072 | cat >conftest.$ac_ext <<_ACEOF |
9073 | /* confdefs.h. */ |
9074 | _ACEOF |
9075 | cat confdefs.h >>conftest.$ac_ext |
9076 | cat >>conftest.$ac_ext <<_ACEOF |
9077 | /* end confdefs.h. */ |
9078 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
9079 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
9080 | #define dlopen innocuous_dlopen |
9081 | |
9082 | /* System header to define __stub macros and hopefully few prototypes, |
9083 | which can conflict with char dlopen (); below. |
9084 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9085 | <limits.h> exists even on freestanding compilers. */ |
9086 | |
9087 | #ifdef __STDC__ |
9088 | # include <limits.h> |
9089 | #else |
9090 | # include <assert.h> |
9091 | #endif |
9092 | |
9093 | #undef dlopen |
9094 | |
9095 | /* Override any gcc2 internal prototype to avoid an error. */ |
9096 | #ifdef __cplusplus |
9097 | extern "C" |
9098 | { |
9099 | #endif |
9100 | /* We use char because int might match the return type of a gcc2 |
9101 | builtin and then its argument prototype would still apply. */ |
9102 | char dlopen (); |
9103 | /* The GNU C library defines this for functions which it implements |
9104 | to always fail with ENOSYS. Some functions are actually named |
9105 | something starting with __ and the normal name is an alias. */ |
9106 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
9107 | choke me |
9108 | #else |
9109 | char (*f) () = dlopen; |
9110 | #endif |
9111 | #ifdef __cplusplus |
9112 | } |
9113 | #endif |
9114 | |
9115 | int |
9116 | main () |
9117 | { |
9118 | return f != dlopen; |
9119 | ; |
9120 | return 0; |
9121 | } |
9122 | _ACEOF |
9123 | rm -f conftest.$ac_objext conftest$ac_exeext |
9124 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9125 | (eval $ac_link) 2>conftest.er1 |
9126 | ac_status=$? |
9127 | grep -v '^ *+' conftest.er1 >conftest.err |
9128 | rm -f conftest.er1 |
9129 | cat conftest.err >&5 |
9130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9131 | (exit $ac_status); } && |
9132 | { ac_try='test -z "$ac_c_werror_flag" |
9133 | || test ! -s conftest.err' |
9134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9135 | (eval $ac_try) 2>&5 |
9136 | ac_status=$? |
9137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9138 | (exit $ac_status); }; } && |
9139 | { ac_try='test -s conftest$ac_exeext' |
9140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9141 | (eval $ac_try) 2>&5 |
9142 | ac_status=$? |
9143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9144 | (exit $ac_status); }; }; then |
9145 | ac_cv_func_dlopen=yes |
9146 | else |
9147 | echo "$as_me: failed program was:" >&5 |
9148 | sed 's/^/| /' conftest.$ac_ext >&5 |
9149 | |
9150 | ac_cv_func_dlopen=no |
9151 | fi |
9152 | rm -f conftest.err conftest.$ac_objext \ |
9153 | conftest$ac_exeext conftest.$ac_ext |
9154 | fi |
9155 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
9156 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
9157 | if test $ac_cv_func_dlopen = yes; then |
9158 | lt_cv_dlopen="dlopen" |
9159 | else |
9160 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
9161 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
9162 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
9163 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9164 | else |
9165 | ac_check_lib_save_LIBS=$LIBS |
9166 | LIBS="-ldl $LIBS" |
9167 | cat >conftest.$ac_ext <<_ACEOF |
9168 | /* confdefs.h. */ |
9169 | _ACEOF |
9170 | cat confdefs.h >>conftest.$ac_ext |
9171 | cat >>conftest.$ac_ext <<_ACEOF |
9172 | /* end confdefs.h. */ |
9173 | |
9174 | /* Override any gcc2 internal prototype to avoid an error. */ |
9175 | #ifdef __cplusplus |
9176 | extern "C" |
9177 | #endif |
9178 | /* We use char because int might match the return type of a gcc2 |
9179 | builtin and then its argument prototype would still apply. */ |
9180 | char dlopen (); |
9181 | int |
9182 | main () |
9183 | { |
9184 | dlopen (); |
9185 | ; |
9186 | return 0; |
9187 | } |
9188 | _ACEOF |
9189 | rm -f conftest.$ac_objext conftest$ac_exeext |
9190 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9191 | (eval $ac_link) 2>conftest.er1 |
9192 | ac_status=$? |
9193 | grep -v '^ *+' conftest.er1 >conftest.err |
9194 | rm -f conftest.er1 |
9195 | cat conftest.err >&5 |
9196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9197 | (exit $ac_status); } && |
9198 | { ac_try='test -z "$ac_c_werror_flag" |
9199 | || test ! -s conftest.err' |
9200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9201 | (eval $ac_try) 2>&5 |
9202 | ac_status=$? |
9203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9204 | (exit $ac_status); }; } && |
9205 | { ac_try='test -s conftest$ac_exeext' |
9206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9207 | (eval $ac_try) 2>&5 |
9208 | ac_status=$? |
9209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9210 | (exit $ac_status); }; }; then |
9211 | ac_cv_lib_dl_dlopen=yes |
9212 | else |
9213 | echo "$as_me: failed program was:" >&5 |
9214 | sed 's/^/| /' conftest.$ac_ext >&5 |
9215 | |
9216 | ac_cv_lib_dl_dlopen=no |
9217 | fi |
9218 | rm -f conftest.err conftest.$ac_objext \ |
9219 | conftest$ac_exeext conftest.$ac_ext |
9220 | LIBS=$ac_check_lib_save_LIBS |
9221 | fi |
9222 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
9223 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
9224 | if test $ac_cv_lib_dl_dlopen = yes; then |
9225 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
9226 | else |
9227 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
9228 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
9229 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
9230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9231 | else |
9232 | ac_check_lib_save_LIBS=$LIBS |
9233 | LIBS="-lsvld $LIBS" |
9234 | cat >conftest.$ac_ext <<_ACEOF |
9235 | /* confdefs.h. */ |
9236 | _ACEOF |
9237 | cat confdefs.h >>conftest.$ac_ext |
9238 | cat >>conftest.$ac_ext <<_ACEOF |
9239 | /* end confdefs.h. */ |
9240 | |
9241 | /* Override any gcc2 internal prototype to avoid an error. */ |
9242 | #ifdef __cplusplus |
9243 | extern "C" |
9244 | #endif |
9245 | /* We use char because int might match the return type of a gcc2 |
9246 | builtin and then its argument prototype would still apply. */ |
9247 | char dlopen (); |
9248 | int |
9249 | main () |
9250 | { |
9251 | dlopen (); |
9252 | ; |
9253 | return 0; |
9254 | } |
9255 | _ACEOF |
9256 | rm -f conftest.$ac_objext conftest$ac_exeext |
9257 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9258 | (eval $ac_link) 2>conftest.er1 |
9259 | ac_status=$? |
9260 | grep -v '^ *+' conftest.er1 >conftest.err |
9261 | rm -f conftest.er1 |
9262 | cat conftest.err >&5 |
9263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9264 | (exit $ac_status); } && |
9265 | { ac_try='test -z "$ac_c_werror_flag" |
9266 | || test ! -s conftest.err' |
9267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9268 | (eval $ac_try) 2>&5 |
9269 | ac_status=$? |
9270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9271 | (exit $ac_status); }; } && |
9272 | { ac_try='test -s conftest$ac_exeext' |
9273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9274 | (eval $ac_try) 2>&5 |
9275 | ac_status=$? |
9276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9277 | (exit $ac_status); }; }; then |
9278 | ac_cv_lib_svld_dlopen=yes |
9279 | else |
9280 | echo "$as_me: failed program was:" >&5 |
9281 | sed 's/^/| /' conftest.$ac_ext >&5 |
9282 | |
9283 | ac_cv_lib_svld_dlopen=no |
9284 | fi |
9285 | rm -f conftest.err conftest.$ac_objext \ |
9286 | conftest$ac_exeext conftest.$ac_ext |
9287 | LIBS=$ac_check_lib_save_LIBS |
9288 | fi |
9289 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
9290 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
9291 | if test $ac_cv_lib_svld_dlopen = yes; then |
9292 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
9293 | else |
9294 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
9295 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
9296 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
9297 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9298 | else |
9299 | ac_check_lib_save_LIBS=$LIBS |
9300 | LIBS="-ldld $LIBS" |
9301 | cat >conftest.$ac_ext <<_ACEOF |
9302 | /* confdefs.h. */ |
9303 | _ACEOF |
9304 | cat confdefs.h >>conftest.$ac_ext |
9305 | cat >>conftest.$ac_ext <<_ACEOF |
9306 | /* end confdefs.h. */ |
9307 | |
9308 | /* Override any gcc2 internal prototype to avoid an error. */ |
9309 | #ifdef __cplusplus |
9310 | extern "C" |
9311 | #endif |
9312 | /* We use char because int might match the return type of a gcc2 |
9313 | builtin and then its argument prototype would still apply. */ |
9314 | char dld_link (); |
9315 | int |
9316 | main () |
9317 | { |
9318 | dld_link (); |
9319 | ; |
9320 | return 0; |
9321 | } |
9322 | _ACEOF |
9323 | rm -f conftest.$ac_objext conftest$ac_exeext |
9324 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9325 | (eval $ac_link) 2>conftest.er1 |
9326 | ac_status=$? |
9327 | grep -v '^ *+' conftest.er1 >conftest.err |
9328 | rm -f conftest.er1 |
9329 | cat conftest.err >&5 |
9330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9331 | (exit $ac_status); } && |
9332 | { ac_try='test -z "$ac_c_werror_flag" |
9333 | || test ! -s conftest.err' |
9334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9335 | (eval $ac_try) 2>&5 |
9336 | ac_status=$? |
9337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9338 | (exit $ac_status); }; } && |
9339 | { ac_try='test -s conftest$ac_exeext' |
9340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9341 | (eval $ac_try) 2>&5 |
9342 | ac_status=$? |
9343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9344 | (exit $ac_status); }; }; then |
9345 | ac_cv_lib_dld_dld_link=yes |
9346 | else |
9347 | echo "$as_me: failed program was:" >&5 |
9348 | sed 's/^/| /' conftest.$ac_ext >&5 |
9349 | |
9350 | ac_cv_lib_dld_dld_link=no |
9351 | fi |
9352 | rm -f conftest.err conftest.$ac_objext \ |
9353 | conftest$ac_exeext conftest.$ac_ext |
9354 | LIBS=$ac_check_lib_save_LIBS |
9355 | fi |
9356 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
9357 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
9358 | if test $ac_cv_lib_dld_dld_link = yes; then |
9359 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
9360 | fi |
9361 | |
9362 | |
9363 | fi |
9364 | |
9365 | |
9366 | fi |
9367 | |
9368 | |
9369 | fi |
9370 | |
9371 | |
9372 | fi |
9373 | |
9374 | |
9375 | fi |
9376 | |
9377 | ;; |
9378 | esac |
9379 | |
9380 | if test "x$lt_cv_dlopen" != xno; then |
9381 | enable_dlopen=yes |
9382 | else |
9383 | enable_dlopen=no |
9384 | fi |
9385 | |
9386 | case $lt_cv_dlopen in |
9387 | dlopen) |
9388 | save_CPPFLAGS="$CPPFLAGS" |
9389 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
9390 | |
9391 | save_LDFLAGS="$LDFLAGS" |
9392 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
9393 | |
9394 | save_LIBS="$LIBS" |
9395 | LIBS="$lt_cv_dlopen_libs $LIBS" |
9396 | |
9397 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
9398 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
9399 | if test "${lt_cv_dlopen_self+set}" = set; then |
9400 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9401 | else |
9402 | if test "$cross_compiling" = yes; then : |
9403 | lt_cv_dlopen_self=cross |
9404 | else |
9405 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
9406 | lt_status=$lt_dlunknown |
9407 | cat > conftest.$ac_ext <<EOF |
9408 | #line 9408 "configure" |
9409 | #include "confdefs.h" |
9410 | |
9411 | #if HAVE_DLFCN_H |
9412 | #include <dlfcn.h> |
9413 | #endif |
9414 | |
9415 | #include <stdio.h> |
9416 | |
9417 | #ifdef RTLD_GLOBAL |
9418 | # define LT_DLGLOBAL RTLD_GLOBAL |
9419 | #else |
9420 | # ifdef DL_GLOBAL |
9421 | # define LT_DLGLOBAL DL_GLOBAL |
9422 | # else |
9423 | # define LT_DLGLOBAL 0 |
9424 | # endif |
9425 | #endif |
9426 | |
9427 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
9428 | find out it does not work in some platform. */ |
9429 | #ifndef LT_DLLAZY_OR_NOW |
9430 | # ifdef RTLD_LAZY |
9431 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
9432 | # else |
9433 | # ifdef DL_LAZY |
9434 | # define LT_DLLAZY_OR_NOW DL_LAZY |
9435 | # else |
9436 | # ifdef RTLD_NOW |
9437 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
9438 | # else |
9439 | # ifdef DL_NOW |
9440 | # define LT_DLLAZY_OR_NOW DL_NOW |
9441 | # else |
9442 | # define LT_DLLAZY_OR_NOW 0 |
9443 | # endif |
9444 | # endif |
9445 | # endif |
9446 | # endif |
9447 | #endif |
9448 | |
9449 | #ifdef __cplusplus |
9450 | extern "C" void exit (int); |
9451 | #endif |
9452 | |
9453 | void fnord() { int i=42;} |
9454 | int main () |
9455 | { |
9456 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
9457 | int status = $lt_dlunknown; |
9458 | |
9459 | if (self) |
9460 | { |
9461 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
9462 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
9463 | /* dlclose (self); */ |
9464 | } |
9465 | else |
9466 | puts (dlerror ()); |
9467 | |
9468 | exit (status); |
9469 | } |
9470 | EOF |
9471 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9472 | (eval $ac_link) 2>&5 |
9473 | ac_status=$? |
9474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9475 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
9476 | (./conftest; exit; ) >&5 2>/dev/null |
9477 | lt_status=$? |
9478 | case x$lt_status in |
9479 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
9480 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
9481 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
9482 | esac |
9483 | else : |
9484 | # compilation failed |
9485 | lt_cv_dlopen_self=no |
9486 | fi |
9487 | fi |
9488 | rm -fr conftest* |
9489 | |
9490 | |
9491 | fi |
9492 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
9493 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
9494 | |
9495 | if test "x$lt_cv_dlopen_self" = xyes; then |
9496 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
9497 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
9498 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
9499 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
9500 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9501 | else |
9502 | if test "$cross_compiling" = yes; then : |
9503 | lt_cv_dlopen_self_static=cross |
9504 | else |
9505 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
9506 | lt_status=$lt_dlunknown |
9507 | cat > conftest.$ac_ext <<EOF |
9508 | #line 9508 "configure" |
9509 | #include "confdefs.h" |
9510 | |
9511 | #if HAVE_DLFCN_H |
9512 | #include <dlfcn.h> |
9513 | #endif |
9514 | |
9515 | #include <stdio.h> |
9516 | |
9517 | #ifdef RTLD_GLOBAL |
9518 | # define LT_DLGLOBAL RTLD_GLOBAL |
9519 | #else |
9520 | # ifdef DL_GLOBAL |
9521 | # define LT_DLGLOBAL DL_GLOBAL |
9522 | # else |
9523 | # define LT_DLGLOBAL 0 |
9524 | # endif |
9525 | #endif |
9526 | |
9527 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
9528 | find out it does not work in some platform. */ |
9529 | #ifndef LT_DLLAZY_OR_NOW |
9530 | # ifdef RTLD_LAZY |
9531 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
9532 | # else |
9533 | # ifdef DL_LAZY |
9534 | # define LT_DLLAZY_OR_NOW DL_LAZY |
9535 | # else |
9536 | # ifdef RTLD_NOW |
9537 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
9538 | # else |
9539 | # ifdef DL_NOW |
9540 | # define LT_DLLAZY_OR_NOW DL_NOW |
9541 | # else |
9542 | # define LT_DLLAZY_OR_NOW 0 |
9543 | # endif |
9544 | # endif |
9545 | # endif |
9546 | # endif |
9547 | #endif |
9548 | |
9549 | #ifdef __cplusplus |
9550 | extern "C" void exit (int); |
9551 | #endif |
9552 | |
9553 | void fnord() { int i=42;} |
9554 | int main () |
9555 | { |
9556 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
9557 | int status = $lt_dlunknown; |
9558 | |
9559 | if (self) |
9560 | { |
9561 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
9562 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
9563 | /* dlclose (self); */ |
9564 | } |
9565 | else |
9566 | puts (dlerror ()); |
9567 | |
9568 | exit (status); |
9569 | } |
9570 | EOF |
9571 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9572 | (eval $ac_link) 2>&5 |
9573 | ac_status=$? |
9574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9575 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
9576 | (./conftest; exit; ) >&5 2>/dev/null |
9577 | lt_status=$? |
9578 | case x$lt_status in |
9579 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
9580 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
9581 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
9582 | esac |
9583 | else : |
9584 | # compilation failed |
9585 | lt_cv_dlopen_self_static=no |
9586 | fi |
9587 | fi |
9588 | rm -fr conftest* |
9589 | |
9590 | |
9591 | fi |
9592 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
9593 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
9594 | fi |
9595 | |
9596 | CPPFLAGS="$save_CPPFLAGS" |
9597 | LDFLAGS="$save_LDFLAGS" |
9598 | LIBS="$save_LIBS" |
9599 | ;; |
9600 | esac |
9601 | |
9602 | case $lt_cv_dlopen_self in |
9603 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
9604 | *) enable_dlopen_self=unknown ;; |
9605 | esac |
9606 | |
9607 | case $lt_cv_dlopen_self_static in |
9608 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
9609 | *) enable_dlopen_self_static=unknown ;; |
9610 | esac |
9611 | fi |
9612 | |
9613 | |
9614 | # Report which library types will actually be built |
9615 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
9616 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
9617 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
9618 | echo "${ECHO_T}$can_build_shared" >&6 |
9619 | |
9620 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
9621 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
9622 | test "$can_build_shared" = "no" && enable_shared=no |
9623 | |
9624 | # On AIX, shared libraries and static libraries use the same namespace, and |
9625 | # are all built from PIC. |
9626 | case $host_os in |
9627 | aix3*) |
9628 | test "$enable_shared" = yes && enable_static=no |
9629 | if test -n "$RANLIB"; then |
9630 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
9631 | postinstall_cmds='$RANLIB $lib' |
9632 | fi |
9633 | ;; |
9634 | |
9635 | aix4* | aix5*) |
9636 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
9637 | test "$enable_shared" = yes && enable_static=no |
9638 | fi |
9639 | ;; |
9640 | esac |
9641 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
9642 | echo "${ECHO_T}$enable_shared" >&6 |
9643 | |
9644 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
9645 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
9646 | # Make sure either enable_shared or enable_static is yes. |
9647 | test "$enable_shared" = yes || enable_static=yes |
9648 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
9649 | echo "${ECHO_T}$enable_static" >&6 |
9650 | |
9651 | # The else clause should only fire when bootstrapping the |
9652 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
9653 | # with your package, and you will get complaints that there are |
9654 | # no rules to generate ltmain.sh. |
9655 | if test -f "$ltmain"; then |
9656 | # See if we are running on zsh, and set the options which allow our commands through |
9657 | # without removal of \ escapes. |
9658 | if test -n "${ZSH_VERSION+set}" ; then |
9659 | setopt NO_GLOB_SUBST |
9660 | fi |
9661 | # Now quote all the things that may contain metacharacters while being |
9662 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
9663 | # variables and quote the copies for generation of the libtool script. |
9664 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
9665 | SED SHELL STRIP \ |
9666 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
9667 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
9668 | deplibs_check_method reload_flag reload_cmds need_locks \ |
9669 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
9670 | lt_cv_sys_global_symbol_to_c_name_address \ |
9671 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
9672 | old_postinstall_cmds old_postuninstall_cmds \ |
9673 | compiler \ |
9674 | CC \ |
9675 | LD \ |
9676 | lt_prog_compiler_wl \ |
9677 | lt_prog_compiler_pic \ |
9678 | lt_prog_compiler_static \ |
9679 | lt_prog_compiler_no_builtin_flag \ |
9680 | export_dynamic_flag_spec \ |
9681 | thread_safe_flag_spec \ |
9682 | whole_archive_flag_spec \ |
9683 | enable_shared_with_static_runtimes \ |
9684 | old_archive_cmds \ |
9685 | old_archive_from_new_cmds \ |
9686 | predep_objects \ |
9687 | postdep_objects \ |
9688 | predeps \ |
9689 | postdeps \ |
9690 | compiler_lib_search_path \ |
9691 | archive_cmds \ |
9692 | archive_expsym_cmds \ |
9693 | postinstall_cmds \ |
9694 | postuninstall_cmds \ |
9695 | old_archive_from_expsyms_cmds \ |
9696 | allow_undefined_flag \ |
9697 | no_undefined_flag \ |
9698 | export_symbols_cmds \ |
9699 | hardcode_libdir_flag_spec \ |
9700 | hardcode_libdir_flag_spec_ld \ |
9701 | hardcode_libdir_separator \ |
9702 | hardcode_automatic \ |
9703 | module_cmds \ |
9704 | module_expsym_cmds \ |
9705 | lt_cv_prog_compiler_c_o \ |
9706 | exclude_expsyms \ |
9707 | include_expsyms; do |
9708 | |
9709 | case $var in |
9710 | old_archive_cmds | \ |
9711 | old_archive_from_new_cmds | \ |
9712 | archive_cmds | \ |
9713 | archive_expsym_cmds | \ |
9714 | module_cmds | \ |
9715 | module_expsym_cmds | \ |
9716 | old_archive_from_expsyms_cmds | \ |
9717 | export_symbols_cmds | \ |
9718 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
9719 | postinstall_cmds | postuninstall_cmds | \ |
9720 | old_postinstall_cmds | old_postuninstall_cmds | \ |
9721 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
9722 | # Double-quote double-evaled strings. |
9723 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
9724 | ;; |
9725 | *) |
9726 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
9727 | ;; |
9728 | esac |
9729 | done |
9730 | |
9731 | case $lt_echo in |
9732 | *'\$0 --fallback-echo"') |
9733 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
9734 | ;; |
9735 | esac |
9736 | |
9737 | cfgfile="${ofile}T" |
9738 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
9739 | $rm -f "$cfgfile" |
9740 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
9741 | echo "$as_me: creating $ofile" >&6;} |
9742 | |
9743 | cat <<__EOF__ >> "$cfgfile" |
9744 | #! $SHELL |
9745 | |
9746 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
9747 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
9748 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
9749 | # |
9750 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
9751 | # Free Software Foundation, Inc. |
9752 | # |
9753 | # This file is part of GNU Libtool: |
9754 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
9755 | # |
9756 | # This program is free software; you can redistribute it and/or modify |
9757 | # it under the terms of the GNU General Public License as published by |
9758 | # the Free Software Foundation; either version 2 of the License, or |
9759 | # (at your option) any later version. |
9760 | # |
9761 | # This program is distributed in the hope that it will be useful, but |
9762 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
9763 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
9764 | # General Public License for more details. |
9765 | # |
9766 | # You should have received a copy of the GNU General Public License |
9767 | # along with this program; if not, write to the Free Software |
9768 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
9769 | # |
9770 | # As a special exception to the GNU General Public License, if you |
9771 | # distribute this file as part of a program that contains a |
9772 | # configuration script generated by Autoconf, you may include it under |
9773 | # the same distribution terms that you use for the rest of that program. |
9774 | |
9775 | # A sed program that does not truncate output. |
9776 | SED=$lt_SED |
9777 | |
9778 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
9779 | Xsed="$SED -e 1s/^X//" |
9780 | |
9781 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
9782 | # if CDPATH is set. |
9783 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
9784 | |
9785 | # The names of the tagged configurations supported by this script. |
9786 | available_tags= |
9787 | |
9788 | # ### BEGIN LIBTOOL CONFIG |
9789 | |
9790 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
9791 | |
9792 | # Shell to use when invoking shell scripts. |
9793 | SHELL=$lt_SHELL |
9794 | |
9795 | # Whether or not to build shared libraries. |
9796 | build_libtool_libs=$enable_shared |
9797 | |
9798 | # Whether or not to build static libraries. |
9799 | build_old_libs=$enable_static |
9800 | |
9801 | # Whether or not to add -lc for building shared libraries. |
9802 | build_libtool_need_lc=$archive_cmds_need_lc |
9803 | |
9804 | # Whether or not to disallow shared libs when runtime libs are static |
9805 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
9806 | |
9807 | # Whether or not to optimize for fast installation. |
9808 | fast_install=$enable_fast_install |
9809 | |
9810 | # The host system. |
9811 | host_alias=$host_alias |
9812 | host=$host |
9813 | host_os=$host_os |
9814 | |
9815 | # The build system. |
9816 | build_alias=$build_alias |
9817 | build=$build |
9818 | build_os=$build_os |
9819 | |
9820 | # An echo program that does not interpret backslashes. |
9821 | echo=$lt_echo |
9822 | |
9823 | # The archiver. |
9824 | AR=$lt_AR |
9825 | AR_FLAGS=$lt_AR_FLAGS |
9826 | |
9827 | # A C compiler. |
9828 | LTCC=$lt_LTCC |
9829 | |
9830 | # LTCC compiler flags. |
9831 | LTCFLAGS=$lt_LTCFLAGS |
9832 | |
9833 | # A language-specific compiler. |
9834 | CC=$lt_compiler |
9835 | |
9836 | # Is the compiler the GNU C compiler? |
9837 | with_gcc=$GCC |
9838 | |
9839 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` |
9840 | gcc_ver=\`gcc -dumpversion\` |
9841 | |
9842 | # An ERE matcher. |
9843 | EGREP=$lt_EGREP |
9844 | |
9845 | # The linker used to build libraries. |
9846 | LD=$lt_LD |
9847 | |
9848 | # Whether we need hard or soft links. |
9849 | LN_S=$lt_LN_S |
9850 | |
9851 | # A BSD-compatible nm program. |
9852 | NM=$lt_NM |
9853 | |
9854 | # A symbol stripping program |
9855 | STRIP=$lt_STRIP |
9856 | |
9857 | # Used to examine libraries when file_magic_cmd begins "file" |
9858 | MAGIC_CMD=$MAGIC_CMD |
9859 | |
9860 | # Used on cygwin: DLL creation program. |
9861 | DLLTOOL="$DLLTOOL" |
9862 | |
9863 | # Used on cygwin: object dumper. |
9864 | OBJDUMP="$OBJDUMP" |
9865 | |
9866 | # Used on cygwin: assembler. |
9867 | AS="$AS" |
9868 | |
9869 | # The name of the directory that contains temporary libtool files. |
9870 | objdir=$objdir |
9871 | |
9872 | # How to create reloadable object files. |
9873 | reload_flag=$lt_reload_flag |
9874 | reload_cmds=$lt_reload_cmds |
9875 | |
9876 | # How to pass a linker flag through the compiler. |
9877 | wl=$lt_lt_prog_compiler_wl |
9878 | |
9879 | # Object file suffix (normally "o"). |
9880 | objext="$ac_objext" |
9881 | |
9882 | # Old archive suffix (normally "a"). |
9883 | libext="$libext" |
9884 | |
9885 | # Shared library suffix (normally ".so"). |
9886 | shrext_cmds='$shrext_cmds' |
9887 | |
9888 | # Executable file suffix (normally ""). |
9889 | exeext="$exeext" |
9890 | |
9891 | # Additional compiler flags for building library objects. |
9892 | pic_flag=$lt_lt_prog_compiler_pic |
9893 | pic_mode=$pic_mode |
9894 | |
9895 | # What is the maximum length of a command? |
9896 | max_cmd_len=$lt_cv_sys_max_cmd_len |
9897 | |
9898 | # Does compiler simultaneously support -c and -o options? |
9899 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
9900 | |
9901 | # Must we lock files when doing compilation? |
9902 | need_locks=$lt_need_locks |
9903 | |
9904 | # Do we need the lib prefix for modules? |
9905 | need_lib_prefix=$need_lib_prefix |
9906 | |
9907 | # Do we need a version for libraries? |
9908 | need_version=$need_version |
9909 | |
9910 | # Whether dlopen is supported. |
9911 | dlopen_support=$enable_dlopen |
9912 | |
9913 | # Whether dlopen of programs is supported. |
9914 | dlopen_self=$enable_dlopen_self |
9915 | |
9916 | # Whether dlopen of statically linked programs is supported. |
9917 | dlopen_self_static=$enable_dlopen_self_static |
9918 | |
9919 | # Compiler flag to prevent dynamic linking. |
9920 | link_static_flag=$lt_lt_prog_compiler_static |
9921 | |
9922 | # Compiler flag to turn off builtin functions. |
9923 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
9924 | |
9925 | # Compiler flag to allow reflexive dlopens. |
9926 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
9927 | |
9928 | # Compiler flag to generate shared objects directly from archives. |
9929 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
9930 | |
9931 | # Compiler flag to generate thread-safe objects. |
9932 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
9933 | |
9934 | # Library versioning type. |
9935 | version_type=$version_type |
9936 | |
9937 | # Format of library name prefix. |
9938 | libname_spec=$lt_libname_spec |
9939 | |
9940 | # List of archive names. First name is the real one, the rest are links. |
9941 | # The last name is the one that the linker finds with -lNAME. |
9942 | library_names_spec=$lt_library_names_spec |
9943 | |
9944 | # The coded name of the library, if different from the real name. |
9945 | soname_spec=$lt_soname_spec |
9946 | |
9947 | # Commands used to build and install an old-style archive. |
9948 | RANLIB=$lt_RANLIB |
9949 | old_archive_cmds=$lt_old_archive_cmds |
9950 | old_postinstall_cmds=$lt_old_postinstall_cmds |
9951 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
9952 | |
9953 | # Create an old-style archive from a shared archive. |
9954 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
9955 | |
9956 | # Create a temporary old-style archive to link instead of a shared archive. |
9957 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
9958 | |
9959 | # Commands used to build and install a shared archive. |
9960 | archive_cmds=$lt_archive_cmds |
9961 | archive_expsym_cmds=$lt_archive_expsym_cmds |
9962 | postinstall_cmds=$lt_postinstall_cmds |
9963 | postuninstall_cmds=$lt_postuninstall_cmds |
9964 | |
9965 | # Commands used to build a loadable module (assumed same as above if empty) |
9966 | module_cmds=$lt_module_cmds |
9967 | module_expsym_cmds=$lt_module_expsym_cmds |
9968 | |
9969 | # Commands to strip libraries. |
9970 | old_striplib=$lt_old_striplib |
9971 | striplib=$lt_striplib |
9972 | |
9973 | # Dependencies to place before the objects being linked to create a |
9974 | # shared library. |
9975 | predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
9976 | |
9977 | # Dependencies to place after the objects being linked to create a |
9978 | # shared library. |
9979 | postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
9980 | |
9981 | # Dependencies to place before the objects being linked to create a |
9982 | # shared library. |
9983 | predeps=$lt_predeps |
9984 | |
9985 | # Dependencies to place after the objects being linked to create a |
9986 | # shared library. |
9987 | postdeps=$lt_postdeps |
9988 | |
9989 | # The library search path used internally by the compiler when linking |
9990 | # a shared library. |
9991 | compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
9992 | |
9993 | # Method to check whether dependent libraries are shared objects. |
9994 | deplibs_check_method=$lt_deplibs_check_method |
9995 | |
9996 | # Command to use when deplibs_check_method == file_magic. |
9997 | file_magic_cmd=$lt_file_magic_cmd |
9998 | |
9999 | # Flag that allows shared libraries with undefined symbols to be built. |
10000 | allow_undefined_flag=$lt_allow_undefined_flag |
10001 | |
10002 | # Flag that forces no undefined symbols. |
10003 | no_undefined_flag=$lt_no_undefined_flag |
10004 | |
10005 | # Commands used to finish a libtool library installation in a directory. |
10006 | finish_cmds=$lt_finish_cmds |
10007 | |
10008 | # Same as above, but a single script fragment to be evaled but not shown. |
10009 | finish_eval=$lt_finish_eval |
10010 | |
10011 | # Take the output of nm and produce a listing of raw symbols and C names. |
10012 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
10013 | |
10014 | # Transform the output of nm in a proper C declaration |
10015 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
10016 | |
10017 | # Transform the output of nm in a C name address pair |
10018 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
10019 | |
10020 | # This is the shared library runtime path variable. |
10021 | runpath_var=$runpath_var |
10022 | |
10023 | # This is the shared library path variable. |
10024 | shlibpath_var=$shlibpath_var |
10025 | |
10026 | # Is shlibpath searched before the hard-coded library search path? |
10027 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
10028 | |
10029 | # How to hardcode a shared library path into an executable. |
10030 | hardcode_action=$hardcode_action |
10031 | |
10032 | # Whether we should hardcode library paths into libraries. |
10033 | hardcode_into_libs=$hardcode_into_libs |
10034 | |
10035 | # Flag to hardcode \$libdir into a binary during linking. |
10036 | # This must work even if \$libdir does not exist. |
10037 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
10038 | |
10039 | # If ld is used when linking, flag to hardcode \$libdir into |
10040 | # a binary during linking. This must work even if \$libdir does |
10041 | # not exist. |
10042 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
10043 | |
10044 | # Whether we need a single -rpath flag with a separated argument. |
10045 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
10046 | |
10047 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
10048 | # resulting binary. |
10049 | hardcode_direct=$hardcode_direct |
10050 | |
10051 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
10052 | # resulting binary. |
10053 | hardcode_minus_L=$hardcode_minus_L |
10054 | |
10055 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
10056 | # the resulting binary. |
10057 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
10058 | |
10059 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
10060 | # and all subsequent libraries and executables linked against it. |
10061 | hardcode_automatic=$hardcode_automatic |
10062 | |
10063 | # Variables whose values should be saved in libtool wrapper scripts and |
10064 | # restored at relink time. |
10065 | variables_saved_for_relink="$variables_saved_for_relink" |
10066 | |
10067 | # Whether libtool must link a program against all its dependency libraries. |
10068 | link_all_deplibs=$link_all_deplibs |
10069 | |
10070 | # Compile-time system search path for libraries |
10071 | sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
10072 | |
10073 | # Run-time system search path for libraries |
10074 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
10075 | |
10076 | # Fix the shell variable \$srcfile for the compiler. |
10077 | fix_srcfile_path="$fix_srcfile_path" |
10078 | |
10079 | # Set to yes if exported symbols are required. |
10080 | always_export_symbols=$always_export_symbols |
10081 | |
10082 | # The commands to list exported symbols. |
10083 | export_symbols_cmds=$lt_export_symbols_cmds |
10084 | |
10085 | # The commands to extract the exported symbol list from a shared archive. |
10086 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
10087 | |
10088 | # Symbols that should not be listed in the preloaded symbols. |
10089 | exclude_expsyms=$lt_exclude_expsyms |
10090 | |
10091 | # Symbols that must always be exported. |
10092 | include_expsyms=$lt_include_expsyms |
10093 | |
10094 | # ### END LIBTOOL CONFIG |
10095 | |
10096 | __EOF__ |
10097 | |
10098 | |
10099 | case $host_os in |
10100 | aix3*) |
10101 | cat <<\EOF >> "$cfgfile" |
10102 | |
10103 | # AIX sometimes has problems with the GCC collect2 program. For some |
10104 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
10105 | # vanish in a puff of smoke. |
10106 | if test "X${COLLECT_NAMES+set}" != Xset; then |
10107 | COLLECT_NAMES= |
10108 | export COLLECT_NAMES |
10109 | fi |
10110 | EOF |
10111 | ;; |
10112 | esac |
10113 | |
10114 | # We use sed instead of cat because bash on DJGPP gets confused if |
10115 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
10116 | # text mode, it properly converts lines to CR/LF. This bash problem |
10117 | # is reportedly fixed, but why not run on old versions too? |
10118 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
10119 | |
10120 | mv -f "$cfgfile" "$ofile" || \ |
10121 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
10122 | chmod +x "$ofile" |
10123 | |
10124 | else |
10125 | # If there is no Makefile yet, we rely on a make rule to execute |
10126 | # `config.status --recheck' to rerun these tests and create the |
10127 | # libtool script then. |
10128 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
10129 | if test -f "$ltmain_in"; then |
10130 | test -f Makefile && make "$ltmain" |
10131 | fi |
10132 | fi |
10133 | |
10134 | |
10135 | ac_ext=c |
10136 | ac_cpp='$CPP $CPPFLAGS' |
10137 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10138 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10139 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
10140 | |
10141 | CC="$lt_save_CC" |
10142 | |
10143 | |
10144 | # Check whether --with-tags or --without-tags was given. |
10145 | if test "${with_tags+set}" = set; then |
10146 | withval="$with_tags" |
10147 | tagnames="$withval" |
10148 | fi; |
10149 | |
10150 | if test -f "$ltmain" && test -n "$tagnames"; then |
10151 | if test ! -f "${ofile}"; then |
10152 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
10153 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
10154 | fi |
10155 | |
10156 | if test -z "$LTCC"; then |
10157 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
10158 | if test -z "$LTCC"; then |
10159 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
10160 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
10161 | else |
10162 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
10163 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
10164 | fi |
10165 | fi |
10166 | if test -z "$LTCFLAGS"; then |
10167 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
10168 | fi |
10169 | |
10170 | # Extract list of available tagged configurations in $ofile. |
10171 | # Note that this assumes the entire list is on one line. |
10172 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
10173 | |
10174 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
10175 | for tagname in $tagnames; do |
10176 | IFS="$lt_save_ifs" |
10177 | # Check whether tagname contains only valid characters |
10178 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
10179 | "") ;; |
10180 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
10181 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
10182 | { (exit 1); exit 1; }; } |
10183 | ;; |
10184 | esac |
10185 | |
10186 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
10187 | then |
10188 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
10189 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
10190 | { (exit 1); exit 1; }; } |
10191 | fi |
10192 | |
10193 | # Update the list of available tags. |
10194 | if test -n "$tagname"; then |
10195 | echo appending configuration tag \"$tagname\" to $ofile |
10196 | |
10197 | case $tagname in |
10198 | CXX) |
10199 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
10200 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
10201 | (test "X$CXX" != "Xg++"))) ; then |
10202 | ac_ext=cc |
10203 | ac_cpp='$CXXCPP $CPPFLAGS' |
10204 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10205 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10206 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
10207 | |
10208 | |
10209 | |
10210 | |
10211 | archive_cmds_need_lc_CXX=no |
10212 | allow_undefined_flag_CXX= |
10213 | always_export_symbols_CXX=no |
10214 | archive_expsym_cmds_CXX= |
10215 | export_dynamic_flag_spec_CXX= |
10216 | hardcode_direct_CXX=no |
10217 | hardcode_libdir_flag_spec_CXX= |
10218 | hardcode_libdir_flag_spec_ld_CXX= |
10219 | hardcode_libdir_separator_CXX= |
10220 | hardcode_minus_L_CXX=no |
10221 | hardcode_shlibpath_var_CXX=unsupported |
10222 | hardcode_automatic_CXX=no |
10223 | module_cmds_CXX= |
10224 | module_expsym_cmds_CXX= |
10225 | link_all_deplibs_CXX=unknown |
10226 | old_archive_cmds_CXX=$old_archive_cmds |
10227 | no_undefined_flag_CXX= |
10228 | whole_archive_flag_spec_CXX= |
10229 | enable_shared_with_static_runtimes_CXX=no |
10230 | |
10231 | # Dependencies to place before and after the object being linked: |
10232 | predep_objects_CXX= |
10233 | postdep_objects_CXX= |
10234 | predeps_CXX= |
10235 | postdeps_CXX= |
10236 | compiler_lib_search_path_CXX= |
10237 | |
10238 | # Source file extension for C++ test sources. |
10239 | ac_ext=cpp |
10240 | |
10241 | # Object file extension for compiled C++ test sources. |
10242 | objext=o |
10243 | objext_CXX=$objext |
10244 | |
10245 | # Code to be used in simple compile tests |
10246 | lt_simple_compile_test_code="int some_variable = 0;\n" |
10247 | |
10248 | # Code to be used in simple link tests |
10249 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
10250 | |
10251 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
10252 | |
10253 | # If no C compiler was specified, use CC. |
10254 | LTCC=${LTCC-"$CC"} |
10255 | |
10256 | # If no C compiler flags were specified, use CFLAGS. |
10257 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
10258 | |
10259 | # Allow CC to be a program name with arguments. |
10260 | compiler=$CC |
10261 | |
10262 | |
10263 | # save warnings/boilerplate of simple test code |
10264 | ac_outfile=conftest.$ac_objext |
10265 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
10266 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
10267 | _lt_compiler_boilerplate=`cat conftest.err` |
10268 | $rm conftest* |
10269 | |
10270 | ac_outfile=conftest.$ac_objext |
10271 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
10272 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
10273 | _lt_linker_boilerplate=`cat conftest.err` |
10274 | $rm conftest* |
10275 | |
10276 | |
10277 | # Allow CC to be a program name with arguments. |
10278 | lt_save_CC=$CC |
10279 | lt_save_LD=$LD |
10280 | lt_save_GCC=$GCC |
10281 | GCC=$GXX |
10282 | lt_save_with_gnu_ld=$with_gnu_ld |
10283 | lt_save_path_LD=$lt_cv_path_LD |
10284 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
10285 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
10286 | else |
10287 | $as_unset lt_cv_prog_gnu_ld |
10288 | fi |
10289 | if test -n "${lt_cv_path_LDCXX+set}"; then |
10290 | lt_cv_path_LD=$lt_cv_path_LDCXX |
10291 | else |
10292 | $as_unset lt_cv_path_LD |
10293 | fi |
10294 | test -z "${LDCXX+set}" || LD=$LDCXX |
10295 | CC=${CXX-"c++"} |
10296 | compiler=$CC |
10297 | compiler_CXX=$CC |
10298 | for cc_temp in $compiler""; do |
10299 | case $cc_temp in |
10300 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
10301 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
10302 | \-*) ;; |
10303 | *) break;; |
10304 | esac |
10305 | done |
10306 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
10307 | |
10308 | |
10309 | # We don't want -fno-exception wen compiling C++ code, so set the |
10310 | # no_builtin_flag separately |
10311 | if test "$GXX" = yes; then |
10312 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
10313 | else |
10314 | lt_prog_compiler_no_builtin_flag_CXX= |
10315 | fi |
10316 | |
10317 | if test "$GXX" = yes; then |
10318 | # Set up default GNU C++ configuration |
10319 | |
10320 | |
10321 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
10322 | if test "${with_gnu_ld+set}" = set; then |
10323 | withval="$with_gnu_ld" |
10324 | test "$withval" = no || with_gnu_ld=yes |
10325 | else |
10326 | with_gnu_ld=no |
10327 | fi; |
10328 | ac_prog=ld |
10329 | if test "$GCC" = yes; then |
10330 | # Check if gcc -print-prog-name=ld gives a path. |
10331 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
10332 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
10333 | case $host in |
10334 | *-*-mingw*) |
10335 | # gcc leaves a trailing carriage return which upsets mingw |
10336 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
10337 | *) |
10338 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
10339 | esac |
10340 | case $ac_prog in |
10341 | # Accept absolute paths. |
10342 | [\\/]* | ?:[\\/]*) |
10343 | re_direlt='/[^/][^/]*/\.\./' |
10344 | # Canonicalize the pathname of ld |
10345 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
10346 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
10347 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
10348 | done |
10349 | test -z "$LD" && LD="$ac_prog" |
10350 | ;; |
10351 | "") |
10352 | # If it fails, then pretend we aren't using GCC. |
10353 | ac_prog=ld |
10354 | ;; |
10355 | *) |
10356 | # If it is relative, then search for the first ld in PATH. |
10357 | with_gnu_ld=unknown |
10358 | ;; |
10359 | esac |
10360 | elif test "$with_gnu_ld" = yes; then |
10361 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
10362 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
10363 | else |
10364 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
10365 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
10366 | fi |
10367 | if test "${lt_cv_path_LD+set}" = set; then |
10368 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10369 | else |
10370 | if test -z "$LD"; then |
10371 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
10372 | for ac_dir in $PATH; do |
10373 | IFS="$lt_save_ifs" |
10374 | test -z "$ac_dir" && ac_dir=. |
10375 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
10376 | lt_cv_path_LD="$ac_dir/$ac_prog" |
10377 | # Check to see if the program is GNU ld. I'd rather use --version, |
10378 | # but apparently some variants of GNU ld only accept -v. |
10379 | # Break only if it was the GNU/non-GNU ld that we prefer. |
10380 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
10381 | *GNU* | *'with BFD'*) |
10382 | test "$with_gnu_ld" != no && break |
10383 | ;; |
10384 | *) |
10385 | test "$with_gnu_ld" != yes && break |
10386 | ;; |
10387 | esac |
10388 | fi |
10389 | done |
10390 | IFS="$lt_save_ifs" |
10391 | else |
10392 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
10393 | fi |
10394 | fi |
10395 | |
10396 | LD="$lt_cv_path_LD" |
10397 | if test -n "$LD"; then |
10398 | echo "$as_me:$LINENO: result: $LD" >&5 |
10399 | echo "${ECHO_T}$LD" >&6 |
10400 | else |
10401 | echo "$as_me:$LINENO: result: no" >&5 |
10402 | echo "${ECHO_T}no" >&6 |
10403 | fi |
10404 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
10405 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
10406 | { (exit 1); exit 1; }; } |
10407 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
10408 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
10409 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
10410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10411 | else |
10412 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
10413 | case `$LD -v 2>&1 </dev/null` in |
10414 | *GNU* | *'with BFD'*) |
10415 | lt_cv_prog_gnu_ld=yes |
10416 | ;; |
10417 | *) |
10418 | lt_cv_prog_gnu_ld=no |
10419 | ;; |
10420 | esac |
10421 | fi |
10422 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
10423 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
10424 | with_gnu_ld=$lt_cv_prog_gnu_ld |
10425 | |
10426 | |
10427 | |
10428 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
10429 | # archiving commands below assume that GNU ld is being used. |
10430 | if test "$with_gnu_ld" = yes; then |
10431 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10432 | 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' |
10433 | |
10434 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
10435 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
10436 | |
10437 | # If archive_cmds runs LD, not CC, wlarc should be empty |
10438 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
10439 | # investigate it a little bit more. (MM) |
10440 | wlarc='${wl}' |
10441 | |
10442 | # ancient GNU ld didn't support --whole-archive et. al. |
10443 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
10444 | grep 'no-whole-archive' > /dev/null; then |
10445 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
10446 | else |
10447 | whole_archive_flag_spec_CXX= |
10448 | fi |
10449 | else |
10450 | with_gnu_ld=no |
10451 | wlarc= |
10452 | |
10453 | # A generic and very simple default shared library creation |
10454 | # command for GNU C++ for the case where it uses the native |
10455 | # linker, instead of GNU ld. If possible, this setting should |
10456 | # overridden to take advantage of the native linker features on |
10457 | # the platform it is being used on. |
10458 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
10459 | fi |
10460 | |
10461 | # Commands to make compiler produce verbose output that lists |
10462 | # what "hidden" libraries, object files and flags are used when |
10463 | # linking a shared library. |
10464 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
10465 | |
10466 | else |
10467 | GXX=no |
10468 | with_gnu_ld=no |
10469 | wlarc= |
10470 | fi |
10471 | |
10472 | # PORTME: fill in a description of your system's C++ link characteristics |
10473 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
10474 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
10475 | ld_shlibs_CXX=yes |
10476 | case $host_os in |
10477 | aix3*) |
10478 | # FIXME: insert proper C++ library support |
10479 | ld_shlibs_CXX=no |
10480 | ;; |
10481 | aix4* | aix5*) |
10482 | if test "$host_cpu" = ia64; then |
10483 | # On IA64, the linker does run time linking by default, so we don't |
10484 | # have to do anything special. |
10485 | aix_use_runtimelinking=no |
10486 | exp_sym_flag='-Bexport' |
10487 | no_entry_flag="" |
10488 | else |
10489 | aix_use_runtimelinking=no |
10490 | |
10491 | # Test if we are trying to use run time linking or normal |
10492 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
10493 | # need to do runtime linking. |
10494 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
10495 | for ld_flag in $LDFLAGS; do |
10496 | case $ld_flag in |
10497 | *-brtl*) |
10498 | aix_use_runtimelinking=yes |
10499 | break |
10500 | ;; |
10501 | esac |
10502 | done |
10503 | ;; |
10504 | esac |
10505 | |
10506 | exp_sym_flag='-bexport' |
10507 | no_entry_flag='-bnoentry' |
10508 | fi |
10509 | |
10510 | # When large executables or shared objects are built, AIX ld can |
10511 | # have problems creating the table of contents. If linking a library |
10512 | # or program results in "error TOC overflow" add -mminimal-toc to |
10513 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
10514 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
10515 | |
10516 | archive_cmds_CXX='' |
10517 | hardcode_direct_CXX=yes |
10518 | hardcode_libdir_separator_CXX=':' |
10519 | link_all_deplibs_CXX=yes |
10520 | |
10521 | if test "$GXX" = yes; then |
10522 | case $host_os in aix4.[012]|aix4.[012].*) |
10523 | # We only want to do this on AIX 4.2 and lower, the check |
10524 | # below for broken collect2 doesn't work under 4.3+ |
10525 | collect2name=`${CC} -print-prog-name=collect2` |
10526 | if test -f "$collect2name" && \ |
10527 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
10528 | then |
10529 | # We have reworked collect2 |
10530 | hardcode_direct_CXX=yes |
10531 | else |
10532 | # We have old collect2 |
10533 | hardcode_direct_CXX=unsupported |
10534 | # It fails to find uninstalled libraries when the uninstalled |
10535 | # path is not listed in the libpath. Setting hardcode_minus_L |
10536 | # to unsupported forces relinking |
10537 | hardcode_minus_L_CXX=yes |
10538 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
10539 | hardcode_libdir_separator_CXX= |
10540 | fi |
10541 | ;; |
10542 | esac |
10543 | shared_flag='-shared' |
10544 | if test "$aix_use_runtimelinking" = yes; then |
10545 | shared_flag="$shared_flag "'${wl}-G' |
10546 | fi |
10547 | else |
10548 | # not using gcc |
10549 | if test "$host_cpu" = ia64; then |
10550 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
10551 | # chokes on -Wl,-G. The following line is correct: |
10552 | shared_flag='-G' |
10553 | else |
10554 | if test "$aix_use_runtimelinking" = yes; then |
10555 | shared_flag='${wl}-G' |
10556 | else |
10557 | shared_flag='${wl}-bM:SRE' |
10558 | fi |
10559 | fi |
10560 | fi |
10561 | |
10562 | # It seems that -bexpall does not export symbols beginning with |
10563 | # underscore (_), so it is better to generate a list of symbols to export. |
10564 | always_export_symbols_CXX=yes |
10565 | if test "$aix_use_runtimelinking" = yes; then |
10566 | # Warning - without using the other runtime loading flags (-brtl), |
10567 | # -berok will link without error, but may produce a broken library. |
10568 | allow_undefined_flag_CXX='-berok' |
10569 | # Determine the default libpath from the value encoded in an empty executable. |
10570 | cat >conftest.$ac_ext <<_ACEOF |
10571 | /* confdefs.h. */ |
10572 | _ACEOF |
10573 | cat confdefs.h >>conftest.$ac_ext |
10574 | cat >>conftest.$ac_ext <<_ACEOF |
10575 | /* end confdefs.h. */ |
10576 | |
10577 | int |
10578 | main () |
10579 | { |
10580 | |
10581 | ; |
10582 | return 0; |
10583 | } |
10584 | _ACEOF |
10585 | rm -f conftest.$ac_objext conftest$ac_exeext |
10586 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10587 | (eval $ac_link) 2>conftest.er1 |
10588 | ac_status=$? |
10589 | grep -v '^ *+' conftest.er1 >conftest.err |
10590 | rm -f conftest.er1 |
10591 | cat conftest.err >&5 |
10592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10593 | (exit $ac_status); } && |
10594 | { ac_try='test -z "$ac_cxx_werror_flag" |
10595 | || test ! -s conftest.err' |
10596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10597 | (eval $ac_try) 2>&5 |
10598 | ac_status=$? |
10599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10600 | (exit $ac_status); }; } && |
10601 | { ac_try='test -s conftest$ac_exeext' |
10602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10603 | (eval $ac_try) 2>&5 |
10604 | ac_status=$? |
10605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10606 | (exit $ac_status); }; }; then |
10607 | |
10608 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
10609 | }'` |
10610 | # Check for a 64-bit object if we didn't find anything. |
10611 | 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; } |
10612 | }'`; fi |
10613 | else |
10614 | echo "$as_me: failed program was:" >&5 |
10615 | sed 's/^/| /' conftest.$ac_ext >&5 |
10616 | |
10617 | fi |
10618 | rm -f conftest.err conftest.$ac_objext \ |
10619 | conftest$ac_exeext conftest.$ac_ext |
10620 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
10621 | |
10622 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
10623 | |
10624 | archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
10625 | else |
10626 | if test "$host_cpu" = ia64; then |
10627 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
10628 | allow_undefined_flag_CXX="-z nodefs" |
10629 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
10630 | else |
10631 | # Determine the default libpath from the value encoded in an empty executable. |
10632 | cat >conftest.$ac_ext <<_ACEOF |
10633 | /* confdefs.h. */ |
10634 | _ACEOF |
10635 | cat confdefs.h >>conftest.$ac_ext |
10636 | cat >>conftest.$ac_ext <<_ACEOF |
10637 | /* end confdefs.h. */ |
10638 | |
10639 | int |
10640 | main () |
10641 | { |
10642 | |
10643 | ; |
10644 | return 0; |
10645 | } |
10646 | _ACEOF |
10647 | rm -f conftest.$ac_objext conftest$ac_exeext |
10648 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10649 | (eval $ac_link) 2>conftest.er1 |
10650 | ac_status=$? |
10651 | grep -v '^ *+' conftest.er1 >conftest.err |
10652 | rm -f conftest.er1 |
10653 | cat conftest.err >&5 |
10654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10655 | (exit $ac_status); } && |
10656 | { ac_try='test -z "$ac_cxx_werror_flag" |
10657 | || test ! -s conftest.err' |
10658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10659 | (eval $ac_try) 2>&5 |
10660 | ac_status=$? |
10661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10662 | (exit $ac_status); }; } && |
10663 | { ac_try='test -s conftest$ac_exeext' |
10664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10665 | (eval $ac_try) 2>&5 |
10666 | ac_status=$? |
10667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10668 | (exit $ac_status); }; }; then |
10669 | |
10670 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
10671 | }'` |
10672 | # Check for a 64-bit object if we didn't find anything. |
10673 | 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; } |
10674 | }'`; fi |
10675 | else |
10676 | echo "$as_me: failed program was:" >&5 |
10677 | sed 's/^/| /' conftest.$ac_ext >&5 |
10678 | |
10679 | fi |
10680 | rm -f conftest.err conftest.$ac_objext \ |
10681 | conftest$ac_exeext conftest.$ac_ext |
10682 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
10683 | |
10684 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
10685 | # Warning - without using the other run time loading flags, |
10686 | # -berok will link without error, but may produce a broken library. |
10687 | no_undefined_flag_CXX=' ${wl}-bernotok' |
10688 | allow_undefined_flag_CXX=' ${wl}-berok' |
10689 | # Exported symbols can be pulled into shared objects from archives |
10690 | whole_archive_flag_spec_CXX='$convenience' |
10691 | archive_cmds_need_lc_CXX=yes |
10692 | # This is similar to how AIX traditionally builds its shared libraries. |
10693 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
10694 | fi |
10695 | fi |
10696 | ;; |
10697 | |
10698 | beos*) |
10699 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
10700 | allow_undefined_flag_CXX=unsupported |
10701 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
10702 | # support --undefined. This deserves some investigation. FIXME |
10703 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10704 | else |
10705 | ld_shlibs_CXX=no |
10706 | fi |
10707 | ;; |
10708 | |
10709 | chorus*) |
10710 | case $cc_basename in |
10711 | *) |
10712 | # FIXME: insert proper C++ library support |
10713 | ld_shlibs_CXX=no |
10714 | ;; |
10715 | esac |
10716 | ;; |
10717 | |
10718 | cygwin* | mingw* | pw32*) |
10719 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
10720 | # as there is no search path for DLLs. |
10721 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
10722 | allow_undefined_flag_CXX=unsupported |
10723 | always_export_symbols_CXX=no |
10724 | enable_shared_with_static_runtimes_CXX=yes |
10725 | |
10726 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
10727 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
10728 | # If the export-symbols file already is a .def file (1st line |
10729 | # is EXPORTS), use it as is; otherwise, prepend... |
10730 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
10731 | cp $export_symbols $output_objdir/$soname.def; |
10732 | else |
10733 | echo EXPORTS > $output_objdir/$soname.def; |
10734 | cat $export_symbols >> $output_objdir/$soname.def; |
10735 | fi~ |
10736 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
10737 | else |
10738 | ld_shlibs_CXX=no |
10739 | fi |
10740 | ;; |
10741 | darwin* | rhapsody*) |
10742 | case $host_os in |
10743 | rhapsody* | darwin1.[012]) |
10744 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
10745 | ;; |
10746 | *) # Darwin 1.3 on |
10747 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
10748 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
10749 | else |
10750 | case ${MACOSX_DEPLOYMENT_TARGET} in |
10751 | 10.[012]) |
10752 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
10753 | ;; |
10754 | 10.*) |
10755 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
10756 | ;; |
10757 | esac |
10758 | fi |
10759 | ;; |
10760 | esac |
10761 | archive_cmds_need_lc_CXX=no |
10762 | hardcode_direct_CXX=no |
10763 | hardcode_automatic_CXX=yes |
10764 | hardcode_shlibpath_var_CXX=unsupported |
10765 | whole_archive_flag_spec_CXX='' |
10766 | link_all_deplibs_CXX=yes |
10767 | |
10768 | if test "$GXX" = yes ; then |
10769 | lt_int_apple_cc_single_mod=no |
10770 | output_verbose_link_cmd='echo' |
10771 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
10772 | lt_int_apple_cc_single_mod=yes |
10773 | fi |
10774 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
10775 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
10776 | else |
10777 | 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' |
10778 | fi |
10779 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
10780 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
10781 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
10782 | 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}' |
10783 | else |
10784 | 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}' |
10785 | fi |
10786 | 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}' |
10787 | else |
10788 | case $cc_basename in |
10789 | xlc*) |
10790 | output_verbose_link_cmd='echo' |
10791 | 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' |
10792 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
10793 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
10794 | 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}' |
10795 | 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}' |
10796 | ;; |
10797 | *) |
10798 | ld_shlibs_CXX=no |
10799 | ;; |
10800 | esac |
10801 | fi |
10802 | ;; |
10803 | |
10804 | dgux*) |
10805 | case $cc_basename in |
10806 | ec++*) |
10807 | # FIXME: insert proper C++ library support |
10808 | ld_shlibs_CXX=no |
10809 | ;; |
10810 | ghcx*) |
10811 | # Green Hills C++ Compiler |
10812 | # FIXME: insert proper C++ library support |
10813 | ld_shlibs_CXX=no |
10814 | ;; |
10815 | *) |
10816 | # FIXME: insert proper C++ library support |
10817 | ld_shlibs_CXX=no |
10818 | ;; |
10819 | esac |
10820 | ;; |
10821 | freebsd[12]*) |
10822 | # C++ shared libraries reported to be fairly broken before switch to ELF |
10823 | ld_shlibs_CXX=no |
10824 | ;; |
10825 | freebsd-elf*) |
10826 | archive_cmds_need_lc_CXX=no |
10827 | ;; |
10828 | freebsd* | kfreebsd*-gnu | dragonfly*) |
10829 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
10830 | # conventions |
10831 | ld_shlibs_CXX=yes |
10832 | ;; |
10833 | gnu*) |
10834 | ;; |
10835 | hpux9*) |
10836 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
10837 | hardcode_libdir_separator_CXX=: |
10838 | export_dynamic_flag_spec_CXX='${wl}-E' |
10839 | hardcode_direct_CXX=yes |
10840 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
10841 | # but as the default |
10842 | # location of the library. |
10843 | |
10844 | case $cc_basename in |
10845 | CC*) |
10846 | # FIXME: insert proper C++ library support |
10847 | ld_shlibs_CXX=no |
10848 | ;; |
10849 | aCC*) |
10850 | 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' |
10851 | # Commands to make compiler produce verbose output that lists |
10852 | # what "hidden" libraries, object files and flags are used when |
10853 | # linking a shared library. |
10854 | # |
10855 | # There doesn't appear to be a way to prevent this compiler from |
10856 | # explicitly linking system object files so we need to strip them |
10857 | # from the output so that they don't get included in the library |
10858 | # dependencies. |
10859 | 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' |
10860 | ;; |
10861 | *) |
10862 | if test "$GXX" = yes; then |
10863 | 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' |
10864 | else |
10865 | # FIXME: insert proper C++ library support |
10866 | ld_shlibs_CXX=no |
10867 | fi |
10868 | ;; |
10869 | esac |
10870 | ;; |
10871 | hpux10*|hpux11*) |
10872 | if test $with_gnu_ld = no; then |
10873 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
10874 | hardcode_libdir_separator_CXX=: |
10875 | |
10876 | case $host_cpu in |
10877 | hppa*64*|ia64*) |
10878 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
10879 | ;; |
10880 | *) |
10881 | export_dynamic_flag_spec_CXX='${wl}-E' |
10882 | ;; |
10883 | esac |
10884 | fi |
10885 | case $host_cpu in |
10886 | hppa*64*|ia64*) |
10887 | hardcode_direct_CXX=no |
10888 | hardcode_shlibpath_var_CXX=no |
10889 | ;; |
10890 | *) |
10891 | hardcode_direct_CXX=yes |
10892 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
10893 | # but as the default |
10894 | # location of the library. |
10895 | ;; |
10896 | esac |
10897 | |
10898 | case $cc_basename in |
10899 | CC*) |
10900 | # FIXME: insert proper C++ library support |
10901 | ld_shlibs_CXX=no |
10902 | ;; |
10903 | aCC*) |
10904 | case $host_cpu in |
10905 | hppa*64*) |
10906 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
10907 | ;; |
10908 | ia64*) |
10909 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
10910 | ;; |
10911 | *) |
10912 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
10913 | ;; |
10914 | esac |
10915 | # Commands to make compiler produce verbose output that lists |
10916 | # what "hidden" libraries, object files and flags are used when |
10917 | # linking a shared library. |
10918 | # |
10919 | # There doesn't appear to be a way to prevent this compiler from |
10920 | # explicitly linking system object files so we need to strip them |
10921 | # from the output so that they don't get included in the library |
10922 | # dependencies. |
10923 | 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' |
10924 | ;; |
10925 | *) |
10926 | if test "$GXX" = yes; then |
10927 | if test $with_gnu_ld = no; then |
10928 | case $host_cpu in |
10929 | hppa*64*) |
10930 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
10931 | ;; |
10932 | ia64*) |
10933 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
10934 | ;; |
10935 | *) |
10936 | 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' |
10937 | ;; |
10938 | esac |
10939 | fi |
10940 | else |
10941 | # FIXME: insert proper C++ library support |
10942 | ld_shlibs_CXX=no |
10943 | fi |
10944 | ;; |
10945 | esac |
10946 | ;; |
10947 | interix3*) |
10948 | hardcode_direct_CXX=no |
10949 | hardcode_shlibpath_var_CXX=no |
10950 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
10951 | export_dynamic_flag_spec_CXX='${wl}-E' |
10952 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
10953 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
10954 | # default) and relocated if they conflict, which is a slow very memory |
10955 | # consuming and fragmenting process. To avoid this, we pick a random, |
10956 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
10957 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
10958 | archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
10959 | archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
10960 | ;; |
10961 | irix5* | irix6*) |
10962 | case $cc_basename in |
10963 | CC*) |
10964 | # SGI C++ |
10965 | 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' |
10966 | |
10967 | # Archives containing C++ object files must be created using |
10968 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
10969 | # necessary to make sure instantiated templates are included |
10970 | # in the archive. |
10971 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
10972 | ;; |
10973 | *) |
10974 | if test "$GXX" = yes; then |
10975 | if test "$with_gnu_ld" = no; then |
10976 | 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' |
10977 | else |
10978 | 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' |
10979 | fi |
10980 | fi |
10981 | link_all_deplibs_CXX=yes |
10982 | ;; |
10983 | esac |
10984 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
10985 | hardcode_libdir_separator_CXX=: |
10986 | ;; |
10987 | linux*) |
10988 | case $cc_basename in |
10989 | KCC*) |
10990 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
10991 | |
10992 | # KCC will only create a shared library if the output file |
10993 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
10994 | # to its proper name (with version) after linking. |
10995 | 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' |
10996 | 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' |
10997 | # Commands to make compiler produce verbose output that lists |
10998 | # what "hidden" libraries, object files and flags are used when |
10999 | # linking a shared library. |
11000 | # |
11001 | # There doesn't appear to be a way to prevent this compiler from |
11002 | # explicitly linking system object files so we need to strip them |
11003 | # from the output so that they don't get included in the library |
11004 | # dependencies. |
11005 | 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' |
11006 | |
11007 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
11008 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11009 | |
11010 | # Archives containing C++ object files must be created using |
11011 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
11012 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
11013 | ;; |
11014 | icpc*) |
11015 | # Intel C++ |
11016 | with_gnu_ld=yes |
11017 | # version 8.0 and above of icpc choke on multiply defined symbols |
11018 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
11019 | # earlier do not add the objects themselves. |
11020 | case `$CC -V 2>&1` in |
11021 | *"Version 7."*) |
11022 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11023 | 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' |
11024 | ;; |
11025 | *) # Version 8.0 or newer |
11026 | tmp_idyn= |
11027 | case $host_cpu in |
11028 | ia64*) tmp_idyn=' -i_dynamic';; |
11029 | esac |
11030 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11031 | 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' |
11032 | ;; |
11033 | esac |
11034 | archive_cmds_need_lc_CXX=no |
11035 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11036 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11037 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
11038 | ;; |
11039 | pgCC*) |
11040 | # Portland Group C++ compiler |
11041 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
11042 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' |
11043 | |
11044 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
11045 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11046 | whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
11047 | ;; |
11048 | cxx*) |
11049 | # Compaq C++ |
11050 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11051 | 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' |
11052 | |
11053 | runpath_var=LD_RUN_PATH |
11054 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
11055 | hardcode_libdir_separator_CXX=: |
11056 | |
11057 | # Commands to make compiler produce verbose output that lists |
11058 | # what "hidden" libraries, object files and flags are used when |
11059 | # linking a shared library. |
11060 | # |
11061 | # There doesn't appear to be a way to prevent this compiler from |
11062 | # explicitly linking system object files so we need to strip them |
11063 | # from the output so that they don't get included in the library |
11064 | # dependencies. |
11065 | 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' |
11066 | ;; |
11067 | esac |
11068 | ;; |
11069 | lynxos*) |
11070 | # FIXME: insert proper C++ library support |
11071 | ld_shlibs_CXX=no |
11072 | ;; |
11073 | m88k*) |
11074 | # FIXME: insert proper C++ library support |
11075 | ld_shlibs_CXX=no |
11076 | ;; |
11077 | mvs*) |
11078 | case $cc_basename in |
11079 | cxx*) |
11080 | # FIXME: insert proper C++ library support |
11081 | ld_shlibs_CXX=no |
11082 | ;; |
11083 | *) |
11084 | # FIXME: insert proper C++ library support |
11085 | ld_shlibs_CXX=no |
11086 | ;; |
11087 | esac |
11088 | ;; |
11089 | netbsd*) |
11090 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
11091 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
11092 | wlarc= |
11093 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
11094 | hardcode_direct_CXX=yes |
11095 | hardcode_shlibpath_var_CXX=no |
11096 | fi |
11097 | # Workaround some broken pre-1.5 toolchains |
11098 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
11099 | ;; |
11100 | openbsd2*) |
11101 | # C++ shared libraries are fairly broken |
11102 | ld_shlibs_CXX=no |
11103 | ;; |
11104 | openbsd*) |
11105 | hardcode_direct_CXX=yes |
11106 | hardcode_shlibpath_var_CXX=no |
11107 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
11108 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11109 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
11110 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
11111 | export_dynamic_flag_spec_CXX='${wl}-E' |
11112 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
11113 | fi |
11114 | output_verbose_link_cmd='echo' |
11115 | ;; |
11116 | osf3*) |
11117 | case $cc_basename in |
11118 | KCC*) |
11119 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
11120 | |
11121 | # KCC will only create a shared library if the output file |
11122 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
11123 | # to its proper name (with version) after linking. |
11124 | 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' |
11125 | |
11126 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11127 | hardcode_libdir_separator_CXX=: |
11128 | |
11129 | # Archives containing C++ object files must be created using |
11130 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
11131 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
11132 | |
11133 | ;; |
11134 | RCC*) |
11135 | # Rational C++ 2.4.1 |
11136 | # FIXME: insert proper C++ library support |
11137 | ld_shlibs_CXX=no |
11138 | ;; |
11139 | cxx*) |
11140 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
11141 | 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' |
11142 | |
11143 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11144 | hardcode_libdir_separator_CXX=: |
11145 | |
11146 | # Commands to make compiler produce verbose output that lists |
11147 | # what "hidden" libraries, object files and flags are used when |
11148 | # linking a shared library. |
11149 | # |
11150 | # There doesn't appear to be a way to prevent this compiler from |
11151 | # explicitly linking system object files so we need to strip them |
11152 | # from the output so that they don't get included in the library |
11153 | # dependencies. |
11154 | 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' |
11155 | ;; |
11156 | *) |
11157 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11158 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
11159 | 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' |
11160 | |
11161 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11162 | hardcode_libdir_separator_CXX=: |
11163 | |
11164 | # Commands to make compiler produce verbose output that lists |
11165 | # what "hidden" libraries, object files and flags are used when |
11166 | # linking a shared library. |
11167 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
11168 | |
11169 | else |
11170 | # FIXME: insert proper C++ library support |
11171 | ld_shlibs_CXX=no |
11172 | fi |
11173 | ;; |
11174 | esac |
11175 | ;; |
11176 | osf4* | osf5*) |
11177 | case $cc_basename in |
11178 | KCC*) |
11179 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
11180 | |
11181 | # KCC will only create a shared library if the output file |
11182 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
11183 | # to its proper name (with version) after linking. |
11184 | 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' |
11185 | |
11186 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11187 | hardcode_libdir_separator_CXX=: |
11188 | |
11189 | # Archives containing C++ object files must be created using |
11190 | # the KAI C++ compiler. |
11191 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
11192 | ;; |
11193 | RCC*) |
11194 | # Rational C++ 2.4.1 |
11195 | # FIXME: insert proper C++ library support |
11196 | ld_shlibs_CXX=no |
11197 | ;; |
11198 | cxx*) |
11199 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
11200 | 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' |
11201 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
11202 | echo "-hidden">> $lib.exp~ |
11203 | $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~ |
11204 | $rm $lib.exp' |
11205 | |
11206 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
11207 | hardcode_libdir_separator_CXX=: |
11208 | |
11209 | # Commands to make compiler produce verbose output that lists |
11210 | # what "hidden" libraries, object files and flags are used when |
11211 | # linking a shared library. |
11212 | # |
11213 | # There doesn't appear to be a way to prevent this compiler from |
11214 | # explicitly linking system object files so we need to strip them |
11215 | # from the output so that they don't get included in the library |
11216 | # dependencies. |
11217 | 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' |
11218 | ;; |
11219 | *) |
11220 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11221 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
11222 | 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' |
11223 | |
11224 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11225 | hardcode_libdir_separator_CXX=: |
11226 | |
11227 | # Commands to make compiler produce verbose output that lists |
11228 | # what "hidden" libraries, object files and flags are used when |
11229 | # linking a shared library. |
11230 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
11231 | |
11232 | else |
11233 | # FIXME: insert proper C++ library support |
11234 | ld_shlibs_CXX=no |
11235 | fi |
11236 | ;; |
11237 | esac |
11238 | ;; |
11239 | psos*) |
11240 | # FIXME: insert proper C++ library support |
11241 | ld_shlibs_CXX=no |
11242 | ;; |
11243 | sunos4*) |
11244 | case $cc_basename in |
11245 | CC*) |
11246 | # Sun C++ 4.x |
11247 | # FIXME: insert proper C++ library support |
11248 | ld_shlibs_CXX=no |
11249 | ;; |
11250 | lcc*) |
11251 | # Lucid |
11252 | # FIXME: insert proper C++ library support |
11253 | ld_shlibs_CXX=no |
11254 | ;; |
11255 | *) |
11256 | # FIXME: insert proper C++ library support |
11257 | ld_shlibs_CXX=no |
11258 | ;; |
11259 | esac |
11260 | ;; |
11261 | solaris*) |
11262 | case $cc_basename in |
11263 | CC*) |
11264 | # Sun C++ 4.2, 5.x and Centerline C++ |
11265 | archive_cmds_need_lc_CXX=yes |
11266 | no_undefined_flag_CXX=' -zdefs' |
11267 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11268 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11269 | $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
11270 | |
11271 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
11272 | hardcode_shlibpath_var_CXX=no |
11273 | case $host_os in |
11274 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
11275 | *) |
11276 | # The C++ compiler is used as linker so we must use $wl |
11277 | # flag to pass the commands to the underlying system |
11278 | # linker. We must also pass each convience library through |
11279 | # to the system linker between allextract/defaultextract. |
11280 | # The C++ compiler will combine linker options so we |
11281 | # cannot just pass the convience library names through |
11282 | # without $wl. |
11283 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
11284 | 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' |
11285 | ;; |
11286 | esac |
11287 | link_all_deplibs_CXX=yes |
11288 | |
11289 | output_verbose_link_cmd='echo' |
11290 | |
11291 | # Archives containing C++ object files must be created using |
11292 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
11293 | # necessary to make sure instantiated templates are included |
11294 | # in the archive. |
11295 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
11296 | ;; |
11297 | gcx*) |
11298 | # Green Hills C++ Compiler |
11299 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11300 | |
11301 | # The C++ compiler must be used to create the archive. |
11302 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
11303 | ;; |
11304 | *) |
11305 | # GNU C++ compiler with Solaris linker |
11306 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11307 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
11308 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
11309 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11310 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11311 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
11312 | |
11313 | # Commands to make compiler produce verbose output that lists |
11314 | # what "hidden" libraries, object files and flags are used when |
11315 | # linking a shared library. |
11316 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
11317 | else |
11318 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
11319 | # platform. |
11320 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11321 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11322 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
11323 | |
11324 | # Commands to make compiler produce verbose output that lists |
11325 | # what "hidden" libraries, object files and flags are used when |
11326 | # linking a shared library. |
11327 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
11328 | fi |
11329 | |
11330 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
11331 | fi |
11332 | ;; |
11333 | esac |
11334 | ;; |
11335 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
11336 | no_undefined_flag_CXX='${wl}-z,text' |
11337 | archive_cmds_need_lc_CXX=no |
11338 | hardcode_shlibpath_var_CXX=no |
11339 | runpath_var='LD_RUN_PATH' |
11340 | |
11341 | case $cc_basename in |
11342 | CC*) |
11343 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11344 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11345 | ;; |
11346 | *) |
11347 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11348 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11349 | ;; |
11350 | esac |
11351 | ;; |
11352 | sysv5* | sco3.2v5* | sco5v6*) |
11353 | # Note: We can NOT use -z defs as we might desire, because we do not |
11354 | # link with -lc, and that would cause any symbols used from libc to |
11355 | # always be unresolved, which means just about no library would |
11356 | # ever link correctly. If we're not using GNU ld we use -z text |
11357 | # though, which does catch some bad symbols but isn't as heavy-handed |
11358 | # as -z defs. |
11359 | # For security reasons, it is highly recommended that you always |
11360 | # use absolute paths for naming shared libraries, and exclude the |
11361 | # DT_RUNPATH tag from executables and libraries. But doing so |
11362 | # requires that you compile everything twice, which is a pain. |
11363 | # So that behaviour is only enabled if SCOABSPATH is set to a |
11364 | # non-empty value in the environment. Most likely only useful for |
11365 | # creating official distributions of packages. |
11366 | # This is a hack until libtool officially supports absolute path |
11367 | # names for shared libraries. |
11368 | no_undefined_flag_CXX='${wl}-z,text' |
11369 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
11370 | archive_cmds_need_lc_CXX=no |
11371 | hardcode_shlibpath_var_CXX=no |
11372 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
11373 | hardcode_libdir_separator_CXX=':' |
11374 | link_all_deplibs_CXX=yes |
11375 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
11376 | runpath_var='LD_RUN_PATH' |
11377 | |
11378 | case $cc_basename in |
11379 | CC*) |
11380 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11381 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11382 | ;; |
11383 | *) |
11384 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11385 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11386 | ;; |
11387 | esac |
11388 | ;; |
11389 | tandem*) |
11390 | case $cc_basename in |
11391 | NCC*) |
11392 | # NonStop-UX NCC 3.20 |
11393 | # FIXME: insert proper C++ library support |
11394 | ld_shlibs_CXX=no |
11395 | ;; |
11396 | *) |
11397 | # FIXME: insert proper C++ library support |
11398 | ld_shlibs_CXX=no |
11399 | ;; |
11400 | esac |
11401 | ;; |
11402 | vxworks*) |
11403 | # FIXME: insert proper C++ library support |
11404 | ld_shlibs_CXX=no |
11405 | ;; |
11406 | *) |
11407 | # FIXME: insert proper C++ library support |
11408 | ld_shlibs_CXX=no |
11409 | ;; |
11410 | esac |
11411 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
11412 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
11413 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
11414 | |
11415 | GCC_CXX="$GXX" |
11416 | LD_CXX="$LD" |
11417 | |
11418 | |
11419 | cat > conftest.$ac_ext <<EOF |
11420 | class Foo |
11421 | { |
11422 | public: |
11423 | Foo (void) { a = 0; } |
11424 | private: |
11425 | int a; |
11426 | }; |
11427 | EOF |
11428 | |
11429 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
11430 | (eval $ac_compile) 2>&5 |
11431 | ac_status=$? |
11432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11433 | (exit $ac_status); }; then |
11434 | # Parse the compiler output and extract the necessary |
11435 | # objects, libraries and library flags. |
11436 | |
11437 | # Sentinel used to keep track of whether or not we are before |
11438 | # the conftest object file. |
11439 | pre_test_object_deps_done=no |
11440 | |
11441 | # The `*' in the case matches for architectures that use `case' in |
11442 | # $output_verbose_cmd can trigger glob expansion during the loop |
11443 | # eval without this substitution. |
11444 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` |
11445 | |
11446 | for p in `eval $output_verbose_link_cmd`; do |
11447 | case $p in |
11448 | |
11449 | -L* | -R* | -l*) |
11450 | # Some compilers place space between "-{L,R}" and the path. |
11451 | # Remove the space. |
11452 | if test $p = "-L" \ |
11453 | || test $p = "-R"; then |
11454 | prev=$p |
11455 | continue |
11456 | else |
11457 | prev= |
11458 | fi |
11459 | |
11460 | if test "$pre_test_object_deps_done" = no; then |
11461 | case $p in |
11462 | -L* | -R*) |
11463 | # Internal compiler library paths should come after those |
11464 | # provided the user. The postdeps already come after the |
11465 | # user supplied libs so there is no need to process them. |
11466 | if test -z "$compiler_lib_search_path_CXX"; then |
11467 | compiler_lib_search_path_CXX="${prev}${p}" |
11468 | else |
11469 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
11470 | fi |
11471 | ;; |
11472 | # The "-l" case would never come before the object being |
11473 | # linked, so don't bother handling this case. |
11474 | esac |
11475 | else |
11476 | if test -z "$postdeps_CXX"; then |
11477 | postdeps_CXX="${prev}${p}" |
11478 | else |
11479 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
11480 | fi |
11481 | fi |
11482 | ;; |
11483 | |
11484 | *.$objext) |
11485 | # This assumes that the test object file only shows up |
11486 | # once in the compiler output. |
11487 | if test "$p" = "conftest.$objext"; then |
11488 | pre_test_object_deps_done=yes |
11489 | continue |
11490 | fi |
11491 | |
11492 | if test "$pre_test_object_deps_done" = no; then |
11493 | if test -z "$predep_objects_CXX"; then |
11494 | predep_objects_CXX="$p" |
11495 | else |
11496 | predep_objects_CXX="$predep_objects_CXX $p" |
11497 | fi |
11498 | else |
11499 | if test -z "$postdep_objects_CXX"; then |
11500 | postdep_objects_CXX="$p" |
11501 | else |
11502 | postdep_objects_CXX="$postdep_objects_CXX $p" |
11503 | fi |
11504 | fi |
11505 | ;; |
11506 | |
11507 | *) ;; # Ignore the rest. |
11508 | |
11509 | esac |
11510 | done |
11511 | |
11512 | # Clean up. |
11513 | rm -f a.out a.exe |
11514 | else |
11515 | echo "libtool.m4: error: problem compiling CXX test program" |
11516 | fi |
11517 | |
11518 | $rm -f confest.$objext |
11519 | |
11520 | # PORTME: override above test on systems where it is broken |
11521 | case $host_os in |
11522 | interix3*) |
11523 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
11524 | # hack all around it, let's just trust "g++" to DTRT. |
11525 | predep_objects_CXX= |
11526 | postdep_objects_CXX= |
11527 | postdeps_CXX= |
11528 | ;; |
11529 | |
11530 | solaris*) |
11531 | case $cc_basename in |
11532 | CC*) |
11533 | # Adding this requires a known-good setup of shared libraries for |
11534 | # Sun compiler versions before 5.6, else PIC objects from an old |
11535 | # archive will be linked into the output, leading to subtle bugs. |
11536 | postdeps_CXX='-lCstd -lCrun' |
11537 | ;; |
11538 | esac |
11539 | ;; |
11540 | esac |
11541 | |
11542 | |
11543 | case " $postdeps_CXX " in |
11544 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
11545 | esac |
11546 | |
11547 | lt_prog_compiler_wl_CXX= |
11548 | lt_prog_compiler_pic_CXX= |
11549 | lt_prog_compiler_static_CXX= |
11550 | |
11551 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
11552 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
11553 | |
11554 | # C++ specific cases for pic, static, wl, etc. |
11555 | if test "$GXX" = yes; then |
11556 | lt_prog_compiler_wl_CXX='-Wl,' |
11557 | lt_prog_compiler_static_CXX='-static' |
11558 | |
11559 | case $host_os in |
11560 | aix*) |
11561 | # All AIX code is PIC. |
11562 | if test "$host_cpu" = ia64; then |
11563 | # AIX 5 now supports IA64 processor |
11564 | lt_prog_compiler_static_CXX='-Bstatic' |
11565 | fi |
11566 | ;; |
11567 | amigaos*) |
11568 | # FIXME: we need at least 68020 code to build shared libraries, but |
11569 | # adding the `-m68020' flag to GCC prevents building anything better, |
11570 | # like `-m68040'. |
11571 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
11572 | ;; |
11573 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
11574 | # PIC is the default for these OSes. |
11575 | ;; |
11576 | mingw* | os2* | pw32*) |
11577 | # This hack is so that the source file can tell whether it is being |
11578 | # built for inclusion in a dll (and should export symbols for example). |
11579 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
11580 | ;; |
11581 | darwin* | rhapsody*) |
11582 | # PIC is the default on this platform |
11583 | # Common symbols not allowed in MH_DYLIB files |
11584 | lt_prog_compiler_pic_CXX='-fno-common' |
11585 | ;; |
11586 | *djgpp*) |
11587 | # DJGPP does not support shared libraries at all |
11588 | lt_prog_compiler_pic_CXX= |
11589 | ;; |
11590 | interix3*) |
11591 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
11592 | # Instead, we relocate shared libraries at runtime. |
11593 | ;; |
11594 | sysv4*MP*) |
11595 | if test -d /usr/nec; then |
11596 | lt_prog_compiler_pic_CXX=-Kconform_pic |
11597 | fi |
11598 | ;; |
11599 | hpux*) |
11600 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
11601 | # not for PA HP-UX. |
11602 | case $host_cpu in |
11603 | hppa*64*|ia64*) |
11604 | ;; |
11605 | *) |
11606 | lt_prog_compiler_pic_CXX='-fPIC' |
11607 | ;; |
11608 | esac |
11609 | ;; |
11610 | *) |
11611 | lt_prog_compiler_pic_CXX='-fPIC' |
11612 | ;; |
11613 | esac |
11614 | else |
11615 | case $host_os in |
11616 | aix4* | aix5*) |
11617 | # All AIX code is PIC. |
11618 | if test "$host_cpu" = ia64; then |
11619 | # AIX 5 now supports IA64 processor |
11620 | lt_prog_compiler_static_CXX='-Bstatic' |
11621 | else |
11622 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
11623 | fi |
11624 | ;; |
11625 | chorus*) |
11626 | case $cc_basename in |
11627 | cxch68*) |
11628 | # Green Hills C++ Compiler |
11629 | # _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" |
11630 | ;; |
11631 | esac |
11632 | ;; |
11633 | darwin*) |
11634 | # PIC is the default on this platform |
11635 | # Common symbols not allowed in MH_DYLIB files |
11636 | case $cc_basename in |
11637 | xlc*) |
11638 | lt_prog_compiler_pic_CXX='-qnocommon' |
11639 | lt_prog_compiler_wl_CXX='-Wl,' |
11640 | ;; |
11641 | esac |
11642 | ;; |
11643 | dgux*) |
11644 | case $cc_basename in |
11645 | ec++*) |
11646 | lt_prog_compiler_pic_CXX='-KPIC' |
11647 | ;; |
11648 | ghcx*) |
11649 | # Green Hills C++ Compiler |
11650 | lt_prog_compiler_pic_CXX='-pic' |
11651 | ;; |
11652 | *) |
11653 | ;; |
11654 | esac |
11655 | ;; |
11656 | freebsd* | kfreebsd*-gnu | dragonfly*) |
11657 | # FreeBSD uses GNU C++ |
11658 | ;; |
11659 | hpux9* | hpux10* | hpux11*) |
11660 | case $cc_basename in |
11661 | CC*) |
11662 | lt_prog_compiler_wl_CXX='-Wl,' |
11663 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
11664 | if test "$host_cpu" != ia64; then |
11665 | lt_prog_compiler_pic_CXX='+Z' |
11666 | fi |
11667 | ;; |
11668 | aCC*) |
11669 | lt_prog_compiler_wl_CXX='-Wl,' |
11670 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
11671 | case $host_cpu in |
11672 | hppa*64*|ia64*) |
11673 | # +Z the default |
11674 | ;; |
11675 | *) |
11676 | lt_prog_compiler_pic_CXX='+Z' |
11677 | ;; |
11678 | esac |
11679 | ;; |
11680 | *) |
11681 | ;; |
11682 | esac |
11683 | ;; |
11684 | interix*) |
11685 | # This is c89, which is MS Visual C++ (no shared libs) |
11686 | # Anyone wants to do a port? |
11687 | ;; |
11688 | irix5* | irix6* | nonstopux*) |
11689 | case $cc_basename in |
11690 | CC*) |
11691 | lt_prog_compiler_wl_CXX='-Wl,' |
11692 | lt_prog_compiler_static_CXX='-non_shared' |
11693 | # CC pic flag -KPIC is the default. |
11694 | ;; |
11695 | *) |
11696 | ;; |
11697 | esac |
11698 | ;; |
11699 | linux*) |
11700 | case $cc_basename in |
11701 | KCC*) |
11702 | # KAI C++ Compiler |
11703 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
11704 | lt_prog_compiler_pic_CXX='-fPIC' |
11705 | ;; |
11706 | icpc* | ecpc*) |
11707 | # Intel C++ |
11708 | lt_prog_compiler_wl_CXX='-Wl,' |
11709 | lt_prog_compiler_pic_CXX='-KPIC' |
11710 | lt_prog_compiler_static_CXX='-static' |
11711 | ;; |
11712 | pgCC*) |
11713 | # Portland Group C++ compiler. |
11714 | lt_prog_compiler_wl_CXX='-Wl,' |
11715 | lt_prog_compiler_pic_CXX='-fpic' |
11716 | lt_prog_compiler_static_CXX='-Bstatic' |
11717 | ;; |
11718 | cxx*) |
11719 | # Compaq C++ |
11720 | # Make sure the PIC flag is empty. It appears that all Alpha |
11721 | # Linux and Compaq Tru64 Unix objects are PIC. |
11722 | lt_prog_compiler_pic_CXX= |
11723 | lt_prog_compiler_static_CXX='-non_shared' |
11724 | ;; |
11725 | *) |
11726 | ;; |
11727 | esac |
11728 | ;; |
11729 | lynxos*) |
11730 | ;; |
11731 | m88k*) |
11732 | ;; |
11733 | mvs*) |
11734 | case $cc_basename in |
11735 | cxx*) |
11736 | lt_prog_compiler_pic_CXX='-W c,exportall' |
11737 | ;; |
11738 | *) |
11739 | ;; |
11740 | esac |
11741 | ;; |
11742 | netbsd*) |
11743 | ;; |
11744 | osf3* | osf4* | osf5*) |
11745 | case $cc_basename in |
11746 | KCC*) |
11747 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
11748 | ;; |
11749 | RCC*) |
11750 | # Rational C++ 2.4.1 |
11751 | lt_prog_compiler_pic_CXX='-pic' |
11752 | ;; |
11753 | cxx*) |
11754 | # Digital/Compaq C++ |
11755 | lt_prog_compiler_wl_CXX='-Wl,' |
11756 | # Make sure the PIC flag is empty. It appears that all Alpha |
11757 | # Linux and Compaq Tru64 Unix objects are PIC. |
11758 | lt_prog_compiler_pic_CXX= |
11759 | lt_prog_compiler_static_CXX='-non_shared' |
11760 | ;; |
11761 | *) |
11762 | ;; |
11763 | esac |
11764 | ;; |
11765 | psos*) |
11766 | ;; |
11767 | solaris*) |
11768 | case $cc_basename in |
11769 | CC*) |
11770 | # Sun C++ 4.2, 5.x and Centerline C++ |
11771 | lt_prog_compiler_pic_CXX='-KPIC' |
11772 | lt_prog_compiler_static_CXX='-Bstatic' |
11773 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
11774 | ;; |
11775 | gcx*) |
11776 | # Green Hills C++ Compiler |
11777 | lt_prog_compiler_pic_CXX='-PIC' |
11778 | ;; |
11779 | *) |
11780 | ;; |
11781 | esac |
11782 | ;; |
11783 | sunos4*) |
11784 | case $cc_basename in |
11785 | CC*) |
11786 | # Sun C++ 4.x |
11787 | lt_prog_compiler_pic_CXX='-pic' |
11788 | lt_prog_compiler_static_CXX='-Bstatic' |
11789 | ;; |
11790 | lcc*) |
11791 | # Lucid |
11792 | lt_prog_compiler_pic_CXX='-pic' |
11793 | ;; |
11794 | *) |
11795 | ;; |
11796 | esac |
11797 | ;; |
11798 | tandem*) |
11799 | case $cc_basename in |
11800 | NCC*) |
11801 | # NonStop-UX NCC 3.20 |
11802 | lt_prog_compiler_pic_CXX='-KPIC' |
11803 | ;; |
11804 | *) |
11805 | ;; |
11806 | esac |
11807 | ;; |
11808 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
11809 | case $cc_basename in |
11810 | CC*) |
11811 | lt_prog_compiler_wl_CXX='-Wl,' |
11812 | lt_prog_compiler_pic_CXX='-KPIC' |
11813 | lt_prog_compiler_static_CXX='-Bstatic' |
11814 | ;; |
11815 | esac |
11816 | ;; |
11817 | vxworks*) |
11818 | ;; |
11819 | *) |
11820 | lt_prog_compiler_can_build_shared_CXX=no |
11821 | ;; |
11822 | esac |
11823 | fi |
11824 | |
11825 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
11826 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 |
11827 | |
11828 | # |
11829 | # Check to make sure the PIC flag actually works. |
11830 | # |
11831 | if test -n "$lt_prog_compiler_pic_CXX"; then |
11832 | |
11833 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
11834 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 |
11835 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
11836 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11837 | else |
11838 | lt_prog_compiler_pic_works_CXX=no |
11839 | ac_outfile=conftest.$ac_objext |
11840 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
11841 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
11842 | # Insert the option either (1) after the last *FLAGS variable, or |
11843 | # (2) before a word containing "conftest.", or (3) at the end. |
11844 | # Note that $ac_compile itself does not contain backslashes and begins |
11845 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
11846 | # The option is referenced via a variable to avoid confusing sed. |
11847 | lt_compile=`echo "$ac_compile" | $SED \ |
11848 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
11849 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
11850 | -e 's:$: $lt_compiler_flag:'` |
11851 | (eval echo "\"\$as_me:11851: $lt_compile\"" >&5) |
11852 | (eval "$lt_compile" 2>conftest.err) |
11853 | ac_status=$? |
11854 | cat conftest.err >&5 |
11855 | echo "$as_me:11855: \$? = $ac_status" >&5 |
11856 | if (exit $ac_status) && test -s "$ac_outfile"; then |
11857 | # The compiler can only warn and ignore the option if not recognized |
11858 | # So say no if there are warnings other than the usual output. |
11859 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
11860 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
11861 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
11862 | lt_prog_compiler_pic_works_CXX=yes |
11863 | fi |
11864 | fi |
11865 | $rm conftest* |
11866 | |
11867 | fi |
11868 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
11869 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 |
11870 | |
11871 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
11872 | case $lt_prog_compiler_pic_CXX in |
11873 | "" | " "*) ;; |
11874 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
11875 | esac |
11876 | else |
11877 | lt_prog_compiler_pic_CXX= |
11878 | lt_prog_compiler_can_build_shared_CXX=no |
11879 | fi |
11880 | |
11881 | fi |
11882 | case $host_os in |
11883 | # For platforms which do not support PIC, -DPIC is meaningless: |
11884 | *djgpp*) |
11885 | lt_prog_compiler_pic_CXX= |
11886 | ;; |
11887 | *) |
11888 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
11889 | ;; |
11890 | esac |
11891 | |
11892 | # |
11893 | # Check to make sure the static flag actually works. |
11894 | # |
11895 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
11896 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
11897 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
11898 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
11899 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11900 | else |
11901 | lt_prog_compiler_static_works_CXX=no |
11902 | save_LDFLAGS="$LDFLAGS" |
11903 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
11904 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
11905 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
11906 | # The linker can only warn and ignore the option if not recognized |
11907 | # So say no if there are warnings |
11908 | if test -s conftest.err; then |
11909 | # Append any errors to the config.log. |
11910 | cat conftest.err 1>&5 |
11911 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
11912 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
11913 | if diff conftest.exp conftest.er2 >/dev/null; then |
11914 | lt_prog_compiler_static_works_CXX=yes |
11915 | fi |
11916 | else |
11917 | lt_prog_compiler_static_works_CXX=yes |
11918 | fi |
11919 | fi |
11920 | $rm conftest* |
11921 | LDFLAGS="$save_LDFLAGS" |
11922 | |
11923 | fi |
11924 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
11925 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 |
11926 | |
11927 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
11928 | : |
11929 | else |
11930 | lt_prog_compiler_static_CXX= |
11931 | fi |
11932 | |
11933 | |
11934 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
11935 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
11936 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
11937 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11938 | else |
11939 | lt_cv_prog_compiler_c_o_CXX=no |
11940 | $rm -r conftest 2>/dev/null |
11941 | mkdir conftest |
11942 | cd conftest |
11943 | mkdir out |
11944 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
11945 | |
11946 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
11947 | # Insert the option either (1) after the last *FLAGS variable, or |
11948 | # (2) before a word containing "conftest.", or (3) at the end. |
11949 | # Note that $ac_compile itself does not contain backslashes and begins |
11950 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
11951 | lt_compile=`echo "$ac_compile" | $SED \ |
11952 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
11953 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
11954 | -e 's:$: $lt_compiler_flag:'` |
11955 | (eval echo "\"\$as_me:11955: $lt_compile\"" >&5) |
11956 | (eval "$lt_compile" 2>out/conftest.err) |
11957 | ac_status=$? |
11958 | cat out/conftest.err >&5 |
11959 | echo "$as_me:11959: \$? = $ac_status" >&5 |
11960 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
11961 | then |
11962 | # The compiler can only warn and ignore the option if not recognized |
11963 | # So say no if there are warnings |
11964 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
11965 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
11966 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
11967 | lt_cv_prog_compiler_c_o_CXX=yes |
11968 | fi |
11969 | fi |
11970 | chmod u+w . 2>&5 |
11971 | $rm conftest* |
11972 | # SGI C++ compiler will create directory out/ii_files/ for |
11973 | # template instantiation |
11974 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
11975 | $rm out/* && rmdir out |
11976 | cd .. |
11977 | rmdir conftest |
11978 | $rm conftest* |
11979 | |
11980 | fi |
11981 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
11982 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 |
11983 | |
11984 | |
11985 | hard_links="nottested" |
11986 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
11987 | # do not overwrite the value of need_locks provided by the user |
11988 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
11989 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
11990 | hard_links=yes |
11991 | $rm conftest* |
11992 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
11993 | touch conftest.a |
11994 | ln conftest.a conftest.b 2>&5 || hard_links=no |
11995 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
11996 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
11997 | echo "${ECHO_T}$hard_links" >&6 |
11998 | if test "$hard_links" = no; then |
11999 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
12000 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
12001 | need_locks=warn |
12002 | fi |
12003 | else |
12004 | need_locks=no |
12005 | fi |
12006 | |
12007 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
12008 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
12009 | |
12010 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
12011 | case $host_os in |
12012 | aix4* | aix5*) |
12013 | # If we're using GNU nm, then we don't want the "-C" option. |
12014 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
12015 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
12016 | 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' |
12017 | else |
12018 | 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' |
12019 | fi |
12020 | ;; |
12021 | pw32*) |
12022 | export_symbols_cmds_CXX="$ltdll_cmds" |
12023 | ;; |
12024 | cygwin* | mingw*) |
12025 | 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' |
12026 | ;; |
12027 | *) |
12028 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
12029 | ;; |
12030 | esac |
12031 | |
12032 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
12033 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
12034 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
12035 | |
12036 | # |
12037 | # Do we need to explicitly link libc? |
12038 | # |
12039 | case "x$archive_cmds_need_lc_CXX" in |
12040 | x|xyes) |
12041 | # Assume -lc should be added |
12042 | archive_cmds_need_lc_CXX=yes |
12043 | |
12044 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
12045 | case $archive_cmds_CXX in |
12046 | *'~'*) |
12047 | # FIXME: we may have to deal with multi-command sequences. |
12048 | ;; |
12049 | '$CC '*) |
12050 | # Test whether the compiler implicitly links with -lc since on some |
12051 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
12052 | # to ld, don't add -lc before -lgcc. |
12053 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
12054 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
12055 | $rm conftest* |
12056 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
12057 | |
12058 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12059 | (eval $ac_compile) 2>&5 |
12060 | ac_status=$? |
12061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12062 | (exit $ac_status); } 2>conftest.err; then |
12063 | soname=conftest |
12064 | lib=conftest |
12065 | libobjs=conftest.$ac_objext |
12066 | deplibs= |
12067 | wl=$lt_prog_compiler_wl_CXX |
12068 | pic_flag=$lt_prog_compiler_pic_CXX |
12069 | compiler_flags=-v |
12070 | linker_flags=-v |
12071 | verstring= |
12072 | output_objdir=. |
12073 | libname=conftest |
12074 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
12075 | allow_undefined_flag_CXX= |
12076 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
12077 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
12078 | ac_status=$? |
12079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12080 | (exit $ac_status); } |
12081 | then |
12082 | archive_cmds_need_lc_CXX=no |
12083 | else |
12084 | archive_cmds_need_lc_CXX=yes |
12085 | fi |
12086 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
12087 | else |
12088 | cat conftest.err 1>&5 |
12089 | fi |
12090 | $rm conftest* |
12091 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
12092 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 |
12093 | ;; |
12094 | esac |
12095 | fi |
12096 | ;; |
12097 | esac |
12098 | |
12099 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
12100 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
12101 | library_names_spec= |
12102 | libname_spec='lib$name' |
12103 | soname_spec= |
12104 | shrext_cmds=".so" |
12105 | postinstall_cmds= |
12106 | postuninstall_cmds= |
12107 | finish_cmds= |
12108 | finish_eval= |
12109 | shlibpath_var= |
12110 | shlibpath_overrides_runpath=unknown |
12111 | version_type=none |
12112 | dynamic_linker="$host_os ld.so" |
12113 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
12114 | if test "$GCC" = yes; then |
12115 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
12116 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
12117 | # if the path contains ";" then we assume it to be the separator |
12118 | # otherwise default to the standard path separator (i.e. ":") - it is |
12119 | # assumed that no part of a normal pathname contains ";" but that should |
12120 | # okay in the real world where ";" in dirpaths is itself problematic. |
12121 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
12122 | else |
12123 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
12124 | fi |
12125 | else |
12126 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
12127 | fi |
12128 | need_lib_prefix=unknown |
12129 | hardcode_into_libs=no |
12130 | |
12131 | # when you set need_version to no, make sure it does not cause -set_version |
12132 | # flags to be left without arguments |
12133 | need_version=unknown |
12134 | |
12135 | case $host_os in |
12136 | aix3*) |
12137 | version_type=linux |
12138 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
12139 | shlibpath_var=LIBPATH |
12140 | |
12141 | # AIX 3 has no versioning support, so we append a major version to the name. |
12142 | soname_spec='${libname}${release}${shared_ext}$major' |
12143 | ;; |
12144 | |
12145 | aix4* | aix5*) |
12146 | version_type=linux |
12147 | need_lib_prefix=no |
12148 | need_version=no |
12149 | hardcode_into_libs=yes |
12150 | if test "$host_cpu" = ia64; then |
12151 | # AIX 5 supports IA64 |
12152 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
12153 | shlibpath_var=LD_LIBRARY_PATH |
12154 | else |
12155 | # With GCC up to 2.95.x, collect2 would create an import file |
12156 | # for dependence libraries. The import file would start with |
12157 | # the line `#! .'. This would cause the generated library to |
12158 | # depend on `.', always an invalid library. This was fixed in |
12159 | # development snapshots of GCC prior to 3.0. |
12160 | case $host_os in |
12161 | aix4 | aix4.[01] | aix4.[01].*) |
12162 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
12163 | echo ' yes ' |
12164 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
12165 | : |
12166 | else |
12167 | can_build_shared=no |
12168 | fi |
12169 | ;; |
12170 | esac |
12171 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
12172 | # soname into executable. Probably we can add versioning support to |
12173 | # collect2, so additional links can be useful in future. |
12174 | if test "$aix_use_runtimelinking" = yes; then |
12175 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
12176 | # instead of lib<name>.a to let people know that these are not |
12177 | # typical AIX shared libraries. |
12178 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12179 | else |
12180 | # We preserve .a as extension for shared libraries through AIX4.2 |
12181 | # and later when we are not doing run time linking. |
12182 | library_names_spec='${libname}${release}.a $libname.a' |
12183 | soname_spec='${libname}${release}${shared_ext}$major' |
12184 | fi |
12185 | shlibpath_var=LIBPATH |
12186 | fi |
12187 | ;; |
12188 | |
12189 | amigaos*) |
12190 | library_names_spec='$libname.ixlibrary $libname.a' |
12191 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
12192 | 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' |
12193 | ;; |
12194 | |
12195 | beos*) |
12196 | library_names_spec='${libname}${shared_ext}' |
12197 | dynamic_linker="$host_os ld.so" |
12198 | shlibpath_var=LIBRARY_PATH |
12199 | ;; |
12200 | |
12201 | bsdi[45]*) |
12202 | version_type=linux |
12203 | need_version=no |
12204 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12205 | soname_spec='${libname}${release}${shared_ext}$major' |
12206 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
12207 | shlibpath_var=LD_LIBRARY_PATH |
12208 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
12209 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
12210 | # the default ld.so.conf also contains /usr/contrib/lib and |
12211 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
12212 | # libtool to hard-code these into programs |
12213 | ;; |
12214 | |
12215 | cygwin* | mingw* | pw32*) |
12216 | version_type=windows |
12217 | shrext_cmds=".dll" |
12218 | need_version=no |
12219 | need_lib_prefix=no |
12220 | |
12221 | case $GCC,$host_os in |
12222 | yes,cygwin* | yes,mingw* | yes,pw32*) |
12223 | library_names_spec='$libname.dll.a' |
12224 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
12225 | postinstall_cmds='base_file=`basename \${file}`~ |
12226 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
12227 | dldir=$destdir/`dirname \$dlpath`~ |
12228 | test -d \$dldir || mkdir -p \$dldir~ |
12229 | $install_prog $dir/$dlname \$dldir/$dlname~ |
12230 | chmod a+x \$dldir/$dlname' |
12231 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
12232 | dlpath=$dir/\$dldll~ |
12233 | $rm \$dlpath' |
12234 | shlibpath_overrides_runpath=yes |
12235 | |
12236 | case $host_os in |
12237 | cygwin*) |
12238 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
12239 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12240 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
12241 | ;; |
12242 | mingw*) |
12243 | # MinGW DLLs use traditional 'lib' prefix |
12244 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12245 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
12246 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
12247 | # It is most probably a Windows format PATH printed by |
12248 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
12249 | # path with ; separators, and with drive letters. We can handle the |
12250 | # drive letters (cygwin fileutils understands them), so leave them, |
12251 | # especially as we might pass files found there to a mingw objdump, |
12252 | # which wouldn't understand a cygwinified path. Ahh. |
12253 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
12254 | else |
12255 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
12256 | fi |
12257 | ;; |
12258 | pw32*) |
12259 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
12260 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12261 | ;; |
12262 | esac |
12263 | ;; |
12264 | |
12265 | *) |
12266 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
12267 | ;; |
12268 | esac |
12269 | dynamic_linker='Win32 ld.exe' |
12270 | # FIXME: first we should search . and the directory the executable is in |
12271 | shlibpath_var=PATH |
12272 | ;; |
12273 | |
12274 | darwin* | rhapsody*) |
12275 | dynamic_linker="$host_os dyld" |
12276 | version_type=darwin |
12277 | need_lib_prefix=no |
12278 | need_version=no |
12279 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
12280 | soname_spec='${libname}${release}${major}$shared_ext' |
12281 | shlibpath_overrides_runpath=yes |
12282 | shlibpath_var=DYLD_LIBRARY_PATH |
12283 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
12284 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
12285 | if test "$GCC" = yes; then |
12286 | 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"` |
12287 | else |
12288 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
12289 | fi |
12290 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
12291 | ;; |
12292 | |
12293 | dgux*) |
12294 | version_type=linux |
12295 | need_lib_prefix=no |
12296 | need_version=no |
12297 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
12298 | soname_spec='${libname}${release}${shared_ext}$major' |
12299 | shlibpath_var=LD_LIBRARY_PATH |
12300 | ;; |
12301 | |
12302 | freebsd1*) |
12303 | dynamic_linker=no |
12304 | ;; |
12305 | |
12306 | kfreebsd*-gnu) |
12307 | version_type=linux |
12308 | need_lib_prefix=no |
12309 | need_version=no |
12310 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12311 | soname_spec='${libname}${release}${shared_ext}$major' |
12312 | shlibpath_var=LD_LIBRARY_PATH |
12313 | shlibpath_overrides_runpath=no |
12314 | hardcode_into_libs=yes |
12315 | dynamic_linker='GNU ld.so' |
12316 | ;; |
12317 | |
12318 | freebsd* | dragonfly*) |
12319 | # DragonFly does not have aout. When/if they implement a new |
12320 | # versioning mechanism, adjust this. |
12321 | if test -x /usr/bin/objformat; then |
12322 | objformat=`/usr/bin/objformat` |
12323 | else |
12324 | case $host_os in |
12325 | freebsd[123]*) objformat=aout ;; |
12326 | *) objformat=elf ;; |
12327 | esac |
12328 | fi |
12329 | version_type=freebsd-$objformat |
12330 | case $version_type in |
12331 | freebsd-elf*) |
12332 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
12333 | need_version=no |
12334 | need_lib_prefix=no |
12335 | ;; |
12336 | freebsd-*) |
12337 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
12338 | need_version=yes |
12339 | ;; |
12340 | esac |
12341 | shlibpath_var=LD_LIBRARY_PATH |
12342 | case $host_os in |
12343 | freebsd2*) |
12344 | shlibpath_overrides_runpath=yes |
12345 | ;; |
12346 | freebsd3.[01]* | freebsdelf3.[01]*) |
12347 | shlibpath_overrides_runpath=yes |
12348 | hardcode_into_libs=yes |
12349 | ;; |
12350 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
12351 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
12352 | shlibpath_overrides_runpath=no |
12353 | hardcode_into_libs=yes |
12354 | ;; |
12355 | freebsd*) # from 4.6 on |
12356 | shlibpath_overrides_runpath=yes |
12357 | hardcode_into_libs=yes |
12358 | ;; |
12359 | esac |
12360 | ;; |
12361 | |
12362 | gnu*) |
12363 | version_type=linux |
12364 | need_lib_prefix=no |
12365 | need_version=no |
12366 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
12367 | soname_spec='${libname}${release}${shared_ext}$major' |
12368 | shlibpath_var=LD_LIBRARY_PATH |
12369 | hardcode_into_libs=yes |
12370 | ;; |
12371 | |
12372 | hpux9* | hpux10* | hpux11*) |
12373 | # Give a soname corresponding to the major version so that dld.sl refuses to |
12374 | # link against other versions. |
12375 | version_type=sunos |
12376 | need_lib_prefix=no |
12377 | need_version=no |
12378 | case $host_cpu in |
12379 | ia64*) |
12380 | shrext_cmds='.so' |
12381 | hardcode_into_libs=yes |
12382 | dynamic_linker="$host_os dld.so" |
12383 | shlibpath_var=LD_LIBRARY_PATH |
12384 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
12385 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12386 | soname_spec='${libname}${release}${shared_ext}$major' |
12387 | if test "X$HPUX_IA64_MODE" = X32; then |
12388 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
12389 | else |
12390 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
12391 | fi |
12392 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
12393 | ;; |
12394 | hppa*64*) |
12395 | shrext_cmds='.sl' |
12396 | hardcode_into_libs=yes |
12397 | dynamic_linker="$host_os dld.sl" |
12398 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
12399 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
12400 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12401 | soname_spec='${libname}${release}${shared_ext}$major' |
12402 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
12403 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
12404 | ;; |
12405 | *) |
12406 | shrext_cmds='.sl' |
12407 | dynamic_linker="$host_os dld.sl" |
12408 | shlibpath_var=SHLIB_PATH |
12409 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
12410 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12411 | soname_spec='${libname}${release}${shared_ext}$major' |
12412 | ;; |
12413 | esac |
12414 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
12415 | postinstall_cmds='chmod 555 $lib' |
12416 | ;; |
12417 | |
12418 | interix3*) |
12419 | version_type=linux |
12420 | need_lib_prefix=no |
12421 | need_version=no |
12422 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12423 | soname_spec='${libname}${release}${shared_ext}$major' |
12424 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
12425 | shlibpath_var=LD_LIBRARY_PATH |
12426 | shlibpath_overrides_runpath=no |
12427 | hardcode_into_libs=yes |
12428 | ;; |
12429 | |
12430 | irix5* | irix6* | nonstopux*) |
12431 | case $host_os in |
12432 | nonstopux*) version_type=nonstopux ;; |
12433 | *) |
12434 | if test "$lt_cv_prog_gnu_ld" = yes; then |
12435 | version_type=linux |
12436 | else |
12437 | version_type=irix |
12438 | fi ;; |
12439 | esac |
12440 | need_lib_prefix=no |
12441 | need_version=no |
12442 | soname_spec='${libname}${release}${shared_ext}$major' |
12443 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
12444 | case $host_os in |
12445 | irix5* | nonstopux*) |
12446 | libsuff= shlibsuff= |
12447 | ;; |
12448 | *) |
12449 | case $LD in # libtool.m4 will add one of these switches to LD |
12450 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
12451 | libsuff= shlibsuff= libmagic=32-bit;; |
12452 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
12453 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
12454 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
12455 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
12456 | *) libsuff= shlibsuff= libmagic=never-match;; |
12457 | esac |
12458 | ;; |
12459 | esac |
12460 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
12461 | shlibpath_overrides_runpath=no |
12462 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
12463 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
12464 | hardcode_into_libs=yes |
12465 | ;; |
12466 | |
12467 | # No shared lib support for Linux oldld, aout, or coff. |
12468 | linux*oldld* | linux*aout* | linux*coff*) |
12469 | dynamic_linker=no |
12470 | ;; |
12471 | |
12472 | # This must be Linux ELF. |
12473 | linux*) |
12474 | version_type=linux |
12475 | need_lib_prefix=no |
12476 | need_version=no |
12477 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12478 | soname_spec='${libname}${release}${shared_ext}$major' |
12479 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
12480 | shlibpath_var=LD_LIBRARY_PATH |
12481 | shlibpath_overrides_runpath=no |
12482 | # This implies no fast_install, which is unacceptable. |
12483 | # Some rework will be needed to allow for fast_install |
12484 | # before this can be enabled. |
12485 | hardcode_into_libs=yes |
12486 | |
12487 | # find out which ABI we are using |
12488 | libsuff= |
12489 | case "$host_cpu" in |
12490 | x86_64*|s390x*|powerpc64*) |
12491 | echo '#line 12491 "configure"' > conftest.$ac_ext |
12492 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12493 | (eval $ac_compile) 2>&5 |
12494 | ac_status=$? |
12495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12496 | (exit $ac_status); }; then |
12497 | case `/usr/bin/file conftest.$ac_objext` in |
12498 | *64-bit*) |
12499 | libsuff=64 |
12500 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
12501 | ;; |
12502 | esac |
12503 | fi |
12504 | rm -rf conftest* |
12505 | ;; |
12506 | esac |
12507 | |
12508 | # Append ld.so.conf contents to the search path |
12509 | if test -f /etc/ld.so.conf; then |
12510 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
12511 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
12512 | fi |
12513 | |
12514 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
12515 | # powerpc, because MkLinux only supported shared libraries with the |
12516 | # GNU dynamic linker. Since this was broken with cross compilers, |
12517 | # most powerpc-linux boxes support dynamic linking these days and |
12518 | # people can always --disable-shared, the test was removed, and we |
12519 | # assume the GNU/Linux dynamic linker is in use. |
12520 | dynamic_linker='GNU/Linux ld.so' |
12521 | ;; |
12522 | |
12523 | knetbsd*-gnu) |
12524 | version_type=linux |
12525 | need_lib_prefix=no |
12526 | need_version=no |
12527 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12528 | soname_spec='${libname}${release}${shared_ext}$major' |
12529 | shlibpath_var=LD_LIBRARY_PATH |
12530 | shlibpath_overrides_runpath=no |
12531 | hardcode_into_libs=yes |
12532 | dynamic_linker='GNU ld.so' |
12533 | ;; |
12534 | |
12535 | netbsd*) |
12536 | version_type=sunos |
12537 | need_lib_prefix=no |
12538 | need_version=no |
12539 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
12540 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
12541 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
12542 | dynamic_linker='NetBSD (a.out) ld.so' |
12543 | else |
12544 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12545 | soname_spec='${libname}${release}${shared_ext}$major' |
12546 | dynamic_linker='NetBSD ld.elf_so' |
12547 | fi |
12548 | shlibpath_var=LD_LIBRARY_PATH |
12549 | shlibpath_overrides_runpath=yes |
12550 | hardcode_into_libs=yes |
12551 | ;; |
12552 | |
12553 | newsos6) |
12554 | version_type=linux |
12555 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12556 | shlibpath_var=LD_LIBRARY_PATH |
12557 | shlibpath_overrides_runpath=yes |
12558 | ;; |
12559 | |
12560 | nto-qnx*) |
12561 | version_type=linux |
12562 | need_lib_prefix=no |
12563 | need_version=no |
12564 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12565 | soname_spec='${libname}${release}${shared_ext}$major' |
12566 | shlibpath_var=LD_LIBRARY_PATH |
12567 | shlibpath_overrides_runpath=yes |
12568 | ;; |
12569 | |
12570 | openbsd*) |
12571 | version_type=sunos |
12572 | sys_lib_dlsearch_path_spec="/usr/lib" |
12573 | need_lib_prefix=no |
12574 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
12575 | case $host_os in |
12576 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
12577 | *) need_version=no ;; |
12578 | esac |
12579 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
12580 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
12581 | shlibpath_var=LD_LIBRARY_PATH |
12582 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
12583 | case $host_os in |
12584 | openbsd2.[89] | openbsd2.[89].*) |
12585 | shlibpath_overrides_runpath=no |
12586 | ;; |
12587 | *) |
12588 | shlibpath_overrides_runpath=yes |
12589 | ;; |
12590 | esac |
12591 | else |
12592 | shlibpath_overrides_runpath=yes |
12593 | fi |
12594 | ;; |
12595 | |
12596 | os2*) |
12597 | libname_spec='$name' |
12598 | shrext_cmds=".dll" |
12599 | need_lib_prefix=no |
12600 | library_names_spec='$libname${shared_ext} $libname.a' |
12601 | dynamic_linker='OS/2 ld.exe' |
12602 | shlibpath_var=LIBPATH |
12603 | ;; |
12604 | |
12605 | osf3* | osf4* | osf5*) |
12606 | version_type=osf |
12607 | need_lib_prefix=no |
12608 | need_version=no |
12609 | soname_spec='${libname}${release}${shared_ext}$major' |
12610 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12611 | shlibpath_var=LD_LIBRARY_PATH |
12612 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
12613 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
12614 | ;; |
12615 | |
12616 | solaris*) |
12617 | version_type=linux |
12618 | need_lib_prefix=no |
12619 | need_version=no |
12620 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12621 | soname_spec='${libname}${release}${shared_ext}$major' |
12622 | shlibpath_var=LD_LIBRARY_PATH |
12623 | shlibpath_overrides_runpath=yes |
12624 | hardcode_into_libs=yes |
12625 | # ldd complains unless libraries are executable |
12626 | postinstall_cmds='chmod +x $lib' |
12627 | ;; |
12628 | |
12629 | sunos4*) |
12630 | version_type=sunos |
12631 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
12632 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
12633 | shlibpath_var=LD_LIBRARY_PATH |
12634 | shlibpath_overrides_runpath=yes |
12635 | if test "$with_gnu_ld" = yes; then |
12636 | need_lib_prefix=no |
12637 | fi |
12638 | need_version=yes |
12639 | ;; |
12640 | |
12641 | sysv4 | sysv4.3*) |
12642 | version_type=linux |
12643 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12644 | soname_spec='${libname}${release}${shared_ext}$major' |
12645 | shlibpath_var=LD_LIBRARY_PATH |
12646 | case $host_vendor in |
12647 | sni) |
12648 | shlibpath_overrides_runpath=no |
12649 | need_lib_prefix=no |
12650 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
12651 | runpath_var=LD_RUN_PATH |
12652 | ;; |
12653 | siemens) |
12654 | need_lib_prefix=no |
12655 | ;; |
12656 | motorola) |
12657 | need_lib_prefix=no |
12658 | need_version=no |
12659 | shlibpath_overrides_runpath=no |
12660 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
12661 | ;; |
12662 | esac |
12663 | ;; |
12664 | |
12665 | sysv4*MP*) |
12666 | if test -d /usr/nec ;then |
12667 | version_type=linux |
12668 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
12669 | soname_spec='$libname${shared_ext}.$major' |
12670 | shlibpath_var=LD_LIBRARY_PATH |
12671 | fi |
12672 | ;; |
12673 | |
12674 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
12675 | version_type=freebsd-elf |
12676 | need_lib_prefix=no |
12677 | need_version=no |
12678 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
12679 | soname_spec='${libname}${release}${shared_ext}$major' |
12680 | shlibpath_var=LD_LIBRARY_PATH |
12681 | hardcode_into_libs=yes |
12682 | if test "$with_gnu_ld" = yes; then |
12683 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
12684 | shlibpath_overrides_runpath=no |
12685 | else |
12686 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
12687 | shlibpath_overrides_runpath=yes |
12688 | case $host_os in |
12689 | sco3.2v5*) |
12690 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
12691 | ;; |
12692 | esac |
12693 | fi |
12694 | sys_lib_dlsearch_path_spec='/usr/lib' |
12695 | ;; |
12696 | |
12697 | uts4*) |
12698 | version_type=linux |
12699 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12700 | soname_spec='${libname}${release}${shared_ext}$major' |
12701 | shlibpath_var=LD_LIBRARY_PATH |
12702 | ;; |
12703 | |
12704 | *) |
12705 | dynamic_linker=no |
12706 | ;; |
12707 | esac |
12708 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
12709 | echo "${ECHO_T}$dynamic_linker" >&6 |
12710 | test "$dynamic_linker" = no && can_build_shared=no |
12711 | |
12712 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
12713 | if test "$GCC" = yes; then |
12714 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
12715 | fi |
12716 | |
12717 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
12718 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
12719 | hardcode_action_CXX= |
12720 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
12721 | test -n "$runpath_var_CXX" || \ |
12722 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
12723 | |
12724 | # We can hardcode non-existant directories. |
12725 | if test "$hardcode_direct_CXX" != no && |
12726 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
12727 | # have to relink, otherwise we might link with an installed library |
12728 | # when we should be linking with a yet-to-be-installed one |
12729 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
12730 | test "$hardcode_minus_L_CXX" != no; then |
12731 | # Linking always hardcodes the temporary library directory. |
12732 | hardcode_action_CXX=relink |
12733 | else |
12734 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
12735 | hardcode_action_CXX=immediate |
12736 | fi |
12737 | else |
12738 | # We cannot hardcode anything, or else we can only hardcode existing |
12739 | # directories. |
12740 | hardcode_action_CXX=unsupported |
12741 | fi |
12742 | echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
12743 | echo "${ECHO_T}$hardcode_action_CXX" >&6 |
12744 | |
12745 | if test "$hardcode_action_CXX" = relink; then |
12746 | # Fast installation is not supported |
12747 | enable_fast_install=no |
12748 | elif test "$shlibpath_overrides_runpath" = yes || |
12749 | test "$enable_shared" = no; then |
12750 | # Fast installation is not necessary |
12751 | enable_fast_install=needless |
12752 | fi |
12753 | |
12754 | |
12755 | # The else clause should only fire when bootstrapping the |
12756 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
12757 | # with your package, and you will get complaints that there are |
12758 | # no rules to generate ltmain.sh. |
12759 | if test -f "$ltmain"; then |
12760 | # See if we are running on zsh, and set the options which allow our commands through |
12761 | # without removal of \ escapes. |
12762 | if test -n "${ZSH_VERSION+set}" ; then |
12763 | setopt NO_GLOB_SUBST |
12764 | fi |
12765 | # Now quote all the things that may contain metacharacters while being |
12766 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
12767 | # variables and quote the copies for generation of the libtool script. |
12768 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
12769 | SED SHELL STRIP \ |
12770 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
12771 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
12772 | deplibs_check_method reload_flag reload_cmds need_locks \ |
12773 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
12774 | lt_cv_sys_global_symbol_to_c_name_address \ |
12775 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
12776 | old_postinstall_cmds old_postuninstall_cmds \ |
12777 | compiler_CXX \ |
12778 | CC_CXX \ |
12779 | LD_CXX \ |
12780 | lt_prog_compiler_wl_CXX \ |
12781 | lt_prog_compiler_pic_CXX \ |
12782 | lt_prog_compiler_static_CXX \ |
12783 | lt_prog_compiler_no_builtin_flag_CXX \ |
12784 | export_dynamic_flag_spec_CXX \ |
12785 | thread_safe_flag_spec_CXX \ |
12786 | whole_archive_flag_spec_CXX \ |
12787 | enable_shared_with_static_runtimes_CXX \ |
12788 | old_archive_cmds_CXX \ |
12789 | old_archive_from_new_cmds_CXX \ |
12790 | predep_objects_CXX \ |
12791 | postdep_objects_CXX \ |
12792 | predeps_CXX \ |
12793 | postdeps_CXX \ |
12794 | compiler_lib_search_path_CXX \ |
12795 | archive_cmds_CXX \ |
12796 | archive_expsym_cmds_CXX \ |
12797 | postinstall_cmds_CXX \ |
12798 | postuninstall_cmds_CXX \ |
12799 | old_archive_from_expsyms_cmds_CXX \ |
12800 | allow_undefined_flag_CXX \ |
12801 | no_undefined_flag_CXX \ |
12802 | export_symbols_cmds_CXX \ |
12803 | hardcode_libdir_flag_spec_CXX \ |
12804 | hardcode_libdir_flag_spec_ld_CXX \ |
12805 | hardcode_libdir_separator_CXX \ |
12806 | hardcode_automatic_CXX \ |
12807 | module_cmds_CXX \ |
12808 | module_expsym_cmds_CXX \ |
12809 | lt_cv_prog_compiler_c_o_CXX \ |
12810 | exclude_expsyms_CXX \ |
12811 | include_expsyms_CXX; do |
12812 | |
12813 | case $var in |
12814 | old_archive_cmds_CXX | \ |
12815 | old_archive_from_new_cmds_CXX | \ |
12816 | archive_cmds_CXX | \ |
12817 | archive_expsym_cmds_CXX | \ |
12818 | module_cmds_CXX | \ |
12819 | module_expsym_cmds_CXX | \ |
12820 | old_archive_from_expsyms_cmds_CXX | \ |
12821 | export_symbols_cmds_CXX | \ |
12822 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
12823 | postinstall_cmds | postuninstall_cmds | \ |
12824 | old_postinstall_cmds | old_postuninstall_cmds | \ |
12825 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
12826 | # Double-quote double-evaled strings. |
12827 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
12828 | ;; |
12829 | *) |
12830 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
12831 | ;; |
12832 | esac |
12833 | done |
12834 | |
12835 | case $lt_echo in |
12836 | *'\$0 --fallback-echo"') |
12837 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
12838 | ;; |
12839 | esac |
12840 | |
12841 | cfgfile="$ofile" |
12842 | |
12843 | cat <<__EOF__ >> "$cfgfile" |
12844 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
12845 | |
12846 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
12847 | |
12848 | # Shell to use when invoking shell scripts. |
12849 | SHELL=$lt_SHELL |
12850 | |
12851 | # Whether or not to build shared libraries. |
12852 | build_libtool_libs=$enable_shared |
12853 | |
12854 | # Whether or not to build static libraries. |
12855 | build_old_libs=$enable_static |
12856 | |
12857 | # Whether or not to add -lc for building shared libraries. |
12858 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
12859 | |
12860 | # Whether or not to disallow shared libs when runtime libs are static |
12861 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
12862 | |
12863 | # Whether or not to optimize for fast installation. |
12864 | fast_install=$enable_fast_install |
12865 | |
12866 | # The host system. |
12867 | host_alias=$host_alias |
12868 | host=$host |
12869 | host_os=$host_os |
12870 | |
12871 | # The build system. |
12872 | build_alias=$build_alias |
12873 | build=$build |
12874 | build_os=$build_os |
12875 | |
12876 | # An echo program that does not interpret backslashes. |
12877 | echo=$lt_echo |
12878 | |
12879 | # The archiver. |
12880 | AR=$lt_AR |
12881 | AR_FLAGS=$lt_AR_FLAGS |
12882 | |
12883 | # A C compiler. |
12884 | LTCC=$lt_LTCC |
12885 | |
12886 | # LTCC compiler flags. |
12887 | LTCFLAGS=$lt_LTCFLAGS |
12888 | |
12889 | # A language-specific compiler. |
12890 | CC=$lt_compiler_CXX |
12891 | |
12892 | # Is the compiler the GNU C compiler? |
12893 | with_gcc=$GCC_CXX |
12894 | |
12895 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` |
12896 | gcc_ver=\`gcc -dumpversion\` |
12897 | |
12898 | # An ERE matcher. |
12899 | EGREP=$lt_EGREP |
12900 | |
12901 | # The linker used to build libraries. |
12902 | LD=$lt_LD_CXX |
12903 | |
12904 | # Whether we need hard or soft links. |
12905 | LN_S=$lt_LN_S |
12906 | |
12907 | # A BSD-compatible nm program. |
12908 | NM=$lt_NM |
12909 | |
12910 | # A symbol stripping program |
12911 | STRIP=$lt_STRIP |
12912 | |
12913 | # Used to examine libraries when file_magic_cmd begins "file" |
12914 | MAGIC_CMD=$MAGIC_CMD |
12915 | |
12916 | # Used on cygwin: DLL creation program. |
12917 | DLLTOOL="$DLLTOOL" |
12918 | |
12919 | # Used on cygwin: object dumper. |
12920 | OBJDUMP="$OBJDUMP" |
12921 | |
12922 | # Used on cygwin: assembler. |
12923 | AS="$AS" |
12924 | |
12925 | # The name of the directory that contains temporary libtool files. |
12926 | objdir=$objdir |
12927 | |
12928 | # How to create reloadable object files. |
12929 | reload_flag=$lt_reload_flag |
12930 | reload_cmds=$lt_reload_cmds |
12931 | |
12932 | # How to pass a linker flag through the compiler. |
12933 | wl=$lt_lt_prog_compiler_wl_CXX |
12934 | |
12935 | # Object file suffix (normally "o"). |
12936 | objext="$ac_objext" |
12937 | |
12938 | # Old archive suffix (normally "a"). |
12939 | libext="$libext" |
12940 | |
12941 | # Shared library suffix (normally ".so"). |
12942 | shrext_cmds='$shrext_cmds' |
12943 | |
12944 | # Executable file suffix (normally ""). |
12945 | exeext="$exeext" |
12946 | |
12947 | # Additional compiler flags for building library objects. |
12948 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
12949 | pic_mode=$pic_mode |
12950 | |
12951 | # What is the maximum length of a command? |
12952 | max_cmd_len=$lt_cv_sys_max_cmd_len |
12953 | |
12954 | # Does compiler simultaneously support -c and -o options? |
12955 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
12956 | |
12957 | # Must we lock files when doing compilation? |
12958 | need_locks=$lt_need_locks |
12959 | |
12960 | # Do we need the lib prefix for modules? |
12961 | need_lib_prefix=$need_lib_prefix |
12962 | |
12963 | # Do we need a version for libraries? |
12964 | need_version=$need_version |
12965 | |
12966 | # Whether dlopen is supported. |
12967 | dlopen_support=$enable_dlopen |
12968 | |
12969 | # Whether dlopen of programs is supported. |
12970 | dlopen_self=$enable_dlopen_self |
12971 | |
12972 | # Whether dlopen of statically linked programs is supported. |
12973 | dlopen_self_static=$enable_dlopen_self_static |
12974 | |
12975 | # Compiler flag to prevent dynamic linking. |
12976 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
12977 | |
12978 | # Compiler flag to turn off builtin functions. |
12979 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
12980 | |
12981 | # Compiler flag to allow reflexive dlopens. |
12982 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
12983 | |
12984 | # Compiler flag to generate shared objects directly from archives. |
12985 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
12986 | |
12987 | # Compiler flag to generate thread-safe objects. |
12988 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
12989 | |
12990 | # Library versioning type. |
12991 | version_type=$version_type |
12992 | |
12993 | # Format of library name prefix. |
12994 | libname_spec=$lt_libname_spec |
12995 | |
12996 | # List of archive names. First name is the real one, the rest are links. |
12997 | # The last name is the one that the linker finds with -lNAME. |
12998 | library_names_spec=$lt_library_names_spec |
12999 | |
13000 | # The coded name of the library, if different from the real name. |
13001 | soname_spec=$lt_soname_spec |
13002 | |
13003 | # Commands used to build and install an old-style archive. |
13004 | RANLIB=$lt_RANLIB |
13005 | old_archive_cmds=$lt_old_archive_cmds_CXX |
13006 | old_postinstall_cmds=$lt_old_postinstall_cmds |
13007 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
13008 | |
13009 | # Create an old-style archive from a shared archive. |
13010 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
13011 | |
13012 | # Create a temporary old-style archive to link instead of a shared archive. |
13013 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
13014 | |
13015 | # Commands used to build and install a shared archive. |
13016 | archive_cmds=$lt_archive_cmds_CXX |
13017 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
13018 | postinstall_cmds=$lt_postinstall_cmds |
13019 | postuninstall_cmds=$lt_postuninstall_cmds |
13020 | |
13021 | # Commands used to build a loadable module (assumed same as above if empty) |
13022 | module_cmds=$lt_module_cmds_CXX |
13023 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
13024 | |
13025 | # Commands to strip libraries. |
13026 | old_striplib=$lt_old_striplib |
13027 | striplib=$lt_striplib |
13028 | |
13029 | # Dependencies to place before the objects being linked to create a |
13030 | # shared library. |
13031 | predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
13032 | |
13033 | # Dependencies to place after the objects being linked to create a |
13034 | # shared library. |
13035 | postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
13036 | |
13037 | # Dependencies to place before the objects being linked to create a |
13038 | # shared library. |
13039 | predeps=$lt_predeps_CXX |
13040 | |
13041 | # Dependencies to place after the objects being linked to create a |
13042 | # shared library. |
13043 | postdeps=$lt_postdeps_CXX |
13044 | |
13045 | # The library search path used internally by the compiler when linking |
13046 | # a shared library. |
13047 | compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
13048 | |
13049 | # Method to check whether dependent libraries are shared objects. |
13050 | deplibs_check_method=$lt_deplibs_check_method |
13051 | |
13052 | # Command to use when deplibs_check_method == file_magic. |
13053 | file_magic_cmd=$lt_file_magic_cmd |
13054 | |
13055 | # Flag that allows shared libraries with undefined symbols to be built. |
13056 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
13057 | |
13058 | # Flag that forces no undefined symbols. |
13059 | no_undefined_flag=$lt_no_undefined_flag_CXX |
13060 | |
13061 | # Commands used to finish a libtool library installation in a directory. |
13062 | finish_cmds=$lt_finish_cmds |
13063 | |
13064 | # Same as above, but a single script fragment to be evaled but not shown. |
13065 | finish_eval=$lt_finish_eval |
13066 | |
13067 | # Take the output of nm and produce a listing of raw symbols and C names. |
13068 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
13069 | |
13070 | # Transform the output of nm in a proper C declaration |
13071 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
13072 | |
13073 | # Transform the output of nm in a C name address pair |
13074 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
13075 | |
13076 | # This is the shared library runtime path variable. |
13077 | runpath_var=$runpath_var |
13078 | |
13079 | # This is the shared library path variable. |
13080 | shlibpath_var=$shlibpath_var |
13081 | |
13082 | # Is shlibpath searched before the hard-coded library search path? |
13083 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
13084 | |
13085 | # How to hardcode a shared library path into an executable. |
13086 | hardcode_action=$hardcode_action_CXX |
13087 | |
13088 | # Whether we should hardcode library paths into libraries. |
13089 | hardcode_into_libs=$hardcode_into_libs |
13090 | |
13091 | # Flag to hardcode \$libdir into a binary during linking. |
13092 | # This must work even if \$libdir does not exist. |
13093 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
13094 | |
13095 | # If ld is used when linking, flag to hardcode \$libdir into |
13096 | # a binary during linking. This must work even if \$libdir does |
13097 | # not exist. |
13098 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
13099 | |
13100 | # Whether we need a single -rpath flag with a separated argument. |
13101 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
13102 | |
13103 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
13104 | # resulting binary. |
13105 | hardcode_direct=$hardcode_direct_CXX |
13106 | |
13107 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
13108 | # resulting binary. |
13109 | hardcode_minus_L=$hardcode_minus_L_CXX |
13110 | |
13111 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
13112 | # the resulting binary. |
13113 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
13114 | |
13115 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
13116 | # and all subsequent libraries and executables linked against it. |
13117 | hardcode_automatic=$hardcode_automatic_CXX |
13118 | |
13119 | # Variables whose values should be saved in libtool wrapper scripts and |
13120 | # restored at relink time. |
13121 | variables_saved_for_relink="$variables_saved_for_relink" |
13122 | |
13123 | # Whether libtool must link a program against all its dependency libraries. |
13124 | link_all_deplibs=$link_all_deplibs_CXX |
13125 | |
13126 | # Compile-time system search path for libraries |
13127 | sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
13128 | |
13129 | # Run-time system search path for libraries |
13130 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
13131 | |
13132 | # Fix the shell variable \$srcfile for the compiler. |
13133 | fix_srcfile_path="$fix_srcfile_path_CXX" |
13134 | |
13135 | # Set to yes if exported symbols are required. |
13136 | always_export_symbols=$always_export_symbols_CXX |
13137 | |
13138 | # The commands to list exported symbols. |
13139 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
13140 | |
13141 | # The commands to extract the exported symbol list from a shared archive. |
13142 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
13143 | |
13144 | # Symbols that should not be listed in the preloaded symbols. |
13145 | exclude_expsyms=$lt_exclude_expsyms_CXX |
13146 | |
13147 | # Symbols that must always be exported. |
13148 | include_expsyms=$lt_include_expsyms_CXX |
13149 | |
13150 | # ### END LIBTOOL TAG CONFIG: $tagname |
13151 | |
13152 | __EOF__ |
13153 | |
13154 | |
13155 | else |
13156 | # If there is no Makefile yet, we rely on a make rule to execute |
13157 | # `config.status --recheck' to rerun these tests and create the |
13158 | # libtool script then. |
13159 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
13160 | if test -f "$ltmain_in"; then |
13161 | test -f Makefile && make "$ltmain" |
13162 | fi |
13163 | fi |
13164 | |
13165 | |
13166 | ac_ext=c |
13167 | ac_cpp='$CPP $CPPFLAGS' |
13168 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
13169 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
13170 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
13171 | |
13172 | CC=$lt_save_CC |
13173 | LDCXX=$LD |
13174 | LD=$lt_save_LD |
13175 | GCC=$lt_save_GCC |
13176 | with_gnu_ldcxx=$with_gnu_ld |
13177 | with_gnu_ld=$lt_save_with_gnu_ld |
13178 | lt_cv_path_LDCXX=$lt_cv_path_LD |
13179 | lt_cv_path_LD=$lt_save_path_LD |
13180 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
13181 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
13182 | |
13183 | else |
13184 | tagname="" |
13185 | fi |
13186 | ;; |
13187 | |
13188 | F77) |
13189 | if test -n "$F77" && test "X$F77" != "Xno"; then |
13190 | |
13191 | ac_ext=f |
13192 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
13193 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
13194 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
13195 | |
13196 | |
13197 | archive_cmds_need_lc_F77=no |
13198 | allow_undefined_flag_F77= |
13199 | always_export_symbols_F77=no |
13200 | archive_expsym_cmds_F77= |
13201 | export_dynamic_flag_spec_F77= |
13202 | hardcode_direct_F77=no |
13203 | hardcode_libdir_flag_spec_F77= |
13204 | hardcode_libdir_flag_spec_ld_F77= |
13205 | hardcode_libdir_separator_F77= |
13206 | hardcode_minus_L_F77=no |
13207 | hardcode_automatic_F77=no |
13208 | module_cmds_F77= |
13209 | module_expsym_cmds_F77= |
13210 | link_all_deplibs_F77=unknown |
13211 | old_archive_cmds_F77=$old_archive_cmds |
13212 | no_undefined_flag_F77= |
13213 | whole_archive_flag_spec_F77= |
13214 | enable_shared_with_static_runtimes_F77=no |
13215 | |
13216 | # Source file extension for f77 test sources. |
13217 | ac_ext=f |
13218 | |
13219 | # Object file extension for compiled f77 test sources. |
13220 | objext=o |
13221 | objext_F77=$objext |
13222 | |
13223 | # Code to be used in simple compile tests |
13224 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
13225 | |
13226 | # Code to be used in simple link tests |
13227 | lt_simple_link_test_code=" program t\n end\n" |
13228 | |
13229 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
13230 | |
13231 | # If no C compiler was specified, use CC. |
13232 | LTCC=${LTCC-"$CC"} |
13233 | |
13234 | # If no C compiler flags were specified, use CFLAGS. |
13235 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
13236 | |
13237 | # Allow CC to be a program name with arguments. |
13238 | compiler=$CC |
13239 | |
13240 | |
13241 | # save warnings/boilerplate of simple test code |
13242 | ac_outfile=conftest.$ac_objext |
13243 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
13244 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
13245 | _lt_compiler_boilerplate=`cat conftest.err` |
13246 | $rm conftest* |
13247 | |
13248 | ac_outfile=conftest.$ac_objext |
13249 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
13250 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
13251 | _lt_linker_boilerplate=`cat conftest.err` |
13252 | $rm conftest* |
13253 | |
13254 | |
13255 | # Allow CC to be a program name with arguments. |
13256 | lt_save_CC="$CC" |
13257 | CC=${F77-"f77"} |
13258 | compiler=$CC |
13259 | compiler_F77=$CC |
13260 | for cc_temp in $compiler""; do |
13261 | case $cc_temp in |
13262 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
13263 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
13264 | \-*) ;; |
13265 | *) break;; |
13266 | esac |
13267 | done |
13268 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
13269 | |
13270 | |
13271 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
13272 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
13273 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
13274 | echo "${ECHO_T}$can_build_shared" >&6 |
13275 | |
13276 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
13277 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
13278 | test "$can_build_shared" = "no" && enable_shared=no |
13279 | |
13280 | # On AIX, shared libraries and static libraries use the same namespace, and |
13281 | # are all built from PIC. |
13282 | case $host_os in |
13283 | aix3*) |
13284 | test "$enable_shared" = yes && enable_static=no |
13285 | if test -n "$RANLIB"; then |
13286 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
13287 | postinstall_cmds='$RANLIB $lib' |
13288 | fi |
13289 | ;; |
13290 | aix4* | aix5*) |
13291 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
13292 | test "$enable_shared" = yes && enable_static=no |
13293 | fi |
13294 | ;; |
13295 | esac |
13296 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
13297 | echo "${ECHO_T}$enable_shared" >&6 |
13298 | |
13299 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
13300 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
13301 | # Make sure either enable_shared or enable_static is yes. |
13302 | test "$enable_shared" = yes || enable_static=yes |
13303 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
13304 | echo "${ECHO_T}$enable_static" >&6 |
13305 | |
13306 | GCC_F77="$G77" |
13307 | LD_F77="$LD" |
13308 | |
13309 | lt_prog_compiler_wl_F77= |
13310 | lt_prog_compiler_pic_F77= |
13311 | lt_prog_compiler_static_F77= |
13312 | |
13313 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
13314 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
13315 | |
13316 | if test "$GCC" = yes; then |
13317 | lt_prog_compiler_wl_F77='-Wl,' |
13318 | lt_prog_compiler_static_F77='-static' |
13319 | |
13320 | case $host_os in |
13321 | aix*) |
13322 | # All AIX code is PIC. |
13323 | if test "$host_cpu" = ia64; then |
13324 | # AIX 5 now supports IA64 processor |
13325 | lt_prog_compiler_static_F77='-Bstatic' |
13326 | fi |
13327 | ;; |
13328 | |
13329 | amigaos*) |
13330 | # FIXME: we need at least 68020 code to build shared libraries, but |
13331 | # adding the `-m68020' flag to GCC prevents building anything better, |
13332 | # like `-m68040'. |
13333 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
13334 | ;; |
13335 | |
13336 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
13337 | # PIC is the default for these OSes. |
13338 | ;; |
13339 | |
13340 | mingw* | pw32* | os2*) |
13341 | # This hack is so that the source file can tell whether it is being |
13342 | # built for inclusion in a dll (and should export symbols for example). |
13343 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
13344 | ;; |
13345 | |
13346 | darwin* | rhapsody*) |
13347 | # PIC is the default on this platform |
13348 | # Common symbols not allowed in MH_DYLIB files |
13349 | lt_prog_compiler_pic_F77='-fno-common' |
13350 | ;; |
13351 | |
13352 | interix3*) |
13353 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
13354 | # Instead, we relocate shared libraries at runtime. |
13355 | ;; |
13356 | |
13357 | msdosdjgpp*) |
13358 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
13359 | # on systems that don't support them. |
13360 | lt_prog_compiler_can_build_shared_F77=no |
13361 | enable_shared=no |
13362 | ;; |
13363 | |
13364 | sysv4*MP*) |
13365 | if test -d /usr/nec; then |
13366 | lt_prog_compiler_pic_F77=-Kconform_pic |
13367 | fi |
13368 | ;; |
13369 | |
13370 | hpux*) |
13371 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
13372 | # not for PA HP-UX. |
13373 | case $host_cpu in |
13374 | hppa*64*|ia64*) |
13375 | # +Z the default |
13376 | ;; |
13377 | *) |
13378 | lt_prog_compiler_pic_F77='-fPIC' |
13379 | ;; |
13380 | esac |
13381 | ;; |
13382 | |
13383 | *) |
13384 | lt_prog_compiler_pic_F77='-fPIC' |
13385 | ;; |
13386 | esac |
13387 | else |
13388 | # PORTME Check for flag to pass linker flags through the system compiler. |
13389 | case $host_os in |
13390 | aix*) |
13391 | lt_prog_compiler_wl_F77='-Wl,' |
13392 | if test "$host_cpu" = ia64; then |
13393 | # AIX 5 now supports IA64 processor |
13394 | lt_prog_compiler_static_F77='-Bstatic' |
13395 | else |
13396 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
13397 | fi |
13398 | ;; |
13399 | darwin*) |
13400 | # PIC is the default on this platform |
13401 | # Common symbols not allowed in MH_DYLIB files |
13402 | case $cc_basename in |
13403 | xlc*) |
13404 | lt_prog_compiler_pic_F77='-qnocommon' |
13405 | lt_prog_compiler_wl_F77='-Wl,' |
13406 | ;; |
13407 | esac |
13408 | ;; |
13409 | |
13410 | mingw* | pw32* | os2*) |
13411 | # This hack is so that the source file can tell whether it is being |
13412 | # built for inclusion in a dll (and should export symbols for example). |
13413 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
13414 | ;; |
13415 | |
13416 | hpux9* | hpux10* | hpux11*) |
13417 | lt_prog_compiler_wl_F77='-Wl,' |
13418 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
13419 | # not for PA HP-UX. |
13420 | case $host_cpu in |
13421 | hppa*64*|ia64*) |
13422 | # +Z the default |
13423 | ;; |
13424 | *) |
13425 | lt_prog_compiler_pic_F77='+Z' |
13426 | ;; |
13427 | esac |
13428 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
13429 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
13430 | ;; |
13431 | |
13432 | irix5* | irix6* | nonstopux*) |
13433 | lt_prog_compiler_wl_F77='-Wl,' |
13434 | # PIC (with -KPIC) is the default. |
13435 | lt_prog_compiler_static_F77='-non_shared' |
13436 | ;; |
13437 | |
13438 | newsos6) |
13439 | lt_prog_compiler_pic_F77='-KPIC' |
13440 | lt_prog_compiler_static_F77='-Bstatic' |
13441 | ;; |
13442 | |
13443 | linux*) |
13444 | case $cc_basename in |
13445 | icc* | ecc*) |
13446 | lt_prog_compiler_wl_F77='-Wl,' |
13447 | lt_prog_compiler_pic_F77='-KPIC' |
13448 | lt_prog_compiler_static_F77='-static' |
13449 | ;; |
13450 | pgcc* | pgf77* | pgf90* | pgf95*) |
13451 | # Portland Group compilers (*not* the Pentium gcc compiler, |
13452 | # which looks to be a dead project) |
13453 | lt_prog_compiler_wl_F77='-Wl,' |
13454 | lt_prog_compiler_pic_F77='-fpic' |
13455 | lt_prog_compiler_static_F77='-Bstatic' |
13456 | ;; |
13457 | ccc*) |
13458 | lt_prog_compiler_wl_F77='-Wl,' |
13459 | # All Alpha code is PIC. |
13460 | lt_prog_compiler_static_F77='-non_shared' |
13461 | ;; |
13462 | esac |
13463 | ;; |
13464 | |
13465 | osf3* | osf4* | osf5*) |
13466 | lt_prog_compiler_wl_F77='-Wl,' |
13467 | # All OSF/1 code is PIC. |
13468 | lt_prog_compiler_static_F77='-non_shared' |
13469 | ;; |
13470 | |
13471 | solaris*) |
13472 | lt_prog_compiler_pic_F77='-KPIC' |
13473 | lt_prog_compiler_static_F77='-Bstatic' |
13474 | case $cc_basename in |
13475 | f77* | f90* | f95*) |
13476 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
13477 | *) |
13478 | lt_prog_compiler_wl_F77='-Wl,';; |
13479 | esac |
13480 | ;; |
13481 | |
13482 | sunos4*) |
13483 | lt_prog_compiler_wl_F77='-Qoption ld ' |
13484 | lt_prog_compiler_pic_F77='-PIC' |
13485 | lt_prog_compiler_static_F77='-Bstatic' |
13486 | ;; |
13487 | |
13488 | sysv4 | sysv4.2uw2* | sysv4.3*) |
13489 | lt_prog_compiler_wl_F77='-Wl,' |
13490 | lt_prog_compiler_pic_F77='-KPIC' |
13491 | lt_prog_compiler_static_F77='-Bstatic' |
13492 | ;; |
13493 | |
13494 | sysv4*MP*) |
13495 | if test -d /usr/nec ;then |
13496 | lt_prog_compiler_pic_F77='-Kconform_pic' |
13497 | lt_prog_compiler_static_F77='-Bstatic' |
13498 | fi |
13499 | ;; |
13500 | |
13501 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
13502 | lt_prog_compiler_wl_F77='-Wl,' |
13503 | lt_prog_compiler_pic_F77='-KPIC' |
13504 | lt_prog_compiler_static_F77='-Bstatic' |
13505 | ;; |
13506 | |
13507 | unicos*) |
13508 | lt_prog_compiler_wl_F77='-Wl,' |
13509 | lt_prog_compiler_can_build_shared_F77=no |
13510 | ;; |
13511 | |
13512 | uts4*) |
13513 | lt_prog_compiler_pic_F77='-pic' |
13514 | lt_prog_compiler_static_F77='-Bstatic' |
13515 | ;; |
13516 | |
13517 | *) |
13518 | lt_prog_compiler_can_build_shared_F77=no |
13519 | ;; |
13520 | esac |
13521 | fi |
13522 | |
13523 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
13524 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 |
13525 | |
13526 | # |
13527 | # Check to make sure the PIC flag actually works. |
13528 | # |
13529 | if test -n "$lt_prog_compiler_pic_F77"; then |
13530 | |
13531 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
13532 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 |
13533 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
13534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13535 | else |
13536 | lt_prog_compiler_pic_works_F77=no |
13537 | ac_outfile=conftest.$ac_objext |
13538 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
13539 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
13540 | # Insert the option either (1) after the last *FLAGS variable, or |
13541 | # (2) before a word containing "conftest.", or (3) at the end. |
13542 | # Note that $ac_compile itself does not contain backslashes and begins |
13543 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
13544 | # The option is referenced via a variable to avoid confusing sed. |
13545 | lt_compile=`echo "$ac_compile" | $SED \ |
13546 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
13547 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
13548 | -e 's:$: $lt_compiler_flag:'` |
13549 | (eval echo "\"\$as_me:13549: $lt_compile\"" >&5) |
13550 | (eval "$lt_compile" 2>conftest.err) |
13551 | ac_status=$? |
13552 | cat conftest.err >&5 |
13553 | echo "$as_me:13553: \$? = $ac_status" >&5 |
13554 | if (exit $ac_status) && test -s "$ac_outfile"; then |
13555 | # The compiler can only warn and ignore the option if not recognized |
13556 | # So say no if there are warnings other than the usual output. |
13557 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
13558 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
13559 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
13560 | lt_prog_compiler_pic_works_F77=yes |
13561 | fi |
13562 | fi |
13563 | $rm conftest* |
13564 | |
13565 | fi |
13566 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
13567 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 |
13568 | |
13569 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
13570 | case $lt_prog_compiler_pic_F77 in |
13571 | "" | " "*) ;; |
13572 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
13573 | esac |
13574 | else |
13575 | lt_prog_compiler_pic_F77= |
13576 | lt_prog_compiler_can_build_shared_F77=no |
13577 | fi |
13578 | |
13579 | fi |
13580 | case $host_os in |
13581 | # For platforms which do not support PIC, -DPIC is meaningless: |
13582 | *djgpp*) |
13583 | lt_prog_compiler_pic_F77= |
13584 | ;; |
13585 | *) |
13586 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
13587 | ;; |
13588 | esac |
13589 | |
13590 | # |
13591 | # Check to make sure the static flag actually works. |
13592 | # |
13593 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
13594 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
13595 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
13596 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
13597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13598 | else |
13599 | lt_prog_compiler_static_works_F77=no |
13600 | save_LDFLAGS="$LDFLAGS" |
13601 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
13602 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
13603 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
13604 | # The linker can only warn and ignore the option if not recognized |
13605 | # So say no if there are warnings |
13606 | if test -s conftest.err; then |
13607 | # Append any errors to the config.log. |
13608 | cat conftest.err 1>&5 |
13609 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
13610 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
13611 | if diff conftest.exp conftest.er2 >/dev/null; then |
13612 | lt_prog_compiler_static_works_F77=yes |
13613 | fi |
13614 | else |
13615 | lt_prog_compiler_static_works_F77=yes |
13616 | fi |
13617 | fi |
13618 | $rm conftest* |
13619 | LDFLAGS="$save_LDFLAGS" |
13620 | |
13621 | fi |
13622 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
13623 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6 |
13624 | |
13625 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
13626 | : |
13627 | else |
13628 | lt_prog_compiler_static_F77= |
13629 | fi |
13630 | |
13631 | |
13632 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
13633 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
13634 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
13635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13636 | else |
13637 | lt_cv_prog_compiler_c_o_F77=no |
13638 | $rm -r conftest 2>/dev/null |
13639 | mkdir conftest |
13640 | cd conftest |
13641 | mkdir out |
13642 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
13643 | |
13644 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
13645 | # Insert the option either (1) after the last *FLAGS variable, or |
13646 | # (2) before a word containing "conftest.", or (3) at the end. |
13647 | # Note that $ac_compile itself does not contain backslashes and begins |
13648 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
13649 | lt_compile=`echo "$ac_compile" | $SED \ |
13650 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
13651 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
13652 | -e 's:$: $lt_compiler_flag:'` |
13653 | (eval echo "\"\$as_me:13653: $lt_compile\"" >&5) |
13654 | (eval "$lt_compile" 2>out/conftest.err) |
13655 | ac_status=$? |
13656 | cat out/conftest.err >&5 |
13657 | echo "$as_me:13657: \$? = $ac_status" >&5 |
13658 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
13659 | then |
13660 | # The compiler can only warn and ignore the option if not recognized |
13661 | # So say no if there are warnings |
13662 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
13663 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
13664 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
13665 | lt_cv_prog_compiler_c_o_F77=yes |
13666 | fi |
13667 | fi |
13668 | chmod u+w . 2>&5 |
13669 | $rm conftest* |
13670 | # SGI C++ compiler will create directory out/ii_files/ for |
13671 | # template instantiation |
13672 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
13673 | $rm out/* && rmdir out |
13674 | cd .. |
13675 | rmdir conftest |
13676 | $rm conftest* |
13677 | |
13678 | fi |
13679 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
13680 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 |
13681 | |
13682 | |
13683 | hard_links="nottested" |
13684 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
13685 | # do not overwrite the value of need_locks provided by the user |
13686 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
13687 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
13688 | hard_links=yes |
13689 | $rm conftest* |
13690 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
13691 | touch conftest.a |
13692 | ln conftest.a conftest.b 2>&5 || hard_links=no |
13693 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
13694 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
13695 | echo "${ECHO_T}$hard_links" >&6 |
13696 | if test "$hard_links" = no; then |
13697 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
13698 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
13699 | need_locks=warn |
13700 | fi |
13701 | else |
13702 | need_locks=no |
13703 | fi |
13704 | |
13705 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
13706 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
13707 | |
13708 | runpath_var= |
13709 | allow_undefined_flag_F77= |
13710 | enable_shared_with_static_runtimes_F77=no |
13711 | archive_cmds_F77= |
13712 | archive_expsym_cmds_F77= |
13713 | old_archive_From_new_cmds_F77= |
13714 | old_archive_from_expsyms_cmds_F77= |
13715 | export_dynamic_flag_spec_F77= |
13716 | whole_archive_flag_spec_F77= |
13717 | thread_safe_flag_spec_F77= |
13718 | hardcode_libdir_flag_spec_F77= |
13719 | hardcode_libdir_flag_spec_ld_F77= |
13720 | hardcode_libdir_separator_F77= |
13721 | hardcode_direct_F77=no |
13722 | hardcode_minus_L_F77=no |
13723 | hardcode_shlibpath_var_F77=unsupported |
13724 | link_all_deplibs_F77=unknown |
13725 | hardcode_automatic_F77=no |
13726 | module_cmds_F77= |
13727 | module_expsym_cmds_F77= |
13728 | always_export_symbols_F77=no |
13729 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
13730 | # include_expsyms should be a list of space-separated symbols to be *always* |
13731 | # included in the symbol list |
13732 | include_expsyms_F77= |
13733 | # exclude_expsyms can be an extended regexp of symbols to exclude |
13734 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
13735 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
13736 | # as well as any symbol that contains `d'. |
13737 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
13738 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
13739 | # platforms (ab)use it in PIC code, but their linkers get confused if |
13740 | # the symbol is explicitly referenced. Since portable code cannot |
13741 | # rely on this symbol name, it's probably fine to never include it in |
13742 | # preloaded symbol tables. |
13743 | extract_expsyms_cmds= |
13744 | # Just being paranoid about ensuring that cc_basename is set. |
13745 | for cc_temp in $compiler""; do |
13746 | case $cc_temp in |
13747 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
13748 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
13749 | \-*) ;; |
13750 | *) break;; |
13751 | esac |
13752 | done |
13753 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
13754 | |
13755 | case $host_os in |
13756 | cygwin* | mingw* | pw32*) |
13757 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
13758 | # When not using gcc, we currently assume that we are using |
13759 | # Microsoft Visual C++. |
13760 | if test "$GCC" != yes; then |
13761 | with_gnu_ld=no |
13762 | fi |
13763 | ;; |
13764 | interix*) |
13765 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
13766 | with_gnu_ld=yes |
13767 | ;; |
13768 | openbsd*) |
13769 | with_gnu_ld=no |
13770 | ;; |
13771 | esac |
13772 | |
13773 | ld_shlibs_F77=yes |
13774 | if test "$with_gnu_ld" = yes; then |
13775 | # If archive_cmds runs LD, not CC, wlarc should be empty |
13776 | wlarc='${wl}' |
13777 | |
13778 | # Set some defaults for GNU ld with shared library support. These |
13779 | # are reset later if shared libraries are not supported. Putting them |
13780 | # here allows them to be overridden if necessary. |
13781 | runpath_var=LD_RUN_PATH |
13782 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
13783 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
13784 | # ancient GNU ld didn't support --whole-archive et. al. |
13785 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
13786 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
13787 | else |
13788 | whole_archive_flag_spec_F77= |
13789 | fi |
13790 | supports_anon_versioning=no |
13791 | case `$LD -v 2>/dev/null` in |
13792 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
13793 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
13794 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
13795 | *\ 2.11.*) ;; # other 2.11 versions |
13796 | *) supports_anon_versioning=yes ;; |
13797 | esac |
13798 | |
13799 | # See if GNU ld supports shared libraries. |
13800 | case $host_os in |
13801 | aix3* | aix4* | aix5*) |
13802 | # On AIX/PPC, the GNU linker is very broken |
13803 | if test "$host_cpu" != ia64; then |
13804 | ld_shlibs_F77=no |
13805 | cat <<EOF 1>&2 |
13806 | |
13807 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
13808 | *** to be unable to reliably create shared libraries on AIX. |
13809 | *** Therefore, libtool is disabling shared libraries support. If you |
13810 | *** really care for shared libraries, you may want to modify your PATH |
13811 | *** so that a non-GNU linker is found, and then restart. |
13812 | |
13813 | EOF |
13814 | fi |
13815 | ;; |
13816 | |
13817 | amigaos*) |
13818 | 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)' |
13819 | hardcode_libdir_flag_spec_F77='-L$libdir' |
13820 | hardcode_minus_L_F77=yes |
13821 | |
13822 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
13823 | # that the semantics of dynamic libraries on AmigaOS, at least up |
13824 | # to version 4, is to share data among multiple programs linked |
13825 | # with the same dynamic library. Since this doesn't match the |
13826 | # behavior of shared libraries on other platforms, we can't use |
13827 | # them. |
13828 | ld_shlibs_F77=no |
13829 | ;; |
13830 | |
13831 | beos*) |
13832 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
13833 | allow_undefined_flag_F77=unsupported |
13834 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
13835 | # support --undefined. This deserves some investigation. FIXME |
13836 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
13837 | else |
13838 | ld_shlibs_F77=no |
13839 | fi |
13840 | ;; |
13841 | |
13842 | cygwin* | mingw* | pw32*) |
13843 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
13844 | # as there is no search path for DLLs. |
13845 | hardcode_libdir_flag_spec_F77='-L$libdir' |
13846 | allow_undefined_flag_F77=unsupported |
13847 | always_export_symbols_F77=no |
13848 | enable_shared_with_static_runtimes_F77=yes |
13849 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
13850 | |
13851 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
13852 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
13853 | # If the export-symbols file already is a .def file (1st line |
13854 | # is EXPORTS), use it as is; otherwise, prepend... |
13855 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
13856 | cp $export_symbols $output_objdir/$soname.def; |
13857 | else |
13858 | echo EXPORTS > $output_objdir/$soname.def; |
13859 | cat $export_symbols >> $output_objdir/$soname.def; |
13860 | fi~ |
13861 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
13862 | else |
13863 | ld_shlibs_F77=no |
13864 | fi |
13865 | ;; |
13866 | |
13867 | interix3*) |
13868 | hardcode_direct_F77=no |
13869 | hardcode_shlibpath_var_F77=no |
13870 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
13871 | export_dynamic_flag_spec_F77='${wl}-E' |
13872 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
13873 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
13874 | # default) and relocated if they conflict, which is a slow very memory |
13875 | # consuming and fragmenting process. To avoid this, we pick a random, |
13876 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
13877 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
13878 | archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
13879 | archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
13880 | ;; |
13881 | |
13882 | linux*) |
13883 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
13884 | tmp_addflag= |
13885 | case $cc_basename,$host_cpu in |
13886 | pgcc*) # Portland Group C compiler |
13887 | whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
13888 | tmp_addflag=' $pic_flag' |
13889 | ;; |
13890 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
13891 | whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
13892 | tmp_addflag=' $pic_flag -Mnomain' ;; |
13893 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
13894 | tmp_addflag=' -i_dynamic' ;; |
13895 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
13896 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
13897 | ifc* | ifort*) # Intel Fortran compiler |
13898 | tmp_addflag=' -nofor_main' ;; |
13899 | esac |
13900 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
13901 | |
13902 | if test $supports_anon_versioning = yes; then |
13903 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
13904 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
13905 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
13906 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
13907 | fi |
13908 | else |
13909 | ld_shlibs_F77=no |
13910 | fi |
13911 | ;; |
13912 | |
13913 | netbsd*) |
13914 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
13915 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
13916 | wlarc= |
13917 | else |
13918 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
13919 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
13920 | fi |
13921 | ;; |
13922 | |
13923 | solaris*) |
13924 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
13925 | ld_shlibs_F77=no |
13926 | cat <<EOF 1>&2 |
13927 | |
13928 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
13929 | *** create shared libraries on Solaris systems. Therefore, libtool |
13930 | *** is disabling shared libraries support. We urge you to upgrade GNU |
13931 | *** binutils to release 2.9.1 or newer. Another option is to modify |
13932 | *** your PATH or compiler configuration so that the native linker is |
13933 | *** used, and then restart. |
13934 | |
13935 | EOF |
13936 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
13937 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
13938 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
13939 | else |
13940 | ld_shlibs_F77=no |
13941 | fi |
13942 | ;; |
13943 | |
13944 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
13945 | case `$LD -v 2>&1` in |
13946 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
13947 | ld_shlibs_F77=no |
13948 | cat <<_LT_EOF 1>&2 |
13949 | |
13950 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
13951 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
13952 | *** is disabling shared libraries support. We urge you to upgrade GNU |
13953 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
13954 | *** your PATH or compiler configuration so that the native linker is |
13955 | *** used, and then restart. |
13956 | |
13957 | _LT_EOF |
13958 | ;; |
13959 | *) |
13960 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
13961 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
13962 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
13963 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
13964 | else |
13965 | ld_shlibs_F77=no |
13966 | fi |
13967 | ;; |
13968 | esac |
13969 | ;; |
13970 | |
13971 | sunos4*) |
13972 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
13973 | wlarc= |
13974 | hardcode_direct_F77=yes |
13975 | hardcode_shlibpath_var_F77=no |
13976 | ;; |
13977 | |
13978 | *) |
13979 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
13980 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
13981 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
13982 | else |
13983 | ld_shlibs_F77=no |
13984 | fi |
13985 | ;; |
13986 | esac |
13987 | |
13988 | if test "$ld_shlibs_F77" = no; then |
13989 | runpath_var= |
13990 | hardcode_libdir_flag_spec_F77= |
13991 | export_dynamic_flag_spec_F77= |
13992 | whole_archive_flag_spec_F77= |
13993 | fi |
13994 | else |
13995 | # PORTME fill in a description of your system's linker (not GNU ld) |
13996 | case $host_os in |
13997 | aix3*) |
13998 | allow_undefined_flag_F77=unsupported |
13999 | always_export_symbols_F77=yes |
14000 | 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' |
14001 | # Note: this linker hardcodes the directories in LIBPATH if there |
14002 | # are no directories specified by -L. |
14003 | hardcode_minus_L_F77=yes |
14004 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
14005 | # Neither direct hardcoding nor static linking is supported with a |
14006 | # broken collect2. |
14007 | hardcode_direct_F77=unsupported |
14008 | fi |
14009 | ;; |
14010 | |
14011 | aix4* | aix5*) |
14012 | if test "$host_cpu" = ia64; then |
14013 | # On IA64, the linker does run time linking by default, so we don't |
14014 | # have to do anything special. |
14015 | aix_use_runtimelinking=no |
14016 | exp_sym_flag='-Bexport' |
14017 | no_entry_flag="" |
14018 | else |
14019 | # If we're using GNU nm, then we don't want the "-C" option. |
14020 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
14021 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
14022 | 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' |
14023 | else |
14024 | 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' |
14025 | fi |
14026 | aix_use_runtimelinking=no |
14027 | |
14028 | # Test if we are trying to use run time linking or normal |
14029 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
14030 | # need to do runtime linking. |
14031 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
14032 | for ld_flag in $LDFLAGS; do |
14033 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
14034 | aix_use_runtimelinking=yes |
14035 | break |
14036 | fi |
14037 | done |
14038 | ;; |
14039 | esac |
14040 | |
14041 | exp_sym_flag='-bexport' |
14042 | no_entry_flag='-bnoentry' |
14043 | fi |
14044 | |
14045 | # When large executables or shared objects are built, AIX ld can |
14046 | # have problems creating the table of contents. If linking a library |
14047 | # or program results in "error TOC overflow" add -mminimal-toc to |
14048 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
14049 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
14050 | |
14051 | archive_cmds_F77='' |
14052 | hardcode_direct_F77=yes |
14053 | hardcode_libdir_separator_F77=':' |
14054 | link_all_deplibs_F77=yes |
14055 | |
14056 | if test "$GCC" = yes; then |
14057 | case $host_os in aix4.[012]|aix4.[012].*) |
14058 | # We only want to do this on AIX 4.2 and lower, the check |
14059 | # below for broken collect2 doesn't work under 4.3+ |
14060 | collect2name=`${CC} -print-prog-name=collect2` |
14061 | if test -f "$collect2name" && \ |
14062 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
14063 | then |
14064 | # We have reworked collect2 |
14065 | hardcode_direct_F77=yes |
14066 | else |
14067 | # We have old collect2 |
14068 | hardcode_direct_F77=unsupported |
14069 | # It fails to find uninstalled libraries when the uninstalled |
14070 | # path is not listed in the libpath. Setting hardcode_minus_L |
14071 | # to unsupported forces relinking |
14072 | hardcode_minus_L_F77=yes |
14073 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14074 | hardcode_libdir_separator_F77= |
14075 | fi |
14076 | ;; |
14077 | esac |
14078 | shared_flag='-shared' |
14079 | if test "$aix_use_runtimelinking" = yes; then |
14080 | shared_flag="$shared_flag "'${wl}-G' |
14081 | fi |
14082 | else |
14083 | # not using gcc |
14084 | if test "$host_cpu" = ia64; then |
14085 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
14086 | # chokes on -Wl,-G. The following line is correct: |
14087 | shared_flag='-G' |
14088 | else |
14089 | if test "$aix_use_runtimelinking" = yes; then |
14090 | shared_flag='${wl}-G' |
14091 | else |
14092 | shared_flag='${wl}-bM:SRE' |
14093 | fi |
14094 | fi |
14095 | fi |
14096 | |
14097 | # It seems that -bexpall does not export symbols beginning with |
14098 | # underscore (_), so it is better to generate a list of symbols to export. |
14099 | always_export_symbols_F77=yes |
14100 | if test "$aix_use_runtimelinking" = yes; then |
14101 | # Warning - without using the other runtime loading flags (-brtl), |
14102 | # -berok will link without error, but may produce a broken library. |
14103 | allow_undefined_flag_F77='-berok' |
14104 | # Determine the default libpath from the value encoded in an empty executable. |
14105 | cat >conftest.$ac_ext <<_ACEOF |
14106 | program main |
14107 | |
14108 | end |
14109 | _ACEOF |
14110 | rm -f conftest.$ac_objext conftest$ac_exeext |
14111 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
14112 | (eval $ac_link) 2>conftest.er1 |
14113 | ac_status=$? |
14114 | grep -v '^ *+' conftest.er1 >conftest.err |
14115 | rm -f conftest.er1 |
14116 | cat conftest.err >&5 |
14117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14118 | (exit $ac_status); } && |
14119 | { ac_try='test -z "$ac_f77_werror_flag" |
14120 | || test ! -s conftest.err' |
14121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14122 | (eval $ac_try) 2>&5 |
14123 | ac_status=$? |
14124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14125 | (exit $ac_status); }; } && |
14126 | { ac_try='test -s conftest$ac_exeext' |
14127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14128 | (eval $ac_try) 2>&5 |
14129 | ac_status=$? |
14130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14131 | (exit $ac_status); }; }; then |
14132 | |
14133 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
14134 | }'` |
14135 | # Check for a 64-bit object if we didn't find anything. |
14136 | 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; } |
14137 | }'`; fi |
14138 | else |
14139 | echo "$as_me: failed program was:" >&5 |
14140 | sed 's/^/| /' conftest.$ac_ext >&5 |
14141 | |
14142 | fi |
14143 | rm -f conftest.err conftest.$ac_objext \ |
14144 | conftest$ac_exeext conftest.$ac_ext |
14145 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14146 | |
14147 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
14148 | archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
14149 | else |
14150 | if test "$host_cpu" = ia64; then |
14151 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
14152 | allow_undefined_flag_F77="-z nodefs" |
14153 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
14154 | else |
14155 | # Determine the default libpath from the value encoded in an empty executable. |
14156 | cat >conftest.$ac_ext <<_ACEOF |
14157 | program main |
14158 | |
14159 | end |
14160 | _ACEOF |
14161 | rm -f conftest.$ac_objext conftest$ac_exeext |
14162 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
14163 | (eval $ac_link) 2>conftest.er1 |
14164 | ac_status=$? |
14165 | grep -v '^ *+' conftest.er1 >conftest.err |
14166 | rm -f conftest.er1 |
14167 | cat conftest.err >&5 |
14168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14169 | (exit $ac_status); } && |
14170 | { ac_try='test -z "$ac_f77_werror_flag" |
14171 | || test ! -s conftest.err' |
14172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14173 | (eval $ac_try) 2>&5 |
14174 | ac_status=$? |
14175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14176 | (exit $ac_status); }; } && |
14177 | { ac_try='test -s conftest$ac_exeext' |
14178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14179 | (eval $ac_try) 2>&5 |
14180 | ac_status=$? |
14181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14182 | (exit $ac_status); }; }; then |
14183 | |
14184 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
14185 | }'` |
14186 | # Check for a 64-bit object if we didn't find anything. |
14187 | 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; } |
14188 | }'`; fi |
14189 | else |
14190 | echo "$as_me: failed program was:" >&5 |
14191 | sed 's/^/| /' conftest.$ac_ext >&5 |
14192 | |
14193 | fi |
14194 | rm -f conftest.err conftest.$ac_objext \ |
14195 | conftest$ac_exeext conftest.$ac_ext |
14196 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14197 | |
14198 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
14199 | # Warning - without using the other run time loading flags, |
14200 | # -berok will link without error, but may produce a broken library. |
14201 | no_undefined_flag_F77=' ${wl}-bernotok' |
14202 | allow_undefined_flag_F77=' ${wl}-berok' |
14203 | # Exported symbols can be pulled into shared objects from archives |
14204 | whole_archive_flag_spec_F77='$convenience' |
14205 | archive_cmds_need_lc_F77=yes |
14206 | # This is similar to how AIX traditionally builds its shared libraries. |
14207 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
14208 | fi |
14209 | fi |
14210 | ;; |
14211 | |
14212 | amigaos*) |
14213 | 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)' |
14214 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14215 | hardcode_minus_L_F77=yes |
14216 | # see comment about different semantics on the GNU ld section |
14217 | ld_shlibs_F77=no |
14218 | ;; |
14219 | |
14220 | bsdi[45]*) |
14221 | export_dynamic_flag_spec_F77=-rdynamic |
14222 | ;; |
14223 | |
14224 | cygwin* | mingw* | pw32*) |
14225 | # When not using gcc, we currently assume that we are using |
14226 | # Microsoft Visual C++. |
14227 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
14228 | # no search path for DLLs. |
14229 | hardcode_libdir_flag_spec_F77=' ' |
14230 | allow_undefined_flag_F77=unsupported |
14231 | # Tell ltmain to make .lib files, not .a files. |
14232 | libext=lib |
14233 | # Tell ltmain to make .dll files, not .so files. |
14234 | shrext_cmds=".dll" |
14235 | # FIXME: Setting linknames here is a bad hack. |
14236 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
14237 | # The linker will automatically build a .lib file if we build a DLL. |
14238 | old_archive_From_new_cmds_F77='true' |
14239 | # FIXME: Should let the user specify the lib program. |
14240 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
14241 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
14242 | enable_shared_with_static_runtimes_F77=yes |
14243 | ;; |
14244 | |
14245 | darwin* | rhapsody*) |
14246 | case $host_os in |
14247 | rhapsody* | darwin1.[012]) |
14248 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
14249 | ;; |
14250 | *) # Darwin 1.3 on |
14251 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
14252 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
14253 | else |
14254 | case ${MACOSX_DEPLOYMENT_TARGET} in |
14255 | 10.[012]) |
14256 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
14257 | ;; |
14258 | 10.*) |
14259 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
14260 | ;; |
14261 | esac |
14262 | fi |
14263 | ;; |
14264 | esac |
14265 | archive_cmds_need_lc_F77=no |
14266 | hardcode_direct_F77=no |
14267 | hardcode_automatic_F77=yes |
14268 | hardcode_shlibpath_var_F77=unsupported |
14269 | whole_archive_flag_spec_F77='' |
14270 | link_all_deplibs_F77=yes |
14271 | if test "$GCC" = yes ; then |
14272 | output_verbose_link_cmd='echo' |
14273 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
14274 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
14275 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
14276 | 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}' |
14277 | 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}' |
14278 | else |
14279 | case $cc_basename in |
14280 | xlc*) |
14281 | output_verbose_link_cmd='echo' |
14282 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
14283 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
14284 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
14285 | 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}' |
14286 | 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}' |
14287 | ;; |
14288 | *) |
14289 | ld_shlibs_F77=no |
14290 | ;; |
14291 | esac |
14292 | fi |
14293 | ;; |
14294 | |
14295 | dgux*) |
14296 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14297 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14298 | hardcode_shlibpath_var_F77=no |
14299 | ;; |
14300 | |
14301 | freebsd1*) |
14302 | ld_shlibs_F77=no |
14303 | ;; |
14304 | |
14305 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
14306 | # support. Future versions do this automatically, but an explicit c++rt0.o |
14307 | # does not break anything, and helps significantly (at the cost of a little |
14308 | # extra space). |
14309 | freebsd2.2*) |
14310 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
14311 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14312 | hardcode_direct_F77=yes |
14313 | hardcode_shlibpath_var_F77=no |
14314 | ;; |
14315 | |
14316 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
14317 | freebsd2*) |
14318 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14319 | hardcode_direct_F77=yes |
14320 | hardcode_minus_L_F77=yes |
14321 | hardcode_shlibpath_var_F77=no |
14322 | ;; |
14323 | |
14324 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
14325 | freebsd* | kfreebsd*-gnu | dragonfly*) |
14326 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
14327 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14328 | hardcode_direct_F77=yes |
14329 | hardcode_shlibpath_var_F77=no |
14330 | ;; |
14331 | |
14332 | hpux9*) |
14333 | if test "$GCC" = yes; then |
14334 | 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' |
14335 | else |
14336 | 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' |
14337 | fi |
14338 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14339 | hardcode_libdir_separator_F77=: |
14340 | hardcode_direct_F77=yes |
14341 | |
14342 | # hardcode_minus_L: Not really in the search PATH, |
14343 | # but as the default location of the library. |
14344 | hardcode_minus_L_F77=yes |
14345 | export_dynamic_flag_spec_F77='${wl}-E' |
14346 | ;; |
14347 | |
14348 | hpux10*) |
14349 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
14350 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14351 | else |
14352 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
14353 | fi |
14354 | if test "$with_gnu_ld" = no; then |
14355 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14356 | hardcode_libdir_separator_F77=: |
14357 | |
14358 | hardcode_direct_F77=yes |
14359 | export_dynamic_flag_spec_F77='${wl}-E' |
14360 | |
14361 | # hardcode_minus_L: Not really in the search PATH, |
14362 | # but as the default location of the library. |
14363 | hardcode_minus_L_F77=yes |
14364 | fi |
14365 | ;; |
14366 | |
14367 | hpux11*) |
14368 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
14369 | case $host_cpu in |
14370 | hppa*64*) |
14371 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14372 | ;; |
14373 | ia64*) |
14374 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
14375 | ;; |
14376 | *) |
14377 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14378 | ;; |
14379 | esac |
14380 | else |
14381 | case $host_cpu in |
14382 | hppa*64*) |
14383 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14384 | ;; |
14385 | ia64*) |
14386 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
14387 | ;; |
14388 | *) |
14389 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14390 | ;; |
14391 | esac |
14392 | fi |
14393 | if test "$with_gnu_ld" = no; then |
14394 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14395 | hardcode_libdir_separator_F77=: |
14396 | |
14397 | case $host_cpu in |
14398 | hppa*64*|ia64*) |
14399 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
14400 | hardcode_direct_F77=no |
14401 | hardcode_shlibpath_var_F77=no |
14402 | ;; |
14403 | *) |
14404 | hardcode_direct_F77=yes |
14405 | export_dynamic_flag_spec_F77='${wl}-E' |
14406 | |
14407 | # hardcode_minus_L: Not really in the search PATH, |
14408 | # but as the default location of the library. |
14409 | hardcode_minus_L_F77=yes |
14410 | ;; |
14411 | esac |
14412 | fi |
14413 | ;; |
14414 | |
14415 | irix5* | irix6* | nonstopux*) |
14416 | if test "$GCC" = yes; then |
14417 | 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' |
14418 | else |
14419 | 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' |
14420 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
14421 | fi |
14422 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14423 | hardcode_libdir_separator_F77=: |
14424 | link_all_deplibs_F77=yes |
14425 | ;; |
14426 | |
14427 | netbsd*) |
14428 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
14429 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
14430 | else |
14431 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
14432 | fi |
14433 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14434 | hardcode_direct_F77=yes |
14435 | hardcode_shlibpath_var_F77=no |
14436 | ;; |
14437 | |
14438 | newsos6) |
14439 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14440 | hardcode_direct_F77=yes |
14441 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14442 | hardcode_libdir_separator_F77=: |
14443 | hardcode_shlibpath_var_F77=no |
14444 | ;; |
14445 | |
14446 | openbsd*) |
14447 | hardcode_direct_F77=yes |
14448 | hardcode_shlibpath_var_F77=no |
14449 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
14450 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
14451 | archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
14452 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
14453 | export_dynamic_flag_spec_F77='${wl}-E' |
14454 | else |
14455 | case $host_os in |
14456 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
14457 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14458 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14459 | ;; |
14460 | *) |
14461 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
14462 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
14463 | ;; |
14464 | esac |
14465 | fi |
14466 | ;; |
14467 | |
14468 | os2*) |
14469 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14470 | hardcode_minus_L_F77=yes |
14471 | allow_undefined_flag_F77=unsupported |
14472 | 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' |
14473 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
14474 | ;; |
14475 | |
14476 | osf3*) |
14477 | if test "$GCC" = yes; then |
14478 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
14479 | 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' |
14480 | else |
14481 | allow_undefined_flag_F77=' -expect_unresolved \*' |
14482 | 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' |
14483 | fi |
14484 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14485 | hardcode_libdir_separator_F77=: |
14486 | ;; |
14487 | |
14488 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
14489 | if test "$GCC" = yes; then |
14490 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
14491 | 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' |
14492 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14493 | else |
14494 | allow_undefined_flag_F77=' -expect_unresolved \*' |
14495 | 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' |
14496 | 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~ |
14497 | $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' |
14498 | |
14499 | # Both c and cxx compiler support -rpath directly |
14500 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
14501 | fi |
14502 | hardcode_libdir_separator_F77=: |
14503 | ;; |
14504 | |
14505 | solaris*) |
14506 | no_undefined_flag_F77=' -z text' |
14507 | if test "$GCC" = yes; then |
14508 | wlarc='${wl}' |
14509 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14510 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
14511 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
14512 | else |
14513 | wlarc='' |
14514 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14515 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
14516 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
14517 | fi |
14518 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14519 | hardcode_shlibpath_var_F77=no |
14520 | case $host_os in |
14521 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
14522 | *) |
14523 | # The compiler driver will combine linker options so we |
14524 | # cannot just pass the convience library names through |
14525 | # without $wl, iff we do not link with $LD. |
14526 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
14527 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
14528 | case $wlarc in |
14529 | '') |
14530 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
14531 | *) |
14532 | 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' ;; |
14533 | esac ;; |
14534 | esac |
14535 | link_all_deplibs_F77=yes |
14536 | ;; |
14537 | |
14538 | sunos4*) |
14539 | if test "x$host_vendor" = xsequent; then |
14540 | # Use $CC to link under sequent, because it throws in some extra .o |
14541 | # files that make .init and .fini sections work. |
14542 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
14543 | else |
14544 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
14545 | fi |
14546 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14547 | hardcode_direct_F77=yes |
14548 | hardcode_minus_L_F77=yes |
14549 | hardcode_shlibpath_var_F77=no |
14550 | ;; |
14551 | |
14552 | sysv4) |
14553 | case $host_vendor in |
14554 | sni) |
14555 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14556 | hardcode_direct_F77=yes # is this really true??? |
14557 | ;; |
14558 | siemens) |
14559 | ## LD is ld it makes a PLAMLIB |
14560 | ## CC just makes a GrossModule. |
14561 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
14562 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
14563 | hardcode_direct_F77=no |
14564 | ;; |
14565 | motorola) |
14566 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14567 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
14568 | ;; |
14569 | esac |
14570 | runpath_var='LD_RUN_PATH' |
14571 | hardcode_shlibpath_var_F77=no |
14572 | ;; |
14573 | |
14574 | sysv4.3*) |
14575 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14576 | hardcode_shlibpath_var_F77=no |
14577 | export_dynamic_flag_spec_F77='-Bexport' |
14578 | ;; |
14579 | |
14580 | sysv4*MP*) |
14581 | if test -d /usr/nec; then |
14582 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14583 | hardcode_shlibpath_var_F77=no |
14584 | runpath_var=LD_RUN_PATH |
14585 | hardcode_runpath_var=yes |
14586 | ld_shlibs_F77=yes |
14587 | fi |
14588 | ;; |
14589 | |
14590 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
14591 | no_undefined_flag_F77='${wl}-z,text' |
14592 | archive_cmds_need_lc_F77=no |
14593 | hardcode_shlibpath_var_F77=no |
14594 | runpath_var='LD_RUN_PATH' |
14595 | |
14596 | if test "$GCC" = yes; then |
14597 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
14598 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
14599 | else |
14600 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
14601 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
14602 | fi |
14603 | ;; |
14604 | |
14605 | sysv5* | sco3.2v5* | sco5v6*) |
14606 | # Note: We can NOT use -z defs as we might desire, because we do not |
14607 | # link with -lc, and that would cause any symbols used from libc to |
14608 | # always be unresolved, which means just about no library would |
14609 | # ever link correctly. If we're not using GNU ld we use -z text |
14610 | # though, which does catch some bad symbols but isn't as heavy-handed |
14611 | # as -z defs. |
14612 | no_undefined_flag_F77='${wl}-z,text' |
14613 | allow_undefined_flag_F77='${wl}-z,nodefs' |
14614 | archive_cmds_need_lc_F77=no |
14615 | hardcode_shlibpath_var_F77=no |
14616 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
14617 | hardcode_libdir_separator_F77=':' |
14618 | link_all_deplibs_F77=yes |
14619 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
14620 | runpath_var='LD_RUN_PATH' |
14621 | |
14622 | if test "$GCC" = yes; then |
14623 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14624 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14625 | else |
14626 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14627 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14628 | fi |
14629 | ;; |
14630 | |
14631 | uts4*) |
14632 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14633 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14634 | hardcode_shlibpath_var_F77=no |
14635 | ;; |
14636 | |
14637 | *) |
14638 | ld_shlibs_F77=no |
14639 | ;; |
14640 | esac |
14641 | fi |
14642 | |
14643 | echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
14644 | echo "${ECHO_T}$ld_shlibs_F77" >&6 |
14645 | test "$ld_shlibs_F77" = no && can_build_shared=no |
14646 | |
14647 | # |
14648 | # Do we need to explicitly link libc? |
14649 | # |
14650 | case "x$archive_cmds_need_lc_F77" in |
14651 | x|xyes) |
14652 | # Assume -lc should be added |
14653 | archive_cmds_need_lc_F77=yes |
14654 | |
14655 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
14656 | case $archive_cmds_F77 in |
14657 | *'~'*) |
14658 | # FIXME: we may have to deal with multi-command sequences. |
14659 | ;; |
14660 | '$CC '*) |
14661 | # Test whether the compiler implicitly links with -lc since on some |
14662 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
14663 | # to ld, don't add -lc before -lgcc. |
14664 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
14665 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
14666 | $rm conftest* |
14667 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
14668 | |
14669 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
14670 | (eval $ac_compile) 2>&5 |
14671 | ac_status=$? |
14672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14673 | (exit $ac_status); } 2>conftest.err; then |
14674 | soname=conftest |
14675 | lib=conftest |
14676 | libobjs=conftest.$ac_objext |
14677 | deplibs= |
14678 | wl=$lt_prog_compiler_wl_F77 |
14679 | pic_flag=$lt_prog_compiler_pic_F77 |
14680 | compiler_flags=-v |
14681 | linker_flags=-v |
14682 | verstring= |
14683 | output_objdir=. |
14684 | libname=conftest |
14685 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
14686 | allow_undefined_flag_F77= |
14687 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
14688 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
14689 | ac_status=$? |
14690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14691 | (exit $ac_status); } |
14692 | then |
14693 | archive_cmds_need_lc_F77=no |
14694 | else |
14695 | archive_cmds_need_lc_F77=yes |
14696 | fi |
14697 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
14698 | else |
14699 | cat conftest.err 1>&5 |
14700 | fi |
14701 | $rm conftest* |
14702 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
14703 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 |
14704 | ;; |
14705 | esac |
14706 | fi |
14707 | ;; |
14708 | esac |
14709 | |
14710 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
14711 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
14712 | library_names_spec= |
14713 | libname_spec='lib$name' |
14714 | soname_spec= |
14715 | shrext_cmds=".so" |
14716 | postinstall_cmds= |
14717 | postuninstall_cmds= |
14718 | finish_cmds= |
14719 | finish_eval= |
14720 | shlibpath_var= |
14721 | shlibpath_overrides_runpath=unknown |
14722 | version_type=none |
14723 | dynamic_linker="$host_os ld.so" |
14724 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
14725 | if test "$GCC" = yes; then |
14726 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
14727 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
14728 | # if the path contains ";" then we assume it to be the separator |
14729 | # otherwise default to the standard path separator (i.e. ":") - it is |
14730 | # assumed that no part of a normal pathname contains ";" but that should |
14731 | # okay in the real world where ";" in dirpaths is itself problematic. |
14732 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
14733 | else |
14734 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
14735 | fi |
14736 | else |
14737 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
14738 | fi |
14739 | need_lib_prefix=unknown |
14740 | hardcode_into_libs=no |
14741 | |
14742 | # when you set need_version to no, make sure it does not cause -set_version |
14743 | # flags to be left without arguments |
14744 | need_version=unknown |
14745 | |
14746 | case $host_os in |
14747 | aix3*) |
14748 | version_type=linux |
14749 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
14750 | shlibpath_var=LIBPATH |
14751 | |
14752 | # AIX 3 has no versioning support, so we append a major version to the name. |
14753 | soname_spec='${libname}${release}${shared_ext}$major' |
14754 | ;; |
14755 | |
14756 | aix4* | aix5*) |
14757 | version_type=linux |
14758 | need_lib_prefix=no |
14759 | need_version=no |
14760 | hardcode_into_libs=yes |
14761 | if test "$host_cpu" = ia64; then |
14762 | # AIX 5 supports IA64 |
14763 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
14764 | shlibpath_var=LD_LIBRARY_PATH |
14765 | else |
14766 | # With GCC up to 2.95.x, collect2 would create an import file |
14767 | # for dependence libraries. The import file would start with |
14768 | # the line `#! .'. This would cause the generated library to |
14769 | # depend on `.', always an invalid library. This was fixed in |
14770 | # development snapshots of GCC prior to 3.0. |
14771 | case $host_os in |
14772 | aix4 | aix4.[01] | aix4.[01].*) |
14773 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
14774 | echo ' yes ' |
14775 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
14776 | : |
14777 | else |
14778 | can_build_shared=no |
14779 | fi |
14780 | ;; |
14781 | esac |
14782 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
14783 | # soname into executable. Probably we can add versioning support to |
14784 | # collect2, so additional links can be useful in future. |
14785 | if test "$aix_use_runtimelinking" = yes; then |
14786 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
14787 | # instead of lib<name>.a to let people know that these are not |
14788 | # typical AIX shared libraries. |
14789 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14790 | else |
14791 | # We preserve .a as extension for shared libraries through AIX4.2 |
14792 | # and later when we are not doing run time linking. |
14793 | library_names_spec='${libname}${release}.a $libname.a' |
14794 | soname_spec='${libname}${release}${shared_ext}$major' |
14795 | fi |
14796 | shlibpath_var=LIBPATH |
14797 | fi |
14798 | ;; |
14799 | |
14800 | amigaos*) |
14801 | library_names_spec='$libname.ixlibrary $libname.a' |
14802 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
14803 | 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' |
14804 | ;; |
14805 | |
14806 | beos*) |
14807 | library_names_spec='${libname}${shared_ext}' |
14808 | dynamic_linker="$host_os ld.so" |
14809 | shlibpath_var=LIBRARY_PATH |
14810 | ;; |
14811 | |
14812 | bsdi[45]*) |
14813 | version_type=linux |
14814 | need_version=no |
14815 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14816 | soname_spec='${libname}${release}${shared_ext}$major' |
14817 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
14818 | shlibpath_var=LD_LIBRARY_PATH |
14819 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
14820 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
14821 | # the default ld.so.conf also contains /usr/contrib/lib and |
14822 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
14823 | # libtool to hard-code these into programs |
14824 | ;; |
14825 | |
14826 | cygwin* | mingw* | pw32*) |
14827 | version_type=windows |
14828 | shrext_cmds=".dll" |
14829 | need_version=no |
14830 | need_lib_prefix=no |
14831 | |
14832 | case $GCC,$host_os in |
14833 | yes,cygwin* | yes,mingw* | yes,pw32*) |
14834 | library_names_spec='$libname.dll.a' |
14835 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
14836 | postinstall_cmds='base_file=`basename \${file}`~ |
14837 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
14838 | dldir=$destdir/`dirname \$dlpath`~ |
14839 | test -d \$dldir || mkdir -p \$dldir~ |
14840 | $install_prog $dir/$dlname \$dldir/$dlname~ |
14841 | chmod a+x \$dldir/$dlname' |
14842 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
14843 | dlpath=$dir/\$dldll~ |
14844 | $rm \$dlpath' |
14845 | shlibpath_overrides_runpath=yes |
14846 | |
14847 | case $host_os in |
14848 | cygwin*) |
14849 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
14850 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
14851 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
14852 | ;; |
14853 | mingw*) |
14854 | # MinGW DLLs use traditional 'lib' prefix |
14855 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
14856 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
14857 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
14858 | # It is most probably a Windows format PATH printed by |
14859 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
14860 | # path with ; separators, and with drive letters. We can handle the |
14861 | # drive letters (cygwin fileutils understands them), so leave them, |
14862 | # especially as we might pass files found there to a mingw objdump, |
14863 | # which wouldn't understand a cygwinified path. Ahh. |
14864 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
14865 | else |
14866 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
14867 | fi |
14868 | ;; |
14869 | pw32*) |
14870 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
14871 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
14872 | ;; |
14873 | esac |
14874 | ;; |
14875 | |
14876 | *) |
14877 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
14878 | ;; |
14879 | esac |
14880 | dynamic_linker='Win32 ld.exe' |
14881 | # FIXME: first we should search . and the directory the executable is in |
14882 | shlibpath_var=PATH |
14883 | ;; |
14884 | |
14885 | darwin* | rhapsody*) |
14886 | dynamic_linker="$host_os dyld" |
14887 | version_type=darwin |
14888 | need_lib_prefix=no |
14889 | need_version=no |
14890 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
14891 | soname_spec='${libname}${release}${major}$shared_ext' |
14892 | shlibpath_overrides_runpath=yes |
14893 | shlibpath_var=DYLD_LIBRARY_PATH |
14894 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
14895 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
14896 | if test "$GCC" = yes; then |
14897 | 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"` |
14898 | else |
14899 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
14900 | fi |
14901 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
14902 | ;; |
14903 | |
14904 | dgux*) |
14905 | version_type=linux |
14906 | need_lib_prefix=no |
14907 | need_version=no |
14908 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
14909 | soname_spec='${libname}${release}${shared_ext}$major' |
14910 | shlibpath_var=LD_LIBRARY_PATH |
14911 | ;; |
14912 | |
14913 | freebsd1*) |
14914 | dynamic_linker=no |
14915 | ;; |
14916 | |
14917 | kfreebsd*-gnu) |
14918 | version_type=linux |
14919 | need_lib_prefix=no |
14920 | need_version=no |
14921 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
14922 | soname_spec='${libname}${release}${shared_ext}$major' |
14923 | shlibpath_var=LD_LIBRARY_PATH |
14924 | shlibpath_overrides_runpath=no |
14925 | hardcode_into_libs=yes |
14926 | dynamic_linker='GNU ld.so' |
14927 | ;; |
14928 | |
14929 | freebsd* | dragonfly*) |
14930 | # DragonFly does not have aout. When/if they implement a new |
14931 | # versioning mechanism, adjust this. |
14932 | if test -x /usr/bin/objformat; then |
14933 | objformat=`/usr/bin/objformat` |
14934 | else |
14935 | case $host_os in |
14936 | freebsd[123]*) objformat=aout ;; |
14937 | *) objformat=elf ;; |
14938 | esac |
14939 | fi |
14940 | version_type=freebsd-$objformat |
14941 | case $version_type in |
14942 | freebsd-elf*) |
14943 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
14944 | need_version=no |
14945 | need_lib_prefix=no |
14946 | ;; |
14947 | freebsd-*) |
14948 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
14949 | need_version=yes |
14950 | ;; |
14951 | esac |
14952 | shlibpath_var=LD_LIBRARY_PATH |
14953 | case $host_os in |
14954 | freebsd2*) |
14955 | shlibpath_overrides_runpath=yes |
14956 | ;; |
14957 | freebsd3.[01]* | freebsdelf3.[01]*) |
14958 | shlibpath_overrides_runpath=yes |
14959 | hardcode_into_libs=yes |
14960 | ;; |
14961 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
14962 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
14963 | shlibpath_overrides_runpath=no |
14964 | hardcode_into_libs=yes |
14965 | ;; |
14966 | freebsd*) # from 4.6 on |
14967 | shlibpath_overrides_runpath=yes |
14968 | hardcode_into_libs=yes |
14969 | ;; |
14970 | esac |
14971 | ;; |
14972 | |
14973 | gnu*) |
14974 | version_type=linux |
14975 | need_lib_prefix=no |
14976 | need_version=no |
14977 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
14978 | soname_spec='${libname}${release}${shared_ext}$major' |
14979 | shlibpath_var=LD_LIBRARY_PATH |
14980 | hardcode_into_libs=yes |
14981 | ;; |
14982 | |
14983 | hpux9* | hpux10* | hpux11*) |
14984 | # Give a soname corresponding to the major version so that dld.sl refuses to |
14985 | # link against other versions. |
14986 | version_type=sunos |
14987 | need_lib_prefix=no |
14988 | need_version=no |
14989 | case $host_cpu in |
14990 | ia64*) |
14991 | shrext_cmds='.so' |
14992 | hardcode_into_libs=yes |
14993 | dynamic_linker="$host_os dld.so" |
14994 | shlibpath_var=LD_LIBRARY_PATH |
14995 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
14996 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14997 | soname_spec='${libname}${release}${shared_ext}$major' |
14998 | if test "X$HPUX_IA64_MODE" = X32; then |
14999 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
15000 | else |
15001 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
15002 | fi |
15003 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
15004 | ;; |
15005 | hppa*64*) |
15006 | shrext_cmds='.sl' |
15007 | hardcode_into_libs=yes |
15008 | dynamic_linker="$host_os dld.sl" |
15009 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
15010 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
15011 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15012 | soname_spec='${libname}${release}${shared_ext}$major' |
15013 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
15014 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
15015 | ;; |
15016 | *) |
15017 | shrext_cmds='.sl' |
15018 | dynamic_linker="$host_os dld.sl" |
15019 | shlibpath_var=SHLIB_PATH |
15020 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
15021 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15022 | soname_spec='${libname}${release}${shared_ext}$major' |
15023 | ;; |
15024 | esac |
15025 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
15026 | postinstall_cmds='chmod 555 $lib' |
15027 | ;; |
15028 | |
15029 | interix3*) |
15030 | version_type=linux |
15031 | need_lib_prefix=no |
15032 | need_version=no |
15033 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15034 | soname_spec='${libname}${release}${shared_ext}$major' |
15035 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
15036 | shlibpath_var=LD_LIBRARY_PATH |
15037 | shlibpath_overrides_runpath=no |
15038 | hardcode_into_libs=yes |
15039 | ;; |
15040 | |
15041 | irix5* | irix6* | nonstopux*) |
15042 | case $host_os in |
15043 | nonstopux*) version_type=nonstopux ;; |
15044 | *) |
15045 | if test "$lt_cv_prog_gnu_ld" = yes; then |
15046 | version_type=linux |
15047 | else |
15048 | version_type=irix |
15049 | fi ;; |
15050 | esac |
15051 | need_lib_prefix=no |
15052 | need_version=no |
15053 | soname_spec='${libname}${release}${shared_ext}$major' |
15054 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
15055 | case $host_os in |
15056 | irix5* | nonstopux*) |
15057 | libsuff= shlibsuff= |
15058 | ;; |
15059 | *) |
15060 | case $LD in # libtool.m4 will add one of these switches to LD |
15061 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
15062 | libsuff= shlibsuff= libmagic=32-bit;; |
15063 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
15064 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
15065 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
15066 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
15067 | *) libsuff= shlibsuff= libmagic=never-match;; |
15068 | esac |
15069 | ;; |
15070 | esac |
15071 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
15072 | shlibpath_overrides_runpath=no |
15073 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
15074 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
15075 | hardcode_into_libs=yes |
15076 | ;; |
15077 | |
15078 | # No shared lib support for Linux oldld, aout, or coff. |
15079 | linux*oldld* | linux*aout* | linux*coff*) |
15080 | dynamic_linker=no |
15081 | ;; |
15082 | |
15083 | # This must be Linux ELF. |
15084 | linux*) |
15085 | version_type=linux |
15086 | need_lib_prefix=no |
15087 | need_version=no |
15088 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15089 | soname_spec='${libname}${release}${shared_ext}$major' |
15090 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
15091 | shlibpath_var=LD_LIBRARY_PATH |
15092 | shlibpath_overrides_runpath=no |
15093 | # This implies no fast_install, which is unacceptable. |
15094 | # Some rework will be needed to allow for fast_install |
15095 | # before this can be enabled. |
15096 | hardcode_into_libs=yes |
15097 | |
15098 | # find out which ABI we are using |
15099 | libsuff= |
15100 | case "$host_cpu" in |
15101 | x86_64*|s390x*|powerpc64*) |
15102 | echo '#line 15102 "configure"' > conftest.$ac_ext |
15103 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
15104 | (eval $ac_compile) 2>&5 |
15105 | ac_status=$? |
15106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15107 | (exit $ac_status); }; then |
15108 | case `/usr/bin/file conftest.$ac_objext` in |
15109 | *64-bit*) |
15110 | libsuff=64 |
15111 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
15112 | ;; |
15113 | esac |
15114 | fi |
15115 | rm -rf conftest* |
15116 | ;; |
15117 | esac |
15118 | |
15119 | # Append ld.so.conf contents to the search path |
15120 | if test -f /etc/ld.so.conf; then |
15121 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
15122 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
15123 | fi |
15124 | |
15125 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
15126 | # powerpc, because MkLinux only supported shared libraries with the |
15127 | # GNU dynamic linker. Since this was broken with cross compilers, |
15128 | # most powerpc-linux boxes support dynamic linking these days and |
15129 | # people can always --disable-shared, the test was removed, and we |
15130 | # assume the GNU/Linux dynamic linker is in use. |
15131 | dynamic_linker='GNU/Linux ld.so' |
15132 | ;; |
15133 | |
15134 | knetbsd*-gnu) |
15135 | version_type=linux |
15136 | need_lib_prefix=no |
15137 | need_version=no |
15138 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15139 | soname_spec='${libname}${release}${shared_ext}$major' |
15140 | shlibpath_var=LD_LIBRARY_PATH |
15141 | shlibpath_overrides_runpath=no |
15142 | hardcode_into_libs=yes |
15143 | dynamic_linker='GNU ld.so' |
15144 | ;; |
15145 | |
15146 | netbsd*) |
15147 | version_type=sunos |
15148 | need_lib_prefix=no |
15149 | need_version=no |
15150 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
15151 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15152 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
15153 | dynamic_linker='NetBSD (a.out) ld.so' |
15154 | else |
15155 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15156 | soname_spec='${libname}${release}${shared_ext}$major' |
15157 | dynamic_linker='NetBSD ld.elf_so' |
15158 | fi |
15159 | shlibpath_var=LD_LIBRARY_PATH |
15160 | shlibpath_overrides_runpath=yes |
15161 | hardcode_into_libs=yes |
15162 | ;; |
15163 | |
15164 | newsos6) |
15165 | version_type=linux |
15166 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15167 | shlibpath_var=LD_LIBRARY_PATH |
15168 | shlibpath_overrides_runpath=yes |
15169 | ;; |
15170 | |
15171 | nto-qnx*) |
15172 | version_type=linux |
15173 | need_lib_prefix=no |
15174 | need_version=no |
15175 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15176 | soname_spec='${libname}${release}${shared_ext}$major' |
15177 | shlibpath_var=LD_LIBRARY_PATH |
15178 | shlibpath_overrides_runpath=yes |
15179 | ;; |
15180 | |
15181 | openbsd*) |
15182 | version_type=sunos |
15183 | sys_lib_dlsearch_path_spec="/usr/lib" |
15184 | need_lib_prefix=no |
15185 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
15186 | case $host_os in |
15187 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
15188 | *) need_version=no ;; |
15189 | esac |
15190 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15191 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
15192 | shlibpath_var=LD_LIBRARY_PATH |
15193 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
15194 | case $host_os in |
15195 | openbsd2.[89] | openbsd2.[89].*) |
15196 | shlibpath_overrides_runpath=no |
15197 | ;; |
15198 | *) |
15199 | shlibpath_overrides_runpath=yes |
15200 | ;; |
15201 | esac |
15202 | else |
15203 | shlibpath_overrides_runpath=yes |
15204 | fi |
15205 | ;; |
15206 | |
15207 | os2*) |
15208 | libname_spec='$name' |
15209 | shrext_cmds=".dll" |
15210 | need_lib_prefix=no |
15211 | library_names_spec='$libname${shared_ext} $libname.a' |
15212 | dynamic_linker='OS/2 ld.exe' |
15213 | shlibpath_var=LIBPATH |
15214 | ;; |
15215 | |
15216 | osf3* | osf4* | osf5*) |
15217 | version_type=osf |
15218 | need_lib_prefix=no |
15219 | need_version=no |
15220 | soname_spec='${libname}${release}${shared_ext}$major' |
15221 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15222 | shlibpath_var=LD_LIBRARY_PATH |
15223 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
15224 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
15225 | ;; |
15226 | |
15227 | solaris*) |
15228 | version_type=linux |
15229 | need_lib_prefix=no |
15230 | need_version=no |
15231 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15232 | soname_spec='${libname}${release}${shared_ext}$major' |
15233 | shlibpath_var=LD_LIBRARY_PATH |
15234 | shlibpath_overrides_runpath=yes |
15235 | hardcode_into_libs=yes |
15236 | # ldd complains unless libraries are executable |
15237 | postinstall_cmds='chmod +x $lib' |
15238 | ;; |
15239 | |
15240 | sunos4*) |
15241 | version_type=sunos |
15242 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15243 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
15244 | shlibpath_var=LD_LIBRARY_PATH |
15245 | shlibpath_overrides_runpath=yes |
15246 | if test "$with_gnu_ld" = yes; then |
15247 | need_lib_prefix=no |
15248 | fi |
15249 | need_version=yes |
15250 | ;; |
15251 | |
15252 | sysv4 | sysv4.3*) |
15253 | version_type=linux |
15254 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15255 | soname_spec='${libname}${release}${shared_ext}$major' |
15256 | shlibpath_var=LD_LIBRARY_PATH |
15257 | case $host_vendor in |
15258 | sni) |
15259 | shlibpath_overrides_runpath=no |
15260 | need_lib_prefix=no |
15261 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
15262 | runpath_var=LD_RUN_PATH |
15263 | ;; |
15264 | siemens) |
15265 | need_lib_prefix=no |
15266 | ;; |
15267 | motorola) |
15268 | need_lib_prefix=no |
15269 | need_version=no |
15270 | shlibpath_overrides_runpath=no |
15271 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
15272 | ;; |
15273 | esac |
15274 | ;; |
15275 | |
15276 | sysv4*MP*) |
15277 | if test -d /usr/nec ;then |
15278 | version_type=linux |
15279 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
15280 | soname_spec='$libname${shared_ext}.$major' |
15281 | shlibpath_var=LD_LIBRARY_PATH |
15282 | fi |
15283 | ;; |
15284 | |
15285 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
15286 | version_type=freebsd-elf |
15287 | need_lib_prefix=no |
15288 | need_version=no |
15289 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
15290 | soname_spec='${libname}${release}${shared_ext}$major' |
15291 | shlibpath_var=LD_LIBRARY_PATH |
15292 | hardcode_into_libs=yes |
15293 | if test "$with_gnu_ld" = yes; then |
15294 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
15295 | shlibpath_overrides_runpath=no |
15296 | else |
15297 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
15298 | shlibpath_overrides_runpath=yes |
15299 | case $host_os in |
15300 | sco3.2v5*) |
15301 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
15302 | ;; |
15303 | esac |
15304 | fi |
15305 | sys_lib_dlsearch_path_spec='/usr/lib' |
15306 | ;; |
15307 | |
15308 | uts4*) |
15309 | version_type=linux |
15310 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15311 | soname_spec='${libname}${release}${shared_ext}$major' |
15312 | shlibpath_var=LD_LIBRARY_PATH |
15313 | ;; |
15314 | |
15315 | *) |
15316 | dynamic_linker=no |
15317 | ;; |
15318 | esac |
15319 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
15320 | echo "${ECHO_T}$dynamic_linker" >&6 |
15321 | test "$dynamic_linker" = no && can_build_shared=no |
15322 | |
15323 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
15324 | if test "$GCC" = yes; then |
15325 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
15326 | fi |
15327 | |
15328 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
15329 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
15330 | hardcode_action_F77= |
15331 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
15332 | test -n "$runpath_var_F77" || \ |
15333 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
15334 | |
15335 | # We can hardcode non-existant directories. |
15336 | if test "$hardcode_direct_F77" != no && |
15337 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
15338 | # have to relink, otherwise we might link with an installed library |
15339 | # when we should be linking with a yet-to-be-installed one |
15340 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
15341 | test "$hardcode_minus_L_F77" != no; then |
15342 | # Linking always hardcodes the temporary library directory. |
15343 | hardcode_action_F77=relink |
15344 | else |
15345 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
15346 | hardcode_action_F77=immediate |
15347 | fi |
15348 | else |
15349 | # We cannot hardcode anything, or else we can only hardcode existing |
15350 | # directories. |
15351 | hardcode_action_F77=unsupported |
15352 | fi |
15353 | echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
15354 | echo "${ECHO_T}$hardcode_action_F77" >&6 |
15355 | |
15356 | if test "$hardcode_action_F77" = relink; then |
15357 | # Fast installation is not supported |
15358 | enable_fast_install=no |
15359 | elif test "$shlibpath_overrides_runpath" = yes || |
15360 | test "$enable_shared" = no; then |
15361 | # Fast installation is not necessary |
15362 | enable_fast_install=needless |
15363 | fi |
15364 | |
15365 | |
15366 | # The else clause should only fire when bootstrapping the |
15367 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
15368 | # with your package, and you will get complaints that there are |
15369 | # no rules to generate ltmain.sh. |
15370 | if test -f "$ltmain"; then |
15371 | # See if we are running on zsh, and set the options which allow our commands through |
15372 | # without removal of \ escapes. |
15373 | if test -n "${ZSH_VERSION+set}" ; then |
15374 | setopt NO_GLOB_SUBST |
15375 | fi |
15376 | # Now quote all the things that may contain metacharacters while being |
15377 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
15378 | # variables and quote the copies for generation of the libtool script. |
15379 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
15380 | SED SHELL STRIP \ |
15381 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
15382 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
15383 | deplibs_check_method reload_flag reload_cmds need_locks \ |
15384 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
15385 | lt_cv_sys_global_symbol_to_c_name_address \ |
15386 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
15387 | old_postinstall_cmds old_postuninstall_cmds \ |
15388 | compiler_F77 \ |
15389 | CC_F77 \ |
15390 | LD_F77 \ |
15391 | lt_prog_compiler_wl_F77 \ |
15392 | lt_prog_compiler_pic_F77 \ |
15393 | lt_prog_compiler_static_F77 \ |
15394 | lt_prog_compiler_no_builtin_flag_F77 \ |
15395 | export_dynamic_flag_spec_F77 \ |
15396 | thread_safe_flag_spec_F77 \ |
15397 | whole_archive_flag_spec_F77 \ |
15398 | enable_shared_with_static_runtimes_F77 \ |
15399 | old_archive_cmds_F77 \ |
15400 | old_archive_from_new_cmds_F77 \ |
15401 | predep_objects_F77 \ |
15402 | postdep_objects_F77 \ |
15403 | predeps_F77 \ |
15404 | postdeps_F77 \ |
15405 | compiler_lib_search_path_F77 \ |
15406 | archive_cmds_F77 \ |
15407 | archive_expsym_cmds_F77 \ |
15408 | postinstall_cmds_F77 \ |
15409 | postuninstall_cmds_F77 \ |
15410 | old_archive_from_expsyms_cmds_F77 \ |
15411 | allow_undefined_flag_F77 \ |
15412 | no_undefined_flag_F77 \ |
15413 | export_symbols_cmds_F77 \ |
15414 | hardcode_libdir_flag_spec_F77 \ |
15415 | hardcode_libdir_flag_spec_ld_F77 \ |
15416 | hardcode_libdir_separator_F77 \ |
15417 | hardcode_automatic_F77 \ |
15418 | module_cmds_F77 \ |
15419 | module_expsym_cmds_F77 \ |
15420 | lt_cv_prog_compiler_c_o_F77 \ |
15421 | exclude_expsyms_F77 \ |
15422 | include_expsyms_F77; do |
15423 | |
15424 | case $var in |
15425 | old_archive_cmds_F77 | \ |
15426 | old_archive_from_new_cmds_F77 | \ |
15427 | archive_cmds_F77 | \ |
15428 | archive_expsym_cmds_F77 | \ |
15429 | module_cmds_F77 | \ |
15430 | module_expsym_cmds_F77 | \ |
15431 | old_archive_from_expsyms_cmds_F77 | \ |
15432 | export_symbols_cmds_F77 | \ |
15433 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
15434 | postinstall_cmds | postuninstall_cmds | \ |
15435 | old_postinstall_cmds | old_postuninstall_cmds | \ |
15436 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
15437 | # Double-quote double-evaled strings. |
15438 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
15439 | ;; |
15440 | *) |
15441 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
15442 | ;; |
15443 | esac |
15444 | done |
15445 | |
15446 | case $lt_echo in |
15447 | *'\$0 --fallback-echo"') |
15448 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
15449 | ;; |
15450 | esac |
15451 | |
15452 | cfgfile="$ofile" |
15453 | |
15454 | cat <<__EOF__ >> "$cfgfile" |
15455 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
15456 | |
15457 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
15458 | |
15459 | # Shell to use when invoking shell scripts. |
15460 | SHELL=$lt_SHELL |
15461 | |
15462 | # Whether or not to build shared libraries. |
15463 | build_libtool_libs=$enable_shared |
15464 | |
15465 | # Whether or not to build static libraries. |
15466 | build_old_libs=$enable_static |
15467 | |
15468 | # Whether or not to add -lc for building shared libraries. |
15469 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
15470 | |
15471 | # Whether or not to disallow shared libs when runtime libs are static |
15472 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
15473 | |
15474 | # Whether or not to optimize for fast installation. |
15475 | fast_install=$enable_fast_install |
15476 | |
15477 | # The host system. |
15478 | host_alias=$host_alias |
15479 | host=$host |
15480 | host_os=$host_os |
15481 | |
15482 | # The build system. |
15483 | build_alias=$build_alias |
15484 | build=$build |
15485 | build_os=$build_os |
15486 | |
15487 | # An echo program that does not interpret backslashes. |
15488 | echo=$lt_echo |
15489 | |
15490 | # The archiver. |
15491 | AR=$lt_AR |
15492 | AR_FLAGS=$lt_AR_FLAGS |
15493 | |
15494 | # A C compiler. |
15495 | LTCC=$lt_LTCC |
15496 | |
15497 | # LTCC compiler flags. |
15498 | LTCFLAGS=$lt_LTCFLAGS |
15499 | |
15500 | # A language-specific compiler. |
15501 | CC=$lt_compiler_F77 |
15502 | |
15503 | # Is the compiler the GNU C compiler? |
15504 | with_gcc=$GCC_F77 |
15505 | |
15506 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` |
15507 | gcc_ver=\`gcc -dumpversion\` |
15508 | |
15509 | # An ERE matcher. |
15510 | EGREP=$lt_EGREP |
15511 | |
15512 | # The linker used to build libraries. |
15513 | LD=$lt_LD_F77 |
15514 | |
15515 | # Whether we need hard or soft links. |
15516 | LN_S=$lt_LN_S |
15517 | |
15518 | # A BSD-compatible nm program. |
15519 | NM=$lt_NM |
15520 | |
15521 | # A symbol stripping program |
15522 | STRIP=$lt_STRIP |
15523 | |
15524 | # Used to examine libraries when file_magic_cmd begins "file" |
15525 | MAGIC_CMD=$MAGIC_CMD |
15526 | |
15527 | # Used on cygwin: DLL creation program. |
15528 | DLLTOOL="$DLLTOOL" |
15529 | |
15530 | # Used on cygwin: object dumper. |
15531 | OBJDUMP="$OBJDUMP" |
15532 | |
15533 | # Used on cygwin: assembler. |
15534 | AS="$AS" |
15535 | |
15536 | # The name of the directory that contains temporary libtool files. |
15537 | objdir=$objdir |
15538 | |
15539 | # How to create reloadable object files. |
15540 | reload_flag=$lt_reload_flag |
15541 | reload_cmds=$lt_reload_cmds |
15542 | |
15543 | # How to pass a linker flag through the compiler. |
15544 | wl=$lt_lt_prog_compiler_wl_F77 |
15545 | |
15546 | # Object file suffix (normally "o"). |
15547 | objext="$ac_objext" |
15548 | |
15549 | # Old archive suffix (normally "a"). |
15550 | libext="$libext" |
15551 | |
15552 | # Shared library suffix (normally ".so"). |
15553 | shrext_cmds='$shrext_cmds' |
15554 | |
15555 | # Executable file suffix (normally ""). |
15556 | exeext="$exeext" |
15557 | |
15558 | # Additional compiler flags for building library objects. |
15559 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
15560 | pic_mode=$pic_mode |
15561 | |
15562 | # What is the maximum length of a command? |
15563 | max_cmd_len=$lt_cv_sys_max_cmd_len |
15564 | |
15565 | # Does compiler simultaneously support -c and -o options? |
15566 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
15567 | |
15568 | # Must we lock files when doing compilation? |
15569 | need_locks=$lt_need_locks |
15570 | |
15571 | # Do we need the lib prefix for modules? |
15572 | need_lib_prefix=$need_lib_prefix |
15573 | |
15574 | # Do we need a version for libraries? |
15575 | need_version=$need_version |
15576 | |
15577 | # Whether dlopen is supported. |
15578 | dlopen_support=$enable_dlopen |
15579 | |
15580 | # Whether dlopen of programs is supported. |
15581 | dlopen_self=$enable_dlopen_self |
15582 | |
15583 | # Whether dlopen of statically linked programs is supported. |
15584 | dlopen_self_static=$enable_dlopen_self_static |
15585 | |
15586 | # Compiler flag to prevent dynamic linking. |
15587 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
15588 | |
15589 | # Compiler flag to turn off builtin functions. |
15590 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
15591 | |
15592 | # Compiler flag to allow reflexive dlopens. |
15593 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
15594 | |
15595 | # Compiler flag to generate shared objects directly from archives. |
15596 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
15597 | |
15598 | # Compiler flag to generate thread-safe objects. |
15599 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
15600 | |
15601 | # Library versioning type. |
15602 | version_type=$version_type |
15603 | |
15604 | # Format of library name prefix. |
15605 | libname_spec=$lt_libname_spec |
15606 | |
15607 | # List of archive names. First name is the real one, the rest are links. |
15608 | # The last name is the one that the linker finds with -lNAME. |
15609 | library_names_spec=$lt_library_names_spec |
15610 | |
15611 | # The coded name of the library, if different from the real name. |
15612 | soname_spec=$lt_soname_spec |
15613 | |
15614 | # Commands used to build and install an old-style archive. |
15615 | RANLIB=$lt_RANLIB |
15616 | old_archive_cmds=$lt_old_archive_cmds_F77 |
15617 | old_postinstall_cmds=$lt_old_postinstall_cmds |
15618 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
15619 | |
15620 | # Create an old-style archive from a shared archive. |
15621 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
15622 | |
15623 | # Create a temporary old-style archive to link instead of a shared archive. |
15624 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
15625 | |
15626 | # Commands used to build and install a shared archive. |
15627 | archive_cmds=$lt_archive_cmds_F77 |
15628 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
15629 | postinstall_cmds=$lt_postinstall_cmds |
15630 | postuninstall_cmds=$lt_postuninstall_cmds |
15631 | |
15632 | # Commands used to build a loadable module (assumed same as above if empty) |
15633 | module_cmds=$lt_module_cmds_F77 |
15634 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
15635 | |
15636 | # Commands to strip libraries. |
15637 | old_striplib=$lt_old_striplib |
15638 | striplib=$lt_striplib |
15639 | |
15640 | # Dependencies to place before the objects being linked to create a |
15641 | # shared library. |
15642 | predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
15643 | |
15644 | # Dependencies to place after the objects being linked to create a |
15645 | # shared library. |
15646 | postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
15647 | |
15648 | # Dependencies to place before the objects being linked to create a |
15649 | # shared library. |
15650 | predeps=$lt_predeps_F77 |
15651 | |
15652 | # Dependencies to place after the objects being linked to create a |
15653 | # shared library. |
15654 | postdeps=$lt_postdeps_F77 |
15655 | |
15656 | # The library search path used internally by the compiler when linking |
15657 | # a shared library. |
15658 | compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
15659 | |
15660 | # Method to check whether dependent libraries are shared objects. |
15661 | deplibs_check_method=$lt_deplibs_check_method |
15662 | |
15663 | # Command to use when deplibs_check_method == file_magic. |
15664 | file_magic_cmd=$lt_file_magic_cmd |
15665 | |
15666 | # Flag that allows shared libraries with undefined symbols to be built. |
15667 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
15668 | |
15669 | # Flag that forces no undefined symbols. |
15670 | no_undefined_flag=$lt_no_undefined_flag_F77 |
15671 | |
15672 | # Commands used to finish a libtool library installation in a directory. |
15673 | finish_cmds=$lt_finish_cmds |
15674 | |
15675 | # Same as above, but a single script fragment to be evaled but not shown. |
15676 | finish_eval=$lt_finish_eval |
15677 | |
15678 | # Take the output of nm and produce a listing of raw symbols and C names. |
15679 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
15680 | |
15681 | # Transform the output of nm in a proper C declaration |
15682 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
15683 | |
15684 | # Transform the output of nm in a C name address pair |
15685 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
15686 | |
15687 | # This is the shared library runtime path variable. |
15688 | runpath_var=$runpath_var |
15689 | |
15690 | # This is the shared library path variable. |
15691 | shlibpath_var=$shlibpath_var |
15692 | |
15693 | # Is shlibpath searched before the hard-coded library search path? |
15694 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
15695 | |
15696 | # How to hardcode a shared library path into an executable. |
15697 | hardcode_action=$hardcode_action_F77 |
15698 | |
15699 | # Whether we should hardcode library paths into libraries. |
15700 | hardcode_into_libs=$hardcode_into_libs |
15701 | |
15702 | # Flag to hardcode \$libdir into a binary during linking. |
15703 | # This must work even if \$libdir does not exist. |
15704 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
15705 | |
15706 | # If ld is used when linking, flag to hardcode \$libdir into |
15707 | # a binary during linking. This must work even if \$libdir does |
15708 | # not exist. |
15709 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
15710 | |
15711 | # Whether we need a single -rpath flag with a separated argument. |
15712 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
15713 | |
15714 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
15715 | # resulting binary. |
15716 | hardcode_direct=$hardcode_direct_F77 |
15717 | |
15718 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
15719 | # resulting binary. |
15720 | hardcode_minus_L=$hardcode_minus_L_F77 |
15721 | |
15722 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
15723 | # the resulting binary. |
15724 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
15725 | |
15726 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
15727 | # and all subsequent libraries and executables linked against it. |
15728 | hardcode_automatic=$hardcode_automatic_F77 |
15729 | |
15730 | # Variables whose values should be saved in libtool wrapper scripts and |
15731 | # restored at relink time. |
15732 | variables_saved_for_relink="$variables_saved_for_relink" |
15733 | |
15734 | # Whether libtool must link a program against all its dependency libraries. |
15735 | link_all_deplibs=$link_all_deplibs_F77 |
15736 | |
15737 | # Compile-time system search path for libraries |
15738 | sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
15739 | |
15740 | # Run-time system search path for libraries |
15741 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
15742 | |
15743 | # Fix the shell variable \$srcfile for the compiler. |
15744 | fix_srcfile_path="$fix_srcfile_path_F77" |
15745 | |
15746 | # Set to yes if exported symbols are required. |
15747 | always_export_symbols=$always_export_symbols_F77 |
15748 | |
15749 | # The commands to list exported symbols. |
15750 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
15751 | |
15752 | # The commands to extract the exported symbol list from a shared archive. |
15753 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
15754 | |
15755 | # Symbols that should not be listed in the preloaded symbols. |
15756 | exclude_expsyms=$lt_exclude_expsyms_F77 |
15757 | |
15758 | # Symbols that must always be exported. |
15759 | include_expsyms=$lt_include_expsyms_F77 |
15760 | |
15761 | # ### END LIBTOOL TAG CONFIG: $tagname |
15762 | |
15763 | __EOF__ |
15764 | |
15765 | |
15766 | else |
15767 | # If there is no Makefile yet, we rely on a make rule to execute |
15768 | # `config.status --recheck' to rerun these tests and create the |
15769 | # libtool script then. |
15770 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
15771 | if test -f "$ltmain_in"; then |
15772 | test -f Makefile && make "$ltmain" |
15773 | fi |
15774 | fi |
15775 | |
15776 | |
15777 | ac_ext=c |
15778 | ac_cpp='$CPP $CPPFLAGS' |
15779 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
15780 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
15781 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
15782 | |
15783 | CC="$lt_save_CC" |
15784 | |
15785 | else |
15786 | tagname="" |
15787 | fi |
15788 | ;; |
15789 | |
15790 | GCJ) |
15791 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
15792 | |
15793 | |
15794 | |
15795 | # Source file extension for Java test sources. |
15796 | ac_ext=java |
15797 | |
15798 | # Object file extension for compiled Java test sources. |
15799 | objext=o |
15800 | objext_GCJ=$objext |
15801 | |
15802 | # Code to be used in simple compile tests |
15803 | lt_simple_compile_test_code="class foo {}\n" |
15804 | |
15805 | # Code to be used in simple link tests |
15806 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' |
15807 | |
15808 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
15809 | |
15810 | # If no C compiler was specified, use CC. |
15811 | LTCC=${LTCC-"$CC"} |
15812 | |
15813 | # If no C compiler flags were specified, use CFLAGS. |
15814 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
15815 | |
15816 | # Allow CC to be a program name with arguments. |
15817 | compiler=$CC |
15818 | |
15819 | |
15820 | # save warnings/boilerplate of simple test code |
15821 | ac_outfile=conftest.$ac_objext |
15822 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
15823 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
15824 | _lt_compiler_boilerplate=`cat conftest.err` |
15825 | $rm conftest* |
15826 | |
15827 | ac_outfile=conftest.$ac_objext |
15828 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
15829 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
15830 | _lt_linker_boilerplate=`cat conftest.err` |
15831 | $rm conftest* |
15832 | |
15833 | |
15834 | # Allow CC to be a program name with arguments. |
15835 | lt_save_CC="$CC" |
15836 | CC=${GCJ-"gcj"} |
15837 | compiler=$CC |
15838 | compiler_GCJ=$CC |
15839 | for cc_temp in $compiler""; do |
15840 | case $cc_temp in |
15841 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
15842 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
15843 | \-*) ;; |
15844 | *) break;; |
15845 | esac |
15846 | done |
15847 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
15848 | |
15849 | |
15850 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
15851 | archive_cmds_need_lc_GCJ=no |
15852 | |
15853 | old_archive_cmds_GCJ=$old_archive_cmds |
15854 | |
15855 | |
15856 | lt_prog_compiler_no_builtin_flag_GCJ= |
15857 | |
15858 | if test "$GCC" = yes; then |
15859 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
15860 | |
15861 | |
15862 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
15863 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
15864 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
15865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15866 | else |
15867 | lt_cv_prog_compiler_rtti_exceptions=no |
15868 | ac_outfile=conftest.$ac_objext |
15869 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
15870 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
15871 | # Insert the option either (1) after the last *FLAGS variable, or |
15872 | # (2) before a word containing "conftest.", or (3) at the end. |
15873 | # Note that $ac_compile itself does not contain backslashes and begins |
15874 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
15875 | # The option is referenced via a variable to avoid confusing sed. |
15876 | lt_compile=`echo "$ac_compile" | $SED \ |
15877 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
15878 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
15879 | -e 's:$: $lt_compiler_flag:'` |
15880 | (eval echo "\"\$as_me:15880: $lt_compile\"" >&5) |
15881 | (eval "$lt_compile" 2>conftest.err) |
15882 | ac_status=$? |
15883 | cat conftest.err >&5 |
15884 | echo "$as_me:15884: \$? = $ac_status" >&5 |
15885 | if (exit $ac_status) && test -s "$ac_outfile"; then |
15886 | # The compiler can only warn and ignore the option if not recognized |
15887 | # So say no if there are warnings other than the usual output. |
15888 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
15889 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
15890 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
15891 | lt_cv_prog_compiler_rtti_exceptions=yes |
15892 | fi |
15893 | fi |
15894 | $rm conftest* |
15895 | |
15896 | fi |
15897 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
15898 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
15899 | |
15900 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
15901 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
15902 | else |
15903 | : |
15904 | fi |
15905 | |
15906 | fi |
15907 | |
15908 | lt_prog_compiler_wl_GCJ= |
15909 | lt_prog_compiler_pic_GCJ= |
15910 | lt_prog_compiler_static_GCJ= |
15911 | |
15912 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
15913 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
15914 | |
15915 | if test "$GCC" = yes; then |
15916 | lt_prog_compiler_wl_GCJ='-Wl,' |
15917 | lt_prog_compiler_static_GCJ='-static' |
15918 | |
15919 | case $host_os in |
15920 | aix*) |
15921 | # All AIX code is PIC. |
15922 | if test "$host_cpu" = ia64; then |
15923 | # AIX 5 now supports IA64 processor |
15924 | lt_prog_compiler_static_GCJ='-Bstatic' |
15925 | fi |
15926 | ;; |
15927 | |
15928 | amigaos*) |
15929 | # FIXME: we need at least 68020 code to build shared libraries, but |
15930 | # adding the `-m68020' flag to GCC prevents building anything better, |
15931 | # like `-m68040'. |
15932 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
15933 | ;; |
15934 | |
15935 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
15936 | # PIC is the default for these OSes. |
15937 | ;; |
15938 | |
15939 | mingw* | pw32* | os2*) |
15940 | # This hack is so that the source file can tell whether it is being |
15941 | # built for inclusion in a dll (and should export symbols for example). |
15942 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
15943 | ;; |
15944 | |
15945 | darwin* | rhapsody*) |
15946 | # PIC is the default on this platform |
15947 | # Common symbols not allowed in MH_DYLIB files |
15948 | lt_prog_compiler_pic_GCJ='-fno-common' |
15949 | ;; |
15950 | |
15951 | interix3*) |
15952 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
15953 | # Instead, we relocate shared libraries at runtime. |
15954 | ;; |
15955 | |
15956 | msdosdjgpp*) |
15957 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
15958 | # on systems that don't support them. |
15959 | lt_prog_compiler_can_build_shared_GCJ=no |
15960 | enable_shared=no |
15961 | ;; |
15962 | |
15963 | sysv4*MP*) |
15964 | if test -d /usr/nec; then |
15965 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
15966 | fi |
15967 | ;; |
15968 | |
15969 | hpux*) |
15970 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
15971 | # not for PA HP-UX. |
15972 | case $host_cpu in |
15973 | hppa*64*|ia64*) |
15974 | # +Z the default |
15975 | ;; |
15976 | *) |
15977 | lt_prog_compiler_pic_GCJ='-fPIC' |
15978 | ;; |
15979 | esac |
15980 | ;; |
15981 | |
15982 | *) |
15983 | lt_prog_compiler_pic_GCJ='-fPIC' |
15984 | ;; |
15985 | esac |
15986 | else |
15987 | # PORTME Check for flag to pass linker flags through the system compiler. |
15988 | case $host_os in |
15989 | aix*) |
15990 | lt_prog_compiler_wl_GCJ='-Wl,' |
15991 | if test "$host_cpu" = ia64; then |
15992 | # AIX 5 now supports IA64 processor |
15993 | lt_prog_compiler_static_GCJ='-Bstatic' |
15994 | else |
15995 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
15996 | fi |
15997 | ;; |
15998 | darwin*) |
15999 | # PIC is the default on this platform |
16000 | # Common symbols not allowed in MH_DYLIB files |
16001 | case $cc_basename in |
16002 | xlc*) |
16003 | lt_prog_compiler_pic_GCJ='-qnocommon' |
16004 | lt_prog_compiler_wl_GCJ='-Wl,' |
16005 | ;; |
16006 | esac |
16007 | ;; |
16008 | |
16009 | mingw* | pw32* | os2*) |
16010 | # This hack is so that the source file can tell whether it is being |
16011 | # built for inclusion in a dll (and should export symbols for example). |
16012 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
16013 | ;; |
16014 | |
16015 | hpux9* | hpux10* | hpux11*) |
16016 | lt_prog_compiler_wl_GCJ='-Wl,' |
16017 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
16018 | # not for PA HP-UX. |
16019 | case $host_cpu in |
16020 | hppa*64*|ia64*) |
16021 | # +Z the default |
16022 | ;; |
16023 | *) |
16024 | lt_prog_compiler_pic_GCJ='+Z' |
16025 | ;; |
16026 | esac |
16027 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
16028 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
16029 | ;; |
16030 | |
16031 | irix5* | irix6* | nonstopux*) |
16032 | lt_prog_compiler_wl_GCJ='-Wl,' |
16033 | # PIC (with -KPIC) is the default. |
16034 | lt_prog_compiler_static_GCJ='-non_shared' |
16035 | ;; |
16036 | |
16037 | newsos6) |
16038 | lt_prog_compiler_pic_GCJ='-KPIC' |
16039 | lt_prog_compiler_static_GCJ='-Bstatic' |
16040 | ;; |
16041 | |
16042 | linux*) |
16043 | case $cc_basename in |
16044 | icc* | ecc*) |
16045 | lt_prog_compiler_wl_GCJ='-Wl,' |
16046 | lt_prog_compiler_pic_GCJ='-KPIC' |
16047 | lt_prog_compiler_static_GCJ='-static' |
16048 | ;; |
16049 | pgcc* | pgf77* | pgf90* | pgf95*) |
16050 | # Portland Group compilers (*not* the Pentium gcc compiler, |
16051 | # which looks to be a dead project) |
16052 | lt_prog_compiler_wl_GCJ='-Wl,' |
16053 | lt_prog_compiler_pic_GCJ='-fpic' |
16054 | lt_prog_compiler_static_GCJ='-Bstatic' |
16055 | ;; |
16056 | ccc*) |
16057 | lt_prog_compiler_wl_GCJ='-Wl,' |
16058 | # All Alpha code is PIC. |
16059 | lt_prog_compiler_static_GCJ='-non_shared' |
16060 | ;; |
16061 | esac |
16062 | ;; |
16063 | |
16064 | osf3* | osf4* | osf5*) |
16065 | lt_prog_compiler_wl_GCJ='-Wl,' |
16066 | # All OSF/1 code is PIC. |
16067 | lt_prog_compiler_static_GCJ='-non_shared' |
16068 | ;; |
16069 | |
16070 | solaris*) |
16071 | lt_prog_compiler_pic_GCJ='-KPIC' |
16072 | lt_prog_compiler_static_GCJ='-Bstatic' |
16073 | case $cc_basename in |
16074 | f77* | f90* | f95*) |
16075 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
16076 | *) |
16077 | lt_prog_compiler_wl_GCJ='-Wl,';; |
16078 | esac |
16079 | ;; |
16080 | |
16081 | sunos4*) |
16082 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
16083 | lt_prog_compiler_pic_GCJ='-PIC' |
16084 | lt_prog_compiler_static_GCJ='-Bstatic' |
16085 | ;; |
16086 | |
16087 | sysv4 | sysv4.2uw2* | sysv4.3*) |
16088 | lt_prog_compiler_wl_GCJ='-Wl,' |
16089 | lt_prog_compiler_pic_GCJ='-KPIC' |
16090 | lt_prog_compiler_static_GCJ='-Bstatic' |
16091 | ;; |
16092 | |
16093 | sysv4*MP*) |
16094 | if test -d /usr/nec ;then |
16095 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
16096 | lt_prog_compiler_static_GCJ='-Bstatic' |
16097 | fi |
16098 | ;; |
16099 | |
16100 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
16101 | lt_prog_compiler_wl_GCJ='-Wl,' |
16102 | lt_prog_compiler_pic_GCJ='-KPIC' |
16103 | lt_prog_compiler_static_GCJ='-Bstatic' |
16104 | ;; |
16105 | |
16106 | unicos*) |
16107 | lt_prog_compiler_wl_GCJ='-Wl,' |
16108 | lt_prog_compiler_can_build_shared_GCJ=no |
16109 | ;; |
16110 | |
16111 | uts4*) |
16112 | lt_prog_compiler_pic_GCJ='-pic' |
16113 | lt_prog_compiler_static_GCJ='-Bstatic' |
16114 | ;; |
16115 | |
16116 | *) |
16117 | lt_prog_compiler_can_build_shared_GCJ=no |
16118 | ;; |
16119 | esac |
16120 | fi |
16121 | |
16122 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
16123 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 |
16124 | |
16125 | # |
16126 | # Check to make sure the PIC flag actually works. |
16127 | # |
16128 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
16129 | |
16130 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
16131 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 |
16132 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
16133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16134 | else |
16135 | lt_prog_compiler_pic_works_GCJ=no |
16136 | ac_outfile=conftest.$ac_objext |
16137 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
16138 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
16139 | # Insert the option either (1) after the last *FLAGS variable, or |
16140 | # (2) before a word containing "conftest.", or (3) at the end. |
16141 | # Note that $ac_compile itself does not contain backslashes and begins |
16142 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
16143 | # The option is referenced via a variable to avoid confusing sed. |
16144 | lt_compile=`echo "$ac_compile" | $SED \ |
16145 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16146 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16147 | -e 's:$: $lt_compiler_flag:'` |
16148 | (eval echo "\"\$as_me:16148: $lt_compile\"" >&5) |
16149 | (eval "$lt_compile" 2>conftest.err) |
16150 | ac_status=$? |
16151 | cat conftest.err >&5 |
16152 | echo "$as_me:16152: \$? = $ac_status" >&5 |
16153 | if (exit $ac_status) && test -s "$ac_outfile"; then |
16154 | # The compiler can only warn and ignore the option if not recognized |
16155 | # So say no if there are warnings other than the usual output. |
16156 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
16157 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
16158 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
16159 | lt_prog_compiler_pic_works_GCJ=yes |
16160 | fi |
16161 | fi |
16162 | $rm conftest* |
16163 | |
16164 | fi |
16165 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
16166 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 |
16167 | |
16168 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
16169 | case $lt_prog_compiler_pic_GCJ in |
16170 | "" | " "*) ;; |
16171 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
16172 | esac |
16173 | else |
16174 | lt_prog_compiler_pic_GCJ= |
16175 | lt_prog_compiler_can_build_shared_GCJ=no |
16176 | fi |
16177 | |
16178 | fi |
16179 | case $host_os in |
16180 | # For platforms which do not support PIC, -DPIC is meaningless: |
16181 | *djgpp*) |
16182 | lt_prog_compiler_pic_GCJ= |
16183 | ;; |
16184 | *) |
16185 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
16186 | ;; |
16187 | esac |
16188 | |
16189 | # |
16190 | # Check to make sure the static flag actually works. |
16191 | # |
16192 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
16193 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
16194 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
16195 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
16196 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16197 | else |
16198 | lt_prog_compiler_static_works_GCJ=no |
16199 | save_LDFLAGS="$LDFLAGS" |
16200 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
16201 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
16202 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
16203 | # The linker can only warn and ignore the option if not recognized |
16204 | # So say no if there are warnings |
16205 | if test -s conftest.err; then |
16206 | # Append any errors to the config.log. |
16207 | cat conftest.err 1>&5 |
16208 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
16209 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
16210 | if diff conftest.exp conftest.er2 >/dev/null; then |
16211 | lt_prog_compiler_static_works_GCJ=yes |
16212 | fi |
16213 | else |
16214 | lt_prog_compiler_static_works_GCJ=yes |
16215 | fi |
16216 | fi |
16217 | $rm conftest* |
16218 | LDFLAGS="$save_LDFLAGS" |
16219 | |
16220 | fi |
16221 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
16222 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6 |
16223 | |
16224 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
16225 | : |
16226 | else |
16227 | lt_prog_compiler_static_GCJ= |
16228 | fi |
16229 | |
16230 | |
16231 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
16232 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
16233 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
16234 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16235 | else |
16236 | lt_cv_prog_compiler_c_o_GCJ=no |
16237 | $rm -r conftest 2>/dev/null |
16238 | mkdir conftest |
16239 | cd conftest |
16240 | mkdir out |
16241 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
16242 | |
16243 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
16244 | # Insert the option either (1) after the last *FLAGS variable, or |
16245 | # (2) before a word containing "conftest.", or (3) at the end. |
16246 | # Note that $ac_compile itself does not contain backslashes and begins |
16247 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
16248 | lt_compile=`echo "$ac_compile" | $SED \ |
16249 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16250 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16251 | -e 's:$: $lt_compiler_flag:'` |
16252 | (eval echo "\"\$as_me:16252: $lt_compile\"" >&5) |
16253 | (eval "$lt_compile" 2>out/conftest.err) |
16254 | ac_status=$? |
16255 | cat out/conftest.err >&5 |
16256 | echo "$as_me:16256: \$? = $ac_status" >&5 |
16257 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
16258 | then |
16259 | # The compiler can only warn and ignore the option if not recognized |
16260 | # So say no if there are warnings |
16261 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
16262 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
16263 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
16264 | lt_cv_prog_compiler_c_o_GCJ=yes |
16265 | fi |
16266 | fi |
16267 | chmod u+w . 2>&5 |
16268 | $rm conftest* |
16269 | # SGI C++ compiler will create directory out/ii_files/ for |
16270 | # template instantiation |
16271 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
16272 | $rm out/* && rmdir out |
16273 | cd .. |
16274 | rmdir conftest |
16275 | $rm conftest* |
16276 | |
16277 | fi |
16278 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
16279 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 |
16280 | |
16281 | |
16282 | hard_links="nottested" |
16283 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
16284 | # do not overwrite the value of need_locks provided by the user |
16285 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
16286 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
16287 | hard_links=yes |
16288 | $rm conftest* |
16289 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
16290 | touch conftest.a |
16291 | ln conftest.a conftest.b 2>&5 || hard_links=no |
16292 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
16293 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
16294 | echo "${ECHO_T}$hard_links" >&6 |
16295 | if test "$hard_links" = no; then |
16296 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
16297 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
16298 | need_locks=warn |
16299 | fi |
16300 | else |
16301 | need_locks=no |
16302 | fi |
16303 | |
16304 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
16305 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
16306 | |
16307 | runpath_var= |
16308 | allow_undefined_flag_GCJ= |
16309 | enable_shared_with_static_runtimes_GCJ=no |
16310 | archive_cmds_GCJ= |
16311 | archive_expsym_cmds_GCJ= |
16312 | old_archive_From_new_cmds_GCJ= |
16313 | old_archive_from_expsyms_cmds_GCJ= |
16314 | export_dynamic_flag_spec_GCJ= |
16315 | whole_archive_flag_spec_GCJ= |
16316 | thread_safe_flag_spec_GCJ= |
16317 | hardcode_libdir_flag_spec_GCJ= |
16318 | hardcode_libdir_flag_spec_ld_GCJ= |
16319 | hardcode_libdir_separator_GCJ= |
16320 | hardcode_direct_GCJ=no |
16321 | hardcode_minus_L_GCJ=no |
16322 | hardcode_shlibpath_var_GCJ=unsupported |
16323 | link_all_deplibs_GCJ=unknown |
16324 | hardcode_automatic_GCJ=no |
16325 | module_cmds_GCJ= |
16326 | module_expsym_cmds_GCJ= |
16327 | always_export_symbols_GCJ=no |
16328 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
16329 | # include_expsyms should be a list of space-separated symbols to be *always* |
16330 | # included in the symbol list |
16331 | include_expsyms_GCJ= |
16332 | # exclude_expsyms can be an extended regexp of symbols to exclude |
16333 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
16334 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
16335 | # as well as any symbol that contains `d'. |
16336 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
16337 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
16338 | # platforms (ab)use it in PIC code, but their linkers get confused if |
16339 | # the symbol is explicitly referenced. Since portable code cannot |
16340 | # rely on this symbol name, it's probably fine to never include it in |
16341 | # preloaded symbol tables. |
16342 | extract_expsyms_cmds= |
16343 | # Just being paranoid about ensuring that cc_basename is set. |
16344 | for cc_temp in $compiler""; do |
16345 | case $cc_temp in |
16346 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
16347 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
16348 | \-*) ;; |
16349 | *) break;; |
16350 | esac |
16351 | done |
16352 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
16353 | |
16354 | case $host_os in |
16355 | cygwin* | mingw* | pw32*) |
16356 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
16357 | # When not using gcc, we currently assume that we are using |
16358 | # Microsoft Visual C++. |
16359 | if test "$GCC" != yes; then |
16360 | with_gnu_ld=no |
16361 | fi |
16362 | ;; |
16363 | interix*) |
16364 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
16365 | with_gnu_ld=yes |
16366 | ;; |
16367 | openbsd*) |
16368 | with_gnu_ld=no |
16369 | ;; |
16370 | esac |
16371 | |
16372 | ld_shlibs_GCJ=yes |
16373 | if test "$with_gnu_ld" = yes; then |
16374 | # If archive_cmds runs LD, not CC, wlarc should be empty |
16375 | wlarc='${wl}' |
16376 | |
16377 | # Set some defaults for GNU ld with shared library support. These |
16378 | # are reset later if shared libraries are not supported. Putting them |
16379 | # here allows them to be overridden if necessary. |
16380 | runpath_var=LD_RUN_PATH |
16381 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
16382 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
16383 | # ancient GNU ld didn't support --whole-archive et. al. |
16384 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
16385 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
16386 | else |
16387 | whole_archive_flag_spec_GCJ= |
16388 | fi |
16389 | supports_anon_versioning=no |
16390 | case `$LD -v 2>/dev/null` in |
16391 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
16392 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
16393 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
16394 | *\ 2.11.*) ;; # other 2.11 versions |
16395 | *) supports_anon_versioning=yes ;; |
16396 | esac |
16397 | |
16398 | # See if GNU ld supports shared libraries. |
16399 | case $host_os in |
16400 | aix3* | aix4* | aix5*) |
16401 | # On AIX/PPC, the GNU linker is very broken |
16402 | if test "$host_cpu" != ia64; then |
16403 | ld_shlibs_GCJ=no |
16404 | cat <<EOF 1>&2 |
16405 | |
16406 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
16407 | *** to be unable to reliably create shared libraries on AIX. |
16408 | *** Therefore, libtool is disabling shared libraries support. If you |
16409 | *** really care for shared libraries, you may want to modify your PATH |
16410 | *** so that a non-GNU linker is found, and then restart. |
16411 | |
16412 | EOF |
16413 | fi |
16414 | ;; |
16415 | |
16416 | amigaos*) |
16417 | 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)' |
16418 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16419 | hardcode_minus_L_GCJ=yes |
16420 | |
16421 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
16422 | # that the semantics of dynamic libraries on AmigaOS, at least up |
16423 | # to version 4, is to share data among multiple programs linked |
16424 | # with the same dynamic library. Since this doesn't match the |
16425 | # behavior of shared libraries on other platforms, we can't use |
16426 | # them. |
16427 | ld_shlibs_GCJ=no |
16428 | ;; |
16429 | |
16430 | beos*) |
16431 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16432 | allow_undefined_flag_GCJ=unsupported |
16433 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
16434 | # support --undefined. This deserves some investigation. FIXME |
16435 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16436 | else |
16437 | ld_shlibs_GCJ=no |
16438 | fi |
16439 | ;; |
16440 | |
16441 | cygwin* | mingw* | pw32*) |
16442 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
16443 | # as there is no search path for DLLs. |
16444 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16445 | allow_undefined_flag_GCJ=unsupported |
16446 | always_export_symbols_GCJ=no |
16447 | enable_shared_with_static_runtimes_GCJ=yes |
16448 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
16449 | |
16450 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
16451 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
16452 | # If the export-symbols file already is a .def file (1st line |
16453 | # is EXPORTS), use it as is; otherwise, prepend... |
16454 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
16455 | cp $export_symbols $output_objdir/$soname.def; |
16456 | else |
16457 | echo EXPORTS > $output_objdir/$soname.def; |
16458 | cat $export_symbols >> $output_objdir/$soname.def; |
16459 | fi~ |
16460 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
16461 | else |
16462 | ld_shlibs_GCJ=no |
16463 | fi |
16464 | ;; |
16465 | |
16466 | interix3*) |
16467 | hardcode_direct_GCJ=no |
16468 | hardcode_shlibpath_var_GCJ=no |
16469 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
16470 | export_dynamic_flag_spec_GCJ='${wl}-E' |
16471 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
16472 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
16473 | # default) and relocated if they conflict, which is a slow very memory |
16474 | # consuming and fragmenting process. To avoid this, we pick a random, |
16475 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
16476 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
16477 | archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
16478 | archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
16479 | ;; |
16480 | |
16481 | linux*) |
16482 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16483 | tmp_addflag= |
16484 | case $cc_basename,$host_cpu in |
16485 | pgcc*) # Portland Group C compiler |
16486 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
16487 | tmp_addflag=' $pic_flag' |
16488 | ;; |
16489 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
16490 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
16491 | tmp_addflag=' $pic_flag -Mnomain' ;; |
16492 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
16493 | tmp_addflag=' -i_dynamic' ;; |
16494 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
16495 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
16496 | ifc* | ifort*) # Intel Fortran compiler |
16497 | tmp_addflag=' -nofor_main' ;; |
16498 | esac |
16499 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16500 | |
16501 | if test $supports_anon_versioning = yes; then |
16502 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
16503 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
16504 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
16505 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
16506 | fi |
16507 | else |
16508 | ld_shlibs_GCJ=no |
16509 | fi |
16510 | ;; |
16511 | |
16512 | netbsd*) |
16513 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
16514 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
16515 | wlarc= |
16516 | else |
16517 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16518 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
16519 | fi |
16520 | ;; |
16521 | |
16522 | solaris*) |
16523 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
16524 | ld_shlibs_GCJ=no |
16525 | cat <<EOF 1>&2 |
16526 | |
16527 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
16528 | *** create shared libraries on Solaris systems. Therefore, libtool |
16529 | *** is disabling shared libraries support. We urge you to upgrade GNU |
16530 | *** binutils to release 2.9.1 or newer. Another option is to modify |
16531 | *** your PATH or compiler configuration so that the native linker is |
16532 | *** used, and then restart. |
16533 | |
16534 | EOF |
16535 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16536 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16537 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
16538 | else |
16539 | ld_shlibs_GCJ=no |
16540 | fi |
16541 | ;; |
16542 | |
16543 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
16544 | case `$LD -v 2>&1` in |
16545 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
16546 | ld_shlibs_GCJ=no |
16547 | cat <<_LT_EOF 1>&2 |
16548 | |
16549 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
16550 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
16551 | *** is disabling shared libraries support. We urge you to upgrade GNU |
16552 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
16553 | *** your PATH or compiler configuration so that the native linker is |
16554 | *** used, and then restart. |
16555 | |
16556 | _LT_EOF |
16557 | ;; |
16558 | *) |
16559 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16560 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
16561 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
16562 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
16563 | else |
16564 | ld_shlibs_GCJ=no |
16565 | fi |
16566 | ;; |
16567 | esac |
16568 | ;; |
16569 | |
16570 | sunos4*) |
16571 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
16572 | wlarc= |
16573 | hardcode_direct_GCJ=yes |
16574 | hardcode_shlibpath_var_GCJ=no |
16575 | ;; |
16576 | |
16577 | *) |
16578 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16579 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16580 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
16581 | else |
16582 | ld_shlibs_GCJ=no |
16583 | fi |
16584 | ;; |
16585 | esac |
16586 | |
16587 | if test "$ld_shlibs_GCJ" = no; then |
16588 | runpath_var= |
16589 | hardcode_libdir_flag_spec_GCJ= |
16590 | export_dynamic_flag_spec_GCJ= |
16591 | whole_archive_flag_spec_GCJ= |
16592 | fi |
16593 | else |
16594 | # PORTME fill in a description of your system's linker (not GNU ld) |
16595 | case $host_os in |
16596 | aix3*) |
16597 | allow_undefined_flag_GCJ=unsupported |
16598 | always_export_symbols_GCJ=yes |
16599 | 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' |
16600 | # Note: this linker hardcodes the directories in LIBPATH if there |
16601 | # are no directories specified by -L. |
16602 | hardcode_minus_L_GCJ=yes |
16603 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
16604 | # Neither direct hardcoding nor static linking is supported with a |
16605 | # broken collect2. |
16606 | hardcode_direct_GCJ=unsupported |
16607 | fi |
16608 | ;; |
16609 | |
16610 | aix4* | aix5*) |
16611 | if test "$host_cpu" = ia64; then |
16612 | # On IA64, the linker does run time linking by default, so we don't |
16613 | # have to do anything special. |
16614 | aix_use_runtimelinking=no |
16615 | exp_sym_flag='-Bexport' |
16616 | no_entry_flag="" |
16617 | else |
16618 | # If we're using GNU nm, then we don't want the "-C" option. |
16619 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
16620 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
16621 | 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' |
16622 | else |
16623 | 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' |
16624 | fi |
16625 | aix_use_runtimelinking=no |
16626 | |
16627 | # Test if we are trying to use run time linking or normal |
16628 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
16629 | # need to do runtime linking. |
16630 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
16631 | for ld_flag in $LDFLAGS; do |
16632 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
16633 | aix_use_runtimelinking=yes |
16634 | break |
16635 | fi |
16636 | done |
16637 | ;; |
16638 | esac |
16639 | |
16640 | exp_sym_flag='-bexport' |
16641 | no_entry_flag='-bnoentry' |
16642 | fi |
16643 | |
16644 | # When large executables or shared objects are built, AIX ld can |
16645 | # have problems creating the table of contents. If linking a library |
16646 | # or program results in "error TOC overflow" add -mminimal-toc to |
16647 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
16648 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
16649 | |
16650 | archive_cmds_GCJ='' |
16651 | hardcode_direct_GCJ=yes |
16652 | hardcode_libdir_separator_GCJ=':' |
16653 | link_all_deplibs_GCJ=yes |
16654 | |
16655 | if test "$GCC" = yes; then |
16656 | case $host_os in aix4.[012]|aix4.[012].*) |
16657 | # We only want to do this on AIX 4.2 and lower, the check |
16658 | # below for broken collect2 doesn't work under 4.3+ |
16659 | collect2name=`${CC} -print-prog-name=collect2` |
16660 | if test -f "$collect2name" && \ |
16661 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
16662 | then |
16663 | # We have reworked collect2 |
16664 | hardcode_direct_GCJ=yes |
16665 | else |
16666 | # We have old collect2 |
16667 | hardcode_direct_GCJ=unsupported |
16668 | # It fails to find uninstalled libraries when the uninstalled |
16669 | # path is not listed in the libpath. Setting hardcode_minus_L |
16670 | # to unsupported forces relinking |
16671 | hardcode_minus_L_GCJ=yes |
16672 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16673 | hardcode_libdir_separator_GCJ= |
16674 | fi |
16675 | ;; |
16676 | esac |
16677 | shared_flag='-shared' |
16678 | if test "$aix_use_runtimelinking" = yes; then |
16679 | shared_flag="$shared_flag "'${wl}-G' |
16680 | fi |
16681 | else |
16682 | # not using gcc |
16683 | if test "$host_cpu" = ia64; then |
16684 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
16685 | # chokes on -Wl,-G. The following line is correct: |
16686 | shared_flag='-G' |
16687 | else |
16688 | if test "$aix_use_runtimelinking" = yes; then |
16689 | shared_flag='${wl}-G' |
16690 | else |
16691 | shared_flag='${wl}-bM:SRE' |
16692 | fi |
16693 | fi |
16694 | fi |
16695 | |
16696 | # It seems that -bexpall does not export symbols beginning with |
16697 | # underscore (_), so it is better to generate a list of symbols to export. |
16698 | always_export_symbols_GCJ=yes |
16699 | if test "$aix_use_runtimelinking" = yes; then |
16700 | # Warning - without using the other runtime loading flags (-brtl), |
16701 | # -berok will link without error, but may produce a broken library. |
16702 | allow_undefined_flag_GCJ='-berok' |
16703 | # Determine the default libpath from the value encoded in an empty executable. |
16704 | cat >conftest.$ac_ext <<_ACEOF |
16705 | /* confdefs.h. */ |
16706 | _ACEOF |
16707 | cat confdefs.h >>conftest.$ac_ext |
16708 | cat >>conftest.$ac_ext <<_ACEOF |
16709 | /* end confdefs.h. */ |
16710 | |
16711 | int |
16712 | main () |
16713 | { |
16714 | |
16715 | ; |
16716 | return 0; |
16717 | } |
16718 | _ACEOF |
16719 | rm -f conftest.$ac_objext conftest$ac_exeext |
16720 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
16721 | (eval $ac_link) 2>conftest.er1 |
16722 | ac_status=$? |
16723 | grep -v '^ *+' conftest.er1 >conftest.err |
16724 | rm -f conftest.er1 |
16725 | cat conftest.err >&5 |
16726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16727 | (exit $ac_status); } && |
16728 | { ac_try='test -z "$ac_c_werror_flag" |
16729 | || test ! -s conftest.err' |
16730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16731 | (eval $ac_try) 2>&5 |
16732 | ac_status=$? |
16733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16734 | (exit $ac_status); }; } && |
16735 | { ac_try='test -s conftest$ac_exeext' |
16736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16737 | (eval $ac_try) 2>&5 |
16738 | ac_status=$? |
16739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16740 | (exit $ac_status); }; }; then |
16741 | |
16742 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
16743 | }'` |
16744 | # Check for a 64-bit object if we didn't find anything. |
16745 | 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; } |
16746 | }'`; fi |
16747 | else |
16748 | echo "$as_me: failed program was:" >&5 |
16749 | sed 's/^/| /' conftest.$ac_ext >&5 |
16750 | |
16751 | fi |
16752 | rm -f conftest.err conftest.$ac_objext \ |
16753 | conftest$ac_exeext conftest.$ac_ext |
16754 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
16755 | |
16756 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
16757 | archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
16758 | else |
16759 | if test "$host_cpu" = ia64; then |
16760 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
16761 | allow_undefined_flag_GCJ="-z nodefs" |
16762 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
16763 | else |
16764 | # Determine the default libpath from the value encoded in an empty executable. |
16765 | cat >conftest.$ac_ext <<_ACEOF |
16766 | /* confdefs.h. */ |
16767 | _ACEOF |
16768 | cat confdefs.h >>conftest.$ac_ext |
16769 | cat >>conftest.$ac_ext <<_ACEOF |
16770 | /* end confdefs.h. */ |
16771 | |
16772 | int |
16773 | main () |
16774 | { |
16775 | |
16776 | ; |
16777 | return 0; |
16778 | } |
16779 | _ACEOF |
16780 | rm -f conftest.$ac_objext conftest$ac_exeext |
16781 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
16782 | (eval $ac_link) 2>conftest.er1 |
16783 | ac_status=$? |
16784 | grep -v '^ *+' conftest.er1 >conftest.err |
16785 | rm -f conftest.er1 |
16786 | cat conftest.err >&5 |
16787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16788 | (exit $ac_status); } && |
16789 | { ac_try='test -z "$ac_c_werror_flag" |
16790 | || test ! -s conftest.err' |
16791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16792 | (eval $ac_try) 2>&5 |
16793 | ac_status=$? |
16794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16795 | (exit $ac_status); }; } && |
16796 | { ac_try='test -s conftest$ac_exeext' |
16797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16798 | (eval $ac_try) 2>&5 |
16799 | ac_status=$? |
16800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16801 | (exit $ac_status); }; }; then |
16802 | |
16803 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
16804 | }'` |
16805 | # Check for a 64-bit object if we didn't find anything. |
16806 | 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; } |
16807 | }'`; fi |
16808 | else |
16809 | echo "$as_me: failed program was:" >&5 |
16810 | sed 's/^/| /' conftest.$ac_ext >&5 |
16811 | |
16812 | fi |
16813 | rm -f conftest.err conftest.$ac_objext \ |
16814 | conftest$ac_exeext conftest.$ac_ext |
16815 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
16816 | |
16817 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
16818 | # Warning - without using the other run time loading flags, |
16819 | # -berok will link without error, but may produce a broken library. |
16820 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
16821 | allow_undefined_flag_GCJ=' ${wl}-berok' |
16822 | # Exported symbols can be pulled into shared objects from archives |
16823 | whole_archive_flag_spec_GCJ='$convenience' |
16824 | archive_cmds_need_lc_GCJ=yes |
16825 | # This is similar to how AIX traditionally builds its shared libraries. |
16826 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
16827 | fi |
16828 | fi |
16829 | ;; |
16830 | |
16831 | amigaos*) |
16832 | 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)' |
16833 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16834 | hardcode_minus_L_GCJ=yes |
16835 | # see comment about different semantics on the GNU ld section |
16836 | ld_shlibs_GCJ=no |
16837 | ;; |
16838 | |
16839 | bsdi[45]*) |
16840 | export_dynamic_flag_spec_GCJ=-rdynamic |
16841 | ;; |
16842 | |
16843 | cygwin* | mingw* | pw32*) |
16844 | # When not using gcc, we currently assume that we are using |
16845 | # Microsoft Visual C++. |
16846 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
16847 | # no search path for DLLs. |
16848 | hardcode_libdir_flag_spec_GCJ=' ' |
16849 | allow_undefined_flag_GCJ=unsupported |
16850 | # Tell ltmain to make .lib files, not .a files. |
16851 | libext=lib |
16852 | # Tell ltmain to make .dll files, not .so files. |
16853 | shrext_cmds=".dll" |
16854 | # FIXME: Setting linknames here is a bad hack. |
16855 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
16856 | # The linker will automatically build a .lib file if we build a DLL. |
16857 | old_archive_From_new_cmds_GCJ='true' |
16858 | # FIXME: Should let the user specify the lib program. |
16859 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
16860 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
16861 | enable_shared_with_static_runtimes_GCJ=yes |
16862 | ;; |
16863 | |
16864 | darwin* | rhapsody*) |
16865 | case $host_os in |
16866 | rhapsody* | darwin1.[012]) |
16867 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
16868 | ;; |
16869 | *) # Darwin 1.3 on |
16870 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
16871 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
16872 | else |
16873 | case ${MACOSX_DEPLOYMENT_TARGET} in |
16874 | 10.[012]) |
16875 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
16876 | ;; |
16877 | 10.*) |
16878 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
16879 | ;; |
16880 | esac |
16881 | fi |
16882 | ;; |
16883 | esac |
16884 | archive_cmds_need_lc_GCJ=no |
16885 | hardcode_direct_GCJ=no |
16886 | hardcode_automatic_GCJ=yes |
16887 | hardcode_shlibpath_var_GCJ=unsupported |
16888 | whole_archive_flag_spec_GCJ='' |
16889 | link_all_deplibs_GCJ=yes |
16890 | if test "$GCC" = yes ; then |
16891 | output_verbose_link_cmd='echo' |
16892 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
16893 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
16894 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
16895 | 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}' |
16896 | 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}' |
16897 | else |
16898 | case $cc_basename in |
16899 | xlc*) |
16900 | output_verbose_link_cmd='echo' |
16901 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
16902 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
16903 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
16904 | 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}' |
16905 | 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}' |
16906 | ;; |
16907 | *) |
16908 | ld_shlibs_GCJ=no |
16909 | ;; |
16910 | esac |
16911 | fi |
16912 | ;; |
16913 | |
16914 | dgux*) |
16915 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16916 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16917 | hardcode_shlibpath_var_GCJ=no |
16918 | ;; |
16919 | |
16920 | freebsd1*) |
16921 | ld_shlibs_GCJ=no |
16922 | ;; |
16923 | |
16924 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
16925 | # support. Future versions do this automatically, but an explicit c++rt0.o |
16926 | # does not break anything, and helps significantly (at the cost of a little |
16927 | # extra space). |
16928 | freebsd2.2*) |
16929 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
16930 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
16931 | hardcode_direct_GCJ=yes |
16932 | hardcode_shlibpath_var_GCJ=no |
16933 | ;; |
16934 | |
16935 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
16936 | freebsd2*) |
16937 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
16938 | hardcode_direct_GCJ=yes |
16939 | hardcode_minus_L_GCJ=yes |
16940 | hardcode_shlibpath_var_GCJ=no |
16941 | ;; |
16942 | |
16943 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
16944 | freebsd* | kfreebsd*-gnu | dragonfly*) |
16945 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
16946 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
16947 | hardcode_direct_GCJ=yes |
16948 | hardcode_shlibpath_var_GCJ=no |
16949 | ;; |
16950 | |
16951 | hpux9*) |
16952 | if test "$GCC" = yes; then |
16953 | 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' |
16954 | else |
16955 | 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' |
16956 | fi |
16957 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
16958 | hardcode_libdir_separator_GCJ=: |
16959 | hardcode_direct_GCJ=yes |
16960 | |
16961 | # hardcode_minus_L: Not really in the search PATH, |
16962 | # but as the default location of the library. |
16963 | hardcode_minus_L_GCJ=yes |
16964 | export_dynamic_flag_spec_GCJ='${wl}-E' |
16965 | ;; |
16966 | |
16967 | hpux10*) |
16968 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
16969 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
16970 | else |
16971 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
16972 | fi |
16973 | if test "$with_gnu_ld" = no; then |
16974 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
16975 | hardcode_libdir_separator_GCJ=: |
16976 | |
16977 | hardcode_direct_GCJ=yes |
16978 | export_dynamic_flag_spec_GCJ='${wl}-E' |
16979 | |
16980 | # hardcode_minus_L: Not really in the search PATH, |
16981 | # but as the default location of the library. |
16982 | hardcode_minus_L_GCJ=yes |
16983 | fi |
16984 | ;; |
16985 | |
16986 | hpux11*) |
16987 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
16988 | case $host_cpu in |
16989 | hppa*64*) |
16990 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
16991 | ;; |
16992 | ia64*) |
16993 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
16994 | ;; |
16995 | *) |
16996 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
16997 | ;; |
16998 | esac |
16999 | else |
17000 | case $host_cpu in |
17001 | hppa*64*) |
17002 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17003 | ;; |
17004 | ia64*) |
17005 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
17006 | ;; |
17007 | *) |
17008 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
17009 | ;; |
17010 | esac |
17011 | fi |
17012 | if test "$with_gnu_ld" = no; then |
17013 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
17014 | hardcode_libdir_separator_GCJ=: |
17015 | |
17016 | case $host_cpu in |
17017 | hppa*64*|ia64*) |
17018 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
17019 | hardcode_direct_GCJ=no |
17020 | hardcode_shlibpath_var_GCJ=no |
17021 | ;; |
17022 | *) |
17023 | hardcode_direct_GCJ=yes |
17024 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17025 | |
17026 | # hardcode_minus_L: Not really in the search PATH, |
17027 | # but as the default location of the library. |
17028 | hardcode_minus_L_GCJ=yes |
17029 | ;; |
17030 | esac |
17031 | fi |
17032 | ;; |
17033 | |
17034 | irix5* | irix6* | nonstopux*) |
17035 | if test "$GCC" = yes; then |
17036 | 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' |
17037 | else |
17038 | 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' |
17039 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
17040 | fi |
17041 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17042 | hardcode_libdir_separator_GCJ=: |
17043 | link_all_deplibs_GCJ=yes |
17044 | ;; |
17045 | |
17046 | netbsd*) |
17047 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
17048 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
17049 | else |
17050 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
17051 | fi |
17052 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17053 | hardcode_direct_GCJ=yes |
17054 | hardcode_shlibpath_var_GCJ=no |
17055 | ;; |
17056 | |
17057 | newsos6) |
17058 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17059 | hardcode_direct_GCJ=yes |
17060 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17061 | hardcode_libdir_separator_GCJ=: |
17062 | hardcode_shlibpath_var_GCJ=no |
17063 | ;; |
17064 | |
17065 | openbsd*) |
17066 | hardcode_direct_GCJ=yes |
17067 | hardcode_shlibpath_var_GCJ=no |
17068 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
17069 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
17070 | archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
17071 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
17072 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17073 | else |
17074 | case $host_os in |
17075 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
17076 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
17077 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17078 | ;; |
17079 | *) |
17080 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
17081 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
17082 | ;; |
17083 | esac |
17084 | fi |
17085 | ;; |
17086 | |
17087 | os2*) |
17088 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17089 | hardcode_minus_L_GCJ=yes |
17090 | allow_undefined_flag_GCJ=unsupported |
17091 | 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' |
17092 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
17093 | ;; |
17094 | |
17095 | osf3*) |
17096 | if test "$GCC" = yes; then |
17097 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
17098 | 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' |
17099 | else |
17100 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
17101 | 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' |
17102 | fi |
17103 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17104 | hardcode_libdir_separator_GCJ=: |
17105 | ;; |
17106 | |
17107 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
17108 | if test "$GCC" = yes; then |
17109 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
17110 | 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' |
17111 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17112 | else |
17113 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
17114 | 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' |
17115 | 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~ |
17116 | $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' |
17117 | |
17118 | # Both c and cxx compiler support -rpath directly |
17119 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
17120 | fi |
17121 | hardcode_libdir_separator_GCJ=: |
17122 | ;; |
17123 | |
17124 | solaris*) |
17125 | no_undefined_flag_GCJ=' -z text' |
17126 | if test "$GCC" = yes; then |
17127 | wlarc='${wl}' |
17128 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17129 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
17130 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
17131 | else |
17132 | wlarc='' |
17133 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17134 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
17135 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
17136 | fi |
17137 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17138 | hardcode_shlibpath_var_GCJ=no |
17139 | case $host_os in |
17140 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
17141 | *) |
17142 | # The compiler driver will combine linker options so we |
17143 | # cannot just pass the convience library names through |
17144 | # without $wl, iff we do not link with $LD. |
17145 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
17146 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
17147 | case $wlarc in |
17148 | '') |
17149 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
17150 | *) |
17151 | 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' ;; |
17152 | esac ;; |
17153 | esac |
17154 | link_all_deplibs_GCJ=yes |
17155 | ;; |
17156 | |
17157 | sunos4*) |
17158 | if test "x$host_vendor" = xsequent; then |
17159 | # Use $CC to link under sequent, because it throws in some extra .o |
17160 | # files that make .init and .fini sections work. |
17161 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
17162 | else |
17163 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
17164 | fi |
17165 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17166 | hardcode_direct_GCJ=yes |
17167 | hardcode_minus_L_GCJ=yes |
17168 | hardcode_shlibpath_var_GCJ=no |
17169 | ;; |
17170 | |
17171 | sysv4) |
17172 | case $host_vendor in |
17173 | sni) |
17174 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17175 | hardcode_direct_GCJ=yes # is this really true??? |
17176 | ;; |
17177 | siemens) |
17178 | ## LD is ld it makes a PLAMLIB |
17179 | ## CC just makes a GrossModule. |
17180 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
17181 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
17182 | hardcode_direct_GCJ=no |
17183 | ;; |
17184 | motorola) |
17185 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17186 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
17187 | ;; |
17188 | esac |
17189 | runpath_var='LD_RUN_PATH' |
17190 | hardcode_shlibpath_var_GCJ=no |
17191 | ;; |
17192 | |
17193 | sysv4.3*) |
17194 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17195 | hardcode_shlibpath_var_GCJ=no |
17196 | export_dynamic_flag_spec_GCJ='-Bexport' |
17197 | ;; |
17198 | |
17199 | sysv4*MP*) |
17200 | if test -d /usr/nec; then |
17201 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17202 | hardcode_shlibpath_var_GCJ=no |
17203 | runpath_var=LD_RUN_PATH |
17204 | hardcode_runpath_var=yes |
17205 | ld_shlibs_GCJ=yes |
17206 | fi |
17207 | ;; |
17208 | |
17209 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
17210 | no_undefined_flag_GCJ='${wl}-z,text' |
17211 | archive_cmds_need_lc_GCJ=no |
17212 | hardcode_shlibpath_var_GCJ=no |
17213 | runpath_var='LD_RUN_PATH' |
17214 | |
17215 | if test "$GCC" = yes; then |
17216 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17217 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17218 | else |
17219 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17220 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17221 | fi |
17222 | ;; |
17223 | |
17224 | sysv5* | sco3.2v5* | sco5v6*) |
17225 | # Note: We can NOT use -z defs as we might desire, because we do not |
17226 | # link with -lc, and that would cause any symbols used from libc to |
17227 | # always be unresolved, which means just about no library would |
17228 | # ever link correctly. If we're not using GNU ld we use -z text |
17229 | # though, which does catch some bad symbols but isn't as heavy-handed |
17230 | # as -z defs. |
17231 | no_undefined_flag_GCJ='${wl}-z,text' |
17232 | allow_undefined_flag_GCJ='${wl}-z,nodefs' |
17233 | archive_cmds_need_lc_GCJ=no |
17234 | hardcode_shlibpath_var_GCJ=no |
17235 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
17236 | hardcode_libdir_separator_GCJ=':' |
17237 | link_all_deplibs_GCJ=yes |
17238 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
17239 | runpath_var='LD_RUN_PATH' |
17240 | |
17241 | if test "$GCC" = yes; then |
17242 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17243 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17244 | else |
17245 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17246 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17247 | fi |
17248 | ;; |
17249 | |
17250 | uts4*) |
17251 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17252 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17253 | hardcode_shlibpath_var_GCJ=no |
17254 | ;; |
17255 | |
17256 | *) |
17257 | ld_shlibs_GCJ=no |
17258 | ;; |
17259 | esac |
17260 | fi |
17261 | |
17262 | echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
17263 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 |
17264 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
17265 | |
17266 | # |
17267 | # Do we need to explicitly link libc? |
17268 | # |
17269 | case "x$archive_cmds_need_lc_GCJ" in |
17270 | x|xyes) |
17271 | # Assume -lc should be added |
17272 | archive_cmds_need_lc_GCJ=yes |
17273 | |
17274 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
17275 | case $archive_cmds_GCJ in |
17276 | *'~'*) |
17277 | # FIXME: we may have to deal with multi-command sequences. |
17278 | ;; |
17279 | '$CC '*) |
17280 | # Test whether the compiler implicitly links with -lc since on some |
17281 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
17282 | # to ld, don't add -lc before -lgcc. |
17283 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
17284 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
17285 | $rm conftest* |
17286 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
17287 | |
17288 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17289 | (eval $ac_compile) 2>&5 |
17290 | ac_status=$? |
17291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17292 | (exit $ac_status); } 2>conftest.err; then |
17293 | soname=conftest |
17294 | lib=conftest |
17295 | libobjs=conftest.$ac_objext |
17296 | deplibs= |
17297 | wl=$lt_prog_compiler_wl_GCJ |
17298 | pic_flag=$lt_prog_compiler_pic_GCJ |
17299 | compiler_flags=-v |
17300 | linker_flags=-v |
17301 | verstring= |
17302 | output_objdir=. |
17303 | libname=conftest |
17304 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
17305 | allow_undefined_flag_GCJ= |
17306 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
17307 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
17308 | ac_status=$? |
17309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17310 | (exit $ac_status); } |
17311 | then |
17312 | archive_cmds_need_lc_GCJ=no |
17313 | else |
17314 | archive_cmds_need_lc_GCJ=yes |
17315 | fi |
17316 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
17317 | else |
17318 | cat conftest.err 1>&5 |
17319 | fi |
17320 | $rm conftest* |
17321 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
17322 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 |
17323 | ;; |
17324 | esac |
17325 | fi |
17326 | ;; |
17327 | esac |
17328 | |
17329 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
17330 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
17331 | library_names_spec= |
17332 | libname_spec='lib$name' |
17333 | soname_spec= |
17334 | shrext_cmds=".so" |
17335 | postinstall_cmds= |
17336 | postuninstall_cmds= |
17337 | finish_cmds= |
17338 | finish_eval= |
17339 | shlibpath_var= |
17340 | shlibpath_overrides_runpath=unknown |
17341 | version_type=none |
17342 | dynamic_linker="$host_os ld.so" |
17343 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
17344 | if test "$GCC" = yes; then |
17345 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
17346 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
17347 | # if the path contains ";" then we assume it to be the separator |
17348 | # otherwise default to the standard path separator (i.e. ":") - it is |
17349 | # assumed that no part of a normal pathname contains ";" but that should |
17350 | # okay in the real world where ";" in dirpaths is itself problematic. |
17351 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
17352 | else |
17353 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
17354 | fi |
17355 | else |
17356 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
17357 | fi |
17358 | need_lib_prefix=unknown |
17359 | hardcode_into_libs=no |
17360 | |
17361 | # when you set need_version to no, make sure it does not cause -set_version |
17362 | # flags to be left without arguments |
17363 | need_version=unknown |
17364 | |
17365 | case $host_os in |
17366 | aix3*) |
17367 | version_type=linux |
17368 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
17369 | shlibpath_var=LIBPATH |
17370 | |
17371 | # AIX 3 has no versioning support, so we append a major version to the name. |
17372 | soname_spec='${libname}${release}${shared_ext}$major' |
17373 | ;; |
17374 | |
17375 | aix4* | aix5*) |
17376 | version_type=linux |
17377 | need_lib_prefix=no |
17378 | need_version=no |
17379 | hardcode_into_libs=yes |
17380 | if test "$host_cpu" = ia64; then |
17381 | # AIX 5 supports IA64 |
17382 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
17383 | shlibpath_var=LD_LIBRARY_PATH |
17384 | else |
17385 | # With GCC up to 2.95.x, collect2 would create an import file |
17386 | # for dependence libraries. The import file would start with |
17387 | # the line `#! .'. This would cause the generated library to |
17388 | # depend on `.', always an invalid library. This was fixed in |
17389 | # development snapshots of GCC prior to 3.0. |
17390 | case $host_os in |
17391 | aix4 | aix4.[01] | aix4.[01].*) |
17392 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
17393 | echo ' yes ' |
17394 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
17395 | : |
17396 | else |
17397 | can_build_shared=no |
17398 | fi |
17399 | ;; |
17400 | esac |
17401 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
17402 | # soname into executable. Probably we can add versioning support to |
17403 | # collect2, so additional links can be useful in future. |
17404 | if test "$aix_use_runtimelinking" = yes; then |
17405 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
17406 | # instead of lib<name>.a to let people know that these are not |
17407 | # typical AIX shared libraries. |
17408 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17409 | else |
17410 | # We preserve .a as extension for shared libraries through AIX4.2 |
17411 | # and later when we are not doing run time linking. |
17412 | library_names_spec='${libname}${release}.a $libname.a' |
17413 | soname_spec='${libname}${release}${shared_ext}$major' |
17414 | fi |
17415 | shlibpath_var=LIBPATH |
17416 | fi |
17417 | ;; |
17418 | |
17419 | amigaos*) |
17420 | library_names_spec='$libname.ixlibrary $libname.a' |
17421 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
17422 | 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' |
17423 | ;; |
17424 | |
17425 | beos*) |
17426 | library_names_spec='${libname}${shared_ext}' |
17427 | dynamic_linker="$host_os ld.so" |
17428 | shlibpath_var=LIBRARY_PATH |
17429 | ;; |
17430 | |
17431 | bsdi[45]*) |
17432 | version_type=linux |
17433 | need_version=no |
17434 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17435 | soname_spec='${libname}${release}${shared_ext}$major' |
17436 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
17437 | shlibpath_var=LD_LIBRARY_PATH |
17438 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
17439 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
17440 | # the default ld.so.conf also contains /usr/contrib/lib and |
17441 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
17442 | # libtool to hard-code these into programs |
17443 | ;; |
17444 | |
17445 | cygwin* | mingw* | pw32*) |
17446 | version_type=windows |
17447 | shrext_cmds=".dll" |
17448 | need_version=no |
17449 | need_lib_prefix=no |
17450 | |
17451 | case $GCC,$host_os in |
17452 | yes,cygwin* | yes,mingw* | yes,pw32*) |
17453 | library_names_spec='$libname.dll.a' |
17454 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
17455 | postinstall_cmds='base_file=`basename \${file}`~ |
17456 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
17457 | dldir=$destdir/`dirname \$dlpath`~ |
17458 | test -d \$dldir || mkdir -p \$dldir~ |
17459 | $install_prog $dir/$dlname \$dldir/$dlname~ |
17460 | chmod a+x \$dldir/$dlname' |
17461 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
17462 | dlpath=$dir/\$dldll~ |
17463 | $rm \$dlpath' |
17464 | shlibpath_overrides_runpath=yes |
17465 | |
17466 | case $host_os in |
17467 | cygwin*) |
17468 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
17469 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
17470 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
17471 | ;; |
17472 | mingw*) |
17473 | # MinGW DLLs use traditional 'lib' prefix |
17474 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
17475 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
17476 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
17477 | # It is most probably a Windows format PATH printed by |
17478 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
17479 | # path with ; separators, and with drive letters. We can handle the |
17480 | # drive letters (cygwin fileutils understands them), so leave them, |
17481 | # especially as we might pass files found there to a mingw objdump, |
17482 | # which wouldn't understand a cygwinified path. Ahh. |
17483 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
17484 | else |
17485 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
17486 | fi |
17487 | ;; |
17488 | pw32*) |
17489 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
17490 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
17491 | ;; |
17492 | esac |
17493 | ;; |
17494 | |
17495 | *) |
17496 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
17497 | ;; |
17498 | esac |
17499 | dynamic_linker='Win32 ld.exe' |
17500 | # FIXME: first we should search . and the directory the executable is in |
17501 | shlibpath_var=PATH |
17502 | ;; |
17503 | |
17504 | darwin* | rhapsody*) |
17505 | dynamic_linker="$host_os dyld" |
17506 | version_type=darwin |
17507 | need_lib_prefix=no |
17508 | need_version=no |
17509 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
17510 | soname_spec='${libname}${release}${major}$shared_ext' |
17511 | shlibpath_overrides_runpath=yes |
17512 | shlibpath_var=DYLD_LIBRARY_PATH |
17513 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
17514 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
17515 | if test "$GCC" = yes; then |
17516 | 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"` |
17517 | else |
17518 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
17519 | fi |
17520 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
17521 | ;; |
17522 | |
17523 | dgux*) |
17524 | version_type=linux |
17525 | need_lib_prefix=no |
17526 | need_version=no |
17527 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
17528 | soname_spec='${libname}${release}${shared_ext}$major' |
17529 | shlibpath_var=LD_LIBRARY_PATH |
17530 | ;; |
17531 | |
17532 | freebsd1*) |
17533 | dynamic_linker=no |
17534 | ;; |
17535 | |
17536 | kfreebsd*-gnu) |
17537 | version_type=linux |
17538 | need_lib_prefix=no |
17539 | need_version=no |
17540 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
17541 | soname_spec='${libname}${release}${shared_ext}$major' |
17542 | shlibpath_var=LD_LIBRARY_PATH |
17543 | shlibpath_overrides_runpath=no |
17544 | hardcode_into_libs=yes |
17545 | dynamic_linker='GNU ld.so' |
17546 | ;; |
17547 | |
17548 | freebsd* | dragonfly*) |
17549 | # DragonFly does not have aout. When/if they implement a new |
17550 | # versioning mechanism, adjust this. |
17551 | if test -x /usr/bin/objformat; then |
17552 | objformat=`/usr/bin/objformat` |
17553 | else |
17554 | case $host_os in |
17555 | freebsd[123]*) objformat=aout ;; |
17556 | *) objformat=elf ;; |
17557 | esac |
17558 | fi |
17559 | version_type=freebsd-$objformat |
17560 | case $version_type in |
17561 | freebsd-elf*) |
17562 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
17563 | need_version=no |
17564 | need_lib_prefix=no |
17565 | ;; |
17566 | freebsd-*) |
17567 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
17568 | need_version=yes |
17569 | ;; |
17570 | esac |
17571 | shlibpath_var=LD_LIBRARY_PATH |
17572 | case $host_os in |
17573 | freebsd2*) |
17574 | shlibpath_overrides_runpath=yes |
17575 | ;; |
17576 | freebsd3.[01]* | freebsdelf3.[01]*) |
17577 | shlibpath_overrides_runpath=yes |
17578 | hardcode_into_libs=yes |
17579 | ;; |
17580 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
17581 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
17582 | shlibpath_overrides_runpath=no |
17583 | hardcode_into_libs=yes |
17584 | ;; |
17585 | freebsd*) # from 4.6 on |
17586 | shlibpath_overrides_runpath=yes |
17587 | hardcode_into_libs=yes |
17588 | ;; |
17589 | esac |
17590 | ;; |
17591 | |
17592 | gnu*) |
17593 | version_type=linux |
17594 | need_lib_prefix=no |
17595 | need_version=no |
17596 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
17597 | soname_spec='${libname}${release}${shared_ext}$major' |
17598 | shlibpath_var=LD_LIBRARY_PATH |
17599 | hardcode_into_libs=yes |
17600 | ;; |
17601 | |
17602 | hpux9* | hpux10* | hpux11*) |
17603 | # Give a soname corresponding to the major version so that dld.sl refuses to |
17604 | # link against other versions. |
17605 | version_type=sunos |
17606 | need_lib_prefix=no |
17607 | need_version=no |
17608 | case $host_cpu in |
17609 | ia64*) |
17610 | shrext_cmds='.so' |
17611 | hardcode_into_libs=yes |
17612 | dynamic_linker="$host_os dld.so" |
17613 | shlibpath_var=LD_LIBRARY_PATH |
17614 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
17615 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17616 | soname_spec='${libname}${release}${shared_ext}$major' |
17617 | if test "X$HPUX_IA64_MODE" = X32; then |
17618 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
17619 | else |
17620 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
17621 | fi |
17622 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
17623 | ;; |
17624 | hppa*64*) |
17625 | shrext_cmds='.sl' |
17626 | hardcode_into_libs=yes |
17627 | dynamic_linker="$host_os dld.sl" |
17628 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
17629 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
17630 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17631 | soname_spec='${libname}${release}${shared_ext}$major' |
17632 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
17633 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
17634 | ;; |
17635 | *) |
17636 | shrext_cmds='.sl' |
17637 | dynamic_linker="$host_os dld.sl" |
17638 | shlibpath_var=SHLIB_PATH |
17639 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
17640 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17641 | soname_spec='${libname}${release}${shared_ext}$major' |
17642 | ;; |
17643 | esac |
17644 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
17645 | postinstall_cmds='chmod 555 $lib' |
17646 | ;; |
17647 | |
17648 | interix3*) |
17649 | version_type=linux |
17650 | need_lib_prefix=no |
17651 | need_version=no |
17652 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
17653 | soname_spec='${libname}${release}${shared_ext}$major' |
17654 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
17655 | shlibpath_var=LD_LIBRARY_PATH |
17656 | shlibpath_overrides_runpath=no |
17657 | hardcode_into_libs=yes |
17658 | ;; |
17659 | |
17660 | irix5* | irix6* | nonstopux*) |
17661 | case $host_os in |
17662 | nonstopux*) version_type=nonstopux ;; |
17663 | *) |
17664 | if test "$lt_cv_prog_gnu_ld" = yes; then |
17665 | version_type=linux |
17666 | else |
17667 | version_type=irix |
17668 | fi ;; |
17669 | esac |
17670 | need_lib_prefix=no |
17671 | need_version=no |
17672 | soname_spec='${libname}${release}${shared_ext}$major' |
17673 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
17674 | case $host_os in |
17675 | irix5* | nonstopux*) |
17676 | libsuff= shlibsuff= |
17677 | ;; |
17678 | *) |
17679 | case $LD in # libtool.m4 will add one of these switches to LD |
17680 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
17681 | libsuff= shlibsuff= libmagic=32-bit;; |
17682 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
17683 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
17684 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
17685 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
17686 | *) libsuff= shlibsuff= libmagic=never-match;; |
17687 | esac |
17688 | ;; |
17689 | esac |
17690 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
17691 | shlibpath_overrides_runpath=no |
17692 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
17693 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
17694 | hardcode_into_libs=yes |
17695 | ;; |
17696 | |
17697 | # No shared lib support for Linux oldld, aout, or coff. |
17698 | linux*oldld* | linux*aout* | linux*coff*) |
17699 | dynamic_linker=no |
17700 | ;; |
17701 | |
17702 | # This must be Linux ELF. |
17703 | linux*) |
17704 | version_type=linux |
17705 | need_lib_prefix=no |
17706 | need_version=no |
17707 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17708 | soname_spec='${libname}${release}${shared_ext}$major' |
17709 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
17710 | shlibpath_var=LD_LIBRARY_PATH |
17711 | shlibpath_overrides_runpath=no |
17712 | # This implies no fast_install, which is unacceptable. |
17713 | # Some rework will be needed to allow for fast_install |
17714 | # before this can be enabled. |
17715 | hardcode_into_libs=yes |
17716 | |
17717 | # find out which ABI we are using |
17718 | libsuff= |
17719 | case "$host_cpu" in |
17720 | x86_64*|s390x*|powerpc64*) |
17721 | echo '#line 17721 "configure"' > conftest.$ac_ext |
17722 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17723 | (eval $ac_compile) 2>&5 |
17724 | ac_status=$? |
17725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17726 | (exit $ac_status); }; then |
17727 | case `/usr/bin/file conftest.$ac_objext` in |
17728 | *64-bit*) |
17729 | libsuff=64 |
17730 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
17731 | ;; |
17732 | esac |
17733 | fi |
17734 | rm -rf conftest* |
17735 | ;; |
17736 | esac |
17737 | |
17738 | # Append ld.so.conf contents to the search path |
17739 | if test -f /etc/ld.so.conf; then |
17740 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
17741 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
17742 | fi |
17743 | |
17744 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
17745 | # powerpc, because MkLinux only supported shared libraries with the |
17746 | # GNU dynamic linker. Since this was broken with cross compilers, |
17747 | # most powerpc-linux boxes support dynamic linking these days and |
17748 | # people can always --disable-shared, the test was removed, and we |
17749 | # assume the GNU/Linux dynamic linker is in use. |
17750 | dynamic_linker='GNU/Linux ld.so' |
17751 | ;; |
17752 | |
17753 | knetbsd*-gnu) |
17754 | version_type=linux |
17755 | need_lib_prefix=no |
17756 | need_version=no |
17757 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
17758 | soname_spec='${libname}${release}${shared_ext}$major' |
17759 | shlibpath_var=LD_LIBRARY_PATH |
17760 | shlibpath_overrides_runpath=no |
17761 | hardcode_into_libs=yes |
17762 | dynamic_linker='GNU ld.so' |
17763 | ;; |
17764 | |
17765 | netbsd*) |
17766 | version_type=sunos |
17767 | need_lib_prefix=no |
17768 | need_version=no |
17769 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
17770 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
17771 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
17772 | dynamic_linker='NetBSD (a.out) ld.so' |
17773 | else |
17774 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
17775 | soname_spec='${libname}${release}${shared_ext}$major' |
17776 | dynamic_linker='NetBSD ld.elf_so' |
17777 | fi |
17778 | shlibpath_var=LD_LIBRARY_PATH |
17779 | shlibpath_overrides_runpath=yes |
17780 | hardcode_into_libs=yes |
17781 | ;; |
17782 | |
17783 | newsos6) |
17784 | version_type=linux |
17785 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17786 | shlibpath_var=LD_LIBRARY_PATH |
17787 | shlibpath_overrides_runpath=yes |
17788 | ;; |
17789 | |
17790 | nto-qnx*) |
17791 | version_type=linux |
17792 | need_lib_prefix=no |
17793 | need_version=no |
17794 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17795 | soname_spec='${libname}${release}${shared_ext}$major' |
17796 | shlibpath_var=LD_LIBRARY_PATH |
17797 | shlibpath_overrides_runpath=yes |
17798 | ;; |
17799 | |
17800 | openbsd*) |
17801 | version_type=sunos |
17802 | sys_lib_dlsearch_path_spec="/usr/lib" |
17803 | need_lib_prefix=no |
17804 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
17805 | case $host_os in |
17806 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
17807 | *) need_version=no ;; |
17808 | esac |
17809 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
17810 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
17811 | shlibpath_var=LD_LIBRARY_PATH |
17812 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
17813 | case $host_os in |
17814 | openbsd2.[89] | openbsd2.[89].*) |
17815 | shlibpath_overrides_runpath=no |
17816 | ;; |
17817 | *) |
17818 | shlibpath_overrides_runpath=yes |
17819 | ;; |
17820 | esac |
17821 | else |
17822 | shlibpath_overrides_runpath=yes |
17823 | fi |
17824 | ;; |
17825 | |
17826 | os2*) |
17827 | libname_spec='$name' |
17828 | shrext_cmds=".dll" |
17829 | need_lib_prefix=no |
17830 | library_names_spec='$libname${shared_ext} $libname.a' |
17831 | dynamic_linker='OS/2 ld.exe' |
17832 | shlibpath_var=LIBPATH |
17833 | ;; |
17834 | |
17835 | osf3* | osf4* | osf5*) |
17836 | version_type=osf |
17837 | need_lib_prefix=no |
17838 | need_version=no |
17839 | soname_spec='${libname}${release}${shared_ext}$major' |
17840 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17841 | shlibpath_var=LD_LIBRARY_PATH |
17842 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
17843 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
17844 | ;; |
17845 | |
17846 | solaris*) |
17847 | version_type=linux |
17848 | need_lib_prefix=no |
17849 | need_version=no |
17850 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17851 | soname_spec='${libname}${release}${shared_ext}$major' |
17852 | shlibpath_var=LD_LIBRARY_PATH |
17853 | shlibpath_overrides_runpath=yes |
17854 | hardcode_into_libs=yes |
17855 | # ldd complains unless libraries are executable |
17856 | postinstall_cmds='chmod +x $lib' |
17857 | ;; |
17858 | |
17859 | sunos4*) |
17860 | version_type=sunos |
17861 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
17862 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
17863 | shlibpath_var=LD_LIBRARY_PATH |
17864 | shlibpath_overrides_runpath=yes |
17865 | if test "$with_gnu_ld" = yes; then |
17866 | need_lib_prefix=no |
17867 | fi |
17868 | need_version=yes |
17869 | ;; |
17870 | |
17871 | sysv4 | sysv4.3*) |
17872 | version_type=linux |
17873 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17874 | soname_spec='${libname}${release}${shared_ext}$major' |
17875 | shlibpath_var=LD_LIBRARY_PATH |
17876 | case $host_vendor in |
17877 | sni) |
17878 | shlibpath_overrides_runpath=no |
17879 | need_lib_prefix=no |
17880 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
17881 | runpath_var=LD_RUN_PATH |
17882 | ;; |
17883 | siemens) |
17884 | need_lib_prefix=no |
17885 | ;; |
17886 | motorola) |
17887 | need_lib_prefix=no |
17888 | need_version=no |
17889 | shlibpath_overrides_runpath=no |
17890 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
17891 | ;; |
17892 | esac |
17893 | ;; |
17894 | |
17895 | sysv4*MP*) |
17896 | if test -d /usr/nec ;then |
17897 | version_type=linux |
17898 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
17899 | soname_spec='$libname${shared_ext}.$major' |
17900 | shlibpath_var=LD_LIBRARY_PATH |
17901 | fi |
17902 | ;; |
17903 | |
17904 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
17905 | version_type=freebsd-elf |
17906 | need_lib_prefix=no |
17907 | need_version=no |
17908 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
17909 | soname_spec='${libname}${release}${shared_ext}$major' |
17910 | shlibpath_var=LD_LIBRARY_PATH |
17911 | hardcode_into_libs=yes |
17912 | if test "$with_gnu_ld" = yes; then |
17913 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
17914 | shlibpath_overrides_runpath=no |
17915 | else |
17916 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
17917 | shlibpath_overrides_runpath=yes |
17918 | case $host_os in |
17919 | sco3.2v5*) |
17920 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
17921 | ;; |
17922 | esac |
17923 | fi |
17924 | sys_lib_dlsearch_path_spec='/usr/lib' |
17925 | ;; |
17926 | |
17927 | uts4*) |
17928 | version_type=linux |
17929 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17930 | soname_spec='${libname}${release}${shared_ext}$major' |
17931 | shlibpath_var=LD_LIBRARY_PATH |
17932 | ;; |
17933 | |
17934 | *) |
17935 | dynamic_linker=no |
17936 | ;; |
17937 | esac |
17938 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
17939 | echo "${ECHO_T}$dynamic_linker" >&6 |
17940 | test "$dynamic_linker" = no && can_build_shared=no |
17941 | |
17942 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
17943 | if test "$GCC" = yes; then |
17944 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
17945 | fi |
17946 | |
17947 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
17948 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
17949 | hardcode_action_GCJ= |
17950 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
17951 | test -n "$runpath_var_GCJ" || \ |
17952 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
17953 | |
17954 | # We can hardcode non-existant directories. |
17955 | if test "$hardcode_direct_GCJ" != no && |
17956 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
17957 | # have to relink, otherwise we might link with an installed library |
17958 | # when we should be linking with a yet-to-be-installed one |
17959 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
17960 | test "$hardcode_minus_L_GCJ" != no; then |
17961 | # Linking always hardcodes the temporary library directory. |
17962 | hardcode_action_GCJ=relink |
17963 | else |
17964 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
17965 | hardcode_action_GCJ=immediate |
17966 | fi |
17967 | else |
17968 | # We cannot hardcode anything, or else we can only hardcode existing |
17969 | # directories. |
17970 | hardcode_action_GCJ=unsupported |
17971 | fi |
17972 | echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
17973 | echo "${ECHO_T}$hardcode_action_GCJ" >&6 |
17974 | |
17975 | if test "$hardcode_action_GCJ" = relink; then |
17976 | # Fast installation is not supported |
17977 | enable_fast_install=no |
17978 | elif test "$shlibpath_overrides_runpath" = yes || |
17979 | test "$enable_shared" = no; then |
17980 | # Fast installation is not necessary |
17981 | enable_fast_install=needless |
17982 | fi |
17983 | |
17984 | |
17985 | # The else clause should only fire when bootstrapping the |
17986 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
17987 | # with your package, and you will get complaints that there are |
17988 | # no rules to generate ltmain.sh. |
17989 | if test -f "$ltmain"; then |
17990 | # See if we are running on zsh, and set the options which allow our commands through |
17991 | # without removal of \ escapes. |
17992 | if test -n "${ZSH_VERSION+set}" ; then |
17993 | setopt NO_GLOB_SUBST |
17994 | fi |
17995 | # Now quote all the things that may contain metacharacters while being |
17996 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
17997 | # variables and quote the copies for generation of the libtool script. |
17998 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
17999 | SED SHELL STRIP \ |
18000 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
18001 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
18002 | deplibs_check_method reload_flag reload_cmds need_locks \ |
18003 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
18004 | lt_cv_sys_global_symbol_to_c_name_address \ |
18005 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
18006 | old_postinstall_cmds old_postuninstall_cmds \ |
18007 | compiler_GCJ \ |
18008 | CC_GCJ \ |
18009 | LD_GCJ \ |
18010 | lt_prog_compiler_wl_GCJ \ |
18011 | lt_prog_compiler_pic_GCJ \ |
18012 | lt_prog_compiler_static_GCJ \ |
18013 | lt_prog_compiler_no_builtin_flag_GCJ \ |
18014 | export_dynamic_flag_spec_GCJ \ |
18015 | thread_safe_flag_spec_GCJ \ |
18016 | whole_archive_flag_spec_GCJ \ |
18017 | enable_shared_with_static_runtimes_GCJ \ |
18018 | old_archive_cmds_GCJ \ |
18019 | old_archive_from_new_cmds_GCJ \ |
18020 | predep_objects_GCJ \ |
18021 | postdep_objects_GCJ \ |
18022 | predeps_GCJ \ |
18023 | postdeps_GCJ \ |
18024 | compiler_lib_search_path_GCJ \ |
18025 | archive_cmds_GCJ \ |
18026 | archive_expsym_cmds_GCJ \ |
18027 | postinstall_cmds_GCJ \ |
18028 | postuninstall_cmds_GCJ \ |
18029 | old_archive_from_expsyms_cmds_GCJ \ |
18030 | allow_undefined_flag_GCJ \ |
18031 | no_undefined_flag_GCJ \ |
18032 | export_symbols_cmds_GCJ \ |
18033 | hardcode_libdir_flag_spec_GCJ \ |
18034 | hardcode_libdir_flag_spec_ld_GCJ \ |
18035 | hardcode_libdir_separator_GCJ \ |
18036 | hardcode_automatic_GCJ \ |
18037 | module_cmds_GCJ \ |
18038 | module_expsym_cmds_GCJ \ |
18039 | lt_cv_prog_compiler_c_o_GCJ \ |
18040 | exclude_expsyms_GCJ \ |
18041 | include_expsyms_GCJ; do |
18042 | |
18043 | case $var in |
18044 | old_archive_cmds_GCJ | \ |
18045 | old_archive_from_new_cmds_GCJ | \ |
18046 | archive_cmds_GCJ | \ |
18047 | archive_expsym_cmds_GCJ | \ |
18048 | module_cmds_GCJ | \ |
18049 | module_expsym_cmds_GCJ | \ |
18050 | old_archive_from_expsyms_cmds_GCJ | \ |
18051 | export_symbols_cmds_GCJ | \ |
18052 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
18053 | postinstall_cmds | postuninstall_cmds | \ |
18054 | old_postinstall_cmds | old_postuninstall_cmds | \ |
18055 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
18056 | # Double-quote double-evaled strings. |
18057 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
18058 | ;; |
18059 | *) |
18060 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
18061 | ;; |
18062 | esac |
18063 | done |
18064 | |
18065 | case $lt_echo in |
18066 | *'\$0 --fallback-echo"') |
18067 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
18068 | ;; |
18069 | esac |
18070 | |
18071 | cfgfile="$ofile" |
18072 | |
18073 | cat <<__EOF__ >> "$cfgfile" |
18074 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
18075 | |
18076 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
18077 | |
18078 | # Shell to use when invoking shell scripts. |
18079 | SHELL=$lt_SHELL |
18080 | |
18081 | # Whether or not to build shared libraries. |
18082 | build_libtool_libs=$enable_shared |
18083 | |
18084 | # Whether or not to build static libraries. |
18085 | build_old_libs=$enable_static |
18086 | |
18087 | # Whether or not to add -lc for building shared libraries. |
18088 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
18089 | |
18090 | # Whether or not to disallow shared libs when runtime libs are static |
18091 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
18092 | |
18093 | # Whether or not to optimize for fast installation. |
18094 | fast_install=$enable_fast_install |
18095 | |
18096 | # The host system. |
18097 | host_alias=$host_alias |
18098 | host=$host |
18099 | host_os=$host_os |
18100 | |
18101 | # The build system. |
18102 | build_alias=$build_alias |
18103 | build=$build |
18104 | build_os=$build_os |
18105 | |
18106 | # An echo program that does not interpret backslashes. |
18107 | echo=$lt_echo |
18108 | |
18109 | # The archiver. |
18110 | AR=$lt_AR |
18111 | AR_FLAGS=$lt_AR_FLAGS |
18112 | |
18113 | # A C compiler. |
18114 | LTCC=$lt_LTCC |
18115 | |
18116 | # LTCC compiler flags. |
18117 | LTCFLAGS=$lt_LTCFLAGS |
18118 | |
18119 | # A language-specific compiler. |
18120 | CC=$lt_compiler_GCJ |
18121 | |
18122 | # Is the compiler the GNU C compiler? |
18123 | with_gcc=$GCC_GCJ |
18124 | |
18125 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` |
18126 | gcc_ver=\`gcc -dumpversion\` |
18127 | |
18128 | # An ERE matcher. |
18129 | EGREP=$lt_EGREP |
18130 | |
18131 | # The linker used to build libraries. |
18132 | LD=$lt_LD_GCJ |
18133 | |
18134 | # Whether we need hard or soft links. |
18135 | LN_S=$lt_LN_S |
18136 | |
18137 | # A BSD-compatible nm program. |
18138 | NM=$lt_NM |
18139 | |
18140 | # A symbol stripping program |
18141 | STRIP=$lt_STRIP |
18142 | |
18143 | # Used to examine libraries when file_magic_cmd begins "file" |
18144 | MAGIC_CMD=$MAGIC_CMD |
18145 | |
18146 | # Used on cygwin: DLL creation program. |
18147 | DLLTOOL="$DLLTOOL" |
18148 | |
18149 | # Used on cygwin: object dumper. |
18150 | OBJDUMP="$OBJDUMP" |
18151 | |
18152 | # Used on cygwin: assembler. |
18153 | AS="$AS" |
18154 | |
18155 | # The name of the directory that contains temporary libtool files. |
18156 | objdir=$objdir |
18157 | |
18158 | # How to create reloadable object files. |
18159 | reload_flag=$lt_reload_flag |
18160 | reload_cmds=$lt_reload_cmds |
18161 | |
18162 | # How to pass a linker flag through the compiler. |
18163 | wl=$lt_lt_prog_compiler_wl_GCJ |
18164 | |
18165 | # Object file suffix (normally "o"). |
18166 | objext="$ac_objext" |
18167 | |
18168 | # Old archive suffix (normally "a"). |
18169 | libext="$libext" |
18170 | |
18171 | # Shared library suffix (normally ".so"). |
18172 | shrext_cmds='$shrext_cmds' |
18173 | |
18174 | # Executable file suffix (normally ""). |
18175 | exeext="$exeext" |
18176 | |
18177 | # Additional compiler flags for building library objects. |
18178 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
18179 | pic_mode=$pic_mode |
18180 | |
18181 | # What is the maximum length of a command? |
18182 | max_cmd_len=$lt_cv_sys_max_cmd_len |
18183 | |
18184 | # Does compiler simultaneously support -c and -o options? |
18185 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
18186 | |
18187 | # Must we lock files when doing compilation? |
18188 | need_locks=$lt_need_locks |
18189 | |
18190 | # Do we need the lib prefix for modules? |
18191 | need_lib_prefix=$need_lib_prefix |
18192 | |
18193 | # Do we need a version for libraries? |
18194 | need_version=$need_version |
18195 | |
18196 | # Whether dlopen is supported. |
18197 | dlopen_support=$enable_dlopen |
18198 | |
18199 | # Whether dlopen of programs is supported. |
18200 | dlopen_self=$enable_dlopen_self |
18201 | |
18202 | # Whether dlopen of statically linked programs is supported. |
18203 | dlopen_self_static=$enable_dlopen_self_static |
18204 | |
18205 | # Compiler flag to prevent dynamic linking. |
18206 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
18207 | |
18208 | # Compiler flag to turn off builtin functions. |
18209 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
18210 | |
18211 | # Compiler flag to allow reflexive dlopens. |
18212 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
18213 | |
18214 | # Compiler flag to generate shared objects directly from archives. |
18215 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
18216 | |
18217 | # Compiler flag to generate thread-safe objects. |
18218 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
18219 | |
18220 | # Library versioning type. |
18221 | version_type=$version_type |
18222 | |
18223 | # Format of library name prefix. |
18224 | libname_spec=$lt_libname_spec |
18225 | |
18226 | # List of archive names. First name is the real one, the rest are links. |
18227 | # The last name is the one that the linker finds with -lNAME. |
18228 | library_names_spec=$lt_library_names_spec |
18229 | |
18230 | # The coded name of the library, if different from the real name. |
18231 | soname_spec=$lt_soname_spec |
18232 | |
18233 | # Commands used to build and install an old-style archive. |
18234 | RANLIB=$lt_RANLIB |
18235 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
18236 | old_postinstall_cmds=$lt_old_postinstall_cmds |
18237 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
18238 | |
18239 | # Create an old-style archive from a shared archive. |
18240 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
18241 | |
18242 | # Create a temporary old-style archive to link instead of a shared archive. |
18243 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
18244 | |
18245 | # Commands used to build and install a shared archive. |
18246 | archive_cmds=$lt_archive_cmds_GCJ |
18247 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
18248 | postinstall_cmds=$lt_postinstall_cmds |
18249 | postuninstall_cmds=$lt_postuninstall_cmds |
18250 | |
18251 | # Commands used to build a loadable module (assumed same as above if empty) |
18252 | module_cmds=$lt_module_cmds_GCJ |
18253 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
18254 | |
18255 | # Commands to strip libraries. |
18256 | old_striplib=$lt_old_striplib |
18257 | striplib=$lt_striplib |
18258 | |
18259 | # Dependencies to place before the objects being linked to create a |
18260 | # shared library. |
18261 | predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
18262 | |
18263 | # Dependencies to place after the objects being linked to create a |
18264 | # shared library. |
18265 | postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
18266 | |
18267 | # Dependencies to place before the objects being linked to create a |
18268 | # shared library. |
18269 | predeps=$lt_predeps_GCJ |
18270 | |
18271 | # Dependencies to place after the objects being linked to create a |
18272 | # shared library. |
18273 | postdeps=$lt_postdeps_GCJ |
18274 | |
18275 | # The library search path used internally by the compiler when linking |
18276 | # a shared library. |
18277 | compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
18278 | |
18279 | # Method to check whether dependent libraries are shared objects. |
18280 | deplibs_check_method=$lt_deplibs_check_method |
18281 | |
18282 | # Command to use when deplibs_check_method == file_magic. |
18283 | file_magic_cmd=$lt_file_magic_cmd |
18284 | |
18285 | # Flag that allows shared libraries with undefined symbols to be built. |
18286 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
18287 | |
18288 | # Flag that forces no undefined symbols. |
18289 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
18290 | |
18291 | # Commands used to finish a libtool library installation in a directory. |
18292 | finish_cmds=$lt_finish_cmds |
18293 | |
18294 | # Same as above, but a single script fragment to be evaled but not shown. |
18295 | finish_eval=$lt_finish_eval |
18296 | |
18297 | # Take the output of nm and produce a listing of raw symbols and C names. |
18298 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
18299 | |
18300 | # Transform the output of nm in a proper C declaration |
18301 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
18302 | |
18303 | # Transform the output of nm in a C name address pair |
18304 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
18305 | |
18306 | # This is the shared library runtime path variable. |
18307 | runpath_var=$runpath_var |
18308 | |
18309 | # This is the shared library path variable. |
18310 | shlibpath_var=$shlibpath_var |
18311 | |
18312 | # Is shlibpath searched before the hard-coded library search path? |
18313 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
18314 | |
18315 | # How to hardcode a shared library path into an executable. |
18316 | hardcode_action=$hardcode_action_GCJ |
18317 | |
18318 | # Whether we should hardcode library paths into libraries. |
18319 | hardcode_into_libs=$hardcode_into_libs |
18320 | |
18321 | # Flag to hardcode \$libdir into a binary during linking. |
18322 | # This must work even if \$libdir does not exist. |
18323 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
18324 | |
18325 | # If ld is used when linking, flag to hardcode \$libdir into |
18326 | # a binary during linking. This must work even if \$libdir does |
18327 | # not exist. |
18328 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
18329 | |
18330 | # Whether we need a single -rpath flag with a separated argument. |
18331 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
18332 | |
18333 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
18334 | # resulting binary. |
18335 | hardcode_direct=$hardcode_direct_GCJ |
18336 | |
18337 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
18338 | # resulting binary. |
18339 | hardcode_minus_L=$hardcode_minus_L_GCJ |
18340 | |
18341 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
18342 | # the resulting binary. |
18343 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
18344 | |
18345 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
18346 | # and all subsequent libraries and executables linked against it. |
18347 | hardcode_automatic=$hardcode_automatic_GCJ |
18348 | |
18349 | # Variables whose values should be saved in libtool wrapper scripts and |
18350 | # restored at relink time. |
18351 | variables_saved_for_relink="$variables_saved_for_relink" |
18352 | |
18353 | # Whether libtool must link a program against all its dependency libraries. |
18354 | link_all_deplibs=$link_all_deplibs_GCJ |
18355 | |
18356 | # Compile-time system search path for libraries |
18357 | sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
18358 | |
18359 | # Run-time system search path for libraries |
18360 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
18361 | |
18362 | # Fix the shell variable \$srcfile for the compiler. |
18363 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
18364 | |
18365 | # Set to yes if exported symbols are required. |
18366 | always_export_symbols=$always_export_symbols_GCJ |
18367 | |
18368 | # The commands to list exported symbols. |
18369 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
18370 | |
18371 | # The commands to extract the exported symbol list from a shared archive. |
18372 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
18373 | |
18374 | # Symbols that should not be listed in the preloaded symbols. |
18375 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
18376 | |
18377 | # Symbols that must always be exported. |
18378 | include_expsyms=$lt_include_expsyms_GCJ |
18379 | |
18380 | # ### END LIBTOOL TAG CONFIG: $tagname |
18381 | |
18382 | __EOF__ |
18383 | |
18384 | |
18385 | else |
18386 | # If there is no Makefile yet, we rely on a make rule to execute |
18387 | # `config.status --recheck' to rerun these tests and create the |
18388 | # libtool script then. |
18389 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
18390 | if test -f "$ltmain_in"; then |
18391 | test -f Makefile && make "$ltmain" |
18392 | fi |
18393 | fi |
18394 | |
18395 | |
18396 | ac_ext=c |
18397 | ac_cpp='$CPP $CPPFLAGS' |
18398 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18399 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
18400 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
18401 | |
18402 | CC="$lt_save_CC" |
18403 | |
18404 | else |
18405 | tagname="" |
18406 | fi |
18407 | ;; |
18408 | |
18409 | RC) |
18410 | |
18411 | |
18412 | |
18413 | # Source file extension for RC test sources. |
18414 | ac_ext=rc |
18415 | |
18416 | # Object file extension for compiled RC test sources. |
18417 | objext=o |
18418 | objext_RC=$objext |
18419 | |
18420 | # Code to be used in simple compile tests |
18421 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
18422 | |
18423 | # Code to be used in simple link tests |
18424 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
18425 | |
18426 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
18427 | |
18428 | # If no C compiler was specified, use CC. |
18429 | LTCC=${LTCC-"$CC"} |
18430 | |
18431 | # If no C compiler flags were specified, use CFLAGS. |
18432 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
18433 | |
18434 | # Allow CC to be a program name with arguments. |
18435 | compiler=$CC |
18436 | |
18437 | |
18438 | # save warnings/boilerplate of simple test code |
18439 | ac_outfile=conftest.$ac_objext |
18440 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
18441 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
18442 | _lt_compiler_boilerplate=`cat conftest.err` |
18443 | $rm conftest* |
18444 | |
18445 | ac_outfile=conftest.$ac_objext |
18446 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
18447 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
18448 | _lt_linker_boilerplate=`cat conftest.err` |
18449 | $rm conftest* |
18450 | |
18451 | |
18452 | # Allow CC to be a program name with arguments. |
18453 | lt_save_CC="$CC" |
18454 | CC=${RC-"windres"} |
18455 | compiler=$CC |
18456 | compiler_RC=$CC |
18457 | for cc_temp in $compiler""; do |
18458 | case $cc_temp in |
18459 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
18460 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
18461 | \-*) ;; |
18462 | *) break;; |
18463 | esac |
18464 | done |
18465 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
18466 | |
18467 | lt_cv_prog_compiler_c_o_RC=yes |
18468 | |
18469 | # The else clause should only fire when bootstrapping the |
18470 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
18471 | # with your package, and you will get complaints that there are |
18472 | # no rules to generate ltmain.sh. |
18473 | if test -f "$ltmain"; then |
18474 | # See if we are running on zsh, and set the options which allow our commands through |
18475 | # without removal of \ escapes. |
18476 | if test -n "${ZSH_VERSION+set}" ; then |
18477 | setopt NO_GLOB_SUBST |
18478 | fi |
18479 | # Now quote all the things that may contain metacharacters while being |
18480 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
18481 | # variables and quote the copies for generation of the libtool script. |
18482 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
18483 | SED SHELL STRIP \ |
18484 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
18485 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
18486 | deplibs_check_method reload_flag reload_cmds need_locks \ |
18487 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
18488 | lt_cv_sys_global_symbol_to_c_name_address \ |
18489 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
18490 | old_postinstall_cmds old_postuninstall_cmds \ |
18491 | compiler_RC \ |
18492 | CC_RC \ |
18493 | LD_RC \ |
18494 | lt_prog_compiler_wl_RC \ |
18495 | lt_prog_compiler_pic_RC \ |
18496 | lt_prog_compiler_static_RC \ |
18497 | lt_prog_compiler_no_builtin_flag_RC \ |
18498 | export_dynamic_flag_spec_RC \ |
18499 | thread_safe_flag_spec_RC \ |
18500 | whole_archive_flag_spec_RC \ |
18501 | enable_shared_with_static_runtimes_RC \ |
18502 | old_archive_cmds_RC \ |
18503 | old_archive_from_new_cmds_RC \ |
18504 | predep_objects_RC \ |
18505 | postdep_objects_RC \ |
18506 | predeps_RC \ |
18507 | postdeps_RC \ |
18508 | compiler_lib_search_path_RC \ |
18509 | archive_cmds_RC \ |
18510 | archive_expsym_cmds_RC \ |
18511 | postinstall_cmds_RC \ |
18512 | postuninstall_cmds_RC \ |
18513 | old_archive_from_expsyms_cmds_RC \ |
18514 | allow_undefined_flag_RC \ |
18515 | no_undefined_flag_RC \ |
18516 | export_symbols_cmds_RC \ |
18517 | hardcode_libdir_flag_spec_RC \ |
18518 | hardcode_libdir_flag_spec_ld_RC \ |
18519 | hardcode_libdir_separator_RC \ |
18520 | hardcode_automatic_RC \ |
18521 | module_cmds_RC \ |
18522 | module_expsym_cmds_RC \ |
18523 | lt_cv_prog_compiler_c_o_RC \ |
18524 | exclude_expsyms_RC \ |
18525 | include_expsyms_RC; do |
18526 | |
18527 | case $var in |
18528 | old_archive_cmds_RC | \ |
18529 | old_archive_from_new_cmds_RC | \ |
18530 | archive_cmds_RC | \ |
18531 | archive_expsym_cmds_RC | \ |
18532 | module_cmds_RC | \ |
18533 | module_expsym_cmds_RC | \ |
18534 | old_archive_from_expsyms_cmds_RC | \ |
18535 | export_symbols_cmds_RC | \ |
18536 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
18537 | postinstall_cmds | postuninstall_cmds | \ |
18538 | old_postinstall_cmds | old_postuninstall_cmds | \ |
18539 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
18540 | # Double-quote double-evaled strings. |
18541 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
18542 | ;; |
18543 | *) |
18544 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
18545 | ;; |
18546 | esac |
18547 | done |
18548 | |
18549 | case $lt_echo in |
18550 | *'\$0 --fallback-echo"') |
18551 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
18552 | ;; |
18553 | esac |
18554 | |
18555 | cfgfile="$ofile" |
18556 | |
18557 | cat <<__EOF__ >> "$cfgfile" |
18558 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
18559 | |
18560 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
18561 | |
18562 | # Shell to use when invoking shell scripts. |
18563 | SHELL=$lt_SHELL |
18564 | |
18565 | # Whether or not to build shared libraries. |
18566 | build_libtool_libs=$enable_shared |
18567 | |
18568 | # Whether or not to build static libraries. |
18569 | build_old_libs=$enable_static |
18570 | |
18571 | # Whether or not to add -lc for building shared libraries. |
18572 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
18573 | |
18574 | # Whether or not to disallow shared libs when runtime libs are static |
18575 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
18576 | |
18577 | # Whether or not to optimize for fast installation. |
18578 | fast_install=$enable_fast_install |
18579 | |
18580 | # The host system. |
18581 | host_alias=$host_alias |
18582 | host=$host |
18583 | host_os=$host_os |
18584 | |
18585 | # The build system. |
18586 | build_alias=$build_alias |
18587 | build=$build |
18588 | build_os=$build_os |
18589 | |
18590 | # An echo program that does not interpret backslashes. |
18591 | echo=$lt_echo |
18592 | |
18593 | # The archiver. |
18594 | AR=$lt_AR |
18595 | AR_FLAGS=$lt_AR_FLAGS |
18596 | |
18597 | # A C compiler. |
18598 | LTCC=$lt_LTCC |
18599 | |
18600 | # LTCC compiler flags. |
18601 | LTCFLAGS=$lt_LTCFLAGS |
18602 | |
18603 | # A language-specific compiler. |
18604 | CC=$lt_compiler_RC |
18605 | |
18606 | # Is the compiler the GNU C compiler? |
18607 | with_gcc=$GCC_RC |
18608 | |
18609 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` |
18610 | gcc_ver=\`gcc -dumpversion\` |
18611 | |
18612 | # An ERE matcher. |
18613 | EGREP=$lt_EGREP |
18614 | |
18615 | # The linker used to build libraries. |
18616 | LD=$lt_LD_RC |
18617 | |
18618 | # Whether we need hard or soft links. |
18619 | LN_S=$lt_LN_S |
18620 | |
18621 | # A BSD-compatible nm program. |
18622 | NM=$lt_NM |
18623 | |
18624 | # A symbol stripping program |
18625 | STRIP=$lt_STRIP |
18626 | |
18627 | # Used to examine libraries when file_magic_cmd begins "file" |
18628 | MAGIC_CMD=$MAGIC_CMD |
18629 | |
18630 | # Used on cygwin: DLL creation program. |
18631 | DLLTOOL="$DLLTOOL" |
18632 | |
18633 | # Used on cygwin: object dumper. |
18634 | OBJDUMP="$OBJDUMP" |
18635 | |
18636 | # Used on cygwin: assembler. |
18637 | AS="$AS" |
18638 | |
18639 | # The name of the directory that contains temporary libtool files. |
18640 | objdir=$objdir |
18641 | |
18642 | # How to create reloadable object files. |
18643 | reload_flag=$lt_reload_flag |
18644 | reload_cmds=$lt_reload_cmds |
18645 | |
18646 | # How to pass a linker flag through the compiler. |
18647 | wl=$lt_lt_prog_compiler_wl_RC |
18648 | |
18649 | # Object file suffix (normally "o"). |
18650 | objext="$ac_objext" |
18651 | |
18652 | # Old archive suffix (normally "a"). |
18653 | libext="$libext" |
18654 | |
18655 | # Shared library suffix (normally ".so"). |
18656 | shrext_cmds='$shrext_cmds' |
18657 | |
18658 | # Executable file suffix (normally ""). |
18659 | exeext="$exeext" |
18660 | |
18661 | # Additional compiler flags for building library objects. |
18662 | pic_flag=$lt_lt_prog_compiler_pic_RC |
18663 | pic_mode=$pic_mode |
18664 | |
18665 | # What is the maximum length of a command? |
18666 | max_cmd_len=$lt_cv_sys_max_cmd_len |
18667 | |
18668 | # Does compiler simultaneously support -c and -o options? |
18669 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
18670 | |
18671 | # Must we lock files when doing compilation? |
18672 | need_locks=$lt_need_locks |
18673 | |
18674 | # Do we need the lib prefix for modules? |
18675 | need_lib_prefix=$need_lib_prefix |
18676 | |
18677 | # Do we need a version for libraries? |
18678 | need_version=$need_version |
18679 | |
18680 | # Whether dlopen is supported. |
18681 | dlopen_support=$enable_dlopen |
18682 | |
18683 | # Whether dlopen of programs is supported. |
18684 | dlopen_self=$enable_dlopen_self |
18685 | |
18686 | # Whether dlopen of statically linked programs is supported. |
18687 | dlopen_self_static=$enable_dlopen_self_static |
18688 | |
18689 | # Compiler flag to prevent dynamic linking. |
18690 | link_static_flag=$lt_lt_prog_compiler_static_RC |
18691 | |
18692 | # Compiler flag to turn off builtin functions. |
18693 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
18694 | |
18695 | # Compiler flag to allow reflexive dlopens. |
18696 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
18697 | |
18698 | # Compiler flag to generate shared objects directly from archives. |
18699 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
18700 | |
18701 | # Compiler flag to generate thread-safe objects. |
18702 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
18703 | |
18704 | # Library versioning type. |
18705 | version_type=$version_type |
18706 | |
18707 | # Format of library name prefix. |
18708 | libname_spec=$lt_libname_spec |
18709 | |
18710 | # List of archive names. First name is the real one, the rest are links. |
18711 | # The last name is the one that the linker finds with -lNAME. |
18712 | library_names_spec=$lt_library_names_spec |
18713 | |
18714 | # The coded name of the library, if different from the real name. |
18715 | soname_spec=$lt_soname_spec |
18716 | |
18717 | # Commands used to build and install an old-style archive. |
18718 | RANLIB=$lt_RANLIB |
18719 | old_archive_cmds=$lt_old_archive_cmds_RC |
18720 | old_postinstall_cmds=$lt_old_postinstall_cmds |
18721 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
18722 | |
18723 | # Create an old-style archive from a shared archive. |
18724 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
18725 | |
18726 | # Create a temporary old-style archive to link instead of a shared archive. |
18727 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
18728 | |
18729 | # Commands used to build and install a shared archive. |
18730 | archive_cmds=$lt_archive_cmds_RC |
18731 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
18732 | postinstall_cmds=$lt_postinstall_cmds |
18733 | postuninstall_cmds=$lt_postuninstall_cmds |
18734 | |
18735 | # Commands used to build a loadable module (assumed same as above if empty) |
18736 | module_cmds=$lt_module_cmds_RC |
18737 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
18738 | |
18739 | # Commands to strip libraries. |
18740 | old_striplib=$lt_old_striplib |
18741 | striplib=$lt_striplib |
18742 | |
18743 | # Dependencies to place before the objects being linked to create a |
18744 | # shared library. |
18745 | predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
18746 | |
18747 | # Dependencies to place after the objects being linked to create a |
18748 | # shared library. |
18749 | postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
18750 | |
18751 | # Dependencies to place before the objects being linked to create a |
18752 | # shared library. |
18753 | predeps=$lt_predeps_RC |
18754 | |
18755 | # Dependencies to place after the objects being linked to create a |
18756 | # shared library. |
18757 | postdeps=$lt_postdeps_RC |
18758 | |
18759 | # The library search path used internally by the compiler when linking |
18760 | # a shared library. |
18761 | compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
18762 | |
18763 | # Method to check whether dependent libraries are shared objects. |
18764 | deplibs_check_method=$lt_deplibs_check_method |
18765 | |
18766 | # Command to use when deplibs_check_method == file_magic. |
18767 | file_magic_cmd=$lt_file_magic_cmd |
18768 | |
18769 | # Flag that allows shared libraries with undefined symbols to be built. |
18770 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
18771 | |
18772 | # Flag that forces no undefined symbols. |
18773 | no_undefined_flag=$lt_no_undefined_flag_RC |
18774 | |
18775 | # Commands used to finish a libtool library installation in a directory. |
18776 | finish_cmds=$lt_finish_cmds |
18777 | |
18778 | # Same as above, but a single script fragment to be evaled but not shown. |
18779 | finish_eval=$lt_finish_eval |
18780 | |
18781 | # Take the output of nm and produce a listing of raw symbols and C names. |
18782 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
18783 | |
18784 | # Transform the output of nm in a proper C declaration |
18785 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
18786 | |
18787 | # Transform the output of nm in a C name address pair |
18788 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
18789 | |
18790 | # This is the shared library runtime path variable. |
18791 | runpath_var=$runpath_var |
18792 | |
18793 | # This is the shared library path variable. |
18794 | shlibpath_var=$shlibpath_var |
18795 | |
18796 | # Is shlibpath searched before the hard-coded library search path? |
18797 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
18798 | |
18799 | # How to hardcode a shared library path into an executable. |
18800 | hardcode_action=$hardcode_action_RC |
18801 | |
18802 | # Whether we should hardcode library paths into libraries. |
18803 | hardcode_into_libs=$hardcode_into_libs |
18804 | |
18805 | # Flag to hardcode \$libdir into a binary during linking. |
18806 | # This must work even if \$libdir does not exist. |
18807 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
18808 | |
18809 | # If ld is used when linking, flag to hardcode \$libdir into |
18810 | # a binary during linking. This must work even if \$libdir does |
18811 | # not exist. |
18812 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
18813 | |
18814 | # Whether we need a single -rpath flag with a separated argument. |
18815 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
18816 | |
18817 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
18818 | # resulting binary. |
18819 | hardcode_direct=$hardcode_direct_RC |
18820 | |
18821 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
18822 | # resulting binary. |
18823 | hardcode_minus_L=$hardcode_minus_L_RC |
18824 | |
18825 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
18826 | # the resulting binary. |
18827 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
18828 | |
18829 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
18830 | # and all subsequent libraries and executables linked against it. |
18831 | hardcode_automatic=$hardcode_automatic_RC |
18832 | |
18833 | # Variables whose values should be saved in libtool wrapper scripts and |
18834 | # restored at relink time. |
18835 | variables_saved_for_relink="$variables_saved_for_relink" |
18836 | |
18837 | # Whether libtool must link a program against all its dependency libraries. |
18838 | link_all_deplibs=$link_all_deplibs_RC |
18839 | |
18840 | # Compile-time system search path for libraries |
18841 | sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
18842 | |
18843 | # Run-time system search path for libraries |
18844 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
18845 | |
18846 | # Fix the shell variable \$srcfile for the compiler. |
18847 | fix_srcfile_path="$fix_srcfile_path_RC" |
18848 | |
18849 | # Set to yes if exported symbols are required. |
18850 | always_export_symbols=$always_export_symbols_RC |
18851 | |
18852 | # The commands to list exported symbols. |
18853 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
18854 | |
18855 | # The commands to extract the exported symbol list from a shared archive. |
18856 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
18857 | |
18858 | # Symbols that should not be listed in the preloaded symbols. |
18859 | exclude_expsyms=$lt_exclude_expsyms_RC |
18860 | |
18861 | # Symbols that must always be exported. |
18862 | include_expsyms=$lt_include_expsyms_RC |
18863 | |
18864 | # ### END LIBTOOL TAG CONFIG: $tagname |
18865 | |
18866 | __EOF__ |
18867 | |
18868 | |
18869 | else |
18870 | # If there is no Makefile yet, we rely on a make rule to execute |
18871 | # `config.status --recheck' to rerun these tests and create the |
18872 | # libtool script then. |
18873 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
18874 | if test -f "$ltmain_in"; then |
18875 | test -f Makefile && make "$ltmain" |
18876 | fi |
18877 | fi |
18878 | |
18879 | |
18880 | ac_ext=c |
18881 | ac_cpp='$CPP $CPPFLAGS' |
18882 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18883 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
18884 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
18885 | |
18886 | CC="$lt_save_CC" |
18887 | |
18888 | ;; |
18889 | |
18890 | *) |
18891 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
18892 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
18893 | { (exit 1); exit 1; }; } |
18894 | ;; |
18895 | esac |
18896 | |
18897 | # Append the new tag name to the list of available tags. |
18898 | if test -n "$tagname" ; then |
18899 | available_tags="$available_tags $tagname" |
18900 | fi |
18901 | fi |
18902 | done |
18903 | IFS="$lt_save_ifs" |
18904 | |
18905 | # Now substitute the updated list of available tags. |
18906 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
18907 | mv "${ofile}T" "$ofile" |
18908 | chmod +x "$ofile" |
18909 | else |
18910 | rm -f "${ofile}T" |
18911 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
18912 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
18913 | { (exit 1); exit 1; }; } |
18914 | fi |
18915 | fi |
18916 | |
18917 | |
18918 | |
18919 | # This can be used to rebuild libtool when needed |
18920 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
18921 | |
18922 | # Always use our own libtool. |
18923 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
18924 | |
18925 | # Prevent multiple expansion |
18926 | |
18927 | |
18928 | |
18929 | |
18930 | |
18931 | |
18932 | |
18933 | |
18934 | |
18935 | |
18936 | |
18937 | |
18938 | |
18939 | |
18940 | |
18941 | |
18942 | |
18943 | |
18944 | |
18945 | |
18946 | |
18947 | |
18948 | for ac_prog in perl5 perl |
18949 | do |
18950 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
18951 | set dummy $ac_prog; ac_word=$2 |
18952 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
18953 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
18954 | if test "${ac_cv_path_PERL+set}" = set; then |
18955 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18956 | else |
18957 | case $PERL in |
18958 | [\\/]* | ?:[\\/]*) |
18959 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
18960 | ;; |
18961 | *) |
18962 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
18963 | for as_dir in $LPATH |
18964 | do |
18965 | IFS=$as_save_IFS |
18966 | test -z "$as_dir" && as_dir=. |
18967 | for ac_exec_ext in '' $ac_executable_extensions; do |
18968 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
18969 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
18970 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18971 | break 2 |
18972 | fi |
18973 | done |
18974 | done |
18975 | |
18976 | ;; |
18977 | esac |
18978 | fi |
18979 | PERL=$ac_cv_path_PERL |
18980 | |
18981 | if test -n "$PERL"; then |
18982 | echo "$as_me:$LINENO: result: $PERL" >&5 |
18983 | echo "${ECHO_T}$PERL" >&6 |
18984 | else |
18985 | echo "$as_me:$LINENO: result: no" >&5 |
18986 | echo "${ECHO_T}no" >&6 |
18987 | fi |
18988 | |
18989 | test -n "$PERL" && break |
18990 | done |
18991 | test -n "$PERL" || PERL="perl" |
18992 | |
18993 | for ac_prog in courier-config |
18994 | do |
18995 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
18996 | set dummy $ac_prog; ac_word=$2 |
18997 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
18998 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
18999 | if test "${ac_cv_path_COURIERCONFIG+set}" = set; then |
19000 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19001 | else |
19002 | case $COURIERCONFIG in |
19003 | [\\/]* | ?:[\\/]*) |
19004 | ac_cv_path_COURIERCONFIG="$COURIERCONFIG" # Let the user override the test with a path. |
19005 | ;; |
19006 | *) |
19007 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
19008 | for as_dir in $LPATH |
19009 | do |
19010 | IFS=$as_save_IFS |
19011 | test -z "$as_dir" && as_dir=. |
19012 | for ac_exec_ext in '' $ac_executable_extensions; do |
19013 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
19014 | ac_cv_path_COURIERCONFIG="$as_dir/$ac_word$ac_exec_ext" |
19015 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
19016 | break 2 |
19017 | fi |
19018 | done |
19019 | done |
19020 | |
19021 | ;; |
19022 | esac |
19023 | fi |
19024 | COURIERCONFIG=$ac_cv_path_COURIERCONFIG |
19025 | |
19026 | if test -n "$COURIERCONFIG"; then |
19027 | echo "$as_me:$LINENO: result: $COURIERCONFIG" >&5 |
19028 | echo "${ECHO_T}$COURIERCONFIG" >&6 |
19029 | else |
19030 | echo "$as_me:$LINENO: result: no" >&5 |
19031 | echo "${ECHO_T}no" >&6 |
19032 | fi |
19033 | |
19034 | test -n "$COURIERCONFIG" && break |
19035 | done |
19036 | test -n "$COURIERCONFIG" || COURIERCONFIG="courier-config" |
19037 | |
19038 | |
19039 | if test "$PERL" = "perl" |
19040 | then |
19041 | { { echo "$as_me:$LINENO: error: Perl is required" >&5 |
19042 | echo "$as_me: error: Perl is required" >&2;} |
19043 | { (exit 1); exit 1; }; } |
19044 | fi |
19045 | |
19046 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
19047 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
19048 | eval "prefix=$prefix" |
19049 | eval "exec_prefix=$exec_prefix" |
19050 | eval "sysconfdir=$sysconfdir" |
19051 | eval "bindir=$bindir" |
19052 | eval "sbindir=$sbindir" |
19053 | eval "localstatedir=$localstatedir" |
19054 | eval "libexecdir=$libexecdir" |
19055 | |
19056 | |
19057 | # Check whether --with-redhat or --without-redhat was given. |
19058 | if test "${with_redhat+set}" = set; then |
19059 | withval="$with_redhat" |
19060 | redhat=$withval |
19061 | else |
19062 | redhat=no |
19063 | fi; |
19064 | |
19065 | if test "$srcdir" = "." |
19066 | then |
19067 | case `./config.guess` in |
19068 | *-redhat-*) |
19069 | if test "$redhat" = "no" |
19070 | then |
19071 | hash='#' |
19072 | { echo "$as_me:$LINENO: WARNING: === I think you are trying to run this configure script" >&5 |
19073 | echo "$as_me: WARNING: === I think you are trying to run this configure script" >&2;} |
19074 | { echo "$as_me:$LINENO: WARNING: === on Red Hat/Fedora. You're doing too much work!" >&5 |
19075 | echo "$as_me: WARNING: === on Red Hat/Fedora. You're doing too much work!" >&2;} |
19076 | { echo "$as_me:$LINENO: WARNING: === It's much faster to create installable binary RPMs" >&5 |
19077 | echo "$as_me: WARNING: === It's much faster to create installable binary RPMs" >&2;} |
19078 | { echo "$as_me:$LINENO: WARNING: === like this: http://www.courier-mta.org/FAQ.html${hash}rpm" >&5 |
19079 | echo "$as_me: WARNING: === like this: http://www.courier-mta.org/FAQ.html${hash}rpm" >&2;} |
19080 | { echo "$as_me:$LINENO: WARNING: === When you do this you may find that RPM will tell you" >&5 |
19081 | echo "$as_me: WARNING: === When you do this you may find that RPM will tell you" >&2;} |
19082 | { echo "$as_me:$LINENO: WARNING: === to install some other software first, before trying to" >&5 |
19083 | echo "$as_me: WARNING: === to install some other software first, before trying to" >&2;} |
19084 | { echo "$as_me:$LINENO: WARNING: === build this one, and even tell you the name of RPMs you" >&5 |
19085 | echo "$as_me: WARNING: === build this one, and even tell you the name of RPMs you" >&2;} |
19086 | { echo "$as_me:$LINENO: WARNING: === need to install from the distribution CD. That's much" >&5 |
19087 | echo "$as_me: WARNING: === need to install from the distribution CD. That's much" >&2;} |
19088 | { echo "$as_me:$LINENO: WARNING: === easier than trying to figure out the same from some" >&5 |
19089 | echo "$as_me: WARNING: === easier than trying to figure out the same from some" >&2;} |
19090 | { echo "$as_me:$LINENO: WARNING: === cryptic error message." >&5 |
19091 | echo "$as_me: WARNING: === cryptic error message." >&2;} |
19092 | { echo "$as_me:$LINENO: WARNING: " >&5 |
19093 | echo "$as_me: WARNING: " >&2;} |
19094 | { echo "$as_me:$LINENO: WARNING: === Even if you don't intend to use everything you need to" >&5 |
19095 | echo "$as_me: WARNING: === Even if you don't intend to use everything you need to" >&2;} |
19096 | { echo "$as_me:$LINENO: WARNING: === have in order to build via RPM, you should still do as" >&5 |
19097 | echo "$as_me: WARNING: === have in order to build via RPM, you should still do as" >&2;} |
19098 | { echo "$as_me:$LINENO: WARNING: === you're told. All the extra stuff (LDAP, SQL, etc...)" >&5 |
19099 | echo "$as_me: WARNING: === you're told. All the extra stuff (LDAP, SQL, etc...)" >&2;} |
19100 | { echo "$as_me:$LINENO: WARNING: === goes into RPM sub-packages, which do not need to be" >&5 |
19101 | echo "$as_me: WARNING: === goes into RPM sub-packages, which do not need to be" >&2;} |
19102 | { echo "$as_me:$LINENO: WARNING: === installed." >&5 |
19103 | echo "$as_me: WARNING: === installed." >&2;} |
19104 | { echo "$as_me:$LINENO: WARNING: === But, if you insist, you can simply add '--with-redhat'" >&5 |
19105 | echo "$as_me: WARNING: === But, if you insist, you can simply add '--with-redhat'" >&2;} |
19106 | { echo "$as_me:$LINENO: WARNING: === parameter to this configure script and not see this" >&5 |
19107 | echo "$as_me: WARNING: === parameter to this configure script and not see this" >&2;} |
19108 | { echo "$as_me:$LINENO: WARNING: === error message. You should also do this when upgrading" >&5 |
19109 | echo "$as_me: WARNING: === error message. You should also do this when upgrading" >&2;} |
19110 | { echo "$as_me:$LINENO: WARNING: === and you didn't use RPM with the older version." >&5 |
19111 | echo "$as_me: WARNING: === and you didn't use RPM with the older version." >&2;} |
19112 | { { echo "$as_me:$LINENO: error: ... in either case you better know what you're doing!" >&5 |
19113 | echo "$as_me: error: ... in either case you better know what you're doing!" >&2;} |
19114 | { (exit 1); exit 1; }; } |
19115 | fi |
19116 | ;; |
19117 | *) |
19118 | ;; |
19119 | esac |
19120 | fi |
19121 | for ac_prog in expect |
19122 | do |
19123 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
19124 | set dummy $ac_prog; ac_word=$2 |
19125 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
19126 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
19127 | if test "${ac_cv_path_EXPECT+set}" = set; then |
19128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19129 | else |
19130 | case $EXPECT in |
19131 | [\\/]* | ?:[\\/]*) |
19132 | ac_cv_path_EXPECT="$EXPECT" # Let the user override the test with a path. |
19133 | ;; |
19134 | *) |
19135 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
19136 | for as_dir in $LPATH |
19137 | do |
19138 | IFS=$as_save_IFS |
19139 | test -z "$as_dir" && as_dir=. |
19140 | for ac_exec_ext in '' $ac_executable_extensions; do |
19141 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
19142 | ac_cv_path_EXPECT="$as_dir/$ac_word$ac_exec_ext" |
19143 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
19144 | break 2 |
19145 | fi |
19146 | done |
19147 | done |
19148 | |
19149 | ;; |
19150 | esac |
19151 | fi |
19152 | EXPECT=$ac_cv_path_EXPECT |
19153 | |
19154 | if test -n "$EXPECT"; then |
19155 | echo "$as_me:$LINENO: result: $EXPECT" >&5 |
19156 | echo "${ECHO_T}$EXPECT" >&6 |
19157 | else |
19158 | echo "$as_me:$LINENO: result: no" >&5 |
19159 | echo "${ECHO_T}no" >&6 |
19160 | fi |
19161 | |
19162 | test -n "$EXPECT" && break |
19163 | done |
19164 | test -n "$EXPECT" || EXPECT="expect" |
19165 | |
19166 | |
19167 | if test "$EXPECT" = "expect" |
19168 | then |
19169 | { echo "$as_me:$LINENO: WARNING: -----------------------------------------------------" >&5 |
19170 | echo "$as_me: WARNING: -----------------------------------------------------" >&2;} |
19171 | { echo "$as_me:$LINENO: WARNING: expect not found - will not be able to change passwds" >&5 |
19172 | echo "$as_me: WARNING: expect not found - will not be able to change passwds" >&2;} |
19173 | { echo "$as_me:$LINENO: WARNING: in webmail" >&5 |
19174 | echo "$as_me: WARNING: in webmail" >&2;} |
19175 | { echo "$as_me:$LINENO: WARNING: -----------------------------------------------------" >&5 |
19176 | echo "$as_me: WARNING: -----------------------------------------------------" >&2;} |
19177 | sleep 5 |
19178 | else |
19179 | |
19180 | cat >>confdefs.h <<_ACEOF |
19181 | #define HAVE_EXPECT 1 |
19182 | _ACEOF |
19183 | |
19184 | fi |
19185 | |
19186 | for ac_prog in passwd |
19187 | do |
19188 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
19189 | set dummy $ac_prog; ac_word=$2 |
19190 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
19191 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
19192 | if test "${ac_cv_path_PASSWD+set}" = set; then |
19193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19194 | else |
19195 | case $PASSWD in |
19196 | [\\/]* | ?:[\\/]*) |
19197 | ac_cv_path_PASSWD="$PASSWD" # Let the user override the test with a path. |
19198 | ;; |
19199 | *) |
19200 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
19201 | for as_dir in $LPATH |
19202 | do |
19203 | IFS=$as_save_IFS |
19204 | test -z "$as_dir" && as_dir=. |
19205 | for ac_exec_ext in '' $ac_executable_extensions; do |
19206 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
19207 | ac_cv_path_PASSWD="$as_dir/$ac_word$ac_exec_ext" |
19208 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
19209 | break 2 |
19210 | fi |
19211 | done |
19212 | done |
19213 | |
19214 | ;; |
19215 | esac |
19216 | fi |
19217 | PASSWD=$ac_cv_path_PASSWD |
19218 | |
19219 | if test -n "$PASSWD"; then |
19220 | echo "$as_me:$LINENO: result: $PASSWD" >&5 |
19221 | echo "${ECHO_T}$PASSWD" >&6 |
19222 | else |
19223 | echo "$as_me:$LINENO: result: no" >&5 |
19224 | echo "${ECHO_T}no" >&6 |
19225 | fi |
19226 | |
19227 | test -n "$PASSWD" && break |
19228 | done |
19229 | test -n "$PASSWD" || PASSWD="passwd" |
19230 | |
19231 | |
19232 | |
19233 | if test "$GCC" = "yes" |
19234 | then |
19235 | CFLAGS="$CFLAGS -Wall" |
19236 | fi |
19237 | |
19238 | CFLAGS="$CFLAGS -I.. -I${srcdir}/.." |
19239 | |
19240 | echo "$as_me:$LINENO: checking whether -lm is needed for floor" >&5 |
19241 | echo $ECHO_N "checking whether -lm is needed for floor... $ECHO_C" >&6 |
19242 | cat >conftest.$ac_ext <<_ACEOF |
19243 | /* confdefs.h. */ |
19244 | _ACEOF |
19245 | cat confdefs.h >>conftest.$ac_ext |
19246 | cat >>conftest.$ac_ext <<_ACEOF |
19247 | /* end confdefs.h. */ |
19248 | |
19249 | /* Override any gcc2 internal prototype to avoid an error. */ |
19250 | #ifdef __cplusplus |
19251 | extern "C" |
19252 | #endif |
19253 | /* We use char because int might match the return type of a gcc2 |
19254 | builtin and then its argument prototype would still apply. */ |
19255 | char floor (); |
19256 | int |
19257 | main () |
19258 | { |
19259 | floor (); |
19260 | ; |
19261 | return 0; |
19262 | } |
19263 | _ACEOF |
19264 | rm -f conftest.$ac_objext conftest$ac_exeext |
19265 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
19266 | (eval $ac_link) 2>conftest.er1 |
19267 | ac_status=$? |
19268 | grep -v '^ *+' conftest.er1 >conftest.err |
19269 | rm -f conftest.er1 |
19270 | cat conftest.err >&5 |
19271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19272 | (exit $ac_status); } && |
19273 | { ac_try='test -z "$ac_c_werror_flag" |
19274 | || test ! -s conftest.err' |
19275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19276 | (eval $ac_try) 2>&5 |
19277 | ac_status=$? |
19278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19279 | (exit $ac_status); }; } && |
19280 | { ac_try='test -s conftest$ac_exeext' |
19281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19282 | (eval $ac_try) 2>&5 |
19283 | ac_status=$? |
19284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19285 | (exit $ac_status); }; }; then |
19286 | echo "$as_me:$LINENO: result: no" >&5 |
19287 | echo "${ECHO_T}no" >&6 |
19288 | else |
19289 | echo "$as_me: failed program was:" >&5 |
19290 | sed 's/^/| /' conftest.$ac_ext >&5 |
19291 | |
19292 | LIBM="-lm" |
19293 | echo "$as_me:$LINENO: result: yes" >&5 |
19294 | echo "${ECHO_T}yes" >&6 |
19295 | fi |
19296 | rm -f conftest.err conftest.$ac_objext \ |
19297 | conftest$ac_exeext conftest.$ac_ext |
19298 | |
19299 | |
19300 | # Check whether --with-pkgconfdir or --without-pkgconfdir was given. |
19301 | if test "${with_pkgconfdir+set}" = set; then |
19302 | withval="$with_pkgconfdir" |
19303 | pkgconfdir="$withval" |
19304 | else |
19305 | pkgconfdir="$sysconfdir/authlib" |
19306 | fi; |
19307 | |
19308 | SASL_LIST="SASL(\"PLAIN\", authsasl_plain, authsaslclient_plain) SASL(\"LOGIN\", authsasl_login, authsaslclient_login)" |
19309 | |
19310 | |
19311 | |
19312 | |
19313 | |
19314 | if test -d ${srcdir}/md5 |
19315 | then |
19316 | MD5=1 |
19317 | |
19318 | cat >>confdefs.h <<_ACEOF |
19319 | #define HAVE_MD5LIB 1 |
19320 | _ACEOF |
19321 | |
19322 | MD5LIB=md5/libmd5.la |
19323 | if test -d ${srcdir}/md5 |
19324 | then |
19325 | SASL_LIST="SASL(\"CRAM-MD5\", authsasl_cram, authsaslclient_crammd5) $SASL_LIST" |
19326 | fi |
19327 | else |
19328 | MD5LIB="" |
19329 | MD5=0 |
19330 | fi |
19331 | |
19332 | |
19333 | |
19334 | if test "$MD5" = 1; then |
19335 | HAVE_MD5_TRUE= |
19336 | HAVE_MD5_FALSE='#' |
19337 | else |
19338 | HAVE_MD5_TRUE='#' |
19339 | HAVE_MD5_FALSE= |
19340 | fi |
19341 | |
19342 | |
19343 | |
19344 | |
19345 | |
19346 | |
19347 | if test -d ${srcdir}/sha1 |
19348 | then |
19349 | SHA1=1 |
19350 | |
19351 | cat >>confdefs.h <<_ACEOF |
19352 | #define HAVE_SHA1LIB 1 |
19353 | _ACEOF |
19354 | |
19355 | SHA1LIB=sha1/libsha1.la |
19356 | if test -d ${srcdir}/sha1 |
19357 | then |
19358 | SASL_LIST="SASL(\"CRAM-SHA1\", authsasl_cram, authsaslclient_cramsha1) $SASL_LIST" |
19359 | SASL_LIST="SASL(\"CRAM-SHA256\", authsasl_cram, authsaslclient_cramsha256) $SASL_LIST" |
19360 | fi |
19361 | else |
19362 | SHA1LIB="" |
19363 | SHA1=0 |
19364 | fi |
19365 | |
19366 | |
19367 | |
19368 | if test "$SHA1" = 1; then |
19369 | HAVE_SHA1_TRUE= |
19370 | HAVE_SHA1_FALSE='#' |
19371 | else |
19372 | HAVE_SHA1_TRUE='#' |
19373 | HAVE_SHA1_FALSE= |
19374 | fi |
19375 | |
19376 | |
19377 | |
19378 | |
19379 | |
19380 | |
19381 | |
19382 | if test -d ${srcdir}/libhmac |
19383 | then |
19384 | HMAC=1 |
19385 | |
19386 | cat >>confdefs.h <<_ACEOF |
19387 | #define HAVE_HMACLIB 1 |
19388 | _ACEOF |
19389 | |
19390 | HMACLIB=libhmac/libhmac.la |
19391 | else |
19392 | HMACLIB="" |
19393 | HMAC=0 |
19394 | fi |
19395 | |
19396 | |
19397 | |
19398 | if test "$HMAC" = 1; then |
19399 | HAVE_HMACLIB_TRUE= |
19400 | HAVE_HMACLIB_FALSE='#' |
19401 | else |
19402 | HAVE_HMACLIB_TRUE='#' |
19403 | HAVE_HMACLIB_FALSE= |
19404 | fi |
19405 | |
19406 | |
19407 | saveLIBS="$LIBS" |
19408 | NETLIBS="" |
19409 | USENSL=no |
19410 | |
19411 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
19412 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
19413 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
19414 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19415 | else |
19416 | ac_check_lib_save_LIBS=$LIBS |
19417 | LIBS="-lsocket $LIBS" |
19418 | cat >conftest.$ac_ext <<_ACEOF |
19419 | /* confdefs.h. */ |
19420 | _ACEOF |
19421 | cat confdefs.h >>conftest.$ac_ext |
19422 | cat >>conftest.$ac_ext <<_ACEOF |
19423 | /* end confdefs.h. */ |
19424 | |
19425 | /* Override any gcc2 internal prototype to avoid an error. */ |
19426 | #ifdef __cplusplus |
19427 | extern "C" |
19428 | #endif |
19429 | /* We use char because int might match the return type of a gcc2 |
19430 | builtin and then its argument prototype would still apply. */ |
19431 | char socket (); |
19432 | int |
19433 | main () |
19434 | { |
19435 | socket (); |
19436 | ; |
19437 | return 0; |
19438 | } |
19439 | _ACEOF |
19440 | rm -f conftest.$ac_objext conftest$ac_exeext |
19441 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
19442 | (eval $ac_link) 2>conftest.er1 |
19443 | ac_status=$? |
19444 | grep -v '^ *+' conftest.er1 >conftest.err |
19445 | rm -f conftest.er1 |
19446 | cat conftest.err >&5 |
19447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19448 | (exit $ac_status); } && |
19449 | { ac_try='test -z "$ac_c_werror_flag" |
19450 | || test ! -s conftest.err' |
19451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19452 | (eval $ac_try) 2>&5 |
19453 | ac_status=$? |
19454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19455 | (exit $ac_status); }; } && |
19456 | { ac_try='test -s conftest$ac_exeext' |
19457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19458 | (eval $ac_try) 2>&5 |
19459 | ac_status=$? |
19460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19461 | (exit $ac_status); }; }; then |
19462 | ac_cv_lib_socket_socket=yes |
19463 | else |
19464 | echo "$as_me: failed program was:" >&5 |
19465 | sed 's/^/| /' conftest.$ac_ext >&5 |
19466 | |
19467 | ac_cv_lib_socket_socket=no |
19468 | fi |
19469 | rm -f conftest.err conftest.$ac_objext \ |
19470 | conftest$ac_exeext conftest.$ac_ext |
19471 | LIBS=$ac_check_lib_save_LIBS |
19472 | fi |
19473 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
19474 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
19475 | if test $ac_cv_lib_socket_socket = yes; then |
19476 | result=yes |
19477 | else |
19478 | result=no |
19479 | fi |
19480 | |
19481 | if test $result = yes; then |
19482 | NETLIBS="-lsocket" |
19483 | else |
19484 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
19485 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
19486 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
19487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19488 | else |
19489 | ac_check_lib_save_LIBS=$LIBS |
19490 | LIBS="-lsocket -lnsl $LIBS" |
19491 | cat >conftest.$ac_ext <<_ACEOF |
19492 | /* confdefs.h. */ |
19493 | _ACEOF |
19494 | cat confdefs.h >>conftest.$ac_ext |
19495 | cat >>conftest.$ac_ext <<_ACEOF |
19496 | /* end confdefs.h. */ |
19497 | |
19498 | /* Override any gcc2 internal prototype to avoid an error. */ |
19499 | #ifdef __cplusplus |
19500 | extern "C" |
19501 | #endif |
19502 | /* We use char because int might match the return type of a gcc2 |
19503 | builtin and then its argument prototype would still apply. */ |
19504 | char socket (); |
19505 | int |
19506 | main () |
19507 | { |
19508 | socket (); |
19509 | ; |
19510 | return 0; |
19511 | } |
19512 | _ACEOF |
19513 | rm -f conftest.$ac_objext conftest$ac_exeext |
19514 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
19515 | (eval $ac_link) 2>conftest.er1 |
19516 | ac_status=$? |
19517 | grep -v '^ *+' conftest.er1 >conftest.err |
19518 | rm -f conftest.er1 |
19519 | cat conftest.err >&5 |
19520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19521 | (exit $ac_status); } && |
19522 | { ac_try='test -z "$ac_c_werror_flag" |
19523 | || test ! -s conftest.err' |
19524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19525 | (eval $ac_try) 2>&5 |
19526 | ac_status=$? |
19527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19528 | (exit $ac_status); }; } && |
19529 | { ac_try='test -s conftest$ac_exeext' |
19530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19531 | (eval $ac_try) 2>&5 |
19532 | ac_status=$? |
19533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19534 | (exit $ac_status); }; }; then |
19535 | ac_cv_lib_socket_socket=yes |
19536 | else |
19537 | echo "$as_me: failed program was:" >&5 |
19538 | sed 's/^/| /' conftest.$ac_ext >&5 |
19539 | |
19540 | ac_cv_lib_socket_socket=no |
19541 | fi |
19542 | rm -f conftest.err conftest.$ac_objext \ |
19543 | conftest$ac_exeext conftest.$ac_ext |
19544 | LIBS=$ac_check_lib_save_LIBS |
19545 | fi |
19546 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
19547 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
19548 | if test $ac_cv_lib_socket_socket = yes; then |
19549 | result=yes |
19550 | else |
19551 | result=no |
19552 | fi |
19553 | |
19554 | if test $result = yes; then |
19555 | NETLIBS = "-lsocket -lnsl" |
19556 | USENSL=yes |
19557 | else |
19558 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
19559 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 |
19560 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
19561 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19562 | else |
19563 | ac_check_lib_save_LIBS=$LIBS |
19564 | LIBS="-lsocket $LIBS" |
19565 | cat >conftest.$ac_ext <<_ACEOF |
19566 | /* confdefs.h. */ |
19567 | _ACEOF |
19568 | cat confdefs.h >>conftest.$ac_ext |
19569 | cat >>conftest.$ac_ext <<_ACEOF |
19570 | /* end confdefs.h. */ |
19571 | |
19572 | /* Override any gcc2 internal prototype to avoid an error. */ |
19573 | #ifdef __cplusplus |
19574 | extern "C" |
19575 | #endif |
19576 | /* We use char because int might match the return type of a gcc2 |
19577 | builtin and then its argument prototype would still apply. */ |
19578 | char connect (); |
19579 | int |
19580 | main () |
19581 | { |
19582 | connect (); |
19583 | ; |
19584 | return 0; |
19585 | } |
19586 | _ACEOF |
19587 | rm -f conftest.$ac_objext conftest$ac_exeext |
19588 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
19589 | (eval $ac_link) 2>conftest.er1 |
19590 | ac_status=$? |
19591 | grep -v '^ *+' conftest.er1 >conftest.err |
19592 | rm -f conftest.er1 |
19593 | cat conftest.err >&5 |
19594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19595 | (exit $ac_status); } && |
19596 | { ac_try='test -z "$ac_c_werror_flag" |
19597 | || test ! -s conftest.err' |
19598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19599 | (eval $ac_try) 2>&5 |
19600 | ac_status=$? |
19601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19602 | (exit $ac_status); }; } && |
19603 | { ac_try='test -s conftest$ac_exeext' |
19604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19605 | (eval $ac_try) 2>&5 |
19606 | ac_status=$? |
19607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19608 | (exit $ac_status); }; }; then |
19609 | ac_cv_lib_socket_connect=yes |
19610 | else |
19611 | echo "$as_me: failed program was:" >&5 |
19612 | sed 's/^/| /' conftest.$ac_ext >&5 |
19613 | |
19614 | ac_cv_lib_socket_connect=no |
19615 | fi |
19616 | rm -f conftest.err conftest.$ac_objext \ |
19617 | conftest$ac_exeext conftest.$ac_ext |
19618 | LIBS=$ac_check_lib_save_LIBS |
19619 | fi |
19620 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
19621 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 |
19622 | if test $ac_cv_lib_socket_connect = yes; then |
19623 | result=yes |
19624 | else |
19625 | result=no |
19626 | fi |
19627 | |
19628 | if test $result = yes; then |
19629 | NETLIBS="-lsocket" |
19630 | else |
19631 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
19632 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 |
19633 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
19634 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19635 | else |
19636 | ac_check_lib_save_LIBS=$LIBS |
19637 | LIBS="-lsocket -lnsl $LIBS" |
19638 | cat >conftest.$ac_ext <<_ACEOF |
19639 | /* confdefs.h. */ |
19640 | _ACEOF |
19641 | cat confdefs.h >>conftest.$ac_ext |
19642 | cat >>conftest.$ac_ext <<_ACEOF |
19643 | /* end confdefs.h. */ |
19644 | |
19645 | /* Override any gcc2 internal prototype to avoid an error. */ |
19646 | #ifdef __cplusplus |
19647 | extern "C" |
19648 | #endif |
19649 | /* We use char because int might match the return type of a gcc2 |
19650 | builtin and then its argument prototype would still apply. */ |
19651 | char connect (); |
19652 | int |
19653 | main () |
19654 | { |
19655 | connect (); |
19656 | ; |
19657 | return 0; |
19658 | } |
19659 | _ACEOF |
19660 | rm -f conftest.$ac_objext conftest$ac_exeext |
19661 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
19662 | (eval $ac_link) 2>conftest.er1 |
19663 | ac_status=$? |
19664 | grep -v '^ *+' conftest.er1 >conftest.err |
19665 | rm -f conftest.er1 |
19666 | cat conftest.err >&5 |
19667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19668 | (exit $ac_status); } && |
19669 | { ac_try='test -z "$ac_c_werror_flag" |
19670 | || test ! -s conftest.err' |
19671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19672 | (eval $ac_try) 2>&5 |
19673 | ac_status=$? |
19674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19675 | (exit $ac_status); }; } && |
19676 | { ac_try='test -s conftest$ac_exeext' |
19677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19678 | (eval $ac_try) 2>&5 |
19679 | ac_status=$? |
19680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19681 | (exit $ac_status); }; }; then |
19682 | ac_cv_lib_socket_connect=yes |
19683 | else |
19684 | echo "$as_me: failed program was:" >&5 |
19685 | sed 's/^/| /' conftest.$ac_ext >&5 |
19686 | |
19687 | ac_cv_lib_socket_connect=no |
19688 | fi |
19689 | rm -f conftest.err conftest.$ac_objext \ |
19690 | conftest$ac_exeext conftest.$ac_ext |
19691 | LIBS=$ac_check_lib_save_LIBS |
19692 | fi |
19693 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
19694 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 |
19695 | if test $ac_cv_lib_socket_connect = yes; then |
19696 | result=yes |
19697 | else |
19698 | result=no |
19699 | fi |
19700 | |
19701 | if test $result = yes; then |
19702 | NETLIBS="-lsocket -lnsl" |
19703 | USENSL=yes |
19704 | fi |
19705 | fi |
19706 | fi |
19707 | fi |
19708 | |
19709 | if test $USENSL != yes; then |
19710 | LIBS="$LIBS $NETLIBS" |
19711 | cat >conftest.$ac_ext <<_ACEOF |
19712 | /* confdefs.h. */ |
19713 | _ACEOF |
19714 | cat confdefs.h >>conftest.$ac_ext |
19715 | cat >>conftest.$ac_ext <<_ACEOF |
19716 | /* end confdefs.h. */ |
19717 | |
19718 | /* Override any gcc2 internal prototype to avoid an error. */ |
19719 | #ifdef __cplusplus |
19720 | extern "C" |
19721 | #endif |
19722 | /* We use char because int might match the return type of a gcc2 |
19723 | builtin and then its argument prototype would still apply. */ |
19724 | char inet_addr (); |
19725 | int |
19726 | main () |
19727 | { |
19728 | inet_addr (); |
19729 | ; |
19730 | return 0; |
19731 | } |
19732 | _ACEOF |
19733 | rm -f conftest.$ac_objext conftest$ac_exeext |
19734 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
19735 | (eval $ac_link) 2>conftest.er1 |
19736 | ac_status=$? |
19737 | grep -v '^ *+' conftest.er1 >conftest.err |
19738 | rm -f conftest.er1 |
19739 | cat conftest.err >&5 |
19740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19741 | (exit $ac_status); } && |
19742 | { ac_try='test -z "$ac_c_werror_flag" |
19743 | || test ! -s conftest.err' |
19744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19745 | (eval $ac_try) 2>&5 |
19746 | ac_status=$? |
19747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19748 | (exit $ac_status); }; } && |
19749 | { ac_try='test -s conftest$ac_exeext' |
19750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19751 | (eval $ac_try) 2>&5 |
19752 | ac_status=$? |
19753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19754 | (exit $ac_status); }; }; then |
19755 | : |
19756 | else |
19757 | echo "$as_me: failed program was:" >&5 |
19758 | sed 's/^/| /' conftest.$ac_ext >&5 |
19759 | |
19760 | |
19761 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 |
19762 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 |
19763 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then |
19764 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19765 | else |
19766 | ac_check_lib_save_LIBS=$LIBS |
19767 | LIBS="-lnsl $LIBS" |
19768 | cat >conftest.$ac_ext <<_ACEOF |
19769 | /* confdefs.h. */ |
19770 | _ACEOF |
19771 | cat confdefs.h >>conftest.$ac_ext |
19772 | cat >>conftest.$ac_ext <<_ACEOF |
19773 | /* end confdefs.h. */ |
19774 | |
19775 | /* Override any gcc2 internal prototype to avoid an error. */ |
19776 | #ifdef __cplusplus |
19777 | extern "C" |
19778 | #endif |
19779 | /* We use char because int might match the return type of a gcc2 |
19780 | builtin and then its argument prototype would still apply. */ |
19781 | char inet_addr (); |
19782 | int |
19783 | main () |
19784 | { |
19785 | inet_addr (); |
19786 | ; |
19787 | return 0; |
19788 | } |
19789 | _ACEOF |
19790 | rm -f conftest.$ac_objext conftest$ac_exeext |
19791 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
19792 | (eval $ac_link) 2>conftest.er1 |
19793 | ac_status=$? |
19794 | grep -v '^ *+' conftest.er1 >conftest.err |
19795 | rm -f conftest.er1 |
19796 | cat conftest.err >&5 |
19797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19798 | (exit $ac_status); } && |
19799 | { ac_try='test -z "$ac_c_werror_flag" |
19800 | || test ! -s conftest.err' |
19801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19802 | (eval $ac_try) 2>&5 |
19803 | ac_status=$? |
19804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19805 | (exit $ac_status); }; } && |
19806 | { ac_try='test -s conftest$ac_exeext' |
19807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19808 | (eval $ac_try) 2>&5 |
19809 | ac_status=$? |
19810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19811 | (exit $ac_status); }; }; then |
19812 | ac_cv_lib_nsl_inet_addr=yes |
19813 | else |
19814 | echo "$as_me: failed program was:" >&5 |
19815 | sed 's/^/| /' conftest.$ac_ext >&5 |
19816 | |
19817 | ac_cv_lib_nsl_inet_addr=no |
19818 | fi |
19819 | rm -f conftest.err conftest.$ac_objext \ |
19820 | conftest$ac_exeext conftest.$ac_ext |
19821 | LIBS=$ac_check_lib_save_LIBS |
19822 | fi |
19823 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 |
19824 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 |
19825 | if test $ac_cv_lib_nsl_inet_addr = yes; then |
19826 | result=yes |
19827 | else |
19828 | result=no |
19829 | fi |
19830 | |
19831 | if test $result = yes; then |
19832 | NETLIBS="$NETLIBS -lnsl" |
19833 | fi |
19834 | |
19835 | fi |
19836 | rm -f conftest.err conftest.$ac_objext \ |
19837 | conftest$ac_exeext conftest.$ac_ext |
19838 | fi |
19839 | |
19840 | LIBS="$saveLIBS" |
19841 | |
19842 | |
19843 | |
19844 | |
19845 | |
19846 | |
19847 | |
19848 | # Check whether --with-db or --without-db was given. |
19849 | if test "${with_db+set}" = set; then |
19850 | withval="$with_db" |
19851 | db="$withval" |
19852 | else |
19853 | needs_withdb=1 |
19854 | fi; |
19855 | |
19856 | case "$db" in |
19857 | gdbm) |
19858 | ;; |
19859 | db) |
19860 | ;; |
19861 | "") |
19862 | ;; |
19863 | *) |
19864 | { { echo "$as_me:$LINENO: error: Invalid --with-db option." >&5 |
19865 | echo "$as_me: error: Invalid --with-db option." >&2;} |
19866 | { (exit 1); exit 1; }; } |
19867 | ;; |
19868 | esac |
19869 | |
19870 | saveLIBS="$LIBS" |
19871 | |
19872 | if test "$db" != "db" |
19873 | then |
19874 | echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5 |
19875 | echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6 |
19876 | if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then |
19877 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19878 | else |
19879 | ac_check_lib_save_LIBS=$LIBS |
19880 | LIBS="-lgdbm $LIBS" |
19881 | cat >conftest.$ac_ext <<_ACEOF |
19882 | /* confdefs.h. */ |
19883 | _ACEOF |
19884 | cat confdefs.h >>conftest.$ac_ext |
19885 | cat >>conftest.$ac_ext <<_ACEOF |
19886 | /* end confdefs.h. */ |
19887 | |
19888 | /* Override any gcc2 internal prototype to avoid an error. */ |
19889 | #ifdef __cplusplus |
19890 | extern "C" |
19891 | #endif |
19892 | /* We use char because int might match the return type of a gcc2 |
19893 | builtin and then its argument prototype would still apply. */ |
19894 | char gdbm_open (); |
19895 | int |
19896 | main () |
19897 | { |
19898 | gdbm_open (); |
19899 | ; |
19900 | return 0; |
19901 | } |
19902 | _ACEOF |
19903 | rm -f conftest.$ac_objext conftest$ac_exeext |
19904 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
19905 | (eval $ac_link) 2>conftest.er1 |
19906 | ac_status=$? |
19907 | grep -v '^ *+' conftest.er1 >conftest.err |
19908 | rm -f conftest.er1 |
19909 | cat conftest.err >&5 |
19910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19911 | (exit $ac_status); } && |
19912 | { ac_try='test -z "$ac_c_werror_flag" |
19913 | || test ! -s conftest.err' |
19914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19915 | (eval $ac_try) 2>&5 |
19916 | ac_status=$? |
19917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19918 | (exit $ac_status); }; } && |
19919 | { ac_try='test -s conftest$ac_exeext' |
19920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19921 | (eval $ac_try) 2>&5 |
19922 | ac_status=$? |
19923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19924 | (exit $ac_status); }; }; then |
19925 | ac_cv_lib_gdbm_gdbm_open=yes |
19926 | else |
19927 | echo "$as_me: failed program was:" >&5 |
19928 | sed 's/^/| /' conftest.$ac_ext >&5 |
19929 | |
19930 | ac_cv_lib_gdbm_gdbm_open=no |
19931 | fi |
19932 | rm -f conftest.err conftest.$ac_objext \ |
19933 | conftest$ac_exeext conftest.$ac_ext |
19934 | LIBS=$ac_check_lib_save_LIBS |
19935 | fi |
19936 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5 |
19937 | echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6 |
19938 | if test $ac_cv_lib_gdbm_gdbm_open = yes; then |
19939 | LIBGDBM=-lgdbm ; LIBS="-lgdbm $LIBS" |
19940 | fi |
19941 | |
19942 | echo "$as_me:$LINENO: checking for gdbm_open" >&5 |
19943 | echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6 |
19944 | if test "${ac_cv_func_gdbm_open+set}" = set; then |
19945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19946 | else |
19947 | cat >conftest.$ac_ext <<_ACEOF |
19948 | /* confdefs.h. */ |
19949 | _ACEOF |
19950 | cat confdefs.h >>conftest.$ac_ext |
19951 | cat >>conftest.$ac_ext <<_ACEOF |
19952 | /* end confdefs.h. */ |
19953 | /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open. |
19954 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
19955 | #define gdbm_open innocuous_gdbm_open |
19956 | |
19957 | /* System header to define __stub macros and hopefully few prototypes, |
19958 | which can conflict with char gdbm_open (); below. |
19959 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
19960 | <limits.h> exists even on freestanding compilers. */ |
19961 | |
19962 | #ifdef __STDC__ |
19963 | # include <limits.h> |
19964 | #else |
19965 | # include <assert.h> |
19966 | #endif |
19967 | |
19968 | #undef gdbm_open |
19969 | |
19970 | /* Override any gcc2 internal prototype to avoid an error. */ |
19971 | #ifdef __cplusplus |
19972 | extern "C" |
19973 | { |
19974 | #endif |
19975 | /* We use char because int might match the return type of a gcc2 |
19976 | builtin and then its argument prototype would still apply. */ |
19977 | char gdbm_open (); |
19978 | /* The GNU C library defines this for functions which it implements |
19979 | to always fail with ENOSYS. Some functions are actually named |
19980 | something starting with __ and the normal name is an alias. */ |
19981 | #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open) |
19982 | choke me |
19983 | #else |
19984 | char (*f) () = gdbm_open; |
19985 | #endif |
19986 | #ifdef __cplusplus |
19987 | } |
19988 | #endif |
19989 | |
19990 | int |
19991 | main () |
19992 | { |
19993 | return f != gdbm_open; |
19994 | ; |
19995 | return 0; |
19996 | } |
19997 | _ACEOF |
19998 | rm -f conftest.$ac_objext conftest$ac_exeext |
19999 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
20000 | (eval $ac_link) 2>conftest.er1 |
20001 | ac_status=$? |
20002 | grep -v '^ *+' conftest.er1 >conftest.err |
20003 | rm -f conftest.er1 |
20004 | cat conftest.err >&5 |
20005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20006 | (exit $ac_status); } && |
20007 | { ac_try='test -z "$ac_c_werror_flag" |
20008 | || test ! -s conftest.err' |
20009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20010 | (eval $ac_try) 2>&5 |
20011 | ac_status=$? |
20012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20013 | (exit $ac_status); }; } && |
20014 | { ac_try='test -s conftest$ac_exeext' |
20015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20016 | (eval $ac_try) 2>&5 |
20017 | ac_status=$? |
20018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20019 | (exit $ac_status); }; }; then |
20020 | ac_cv_func_gdbm_open=yes |
20021 | else |
20022 | echo "$as_me: failed program was:" >&5 |
20023 | sed 's/^/| /' conftest.$ac_ext >&5 |
20024 | |
20025 | ac_cv_func_gdbm_open=no |
20026 | fi |
20027 | rm -f conftest.err conftest.$ac_objext \ |
20028 | conftest$ac_exeext conftest.$ac_ext |
20029 | fi |
20030 | echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5 |
20031 | echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6 |
20032 | if test $ac_cv_func_gdbm_open = yes; then |
20033 | HAVE_GDBM=y |
20034 | fi |
20035 | |
20036 | fi |
20037 | |
20038 | LIBS="$saveLIBS" |
20039 | |
20040 | if test "$db" != "gdbm" |
20041 | then |
20042 | echo "$as_me:$LINENO: checking for dbopen in -ldb" >&5 |
20043 | echo $ECHO_N "checking for dbopen in -ldb... $ECHO_C" >&6 |
20044 | if test "${ac_cv_lib_db_dbopen+set}" = set; then |
20045 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20046 | else |
20047 | ac_check_lib_save_LIBS=$LIBS |
20048 | LIBS="-ldb $LIBS" |
20049 | cat >conftest.$ac_ext <<_ACEOF |
20050 | /* confdefs.h. */ |
20051 | _ACEOF |
20052 | cat confdefs.h >>conftest.$ac_ext |
20053 | cat >>conftest.$ac_ext <<_ACEOF |
20054 | /* end confdefs.h. */ |
20055 | |
20056 | /* Override any gcc2 internal prototype to avoid an error. */ |
20057 | #ifdef __cplusplus |
20058 | extern "C" |
20059 | #endif |
20060 | /* We use char because int might match the return type of a gcc2 |
20061 | builtin and then its argument prototype would still apply. */ |
20062 | char dbopen (); |
20063 | int |
20064 | main () |
20065 | { |
20066 | dbopen (); |
20067 | ; |
20068 | return 0; |
20069 | } |
20070 | _ACEOF |
20071 | rm -f conftest.$ac_objext conftest$ac_exeext |
20072 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
20073 | (eval $ac_link) 2>conftest.er1 |
20074 | ac_status=$? |
20075 | grep -v '^ *+' conftest.er1 >conftest.err |
20076 | rm -f conftest.er1 |
20077 | cat conftest.err >&5 |
20078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20079 | (exit $ac_status); } && |
20080 | { ac_try='test -z "$ac_c_werror_flag" |
20081 | || test ! -s conftest.err' |
20082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20083 | (eval $ac_try) 2>&5 |
20084 | ac_status=$? |
20085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20086 | (exit $ac_status); }; } && |
20087 | { ac_try='test -s conftest$ac_exeext' |
20088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20089 | (eval $ac_try) 2>&5 |
20090 | ac_status=$? |
20091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20092 | (exit $ac_status); }; }; then |
20093 | ac_cv_lib_db_dbopen=yes |
20094 | else |
20095 | echo "$as_me: failed program was:" >&5 |
20096 | sed 's/^/| /' conftest.$ac_ext >&5 |
20097 | |
20098 | ac_cv_lib_db_dbopen=no |
20099 | fi |
20100 | rm -f conftest.err conftest.$ac_objext \ |
20101 | conftest$ac_exeext conftest.$ac_ext |
20102 | LIBS=$ac_check_lib_save_LIBS |
20103 | fi |
20104 | echo "$as_me:$LINENO: result: $ac_cv_lib_db_dbopen" >&5 |
20105 | echo "${ECHO_T}$ac_cv_lib_db_dbopen" >&6 |
20106 | if test $ac_cv_lib_db_dbopen = yes; then |
20107 | LIBDB=-ldb ; LIBS="-ldb $LIBS" |
20108 | else |
20109 | echo "$as_me:$LINENO: checking for db_open in -ldb" >&5 |
20110 | echo $ECHO_N "checking for db_open in -ldb... $ECHO_C" >&6 |
20111 | if test "${ac_cv_lib_db_db_open+set}" = set; then |
20112 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20113 | else |
20114 | ac_check_lib_save_LIBS=$LIBS |
20115 | LIBS="-ldb $LIBS" |
20116 | cat >conftest.$ac_ext <<_ACEOF |
20117 | /* confdefs.h. */ |
20118 | _ACEOF |
20119 | cat confdefs.h >>conftest.$ac_ext |
20120 | cat >>conftest.$ac_ext <<_ACEOF |
20121 | /* end confdefs.h. */ |
20122 | |
20123 | /* Override any gcc2 internal prototype to avoid an error. */ |
20124 | #ifdef __cplusplus |
20125 | extern "C" |
20126 | #endif |
20127 | /* We use char because int might match the return type of a gcc2 |
20128 | builtin and then its argument prototype would still apply. */ |
20129 | char db_open (); |
20130 | int |
20131 | main () |
20132 | { |
20133 | db_open (); |
20134 | ; |
20135 | return 0; |
20136 | } |
20137 | _ACEOF |
20138 | rm -f conftest.$ac_objext conftest$ac_exeext |
20139 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
20140 | (eval $ac_link) 2>conftest.er1 |
20141 | ac_status=$? |
20142 | grep -v '^ *+' conftest.er1 >conftest.err |
20143 | rm -f conftest.er1 |
20144 | cat conftest.err >&5 |
20145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20146 | (exit $ac_status); } && |
20147 | { ac_try='test -z "$ac_c_werror_flag" |
20148 | || test ! -s conftest.err' |
20149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20150 | (eval $ac_try) 2>&5 |
20151 | ac_status=$? |
20152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20153 | (exit $ac_status); }; } && |
20154 | { ac_try='test -s conftest$ac_exeext' |
20155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20156 | (eval $ac_try) 2>&5 |
20157 | ac_status=$? |
20158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20159 | (exit $ac_status); }; }; then |
20160 | ac_cv_lib_db_db_open=yes |
20161 | else |
20162 | echo "$as_me: failed program was:" >&5 |
20163 | sed 's/^/| /' conftest.$ac_ext >&5 |
20164 | |
20165 | ac_cv_lib_db_db_open=no |
20166 | fi |
20167 | rm -f conftest.err conftest.$ac_objext \ |
20168 | conftest$ac_exeext conftest.$ac_ext |
20169 | LIBS=$ac_check_lib_save_LIBS |
20170 | fi |
20171 | echo "$as_me:$LINENO: result: $ac_cv_lib_db_db_open" >&5 |
20172 | echo "${ECHO_T}$ac_cv_lib_db_db_open" >&6 |
20173 | if test $ac_cv_lib_db_db_open = yes; then |
20174 | LIBDB=-ldb ; LIBS="-ldb $LIBS" |
20175 | else |
20176 | echo "$as_me:$LINENO: checking for db_env_create in -ldb" >&5 |
20177 | echo $ECHO_N "checking for db_env_create in -ldb... $ECHO_C" >&6 |
20178 | if test "${ac_cv_lib_db_db_env_create+set}" = set; then |
20179 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20180 | else |
20181 | ac_check_lib_save_LIBS=$LIBS |
20182 | LIBS="-ldb $LIBS" |
20183 | cat >conftest.$ac_ext <<_ACEOF |
20184 | /* confdefs.h. */ |
20185 | _ACEOF |
20186 | cat confdefs.h >>conftest.$ac_ext |
20187 | cat >>conftest.$ac_ext <<_ACEOF |
20188 | /* end confdefs.h. */ |
20189 | |
20190 | /* Override any gcc2 internal prototype to avoid an error. */ |
20191 | #ifdef __cplusplus |
20192 | extern "C" |
20193 | #endif |
20194 | /* We use char because int might match the return type of a gcc2 |
20195 | builtin and then its argument prototype would still apply. */ |
20196 | char db_env_create (); |
20197 | int |
20198 | main () |
20199 | { |
20200 | db_env_create (); |
20201 | ; |
20202 | return 0; |
20203 | } |
20204 | _ACEOF |
20205 | rm -f conftest.$ac_objext conftest$ac_exeext |
20206 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
20207 | (eval $ac_link) 2>conftest.er1 |
20208 | ac_status=$? |
20209 | grep -v '^ *+' conftest.er1 >conftest.err |
20210 | rm -f conftest.er1 |
20211 | cat conftest.err >&5 |
20212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20213 | (exit $ac_status); } && |
20214 | { ac_try='test -z "$ac_c_werror_flag" |
20215 | || test ! -s conftest.err' |
20216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20217 | (eval $ac_try) 2>&5 |
20218 | ac_status=$? |
20219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20220 | (exit $ac_status); }; } && |
20221 | { ac_try='test -s conftest$ac_exeext' |
20222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20223 | (eval $ac_try) 2>&5 |
20224 | ac_status=$? |
20225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20226 | (exit $ac_status); }; }; then |
20227 | ac_cv_lib_db_db_env_create=yes |
20228 | else |
20229 | echo "$as_me: failed program was:" >&5 |
20230 | sed 's/^/| /' conftest.$ac_ext >&5 |
20231 | |
20232 | ac_cv_lib_db_db_env_create=no |
20233 | fi |
20234 | rm -f conftest.err conftest.$ac_objext \ |
20235 | conftest$ac_exeext conftest.$ac_ext |
20236 | LIBS=$ac_check_lib_save_LIBS |
20237 | fi |
20238 | echo "$as_me:$LINENO: result: $ac_cv_lib_db_db_env_create" >&5 |
20239 | echo "${ECHO_T}$ac_cv_lib_db_db_env_create" >&6 |
20240 | if test $ac_cv_lib_db_db_env_create = yes; then |
20241 | LIBDB=-ldb; LIBS="-ldb $LIBS" |
20242 | fi |
20243 | |
20244 | |
20245 | fi |
20246 | |
20247 | fi |
20248 | |
20249 | |
20250 | echo "$as_me:$LINENO: checking for dbopen" >&5 |
20251 | echo $ECHO_N "checking for dbopen... $ECHO_C" >&6 |
20252 | if test "${ac_cv_func_dbopen+set}" = set; then |
20253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20254 | else |
20255 | cat >conftest.$ac_ext <<_ACEOF |
20256 | /* confdefs.h. */ |
20257 | _ACEOF |
20258 | cat confdefs.h >>conftest.$ac_ext |
20259 | cat >>conftest.$ac_ext <<_ACEOF |
20260 | /* end confdefs.h. */ |
20261 | /* Define dbopen to an innocuous variant, in case <limits.h> declares dbopen. |
20262 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
20263 | #define dbopen innocuous_dbopen |
20264 | |
20265 | /* System header to define __stub macros and hopefully few prototypes, |
20266 | which can conflict with char dbopen (); below. |
20267 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
20268 | <limits.h> exists even on freestanding compilers. */ |
20269 | |
20270 | #ifdef __STDC__ |
20271 | # include <limits.h> |
20272 | #else |
20273 | # include <assert.h> |
20274 | #endif |
20275 | |
20276 | #undef dbopen |
20277 | |
20278 | /* Override any gcc2 internal prototype to avoid an error. */ |
20279 | #ifdef __cplusplus |
20280 | extern "C" |
20281 | { |
20282 | #endif |
20283 | /* We use char because int might match the return type of a gcc2 |
20284 | builtin and then its argument prototype would still apply. */ |
20285 | char dbopen (); |
20286 | /* The GNU C library defines this for functions which it implements |
20287 | to always fail with ENOSYS. Some functions are actually named |
20288 | something starting with __ and the normal name is an alias. */ |
20289 | #if defined (__stub_dbopen) || defined (__stub___dbopen) |
20290 | choke me |
20291 | #else |
20292 | char (*f) () = dbopen; |
20293 | #endif |
20294 | #ifdef __cplusplus |
20295 | } |
20296 | #endif |
20297 | |
20298 | int |
20299 | main () |
20300 | { |
20301 | return f != dbopen; |
20302 | ; |
20303 | return 0; |
20304 | } |
20305 | _ACEOF |
20306 | rm -f conftest.$ac_objext conftest$ac_exeext |
20307 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
20308 | (eval $ac_link) 2>conftest.er1 |
20309 | ac_status=$? |
20310 | grep -v '^ *+' conftest.er1 >conftest.err |
20311 | rm -f conftest.er1 |
20312 | cat conftest.err >&5 |
20313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20314 | (exit $ac_status); } && |
20315 | { ac_try='test -z "$ac_c_werror_flag" |
20316 | || test ! -s conftest.err' |
20317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20318 | (eval $ac_try) 2>&5 |
20319 | ac_status=$? |
20320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20321 | (exit $ac_status); }; } && |
20322 | { ac_try='test -s conftest$ac_exeext' |
20323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20324 | (eval $ac_try) 2>&5 |
20325 | ac_status=$? |
20326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20327 | (exit $ac_status); }; }; then |
20328 | ac_cv_func_dbopen=yes |
20329 | else |
20330 | echo "$as_me: failed program was:" >&5 |
20331 | sed 's/^/| /' conftest.$ac_ext >&5 |
20332 | |
20333 | ac_cv_func_dbopen=no |
20334 | fi |
20335 | rm -f conftest.err conftest.$ac_objext \ |
20336 | conftest$ac_exeext conftest.$ac_ext |
20337 | fi |
20338 | echo "$as_me:$LINENO: result: $ac_cv_func_dbopen" >&5 |
20339 | echo "${ECHO_T}$ac_cv_func_dbopen" >&6 |
20340 | if test $ac_cv_func_dbopen = yes; then |
20341 | HAVE_BDB=1 |
20342 | fi |
20343 | |
20344 | echo "$as_me:$LINENO: checking for db_open" >&5 |
20345 | echo $ECHO_N "checking for db_open... $ECHO_C" >&6 |
20346 | if test "${ac_cv_func_db_open+set}" = set; then |
20347 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20348 | else |
20349 | cat >conftest.$ac_ext <<_ACEOF |
20350 | /* confdefs.h. */ |
20351 | _ACEOF |
20352 | cat confdefs.h >>conftest.$ac_ext |
20353 | cat >>conftest.$ac_ext <<_ACEOF |
20354 | /* end confdefs.h. */ |
20355 | /* Define db_open to an innocuous variant, in case <limits.h> declares db_open. |
20356 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
20357 | #define db_open innocuous_db_open |
20358 | |
20359 | /* System header to define __stub macros and hopefully few prototypes, |
20360 | which can conflict with char db_open (); below. |
20361 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
20362 | <limits.h> exists even on freestanding compilers. */ |
20363 | |
20364 | #ifdef __STDC__ |
20365 | # include <limits.h> |
20366 | #else |
20367 | # include <assert.h> |
20368 | #endif |
20369 | |
20370 | #undef db_open |
20371 | |
20372 | /* Override any gcc2 internal prototype to avoid an error. */ |
20373 | #ifdef __cplusplus |
20374 | extern "C" |
20375 | { |
20376 | #endif |
20377 | /* We use char because int might match the return type of a gcc2 |
20378 | builtin and then its argument prototype would still apply. */ |
20379 | char db_open (); |
20380 | /* The GNU C library defines this for functions which it implements |
20381 | to always fail with ENOSYS. Some functions are actually named |
20382 | something starting with __ and the normal name is an alias. */ |
20383 | #if defined (__stub_db_open) || defined (__stub___db_open) |
20384 | choke me |
20385 | #else |
20386 | char (*f) () = db_open; |
20387 | #endif |
20388 | #ifdef __cplusplus |
20389 | } |
20390 | #endif |
20391 | |
20392 | int |
20393 | main () |
20394 | { |
20395 | return f != db_open; |
20396 | ; |
20397 | return 0; |
20398 | } |
20399 | _ACEOF |
20400 | rm -f conftest.$ac_objext conftest$ac_exeext |
20401 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
20402 | (eval $ac_link) 2>conftest.er1 |
20403 | ac_status=$? |
20404 | grep -v '^ *+' conftest.er1 >conftest.err |
20405 | rm -f conftest.er1 |
20406 | cat conftest.err >&5 |
20407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20408 | (exit $ac_status); } && |
20409 | { ac_try='test -z "$ac_c_werror_flag" |
20410 | || test ! -s conftest.err' |
20411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20412 | (eval $ac_try) 2>&5 |
20413 | ac_status=$? |
20414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20415 | (exit $ac_status); }; } && |
20416 | { ac_try='test -s conftest$ac_exeext' |
20417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20418 | (eval $ac_try) 2>&5 |
20419 | ac_status=$? |
20420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20421 | (exit $ac_status); }; }; then |
20422 | ac_cv_func_db_open=yes |
20423 | else |
20424 | echo "$as_me: failed program was:" >&5 |
20425 | sed 's/^/| /' conftest.$ac_ext >&5 |
20426 | |
20427 | ac_cv_func_db_open=no |
20428 | fi |
20429 | rm -f conftest.err conftest.$ac_objext \ |
20430 | conftest$ac_exeext conftest.$ac_ext |
20431 | fi |
20432 | echo "$as_me:$LINENO: result: $ac_cv_func_db_open" >&5 |
20433 | echo "${ECHO_T}$ac_cv_func_db_open" >&6 |
20434 | if test $ac_cv_func_db_open = yes; then |
20435 | HAVE_BDB=1 |
20436 | fi |
20437 | |
20438 | echo "$as_me:$LINENO: checking for db_env_create" >&5 |
20439 | echo $ECHO_N "checking for db_env_create... $ECHO_C" >&6 |
20440 | if test "${ac_cv_func_db_env_create+set}" = set; then |
20441 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20442 | else |
20443 | cat >conftest.$ac_ext <<_ACEOF |
20444 | /* confdefs.h. */ |
20445 | _ACEOF |
20446 | cat confdefs.h >>conftest.$ac_ext |
20447 | cat >>conftest.$ac_ext <<_ACEOF |
20448 | /* end confdefs.h. */ |
20449 | /* Define db_env_create to an innocuous variant, in case <limits.h> declares db_env_create. |
20450 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
20451 | #define db_env_create innocuous_db_env_create |
20452 | |
20453 | /* System header to define __stub macros and hopefully few prototypes, |
20454 | which can conflict with char db_env_create (); below. |
20455 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
20456 | <limits.h> exists even on freestanding compilers. */ |
20457 | |
20458 | #ifdef __STDC__ |
20459 | # include <limits.h> |
20460 | #else |
20461 | # include <assert.h> |
20462 | #endif |
20463 | |
20464 | #undef db_env_create |
20465 | |
20466 | /* Override any gcc2 internal prototype to avoid an error. */ |
20467 | #ifdef __cplusplus |
20468 | extern "C" |
20469 | { |
20470 | #endif |
20471 | /* We use char because int might match the return type of a gcc2 |
20472 | builtin and then its argument prototype would still apply. */ |
20473 | char db_env_create (); |
20474 | /* The GNU C library defines this for functions which it implements |
20475 | to always fail with ENOSYS. Some functions are actually named |
20476 | something starting with __ and the normal name is an alias. */ |
20477 | #if defined (__stub_db_env_create) || defined (__stub___db_env_create) |
20478 | choke me |
20479 | #else |
20480 | char (*f) () = db_env_create; |
20481 | #endif |
20482 | #ifdef __cplusplus |
20483 | } |
20484 | #endif |
20485 | |
20486 | int |
20487 | main () |
20488 | { |
20489 | return f != db_env_create; |
20490 | ; |
20491 | return 0; |
20492 | } |
20493 | _ACEOF |
20494 | rm -f conftest.$ac_objext conftest$ac_exeext |
20495 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
20496 | (eval $ac_link) 2>conftest.er1 |
20497 | ac_status=$? |
20498 | grep -v '^ *+' conftest.er1 >conftest.err |
20499 | rm -f conftest.er1 |
20500 | cat conftest.err >&5 |
20501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20502 | (exit $ac_status); } && |
20503 | { ac_try='test -z "$ac_c_werror_flag" |
20504 | || test ! -s conftest.err' |
20505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20506 | (eval $ac_try) 2>&5 |
20507 | ac_status=$? |
20508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20509 | (exit $ac_status); }; } && |
20510 | { ac_try='test -s conftest$ac_exeext' |
20511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20512 | (eval $ac_try) 2>&5 |
20513 | ac_status=$? |
20514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20515 | (exit $ac_status); }; }; then |
20516 | ac_cv_func_db_env_create=yes |
20517 | else |
20518 | echo "$as_me: failed program was:" >&5 |
20519 | sed 's/^/| /' conftest.$ac_ext >&5 |
20520 | |
20521 | ac_cv_func_db_env_create=no |
20522 | fi |
20523 | rm -f conftest.err conftest.$ac_objext \ |
20524 | conftest$ac_exeext conftest.$ac_ext |
20525 | fi |
20526 | echo "$as_me:$LINENO: result: $ac_cv_func_db_env_create" >&5 |
20527 | echo "${ECHO_T}$ac_cv_func_db_env_create" >&6 |
20528 | if test $ac_cv_func_db_env_create = yes; then |
20529 | HAVE_BDB=1 |
20530 | fi |
20531 | |
20532 | fi |
20533 | |
20534 | LIBS="$saveLIBS" |
20535 | |
20536 | if test "$HAVE_GDBM$HAVE_BDB" = "" |
20537 | then |
20538 | { { echo "$as_me:$LINENO: error: Cannot find either the gdbm or the db library." >&5 |
20539 | echo "$as_me: error: Cannot find either the gdbm or the db library." >&2;} |
20540 | { (exit 1); exit 1; }; } |
20541 | fi |
20542 | |
20543 | USE_GDBM=0 |
20544 | USE_DB=0 |
20545 | |
20546 | if test "$HAVE_GDBM" = "y" |
20547 | then |
20548 | LIBDB="" |
20549 | USE_GDBM=1 |
20550 | DBSUBDIR=gdbmobj |
20551 | if test "$needs_withdb" = 1 |
20552 | then |
20553 | ac_configure_args="$ac_configure_args --with-db=gdbm" |
20554 | fi |
20555 | dblibrary=gdbmobj/libgdbmobj.la |
20556 | else |
20557 | LIBGDBM="" |
20558 | USE_DB=1 |
20559 | DBSUBDIR=bdbobj |
20560 | if test "$needs_withdb" = 1 |
20561 | then |
20562 | ac_configure_args="$ac_configure_args --with-db=db" |
20563 | fi |
20564 | dblibrary=bdbobj/libbdbobj.la |
20565 | fi |
20566 | |
20567 | |
20568 | |
20569 | |
20570 | |
20571 | |
20572 | |
20573 | |
20574 | # Check whether --with-authuserdb or --without-authuserdb was given. |
20575 | if test "${with_authuserdb+set}" = set; then |
20576 | withval="$with_authuserdb" |
20577 | doauthuserdb="$withval" |
20578 | else |
20579 | doauthuserdb="no" |
20580 | if test -d ${srcdir}/userdb |
20581 | then |
20582 | doauthuserdb="yes" |
20583 | fi |
20584 | fi; |
20585 | |
20586 | if test "$doauthuserdb" = "no" |
20587 | then |
20588 | AUTHUSERDB="" |
20589 | else |
20590 | AUTHUSERDB="authuserdb" |
20591 | LIBAUTHUSERDB="libauthuserdb.la" |
20592 | |
20593 | fi |
20594 | |
20595 | |
20596 | # Check whether --with-makedatprog or --without-makedatprog was given. |
20597 | if test "${with_makedatprog+set}" = set; then |
20598 | withval="$with_makedatprog" |
20599 | : |
20600 | else |
20601 | |
20602 | ac_configure_args="$ac_configure_args --with-makedatprog=$libexecdir/courier-authlib/makedatprog" |
20603 | |
20604 | fi; |
20605 | |
20606 | cat >dbobj.config <<EOF |
20607 | LIBDB=$LIBDB |
20608 | LIBGDBM=$LIBGDBM |
20609 | dblibrary=$dblibrary |
20610 | EOF |
20611 | |
20612 | |
20613 | |
20614 | |
20615 | |
20616 | |
20617 | |
20618 | |
20619 | |
20620 | userdb="$pkgconfdir/userdb" |
20621 | |
20622 | # Check whether --with-userdb or --without-userdb was given. |
20623 | if test "${with_userdb+set}" = set; then |
20624 | withval="$with_userdb" |
20625 | userdb="$withval" |
20626 | else |
20627 | ac_configure_args="$ac_configure_args '--with-userdb=$userdb'" |
20628 | fi; |
20629 | |
20630 | |
20631 | cat >>confdefs.h <<_ACEOF |
20632 | #define USERDB "$userdb" |
20633 | _ACEOF |
20634 | |
20635 | |
20636 | |
20637 | |
20638 | for ac_header in stdio.h |
20639 | do |
20640 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
20641 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
20642 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
20643 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
20644 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
20645 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20646 | fi |
20647 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
20648 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
20649 | else |
20650 | # Is the header compilable? |
20651 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
20652 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
20653 | cat >conftest.$ac_ext <<_ACEOF |
20654 | /* confdefs.h. */ |
20655 | _ACEOF |
20656 | cat confdefs.h >>conftest.$ac_ext |
20657 | cat >>conftest.$ac_ext <<_ACEOF |
20658 | /* end confdefs.h. */ |
20659 | $ac_includes_default |
20660 | #include <$ac_header> |
20661 | _ACEOF |
20662 | rm -f conftest.$ac_objext |
20663 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
20664 | (eval $ac_compile) 2>conftest.er1 |
20665 | ac_status=$? |
20666 | grep -v '^ *+' conftest.er1 >conftest.err |
20667 | rm -f conftest.er1 |
20668 | cat conftest.err >&5 |
20669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20670 | (exit $ac_status); } && |
20671 | { ac_try='test -z "$ac_c_werror_flag" |
20672 | || test ! -s conftest.err' |
20673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20674 | (eval $ac_try) 2>&5 |
20675 | ac_status=$? |
20676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20677 | (exit $ac_status); }; } && |
20678 | { ac_try='test -s conftest.$ac_objext' |
20679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20680 | (eval $ac_try) 2>&5 |
20681 | ac_status=$? |
20682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20683 | (exit $ac_status); }; }; then |
20684 | ac_header_compiler=yes |
20685 | else |
20686 | echo "$as_me: failed program was:" >&5 |
20687 | sed 's/^/| /' conftest.$ac_ext >&5 |
20688 | |
20689 | ac_header_compiler=no |
20690 | fi |
20691 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
20692 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20693 | echo "${ECHO_T}$ac_header_compiler" >&6 |
20694 | |
20695 | # Is the header present? |
20696 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
20697 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
20698 | cat >conftest.$ac_ext <<_ACEOF |
20699 | /* confdefs.h. */ |
20700 | _ACEOF |
20701 | cat confdefs.h >>conftest.$ac_ext |
20702 | cat >>conftest.$ac_ext <<_ACEOF |
20703 | /* end confdefs.h. */ |
20704 | #include <$ac_header> |
20705 | _ACEOF |
20706 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
20707 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
20708 | ac_status=$? |
20709 | grep -v '^ *+' conftest.er1 >conftest.err |
20710 | rm -f conftest.er1 |
20711 | cat conftest.err >&5 |
20712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20713 | (exit $ac_status); } >/dev/null; then |
20714 | if test -s conftest.err; then |
20715 | ac_cpp_err=$ac_c_preproc_warn_flag |
20716 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
20717 | else |
20718 | ac_cpp_err= |
20719 | fi |
20720 | else |
20721 | ac_cpp_err=yes |
20722 | fi |
20723 | if test -z "$ac_cpp_err"; then |
20724 | ac_header_preproc=yes |
20725 | else |
20726 | echo "$as_me: failed program was:" >&5 |
20727 | sed 's/^/| /' conftest.$ac_ext >&5 |
20728 | |
20729 | ac_header_preproc=no |
20730 | fi |
20731 | rm -f conftest.err conftest.$ac_ext |
20732 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
20733 | echo "${ECHO_T}$ac_header_preproc" >&6 |
20734 | |
20735 | # So? What about this header? |
20736 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20737 | yes:no: ) |
20738 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
20739 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
20740 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
20741 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
20742 | ac_header_preproc=yes |
20743 | ;; |
20744 | no:yes:* ) |
20745 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
20746 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
20747 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
20748 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
20749 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
20750 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
20751 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
20752 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
20753 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
20754 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
20755 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
20756 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
20757 | ( |
20758 | cat <<\_ASBOX |
20759 | ## -------------------------------------------------- ## |
20760 | ## Report this to courier-users@lists.sourceforge.net ## |
20761 | ## -------------------------------------------------- ## |
20762 | _ASBOX |
20763 | ) | |
20764 | sed "s/^/$as_me: WARNING: /" >&2 |
20765 | ;; |
20766 | esac |
20767 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
20768 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
20769 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
20770 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20771 | else |
20772 | eval "$as_ac_Header=\$ac_header_preproc" |
20773 | fi |
20774 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
20775 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
20776 | |
20777 | fi |
20778 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
20779 | cat >>confdefs.h <<_ACEOF |
20780 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
20781 | _ACEOF |
20782 | |
20783 | fi |
20784 | |
20785 | done |
20786 | |
20787 | |
20788 | |
20789 | |
20790 | |
20791 | |
20792 | # Check whether --with-authpam or --without-authpam was given. |
20793 | if test "${with_authpam+set}" = set; then |
20794 | withval="$with_authpam" |
20795 | doauthpam="$withval" |
20796 | fi; |
20797 | |
20798 | |
20799 | |
20800 | for ac_header in security/pam_appl.h Pam/pam_appl.h |
20801 | do |
20802 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
20803 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
20804 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
20805 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
20806 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
20807 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20808 | fi |
20809 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
20810 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
20811 | else |
20812 | # Is the header compilable? |
20813 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
20814 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
20815 | cat >conftest.$ac_ext <<_ACEOF |
20816 | /* confdefs.h. */ |
20817 | _ACEOF |
20818 | cat confdefs.h >>conftest.$ac_ext |
20819 | cat >>conftest.$ac_ext <<_ACEOF |
20820 | /* end confdefs.h. */ |
20821 | $ac_includes_default |
20822 | #include <$ac_header> |
20823 | _ACEOF |
20824 | rm -f conftest.$ac_objext |
20825 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
20826 | (eval $ac_compile) 2>conftest.er1 |
20827 | ac_status=$? |
20828 | grep -v '^ *+' conftest.er1 >conftest.err |
20829 | rm -f conftest.er1 |
20830 | cat conftest.err >&5 |
20831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20832 | (exit $ac_status); } && |
20833 | { ac_try='test -z "$ac_c_werror_flag" |
20834 | || test ! -s conftest.err' |
20835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20836 | (eval $ac_try) 2>&5 |
20837 | ac_status=$? |
20838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20839 | (exit $ac_status); }; } && |
20840 | { ac_try='test -s conftest.$ac_objext' |
20841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20842 | (eval $ac_try) 2>&5 |
20843 | ac_status=$? |
20844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20845 | (exit $ac_status); }; }; then |
20846 | ac_header_compiler=yes |
20847 | else |
20848 | echo "$as_me: failed program was:" >&5 |
20849 | sed 's/^/| /' conftest.$ac_ext >&5 |
20850 | |
20851 | ac_header_compiler=no |
20852 | fi |
20853 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
20854 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20855 | echo "${ECHO_T}$ac_header_compiler" >&6 |
20856 | |
20857 | # Is the header present? |
20858 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
20859 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
20860 | cat >conftest.$ac_ext <<_ACEOF |
20861 | /* confdefs.h. */ |
20862 | _ACEOF |
20863 | cat confdefs.h >>conftest.$ac_ext |
20864 | cat >>conftest.$ac_ext <<_ACEOF |
20865 | /* end confdefs.h. */ |
20866 | #include <$ac_header> |
20867 | _ACEOF |
20868 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
20869 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
20870 | ac_status=$? |
20871 | grep -v '^ *+' conftest.er1 >conftest.err |
20872 | rm -f conftest.er1 |
20873 | cat conftest.err >&5 |
20874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20875 | (exit $ac_status); } >/dev/null; then |
20876 | if test -s conftest.err; then |
20877 | ac_cpp_err=$ac_c_preproc_warn_flag |
20878 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
20879 | else |
20880 | ac_cpp_err= |
20881 | fi |
20882 | else |
20883 | ac_cpp_err=yes |
20884 | fi |
20885 | if test -z "$ac_cpp_err"; then |
20886 | ac_header_preproc=yes |
20887 | else |
20888 | echo "$as_me: failed program was:" >&5 |
20889 | sed 's/^/| /' conftest.$ac_ext >&5 |
20890 | |
20891 | ac_header_preproc=no |
20892 | fi |
20893 | rm -f conftest.err conftest.$ac_ext |
20894 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
20895 | echo "${ECHO_T}$ac_header_preproc" >&6 |
20896 | |
20897 | # So? What about this header? |
20898 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20899 | yes:no: ) |
20900 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
20901 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
20902 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
20903 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
20904 | ac_header_preproc=yes |
20905 | ;; |
20906 | no:yes:* ) |
20907 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
20908 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
20909 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
20910 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
20911 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
20912 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
20913 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
20914 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
20915 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
20916 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
20917 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
20918 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
20919 | ( |
20920 | cat <<\_ASBOX |
20921 | ## -------------------------------------------------- ## |
20922 | ## Report this to courier-users@lists.sourceforge.net ## |
20923 | ## -------------------------------------------------- ## |
20924 | _ASBOX |
20925 | ) | |
20926 | sed "s/^/$as_me: WARNING: /" >&2 |
20927 | ;; |
20928 | esac |
20929 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
20930 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
20931 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
20932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20933 | else |
20934 | eval "$as_ac_Header=\$ac_header_preproc" |
20935 | fi |
20936 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
20937 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
20938 | |
20939 | fi |
20940 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
20941 | cat >>confdefs.h <<_ACEOF |
20942 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
20943 | _ACEOF |
20944 | |
20945 | fi |
20946 | |
20947 | done |
20948 | |
20949 | if test "$doauthpam" = "no" |
20950 | then |
20951 | LIBDL="" |
20952 | else |
20953 | saveLIBS="$LIBS" |
20954 | LIBDL="" |
20955 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
20956 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
20957 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
20958 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20959 | else |
20960 | ac_check_lib_save_LIBS=$LIBS |
20961 | LIBS="-ldl $LIBS" |
20962 | cat >conftest.$ac_ext <<_ACEOF |
20963 | /* confdefs.h. */ |
20964 | _ACEOF |
20965 | cat confdefs.h >>conftest.$ac_ext |
20966 | cat >>conftest.$ac_ext <<_ACEOF |
20967 | /* end confdefs.h. */ |
20968 | |
20969 | /* Override any gcc2 internal prototype to avoid an error. */ |
20970 | #ifdef __cplusplus |
20971 | extern "C" |
20972 | #endif |
20973 | /* We use char because int might match the return type of a gcc2 |
20974 | builtin and then its argument prototype would still apply. */ |
20975 | char dlopen (); |
20976 | int |
20977 | main () |
20978 | { |
20979 | dlopen (); |
20980 | ; |
20981 | return 0; |
20982 | } |
20983 | _ACEOF |
20984 | rm -f conftest.$ac_objext conftest$ac_exeext |
20985 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
20986 | (eval $ac_link) 2>conftest.er1 |
20987 | ac_status=$? |
20988 | grep -v '^ *+' conftest.er1 >conftest.err |
20989 | rm -f conftest.er1 |
20990 | cat conftest.err >&5 |
20991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20992 | (exit $ac_status); } && |
20993 | { ac_try='test -z "$ac_c_werror_flag" |
20994 | || test ! -s conftest.err' |
20995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20996 | (eval $ac_try) 2>&5 |
20997 | ac_status=$? |
20998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20999 | (exit $ac_status); }; } && |
21000 | { ac_try='test -s conftest$ac_exeext' |
21001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21002 | (eval $ac_try) 2>&5 |
21003 | ac_status=$? |
21004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21005 | (exit $ac_status); }; }; then |
21006 | ac_cv_lib_dl_dlopen=yes |
21007 | else |
21008 | echo "$as_me: failed program was:" >&5 |
21009 | sed 's/^/| /' conftest.$ac_ext >&5 |
21010 | |
21011 | ac_cv_lib_dl_dlopen=no |
21012 | fi |
21013 | rm -f conftest.err conftest.$ac_objext \ |
21014 | conftest$ac_exeext conftest.$ac_ext |
21015 | LIBS=$ac_check_lib_save_LIBS |
21016 | fi |
21017 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
21018 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
21019 | if test $ac_cv_lib_dl_dlopen = yes; then |
21020 | LIBDL="-ldl" |
21021 | fi |
21022 | |
21023 | LIBS="$saveLIBS" |
21024 | |
21025 | echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5 |
21026 | echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6 |
21027 | if test "${ac_cv_lib_pam_pam_start+set}" = set; then |
21028 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21029 | else |
21030 | ac_check_lib_save_LIBS=$LIBS |
21031 | LIBS="-lpam $LIBDL $LIBS" |
21032 | cat >conftest.$ac_ext <<_ACEOF |
21033 | /* confdefs.h. */ |
21034 | _ACEOF |
21035 | cat confdefs.h >>conftest.$ac_ext |
21036 | cat >>conftest.$ac_ext <<_ACEOF |
21037 | /* end confdefs.h. */ |
21038 | |
21039 | /* Override any gcc2 internal prototype to avoid an error. */ |
21040 | #ifdef __cplusplus |
21041 | extern "C" |
21042 | #endif |
21043 | /* We use char because int might match the return type of a gcc2 |
21044 | builtin and then its argument prototype would still apply. */ |
21045 | char pam_start (); |
21046 | int |
21047 | main () |
21048 | { |
21049 | pam_start (); |
21050 | ; |
21051 | return 0; |
21052 | } |
21053 | _ACEOF |
21054 | rm -f conftest.$ac_objext conftest$ac_exeext |
21055 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
21056 | (eval $ac_link) 2>conftest.er1 |
21057 | ac_status=$? |
21058 | grep -v '^ *+' conftest.er1 >conftest.err |
21059 | rm -f conftest.er1 |
21060 | cat conftest.err >&5 |
21061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21062 | (exit $ac_status); } && |
21063 | { ac_try='test -z "$ac_c_werror_flag" |
21064 | || test ! -s conftest.err' |
21065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21066 | (eval $ac_try) 2>&5 |
21067 | ac_status=$? |
21068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21069 | (exit $ac_status); }; } && |
21070 | { ac_try='test -s conftest$ac_exeext' |
21071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21072 | (eval $ac_try) 2>&5 |
21073 | ac_status=$? |
21074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21075 | (exit $ac_status); }; }; then |
21076 | ac_cv_lib_pam_pam_start=yes |
21077 | else |
21078 | echo "$as_me: failed program was:" >&5 |
21079 | sed 's/^/| /' conftest.$ac_ext >&5 |
21080 | |
21081 | ac_cv_lib_pam_pam_start=no |
21082 | fi |
21083 | rm -f conftest.err conftest.$ac_objext \ |
21084 | conftest$ac_exeext conftest.$ac_ext |
21085 | LIBS=$ac_check_lib_save_LIBS |
21086 | fi |
21087 | echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5 |
21088 | echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6 |
21089 | if test $ac_cv_lib_pam_pam_start = yes; then |
21090 | HAVE_PAM=1 |
21091 | LIBS="-lpam $LIBDL $LIBS" |
21092 | |
21093 | for ac_func in pam_setcred |
21094 | do |
21095 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
21096 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
21097 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
21098 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
21099 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21100 | else |
21101 | cat >conftest.$ac_ext <<_ACEOF |
21102 | /* confdefs.h. */ |
21103 | _ACEOF |
21104 | cat confdefs.h >>conftest.$ac_ext |
21105 | cat >>conftest.$ac_ext <<_ACEOF |
21106 | /* end confdefs.h. */ |
21107 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
21108 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
21109 | #define $ac_func innocuous_$ac_func |
21110 | |
21111 | /* System header to define __stub macros and hopefully few prototypes, |
21112 | which can conflict with char $ac_func (); below. |
21113 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
21114 | <limits.h> exists even on freestanding compilers. */ |
21115 | |
21116 | #ifdef __STDC__ |
21117 | # include <limits.h> |
21118 | #else |
21119 | # include <assert.h> |
21120 | #endif |
21121 | |
21122 | #undef $ac_func |
21123 | |
21124 | /* Override any gcc2 internal prototype to avoid an error. */ |
21125 | #ifdef __cplusplus |
21126 | extern "C" |
21127 | { |
21128 | #endif |
21129 | /* We use char because int might match the return type of a gcc2 |
21130 | builtin and then its argument prototype would still apply. */ |
21131 | char $ac_func (); |
21132 | /* The GNU C library defines this for functions which it implements |
21133 | to always fail with ENOSYS. Some functions are actually named |
21134 | something starting with __ and the normal name is an alias. */ |
21135 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
21136 | choke me |
21137 | #else |
21138 | char (*f) () = $ac_func; |
21139 | #endif |
21140 | #ifdef __cplusplus |
21141 | } |
21142 | #endif |
21143 | |
21144 | int |
21145 | main () |
21146 | { |
21147 | return f != $ac_func; |
21148 | ; |
21149 | return 0; |
21150 | } |
21151 | _ACEOF |
21152 | rm -f conftest.$ac_objext conftest$ac_exeext |
21153 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
21154 | (eval $ac_link) 2>conftest.er1 |
21155 | ac_status=$? |
21156 | grep -v '^ *+' conftest.er1 >conftest.err |
21157 | rm -f conftest.er1 |
21158 | cat conftest.err >&5 |
21159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21160 | (exit $ac_status); } && |
21161 | { ac_try='test -z "$ac_c_werror_flag" |
21162 | || test ! -s conftest.err' |
21163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21164 | (eval $ac_try) 2>&5 |
21165 | ac_status=$? |
21166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21167 | (exit $ac_status); }; } && |
21168 | { ac_try='test -s conftest$ac_exeext' |
21169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21170 | (eval $ac_try) 2>&5 |
21171 | ac_status=$? |
21172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21173 | (exit $ac_status); }; }; then |
21174 | eval "$as_ac_var=yes" |
21175 | else |
21176 | echo "$as_me: failed program was:" >&5 |
21177 | sed 's/^/| /' conftest.$ac_ext >&5 |
21178 | |
21179 | eval "$as_ac_var=no" |
21180 | fi |
21181 | rm -f conftest.err conftest.$ac_objext \ |
21182 | conftest$ac_exeext conftest.$ac_ext |
21183 | fi |
21184 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
21185 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
21186 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
21187 | cat >>confdefs.h <<_ACEOF |
21188 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
21189 | _ACEOF |
21190 | |
21191 | fi |
21192 | done |
21193 | |
21194 | else |
21195 | HAVE_PAM=0 |
21196 | fi |
21197 | |
21198 | LIBS="$saveLIBS" |
21199 | fi |
21200 | |
21201 | |
21202 | LIBAUTHPAM="" |
21203 | if test "$HAVE_PAM" = 1 |
21204 | then |
21205 | LIBAUTHPAM=libauthpam.la |
21206 | fi |
21207 | |
21208 | |
21209 | # Check whether --with-authpam-libraries or --without-authpam-libraries was given. |
21210 | if test "${with_authpam_libraries+set}" = set; then |
21211 | withval="$with_authpam_libraries" |
21212 | authpamcrypt="$withval" |
21213 | fi; |
21214 | |
21215 | AUTHPAMCRYPT="$authpamcrypt" |
21216 | |
21217 | |
21218 | |
21219 | |
21220 | |
21221 | |
21222 | |
21223 | # Check whether --with-authldap or --without-authldap was given. |
21224 | if test "${with_authldap+set}" = set; then |
21225 | withval="$with_authldap" |
21226 | doauthldap="$withval" |
21227 | else |
21228 | doauthldap="yes" |
21229 | fi; |
21230 | |
21231 | |
21232 | for ac_header in lber.h |
21233 | do |
21234 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
21235 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
21236 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
21237 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
21238 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
21239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21240 | fi |
21241 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
21242 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
21243 | else |
21244 | # Is the header compilable? |
21245 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
21246 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
21247 | cat >conftest.$ac_ext <<_ACEOF |
21248 | /* confdefs.h. */ |
21249 | _ACEOF |
21250 | cat confdefs.h >>conftest.$ac_ext |
21251 | cat >>conftest.$ac_ext <<_ACEOF |
21252 | /* end confdefs.h. */ |
21253 | $ac_includes_default |
21254 | #include <$ac_header> |
21255 | _ACEOF |
21256 | rm -f conftest.$ac_objext |
21257 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
21258 | (eval $ac_compile) 2>conftest.er1 |
21259 | ac_status=$? |
21260 | grep -v '^ *+' conftest.er1 >conftest.err |
21261 | rm -f conftest.er1 |
21262 | cat conftest.err >&5 |
21263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21264 | (exit $ac_status); } && |
21265 | { ac_try='test -z "$ac_c_werror_flag" |
21266 | || test ! -s conftest.err' |
21267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21268 | (eval $ac_try) 2>&5 |
21269 | ac_status=$? |
21270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21271 | (exit $ac_status); }; } && |
21272 | { ac_try='test -s conftest.$ac_objext' |
21273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21274 | (eval $ac_try) 2>&5 |
21275 | ac_status=$? |
21276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21277 | (exit $ac_status); }; }; then |
21278 | ac_header_compiler=yes |
21279 | else |
21280 | echo "$as_me: failed program was:" >&5 |
21281 | sed 's/^/| /' conftest.$ac_ext >&5 |
21282 | |
21283 | ac_header_compiler=no |
21284 | fi |
21285 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
21286 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21287 | echo "${ECHO_T}$ac_header_compiler" >&6 |
21288 | |
21289 | # Is the header present? |
21290 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
21291 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
21292 | cat >conftest.$ac_ext <<_ACEOF |
21293 | /* confdefs.h. */ |
21294 | _ACEOF |
21295 | cat confdefs.h >>conftest.$ac_ext |
21296 | cat >>conftest.$ac_ext <<_ACEOF |
21297 | /* end confdefs.h. */ |
21298 | #include <$ac_header> |
21299 | _ACEOF |
21300 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
21301 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
21302 | ac_status=$? |
21303 | grep -v '^ *+' conftest.er1 >conftest.err |
21304 | rm -f conftest.er1 |
21305 | cat conftest.err >&5 |
21306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21307 | (exit $ac_status); } >/dev/null; then |
21308 | if test -s conftest.err; then |
21309 | ac_cpp_err=$ac_c_preproc_warn_flag |
21310 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
21311 | else |
21312 | ac_cpp_err= |
21313 | fi |
21314 | else |
21315 | ac_cpp_err=yes |
21316 | fi |
21317 | if test -z "$ac_cpp_err"; then |
21318 | ac_header_preproc=yes |
21319 | else |
21320 | echo "$as_me: failed program was:" >&5 |
21321 | sed 's/^/| /' conftest.$ac_ext >&5 |
21322 | |
21323 | ac_header_preproc=no |
21324 | fi |
21325 | rm -f conftest.err conftest.$ac_ext |
21326 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
21327 | echo "${ECHO_T}$ac_header_preproc" >&6 |
21328 | |
21329 | # So? What about this header? |
21330 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21331 | yes:no: ) |
21332 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
21333 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
21334 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
21335 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
21336 | ac_header_preproc=yes |
21337 | ;; |
21338 | no:yes:* ) |
21339 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
21340 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
21341 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
21342 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
21343 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
21344 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
21345 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
21346 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
21347 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
21348 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
21349 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
21350 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
21351 | ( |
21352 | cat <<\_ASBOX |
21353 | ## -------------------------------------------------- ## |
21354 | ## Report this to courier-users@lists.sourceforge.net ## |
21355 | ## -------------------------------------------------- ## |
21356 | _ASBOX |
21357 | ) | |
21358 | sed "s/^/$as_me: WARNING: /" >&2 |
21359 | ;; |
21360 | esac |
21361 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
21362 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
21363 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
21364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21365 | else |
21366 | eval "$as_ac_Header=\$ac_header_preproc" |
21367 | fi |
21368 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
21369 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
21370 | |
21371 | fi |
21372 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
21373 | cat >>confdefs.h <<_ACEOF |
21374 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
21375 | _ACEOF |
21376 | |
21377 | fi |
21378 | |
21379 | done |
21380 | |
21381 | |
21382 | for ac_header in ldap.h |
21383 | do |
21384 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
21385 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
21386 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
21387 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
21388 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
21389 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21390 | fi |
21391 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
21392 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
21393 | else |
21394 | # Is the header compilable? |
21395 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
21396 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
21397 | cat >conftest.$ac_ext <<_ACEOF |
21398 | /* confdefs.h. */ |
21399 | _ACEOF |
21400 | cat confdefs.h >>conftest.$ac_ext |
21401 | cat >>conftest.$ac_ext <<_ACEOF |
21402 | /* end confdefs.h. */ |
21403 | $ac_includes_default |
21404 | #include <$ac_header> |
21405 | _ACEOF |
21406 | rm -f conftest.$ac_objext |
21407 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
21408 | (eval $ac_compile) 2>conftest.er1 |
21409 | ac_status=$? |
21410 | grep -v '^ *+' conftest.er1 >conftest.err |
21411 | rm -f conftest.er1 |
21412 | cat conftest.err >&5 |
21413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21414 | (exit $ac_status); } && |
21415 | { ac_try='test -z "$ac_c_werror_flag" |
21416 | || test ! -s conftest.err' |
21417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21418 | (eval $ac_try) 2>&5 |
21419 | ac_status=$? |
21420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21421 | (exit $ac_status); }; } && |
21422 | { ac_try='test -s conftest.$ac_objext' |
21423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21424 | (eval $ac_try) 2>&5 |
21425 | ac_status=$? |
21426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21427 | (exit $ac_status); }; }; then |
21428 | ac_header_compiler=yes |
21429 | else |
21430 | echo "$as_me: failed program was:" >&5 |
21431 | sed 's/^/| /' conftest.$ac_ext >&5 |
21432 | |
21433 | ac_header_compiler=no |
21434 | fi |
21435 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
21436 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21437 | echo "${ECHO_T}$ac_header_compiler" >&6 |
21438 | |
21439 | # Is the header present? |
21440 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
21441 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
21442 | cat >conftest.$ac_ext <<_ACEOF |
21443 | /* confdefs.h. */ |
21444 | _ACEOF |
21445 | cat confdefs.h >>conftest.$ac_ext |
21446 | cat >>conftest.$ac_ext <<_ACEOF |
21447 | /* end confdefs.h. */ |
21448 | #include <$ac_header> |
21449 | _ACEOF |
21450 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
21451 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
21452 | ac_status=$? |
21453 | grep -v '^ *+' conftest.er1 >conftest.err |
21454 | rm -f conftest.er1 |
21455 | cat conftest.err >&5 |
21456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21457 | (exit $ac_status); } >/dev/null; then |
21458 | if test -s conftest.err; then |
21459 | ac_cpp_err=$ac_c_preproc_warn_flag |
21460 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
21461 | else |
21462 | ac_cpp_err= |
21463 | fi |
21464 | else |
21465 | ac_cpp_err=yes |
21466 | fi |
21467 | if test -z "$ac_cpp_err"; then |
21468 | ac_header_preproc=yes |
21469 | else |
21470 | echo "$as_me: failed program was:" >&5 |
21471 | sed 's/^/| /' conftest.$ac_ext >&5 |
21472 | |
21473 | ac_header_preproc=no |
21474 | fi |
21475 | rm -f conftest.err conftest.$ac_ext |
21476 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
21477 | echo "${ECHO_T}$ac_header_preproc" >&6 |
21478 | |
21479 | # So? What about this header? |
21480 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21481 | yes:no: ) |
21482 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
21483 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
21484 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
21485 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
21486 | ac_header_preproc=yes |
21487 | ;; |
21488 | no:yes:* ) |
21489 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
21490 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
21491 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
21492 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
21493 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
21494 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
21495 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
21496 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
21497 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
21498 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
21499 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
21500 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
21501 | ( |
21502 | cat <<\_ASBOX |
21503 | ## -------------------------------------------------- ## |
21504 | ## Report this to courier-users@lists.sourceforge.net ## |
21505 | ## -------------------------------------------------- ## |
21506 | _ASBOX |
21507 | ) | |
21508 | sed "s/^/$as_me: WARNING: /" >&2 |
21509 | ;; |
21510 | esac |
21511 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
21512 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
21513 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
21514 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21515 | else |
21516 | eval "$as_ac_Header=\$ac_header_preproc" |
21517 | fi |
21518 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
21519 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
21520 | |
21521 | fi |
21522 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
21523 | cat >>confdefs.h <<_ACEOF |
21524 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
21525 | _ACEOF |
21526 | |
21527 | fi |
21528 | |
21529 | done |
21530 | |
21531 | |
21532 | for ac_header in netinet/in.h |
21533 | do |
21534 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
21535 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
21536 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
21537 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
21538 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
21539 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21540 | fi |
21541 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
21542 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
21543 | else |
21544 | # Is the header compilable? |
21545 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
21546 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
21547 | cat >conftest.$ac_ext <<_ACEOF |
21548 | /* confdefs.h. */ |
21549 | _ACEOF |
21550 | cat confdefs.h >>conftest.$ac_ext |
21551 | cat >>conftest.$ac_ext <<_ACEOF |
21552 | /* end confdefs.h. */ |
21553 | $ac_includes_default |
21554 | #include <$ac_header> |
21555 | _ACEOF |
21556 | rm -f conftest.$ac_objext |
21557 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
21558 | (eval $ac_compile) 2>conftest.er1 |
21559 | ac_status=$? |
21560 | grep -v '^ *+' conftest.er1 >conftest.err |
21561 | rm -f conftest.er1 |
21562 | cat conftest.err >&5 |
21563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21564 | (exit $ac_status); } && |
21565 | { ac_try='test -z "$ac_c_werror_flag" |
21566 | || test ! -s conftest.err' |
21567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21568 | (eval $ac_try) 2>&5 |
21569 | ac_status=$? |
21570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21571 | (exit $ac_status); }; } && |
21572 | { ac_try='test -s conftest.$ac_objext' |
21573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21574 | (eval $ac_try) 2>&5 |
21575 | ac_status=$? |
21576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21577 | (exit $ac_status); }; }; then |
21578 | ac_header_compiler=yes |
21579 | else |
21580 | echo "$as_me: failed program was:" >&5 |
21581 | sed 's/^/| /' conftest.$ac_ext >&5 |
21582 | |
21583 | ac_header_compiler=no |
21584 | fi |
21585 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
21586 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21587 | echo "${ECHO_T}$ac_header_compiler" >&6 |
21588 | |
21589 | # Is the header present? |
21590 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
21591 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
21592 | cat >conftest.$ac_ext <<_ACEOF |
21593 | /* confdefs.h. */ |
21594 | _ACEOF |
21595 | cat confdefs.h >>conftest.$ac_ext |
21596 | cat >>conftest.$ac_ext <<_ACEOF |
21597 | /* end confdefs.h. */ |
21598 | #include <$ac_header> |
21599 | _ACEOF |
21600 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
21601 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
21602 | ac_status=$? |
21603 | grep -v '^ *+' conftest.er1 >conftest.err |
21604 | rm -f conftest.er1 |
21605 | cat conftest.err >&5 |
21606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21607 | (exit $ac_status); } >/dev/null; then |
21608 | if test -s conftest.err; then |
21609 | ac_cpp_err=$ac_c_preproc_warn_flag |
21610 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
21611 | else |
21612 | ac_cpp_err= |
21613 | fi |
21614 | else |
21615 | ac_cpp_err=yes |
21616 | fi |
21617 | if test -z "$ac_cpp_err"; then |
21618 | ac_header_preproc=yes |
21619 | else |
21620 | echo "$as_me: failed program was:" >&5 |
21621 | sed 's/^/| /' conftest.$ac_ext >&5 |
21622 | |
21623 | ac_header_preproc=no |
21624 | fi |
21625 | rm -f conftest.err conftest.$ac_ext |
21626 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
21627 | echo "${ECHO_T}$ac_header_preproc" >&6 |
21628 | |
21629 | # So? What about this header? |
21630 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21631 | yes:no: ) |
21632 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
21633 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
21634 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
21635 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
21636 | ac_header_preproc=yes |
21637 | ;; |
21638 | no:yes:* ) |
21639 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
21640 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
21641 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
21642 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
21643 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
21644 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
21645 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
21646 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
21647 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
21648 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
21649 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
21650 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
21651 | ( |
21652 | cat <<\_ASBOX |
21653 | ## -------------------------------------------------- ## |
21654 | ## Report this to courier-users@lists.sourceforge.net ## |
21655 | ## -------------------------------------------------- ## |
21656 | _ASBOX |
21657 | ) | |
21658 | sed "s/^/$as_me: WARNING: /" >&2 |
21659 | ;; |
21660 | esac |
21661 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
21662 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
21663 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
21664 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21665 | else |
21666 | eval "$as_ac_Header=\$ac_header_preproc" |
21667 | fi |
21668 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
21669 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
21670 | |
21671 | fi |
21672 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
21673 | cat >>confdefs.h <<_ACEOF |
21674 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
21675 | _ACEOF |
21676 | |
21677 | fi |
21678 | |
21679 | done |
21680 | |
21681 | |
21682 | if test "$doauthldap" = "no" |
21683 | then |
21684 | HAVE_LDAP=0 |
21685 | else |
21686 | saveLIBS="$LIBS" |
21687 | LIBS="$NETLIBS $LIBS" |
21688 | LDAPLIBS="" |
21689 | |
21690 | echo "$as_me:$LINENO: checking whether -lresolv is needed for res_query" >&5 |
21691 | echo $ECHO_N "checking whether -lresolv is needed for res_query... $ECHO_C" >&6 |
21692 | cat >conftest.$ac_ext <<_ACEOF |
21693 | /* confdefs.h. */ |
21694 | _ACEOF |
21695 | cat confdefs.h >>conftest.$ac_ext |
21696 | cat >>conftest.$ac_ext <<_ACEOF |
21697 | /* end confdefs.h. */ |
21698 | |
21699 | #include <sys/types.h> |
21700 | #if HAVE_NETINET_IN_H |
21701 | #include <netinet/in.h> |
21702 | #endif |
21703 | #include <resolv.h> |
21704 | |
21705 | void (*func)()= (void (*)())res_query; |
21706 | |
21707 | int |
21708 | main () |
21709 | { |
21710 | (*func)(); |
21711 | ; |
21712 | return 0; |
21713 | } |
21714 | _ACEOF |
21715 | rm -f conftest.$ac_objext conftest$ac_exeext |
21716 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
21717 | (eval $ac_link) 2>conftest.er1 |
21718 | ac_status=$? |
21719 | grep -v '^ *+' conftest.er1 >conftest.err |
21720 | rm -f conftest.er1 |
21721 | cat conftest.err >&5 |
21722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21723 | (exit $ac_status); } && |
21724 | { ac_try='test -z "$ac_c_werror_flag" |
21725 | || test ! -s conftest.err' |
21726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21727 | (eval $ac_try) 2>&5 |
21728 | ac_status=$? |
21729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21730 | (exit $ac_status); }; } && |
21731 | { ac_try='test -s conftest$ac_exeext' |
21732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21733 | (eval $ac_try) 2>&5 |
21734 | ac_status=$? |
21735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21736 | (exit $ac_status); }; }; then |
21737 | echo "$as_me:$LINENO: result: no" >&5 |
21738 | echo "${ECHO_T}no" >&6 |
21739 | else |
21740 | echo "$as_me: failed program was:" >&5 |
21741 | sed 's/^/| /' conftest.$ac_ext >&5 |
21742 | |
21743 | |
21744 | LIBS="-lresolv $LIBS" |
21745 | |
21746 | cat >conftest.$ac_ext <<_ACEOF |
21747 | /* confdefs.h. */ |
21748 | _ACEOF |
21749 | cat confdefs.h >>conftest.$ac_ext |
21750 | cat >>conftest.$ac_ext <<_ACEOF |
21751 | /* end confdefs.h. */ |
21752 | |
21753 | #include <sys/types.h> |
21754 | #if HAVE_NETINET_IN_H |
21755 | #include <netinet/in.h> |
21756 | #endif |
21757 | #include <resolv.h> |
21758 | |
21759 | void (*func)()= (void (*)())res_query; |
21760 | |
21761 | int |
21762 | main () |
21763 | { |
21764 | (*func)(); |
21765 | ; |
21766 | return 0; |
21767 | } |
21768 | _ACEOF |
21769 | rm -f conftest.$ac_objext conftest$ac_exeext |
21770 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
21771 | (eval $ac_link) 2>conftest.er1 |
21772 | ac_status=$? |
21773 | grep -v '^ *+' conftest.er1 >conftest.err |
21774 | rm -f conftest.er1 |
21775 | cat conftest.err >&5 |
21776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21777 | (exit $ac_status); } && |
21778 | { ac_try='test -z "$ac_c_werror_flag" |
21779 | || test ! -s conftest.err' |
21780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21781 | (eval $ac_try) 2>&5 |
21782 | ac_status=$? |
21783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21784 | (exit $ac_status); }; } && |
21785 | { ac_try='test -s conftest$ac_exeext' |
21786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21787 | (eval $ac_try) 2>&5 |
21788 | ac_status=$? |
21789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21790 | (exit $ac_status); }; }; then |
21791 | |
21792 | LDAPLIBS="-lresolv $LDAPLIBS" |
21793 | HAVE_LDAP=1 |
21794 | echo "$as_me:$LINENO: result: yes" >&5 |
21795 | echo "${ECHO_T}yes" >&6 |
21796 | |
21797 | else |
21798 | echo "$as_me: failed program was:" >&5 |
21799 | sed 's/^/| /' conftest.$ac_ext >&5 |
21800 | |
21801 | { { echo "$as_me:$LINENO: error: Cannot find function res_query" >&5 |
21802 | echo "$as_me: error: Cannot find function res_query" >&2;} |
21803 | { (exit 1); exit 1; }; } |
21804 | fi |
21805 | rm -f conftest.err conftest.$ac_objext \ |
21806 | conftest$ac_exeext conftest.$ac_ext |
21807 | |
21808 | fi |
21809 | rm -f conftest.err conftest.$ac_objext \ |
21810 | conftest$ac_exeext conftest.$ac_ext |
21811 | |
21812 | echo "$as_me:$LINENO: checking for ber_scanf in -llber" >&5 |
21813 | echo $ECHO_N "checking for ber_scanf in -llber... $ECHO_C" >&6 |
21814 | if test "${ac_cv_lib_lber_ber_scanf+set}" = set; then |
21815 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21816 | else |
21817 | ac_check_lib_save_LIBS=$LIBS |
21818 | LIBS="-llber $LIBS" |
21819 | cat >conftest.$ac_ext <<_ACEOF |
21820 | /* confdefs.h. */ |
21821 | _ACEOF |
21822 | cat confdefs.h >>conftest.$ac_ext |
21823 | cat >>conftest.$ac_ext <<_ACEOF |
21824 | /* end confdefs.h. */ |
21825 | |
21826 | /* Override any gcc2 internal prototype to avoid an error. */ |
21827 | #ifdef __cplusplus |
21828 | extern "C" |
21829 | #endif |
21830 | /* We use char because int might match the return type of a gcc2 |
21831 | builtin and then its argument prototype would still apply. */ |
21832 | char ber_scanf (); |
21833 | int |
21834 | main () |
21835 | { |
21836 | ber_scanf (); |
21837 | ; |
21838 | return 0; |
21839 | } |
21840 | _ACEOF |
21841 | rm -f conftest.$ac_objext conftest$ac_exeext |
21842 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
21843 | (eval $ac_link) 2>conftest.er1 |
21844 | ac_status=$? |
21845 | grep -v '^ *+' conftest.er1 >conftest.err |
21846 | rm -f conftest.er1 |
21847 | cat conftest.err >&5 |
21848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21849 | (exit $ac_status); } && |
21850 | { ac_try='test -z "$ac_c_werror_flag" |
21851 | || test ! -s conftest.err' |
21852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21853 | (eval $ac_try) 2>&5 |
21854 | ac_status=$? |
21855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21856 | (exit $ac_status); }; } && |
21857 | { ac_try='test -s conftest$ac_exeext' |
21858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21859 | (eval $ac_try) 2>&5 |
21860 | ac_status=$? |
21861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21862 | (exit $ac_status); }; }; then |
21863 | ac_cv_lib_lber_ber_scanf=yes |
21864 | else |
21865 | echo "$as_me: failed program was:" >&5 |
21866 | sed 's/^/| /' conftest.$ac_ext >&5 |
21867 | |
21868 | ac_cv_lib_lber_ber_scanf=no |
21869 | fi |
21870 | rm -f conftest.err conftest.$ac_objext \ |
21871 | conftest$ac_exeext conftest.$ac_ext |
21872 | LIBS=$ac_check_lib_save_LIBS |
21873 | fi |
21874 | echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_scanf" >&5 |
21875 | echo "${ECHO_T}$ac_cv_lib_lber_ber_scanf" >&6 |
21876 | if test $ac_cv_lib_lber_ber_scanf = yes; then |
21877 | LDAPLIBS="-llber $LDAPLIBS" LIBS="-llber $LIBS" |
21878 | fi |
21879 | |
21880 | echo "$as_me:$LINENO: checking for ldap_open in -lldap" >&5 |
21881 | echo $ECHO_N "checking for ldap_open in -lldap... $ECHO_C" >&6 |
21882 | if test "${ac_cv_lib_ldap_ldap_open+set}" = set; then |
21883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21884 | else |
21885 | ac_check_lib_save_LIBS=$LIBS |
21886 | LIBS="-lldap $LIBS" |
21887 | cat >conftest.$ac_ext <<_ACEOF |
21888 | /* confdefs.h. */ |
21889 | _ACEOF |
21890 | cat confdefs.h >>conftest.$ac_ext |
21891 | cat >>conftest.$ac_ext <<_ACEOF |
21892 | /* end confdefs.h. */ |
21893 | |
21894 | /* Override any gcc2 internal prototype to avoid an error. */ |
21895 | #ifdef __cplusplus |
21896 | extern "C" |
21897 | #endif |
21898 | /* We use char because int might match the return type of a gcc2 |
21899 | builtin and then its argument prototype would still apply. */ |
21900 | char ldap_open (); |
21901 | int |
21902 | main () |
21903 | { |
21904 | ldap_open (); |
21905 | ; |
21906 | return 0; |
21907 | } |
21908 | _ACEOF |
21909 | rm -f conftest.$ac_objext conftest$ac_exeext |
21910 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
21911 | (eval $ac_link) 2>conftest.er1 |
21912 | ac_status=$? |
21913 | grep -v '^ *+' conftest.er1 >conftest.err |
21914 | rm -f conftest.er1 |
21915 | cat conftest.err >&5 |
21916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21917 | (exit $ac_status); } && |
21918 | { ac_try='test -z "$ac_c_werror_flag" |
21919 | || test ! -s conftest.err' |
21920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21921 | (eval $ac_try) 2>&5 |
21922 | ac_status=$? |
21923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21924 | (exit $ac_status); }; } && |
21925 | { ac_try='test -s conftest$ac_exeext' |
21926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21927 | (eval $ac_try) 2>&5 |
21928 | ac_status=$? |
21929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21930 | (exit $ac_status); }; }; then |
21931 | ac_cv_lib_ldap_ldap_open=yes |
21932 | else |
21933 | echo "$as_me: failed program was:" >&5 |
21934 | sed 's/^/| /' conftest.$ac_ext >&5 |
21935 | |
21936 | ac_cv_lib_ldap_ldap_open=no |
21937 | fi |
21938 | rm -f conftest.err conftest.$ac_objext \ |
21939 | conftest$ac_exeext conftest.$ac_ext |
21940 | LIBS=$ac_check_lib_save_LIBS |
21941 | fi |
21942 | echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_open" >&5 |
21943 | echo "${ECHO_T}$ac_cv_lib_ldap_ldap_open" >&6 |
21944 | if test $ac_cv_lib_ldap_ldap_open = yes; then |
21945 | LDAPLIBS="-lldap $LDAPLIBS" ; LIBS="-lldap $LIBS" |
21946 | fi |
21947 | |
21948 | echo "$as_me:$LINENO: checking for ldap_search_st" >&5 |
21949 | echo $ECHO_N "checking for ldap_search_st... $ECHO_C" >&6 |
21950 | if test "${ac_cv_func_ldap_search_st+set}" = set; then |
21951 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21952 | else |
21953 | cat >conftest.$ac_ext <<_ACEOF |
21954 | /* confdefs.h. */ |
21955 | _ACEOF |
21956 | cat confdefs.h >>conftest.$ac_ext |
21957 | cat >>conftest.$ac_ext <<_ACEOF |
21958 | /* end confdefs.h. */ |
21959 | /* Define ldap_search_st to an innocuous variant, in case <limits.h> declares ldap_search_st. |
21960 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
21961 | #define ldap_search_st innocuous_ldap_search_st |
21962 | |
21963 | /* System header to define __stub macros and hopefully few prototypes, |
21964 | which can conflict with char ldap_search_st (); below. |
21965 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
21966 | <limits.h> exists even on freestanding compilers. */ |
21967 | |
21968 | #ifdef __STDC__ |
21969 | # include <limits.h> |
21970 | #else |
21971 | # include <assert.h> |
21972 | #endif |
21973 | |
21974 | #undef ldap_search_st |
21975 | |
21976 | /* Override any gcc2 internal prototype to avoid an error. */ |
21977 | #ifdef __cplusplus |
21978 | extern "C" |
21979 | { |
21980 | #endif |
21981 | /* We use char because int might match the return type of a gcc2 |
21982 | builtin and then its argument prototype would still apply. */ |
21983 | char ldap_search_st (); |
21984 | /* The GNU C library defines this for functions which it implements |
21985 | to always fail with ENOSYS. Some functions are actually named |
21986 | something starting with __ and the normal name is an alias. */ |
21987 | #if defined (__stub_ldap_search_st) || defined (__stub___ldap_search_st) |
21988 | choke me |
21989 | #else |
21990 | char (*f) () = ldap_search_st; |
21991 | #endif |
21992 | #ifdef __cplusplus |
21993 | } |
21994 | #endif |
21995 | |
21996 | int |
21997 | main () |
21998 | { |
21999 | return f != ldap_search_st; |
22000 | ; |
22001 | return 0; |
22002 | } |
22003 | _ACEOF |
22004 | rm -f conftest.$ac_objext conftest$ac_exeext |
22005 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
22006 | (eval $ac_link) 2>conftest.er1 |
22007 | ac_status=$? |
22008 | grep -v '^ *+' conftest.er1 >conftest.err |
22009 | rm -f conftest.er1 |
22010 | cat conftest.err >&5 |
22011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22012 | (exit $ac_status); } && |
22013 | { ac_try='test -z "$ac_c_werror_flag" |
22014 | || test ! -s conftest.err' |
22015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22016 | (eval $ac_try) 2>&5 |
22017 | ac_status=$? |
22018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22019 | (exit $ac_status); }; } && |
22020 | { ac_try='test -s conftest$ac_exeext' |
22021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22022 | (eval $ac_try) 2>&5 |
22023 | ac_status=$? |
22024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22025 | (exit $ac_status); }; }; then |
22026 | ac_cv_func_ldap_search_st=yes |
22027 | else |
22028 | echo "$as_me: failed program was:" >&5 |
22029 | sed 's/^/| /' conftest.$ac_ext >&5 |
22030 | |
22031 | ac_cv_func_ldap_search_st=no |
22032 | fi |
22033 | rm -f conftest.err conftest.$ac_objext \ |
22034 | conftest$ac_exeext conftest.$ac_ext |
22035 | fi |
22036 | echo "$as_me:$LINENO: result: $ac_cv_func_ldap_search_st" >&5 |
22037 | echo "${ECHO_T}$ac_cv_func_ldap_search_st" >&6 |
22038 | if test $ac_cv_func_ldap_search_st = yes; then |
22039 | HAVE_LDAP=1 |
22040 | else |
22041 | HAVE_LDAP=0 |
22042 | fi |
22043 | |
22044 | echo "$as_me:$LINENO: checking for ldap_start_tls_s" >&5 |
22045 | echo $ECHO_N "checking for ldap_start_tls_s... $ECHO_C" >&6 |
22046 | if test "${ac_cv_func_ldap_start_tls_s+set}" = set; then |
22047 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22048 | else |
22049 | cat >conftest.$ac_ext <<_ACEOF |
22050 | /* confdefs.h. */ |
22051 | _ACEOF |
22052 | cat confdefs.h >>conftest.$ac_ext |
22053 | cat >>conftest.$ac_ext <<_ACEOF |
22054 | /* end confdefs.h. */ |
22055 | /* Define ldap_start_tls_s to an innocuous variant, in case <limits.h> declares ldap_start_tls_s. |
22056 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
22057 | #define ldap_start_tls_s innocuous_ldap_start_tls_s |
22058 | |
22059 | /* System header to define __stub macros and hopefully few prototypes, |
22060 | which can conflict with char ldap_start_tls_s (); below. |
22061 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
22062 | <limits.h> exists even on freestanding compilers. */ |
22063 | |
22064 | #ifdef __STDC__ |
22065 | # include <limits.h> |
22066 | #else |
22067 | # include <assert.h> |
22068 | #endif |
22069 | |
22070 | #undef ldap_start_tls_s |
22071 | |
22072 | /* Override any gcc2 internal prototype to avoid an error. */ |
22073 | #ifdef __cplusplus |
22074 | extern "C" |
22075 | { |
22076 | #endif |
22077 | /* We use char because int might match the return type of a gcc2 |
22078 | builtin and then its argument prototype would still apply. */ |
22079 | char ldap_start_tls_s (); |
22080 | /* The GNU C library defines this for functions which it implements |
22081 | to always fail with ENOSYS. Some functions are actually named |
22082 | something starting with __ and the normal name is an alias. */ |
22083 | #if defined (__stub_ldap_start_tls_s) || defined (__stub___ldap_start_tls_s) |
22084 | choke me |
22085 | #else |
22086 | char (*f) () = ldap_start_tls_s; |
22087 | #endif |
22088 | #ifdef __cplusplus |
22089 | } |
22090 | #endif |
22091 | |
22092 | int |
22093 | main () |
22094 | { |
22095 | return f != ldap_start_tls_s; |
22096 | ; |
22097 | return 0; |
22098 | } |
22099 | _ACEOF |
22100 | rm -f conftest.$ac_objext conftest$ac_exeext |
22101 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
22102 | (eval $ac_link) 2>conftest.er1 |
22103 | ac_status=$? |
22104 | grep -v '^ *+' conftest.er1 >conftest.err |
22105 | rm -f conftest.er1 |
22106 | cat conftest.err >&5 |
22107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22108 | (exit $ac_status); } && |
22109 | { ac_try='test -z "$ac_c_werror_flag" |
22110 | || test ! -s conftest.err' |
22111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22112 | (eval $ac_try) 2>&5 |
22113 | ac_status=$? |
22114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22115 | (exit $ac_status); }; } && |
22116 | { ac_try='test -s conftest$ac_exeext' |
22117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22118 | (eval $ac_try) 2>&5 |
22119 | ac_status=$? |
22120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22121 | (exit $ac_status); }; }; then |
22122 | ac_cv_func_ldap_start_tls_s=yes |
22123 | else |
22124 | echo "$as_me: failed program was:" >&5 |
22125 | sed 's/^/| /' conftest.$ac_ext >&5 |
22126 | |
22127 | ac_cv_func_ldap_start_tls_s=no |
22128 | fi |
22129 | rm -f conftest.err conftest.$ac_objext \ |
22130 | conftest$ac_exeext conftest.$ac_ext |
22131 | fi |
22132 | echo "$as_me:$LINENO: result: $ac_cv_func_ldap_start_tls_s" >&5 |
22133 | echo "${ECHO_T}$ac_cv_func_ldap_start_tls_s" >&6 |
22134 | if test $ac_cv_func_ldap_start_tls_s = yes; then |
22135 | HAVE_LDAP_TLS=1 |
22136 | else |
22137 | HAVE_LDAP_TLS=0 |
22138 | fi |
22139 | |
22140 | echo "$as_me:$LINENO: checking for ldap_result2error" >&5 |
22141 | echo $ECHO_N "checking for ldap_result2error... $ECHO_C" >&6 |
22142 | if test "${ac_cv_func_ldap_result2error+set}" = set; then |
22143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22144 | else |
22145 | cat >conftest.$ac_ext <<_ACEOF |
22146 | /* confdefs.h. */ |
22147 | _ACEOF |
22148 | cat confdefs.h >>conftest.$ac_ext |
22149 | cat >>conftest.$ac_ext <<_ACEOF |
22150 | /* end confdefs.h. */ |
22151 | /* Define ldap_result2error to an innocuous variant, in case <limits.h> declares ldap_result2error. |
22152 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
22153 | #define ldap_result2error innocuous_ldap_result2error |
22154 | |
22155 | /* System header to define __stub macros and hopefully few prototypes, |
22156 | which can conflict with char ldap_result2error (); below. |
22157 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
22158 | <limits.h> exists even on freestanding compilers. */ |
22159 | |
22160 | #ifdef __STDC__ |
22161 | # include <limits.h> |
22162 | #else |
22163 | # include <assert.h> |
22164 | #endif |
22165 | |
22166 | #undef ldap_result2error |
22167 | |
22168 | /* Override any gcc2 internal prototype to avoid an error. */ |
22169 | #ifdef __cplusplus |
22170 | extern "C" |
22171 | { |
22172 | #endif |
22173 | /* We use char because int might match the return type of a gcc2 |
22174 | builtin and then its argument prototype would still apply. */ |
22175 | char ldap_result2error (); |
22176 | /* The GNU C library defines this for functions which it implements |
22177 | to always fail with ENOSYS. Some functions are actually named |
22178 | something starting with __ and the normal name is an alias. */ |
22179 | #if defined (__stub_ldap_result2error) || defined (__stub___ldap_result2error) |
22180 | choke me |
22181 | #else |
22182 | char (*f) () = ldap_result2error; |
22183 | #endif |
22184 | #ifdef __cplusplus |
22185 | } |
22186 | #endif |
22187 | |
22188 | int |
22189 | main () |
22190 | { |
22191 | return f != ldap_result2error; |
22192 | ; |
22193 | return 0; |
22194 | } |
22195 | _ACEOF |
22196 | rm -f conftest.$ac_objext conftest$ac_exeext |
22197 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
22198 | (eval $ac_link) 2>conftest.er1 |
22199 | ac_status=$? |
22200 | grep -v '^ *+' conftest.er1 >conftest.err |
22201 | rm -f conftest.er1 |
22202 | cat conftest.err >&5 |
22203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22204 | (exit $ac_status); } && |
22205 | { ac_try='test -z "$ac_c_werror_flag" |
22206 | || test ! -s conftest.err' |
22207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22208 | (eval $ac_try) 2>&5 |
22209 | ac_status=$? |
22210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22211 | (exit $ac_status); }; } && |
22212 | { ac_try='test -s conftest$ac_exeext' |
22213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22214 | (eval $ac_try) 2>&5 |
22215 | ac_status=$? |
22216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22217 | (exit $ac_status); }; }; then |
22218 | ac_cv_func_ldap_result2error=yes |
22219 | else |
22220 | echo "$as_me: failed program was:" >&5 |
22221 | sed 's/^/| /' conftest.$ac_ext >&5 |
22222 | |
22223 | ac_cv_func_ldap_result2error=no |
22224 | fi |
22225 | rm -f conftest.err conftest.$ac_objext \ |
22226 | conftest$ac_exeext conftest.$ac_ext |
22227 | fi |
22228 | echo "$as_me:$LINENO: result: $ac_cv_func_ldap_result2error" >&5 |
22229 | echo "${ECHO_T}$ac_cv_func_ldap_result2error" >&6 |
22230 | if test $ac_cv_func_ldap_result2error = yes; then |
22231 | HAVE_LDAP_RESULT2ERROR=1 |
22232 | else |
22233 | HAVE_LDAP_RESULT2ERROR=0 |
22234 | fi |
22235 | |
22236 | echo "$as_me:$LINENO: checking for ldap_parse_result" >&5 |
22237 | echo $ECHO_N "checking for ldap_parse_result... $ECHO_C" >&6 |
22238 | if test "${ac_cv_func_ldap_parse_result+set}" = set; then |
22239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22240 | else |
22241 | cat >conftest.$ac_ext <<_ACEOF |
22242 | /* confdefs.h. */ |
22243 | _ACEOF |
22244 | cat confdefs.h >>conftest.$ac_ext |
22245 | cat >>conftest.$ac_ext <<_ACEOF |
22246 | /* end confdefs.h. */ |
22247 | /* Define ldap_parse_result to an innocuous variant, in case <limits.h> declares ldap_parse_result. |
22248 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
22249 | #define ldap_parse_result innocuous_ldap_parse_result |
22250 | |
22251 | /* System header to define __stub macros and hopefully few prototypes, |
22252 | which can conflict with char ldap_parse_result (); below. |
22253 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
22254 | <limits.h> exists even on freestanding compilers. */ |
22255 | |
22256 | #ifdef __STDC__ |
22257 | # include <limits.h> |
22258 | #else |
22259 | # include <assert.h> |
22260 | #endif |
22261 | |
22262 | #undef ldap_parse_result |
22263 | |
22264 | /* Override any gcc2 internal prototype to avoid an error. */ |
22265 | #ifdef __cplusplus |
22266 | extern "C" |
22267 | { |
22268 | #endif |
22269 | /* We use char because int might match the return type of a gcc2 |
22270 | builtin and then its argument prototype would still apply. */ |
22271 | char ldap_parse_result (); |
22272 | /* The GNU C library defines this for functions which it implements |
22273 | to always fail with ENOSYS. Some functions are actually named |
22274 | something starting with __ and the normal name is an alias. */ |
22275 | #if defined (__stub_ldap_parse_result) || defined (__stub___ldap_parse_result) |
22276 | choke me |
22277 | #else |
22278 | char (*f) () = ldap_parse_result; |
22279 | #endif |
22280 | #ifdef __cplusplus |
22281 | } |
22282 | #endif |
22283 | |
22284 | int |
22285 | main () |
22286 | { |
22287 | return f != ldap_parse_result; |
22288 | ; |
22289 | return 0; |
22290 | } |
22291 | _ACEOF |
22292 | rm -f conftest.$ac_objext conftest$ac_exeext |
22293 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
22294 | (eval $ac_link) 2>conftest.er1 |
22295 | ac_status=$? |
22296 | grep -v '^ *+' conftest.er1 >conftest.err |
22297 | rm -f conftest.er1 |
22298 | cat conftest.err >&5 |
22299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22300 | (exit $ac_status); } && |
22301 | { ac_try='test -z "$ac_c_werror_flag" |
22302 | || test ! -s conftest.err' |
22303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22304 | (eval $ac_try) 2>&5 |
22305 | ac_status=$? |
22306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22307 | (exit $ac_status); }; } && |
22308 | { ac_try='test -s conftest$ac_exeext' |
22309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22310 | (eval $ac_try) 2>&5 |
22311 | ac_status=$? |
22312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22313 | (exit $ac_status); }; }; then |
22314 | ac_cv_func_ldap_parse_result=yes |
22315 | else |
22316 | echo "$as_me: failed program was:" >&5 |
22317 | sed 's/^/| /' conftest.$ac_ext >&5 |
22318 | |
22319 | ac_cv_func_ldap_parse_result=no |
22320 | fi |
22321 | rm -f conftest.err conftest.$ac_objext \ |
22322 | conftest$ac_exeext conftest.$ac_ext |
22323 | fi |
22324 | echo "$as_me:$LINENO: result: $ac_cv_func_ldap_parse_result" >&5 |
22325 | echo "${ECHO_T}$ac_cv_func_ldap_parse_result" >&6 |
22326 | if test $ac_cv_func_ldap_parse_result = yes; then |
22327 | HAVE_LDAP_PARSE_RESULT=1 |
22328 | else |
22329 | HAVE_LDAP_PARSE_RESULT=0 |
22330 | fi |
22331 | |
22332 | LIBS="$saveLIBS" |
22333 | fi |
22334 | |
22335 | |
22336 | # Check whether --with-authldaprc or --without-authldaprc was given. |
22337 | if test "${with_authldaprc+set}" = set; then |
22338 | withval="$with_authldaprc" |
22339 | authldaprc="$withval" |
22340 | else |
22341 | authldaprc="$pkgconfdir/authldaprc" |
22342 | fi; |
22343 | |
22344 | |
22345 | LIBAUTHLDAP="" |
22346 | if test "$HAVE_LDAP" = 1 |
22347 | then |
22348 | LIBAUTHLDAP="libauthldap.la" |
22349 | else |
22350 | authldaprc="" |
22351 | fi |
22352 | |
22353 | |
22354 | |
22355 | |
22356 | |
22357 | if test "$HAVE_LDAP" = 1; then |
22358 | HAVE_LDAP_TRUE= |
22359 | HAVE_LDAP_FALSE='#' |
22360 | else |
22361 | HAVE_LDAP_TRUE='#' |
22362 | HAVE_LDAP_FALSE= |
22363 | fi |
22364 | |
22365 | |
22366 | cat >>confdefs.h <<_ACEOF |
22367 | #define HAVE_LDAP_TLS $HAVE_LDAP_TLS |
22368 | _ACEOF |
22369 | |
22370 | |
22371 | cat >>confdefs.h <<_ACEOF |
22372 | #define HAVE_LDAP_RESULT2ERROR $HAVE_LDAP_RESULT2ERROR |
22373 | _ACEOF |
22374 | |
22375 | |
22376 | cat >>confdefs.h <<_ACEOF |
22377 | #define HAVE_LDAP_PARSE_RESULT $HAVE_LDAP_PARSE_RESULT |
22378 | _ACEOF |
22379 | |
22380 | |
22381 | |
22382 | |
22383 | |
22384 | # Check whether --with-authpwd or --without-authpwd was given. |
22385 | if test "${with_authpwd+set}" = set; then |
22386 | withval="$with_authpwd" |
22387 | doauthpwd="$withval" |
22388 | else |
22389 | doauthpwd="yes" |
22390 | test "$HAVE_PAM" = 1 && doauthpwd="no" |
22391 | test "$HAVE_LDAP" = 1 && doauthpwd="no" |
22392 | |
22393 | fi; |
22394 | |
22395 | HAVE_PWD=1 |
22396 | if test "$doauthpwd" = "no" |
22397 | then |
22398 | HAVE_PWD=0 |
22399 | fi |
22400 | |
22401 | for ac_func in endpwent |
22402 | do |
22403 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
22404 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
22405 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
22406 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
22407 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22408 | else |
22409 | cat >conftest.$ac_ext <<_ACEOF |
22410 | /* confdefs.h. */ |
22411 | _ACEOF |
22412 | cat confdefs.h >>conftest.$ac_ext |
22413 | cat >>conftest.$ac_ext <<_ACEOF |
22414 | /* end confdefs.h. */ |
22415 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
22416 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
22417 | #define $ac_func innocuous_$ac_func |
22418 | |
22419 | /* System header to define __stub macros and hopefully few prototypes, |
22420 | which can conflict with char $ac_func (); below. |
22421 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
22422 | <limits.h> exists even on freestanding compilers. */ |
22423 | |
22424 | #ifdef __STDC__ |
22425 | # include <limits.h> |
22426 | #else |
22427 | # include <assert.h> |
22428 | #endif |
22429 | |
22430 | #undef $ac_func |
22431 | |
22432 | /* Override any gcc2 internal prototype to avoid an error. */ |
22433 | #ifdef __cplusplus |
22434 | extern "C" |
22435 | { |
22436 | #endif |
22437 | /* We use char because int might match the return type of a gcc2 |
22438 | builtin and then its argument prototype would still apply. */ |
22439 | char $ac_func (); |
22440 | /* The GNU C library defines this for functions which it implements |
22441 | to always fail with ENOSYS. Some functions are actually named |
22442 | something starting with __ and the normal name is an alias. */ |
22443 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
22444 | choke me |
22445 | #else |
22446 | char (*f) () = $ac_func; |
22447 | #endif |
22448 | #ifdef __cplusplus |
22449 | } |
22450 | #endif |
22451 | |
22452 | int |
22453 | main () |
22454 | { |
22455 | return f != $ac_func; |
22456 | ; |
22457 | return 0; |
22458 | } |
22459 | _ACEOF |
22460 | rm -f conftest.$ac_objext conftest$ac_exeext |
22461 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
22462 | (eval $ac_link) 2>conftest.er1 |
22463 | ac_status=$? |
22464 | grep -v '^ *+' conftest.er1 >conftest.err |
22465 | rm -f conftest.er1 |
22466 | cat conftest.err >&5 |
22467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22468 | (exit $ac_status); } && |
22469 | { ac_try='test -z "$ac_c_werror_flag" |
22470 | || test ! -s conftest.err' |
22471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22472 | (eval $ac_try) 2>&5 |
22473 | ac_status=$? |
22474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22475 | (exit $ac_status); }; } && |
22476 | { ac_try='test -s conftest$ac_exeext' |
22477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22478 | (eval $ac_try) 2>&5 |
22479 | ac_status=$? |
22480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22481 | (exit $ac_status); }; }; then |
22482 | eval "$as_ac_var=yes" |
22483 | else |
22484 | echo "$as_me: failed program was:" >&5 |
22485 | sed 's/^/| /' conftest.$ac_ext >&5 |
22486 | |
22487 | eval "$as_ac_var=no" |
22488 | fi |
22489 | rm -f conftest.err conftest.$ac_objext \ |
22490 | conftest$ac_exeext conftest.$ac_ext |
22491 | fi |
22492 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
22493 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
22494 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
22495 | cat >>confdefs.h <<_ACEOF |
22496 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
22497 | _ACEOF |
22498 | |
22499 | fi |
22500 | done |
22501 | |
22502 | |
22503 | |
22504 | |
22505 | |
22506 | |
22507 | # Check whether --with-authshadow or --without-authshadow was given. |
22508 | if test "${with_authshadow+set}" = set; then |
22509 | withval="$with_authshadow" |
22510 | doauthshadow="$withval" |
22511 | else |
22512 | doauthshadow="yes" |
22513 | test "$HAVE_PAM" = 1 && doauthshadow="no" |
22514 | test "$HAVE_LDAP" = 1 && doauthshadow="no" |
22515 | fi; |
22516 | |
22517 | |
22518 | for ac_header in shadow.h |
22519 | do |
22520 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
22521 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
22522 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
22523 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
22524 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
22525 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22526 | fi |
22527 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
22528 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
22529 | else |
22530 | # Is the header compilable? |
22531 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
22532 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
22533 | cat >conftest.$ac_ext <<_ACEOF |
22534 | /* confdefs.h. */ |
22535 | _ACEOF |
22536 | cat confdefs.h >>conftest.$ac_ext |
22537 | cat >>conftest.$ac_ext <<_ACEOF |
22538 | /* end confdefs.h. */ |
22539 | $ac_includes_default |
22540 | #include <$ac_header> |
22541 | _ACEOF |
22542 | rm -f conftest.$ac_objext |
22543 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
22544 | (eval $ac_compile) 2>conftest.er1 |
22545 | ac_status=$? |
22546 | grep -v '^ *+' conftest.er1 >conftest.err |
22547 | rm -f conftest.er1 |
22548 | cat conftest.err >&5 |
22549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22550 | (exit $ac_status); } && |
22551 | { ac_try='test -z "$ac_c_werror_flag" |
22552 | || test ! -s conftest.err' |
22553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22554 | (eval $ac_try) 2>&5 |
22555 | ac_status=$? |
22556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22557 | (exit $ac_status); }; } && |
22558 | { ac_try='test -s conftest.$ac_objext' |
22559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22560 | (eval $ac_try) 2>&5 |
22561 | ac_status=$? |
22562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22563 | (exit $ac_status); }; }; then |
22564 | ac_header_compiler=yes |
22565 | else |
22566 | echo "$as_me: failed program was:" >&5 |
22567 | sed 's/^/| /' conftest.$ac_ext >&5 |
22568 | |
22569 | ac_header_compiler=no |
22570 | fi |
22571 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
22572 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22573 | echo "${ECHO_T}$ac_header_compiler" >&6 |
22574 | |
22575 | # Is the header present? |
22576 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
22577 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
22578 | cat >conftest.$ac_ext <<_ACEOF |
22579 | /* confdefs.h. */ |
22580 | _ACEOF |
22581 | cat confdefs.h >>conftest.$ac_ext |
22582 | cat >>conftest.$ac_ext <<_ACEOF |
22583 | /* end confdefs.h. */ |
22584 | #include <$ac_header> |
22585 | _ACEOF |
22586 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
22587 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
22588 | ac_status=$? |
22589 | grep -v '^ *+' conftest.er1 >conftest.err |
22590 | rm -f conftest.er1 |
22591 | cat conftest.err >&5 |
22592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22593 | (exit $ac_status); } >/dev/null; then |
22594 | if test -s conftest.err; then |
22595 | ac_cpp_err=$ac_c_preproc_warn_flag |
22596 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
22597 | else |
22598 | ac_cpp_err= |
22599 | fi |
22600 | else |
22601 | ac_cpp_err=yes |
22602 | fi |
22603 | if test -z "$ac_cpp_err"; then |
22604 | ac_header_preproc=yes |
22605 | else |
22606 | echo "$as_me: failed program was:" >&5 |
22607 | sed 's/^/| /' conftest.$ac_ext >&5 |
22608 | |
22609 | ac_header_preproc=no |
22610 | fi |
22611 | rm -f conftest.err conftest.$ac_ext |
22612 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
22613 | echo "${ECHO_T}$ac_header_preproc" >&6 |
22614 | |
22615 | # So? What about this header? |
22616 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22617 | yes:no: ) |
22618 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
22619 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
22620 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
22621 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
22622 | ac_header_preproc=yes |
22623 | ;; |
22624 | no:yes:* ) |
22625 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
22626 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
22627 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
22628 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
22629 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
22630 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
22631 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
22632 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
22633 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
22634 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
22635 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
22636 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
22637 | ( |
22638 | cat <<\_ASBOX |
22639 | ## -------------------------------------------------- ## |
22640 | ## Report this to courier-users@lists.sourceforge.net ## |
22641 | ## -------------------------------------------------- ## |
22642 | _ASBOX |
22643 | ) | |
22644 | sed "s/^/$as_me: WARNING: /" >&2 |
22645 | ;; |
22646 | esac |
22647 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
22648 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
22649 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
22650 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22651 | else |
22652 | eval "$as_ac_Header=\$ac_header_preproc" |
22653 | fi |
22654 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
22655 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
22656 | |
22657 | fi |
22658 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
22659 | cat >>confdefs.h <<_ACEOF |
22660 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
22661 | _ACEOF |
22662 | |
22663 | fi |
22664 | |
22665 | done |
22666 | |
22667 | saveLIBS="$LIBS" |
22668 | SHADOWLIBS="" |
22669 | echo "$as_me:$LINENO: checking for getspent in -lshadow" >&5 |
22670 | echo $ECHO_N "checking for getspent in -lshadow... $ECHO_C" >&6 |
22671 | if test "${ac_cv_lib_shadow_getspent+set}" = set; then |
22672 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22673 | else |
22674 | ac_check_lib_save_LIBS=$LIBS |
22675 | LIBS="-lshadow $LIBS" |
22676 | cat >conftest.$ac_ext <<_ACEOF |
22677 | /* confdefs.h. */ |
22678 | _ACEOF |
22679 | cat confdefs.h >>conftest.$ac_ext |
22680 | cat >>conftest.$ac_ext <<_ACEOF |
22681 | /* end confdefs.h. */ |
22682 | |
22683 | /* Override any gcc2 internal prototype to avoid an error. */ |
22684 | #ifdef __cplusplus |
22685 | extern "C" |
22686 | #endif |
22687 | /* We use char because int might match the return type of a gcc2 |
22688 | builtin and then its argument prototype would still apply. */ |
22689 | char getspent (); |
22690 | int |
22691 | main () |
22692 | { |
22693 | getspent (); |
22694 | ; |
22695 | return 0; |
22696 | } |
22697 | _ACEOF |
22698 | rm -f conftest.$ac_objext conftest$ac_exeext |
22699 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
22700 | (eval $ac_link) 2>conftest.er1 |
22701 | ac_status=$? |
22702 | grep -v '^ *+' conftest.er1 >conftest.err |
22703 | rm -f conftest.er1 |
22704 | cat conftest.err >&5 |
22705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22706 | (exit $ac_status); } && |
22707 | { ac_try='test -z "$ac_c_werror_flag" |
22708 | || test ! -s conftest.err' |
22709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22710 | (eval $ac_try) 2>&5 |
22711 | ac_status=$? |
22712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22713 | (exit $ac_status); }; } && |
22714 | { ac_try='test -s conftest$ac_exeext' |
22715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22716 | (eval $ac_try) 2>&5 |
22717 | ac_status=$? |
22718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22719 | (exit $ac_status); }; }; then |
22720 | ac_cv_lib_shadow_getspent=yes |
22721 | else |
22722 | echo "$as_me: failed program was:" >&5 |
22723 | sed 's/^/| /' conftest.$ac_ext >&5 |
22724 | |
22725 | ac_cv_lib_shadow_getspent=no |
22726 | fi |
22727 | rm -f conftest.err conftest.$ac_objext \ |
22728 | conftest$ac_exeext conftest.$ac_ext |
22729 | LIBS=$ac_check_lib_save_LIBS |
22730 | fi |
22731 | echo "$as_me:$LINENO: result: $ac_cv_lib_shadow_getspent" >&5 |
22732 | echo "${ECHO_T}$ac_cv_lib_shadow_getspent" >&6 |
22733 | if test $ac_cv_lib_shadow_getspent = yes; then |
22734 | SHADOWLIBS="-lshadow" ; LIBS="-lshadow $LIBS" |
22735 | fi |
22736 | |
22737 | |
22738 | |
22739 | for ac_func in endspent getspent |
22740 | do |
22741 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
22742 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
22743 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
22744 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
22745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22746 | else |
22747 | cat >conftest.$ac_ext <<_ACEOF |
22748 | /* confdefs.h. */ |
22749 | _ACEOF |
22750 | cat confdefs.h >>conftest.$ac_ext |
22751 | cat >>conftest.$ac_ext <<_ACEOF |
22752 | /* end confdefs.h. */ |
22753 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
22754 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
22755 | #define $ac_func innocuous_$ac_func |
22756 | |
22757 | /* System header to define __stub macros and hopefully few prototypes, |
22758 | which can conflict with char $ac_func (); below. |
22759 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
22760 | <limits.h> exists even on freestanding compilers. */ |
22761 | |
22762 | #ifdef __STDC__ |
22763 | # include <limits.h> |
22764 | #else |
22765 | # include <assert.h> |
22766 | #endif |
22767 | |
22768 | #undef $ac_func |
22769 | |
22770 | /* Override any gcc2 internal prototype to avoid an error. */ |
22771 | #ifdef __cplusplus |
22772 | extern "C" |
22773 | { |
22774 | #endif |
22775 | /* We use char because int might match the return type of a gcc2 |
22776 | builtin and then its argument prototype would still apply. */ |
22777 | char $ac_func (); |
22778 | /* The GNU C library defines this for functions which it implements |
22779 | to always fail with ENOSYS. Some functions are actually named |
22780 | something starting with __ and the normal name is an alias. */ |
22781 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
22782 | choke me |
22783 | #else |
22784 | char (*f) () = $ac_func; |
22785 | #endif |
22786 | #ifdef __cplusplus |
22787 | } |
22788 | #endif |
22789 | |
22790 | int |
22791 | main () |
22792 | { |
22793 | return f != $ac_func; |
22794 | ; |
22795 | return 0; |
22796 | } |
22797 | _ACEOF |
22798 | rm -f conftest.$ac_objext conftest$ac_exeext |
22799 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
22800 | (eval $ac_link) 2>conftest.er1 |
22801 | ac_status=$? |
22802 | grep -v '^ *+' conftest.er1 >conftest.err |
22803 | rm -f conftest.er1 |
22804 | cat conftest.err >&5 |
22805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22806 | (exit $ac_status); } && |
22807 | { ac_try='test -z "$ac_c_werror_flag" |
22808 | || test ! -s conftest.err' |
22809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22810 | (eval $ac_try) 2>&5 |
22811 | ac_status=$? |
22812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22813 | (exit $ac_status); }; } && |
22814 | { ac_try='test -s conftest$ac_exeext' |
22815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22816 | (eval $ac_try) 2>&5 |
22817 | ac_status=$? |
22818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22819 | (exit $ac_status); }; }; then |
22820 | eval "$as_ac_var=yes" |
22821 | else |
22822 | echo "$as_me: failed program was:" >&5 |
22823 | sed 's/^/| /' conftest.$ac_ext >&5 |
22824 | |
22825 | eval "$as_ac_var=no" |
22826 | fi |
22827 | rm -f conftest.err conftest.$ac_objext \ |
22828 | conftest$ac_exeext conftest.$ac_ext |
22829 | fi |
22830 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
22831 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
22832 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
22833 | cat >>confdefs.h <<_ACEOF |
22834 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
22835 | _ACEOF |
22836 | |
22837 | fi |
22838 | done |
22839 | |
22840 | LIBS="$saveLIBS" |
22841 | |
22842 | if test "$doauthshadow" = "no" |
22843 | then |
22844 | HAVE_SHADOW=0 |
22845 | else |
22846 | |
22847 | saveLIBS="$LIBS" |
22848 | |
22849 | echo "$as_me:$LINENO: checking for getspent in -lshadow" >&5 |
22850 | echo $ECHO_N "checking for getspent in -lshadow... $ECHO_C" >&6 |
22851 | if test "${ac_cv_lib_shadow_getspent+set}" = set; then |
22852 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22853 | else |
22854 | ac_check_lib_save_LIBS=$LIBS |
22855 | LIBS="-lshadow $LIBS" |
22856 | cat >conftest.$ac_ext <<_ACEOF |
22857 | /* confdefs.h. */ |
22858 | _ACEOF |
22859 | cat confdefs.h >>conftest.$ac_ext |
22860 | cat >>conftest.$ac_ext <<_ACEOF |
22861 | /* end confdefs.h. */ |
22862 | |
22863 | /* Override any gcc2 internal prototype to avoid an error. */ |
22864 | #ifdef __cplusplus |
22865 | extern "C" |
22866 | #endif |
22867 | /* We use char because int might match the return type of a gcc2 |
22868 | builtin and then its argument prototype would still apply. */ |
22869 | char getspent (); |
22870 | int |
22871 | main () |
22872 | { |
22873 | getspent (); |
22874 | ; |
22875 | return 0; |
22876 | } |
22877 | _ACEOF |
22878 | rm -f conftest.$ac_objext conftest$ac_exeext |
22879 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
22880 | (eval $ac_link) 2>conftest.er1 |
22881 | ac_status=$? |
22882 | grep -v '^ *+' conftest.er1 >conftest.err |
22883 | rm -f conftest.er1 |
22884 | cat conftest.err >&5 |
22885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22886 | (exit $ac_status); } && |
22887 | { ac_try='test -z "$ac_c_werror_flag" |
22888 | || test ! -s conftest.err' |
22889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22890 | (eval $ac_try) 2>&5 |
22891 | ac_status=$? |
22892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22893 | (exit $ac_status); }; } && |
22894 | { ac_try='test -s conftest$ac_exeext' |
22895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22896 | (eval $ac_try) 2>&5 |
22897 | ac_status=$? |
22898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22899 | (exit $ac_status); }; }; then |
22900 | ac_cv_lib_shadow_getspent=yes |
22901 | else |
22902 | echo "$as_me: failed program was:" >&5 |
22903 | sed 's/^/| /' conftest.$ac_ext >&5 |
22904 | |
22905 | ac_cv_lib_shadow_getspent=no |
22906 | fi |
22907 | rm -f conftest.err conftest.$ac_objext \ |
22908 | conftest$ac_exeext conftest.$ac_ext |
22909 | LIBS=$ac_check_lib_save_LIBS |
22910 | fi |
22911 | echo "$as_me:$LINENO: result: $ac_cv_lib_shadow_getspent" >&5 |
22912 | echo "${ECHO_T}$ac_cv_lib_shadow_getspent" >&6 |
22913 | if test $ac_cv_lib_shadow_getspent = yes; then |
22914 | cat >>confdefs.h <<_ACEOF |
22915 | #define HAVE_LIBSHADOW 1 |
22916 | _ACEOF |
22917 | |
22918 | LIBS="-lshadow $LIBS" |
22919 | |
22920 | fi |
22921 | |
22922 | echo "$as_me:$LINENO: checking for getspent" >&5 |
22923 | echo $ECHO_N "checking for getspent... $ECHO_C" >&6 |
22924 | if test "${ac_cv_func_getspent+set}" = set; then |
22925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22926 | else |
22927 | cat >conftest.$ac_ext <<_ACEOF |
22928 | /* confdefs.h. */ |
22929 | _ACEOF |
22930 | cat confdefs.h >>conftest.$ac_ext |
22931 | cat >>conftest.$ac_ext <<_ACEOF |
22932 | /* end confdefs.h. */ |
22933 | /* Define getspent to an innocuous variant, in case <limits.h> declares getspent. |
22934 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
22935 | #define getspent innocuous_getspent |
22936 | |
22937 | /* System header to define __stub macros and hopefully few prototypes, |
22938 | which can conflict with char getspent (); below. |
22939 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
22940 | <limits.h> exists even on freestanding compilers. */ |
22941 | |
22942 | #ifdef __STDC__ |
22943 | # include <limits.h> |
22944 | #else |
22945 | # include <assert.h> |
22946 | #endif |
22947 | |
22948 | #undef getspent |
22949 | |
22950 | /* Override any gcc2 internal prototype to avoid an error. */ |
22951 | #ifdef __cplusplus |
22952 | extern "C" |
22953 | { |
22954 | #endif |
22955 | /* We use char because int might match the return type of a gcc2 |
22956 | builtin and then its argument prototype would still apply. */ |
22957 | char getspent (); |
22958 | /* The GNU C library defines this for functions which it implements |
22959 | to always fail with ENOSYS. Some functions are actually named |
22960 | something starting with __ and the normal name is an alias. */ |
22961 | #if defined (__stub_getspent) || defined (__stub___getspent) |
22962 | choke me |
22963 | #else |
22964 | char (*f) () = getspent; |
22965 | #endif |
22966 | #ifdef __cplusplus |
22967 | } |
22968 | #endif |
22969 | |
22970 | int |
22971 | main () |
22972 | { |
22973 | return f != getspent; |
22974 | ; |
22975 | return 0; |
22976 | } |
22977 | _ACEOF |
22978 | rm -f conftest.$ac_objext conftest$ac_exeext |
22979 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
22980 | (eval $ac_link) 2>conftest.er1 |
22981 | ac_status=$? |
22982 | grep -v '^ *+' conftest.er1 >conftest.err |
22983 | rm -f conftest.er1 |
22984 | cat conftest.err >&5 |
22985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22986 | (exit $ac_status); } && |
22987 | { ac_try='test -z "$ac_c_werror_flag" |
22988 | || test ! -s conftest.err' |
22989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22990 | (eval $ac_try) 2>&5 |
22991 | ac_status=$? |
22992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22993 | (exit $ac_status); }; } && |
22994 | { ac_try='test -s conftest$ac_exeext' |
22995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22996 | (eval $ac_try) 2>&5 |
22997 | ac_status=$? |
22998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22999 | (exit $ac_status); }; }; then |
23000 | ac_cv_func_getspent=yes |
23001 | else |
23002 | echo "$as_me: failed program was:" >&5 |
23003 | sed 's/^/| /' conftest.$ac_ext >&5 |
23004 | |
23005 | ac_cv_func_getspent=no |
23006 | fi |
23007 | rm -f conftest.err conftest.$ac_objext \ |
23008 | conftest$ac_exeext conftest.$ac_ext |
23009 | fi |
23010 | echo "$as_me:$LINENO: result: $ac_cv_func_getspent" >&5 |
23011 | echo "${ECHO_T}$ac_cv_func_getspent" >&6 |
23012 | if test $ac_cv_func_getspent = yes; then |
23013 | HAVE_SHADOW=1 |
23014 | else |
23015 | HAVE_SHADOW=0 |
23016 | fi |
23017 | |
23018 | LIBS="$saveLIBS" |
23019 | fi |
23020 | |
23021 | LIBAUTHSHADOW="" |
23022 | if test "$HAVE_SHADOW" = 1 |
23023 | then |
23024 | LIBAUTHSHADOW="libauthshadow.la" |
23025 | fi |
23026 | |
23027 | |
23028 | |
23029 | LIBAUTHPWD="" |
23030 | if test "$HAVE_PWD" = 1 |
23031 | then |
23032 | LIBAUTHPWD="libauthpwd.la" |
23033 | fi |
23034 | |
23035 | |
23036 | |
23037 | |
23038 | |
23039 | |
23040 | |
23041 | vpopmail_home=`$PERL -e '@a=getpwnam("vpopmail"); print "$a[7]";'` |
23042 | |
23043 | |
23044 | |
23045 | |
23046 | # Check whether --with-authvchkpw or --without-authvchkpw was given. |
23047 | if test "${with_authvchkpw+set}" = set; then |
23048 | withval="$with_authvchkpw" |
23049 | doauthvchkpw="$withval" |
23050 | else |
23051 | doauthvchkpw=no |
23052 | if test "$vpopmail_home" != "" |
23053 | then |
23054 | doauthvchkpw=yes |
23055 | fi |
23056 | fi; |
23057 | |
23058 | if test "$doauthvchkpw" = "no" |
23059 | then |
23060 | HAVE_VCHKPW=0 |
23061 | vpopmail_home=. |
23062 | else |
23063 | HAVE_VCHKPW=1 |
23064 | |
23065 | |
23066 | cat <<EOF |
23067 | ---------------------------------------------------- |
23068 | NOTE |
23069 | |
23070 | |
23071 | All questions regarding ANY vpopmail-related problems, |
23072 | such as compiling/building failures, or login errors |
23073 | should be referred to the vpopmail mailing list. |
23074 | Vpopmail questions sent to the Courier mailing lists |
23075 | will be IGNORED. |
23076 | ---------------------------------------------------- |
23077 | \a |
23078 | EOF |
23079 | sleep 5 |
23080 | |
23081 | if test -f ${vpopmail_home}/etc/lib_deps |
23082 | then |
23083 | CFLAGS="`cat ${vpopmail_home}/etc/inc_deps` $CFLAGS" |
23084 | VPOPMAILLIBS="`cat ${vpopmail_home}/etc/lib_deps`" |
23085 | else |
23086 | { { echo "$as_me:$LINENO: error: ${vpopmail_home}/etc/lib_deps does not exist - upgrade vpopmail to the current version or fix the permissions on this file" >&5 |
23087 | echo "$as_me: error: ${vpopmail_home}/etc/lib_deps does not exist - upgrade vpopmail to the current version or fix the permissions on this file" >&2;} |
23088 | { (exit 1); exit 1; }; } |
23089 | fi |
23090 | fi |
23091 | |
23092 | |
23093 | |
23094 | LIBAUTHVCHKPW="" |
23095 | if test "$HAVE_VCHKPW" = 1 |
23096 | then |
23097 | LIBAUTHVCHKPW="libauthvchkpw.la" |
23098 | HAVE_VCHKPW="1" |
23099 | |
23100 | |
23101 | _SAVE_LIBS=$LIBS |
23102 | LIBS="$VPOPMAILLIBS $CRYPTLIBS $LIBS" |
23103 | echo "$as_me:$LINENO: checking for open_smtp_relay" >&5 |
23104 | echo $ECHO_N "checking for open_smtp_relay... $ECHO_C" >&6 |
23105 | if test "${ac_cv_func_open_smtp_relay+set}" = set; then |
23106 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23107 | else |
23108 | cat >conftest.$ac_ext <<_ACEOF |
23109 | /* confdefs.h. */ |
23110 | _ACEOF |
23111 | cat confdefs.h >>conftest.$ac_ext |
23112 | cat >>conftest.$ac_ext <<_ACEOF |
23113 | /* end confdefs.h. */ |
23114 | /* Define open_smtp_relay to an innocuous variant, in case <limits.h> declares open_smtp_relay. |
23115 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
23116 | #define open_smtp_relay innocuous_open_smtp_relay |
23117 | |
23118 | /* System header to define __stub macros and hopefully few prototypes, |
23119 | which can conflict with char open_smtp_relay (); below. |
23120 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
23121 | <limits.h> exists even on freestanding compilers. */ |
23122 | |
23123 | #ifdef __STDC__ |
23124 | # include <limits.h> |
23125 | #else |
23126 | # include <assert.h> |
23127 | #endif |
23128 | |
23129 | #undef open_smtp_relay |
23130 | |
23131 | /* Override any gcc2 internal prototype to avoid an error. */ |
23132 | #ifdef __cplusplus |
23133 | extern "C" |
23134 | { |
23135 | #endif |
23136 | /* We use char because int might match the return type of a gcc2 |
23137 | builtin and then its argument prototype would still apply. */ |
23138 | char open_smtp_relay (); |
23139 | /* The GNU C library defines this for functions which it implements |
23140 | to always fail with ENOSYS. Some functions are actually named |
23141 | something starting with __ and the normal name is an alias. */ |
23142 | #if defined (__stub_open_smtp_relay) || defined (__stub___open_smtp_relay) |
23143 | choke me |
23144 | #else |
23145 | char (*f) () = open_smtp_relay; |
23146 | #endif |
23147 | #ifdef __cplusplus |
23148 | } |
23149 | #endif |
23150 | |
23151 | int |
23152 | main () |
23153 | { |
23154 | return f != open_smtp_relay; |
23155 | ; |
23156 | return 0; |
23157 | } |
23158 | _ACEOF |
23159 | rm -f conftest.$ac_objext conftest$ac_exeext |
23160 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
23161 | (eval $ac_link) 2>conftest.er1 |
23162 | ac_status=$? |
23163 | grep -v '^ *+' conftest.er1 >conftest.err |
23164 | rm -f conftest.er1 |
23165 | cat conftest.err >&5 |
23166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23167 | (exit $ac_status); } && |
23168 | { ac_try='test -z "$ac_c_werror_flag" |
23169 | || test ! -s conftest.err' |
23170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23171 | (eval $ac_try) 2>&5 |
23172 | ac_status=$? |
23173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23174 | (exit $ac_status); }; } && |
23175 | { ac_try='test -s conftest$ac_exeext' |
23176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23177 | (eval $ac_try) 2>&5 |
23178 | ac_status=$? |
23179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23180 | (exit $ac_status); }; }; then |
23181 | ac_cv_func_open_smtp_relay=yes |
23182 | else |
23183 | echo "$as_me: failed program was:" >&5 |
23184 | sed 's/^/| /' conftest.$ac_ext >&5 |
23185 | |
23186 | ac_cv_func_open_smtp_relay=no |
23187 | fi |
23188 | rm -f conftest.err conftest.$ac_objext \ |
23189 | conftest$ac_exeext conftest.$ac_ext |
23190 | fi |
23191 | echo "$as_me:$LINENO: result: $ac_cv_func_open_smtp_relay" >&5 |
23192 | echo "${ECHO_T}$ac_cv_func_open_smtp_relay" >&6 |
23193 | if test $ac_cv_func_open_smtp_relay = yes; then |
23194 | |
23195 | cat >>confdefs.h <<\_ACEOF |
23196 | #define HAVE_OPEN_SMTP_RELAY 1 |
23197 | _ACEOF |
23198 | |
23199 | fi |
23200 | |
23201 | echo "$as_me:$LINENO: checking for vset_lastauth" >&5 |
23202 | echo $ECHO_N "checking for vset_lastauth... $ECHO_C" >&6 |
23203 | if test "${ac_cv_func_vset_lastauth+set}" = set; then |
23204 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23205 | else |
23206 | cat >conftest.$ac_ext <<_ACEOF |
23207 | /* confdefs.h. */ |
23208 | _ACEOF |
23209 | cat confdefs.h >>conftest.$ac_ext |
23210 | cat >>conftest.$ac_ext <<_ACEOF |
23211 | /* end confdefs.h. */ |
23212 | /* Define vset_lastauth to an innocuous variant, in case <limits.h> declares vset_lastauth. |
23213 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
23214 | #define vset_lastauth innocuous_vset_lastauth |
23215 | |
23216 | /* System header to define __stub macros and hopefully few prototypes, |
23217 | which can conflict with char vset_lastauth (); below. |
23218 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
23219 | <limits.h> exists even on freestanding compilers. */ |
23220 | |
23221 | #ifdef __STDC__ |
23222 | # include <limits.h> |
23223 | #else |
23224 | # include <assert.h> |
23225 | #endif |
23226 | |
23227 | #undef vset_lastauth |
23228 | |
23229 | /* Override any gcc2 internal prototype to avoid an error. */ |
23230 | #ifdef __cplusplus |
23231 | extern "C" |
23232 | { |
23233 | #endif |
23234 | /* We use char because int might match the return type of a gcc2 |
23235 | builtin and then its argument prototype would still apply. */ |
23236 | char vset_lastauth (); |
23237 | /* The GNU C library defines this for functions which it implements |
23238 | to always fail with ENOSYS. Some functions are actually named |
23239 | something starting with __ and the normal name is an alias. */ |
23240 | #if defined (__stub_vset_lastauth) || defined (__stub___vset_lastauth) |
23241 | choke me |
23242 | #else |
23243 | char (*f) () = vset_lastauth; |
23244 | #endif |
23245 | #ifdef __cplusplus |
23246 | } |
23247 | #endif |
23248 | |
23249 | int |
23250 | main () |
23251 | { |
23252 | return f != vset_lastauth; |
23253 | ; |
23254 | return 0; |
23255 | } |
23256 | _ACEOF |
23257 | rm -f conftest.$ac_objext conftest$ac_exeext |
23258 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
23259 | (eval $ac_link) 2>conftest.er1 |
23260 | ac_status=$? |
23261 | grep -v '^ *+' conftest.er1 >conftest.err |
23262 | rm -f conftest.er1 |
23263 | cat conftest.err >&5 |
23264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23265 | (exit $ac_status); } && |
23266 | { ac_try='test -z "$ac_c_werror_flag" |
23267 | || test ! -s conftest.err' |
23268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23269 | (eval $ac_try) 2>&5 |
23270 | ac_status=$? |
23271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23272 | (exit $ac_status); }; } && |
23273 | { ac_try='test -s conftest$ac_exeext' |
23274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23275 | (eval $ac_try) 2>&5 |
23276 | ac_status=$? |
23277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23278 | (exit $ac_status); }; }; then |
23279 | ac_cv_func_vset_lastauth=yes |
23280 | else |
23281 | echo "$as_me: failed program was:" >&5 |
23282 | sed 's/^/| /' conftest.$ac_ext >&5 |
23283 | |
23284 | ac_cv_func_vset_lastauth=no |
23285 | fi |
23286 | rm -f conftest.err conftest.$ac_objext \ |
23287 | conftest$ac_exeext conftest.$ac_ext |
23288 | fi |
23289 | echo "$as_me:$LINENO: result: $ac_cv_func_vset_lastauth" >&5 |
23290 | echo "${ECHO_T}$ac_cv_func_vset_lastauth" >&6 |
23291 | if test $ac_cv_func_vset_lastauth = yes; then |
23292 | |
23293 | cat >>confdefs.h <<\_ACEOF |
23294 | #define HAVE_VSET_LASTAUTH 1 |
23295 | _ACEOF |
23296 | |
23297 | fi |
23298 | |
23299 | LIBS=$_SAVE_LIBS |
23300 | fi |
23301 | |
23302 | |
23303 | |
23304 | |
23305 | |
23306 | |
23307 | |
23308 | # Check whether --with-authpgsqlrc or --without-authpgsqlrc was given. |
23309 | if test "${with_authpgsqlrc+set}" = set; then |
23310 | withval="$with_authpgsqlrc" |
23311 | authpgsqlrc="$withval" |
23312 | else |
23313 | authpgsqlrc="$pkgconfdir/authpgsqlrc" |
23314 | fi; |
23315 | |
23316 | |
23317 | |
23318 | # Check whether --with-authpgsql or --without-authpgsql was given. |
23319 | if test "${with_authpgsql+set}" = set; then |
23320 | withval="$with_authpgsql" |
23321 | doauthpgsql="$withval" |
23322 | fi; |
23323 | |
23324 | for ac_prog in pg_config |
23325 | do |
23326 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
23327 | set dummy $ac_prog; ac_word=$2 |
23328 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
23329 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
23330 | if test "${ac_cv_path_PG_CONFIG+set}" = set; then |
23331 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23332 | else |
23333 | case $PG_CONFIG in |
23334 | [\\/]* | ?:[\\/]*) |
23335 | ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path. |
23336 | ;; |
23337 | *) |
23338 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
23339 | for as_dir in $LPATH |
23340 | do |
23341 | IFS=$as_save_IFS |
23342 | test -z "$as_dir" && as_dir=. |
23343 | for ac_exec_ext in '' $ac_executable_extensions; do |
23344 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
23345 | ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
23346 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
23347 | break 2 |
23348 | fi |
23349 | done |
23350 | done |
23351 | |
23352 | ;; |
23353 | esac |
23354 | fi |
23355 | PG_CONFIG=$ac_cv_path_PG_CONFIG |
23356 | |
23357 | if test -n "$PG_CONFIG"; then |
23358 | echo "$as_me:$LINENO: result: $PG_CONFIG" >&5 |
23359 | echo "${ECHO_T}$PG_CONFIG" >&6 |
23360 | else |
23361 | echo "$as_me:$LINENO: result: no" >&5 |
23362 | echo "${ECHO_T}no" >&6 |
23363 | fi |
23364 | |
23365 | test -n "$PG_CONFIG" && break |
23366 | done |
23367 | test -n "$PG_CONFIG" || PG_CONFIG="pg_config" |
23368 | |
23369 | |
23370 | PGSQL_LIBS="-lpq" |
23371 | |
23372 | # Check whether --with-pgsql-libs or --without-pgsql-libs was given. |
23373 | if test "${with_pgsql_libs+set}" = set; then |
23374 | withval="$with_pgsql_libs" |
23375 | PGSQL_LIBS="-L$withval $PGSQL_LIBS" |
23376 | else |
23377 | if test -x $PG_CONFIG |
23378 | then |
23379 | PGSQL_LIBS="-L`$PG_CONFIG --libdir` $PGSQL_LIBS" |
23380 | fi |
23381 | |
23382 | fi; |
23383 | |
23384 | # Check whether --with-pgsql-includes or --without-pgsql-includes was given. |
23385 | if test "${with_pgsql_includes+set}" = set; then |
23386 | withval="$with_pgsql_includes" |
23387 | PGSQL_CFLAGS="-I$withval" |
23388 | else |
23389 | if test -x $PG_CONFIG |
23390 | then |
23391 | PGSQL_CFLAGS="-I`$PG_CONFIG --includedir`" |
23392 | fi |
23393 | |
23394 | fi; |
23395 | |
23396 | if test "$doauthpgsql" = "" |
23397 | then |
23398 | LIBS="$PGSQL_LIBS $LIBS" |
23399 | echo "$as_me:$LINENO: checking for PQsetdbLogin" >&5 |
23400 | echo $ECHO_N "checking for PQsetdbLogin... $ECHO_C" >&6 |
23401 | if test "${ac_cv_func_PQsetdbLogin+set}" = set; then |
23402 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23403 | else |
23404 | cat >conftest.$ac_ext <<_ACEOF |
23405 | /* confdefs.h. */ |
23406 | _ACEOF |
23407 | cat confdefs.h >>conftest.$ac_ext |
23408 | cat >>conftest.$ac_ext <<_ACEOF |
23409 | /* end confdefs.h. */ |
23410 | /* Define PQsetdbLogin to an innocuous variant, in case <limits.h> declares PQsetdbLogin. |
23411 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
23412 | #define PQsetdbLogin innocuous_PQsetdbLogin |
23413 | |
23414 | /* System header to define __stub macros and hopefully few prototypes, |
23415 | which can conflict with char PQsetdbLogin (); below. |
23416 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
23417 | <limits.h> exists even on freestanding compilers. */ |
23418 | |
23419 | #ifdef __STDC__ |
23420 | # include <limits.h> |
23421 | #else |
23422 | # include <assert.h> |
23423 | #endif |
23424 | |
23425 | #undef PQsetdbLogin |
23426 | |
23427 | /* Override any gcc2 internal prototype to avoid an error. */ |
23428 | #ifdef __cplusplus |
23429 | extern "C" |
23430 | { |
23431 | #endif |
23432 | /* We use char because int might match the return type of a gcc2 |
23433 | builtin and then its argument prototype would still apply. */ |
23434 | char PQsetdbLogin (); |
23435 | /* The GNU C library defines this for functions which it implements |
23436 | to always fail with ENOSYS. Some functions are actually named |
23437 | something starting with __ and the normal name is an alias. */ |
23438 | #if defined (__stub_PQsetdbLogin) || defined (__stub___PQsetdbLogin) |
23439 | choke me |
23440 | #else |
23441 | char (*f) () = PQsetdbLogin; |
23442 | #endif |
23443 | #ifdef __cplusplus |
23444 | } |
23445 | #endif |
23446 | |
23447 | int |
23448 | main () |
23449 | { |
23450 | return f != PQsetdbLogin; |
23451 | ; |
23452 | return 0; |
23453 | } |
23454 | _ACEOF |
23455 | rm -f conftest.$ac_objext conftest$ac_exeext |
23456 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
23457 | (eval $ac_link) 2>conftest.er1 |
23458 | ac_status=$? |
23459 | grep -v '^ *+' conftest.er1 >conftest.err |
23460 | rm -f conftest.er1 |
23461 | cat conftest.err >&5 |
23462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23463 | (exit $ac_status); } && |
23464 | { ac_try='test -z "$ac_c_werror_flag" |
23465 | || test ! -s conftest.err' |
23466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23467 | (eval $ac_try) 2>&5 |
23468 | ac_status=$? |
23469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23470 | (exit $ac_status); }; } && |
23471 | { ac_try='test -s conftest$ac_exeext' |
23472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23473 | (eval $ac_try) 2>&5 |
23474 | ac_status=$? |
23475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23476 | (exit $ac_status); }; }; then |
23477 | ac_cv_func_PQsetdbLogin=yes |
23478 | else |
23479 | echo "$as_me: failed program was:" >&5 |
23480 | sed 's/^/| /' conftest.$ac_ext >&5 |
23481 | |
23482 | ac_cv_func_PQsetdbLogin=no |
23483 | fi |
23484 | rm -f conftest.err conftest.$ac_objext \ |
23485 | conftest$ac_exeext conftest.$ac_ext |
23486 | fi |
23487 | echo "$as_me:$LINENO: result: $ac_cv_func_PQsetdbLogin" >&5 |
23488 | echo "${ECHO_T}$ac_cv_func_PQsetdbLogin" >&6 |
23489 | if test $ac_cv_func_PQsetdbLogin = yes; then |
23490 | doauthpgsql="yes" |
23491 | |
23492 | fi |
23493 | |
23494 | LIBS="$saveLIBS" |
23495 | fi |
23496 | |
23497 | if test "$doauthpgsql" != "yes" |
23498 | then |
23499 | LIBAUTHPGSQL="" |
23500 | HAVE_AUTHPGSQL=0 |
23501 | else |
23502 | saveLIBS="$LIBS" |
23503 | LIBS="$PGSQL_LIBS $LIBS" |
23504 | echo "$as_me:$LINENO: checking for PQsetdbLogin" >&5 |
23505 | echo $ECHO_N "checking for PQsetdbLogin... $ECHO_C" >&6 |
23506 | if test "${ac_cv_func_PQsetdbLogin+set}" = set; then |
23507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23508 | else |
23509 | cat >conftest.$ac_ext <<_ACEOF |
23510 | /* confdefs.h. */ |
23511 | _ACEOF |
23512 | cat confdefs.h >>conftest.$ac_ext |
23513 | cat >>conftest.$ac_ext <<_ACEOF |
23514 | /* end confdefs.h. */ |
23515 | /* Define PQsetdbLogin to an innocuous variant, in case <limits.h> declares PQsetdbLogin. |
23516 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
23517 | #define PQsetdbLogin innocuous_PQsetdbLogin |
23518 | |
23519 | /* System header to define __stub macros and hopefully few prototypes, |
23520 | which can conflict with char PQsetdbLogin (); below. |
23521 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
23522 | <limits.h> exists even on freestanding compilers. */ |
23523 | |
23524 | #ifdef __STDC__ |
23525 | # include <limits.h> |
23526 | #else |
23527 | # include <assert.h> |
23528 | #endif |
23529 | |
23530 | #undef PQsetdbLogin |
23531 | |
23532 | /* Override any gcc2 internal prototype to avoid an error. */ |
23533 | #ifdef __cplusplus |
23534 | extern "C" |
23535 | { |
23536 | #endif |
23537 | /* We use char because int might match the return type of a gcc2 |
23538 | builtin and then its argument prototype would still apply. */ |
23539 | char PQsetdbLogin (); |
23540 | /* The GNU C library defines this for functions which it implements |
23541 | to always fail with ENOSYS. Some functions are actually named |
23542 | something starting with __ and the normal name is an alias. */ |
23543 | #if defined (__stub_PQsetdbLogin) || defined (__stub___PQsetdbLogin) |
23544 | choke me |
23545 | #else |
23546 | char (*f) () = PQsetdbLogin; |
23547 | #endif |
23548 | #ifdef __cplusplus |
23549 | } |
23550 | #endif |
23551 | |
23552 | int |
23553 | main () |
23554 | { |
23555 | return f != PQsetdbLogin; |
23556 | ; |
23557 | return 0; |
23558 | } |
23559 | _ACEOF |
23560 | rm -f conftest.$ac_objext conftest$ac_exeext |
23561 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
23562 | (eval $ac_link) 2>conftest.er1 |
23563 | ac_status=$? |
23564 | grep -v '^ *+' conftest.er1 >conftest.err |
23565 | rm -f conftest.er1 |
23566 | cat conftest.err >&5 |
23567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23568 | (exit $ac_status); } && |
23569 | { ac_try='test -z "$ac_c_werror_flag" |
23570 | || test ! -s conftest.err' |
23571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23572 | (eval $ac_try) 2>&5 |
23573 | ac_status=$? |
23574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23575 | (exit $ac_status); }; } && |
23576 | { ac_try='test -s conftest$ac_exeext' |
23577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23578 | (eval $ac_try) 2>&5 |
23579 | ac_status=$? |
23580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23581 | (exit $ac_status); }; }; then |
23582 | ac_cv_func_PQsetdbLogin=yes |
23583 | else |
23584 | echo "$as_me: failed program was:" >&5 |
23585 | sed 's/^/| /' conftest.$ac_ext >&5 |
23586 | |
23587 | ac_cv_func_PQsetdbLogin=no |
23588 | fi |
23589 | rm -f conftest.err conftest.$ac_objext \ |
23590 | conftest$ac_exeext conftest.$ac_ext |
23591 | fi |
23592 | echo "$as_me:$LINENO: result: $ac_cv_func_PQsetdbLogin" >&5 |
23593 | echo "${ECHO_T}$ac_cv_func_PQsetdbLogin" >&6 |
23594 | if test $ac_cv_func_PQsetdbLogin = yes; then |
23595 | AUTHPGSQL="authpgsql" |
23596 | HAVE_AUTHPGSQL=1 |
23597 | else |
23598 | { { echo "$as_me:$LINENO: error: --with-authpgsql specified but no libpq.so" >&5 |
23599 | echo "$as_me: error: --with-authpgsql specified but no libpq.so" >&2;} |
23600 | { (exit 1); exit 1; }; } |
23601 | fi |
23602 | |
23603 | LIBS="$saveLIBS" |
23604 | HAVE_AUTHPGSQL=1 |
23605 | CFLAGS="$PGSQL_CFLAGS $CFLAGS" |
23606 | LIBAUTHPGSQL="libauthpgsql.la" |
23607 | fi |
23608 | |
23609 | |
23610 | |
23611 | |
23612 | |
23613 | if test "$HAVE_AUTHPGSQL" = 1; then |
23614 | HAVE_AUTHPGSQL_TRUE= |
23615 | HAVE_AUTHPGSQL_FALSE='#' |
23616 | else |
23617 | HAVE_AUTHPGSQL_TRUE='#' |
23618 | HAVE_AUTHPGSQL_FALSE= |
23619 | fi |
23620 | |
23621 | |
23622 | |
23623 | |
23624 | |
23625 | |
23626 | # Check whether --with-authmysqlrc or --without-authmysqlrc was given. |
23627 | if test "${with_authmysqlrc+set}" = set; then |
23628 | withval="$with_authmysqlrc" |
23629 | authmysqlrc="$withval" |
23630 | else |
23631 | authmysqlrc="$pkgconfdir/authmysqlrc" |
23632 | fi; |
23633 | |
23634 | |
23635 | |
23636 | # Check whether --with-authmysql or --without-authmysql was given. |
23637 | if test "${with_authmysql+set}" = set; then |
23638 | withval="$with_authmysql" |
23639 | doauthmysql="$withval" |
23640 | fi; |
23641 | |
23642 | # Check whether --with-mysql-libs or --without-mysql-libs was given. |
23643 | if test "${with_mysql_libs+set}" = set; then |
23644 | withval="$with_mysql_libs" |
23645 | MYSQL_LIBS="-L$withval -lmysqlclient" |
23646 | |
23647 | fi; |
23648 | |
23649 | # Check whether --with-mysql-includes or --without-mysql-includes was given. |
23650 | if test "${with_mysql_includes+set}" = set; then |
23651 | withval="$with_mysql_includes" |
23652 | MYSQL_CFLAGS="-I$withval" |
23653 | |
23654 | fi; |
23655 | |
23656 | for ac_prog in mysql_config |
23657 | do |
23658 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
23659 | set dummy $ac_prog; ac_word=$2 |
23660 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
23661 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
23662 | if test "${ac_cv_path_MYSQL_CONFIG+set}" = set; then |
23663 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23664 | else |
23665 | case $MYSQL_CONFIG in |
23666 | [\\/]* | ?:[\\/]*) |
23667 | ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path. |
23668 | ;; |
23669 | *) |
23670 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
23671 | for as_dir in $LPATH |
23672 | do |
23673 | IFS=$as_save_IFS |
23674 | test -z "$as_dir" && as_dir=. |
23675 | for ac_exec_ext in '' $ac_executable_extensions; do |
23676 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
23677 | ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
23678 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
23679 | break 2 |
23680 | fi |
23681 | done |
23682 | done |
23683 | |
23684 | ;; |
23685 | esac |
23686 | fi |
23687 | MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG |
23688 | |
23689 | if test -n "$MYSQL_CONFIG"; then |
23690 | echo "$as_me:$LINENO: result: $MYSQL_CONFIG" >&5 |
23691 | echo "${ECHO_T}$MYSQL_CONFIG" >&6 |
23692 | else |
23693 | echo "$as_me:$LINENO: result: no" >&5 |
23694 | echo "${ECHO_T}no" >&6 |
23695 | fi |
23696 | |
23697 | test -n "$MYSQL_CONFIG" && break |
23698 | done |
23699 | test -n "$MYSQL_CONFIG" || MYSQL_CONFIG="mysql_config" |
23700 | |
23701 | |
23702 | if test -x "$MYSQL_CONFIG" |
23703 | then |
23704 | MYSQL_CFLAGS="`$MYSQL_CONFIG --cflags`" |
23705 | MYSQL_LIBS="`$MYSQL_CONFIG --libs`" |
23706 | |
23707 | eval "MYSQL_CFLAGS=\"\`echo $MYSQL_CFLAGS\`\"" |
23708 | eval "MYSQL_LIBS=\"\`echo $MYSQL_LIBS\`\"" |
23709 | fi |
23710 | |
23711 | if test "$doauthmysql" = "" |
23712 | then |
23713 | LIBS="$MYSQL_LIBS $LIBS" |
23714 | echo "$as_me:$LINENO: checking for mysql_connect" >&5 |
23715 | echo $ECHO_N "checking for mysql_connect... $ECHO_C" >&6 |
23716 | if test "${ac_cv_func_mysql_connect+set}" = set; then |
23717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23718 | else |
23719 | cat >conftest.$ac_ext <<_ACEOF |
23720 | /* confdefs.h. */ |
23721 | _ACEOF |
23722 | cat confdefs.h >>conftest.$ac_ext |
23723 | cat >>conftest.$ac_ext <<_ACEOF |
23724 | /* end confdefs.h. */ |
23725 | /* Define mysql_connect to an innocuous variant, in case <limits.h> declares mysql_connect. |
23726 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
23727 | #define mysql_connect innocuous_mysql_connect |
23728 | |
23729 | /* System header to define __stub macros and hopefully few prototypes, |
23730 | which can conflict with char mysql_connect (); below. |
23731 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
23732 | <limits.h> exists even on freestanding compilers. */ |
23733 | |
23734 | #ifdef __STDC__ |
23735 | # include <limits.h> |
23736 | #else |
23737 | # include <assert.h> |
23738 | #endif |
23739 | |
23740 | #undef mysql_connect |
23741 | |
23742 | /* Override any gcc2 internal prototype to avoid an error. */ |
23743 | #ifdef __cplusplus |
23744 | extern "C" |
23745 | { |
23746 | #endif |
23747 | /* We use char because int might match the return type of a gcc2 |
23748 | builtin and then its argument prototype would still apply. */ |
23749 | char mysql_connect (); |
23750 | /* The GNU C library defines this for functions which it implements |
23751 | to always fail with ENOSYS. Some functions are actually named |
23752 | something starting with __ and the normal name is an alias. */ |
23753 | #if defined (__stub_mysql_connect) || defined (__stub___mysql_connect) |
23754 | choke me |
23755 | #else |
23756 | char (*f) () = mysql_connect; |
23757 | #endif |
23758 | #ifdef __cplusplus |
23759 | } |
23760 | #endif |
23761 | |
23762 | int |
23763 | main () |
23764 | { |
23765 | return f != mysql_connect; |
23766 | ; |
23767 | return 0; |
23768 | } |
23769 | _ACEOF |
23770 | rm -f conftest.$ac_objext conftest$ac_exeext |
23771 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
23772 | (eval $ac_link) 2>conftest.er1 |
23773 | ac_status=$? |
23774 | grep -v '^ *+' conftest.er1 >conftest.err |
23775 | rm -f conftest.er1 |
23776 | cat conftest.err >&5 |
23777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23778 | (exit $ac_status); } && |
23779 | { ac_try='test -z "$ac_c_werror_flag" |
23780 | || test ! -s conftest.err' |
23781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23782 | (eval $ac_try) 2>&5 |
23783 | ac_status=$? |
23784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23785 | (exit $ac_status); }; } && |
23786 | { ac_try='test -s conftest$ac_exeext' |
23787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23788 | (eval $ac_try) 2>&5 |
23789 | ac_status=$? |
23790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23791 | (exit $ac_status); }; }; then |
23792 | ac_cv_func_mysql_connect=yes |
23793 | else |
23794 | echo "$as_me: failed program was:" >&5 |
23795 | sed 's/^/| /' conftest.$ac_ext >&5 |
23796 | |
23797 | ac_cv_func_mysql_connect=no |
23798 | fi |
23799 | rm -f conftest.err conftest.$ac_objext \ |
23800 | conftest$ac_exeext conftest.$ac_ext |
23801 | fi |
23802 | echo "$as_me:$LINENO: result: $ac_cv_func_mysql_connect" >&5 |
23803 | echo "${ECHO_T}$ac_cv_func_mysql_connect" >&6 |
23804 | if test $ac_cv_func_mysql_connect = yes; then |
23805 | doauthmysql="yes" |
23806 | |
23807 | fi |
23808 | |
23809 | echo "$as_me:$LINENO: checking for mysql_real_connect" >&5 |
23810 | echo $ECHO_N "checking for mysql_real_connect... $ECHO_C" >&6 |
23811 | if test "${ac_cv_func_mysql_real_connect+set}" = set; then |
23812 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23813 | else |
23814 | cat >conftest.$ac_ext <<_ACEOF |
23815 | /* confdefs.h. */ |
23816 | _ACEOF |
23817 | cat confdefs.h >>conftest.$ac_ext |
23818 | cat >>conftest.$ac_ext <<_ACEOF |
23819 | /* end confdefs.h. */ |
23820 | /* Define mysql_real_connect to an innocuous variant, in case <limits.h> declares mysql_real_connect. |
23821 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
23822 | #define mysql_real_connect innocuous_mysql_real_connect |
23823 | |
23824 | /* System header to define __stub macros and hopefully few prototypes, |
23825 | which can conflict with char mysql_real_connect (); below. |
23826 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
23827 | <limits.h> exists even on freestanding compilers. */ |
23828 | |
23829 | #ifdef __STDC__ |
23830 | # include <limits.h> |
23831 | #else |
23832 | # include <assert.h> |
23833 | #endif |
23834 | |
23835 | #undef mysql_real_connect |
23836 | |
23837 | /* Override any gcc2 internal prototype to avoid an error. */ |
23838 | #ifdef __cplusplus |
23839 | extern "C" |
23840 | { |
23841 | #endif |
23842 | /* We use char because int might match the return type of a gcc2 |
23843 | builtin and then its argument prototype would still apply. */ |
23844 | char mysql_real_connect (); |
23845 | /* The GNU C library defines this for functions which it implements |
23846 | to always fail with ENOSYS. Some functions are actually named |
23847 | something starting with __ and the normal name is an alias. */ |
23848 | #if defined (__stub_mysql_real_connect) || defined (__stub___mysql_real_connect) |
23849 | choke me |
23850 | #else |
23851 | char (*f) () = mysql_real_connect; |
23852 | #endif |
23853 | #ifdef __cplusplus |
23854 | } |
23855 | #endif |
23856 | |
23857 | int |
23858 | main () |
23859 | { |
23860 | return f != mysql_real_connect; |
23861 | ; |
23862 | return 0; |
23863 | } |
23864 | _ACEOF |
23865 | rm -f conftest.$ac_objext conftest$ac_exeext |
23866 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
23867 | (eval $ac_link) 2>conftest.er1 |
23868 | ac_status=$? |
23869 | grep -v '^ *+' conftest.er1 >conftest.err |
23870 | rm -f conftest.er1 |
23871 | cat conftest.err >&5 |
23872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23873 | (exit $ac_status); } && |
23874 | { ac_try='test -z "$ac_c_werror_flag" |
23875 | || test ! -s conftest.err' |
23876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23877 | (eval $ac_try) 2>&5 |
23878 | ac_status=$? |
23879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23880 | (exit $ac_status); }; } && |
23881 | { ac_try='test -s conftest$ac_exeext' |
23882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23883 | (eval $ac_try) 2>&5 |
23884 | ac_status=$? |
23885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23886 | (exit $ac_status); }; }; then |
23887 | ac_cv_func_mysql_real_connect=yes |
23888 | else |
23889 | echo "$as_me: failed program was:" >&5 |
23890 | sed 's/^/| /' conftest.$ac_ext >&5 |
23891 | |
23892 | ac_cv_func_mysql_real_connect=no |
23893 | fi |
23894 | rm -f conftest.err conftest.$ac_objext \ |
23895 | conftest$ac_exeext conftest.$ac_ext |
23896 | fi |
23897 | echo "$as_me:$LINENO: result: $ac_cv_func_mysql_real_connect" >&5 |
23898 | echo "${ECHO_T}$ac_cv_func_mysql_real_connect" >&6 |
23899 | if test $ac_cv_func_mysql_real_connect = yes; then |
23900 | doauthmysql="yes" |
23901 | |
23902 | fi |
23903 | |
23904 | LIBS="$saveLIBS" |
23905 | fi |
23906 | |
23907 | if test "$doauthmysql" != "yes" |
23908 | then |
23909 | LIBAUTHMYSQL="" |
23910 | HAVE_AUTHMYSQL=0 |
23911 | else |
23912 | saveLIBS="$LIBS" |
23913 | LIBS="$MYSQL_LIBS $LIBS" |
23914 | echo "$as_me:$LINENO: checking for mysql_connect" >&5 |
23915 | echo $ECHO_N "checking for mysql_connect... $ECHO_C" >&6 |
23916 | if test "${ac_cv_func_mysql_connect+set}" = set; then |
23917 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23918 | else |
23919 | cat >conftest.$ac_ext <<_ACEOF |
23920 | /* confdefs.h. */ |
23921 | _ACEOF |
23922 | cat confdefs.h >>conftest.$ac_ext |
23923 | cat >>conftest.$ac_ext <<_ACEOF |
23924 | /* end confdefs.h. */ |
23925 | /* Define mysql_connect to an innocuous variant, in case <limits.h> declares mysql_connect. |
23926 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
23927 | #define mysql_connect innocuous_mysql_connect |
23928 | |
23929 | /* System header to define __stub macros and hopefully few prototypes, |
23930 | which can conflict with char mysql_connect (); below. |
23931 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
23932 | <limits.h> exists even on freestanding compilers. */ |
23933 | |
23934 | #ifdef __STDC__ |
23935 | # include <limits.h> |
23936 | #else |
23937 | # include <assert.h> |
23938 | #endif |
23939 | |
23940 | #undef mysql_connect |
23941 | |
23942 | /* Override any gcc2 internal prototype to avoid an error. */ |
23943 | #ifdef __cplusplus |
23944 | extern "C" |
23945 | { |
23946 | #endif |
23947 | /* We use char because int might match the return type of a gcc2 |
23948 | builtin and then its argument prototype would still apply. */ |
23949 | char mysql_connect (); |
23950 | /* The GNU C library defines this for functions which it implements |
23951 | to always fail with ENOSYS. Some functions are actually named |
23952 | something starting with __ and the normal name is an alias. */ |
23953 | #if defined (__stub_mysql_connect) || defined (__stub___mysql_connect) |
23954 | choke me |
23955 | #else |
23956 | char (*f) () = mysql_connect; |
23957 | #endif |
23958 | #ifdef __cplusplus |
23959 | } |
23960 | #endif |
23961 | |
23962 | int |
23963 | main () |
23964 | { |
23965 | return f != mysql_connect; |
23966 | ; |
23967 | return 0; |
23968 | } |
23969 | _ACEOF |
23970 | rm -f conftest.$ac_objext conftest$ac_exeext |
23971 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
23972 | (eval $ac_link) 2>conftest.er1 |
23973 | ac_status=$? |
23974 | grep -v '^ *+' conftest.er1 >conftest.err |
23975 | rm -f conftest.er1 |
23976 | cat conftest.err >&5 |
23977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23978 | (exit $ac_status); } && |
23979 | { ac_try='test -z "$ac_c_werror_flag" |
23980 | || test ! -s conftest.err' |
23981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23982 | (eval $ac_try) 2>&5 |
23983 | ac_status=$? |
23984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23985 | (exit $ac_status); }; } && |
23986 | { ac_try='test -s conftest$ac_exeext' |
23987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23988 | (eval $ac_try) 2>&5 |
23989 | ac_status=$? |
23990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23991 | (exit $ac_status); }; }; then |
23992 | ac_cv_func_mysql_connect=yes |
23993 | else |
23994 | echo "$as_me: failed program was:" >&5 |
23995 | sed 's/^/| /' conftest.$ac_ext >&5 |
23996 | |
23997 | ac_cv_func_mysql_connect=no |
23998 | fi |
23999 | rm -f conftest.err conftest.$ac_objext \ |
24000 | conftest$ac_exeext conftest.$ac_ext |
24001 | fi |
24002 | echo "$as_me:$LINENO: result: $ac_cv_func_mysql_connect" >&5 |
24003 | echo "${ECHO_T}$ac_cv_func_mysql_connect" >&6 |
24004 | if test $ac_cv_func_mysql_connect = yes; then |
24005 | LIBAUTHMYSQL="libauthmysql.la" |
24006 | HAVE_AUTHMYSQL=1 |
24007 | else |
24008 | |
24009 | echo "$as_me:$LINENO: checking for mysql_real_connect" >&5 |
24010 | echo $ECHO_N "checking for mysql_real_connect... $ECHO_C" >&6 |
24011 | if test "${ac_cv_func_mysql_real_connect+set}" = set; then |
24012 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
24013 | else |
24014 | cat >conftest.$ac_ext <<_ACEOF |
24015 | /* confdefs.h. */ |
24016 | _ACEOF |
24017 | cat confdefs.h >>conftest.$ac_ext |
24018 | cat >>conftest.$ac_ext <<_ACEOF |
24019 | /* end confdefs.h. */ |
24020 | /* Define mysql_real_connect to an innocuous variant, in case <limits.h> declares mysql_real_connect. |
24021 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
24022 | #define mysql_real_connect innocuous_mysql_real_connect |
24023 | |
24024 | /* System header to define __stub macros and hopefully few prototypes, |
24025 | which can conflict with char mysql_real_connect (); below. |
24026 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
24027 | <limits.h> exists even on freestanding compilers. */ |
24028 | |
24029 | #ifdef __STDC__ |
24030 | # include <limits.h> |
24031 | #else |
24032 | # include <assert.h> |
24033 | #endif |
24034 | |
24035 | #undef mysql_real_connect |
24036 | |
24037 | /* Override any gcc2 internal prototype to avoid an error. */ |
24038 | #ifdef __cplusplus |
24039 | extern "C" |
24040 | { |
24041 | #endif |
24042 | /* We use char because int might match the return type of a gcc2 |
24043 | builtin and then its argument prototype would still apply. */ |
24044 | char mysql_real_connect (); |
24045 | /* The GNU C library defines this for functions which it implements |
24046 | to always fail with ENOSYS. Some functions are actually named |
24047 | something starting with __ and the normal name is an alias. */ |
24048 | #if defined (__stub_mysql_real_connect) || defined (__stub___mysql_real_connect) |
24049 | choke me |
24050 | #else |
24051 | char (*f) () = mysql_real_connect; |
24052 | #endif |
24053 | #ifdef __cplusplus |
24054 | } |
24055 | #endif |
24056 | |
24057 | int |
24058 | main () |
24059 | { |
24060 | return f != mysql_real_connect; |
24061 | ; |
24062 | return 0; |
24063 | } |
24064 | _ACEOF |
24065 | rm -f conftest.$ac_objext conftest$ac_exeext |
24066 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
24067 | (eval $ac_link) 2>conftest.er1 |
24068 | ac_status=$? |
24069 | grep -v '^ *+' conftest.er1 >conftest.err |
24070 | rm -f conftest.er1 |
24071 | cat conftest.err >&5 |
24072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24073 | (exit $ac_status); } && |
24074 | { ac_try='test -z "$ac_c_werror_flag" |
24075 | || test ! -s conftest.err' |
24076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24077 | (eval $ac_try) 2>&5 |
24078 | ac_status=$? |
24079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24080 | (exit $ac_status); }; } && |
24081 | { ac_try='test -s conftest$ac_exeext' |
24082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24083 | (eval $ac_try) 2>&5 |
24084 | ac_status=$? |
24085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24086 | (exit $ac_status); }; }; then |
24087 | ac_cv_func_mysql_real_connect=yes |
24088 | else |
24089 | echo "$as_me: failed program was:" >&5 |
24090 | sed 's/^/| /' conftest.$ac_ext >&5 |
24091 | |
24092 | ac_cv_func_mysql_real_connect=no |
24093 | fi |
24094 | rm -f conftest.err conftest.$ac_objext \ |
24095 | conftest$ac_exeext conftest.$ac_ext |
24096 | fi |
24097 | echo "$as_me:$LINENO: result: $ac_cv_func_mysql_real_connect" >&5 |
24098 | echo "${ECHO_T}$ac_cv_func_mysql_real_connect" >&6 |
24099 | if test $ac_cv_func_mysql_real_connect = yes; then |
24100 | LIBAUTHMYSQL="libauthmysql.la" |
24101 | HAVE_AUTHMYSQL=1 |
24102 | else |
24103 | { { echo "$as_me:$LINENO: error: --with-authmysql specified but no mysqlclient.so" >&5 |
24104 | echo "$as_me: error: --with-authmysql specified but no mysqlclient.so" >&2;} |
24105 | { (exit 1); exit 1; }; } |
24106 | |
24107 | fi |
24108 | |
24109 | |
24110 | |
24111 | fi |
24112 | |
24113 | LIBS="$saveLIBS" |
24114 | HAVE_AUTHMYSQL=1 |
24115 | CFLAGS="$MYSQL_CFLAGS $CFLAGS" |
24116 | fi |
24117 | |
24118 | |
24119 | |
24120 | |
24121 | if test "$HAVE_AUTHMYSQL" = 1; then |
24122 | HAVE_AUTHMYSQL_TRUE= |
24123 | HAVE_AUTHMYSQL_FALSE='#' |
24124 | else |
24125 | HAVE_AUTHMYSQL_TRUE='#' |
24126 | HAVE_AUTHMYSQL_FALSE= |
24127 | fi |
24128 | |
24129 | |
24130 | |
24131 | |
24132 | |
24133 | |
24134 | |
24135 | |
24136 | # Check whether --with-authcustom or --without-authcustom was given. |
24137 | if test "${with_authcustom+set}" = set; then |
24138 | withval="$with_authcustom" |
24139 | doauthcustom="$withval" |
24140 | else |
24141 | doauthcustom=yes |
24142 | fi; |
24143 | |
24144 | LIBAUTHCUSTOM="" |
24145 | |
24146 | if test "$doauthcustom" = "yes" |
24147 | then |
24148 | LIBAUTHCUSTOM="libauthcustom.la" |
24149 | fi |
24150 | |
24151 | |
24152 | |
24153 | if test "$AUTHCUSTOM" != ""; then |
24154 | HAVE_CUSTOM_TRUE= |
24155 | HAVE_CUSTOM_FALSE='#' |
24156 | else |
24157 | HAVE_CUSTOM_TRUE='#' |
24158 | HAVE_CUSTOM_FALSE= |
24159 | fi |
24160 | |
24161 | |
24162 | |
24163 | |
24164 | |
24165 | |
24166 | |
24167 | |
24168 | |
24169 | # Check whether --with-pipeprog or --without-pipeprog was given. |
24170 | if test "${with_pipeprog+set}" = set; then |
24171 | withval="$with_pipeprog" |
24172 | authProg="$withval" |
24173 | else |
24174 | authProg="$pkgconfdir/authProg" |
24175 | fi; |
24176 | |
24177 | |
24178 | |
24179 | # Check whether --with-authpipe or --without-authpipe was given. |
24180 | if test "${with_authpipe+set}" = set; then |
24181 | withval="$with_authpipe" |
24182 | doauthpipe="$withval" |
24183 | else |
24184 | doauthpipe=yes |
24185 | fi; |
24186 | |
24187 | LIBAUTHPIPE="" |
24188 | |
24189 | if test "$doauthpipe" = "yes" |
24190 | then |
24191 | LIBAUTHPIPE="libauthpipe.la" |
24192 | fi |
24193 | |
24194 | |
24195 | |
24196 | if test "$AUTHPIPE" != ""; then |
24197 | HAVE_PIPE_TRUE= |
24198 | HAVE_PIPE_FALSE='#' |
24199 | else |
24200 | HAVE_PIPE_TRUE='#' |
24201 | HAVE_PIPE_FALSE= |
24202 | fi |
24203 | |
24204 | |
24205 | |
24206 | |
24207 | |
24208 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
24209 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
24210 | if test "${ac_cv_header_stdc+set}" = set; then |
24211 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
24212 | else |
24213 | cat >conftest.$ac_ext <<_ACEOF |
24214 | /* confdefs.h. */ |
24215 | _ACEOF |
24216 | cat confdefs.h >>conftest.$ac_ext |
24217 | cat >>conftest.$ac_ext <<_ACEOF |
24218 | /* end confdefs.h. */ |
24219 | #include <stdlib.h> |
24220 | #include <stdarg.h> |
24221 | #include <string.h> |
24222 | #include <float.h> |
24223 | |
24224 | int |
24225 | main () |
24226 | { |
24227 | |
24228 | ; |
24229 | return 0; |
24230 | } |
24231 | _ACEOF |
24232 | rm -f conftest.$ac_objext |
24233 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
24234 | (eval $ac_compile) 2>conftest.er1 |
24235 | ac_status=$? |
24236 | grep -v '^ *+' conftest.er1 >conftest.err |
24237 | rm -f conftest.er1 |
24238 | cat conftest.err >&5 |
24239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24240 | (exit $ac_status); } && |
24241 | { ac_try='test -z "$ac_c_werror_flag" |
24242 | || test ! -s conftest.err' |
24243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24244 | (eval $ac_try) 2>&5 |
24245 | ac_status=$? |
24246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24247 | (exit $ac_status); }; } && |
24248 | { ac_try='test -s conftest.$ac_objext' |
24249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24250 | (eval $ac_try) 2>&5 |
24251 | ac_status=$? |
24252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24253 | (exit $ac_status); }; }; then |
24254 | ac_cv_header_stdc=yes |
24255 | else |
24256 | echo "$as_me: failed program was:" >&5 |
24257 | sed 's/^/| /' conftest.$ac_ext >&5 |
24258 | |
24259 | ac_cv_header_stdc=no |
24260 | fi |
24261 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
24262 | |
24263 | if test $ac_cv_header_stdc = yes; then |
24264 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
24265 | cat >conftest.$ac_ext <<_ACEOF |
24266 | /* confdefs.h. */ |
24267 | _ACEOF |
24268 | cat confdefs.h >>conftest.$ac_ext |
24269 | cat >>conftest.$ac_ext <<_ACEOF |
24270 | /* end confdefs.h. */ |
24271 | #include <string.h> |
24272 | |
24273 | _ACEOF |
24274 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
24275 | $EGREP "memchr" >/dev/null 2>&1; then |
24276 | : |
24277 | else |
24278 | ac_cv_header_stdc=no |
24279 | fi |
24280 | rm -f conftest* |
24281 | |
24282 | fi |
24283 | |
24284 | if test $ac_cv_header_stdc = yes; then |
24285 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
24286 | cat >conftest.$ac_ext <<_ACEOF |
24287 | /* confdefs.h. */ |
24288 | _ACEOF |
24289 | cat confdefs.h >>conftest.$ac_ext |
24290 | cat >>conftest.$ac_ext <<_ACEOF |
24291 | /* end confdefs.h. */ |
24292 | #include <stdlib.h> |
24293 | |
24294 | _ACEOF |
24295 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
24296 | $EGREP "free" >/dev/null 2>&1; then |
24297 | : |
24298 | else |
24299 | ac_cv_header_stdc=no |
24300 | fi |
24301 | rm -f conftest* |
24302 | |
24303 | fi |
24304 | |
24305 | if test $ac_cv_header_stdc = yes; then |
24306 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
24307 | if test "$cross_compiling" = yes; then |
24308 | : |
24309 | else |
24310 | cat >conftest.$ac_ext <<_ACEOF |
24311 | /* confdefs.h. */ |
24312 | _ACEOF |
24313 | cat confdefs.h >>conftest.$ac_ext |
24314 | cat >>conftest.$ac_ext <<_ACEOF |
24315 | /* end confdefs.h. */ |
24316 | #include <ctype.h> |
24317 | #if ((' ' & 0x0FF) == 0x020) |
24318 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
24319 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
24320 | #else |
24321 | # define ISLOWER(c) \ |
24322 | (('a' <= (c) && (c) <= 'i') \ |
24323 | || ('j' <= (c) && (c) <= 'r') \ |
24324 | || ('s' <= (c) && (c) <= 'z')) |
24325 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
24326 | #endif |
24327 | |
24328 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
24329 | int |
24330 | main () |
24331 | { |
24332 | int i; |
24333 | for (i = 0; i < 256; i++) |
24334 | if (XOR (islower (i), ISLOWER (i)) |
24335 | || toupper (i) != TOUPPER (i)) |
24336 | exit(2); |
24337 | exit (0); |
24338 | } |
24339 | _ACEOF |
24340 | rm -f conftest$ac_exeext |
24341 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
24342 | (eval $ac_link) 2>&5 |
24343 | ac_status=$? |
24344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24345 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
24346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24347 | (eval $ac_try) 2>&5 |
24348 | ac_status=$? |
24349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24350 | (exit $ac_status); }; }; then |
24351 | : |
24352 | else |
24353 | echo "$as_me: program exited with status $ac_status" >&5 |
24354 | echo "$as_me: failed program was:" >&5 |
24355 | sed 's/^/| /' conftest.$ac_ext >&5 |
24356 | |
24357 | ( exit $ac_status ) |
24358 | ac_cv_header_stdc=no |
24359 | fi |
24360 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
24361 | fi |
24362 | fi |
24363 | fi |
24364 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
24365 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
24366 | if test $ac_cv_header_stdc = yes; then |
24367 | |
24368 | cat >>confdefs.h <<\_ACEOF |
24369 | #define STDC_HEADERS 1 |
24370 | _ACEOF |
24371 | |
24372 | fi |
24373 | |
24374 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
24375 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 |
24376 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
24377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
24378 | else |
24379 | cat >conftest.$ac_ext <<_ACEOF |
24380 | /* confdefs.h. */ |
24381 | _ACEOF |
24382 | cat confdefs.h >>conftest.$ac_ext |
24383 | cat >>conftest.$ac_ext <<_ACEOF |
24384 | /* end confdefs.h. */ |
24385 | #include <sys/types.h> |
24386 | #include <sys/wait.h> |
24387 | #ifndef WEXITSTATUS |
24388 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
24389 | #endif |
24390 | #ifndef WIFEXITED |
24391 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
24392 | #endif |
24393 | |
24394 | int |
24395 | main () |
24396 | { |
24397 | int s; |
24398 | wait (&s); |
24399 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
24400 | ; |
24401 | return 0; |
24402 | } |
24403 | _ACEOF |
24404 | rm -f conftest.$ac_objext |
24405 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
24406 | (eval $ac_compile) 2>conftest.er1 |
24407 | ac_status=$? |
24408 | grep -v '^ *+' conftest.er1 >conftest.err |
24409 | rm -f conftest.er1 |
24410 | cat conftest.err >&5 |
24411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24412 | (exit $ac_status); } && |
24413 | { ac_try='test -z "$ac_c_werror_flag" |
24414 | || test ! -s conftest.err' |
24415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24416 | (eval $ac_try) 2>&5 |
24417 | ac_status=$? |
24418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24419 | (exit $ac_status); }; } && |
24420 | { ac_try='test -s conftest.$ac_objext' |
24421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24422 | (eval $ac_try) 2>&5 |
24423 | ac_status=$? |
24424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24425 | (exit $ac_status); }; }; then |
24426 | ac_cv_header_sys_wait_h=yes |
24427 | else |
24428 | echo "$as_me: failed program was:" >&5 |
24429 | sed 's/^/| /' conftest.$ac_ext >&5 |
24430 | |
24431 | ac_cv_header_sys_wait_h=no |
24432 | fi |
24433 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
24434 | fi |
24435 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
24436 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 |
24437 | if test $ac_cv_header_sys_wait_h = yes; then |
24438 | |
24439 | cat >>confdefs.h <<\_ACEOF |
24440 | #define HAVE_SYS_WAIT_H 1 |
24441 | _ACEOF |
24442 | |
24443 | fi |
24444 | |
24445 | |
24446 | |
24447 | |
24448 | |
24449 | |
24450 | |
24451 | |
24452 | |
24453 | for ac_header in sys/stat.h sys/time.h sys/wait.h sys/select.h unistd.h fcntl.h crypt.h termios.h |
24454 | do |
24455 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
24456 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
24457 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
24458 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
24459 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
24460 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
24461 | fi |
24462 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
24463 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
24464 | else |
24465 | # Is the header compilable? |
24466 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
24467 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
24468 | cat >conftest.$ac_ext <<_ACEOF |
24469 | /* confdefs.h. */ |
24470 | _ACEOF |
24471 | cat confdefs.h >>conftest.$ac_ext |
24472 | cat >>conftest.$ac_ext <<_ACEOF |
24473 | /* end confdefs.h. */ |
24474 | $ac_includes_default |
24475 | #include <$ac_header> |
24476 | _ACEOF |
24477 | rm -f conftest.$ac_objext |
24478 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
24479 | (eval $ac_compile) 2>conftest.er1 |
24480 | ac_status=$? |
24481 | grep -v '^ *+' conftest.er1 >conftest.err |
24482 | rm -f conftest.er1 |
24483 | cat conftest.err >&5 |
24484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24485 | (exit $ac_status); } && |
24486 | { ac_try='test -z "$ac_c_werror_flag" |
24487 | || test ! -s conftest.err' |
24488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24489 | (eval $ac_try) 2>&5 |
24490 | ac_status=$? |
24491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24492 | (exit $ac_status); }; } && |
24493 | { ac_try='test -s conftest.$ac_objext' |
24494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24495 | (eval $ac_try) 2>&5 |
24496 | ac_status=$? |
24497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24498 | (exit $ac_status); }; }; then |
24499 | ac_header_compiler=yes |
24500 | else |
24501 | echo "$as_me: failed program was:" >&5 |
24502 | sed 's/^/| /' conftest.$ac_ext >&5 |
24503 | |
24504 | ac_header_compiler=no |
24505 | fi |
24506 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
24507 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24508 | echo "${ECHO_T}$ac_header_compiler" >&6 |
24509 | |
24510 | # Is the header present? |
24511 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
24512 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
24513 | cat >conftest.$ac_ext <<_ACEOF |
24514 | /* confdefs.h. */ |
24515 | _ACEOF |
24516 | cat confdefs.h >>conftest.$ac_ext |
24517 | cat >>conftest.$ac_ext <<_ACEOF |
24518 | /* end confdefs.h. */ |
24519 | #include <$ac_header> |
24520 | _ACEOF |
24521 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
24522 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
24523 | ac_status=$? |
24524 | grep -v '^ *+' conftest.er1 >conftest.err |
24525 | rm -f conftest.er1 |
24526 | cat conftest.err >&5 |
24527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24528 | (exit $ac_status); } >/dev/null; then |
24529 | if test -s conftest.err; then |
24530 | ac_cpp_err=$ac_c_preproc_warn_flag |
24531 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
24532 | else |
24533 | ac_cpp_err= |
24534 | fi |
24535 | else |
24536 | ac_cpp_err=yes |
24537 | fi |
24538 | if test -z "$ac_cpp_err"; then |
24539 | ac_header_preproc=yes |
24540 | else |
24541 | echo "$as_me: failed program was:" >&5 |
24542 | sed 's/^/| /' conftest.$ac_ext >&5 |
24543 | |
24544 | ac_header_preproc=no |
24545 | fi |
24546 | rm -f conftest.err conftest.$ac_ext |
24547 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
24548 | echo "${ECHO_T}$ac_header_preproc" >&6 |
24549 | |
24550 | # So? What about this header? |
24551 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
24552 | yes:no: ) |
24553 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
24554 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
24555 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
24556 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
24557 | ac_header_preproc=yes |
24558 | ;; |
24559 | no:yes:* ) |
24560 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
24561 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
24562 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
24563 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
24564 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
24565 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
24566 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
24567 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
24568 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
24569 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
24570 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
24571 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
24572 | ( |
24573 | cat <<\_ASBOX |
24574 | ## -------------------------------------------------- ## |
24575 | ## Report this to courier-users@lists.sourceforge.net ## |
24576 | ## -------------------------------------------------- ## |
24577 | _ASBOX |
24578 | ) | |
24579 | sed "s/^/$as_me: WARNING: /" >&2 |
24580 | ;; |
24581 | esac |
24582 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
24583 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
24584 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
24585 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
24586 | else |
24587 | eval "$as_ac_Header=\$ac_header_preproc" |
24588 | fi |
24589 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
24590 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
24591 | |
24592 | fi |
24593 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
24594 | cat >>confdefs.h <<_ACEOF |
24595 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
24596 | _ACEOF |
24597 | |
24598 | fi |
24599 | |
24600 | done |
24601 | |
24602 | |
24603 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
24604 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
24605 | if test "${ac_cv_c_const+set}" = set; then |
24606 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
24607 | else |
24608 | cat >conftest.$ac_ext <<_ACEOF |
24609 | /* confdefs.h. */ |
24610 | _ACEOF |
24611 | cat confdefs.h >>conftest.$ac_ext |
24612 | cat >>conftest.$ac_ext <<_ACEOF |
24613 | /* end confdefs.h. */ |
24614 | |
24615 | int |
24616 | main () |
24617 | { |
24618 | /* FIXME: Include the comments suggested by Paul. */ |
24619 | #ifndef __cplusplus |
24620 | /* Ultrix mips cc rejects this. */ |
24621 | typedef int charset[2]; |
24622 | const charset x; |
24623 | /* SunOS 4.1.1 cc rejects this. */ |
24624 | char const *const *ccp; |
24625 | char **p; |
24626 | /* NEC SVR4.0.2 mips cc rejects this. */ |
24627 | struct point {int x, y;}; |
24628 | static struct point const zero = {0,0}; |
24629 | /* AIX XL C 1.02.0.0 rejects this. |
24630 | It does not let you subtract one const X* pointer from another in |
24631 | an arm of an if-expression whose if-part is not a constant |
24632 | expression */ |
24633 | const char *g = "string"; |
24634 | ccp = &g + (g ? g-g : 0); |
24635 | /* HPUX 7.0 cc rejects these. */ |
24636 | ++ccp; |
24637 | p = (char**) ccp; |
24638 | ccp = (char const *const *) p; |
24639 | { /* SCO 3.2v4 cc rejects this. */ |
24640 | char *t; |
24641 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
24642 | |
24643 | *t++ = 0; |
24644 | } |
24645 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
24646 | int x[] = {25, 17}; |
24647 | const int *foo = &x[0]; |
24648 | ++foo; |
24649 | } |
24650 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
24651 | typedef const int *iptr; |
24652 | iptr p = 0; |
24653 | ++p; |
24654 | } |
24655 | { /* AIX XL C 1.02.0.0 rejects this saying |
24656 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
24657 | struct s { int j; const int *ap[3]; }; |
24658 | struct s *b; b->j = 5; |
24659 | } |
24660 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
24661 | const int foo = 10; |
24662 | } |
24663 | #endif |
24664 | |
24665 | ; |
24666 | return 0; |
24667 | } |
24668 | _ACEOF |
24669 | rm -f conftest.$ac_objext |
24670 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
24671 | (eval $ac_compile) 2>conftest.er1 |
24672 | ac_status=$? |
24673 | grep -v '^ *+' conftest.er1 >conftest.err |
24674 | rm -f conftest.er1 |
24675 | cat conftest.err >&5 |
24676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24677 | (exit $ac_status); } && |
24678 | { ac_try='test -z "$ac_c_werror_flag" |
24679 | || test ! -s conftest.err' |
24680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24681 | (eval $ac_try) 2>&5 |
24682 | ac_status=$? |
24683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24684 | (exit $ac_status); }; } && |
24685 | { ac_try='test -s conftest.$ac_objext' |
24686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24687 | (eval $ac_try) 2>&5 |
24688 | ac_status=$? |
24689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24690 | (exit $ac_status); }; }; then |
24691 | ac_cv_c_const=yes |
24692 | else |
24693 | echo "$as_me: failed program was:" >&5 |
24694 | sed 's/^/| /' conftest.$ac_ext >&5 |
24695 | |
24696 | ac_cv_c_const=no |
24697 | fi |
24698 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
24699 | fi |
24700 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
24701 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
24702 | if test $ac_cv_c_const = no; then |
24703 | |
24704 | cat >>confdefs.h <<\_ACEOF |
24705 | #define const |
24706 | _ACEOF |
24707 | |
24708 | fi |
24709 | |
24710 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
24711 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
24712 | if test "${ac_cv_type_pid_t+set}" = set; then |
24713 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
24714 | else |
24715 | cat >conftest.$ac_ext <<_ACEOF |
24716 | /* confdefs.h. */ |
24717 | _ACEOF |
24718 | cat confdefs.h >>conftest.$ac_ext |
24719 | cat >>conftest.$ac_ext <<_ACEOF |
24720 | /* end confdefs.h. */ |
24721 | $ac_includes_default |
24722 | int |
24723 | main () |
24724 | { |
24725 | if ((pid_t *) 0) |
24726 | return 0; |
24727 | if (sizeof (pid_t)) |
24728 | return 0; |
24729 | ; |
24730 | return 0; |
24731 | } |
24732 | _ACEOF |
24733 | rm -f conftest.$ac_objext |
24734 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
24735 | (eval $ac_compile) 2>conftest.er1 |
24736 | ac_status=$? |
24737 | grep -v '^ *+' conftest.er1 >conftest.err |
24738 | rm -f conftest.er1 |
24739 | cat conftest.err >&5 |
24740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24741 | (exit $ac_status); } && |
24742 | { ac_try='test -z "$ac_c_werror_flag" |
24743 | || test ! -s conftest.err' |
24744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24745 | (eval $ac_try) 2>&5 |
24746 | ac_status=$? |
24747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24748 | (exit $ac_status); }; } && |
24749 | { ac_try='test -s conftest.$ac_objext' |
24750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24751 | (eval $ac_try) 2>&5 |
24752 | ac_status=$? |
24753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24754 | (exit $ac_status); }; }; then |
24755 | ac_cv_type_pid_t=yes |
24756 | else |
24757 | echo "$as_me: failed program was:" >&5 |
24758 | sed 's/^/| /' conftest.$ac_ext >&5 |
24759 | |
24760 | ac_cv_type_pid_t=no |
24761 | fi |
24762 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
24763 | fi |
24764 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
24765 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
24766 | if test $ac_cv_type_pid_t = yes; then |
24767 | : |
24768 | else |
24769 | |
24770 | cat >>confdefs.h <<_ACEOF |
24771 | #define pid_t int |
24772 | _ACEOF |
24773 | |
24774 | fi |
24775 | |
24776 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
24777 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
24778 | if test "${ac_cv_type_uid_t+set}" = set; then |
24779 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
24780 | else |
24781 | cat >conftest.$ac_ext <<_ACEOF |
24782 | /* confdefs.h. */ |
24783 | _ACEOF |
24784 | cat confdefs.h >>conftest.$ac_ext |
24785 | cat >>conftest.$ac_ext <<_ACEOF |
24786 | /* end confdefs.h. */ |
24787 | #include <sys/types.h> |
24788 | |
24789 | _ACEOF |
24790 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
24791 | $EGREP "uid_t" >/dev/null 2>&1; then |
24792 | ac_cv_type_uid_t=yes |
24793 | else |
24794 | ac_cv_type_uid_t=no |
24795 | fi |
24796 | rm -f conftest* |
24797 | |
24798 | fi |
24799 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
24800 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
24801 | if test $ac_cv_type_uid_t = no; then |
24802 | |
24803 | cat >>confdefs.h <<\_ACEOF |
24804 | #define uid_t int |
24805 | _ACEOF |
24806 | |
24807 | |
24808 | cat >>confdefs.h <<\_ACEOF |
24809 | #define gid_t int |
24810 | _ACEOF |
24811 | |
24812 | fi |
24813 | |
24814 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
24815 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
24816 | if test "${ac_cv_type_signal+set}" = set; then |
24817 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
24818 | else |
24819 | cat >conftest.$ac_ext <<_ACEOF |
24820 | /* confdefs.h. */ |
24821 | _ACEOF |
24822 | cat confdefs.h >>conftest.$ac_ext |
24823 | cat >>conftest.$ac_ext <<_ACEOF |
24824 | /* end confdefs.h. */ |
24825 | #include <sys/types.h> |
24826 | #include <signal.h> |
24827 | #ifdef signal |
24828 | # undef signal |
24829 | #endif |
24830 | #ifdef __cplusplus |
24831 | extern "C" void (*signal (int, void (*)(int)))(int); |
24832 | #else |
24833 | void (*signal ()) (); |
24834 | #endif |
24835 | |
24836 | int |
24837 | main () |
24838 | { |
24839 | int i; |
24840 | ; |
24841 | return 0; |
24842 | } |
24843 | _ACEOF |
24844 | rm -f conftest.$ac_objext |
24845 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
24846 | (eval $ac_compile) 2>conftest.er1 |
24847 | ac_status=$? |
24848 | grep -v '^ *+' conftest.er1 >conftest.err |
24849 | rm -f conftest.er1 |
24850 | cat conftest.err >&5 |
24851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24852 | (exit $ac_status); } && |
24853 | { ac_try='test -z "$ac_c_werror_flag" |
24854 | || test ! -s conftest.err' |
24855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24856 | (eval $ac_try) 2>&5 |
24857 | ac_status=$? |
24858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24859 | (exit $ac_status); }; } && |
24860 | { ac_try='test -s conftest.$ac_objext' |
24861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24862 | (eval $ac_try) 2>&5 |
24863 | ac_status=$? |
24864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24865 | (exit $ac_status); }; }; then |
24866 | ac_cv_type_signal=void |
24867 | else |
24868 | echo "$as_me: failed program was:" >&5 |
24869 | sed 's/^/| /' conftest.$ac_ext >&5 |
24870 | |
24871 | ac_cv_type_signal=int |
24872 | fi |
24873 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
24874 | fi |
24875 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
24876 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
24877 | |
24878 | cat >>confdefs.h <<_ACEOF |
24879 | #define RETSIGTYPE $ac_cv_type_signal |
24880 | _ACEOF |
24881 | |
24882 | |
24883 | |
24884 | |
24885 | |
24886 | for ac_func in setsid setlogin |
24887 | do |
24888 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
24889 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
24890 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
24891 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
24892 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
24893 | else |
24894 | cat >conftest.$ac_ext <<_ACEOF |
24895 | /* confdefs.h. */ |
24896 | _ACEOF |
24897 | cat confdefs.h >>conftest.$ac_ext |
24898 | cat >>conftest.$ac_ext <<_ACEOF |
24899 | /* end confdefs.h. */ |
24900 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
24901 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
24902 | #define $ac_func innocuous_$ac_func |
24903 | |
24904 | /* System header to define __stub macros and hopefully few prototypes, |
24905 | which can conflict with char $ac_func (); below. |
24906 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
24907 | <limits.h> exists even on freestanding compilers. */ |
24908 | |
24909 | #ifdef __STDC__ |
24910 | # include <limits.h> |
24911 | #else |
24912 | # include <assert.h> |
24913 | #endif |
24914 | |
24915 | #undef $ac_func |
24916 | |
24917 | /* Override any gcc2 internal prototype to avoid an error. */ |
24918 | #ifdef __cplusplus |
24919 | extern "C" |
24920 | { |
24921 | #endif |
24922 | /* We use char because int might match the return type of a gcc2 |
24923 | builtin and then its argument prototype would still apply. */ |
24924 | char $ac_func (); |
24925 | /* The GNU C library defines this for functions which it implements |
24926 | to always fail with ENOSYS. Some functions are actually named |
24927 | something starting with __ and the normal name is an alias. */ |
24928 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
24929 | choke me |
24930 | #else |
24931 | char (*f) () = $ac_func; |
24932 | #endif |
24933 | #ifdef __cplusplus |
24934 | } |
24935 | #endif |
24936 | |
24937 | int |
24938 | main () |
24939 | { |
24940 | return f != $ac_func; |
24941 | ; |
24942 | return 0; |
24943 | } |
24944 | _ACEOF |
24945 | rm -f conftest.$ac_objext conftest$ac_exeext |
24946 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
24947 | (eval $ac_link) 2>conftest.er1 |
24948 | ac_status=$? |
24949 | grep -v '^ *+' conftest.er1 >conftest.err |
24950 | rm -f conftest.er1 |
24951 | cat conftest.err >&5 |
24952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24953 | (exit $ac_status); } && |
24954 | { ac_try='test -z "$ac_c_werror_flag" |
24955 | || test ! -s conftest.err' |
24956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24957 | (eval $ac_try) 2>&5 |
24958 | ac_status=$? |
24959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24960 | (exit $ac_status); }; } && |
24961 | { ac_try='test -s conftest$ac_exeext' |
24962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24963 | (eval $ac_try) 2>&5 |
24964 | ac_status=$? |
24965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24966 | (exit $ac_status); }; }; then |
24967 | eval "$as_ac_var=yes" |
24968 | else |
24969 | echo "$as_me: failed program was:" >&5 |
24970 | sed 's/^/| /' conftest.$ac_ext >&5 |
24971 | |
24972 | eval "$as_ac_var=no" |
24973 | fi |
24974 | rm -f conftest.err conftest.$ac_objext \ |
24975 | conftest$ac_exeext conftest.$ac_ext |
24976 | fi |
24977 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
24978 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
24979 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
24980 | cat >>confdefs.h <<_ACEOF |
24981 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
24982 | _ACEOF |
24983 | |
24984 | fi |
24985 | done |
24986 | |
24987 | echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 |
24988 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6 |
24989 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then |
24990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
24991 | else |
24992 | ac_check_lib_save_LIBS=$LIBS |
24993 | LIBS="-lcrypt $LIBS" |
24994 | cat >conftest.$ac_ext <<_ACEOF |
24995 | /* confdefs.h. */ |
24996 | _ACEOF |
24997 | cat confdefs.h >>conftest.$ac_ext |
24998 | cat >>conftest.$ac_ext <<_ACEOF |
24999 | /* end confdefs.h. */ |
25000 | |
25001 | /* Override any gcc2 internal prototype to avoid an error. */ |
25002 | #ifdef __cplusplus |
25003 | extern "C" |
25004 | #endif |
25005 | /* We use char because int might match the return type of a gcc2 |
25006 | builtin and then its argument prototype would still apply. */ |
25007 | char crypt (); |
25008 | int |
25009 | main () |
25010 | { |
25011 | crypt (); |
25012 | ; |
25013 | return 0; |
25014 | } |
25015 | _ACEOF |
25016 | rm -f conftest.$ac_objext conftest$ac_exeext |
25017 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
25018 | (eval $ac_link) 2>conftest.er1 |
25019 | ac_status=$? |
25020 | grep -v '^ *+' conftest.er1 >conftest.err |
25021 | rm -f conftest.er1 |
25022 | cat conftest.err >&5 |
25023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25024 | (exit $ac_status); } && |
25025 | { ac_try='test -z "$ac_c_werror_flag" |
25026 | || test ! -s conftest.err' |
25027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25028 | (eval $ac_try) 2>&5 |
25029 | ac_status=$? |
25030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25031 | (exit $ac_status); }; } && |
25032 | { ac_try='test -s conftest$ac_exeext' |
25033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25034 | (eval $ac_try) 2>&5 |
25035 | ac_status=$? |
25036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25037 | (exit $ac_status); }; }; then |
25038 | ac_cv_lib_crypt_crypt=yes |
25039 | else |
25040 | echo "$as_me: failed program was:" >&5 |
25041 | sed 's/^/| /' conftest.$ac_ext >&5 |
25042 | |
25043 | ac_cv_lib_crypt_crypt=no |
25044 | fi |
25045 | rm -f conftest.err conftest.$ac_objext \ |
25046 | conftest$ac_exeext conftest.$ac_ext |
25047 | LIBS=$ac_check_lib_save_LIBS |
25048 | fi |
25049 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 |
25050 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6 |
25051 | if test $ac_cv_lib_crypt_crypt = yes; then |
25052 | CRYPTLIBS="-lcrypt" |
25053 | fi |
25054 | |
25055 | saveLIBS="$LIBS" |
25056 | LIBS="$CRYPTLIBS $LIBS" |
25057 | echo "$as_me:$LINENO: checking for crypt" >&5 |
25058 | echo $ECHO_N "checking for crypt... $ECHO_C" >&6 |
25059 | if test "${ac_cv_func_crypt+set}" = set; then |
25060 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
25061 | else |
25062 | cat >conftest.$ac_ext <<_ACEOF |
25063 | /* confdefs.h. */ |
25064 | _ACEOF |
25065 | cat confdefs.h >>conftest.$ac_ext |
25066 | cat >>conftest.$ac_ext <<_ACEOF |
25067 | /* end confdefs.h. */ |
25068 | /* Define crypt to an innocuous variant, in case <limits.h> declares crypt. |
25069 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
25070 | #define crypt innocuous_crypt |
25071 | |
25072 | /* System header to define __stub macros and hopefully few prototypes, |
25073 | which can conflict with char crypt (); below. |
25074 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
25075 | <limits.h> exists even on freestanding compilers. */ |
25076 | |
25077 | #ifdef __STDC__ |
25078 | # include <limits.h> |
25079 | #else |
25080 | # include <assert.h> |
25081 | #endif |
25082 | |
25083 | #undef crypt |
25084 | |
25085 | /* Override any gcc2 internal prototype to avoid an error. */ |
25086 | #ifdef __cplusplus |
25087 | extern "C" |
25088 | { |
25089 | #endif |
25090 | /* We use char because int might match the return type of a gcc2 |
25091 | builtin and then its argument prototype would still apply. */ |
25092 | char crypt (); |
25093 | /* The GNU C library defines this for functions which it implements |
25094 | to always fail with ENOSYS. Some functions are actually named |
25095 | something starting with __ and the normal name is an alias. */ |
25096 | #if defined (__stub_crypt) || defined (__stub___crypt) |
25097 | choke me |
25098 | #else |
25099 | char (*f) () = crypt; |
25100 | #endif |
25101 | #ifdef __cplusplus |
25102 | } |
25103 | #endif |
25104 | |
25105 | int |
25106 | main () |
25107 | { |
25108 | return f != crypt; |
25109 | ; |
25110 | return 0; |
25111 | } |
25112 | _ACEOF |
25113 | rm -f conftest.$ac_objext conftest$ac_exeext |
25114 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
25115 | (eval $ac_link) 2>conftest.er1 |
25116 | ac_status=$? |
25117 | grep -v '^ *+' conftest.er1 >conftest.err |
25118 | rm -f conftest.er1 |
25119 | cat conftest.err >&5 |
25120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25121 | (exit $ac_status); } && |
25122 | { ac_try='test -z "$ac_c_werror_flag" |
25123 | || test ! -s conftest.err' |
25124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25125 | (eval $ac_try) 2>&5 |
25126 | ac_status=$? |
25127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25128 | (exit $ac_status); }; } && |
25129 | { ac_try='test -s conftest$ac_exeext' |
25130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25131 | (eval $ac_try) 2>&5 |
25132 | ac_status=$? |
25133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25134 | (exit $ac_status); }; }; then |
25135 | ac_cv_func_crypt=yes |
25136 | else |
25137 | echo "$as_me: failed program was:" >&5 |
25138 | sed 's/^/| /' conftest.$ac_ext >&5 |
25139 | |
25140 | ac_cv_func_crypt=no |
25141 | fi |
25142 | rm -f conftest.err conftest.$ac_objext \ |
25143 | conftest$ac_exeext conftest.$ac_ext |
25144 | fi |
25145 | echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5 |
25146 | echo "${ECHO_T}$ac_cv_func_crypt" >&6 |
25147 | if test $ac_cv_func_crypt = yes; then |
25148 | |
25149 | cat >>confdefs.h <<_ACEOF |
25150 | #define HAVE_CRYPT 1 |
25151 | _ACEOF |
25152 | |
25153 | fi |
25154 | |
25155 | LIBS="$saveLIBS" |
25156 | echo "$as_me:$LINENO: checking for crypt() prototype" >&5 |
25157 | echo $ECHO_N "checking for crypt() prototype... $ECHO_C" >&6 |
25158 | if test "${userdb_cv_NEED_CRYPT_PROTOTYPE+set}" = set; then |
25159 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
25160 | else |
25161 | cat >conftest.$ac_ext <<_ACEOF |
25162 | /* confdefs.h. */ |
25163 | _ACEOF |
25164 | cat confdefs.h >>conftest.$ac_ext |
25165 | cat >>conftest.$ac_ext <<_ACEOF |
25166 | /* end confdefs.h. */ |
25167 | |
25168 | #if HAVE_CRYPT_H |
25169 | #include <crypt.h> |
25170 | #endif |
25171 | #if HAVE_UNISTD_H |
25172 | #include <unistd.h> |
25173 | #endif |
25174 | int crypt(int, int); |
25175 | |
25176 | |
25177 | int |
25178 | main () |
25179 | { |
25180 | |
25181 | ; |
25182 | return 0; |
25183 | } |
25184 | _ACEOF |
25185 | rm -f conftest.$ac_objext |
25186 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
25187 | (eval $ac_compile) 2>conftest.er1 |
25188 | ac_status=$? |
25189 | grep -v '^ *+' conftest.er1 >conftest.err |
25190 | rm -f conftest.er1 |
25191 | cat conftest.err >&5 |
25192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25193 | (exit $ac_status); } && |
25194 | { ac_try='test -z "$ac_c_werror_flag" |
25195 | || test ! -s conftest.err' |
25196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25197 | (eval $ac_try) 2>&5 |
25198 | ac_status=$? |
25199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25200 | (exit $ac_status); }; } && |
25201 | { ac_try='test -s conftest.$ac_objext' |
25202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25203 | (eval $ac_try) 2>&5 |
25204 | ac_status=$? |
25205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25206 | (exit $ac_status); }; }; then |
25207 | userdb_cv_NEED_CRYPT_PROTOTYPE=1 |
25208 | else |
25209 | echo "$as_me: failed program was:" >&5 |
25210 | sed 's/^/| /' conftest.$ac_ext >&5 |
25211 | |
25212 | userdb_cv_NEED_CRYPT_PROTOTYPE=0 |
25213 | fi |
25214 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
25215 | |
25216 | |
25217 | fi |
25218 | echo "$as_me:$LINENO: result: $userdb_cv_NEED_CRYPT_PROTOTYPE" >&5 |
25219 | echo "${ECHO_T}$userdb_cv_NEED_CRYPT_PROTOTYPE" >&6 |
25220 | |
25221 | |
25222 | cat >>confdefs.h <<_ACEOF |
25223 | #define NEED_CRYPT_PROTOTYPE $userdb_cv_NEED_CRYPT_PROTOTYPE |
25224 | _ACEOF |
25225 | |
25226 | |
25227 | |
25228 | |
25229 | |
25230 | |
25231 | |
25232 | # Check whether --with-authdaemonrc or --without-authdaemonrc was given. |
25233 | if test "${with_authdaemonrc+set}" = set; then |
25234 | withval="$with_authdaemonrc" |
25235 | authdaemonrc="$withval" |
25236 | else |
25237 | authdaemonrc="$pkgconfdir/authdaemonrc" |
25238 | fi; |
25239 | |
25240 | |
25241 | |
25242 | # Check whether --with-authdaemonvar or --without-authdaemonvar was given. |
25243 | if test "${with_authdaemonvar+set}" = set; then |
25244 | withval="$with_authdaemonvar" |
25245 | authdaemonvar="$withval" |
25246 | else |
25247 | authdaemonvar="$localstatedir/spool/authdaemon" |
25248 | fi; |
25249 | |
25250 | |
25251 | |
25252 | |
25253 | |
25254 | |
25255 | cat >>confdefs.h <<_ACEOF |
25256 | #define SASL_LIST $SASL_LIST |
25257 | _ACEOF |
25258 | |
25259 | |
25260 | rm -f authdaemonrc.h authldaprc.h authmysqlrc.h authpgsqlrc.h vpopmail_config.h |
25261 | |
25262 | |
25263 | |
25264 | result="" |
25265 | |
25266 | if test -x "$COURIERCONFIG" |
25267 | then |
25268 | $COURIERCONFIG >conftest.out || exit 1 |
25269 | sed -n '/^mail/p' <conftest.out >conftest2.out || exit 1 |
25270 | . conftest2.out |
25271 | rm -f conftest.out conftest2.out |
25272 | |
25273 | cmailuser="$mailuser" |
25274 | cmailgroup="$mailgroup" |
25275 | result=" (from courier-config)" |
25276 | fi |
25277 | |
25278 | if test -x "$bindir/courierauthconfig" |
25279 | then |
25280 | $bindir/courierauthconfig --configfiles >conftest.out || exit 1 |
25281 | sed -n '/^mail/p' <conftest.out >conftest2.out || exit 1 |
25282 | . conftest2.out |
25283 | rm -f conftest.out conftest2.out |
25284 | |
25285 | cmailuser="$mailuser" |
25286 | cmailgroup="$mailgroup" |
25287 | result=" (from previous courierauthconfig)" |
25288 | fi |
25289 | |
25290 | |
25291 | |
25292 | LB='[' |
25293 | RB=']' |
25294 | |
25295 | |
25296 | |
25297 | echo "$as_me:$LINENO: checking for mail userid" >&5 |
25298 | echo $ECHO_N "checking for mail userid... $ECHO_C" >&6 |
25299 | |
25300 | |
25301 | # Check whether --with-mailuser or --without-mailuser was given. |
25302 | if test "${with_mailuser+set}" = set; then |
25303 | withval="$with_mailuser" |
25304 | mailuser="$withval" |
25305 | else |
25306 | if test "$cmailuser" = "" |
25307 | then |
25308 | if test "$cross_compiling" = yes; then |
25309 | { { echo "$as_me:$LINENO: error: Must use --with-mailuser when cross compiling." >&5 |
25310 | echo "$as_me: error: Must use --with-mailuser when cross compiling." >&2;} |
25311 | { (exit 1); exit 1; }; } |
25312 | else |
25313 | cat >conftest.$ac_ext <<_ACEOF |
25314 | /* confdefs.h. */ |
25315 | _ACEOF |
25316 | cat confdefs.h >>conftest.$ac_ext |
25317 | cat >>conftest.$ac_ext <<_ACEOF |
25318 | /* end confdefs.h. */ |
25319 | |
25320 | #include <stdio.h> |
25321 | #include <pwd.h> |
25322 | #include <stdlib.h> |
25323 | |
25324 | static const char *ids $LB $RB={"courier","daemon","adm","bin","root", 0}; |
25325 | |
25326 | int main() |
25327 | { |
25328 | int i; |
25329 | FILE *f; |
25330 | char *p; |
25331 | |
25332 | for (i=0; ids $LB i $RB; i++) |
25333 | if (getpwnam(ids $LB i $RB)) break; |
25334 | |
25335 | f=fopen("conftest.out", "w"); |
25336 | if (f && ids $LB i $RB) |
25337 | { |
25338 | fprintf(f, "%s\n", ids $LB i $RB); |
25339 | fclose(f); |
25340 | exit(0); |
25341 | } |
25342 | fclose(f); |
25343 | exit (1); |
25344 | return (1); |
25345 | } |
25346 | |
25347 | _ACEOF |
25348 | rm -f conftest$ac_exeext |
25349 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
25350 | (eval $ac_link) 2>&5 |
25351 | ac_status=$? |
25352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25353 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
25354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25355 | (eval $ac_try) 2>&5 |
25356 | ac_status=$? |
25357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25358 | (exit $ac_status); }; }; then |
25359 | mailuser=`cat conftest.out` |
25360 | else |
25361 | echo "$as_me: program exited with status $ac_status" >&5 |
25362 | echo "$as_me: failed program was:" >&5 |
25363 | sed 's/^/| /' conftest.$ac_ext >&5 |
25364 | |
25365 | ( exit $ac_status ) |
25366 | { { echo "$as_me:$LINENO: error: Cannot determine mail user" >&5 |
25367 | echo "$as_me: error: Cannot determine mail user" >&2;} |
25368 | { (exit use --with-mailuser.); exit use --with-mailuser.; }; } |
25369 | fi |
25370 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
25371 | fi |
25372 | else |
25373 | mailuser="$cmailuser" |
25374 | fi |
25375 | ac_configure_args="$ac_configure_args --with-mailuser=$mailuser" |
25376 | fi; |
25377 | |
25378 | echo "$as_me:$LINENO: result: $mailuser $result" >&5 |
25379 | echo "${ECHO_T}$mailuser $result" >&6 |
25380 | |
25381 | echo "$as_me:$LINENO: checking for mail group id" >&5 |
25382 | echo $ECHO_N "checking for mail group id... $ECHO_C" >&6 |
25383 | |
25384 | |
25385 | # Check whether --with-mailgroup or --without-mailgroup was given. |
25386 | if test "${with_mailgroup+set}" = set; then |
25387 | withval="$with_mailgroup" |
25388 | mailgroup="$withval" |
25389 | else |
25390 | if test "$cmailgroup" = "" |
25391 | then |
25392 | if test "$cross_compiling" = yes; then |
25393 | { { echo "$as_me:$LINENO: error: Must use --with-mailgroup when cross compiling." >&5 |
25394 | echo "$as_me: error: Must use --with-mailgroup when cross compiling." >&2;} |
25395 | { (exit 1); exit 1; }; } |
25396 | else |
25397 | cat >conftest.$ac_ext <<_ACEOF |
25398 | /* confdefs.h. */ |
25399 | _ACEOF |
25400 | cat confdefs.h >>conftest.$ac_ext |
25401 | cat >>conftest.$ac_ext <<_ACEOF |
25402 | /* end confdefs.h. */ |
25403 | |
25404 | #include <stdio.h> |
25405 | #include <grp.h> |
25406 | #include <stdlib.h> |
25407 | |
25408 | static const char *ids $LB $RB={"courier", "daemon","sys","adm", "root", 0}; |
25409 | |
25410 | int main() |
25411 | { |
25412 | int i; |
25413 | FILE *f; |
25414 | |
25415 | for (i=0; ids $LB i $RB; i++) |
25416 | if (getgrnam(ids $LB i $RB)) break; |
25417 | |
25418 | f=fopen("conftest.out", "w"); |
25419 | if (f && ids $LB i $RB) |
25420 | { |
25421 | fprintf(f, "%s\n", ids $LB i $RB); |
25422 | fclose(f); |
25423 | exit(0); |
25424 | } |
25425 | fclose(f); |
25426 | exit (1); |
25427 | return (1); |
25428 | } |
25429 | |
25430 | _ACEOF |
25431 | rm -f conftest$ac_exeext |
25432 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
25433 | (eval $ac_link) 2>&5 |
25434 | ac_status=$? |
25435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25436 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
25437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25438 | (eval $ac_try) 2>&5 |
25439 | ac_status=$? |
25440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25441 | (exit $ac_status); }; }; then |
25442 | mailgroup=`cat conftest.out` |
25443 | else |
25444 | echo "$as_me: program exited with status $ac_status" >&5 |
25445 | echo "$as_me: failed program was:" >&5 |
25446 | sed 's/^/| /' conftest.$ac_ext >&5 |
25447 | |
25448 | ( exit $ac_status ) |
25449 | { { echo "$as_me:$LINENO: error: Cannot determine mail group" >&5 |
25450 | echo "$as_me: error: Cannot determine mail group" >&2;} |
25451 | { (exit use --with-mailgroup.); exit use --with-mailgroup.; }; } |
25452 | fi |
25453 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
25454 | fi |
25455 | else |
25456 | mailgroup="$cmailgroup" |
25457 | fi |
25458 | ac_configure_args="$ac_configure_args --with-mailgroup=$mailgroup" |
25459 | |
25460 | fi; |
25461 | echo "$as_me:$LINENO: result: $mailgroup $result" >&5 |
25462 | echo "${ECHO_T}$mailgroup $result" >&6 |
25463 | |
25464 | |
25465 | rm -f conftest.out |
25466 | |
25467 | |
25468 | # Check whether --with-stdheaderdir or --without-stdheaderdir was given. |
25469 | if test "${with_stdheaderdir+set}" = set; then |
25470 | withval="$with_stdheaderdir" |
25471 | |
25472 | if test "$withval" = "no" |
25473 | then |
25474 | |
25475 | cat >>confdefs.h <<_ACEOF |
25476 | #define HAVE_NOSTDHEADERDIR 1 |
25477 | _ACEOF |
25478 | |
25479 | fi |
25480 | |
25481 | fi; |
25482 | |
25483 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
25484 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 |
25485 | if test "${authlib_cv_hassocklen_t+set}" = set; then |
25486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
25487 | else |
25488 | cat >conftest.$ac_ext <<_ACEOF |
25489 | /* confdefs.h. */ |
25490 | _ACEOF |
25491 | cat confdefs.h >>conftest.$ac_ext |
25492 | cat >>conftest.$ac_ext <<_ACEOF |
25493 | /* end confdefs.h. */ |
25494 | |
25495 | #include <sys/types.h> |
25496 | #include <sys/socket.h> |
25497 | |
25498 | socklen_t sl_t; |
25499 | |
25500 | _ACEOF |
25501 | rm -f conftest.$ac_objext |
25502 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
25503 | (eval $ac_compile) 2>conftest.er1 |
25504 | ac_status=$? |
25505 | grep -v '^ *+' conftest.er1 >conftest.err |
25506 | rm -f conftest.er1 |
25507 | cat conftest.err >&5 |
25508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25509 | (exit $ac_status); } && |
25510 | { ac_try='test -z "$ac_c_werror_flag" |
25511 | || test ! -s conftest.err' |
25512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25513 | (eval $ac_try) 2>&5 |
25514 | ac_status=$? |
25515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25516 | (exit $ac_status); }; } && |
25517 | { ac_try='test -s conftest.$ac_objext' |
25518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25519 | (eval $ac_try) 2>&5 |
25520 | ac_status=$? |
25521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25522 | (exit $ac_status); }; }; then |
25523 | authlib_cv_hassocklen_t=yes |
25524 | else |
25525 | echo "$as_me: failed program was:" >&5 |
25526 | sed 's/^/| /' conftest.$ac_ext >&5 |
25527 | |
25528 | authlib_cv_hassocklen_t=no |
25529 | fi |
25530 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
25531 | |
25532 | fi |
25533 | echo "$as_me:$LINENO: result: $authlib_cv_hassocklen_t" >&5 |
25534 | echo "${ECHO_T}$authlib_cv_hassocklen_t" >&6 |
25535 | |
25536 | socklen_t="int" |
25537 | |
25538 | if test $authlib_cv_hassocklen_t = yes |
25539 | then |
25540 | : |
25541 | else |
25542 | |
25543 | cat >>confdefs.h <<_ACEOF |
25544 | #define socklen_t int |
25545 | _ACEOF |
25546 | |
25547 | fi |
25548 | |
25549 | if test x"$enable_ltdl_install" = x"yes" |
25550 | then |
25551 | LIBLTDL_SUBDIR=libltdl |
25552 | fi |
25553 | |
25554 | |
25555 | |
25556 | |
25557 | # Check whether --with-repository or --without-repository was given. |
25558 | if test "${with_repository+set}" = set; then |
25559 | withval="$with_repository" |
25560 | REPOSITORY="$withval" |
25561 | fi; |
25562 | |
25563 | |
25564 | |
25565 | |
25566 | if test -d ${srcdir}/docbook; then |
25567 | HAVE_SGML_TRUE= |
25568 | HAVE_SGML_FALSE='#' |
25569 | else |
25570 | HAVE_SGML_TRUE='#' |
25571 | HAVE_SGML_FALSE= |
25572 | fi |
25573 | |
25574 | |
25575 | |
25576 | subdirs="$subdirs libltdl bdbobj gdbmobj md5 sha1 libhmac numlib makedat userdb rfc822 random128 liblock liblog" |
25577 | |
25578 | |
25579 | ac_config_files="$ac_config_files Makefile authdaemond authdaemonrc authsystem.passwd README.authdebug.html dbobj.h authmigrate courier-authlib.spec courier-authlib.lpspec courier-authlib.sysvinit userdb-test-cram-md5.pl" |
25580 | |
25581 | cat >confcache <<\_ACEOF |
25582 | # This file is a shell script that caches the results of configure |
25583 | # tests run on this system so they can be shared between configure |
25584 | # scripts and configure runs, see configure's option --config-cache. |
25585 | # It is not useful on other systems. If it contains results you don't |
25586 | # want to keep, you may remove or edit it. |
25587 | # |
25588 | # config.status only pays attention to the cache file if you give it |
25589 | # the --recheck option to rerun configure. |
25590 | # |
25591 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
25592 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
25593 | # following values. |
25594 | |
25595 | _ACEOF |
25596 | |
25597 | # The following way of writing the cache mishandles newlines in values, |
25598 | # but we know of no workaround that is simple, portable, and efficient. |
25599 | # So, don't put newlines in cache variables' values. |
25600 | # Ultrix sh set writes to stderr and can't be redirected directly, |
25601 | # and sets the high bit in the cache file unless we assign to the vars. |
25602 | { |
25603 | (set) 2>&1 | |
25604 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
25605 | *ac_space=\ *) |
25606 | # `set' does not quote correctly, so add quotes (double-quote |
25607 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
25608 | sed -n \ |
25609 | "s/'/'\\\\''/g; |
25610 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
25611 | ;; |
25612 | *) |
25613 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
25614 | sed -n \ |
25615 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
25616 | ;; |
25617 | esac; |
25618 | } | |
25619 | sed ' |
25620 | t clear |
25621 | : clear |
25622 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
25623 | t end |
25624 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
25625 | : end' >>confcache |
25626 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
25627 | if test -w $cache_file; then |
25628 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
25629 | cat confcache >$cache_file |
25630 | else |
25631 | echo "not updating unwritable cache $cache_file" |
25632 | fi |
25633 | fi |
25634 | rm -f confcache |
25635 | |
25636 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
25637 | # Let make expand exec_prefix. |
25638 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
25639 | |
25640 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
25641 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
25642 | # trailing colons and then remove the whole line if VPATH becomes empty |
25643 | # (actually we leave an empty line to preserve line numbers). |
25644 | if test "x$srcdir" = x.; then |
25645 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
25646 | s/:*\$(srcdir):*/:/; |
25647 | s/:*\${srcdir}:*/:/; |
25648 | s/:*@srcdir@:*/:/; |
25649 | s/^\([^=]*=[ ]*\):*/\1/; |
25650 | s/:*$//; |
25651 | s/^[^=]*=[ ]*$//; |
25652 | }' |
25653 | fi |
25654 | |
25655 | DEFS=-DHAVE_CONFIG_H |
25656 | |
25657 | ac_libobjs= |
25658 | ac_ltlibobjs= |
25659 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
25660 | # 1. Remove the extension, and $U if already installed. |
25661 | ac_i=`echo "$ac_i" | |
25662 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
25663 | # 2. Add them. |
25664 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
25665 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
25666 | done |
25667 | LIBOBJS=$ac_libobjs |
25668 | |
25669 | LTLIBOBJS=$ac_ltlibobjs |
25670 | |
25671 | |
25672 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
25673 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
25674 | Usually this means the macro was only invoked conditionally." >&5 |
25675 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
25676 | Usually this means the macro was only invoked conditionally." >&2;} |
25677 | { (exit 1); exit 1; }; } |
25678 | fi |
25679 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
25680 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
25681 | Usually this means the macro was only invoked conditionally." >&5 |
25682 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
25683 | Usually this means the macro was only invoked conditionally." >&2;} |
25684 | { (exit 1); exit 1; }; } |
25685 | fi |
25686 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
25687 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
25688 | Usually this means the macro was only invoked conditionally." >&5 |
25689 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
25690 | Usually this means the macro was only invoked conditionally." >&2;} |
25691 | { (exit 1); exit 1; }; } |
25692 | fi |
25693 | if test -z "${HAVE_MD5_TRUE}" && test -z "${HAVE_MD5_FALSE}"; then |
25694 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_MD5\" was never defined. |
25695 | Usually this means the macro was only invoked conditionally." >&5 |
25696 | echo "$as_me: error: conditional \"HAVE_MD5\" was never defined. |
25697 | Usually this means the macro was only invoked conditionally." >&2;} |
25698 | { (exit 1); exit 1; }; } |
25699 | fi |
25700 | if test -z "${HAVE_SHA1_TRUE}" && test -z "${HAVE_SHA1_FALSE}"; then |
25701 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_SHA1\" was never defined. |
25702 | Usually this means the macro was only invoked conditionally." >&5 |
25703 | echo "$as_me: error: conditional \"HAVE_SHA1\" was never defined. |
25704 | Usually this means the macro was only invoked conditionally." >&2;} |
25705 | { (exit 1); exit 1; }; } |
25706 | fi |
25707 | if test -z "${HAVE_HMACLIB_TRUE}" && test -z "${HAVE_HMACLIB_FALSE}"; then |
25708 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_HMACLIB\" was never defined. |
25709 | Usually this means the macro was only invoked conditionally." >&5 |
25710 | echo "$as_me: error: conditional \"HAVE_HMACLIB\" was never defined. |
25711 | Usually this means the macro was only invoked conditionally." >&2;} |
25712 | { (exit 1); exit 1; }; } |
25713 | fi |
25714 | if test -z "${HAVE_LDAP_TRUE}" && test -z "${HAVE_LDAP_FALSE}"; then |
25715 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_LDAP\" was never defined. |
25716 | Usually this means the macro was only invoked conditionally." >&5 |
25717 | echo "$as_me: error: conditional \"HAVE_LDAP\" was never defined. |
25718 | Usually this means the macro was only invoked conditionally." >&2;} |
25719 | { (exit 1); exit 1; }; } |
25720 | fi |
25721 | if test -z "${HAVE_AUTHPGSQL_TRUE}" && test -z "${HAVE_AUTHPGSQL_FALSE}"; then |
25722 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_AUTHPGSQL\" was never defined. |
25723 | Usually this means the macro was only invoked conditionally." >&5 |
25724 | echo "$as_me: error: conditional \"HAVE_AUTHPGSQL\" was never defined. |
25725 | Usually this means the macro was only invoked conditionally." >&2;} |
25726 | { (exit 1); exit 1; }; } |
25727 | fi |
25728 | if test -z "${HAVE_AUTHMYSQL_TRUE}" && test -z "${HAVE_AUTHMYSQL_FALSE}"; then |
25729 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_AUTHMYSQL\" was never defined. |
25730 | Usually this means the macro was only invoked conditionally." >&5 |
25731 | echo "$as_me: error: conditional \"HAVE_AUTHMYSQL\" was never defined. |
25732 | Usually this means the macro was only invoked conditionally." >&2;} |
25733 | { (exit 1); exit 1; }; } |
25734 | fi |
25735 | if test -z "${HAVE_CUSTOM_TRUE}" && test -z "${HAVE_CUSTOM_FALSE}"; then |
25736 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_CUSTOM\" was never defined. |
25737 | Usually this means the macro was only invoked conditionally." >&5 |
25738 | echo "$as_me: error: conditional \"HAVE_CUSTOM\" was never defined. |
25739 | Usually this means the macro was only invoked conditionally." >&2;} |
25740 | { (exit 1); exit 1; }; } |
25741 | fi |
25742 | if test -z "${HAVE_PIPE_TRUE}" && test -z "${HAVE_PIPE_FALSE}"; then |
25743 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_PIPE\" was never defined. |
25744 | Usually this means the macro was only invoked conditionally." >&5 |
25745 | echo "$as_me: error: conditional \"HAVE_PIPE\" was never defined. |
25746 | Usually this means the macro was only invoked conditionally." >&2;} |
25747 | { (exit 1); exit 1; }; } |
25748 | fi |
25749 | if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then |
25750 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_SGML\" was never defined. |
25751 | Usually this means the macro was only invoked conditionally." >&5 |
25752 | echo "$as_me: error: conditional \"HAVE_SGML\" was never defined. |
25753 | Usually this means the macro was only invoked conditionally." >&2;} |
25754 | { (exit 1); exit 1; }; } |
25755 | fi |
25756 | |
25757 | : ${CONFIG_STATUS=./config.status} |
25758 | ac_clean_files_save=$ac_clean_files |
25759 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
25760 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
25761 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
25762 | cat >$CONFIG_STATUS <<_ACEOF |
25763 | #! $SHELL |
25764 | # Generated by $as_me. |
25765 | # Run this file to recreate the current configuration. |
25766 | # Compiler output produced by configure, useful for debugging |
25767 | # configure, is in config.log if it exists. |
25768 | |
25769 | debug=false |
25770 | ac_cs_recheck=false |
25771 | ac_cs_silent=false |
25772 | SHELL=\${CONFIG_SHELL-$SHELL} |
25773 | _ACEOF |
25774 | |
25775 | cat >>$CONFIG_STATUS <<\_ACEOF |
25776 | ## --------------------- ## |
25777 | ## M4sh Initialization. ## |
25778 | ## --------------------- ## |
25779 | |
25780 | # Be Bourne compatible |
25781 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
25782 | emulate sh |
25783 | NULLCMD=: |
25784 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
25785 | # is contrary to our usage. Disable this feature. |
25786 | alias -g '${1+"$@"}'='"$@"' |
25787 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
25788 | set -o posix |
25789 | fi |
25790 | DUALCASE=1; export DUALCASE # for MKS sh |
25791 | |
25792 | # Support unset when possible. |
25793 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
25794 | as_unset=unset |
25795 | else |
25796 | as_unset=false |
25797 | fi |
25798 | |
25799 | |
25800 | # Work around bugs in pre-3.0 UWIN ksh. |
25801 | $as_unset ENV MAIL MAILPATH |
25802 | PS1='$ ' |
25803 | PS2='> ' |
25804 | PS4='+ ' |
25805 | |
25806 | # NLS nuisances. |
25807 | for as_var in \ |
25808 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
25809 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
25810 | LC_TELEPHONE LC_TIME |
25811 | do |
25812 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
25813 | eval $as_var=C; export $as_var |
25814 | else |
25815 | $as_unset $as_var |
25816 | fi |
25817 | done |
25818 | |
25819 | # Required to use basename. |
25820 | if expr a : '\(a\)' >/dev/null 2>&1; then |
25821 | as_expr=expr |
25822 | else |
25823 | as_expr=false |
25824 | fi |
25825 | |
25826 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
25827 | as_basename=basename |
25828 | else |
25829 | as_basename=false |
25830 | fi |
25831 | |
25832 | |
25833 | # Name of the executable. |
25834 | as_me=`$as_basename "$0" || |
25835 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
25836 | X"$0" : 'X\(//\)$' \| \ |
25837 | X"$0" : 'X\(/\)$' \| \ |
25838 | . : '\(.\)' 2>/dev/null || |
25839 | echo X/"$0" | |
25840 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
25841 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
25842 | /^X\/\(\/\).*/{ s//\1/; q; } |
25843 | s/.*/./; q'` |
25844 | |
25845 | |
25846 | # PATH needs CR, and LINENO needs CR and PATH. |
25847 | # Avoid depending upon Character Ranges. |
25848 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
25849 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
25850 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
25851 | as_cr_digits='0123456789' |
25852 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
25853 | |
25854 | # The user is always right. |
25855 | if test "${PATH_SEPARATOR+set}" != set; then |
25856 | echo "#! /bin/sh" >conf$$.sh |
25857 | echo "exit 0" >>conf$$.sh |
25858 | chmod +x conf$$.sh |
25859 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
25860 | PATH_SEPARATOR=';' |
25861 | else |
25862 | PATH_SEPARATOR=: |
25863 | fi |
25864 | rm -f conf$$.sh |
25865 | fi |
25866 | |
25867 | |
25868 | as_lineno_1=$LINENO |
25869 | as_lineno_2=$LINENO |
25870 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
25871 | test "x$as_lineno_1" != "x$as_lineno_2" && |
25872 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
25873 | # Find who we are. Look in the path if we contain no path at all |
25874 | # relative or not. |
25875 | case $0 in |
25876 | *[\\/]* ) as_myself=$0 ;; |
25877 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25878 | for as_dir in $PATH |
25879 | do |
25880 | IFS=$as_save_IFS |
25881 | test -z "$as_dir" && as_dir=. |
25882 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
25883 | done |
25884 | |
25885 | ;; |
25886 | esac |
25887 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
25888 | # in which case we are not to be found in the path. |
25889 | if test "x$as_myself" = x; then |
25890 | as_myself=$0 |
25891 | fi |
25892 | if test ! -f "$as_myself"; then |
25893 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
25894 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
25895 | { (exit 1); exit 1; }; } |
25896 | fi |
25897 | case $CONFIG_SHELL in |
25898 | '') |
25899 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25900 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
25901 | do |
25902 | IFS=$as_save_IFS |
25903 | test -z "$as_dir" && as_dir=. |
25904 | for as_base in sh bash ksh sh5; do |
25905 | case $as_dir in |
25906 | /*) |
25907 | if ("$as_dir/$as_base" -c ' |
25908 | as_lineno_1=$LINENO |
25909 | as_lineno_2=$LINENO |
25910 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
25911 | test "x$as_lineno_1" != "x$as_lineno_2" && |
25912 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
25913 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
25914 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
25915 | CONFIG_SHELL=$as_dir/$as_base |
25916 | export CONFIG_SHELL |
25917 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
25918 | fi;; |
25919 | esac |
25920 | done |
25921 | done |
25922 | ;; |
25923 | esac |
25924 | |
25925 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
25926 | # uniformly replaced by the line number. The first 'sed' inserts a |
25927 | # line-number line before each line; the second 'sed' does the real |
25928 | # work. The second script uses 'N' to pair each line-number line |
25929 | # with the numbered line, and appends trailing '-' during |
25930 | # substitution so that $LINENO is not a special case at line end. |
25931 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
25932 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
25933 | sed '=' <$as_myself | |
25934 | sed ' |
25935 | N |
25936 | s,$,-, |
25937 | : loop |
25938 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
25939 | t loop |
25940 | s,-$,, |
25941 | s,^['$as_cr_digits']*\n,, |
25942 | ' >$as_me.lineno && |
25943 | chmod +x $as_me.lineno || |
25944 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
25945 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
25946 | { (exit 1); exit 1; }; } |
25947 | |
25948 | # Don't try to exec as it changes $[0], causing all sort of problems |
25949 | # (the dirname of $[0] is not the place where we might find the |
25950 | # original and so on. Autoconf is especially sensible to this). |
25951 | . ./$as_me.lineno |
25952 | # Exit status is that of the last command. |
25953 | exit |
25954 | } |
25955 | |
25956 | |
25957 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
25958 | *c*,-n*) ECHO_N= ECHO_C=' |
25959 | ' ECHO_T=' ' ;; |
25960 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
25961 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
25962 | esac |
25963 | |
25964 | if expr a : '\(a\)' >/dev/null 2>&1; then |
25965 | as_expr=expr |
25966 | else |
25967 | as_expr=false |
25968 | fi |
25969 | |
25970 | rm -f conf$$ conf$$.exe conf$$.file |
25971 | echo >conf$$.file |
25972 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
25973 | # We could just check for DJGPP; but this test a) works b) is more generic |
25974 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
25975 | if test -f conf$$.exe; then |
25976 | # Don't use ln at all; we don't have any links |
25977 | as_ln_s='cp -p' |
25978 | else |
25979 | as_ln_s='ln -s' |
25980 | fi |
25981 | elif ln conf$$.file conf$$ 2>/dev/null; then |
25982 | as_ln_s=ln |
25983 | else |
25984 | as_ln_s='cp -p' |
25985 | fi |
25986 | rm -f conf$$ conf$$.exe conf$$.file |
25987 | |
25988 | if mkdir -p . 2>/dev/null; then |
25989 | as_mkdir_p=: |
25990 | else |
25991 | test -d ./-p && rmdir ./-p |
25992 | as_mkdir_p=false |
25993 | fi |
25994 | |
25995 | as_executable_p="test -f" |
25996 | |
25997 | # Sed expression to map a string onto a valid CPP name. |
25998 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
25999 | |
26000 | # Sed expression to map a string onto a valid variable name. |
26001 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
26002 | |
26003 | |
26004 | # IFS |
26005 | # We need space, tab and new line, in precisely that order. |
26006 | as_nl=' |
26007 | ' |
26008 | IFS=" $as_nl" |
26009 | |
26010 | # CDPATH. |
26011 | $as_unset CDPATH |
26012 | |
26013 | exec 6>&1 |
26014 | |
26015 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
26016 | # report actual input values of CONFIG_FILES etc. instead of their |
26017 | # values after options handling. Logging --version etc. is OK. |
26018 | exec 5>>config.log |
26019 | { |
26020 | echo |
26021 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
26022 | ## Running $as_me. ## |
26023 | _ASBOX |
26024 | } >&5 |
26025 | cat >&5 <<_CSEOF |
26026 | |
26027 | This file was extended by courier-authlib $as_me 0.59.3, which was |
26028 | generated by GNU Autoconf 2.59. Invocation command line was |
26029 | |
26030 | CONFIG_FILES = $CONFIG_FILES |
26031 | CONFIG_HEADERS = $CONFIG_HEADERS |
26032 | CONFIG_LINKS = $CONFIG_LINKS |
26033 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
26034 | $ $0 $@ |
26035 | |
26036 | _CSEOF |
26037 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
26038 | echo >&5 |
26039 | _ACEOF |
26040 | |
26041 | # Files that config.status was made for. |
26042 | if test -n "$ac_config_files"; then |
26043 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
26044 | fi |
26045 | |
26046 | if test -n "$ac_config_headers"; then |
26047 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
26048 | fi |
26049 | |
26050 | if test -n "$ac_config_links"; then |
26051 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
26052 | fi |
26053 | |
26054 | if test -n "$ac_config_commands"; then |
26055 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
26056 | fi |
26057 | |
26058 | cat >>$CONFIG_STATUS <<\_ACEOF |
26059 | |
26060 | ac_cs_usage="\ |
26061 | \`$as_me' instantiates files from templates according to the |
26062 | current configuration. |
26063 | |
26064 | Usage: $0 [OPTIONS] [FILE]... |
26065 | |
26066 | -h, --help print this help, then exit |
26067 | -V, --version print version number, then exit |
26068 | -q, --quiet do not print progress messages |
26069 | -d, --debug don't remove temporary files |
26070 | --recheck update $as_me by reconfiguring in the same conditions |
26071 | --file=FILE[:TEMPLATE] |
26072 | instantiate the configuration file FILE |
26073 | --header=FILE[:TEMPLATE] |
26074 | instantiate the configuration header FILE |
26075 | |
26076 | Configuration files: |
26077 | $config_files |
26078 | |
26079 | Configuration headers: |
26080 | $config_headers |
26081 | |
26082 | Configuration commands: |
26083 | $config_commands |
26084 | |
26085 | Report bugs to <bug-autoconf@gnu.org>." |
26086 | _ACEOF |
26087 | |
26088 | cat >>$CONFIG_STATUS <<_ACEOF |
26089 | ac_cs_version="\\ |
26090 | courier-authlib config.status 0.59.3 |
26091 | configured by $0, generated by GNU Autoconf 2.59, |
26092 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
26093 | |
26094 | Copyright (C) 2003 Free Software Foundation, Inc. |
26095 | This config.status script is free software; the Free Software Foundation |
26096 | gives unlimited permission to copy, distribute and modify it." |
26097 | srcdir=$srcdir |
26098 | INSTALL="$INSTALL" |
26099 | _ACEOF |
26100 | |
26101 | cat >>$CONFIG_STATUS <<\_ACEOF |
26102 | # If no file are specified by the user, then we need to provide default |
26103 | # value. By we need to know if files were specified by the user. |
26104 | ac_need_defaults=: |
26105 | while test $# != 0 |
26106 | do |
26107 | case $1 in |
26108 | --*=*) |
26109 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
26110 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
26111 | ac_shift=: |
26112 | ;; |
26113 | -*) |
26114 | ac_option=$1 |
26115 | ac_optarg=$2 |
26116 | ac_shift=shift |
26117 | ;; |
26118 | *) # This is not an option, so the user has probably given explicit |
26119 | # arguments. |
26120 | ac_option=$1 |
26121 | ac_need_defaults=false;; |
26122 | esac |
26123 | |
26124 | case $ac_option in |
26125 | # Handling of the options. |
26126 | _ACEOF |
26127 | cat >>$CONFIG_STATUS <<\_ACEOF |
26128 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
26129 | ac_cs_recheck=: ;; |
26130 | --version | --vers* | -V ) |
26131 | echo "$ac_cs_version"; exit 0 ;; |
26132 | --he | --h) |
26133 | # Conflict between --help and --header |
26134 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
26135 | Try \`$0 --help' for more information." >&5 |
26136 | echo "$as_me: error: ambiguous option: $1 |
26137 | Try \`$0 --help' for more information." >&2;} |
26138 | { (exit 1); exit 1; }; };; |
26139 | --help | --hel | -h ) |
26140 | echo "$ac_cs_usage"; exit 0 ;; |
26141 | --debug | --d* | -d ) |
26142 | debug=: ;; |
26143 | --file | --fil | --fi | --f ) |
26144 | $ac_shift |
26145 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
26146 | ac_need_defaults=false;; |
26147 | --header | --heade | --head | --hea ) |
26148 | $ac_shift |
26149 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
26150 | ac_need_defaults=false;; |
26151 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
26152 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
26153 | ac_cs_silent=: ;; |
26154 | |
26155 | # This is an error. |
26156 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
26157 | Try \`$0 --help' for more information." >&5 |
26158 | echo "$as_me: error: unrecognized option: $1 |
26159 | Try \`$0 --help' for more information." >&2;} |
26160 | { (exit 1); exit 1; }; } ;; |
26161 | |
26162 | *) ac_config_targets="$ac_config_targets $1" ;; |
26163 | |
26164 | esac |
26165 | shift |
26166 | done |
26167 | |
26168 | ac_configure_extra_args= |
26169 | |
26170 | if $ac_cs_silent; then |
26171 | exec 6>/dev/null |
26172 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
26173 | fi |
26174 | |
26175 | _ACEOF |
26176 | cat >>$CONFIG_STATUS <<_ACEOF |
26177 | if \$ac_cs_recheck; then |
26178 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
26179 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
26180 | fi |
26181 | |
26182 | _ACEOF |
26183 | |
26184 | cat >>$CONFIG_STATUS <<_ACEOF |
26185 | # |
26186 | # INIT-COMMANDS section. |
26187 | # |
26188 | |
26189 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
26190 | |
26191 | _ACEOF |
26192 | |
26193 | |
26194 | |
26195 | cat >>$CONFIG_STATUS <<\_ACEOF |
26196 | for ac_config_target in $ac_config_targets |
26197 | do |
26198 | case "$ac_config_target" in |
26199 | # Handling of arguments. |
26200 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
26201 | "authdaemond" ) CONFIG_FILES="$CONFIG_FILES authdaemond" ;; |
26202 | "authdaemonrc" ) CONFIG_FILES="$CONFIG_FILES authdaemonrc" ;; |
26203 | "authsystem.passwd" ) CONFIG_FILES="$CONFIG_FILES authsystem.passwd" ;; |
26204 | "README.authdebug.html" ) CONFIG_FILES="$CONFIG_FILES README.authdebug.html" ;; |
26205 | "dbobj.h" ) CONFIG_FILES="$CONFIG_FILES dbobj.h" ;; |
26206 | "authmigrate" ) CONFIG_FILES="$CONFIG_FILES authmigrate" ;; |
26207 | "courier-authlib.spec" ) CONFIG_FILES="$CONFIG_FILES courier-authlib.spec" ;; |
26208 | "courier-authlib.lpspec" ) CONFIG_FILES="$CONFIG_FILES courier-authlib.lpspec" ;; |
26209 | "courier-authlib.sysvinit" ) CONFIG_FILES="$CONFIG_FILES courier-authlib.sysvinit" ;; |
26210 | "userdb-test-cram-md5.pl" ) CONFIG_FILES="$CONFIG_FILES userdb-test-cram-md5.pl" ;; |
26211 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
26212 | "courier_auth_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS courier_auth_config.h" ;; |
26213 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
26214 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
26215 | { (exit 1); exit 1; }; };; |
26216 | esac |
26217 | done |
26218 | |
26219 | # If the user did not use the arguments to specify the items to instantiate, |
26220 | # then the envvar interface is used. Set only those that are not. |
26221 | # We use the long form for the default assignment because of an extremely |
26222 | # bizarre bug on SunOS 4.1.3. |
26223 | if $ac_need_defaults; then |
26224 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
26225 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
26226 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
26227 | fi |
26228 | |
26229 | # Have a temporary directory for convenience. Make it in the build tree |
26230 | # simply because there is no reason to put it here, and in addition, |
26231 | # creating and moving files from /tmp can sometimes cause problems. |
26232 | # Create a temporary directory, and hook for its removal unless debugging. |
26233 | $debug || |
26234 | { |
26235 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
26236 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
26237 | } |
26238 | |
26239 | # Create a (secure) tmp directory for tmp files. |
26240 | |
26241 | { |
26242 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
26243 | test -n "$tmp" && test -d "$tmp" |
26244 | } || |
26245 | { |
26246 | tmp=./confstat$$-$RANDOM |
26247 | (umask 077 && mkdir $tmp) |
26248 | } || |
26249 | { |
26250 | echo "$me: cannot create a temporary directory in ." >&2 |
26251 | { (exit 1); exit 1; } |
26252 | } |
26253 | |
26254 | _ACEOF |
26255 | |
26256 | cat >>$CONFIG_STATUS <<_ACEOF |
26257 | |
26258 | # |
26259 | # CONFIG_FILES section. |
26260 | # |
26261 | |
26262 | # No need to generate the scripts if there are no CONFIG_FILES. |
26263 | # This happens for instance when ./config.status config.h |
26264 | if test -n "\$CONFIG_FILES"; then |
26265 | # Protect against being on the right side of a sed subst in config.status. |
26266 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
26267 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
26268 | s,@SHELL@,$SHELL,;t t |
26269 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
26270 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
26271 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
26272 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
26273 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
26274 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
26275 | s,@exec_prefix@,$exec_prefix,;t t |
26276 | s,@prefix@,$prefix,;t t |
26277 | s,@program_transform_name@,$program_transform_name,;t t |
26278 | s,@bindir@,$bindir,;t t |
26279 | s,@sbindir@,$sbindir,;t t |
26280 | s,@libexecdir@,$libexecdir,;t t |
26281 | s,@datadir@,$datadir,;t t |
26282 | s,@sysconfdir@,$sysconfdir,;t t |
26283 | s,@sharedstatedir@,$sharedstatedir,;t t |
26284 | s,@localstatedir@,$localstatedir,;t t |
26285 | s,@libdir@,$libdir,;t t |
26286 | s,@includedir@,$includedir,;t t |
26287 | s,@oldincludedir@,$oldincludedir,;t t |
26288 | s,@infodir@,$infodir,;t t |
26289 | s,@mandir@,$mandir,;t t |
26290 | s,@build_alias@,$build_alias,;t t |
26291 | s,@host_alias@,$host_alias,;t t |
26292 | s,@target_alias@,$target_alias,;t t |
26293 | s,@DEFS@,$DEFS,;t t |
26294 | s,@ECHO_C@,$ECHO_C,;t t |
26295 | s,@ECHO_N@,$ECHO_N,;t t |
26296 | s,@ECHO_T@,$ECHO_T,;t t |
26297 | s,@LIBS@,$LIBS,;t t |
26298 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
26299 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
26300 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
26301 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
26302 | s,@PACKAGE@,$PACKAGE,;t t |
26303 | s,@VERSION@,$VERSION,;t t |
26304 | s,@ACLOCAL@,$ACLOCAL,;t t |
26305 | s,@AUTOCONF@,$AUTOCONF,;t t |
26306 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
26307 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
26308 | s,@MAKEINFO@,$MAKEINFO,;t t |
26309 | s,@install_sh@,$install_sh,;t t |
26310 | s,@STRIP@,$STRIP,;t t |
26311 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
26312 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
26313 | s,@mkdir_p@,$mkdir_p,;t t |
26314 | s,@AWK@,$AWK,;t t |
26315 | s,@SET_MAKE@,$SET_MAKE,;t t |
26316 | s,@am__leading_dot@,$am__leading_dot,;t t |
26317 | s,@AMTAR@,$AMTAR,;t t |
26318 | s,@am__tar@,$am__tar,;t t |
26319 | s,@am__untar@,$am__untar,;t t |
26320 | s,@CC@,$CC,;t t |
26321 | s,@CFLAGS@,$CFLAGS,;t t |
26322 | s,@LDFLAGS@,$LDFLAGS,;t t |
26323 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
26324 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
26325 | s,@EXEEXT@,$EXEEXT,;t t |
26326 | s,@OBJEXT@,$OBJEXT,;t t |
26327 | s,@DEPDIR@,$DEPDIR,;t t |
26328 | s,@am__include@,$am__include,;t t |
26329 | s,@am__quote@,$am__quote,;t t |
26330 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
26331 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
26332 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
26333 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
26334 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
26335 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
26336 | s,@CPP@,$CPP,;t t |
26337 | s,@LN_S@,$LN_S,;t t |
26338 | s,@SYSCONFTOOL_PERL@,$SYSCONFTOOL_PERL,;t t |
26339 | s,@SYSCONFTOOL@,$SYSCONFTOOL,;t t |
26340 | s,@build@,$build,;t t |
26341 | s,@build_cpu@,$build_cpu,;t t |
26342 | s,@build_vendor@,$build_vendor,;t t |
26343 | s,@build_os@,$build_os,;t t |
26344 | s,@host@,$host,;t t |
26345 | s,@host_cpu@,$host_cpu,;t t |
26346 | s,@host_vendor@,$host_vendor,;t t |
26347 | s,@host_os@,$host_os,;t t |
26348 | s,@SED@,$SED,;t t |
26349 | s,@EGREP@,$EGREP,;t t |
26350 | s,@ECHO@,$ECHO,;t t |
26351 | s,@AR@,$AR,;t t |
26352 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
26353 | s,@RANLIB@,$RANLIB,;t t |
26354 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
26355 | s,@CXX@,$CXX,;t t |
26356 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
26357 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
26358 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
26359 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
26360 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
26361 | s,@CXXCPP@,$CXXCPP,;t t |
26362 | s,@F77@,$F77,;t t |
26363 | s,@FFLAGS@,$FFLAGS,;t t |
26364 | s,@ac_ct_F77@,$ac_ct_F77,;t t |
26365 | s,@LIBTOOL@,$LIBTOOL,;t t |
26366 | s,@LTDLINCL@,$LTDLINCL,;t t |
26367 | s,@LIBLTDL@,$LIBLTDL,;t t |
26368 | s,@PERL@,$PERL,;t t |
26369 | s,@COURIERCONFIG@,$COURIERCONFIG,;t t |
26370 | s,@EXPECT@,$EXPECT,;t t |
26371 | s,@PASSWD@,$PASSWD,;t t |
26372 | s,@MD5LIB@,$MD5LIB,;t t |
26373 | s,@HAVE_MD5_TRUE@,$HAVE_MD5_TRUE,;t t |
26374 | s,@HAVE_MD5_FALSE@,$HAVE_MD5_FALSE,;t t |
26375 | s,@SHA1LIB@,$SHA1LIB,;t t |
26376 | s,@HAVE_SHA1_TRUE@,$HAVE_SHA1_TRUE,;t t |
26377 | s,@HAVE_SHA1_FALSE@,$HAVE_SHA1_FALSE,;t t |
26378 | s,@HMACLIB@,$HMACLIB,;t t |
26379 | s,@HAVE_HMACLIB_TRUE@,$HAVE_HMACLIB_TRUE,;t t |
26380 | s,@HAVE_HMACLIB_FALSE@,$HAVE_HMACLIB_FALSE,;t t |
26381 | s,@NETLIBS@,$NETLIBS,;t t |
26382 | s,@DBSUBDIR@,$DBSUBDIR,;t t |
26383 | s,@USE_GDBM@,$USE_GDBM,;t t |
26384 | s,@USE_DB@,$USE_DB,;t t |
26385 | s,@LIBDB@,$LIBDB,;t t |
26386 | s,@LIBGDBM@,$LIBGDBM,;t t |
26387 | s,@dblibrary@,$dblibrary,;t t |
26388 | s,@LIBAUTHUSERDB@,$LIBAUTHUSERDB,;t t |
26389 | s,@userdb@,$userdb,;t t |
26390 | s,@LIBDL@,$LIBDL,;t t |
26391 | s,@AUTHPAMCRYPT@,$AUTHPAMCRYPT,;t t |
26392 | s,@LIBAUTHPAM@,$LIBAUTHPAM,;t t |
26393 | s,@authldaprc@,$authldaprc,;t t |
26394 | s,@LDAPLIBS@,$LDAPLIBS,;t t |
26395 | s,@LIBAUTHLDAP@,$LIBAUTHLDAP,;t t |
26396 | s,@HAVE_LDAP_TRUE@,$HAVE_LDAP_TRUE,;t t |
26397 | s,@HAVE_LDAP_FALSE@,$HAVE_LDAP_FALSE,;t t |
26398 | s,@SHADOWLIBS@,$SHADOWLIBS,;t t |
26399 | s,@LIBAUTHSHADOW@,$LIBAUTHSHADOW,;t t |
26400 | s,@LIBAUTHPWD@,$LIBAUTHPWD,;t t |
26401 | s,@vpopmail_home@,$vpopmail_home,;t t |
26402 | s,@VPOPMAILLIBS@,$VPOPMAILLIBS,;t t |
26403 | s,@LIBAUTHVCHKPW@,$LIBAUTHVCHKPW,;t t |
26404 | s,@authpgsqlrc@,$authpgsqlrc,;t t |
26405 | s,@PG_CONFIG@,$PG_CONFIG,;t t |
26406 | s,@PGSQL_LIBS@,$PGSQL_LIBS,;t t |
26407 | s,@LIBAUTHPGSQL@,$LIBAUTHPGSQL,;t t |
26408 | s,@HAVE_AUTHPGSQL_TRUE@,$HAVE_AUTHPGSQL_TRUE,;t t |
26409 | s,@HAVE_AUTHPGSQL_FALSE@,$HAVE_AUTHPGSQL_FALSE,;t t |
26410 | s,@authmysqlrc@,$authmysqlrc,;t t |
26411 | s,@MYSQL_CONFIG@,$MYSQL_CONFIG,;t t |
26412 | s,@LIBAUTHMYSQL@,$LIBAUTHMYSQL,;t t |
26413 | s,@MYSQL_LIBS@,$MYSQL_LIBS,;t t |
26414 | s,@HAVE_AUTHMYSQL_TRUE@,$HAVE_AUTHMYSQL_TRUE,;t t |
26415 | s,@HAVE_AUTHMYSQL_FALSE@,$HAVE_AUTHMYSQL_FALSE,;t t |
26416 | s,@HAVE_CUSTOM_TRUE@,$HAVE_CUSTOM_TRUE,;t t |
26417 | s,@HAVE_CUSTOM_FALSE@,$HAVE_CUSTOM_FALSE,;t t |
26418 | s,@LIBAUTHCUSTOM@,$LIBAUTHCUSTOM,;t t |
26419 | s,@authProg@,$authProg,;t t |
26420 | s,@HAVE_PIPE_TRUE@,$HAVE_PIPE_TRUE,;t t |
26421 | s,@HAVE_PIPE_FALSE@,$HAVE_PIPE_FALSE,;t t |
26422 | s,@LIBAUTHPIPE@,$LIBAUTHPIPE,;t t |
26423 | s,@CRYPTLIBS@,$CRYPTLIBS,;t t |
26424 | s,@authdaemonrc@,$authdaemonrc,;t t |
26425 | s,@authdaemonvar@,$authdaemonvar,;t t |
26426 | s,@LIBM@,$LIBM,;t t |
26427 | s,@mailuser@,$mailuser,;t t |
26428 | s,@mailgroup@,$mailgroup,;t t |
26429 | s,@LIBLTDL_SUBDIR@,$LIBLTDL_SUBDIR,;t t |
26430 | s,@REPOSITORY@,$REPOSITORY,;t t |
26431 | s,@HAVE_SGML_TRUE@,$HAVE_SGML_TRUE,;t t |
26432 | s,@HAVE_SGML_FALSE@,$HAVE_SGML_FALSE,;t t |
26433 | s,@subdirs@,$subdirs,;t t |
26434 | s,@LIBOBJS@,$LIBOBJS,;t t |
26435 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
26436 | CEOF |
26437 | |
26438 | _ACEOF |
26439 | |
26440 | cat >>$CONFIG_STATUS <<\_ACEOF |
26441 | # Split the substitutions into bite-sized pieces for seds with |
26442 | # small command number limits, like on Digital OSF/1 and HP-UX. |
26443 | ac_max_sed_lines=48 |
26444 | ac_sed_frag=1 # Number of current file. |
26445 | ac_beg=1 # First line for current file. |
26446 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
26447 | ac_more_lines=: |
26448 | ac_sed_cmds= |
26449 | while $ac_more_lines; do |
26450 | if test $ac_beg -gt 1; then |
26451 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
26452 | else |
26453 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
26454 | fi |
26455 | if test ! -s $tmp/subs.frag; then |
26456 | ac_more_lines=false |
26457 | else |
26458 | # The purpose of the label and of the branching condition is to |
26459 | # speed up the sed processing (if there are no `@' at all, there |
26460 | # is no need to browse any of the substitutions). |
26461 | # These are the two extra sed commands mentioned above. |
26462 | (echo ':t |
26463 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
26464 | if test -z "$ac_sed_cmds"; then |
26465 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
26466 | else |
26467 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
26468 | fi |
26469 | ac_sed_frag=`expr $ac_sed_frag + 1` |
26470 | ac_beg=$ac_end |
26471 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
26472 | fi |
26473 | done |
26474 | if test -z "$ac_sed_cmds"; then |
26475 | ac_sed_cmds=cat |
26476 | fi |
26477 | fi # test -n "$CONFIG_FILES" |
26478 | |
26479 | _ACEOF |
26480 | cat >>$CONFIG_STATUS <<\_ACEOF |
26481 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
26482 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
26483 | case $ac_file in |
26484 | - | *:- | *:-:* ) # input from stdin |
26485 | cat >$tmp/stdin |
26486 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
26487 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
26488 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
26489 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
26490 | * ) ac_file_in=$ac_file.in ;; |
26491 | esac |
26492 | |
26493 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
26494 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
26495 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
26496 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
26497 | X"$ac_file" : 'X\(//\)$' \| \ |
26498 | X"$ac_file" : 'X\(/\)' \| \ |
26499 | . : '\(.\)' 2>/dev/null || |
26500 | echo X"$ac_file" | |
26501 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
26502 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
26503 | /^X\(\/\/\)$/{ s//\1/; q; } |
26504 | /^X\(\/\).*/{ s//\1/; q; } |
26505 | s/.*/./; q'` |
26506 | { if $as_mkdir_p; then |
26507 | mkdir -p "$ac_dir" |
26508 | else |
26509 | as_dir="$ac_dir" |
26510 | as_dirs= |
26511 | while test ! -d "$as_dir"; do |
26512 | as_dirs="$as_dir $as_dirs" |
26513 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
26514 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
26515 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
26516 | X"$as_dir" : 'X\(//\)$' \| \ |
26517 | X"$as_dir" : 'X\(/\)' \| \ |
26518 | . : '\(.\)' 2>/dev/null || |
26519 | echo X"$as_dir" | |
26520 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
26521 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
26522 | /^X\(\/\/\)$/{ s//\1/; q; } |
26523 | /^X\(\/\).*/{ s//\1/; q; } |
26524 | s/.*/./; q'` |
26525 | done |
26526 | test ! -n "$as_dirs" || mkdir $as_dirs |
26527 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
26528 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
26529 | { (exit 1); exit 1; }; }; } |
26530 | |
26531 | ac_builddir=. |
26532 | |
26533 | if test "$ac_dir" != .; then |
26534 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
26535 | # A "../" for each directory in $ac_dir_suffix. |
26536 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
26537 | else |
26538 | ac_dir_suffix= ac_top_builddir= |
26539 | fi |
26540 | |
26541 | case $srcdir in |
26542 | .) # No --srcdir option. We are building in place. |
26543 | ac_srcdir=. |
26544 | if test -z "$ac_top_builddir"; then |
26545 | ac_top_srcdir=. |
26546 | else |
26547 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
26548 | fi ;; |
26549 | [\\/]* | ?:[\\/]* ) # Absolute path. |
26550 | ac_srcdir=$srcdir$ac_dir_suffix; |
26551 | ac_top_srcdir=$srcdir ;; |
26552 | *) # Relative path. |
26553 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
26554 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
26555 | esac |
26556 | |
26557 | # Do not use `cd foo && pwd` to compute absolute paths, because |
26558 | # the directories may not exist. |
26559 | case `pwd` in |
26560 | .) ac_abs_builddir="$ac_dir";; |
26561 | *) |
26562 | case "$ac_dir" in |
26563 | .) ac_abs_builddir=`pwd`;; |
26564 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
26565 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
26566 | esac;; |
26567 | esac |
26568 | case $ac_abs_builddir in |
26569 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
26570 | *) |
26571 | case ${ac_top_builddir}. in |
26572 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
26573 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
26574 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
26575 | esac;; |
26576 | esac |
26577 | case $ac_abs_builddir in |
26578 | .) ac_abs_srcdir=$ac_srcdir;; |
26579 | *) |
26580 | case $ac_srcdir in |
26581 | .) ac_abs_srcdir=$ac_abs_builddir;; |
26582 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
26583 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
26584 | esac;; |
26585 | esac |
26586 | case $ac_abs_builddir in |
26587 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
26588 | *) |
26589 | case $ac_top_srcdir in |
26590 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
26591 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
26592 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
26593 | esac;; |
26594 | esac |
26595 | |
26596 | |
26597 | case $INSTALL in |
26598 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
26599 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
26600 | esac |
26601 | |
26602 | if test x"$ac_file" != x-; then |
26603 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
26604 | echo "$as_me: creating $ac_file" >&6;} |
26605 | rm -f "$ac_file" |
26606 | fi |
26607 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
26608 | # use $as_me), people would be surprised to read: |
26609 | # /* config.h. Generated by config.status. */ |
26610 | if test x"$ac_file" = x-; then |
26611 | configure_input= |
26612 | else |
26613 | configure_input="$ac_file. " |
26614 | fi |
26615 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
26616 | sed 's,.*/,,'` by configure." |
26617 | |
26618 | # First look for the input files in the build tree, otherwise in the |
26619 | # src tree. |
26620 | ac_file_inputs=`IFS=: |
26621 | for f in $ac_file_in; do |
26622 | case $f in |
26623 | -) echo $tmp/stdin ;; |
26624 | [\\/$]*) |
26625 | # Absolute (can't be DOS-style, as IFS=:) |
26626 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
26627 | echo "$as_me: error: cannot find input file: $f" >&2;} |
26628 | { (exit 1); exit 1; }; } |
26629 | echo "$f";; |
26630 | *) # Relative |
26631 | if test -f "$f"; then |
26632 | # Build tree |
26633 | echo "$f" |
26634 | elif test -f "$srcdir/$f"; then |
26635 | # Source tree |
26636 | echo "$srcdir/$f" |
26637 | else |
26638 | # /dev/null tree |
26639 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
26640 | echo "$as_me: error: cannot find input file: $f" >&2;} |
26641 | { (exit 1); exit 1; }; } |
26642 | fi;; |
26643 | esac |
26644 | done` || { (exit 1); exit 1; } |
26645 | _ACEOF |
26646 | cat >>$CONFIG_STATUS <<_ACEOF |
26647 | sed "$ac_vpsub |
26648 | $extrasub |
26649 | _ACEOF |
26650 | cat >>$CONFIG_STATUS <<\_ACEOF |
26651 | :t |
26652 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
26653 | s,@configure_input@,$configure_input,;t t |
26654 | s,@srcdir@,$ac_srcdir,;t t |
26655 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
26656 | s,@top_srcdir@,$ac_top_srcdir,;t t |
26657 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
26658 | s,@builddir@,$ac_builddir,;t t |
26659 | s,@abs_builddir@,$ac_abs_builddir,;t t |
26660 | s,@top_builddir@,$ac_top_builddir,;t t |
26661 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
26662 | s,@INSTALL@,$ac_INSTALL,;t t |
26663 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
26664 | rm -f $tmp/stdin |
26665 | if test x"$ac_file" != x-; then |
26666 | mv $tmp/out $ac_file |
26667 | else |
26668 | cat $tmp/out |
26669 | rm -f $tmp/out |
26670 | fi |
26671 | |
26672 | done |
26673 | _ACEOF |
26674 | cat >>$CONFIG_STATUS <<\_ACEOF |
26675 | |
26676 | # |
26677 | # CONFIG_HEADER section. |
26678 | # |
26679 | |
26680 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
26681 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
26682 | # |
26683 | # ac_d sets the value in "#define NAME VALUE" lines. |
26684 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
26685 | ac_dB='[ ].*$,\1#\2' |
26686 | ac_dC=' ' |
26687 | ac_dD=',;t' |
26688 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
26689 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
26690 | ac_uB='$,\1#\2define\3' |
26691 | ac_uC=' ' |
26692 | ac_uD=',;t' |
26693 | |
26694 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
26695 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
26696 | case $ac_file in |
26697 | - | *:- | *:-:* ) # input from stdin |
26698 | cat >$tmp/stdin |
26699 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
26700 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
26701 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
26702 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
26703 | * ) ac_file_in=$ac_file.in ;; |
26704 | esac |
26705 | |
26706 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
26707 | echo "$as_me: creating $ac_file" >&6;} |
26708 | |
26709 | # First look for the input files in the build tree, otherwise in the |
26710 | # src tree. |
26711 | ac_file_inputs=`IFS=: |
26712 | for f in $ac_file_in; do |
26713 | case $f in |
26714 | -) echo $tmp/stdin ;; |
26715 | [\\/$]*) |
26716 | # Absolute (can't be DOS-style, as IFS=:) |
26717 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
26718 | echo "$as_me: error: cannot find input file: $f" >&2;} |
26719 | { (exit 1); exit 1; }; } |
26720 | # Do quote $f, to prevent DOS paths from being IFS'd. |
26721 | echo "$f";; |
26722 | *) # Relative |
26723 | if test -f "$f"; then |
26724 | # Build tree |
26725 | echo "$f" |
26726 | elif test -f "$srcdir/$f"; then |
26727 | # Source tree |
26728 | echo "$srcdir/$f" |
26729 | else |
26730 | # /dev/null tree |
26731 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
26732 | echo "$as_me: error: cannot find input file: $f" >&2;} |
26733 | { (exit 1); exit 1; }; } |
26734 | fi;; |
26735 | esac |
26736 | done` || { (exit 1); exit 1; } |
26737 | # Remove the trailing spaces. |
26738 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
26739 | |
26740 | _ACEOF |
26741 | |
26742 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
26743 | # `conftest.undefs', that substitutes the proper values into |
26744 | # config.h.in to produce config.h. The first handles `#define' |
26745 | # templates, and the second `#undef' templates. |
26746 | # And first: Protect against being on the right side of a sed subst in |
26747 | # config.status. Protect against being in an unquoted here document |
26748 | # in config.status. |
26749 | rm -f conftest.defines conftest.undefs |
26750 | # Using a here document instead of a string reduces the quoting nightmare. |
26751 | # Putting comments in sed scripts is not portable. |
26752 | # |
26753 | # `end' is used to avoid that the second main sed command (meant for |
26754 | # 0-ary CPP macros) applies to n-ary macro definitions. |
26755 | # See the Autoconf documentation for `clear'. |
26756 | cat >confdef2sed.sed <<\_ACEOF |
26757 | s/[\\&,]/\\&/g |
26758 | s,[\\$`],\\&,g |
26759 | t clear |
26760 | : clear |
26761 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
26762 | t end |
26763 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
26764 | : end |
26765 | _ACEOF |
26766 | # If some macros were called several times there might be several times |
26767 | # the same #defines, which is useless. Nevertheless, we may not want to |
26768 | # sort them, since we want the *last* AC-DEFINE to be honored. |
26769 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
26770 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
26771 | rm -f confdef2sed.sed |
26772 | |
26773 | # This sed command replaces #undef with comments. This is necessary, for |
26774 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
26775 | # on some systems where configure will not decide to define it. |
26776 | cat >>conftest.undefs <<\_ACEOF |
26777 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
26778 | _ACEOF |
26779 | |
26780 | # Break up conftest.defines because some shells have a limit on the size |
26781 | # of here documents, and old seds have small limits too (100 cmds). |
26782 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
26783 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
26784 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
26785 | echo ' :' >>$CONFIG_STATUS |
26786 | rm -f conftest.tail |
26787 | while grep . conftest.defines >/dev/null |
26788 | do |
26789 | # Write a limited-size here document to $tmp/defines.sed. |
26790 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
26791 | # Speed up: don't consider the non `#define' lines. |
26792 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
26793 | # Work around the forget-to-reset-the-flag bug. |
26794 | echo 't clr' >>$CONFIG_STATUS |
26795 | echo ': clr' >>$CONFIG_STATUS |
26796 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
26797 | echo 'CEOF |
26798 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
26799 | rm -f $tmp/in |
26800 | mv $tmp/out $tmp/in |
26801 | ' >>$CONFIG_STATUS |
26802 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
26803 | rm -f conftest.defines |
26804 | mv conftest.tail conftest.defines |
26805 | done |
26806 | rm -f conftest.defines |
26807 | echo ' fi # grep' >>$CONFIG_STATUS |
26808 | echo >>$CONFIG_STATUS |
26809 | |
26810 | # Break up conftest.undefs because some shells have a limit on the size |
26811 | # of here documents, and old seds have small limits too (100 cmds). |
26812 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
26813 | rm -f conftest.tail |
26814 | while grep . conftest.undefs >/dev/null |
26815 | do |
26816 | # Write a limited-size here document to $tmp/undefs.sed. |
26817 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
26818 | # Speed up: don't consider the non `#undef' |
26819 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
26820 | # Work around the forget-to-reset-the-flag bug. |
26821 | echo 't clr' >>$CONFIG_STATUS |
26822 | echo ': clr' >>$CONFIG_STATUS |
26823 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
26824 | echo 'CEOF |
26825 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
26826 | rm -f $tmp/in |
26827 | mv $tmp/out $tmp/in |
26828 | ' >>$CONFIG_STATUS |
26829 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
26830 | rm -f conftest.undefs |
26831 | mv conftest.tail conftest.undefs |
26832 | done |
26833 | rm -f conftest.undefs |
26834 | |
26835 | cat >>$CONFIG_STATUS <<\_ACEOF |
26836 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
26837 | # use $as_me), people would be surprised to read: |
26838 | # /* config.h. Generated by config.status. */ |
26839 | if test x"$ac_file" = x-; then |
26840 | echo "/* Generated by configure. */" >$tmp/config.h |
26841 | else |
26842 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
26843 | fi |
26844 | cat $tmp/in >>$tmp/config.h |
26845 | rm -f $tmp/in |
26846 | if test x"$ac_file" != x-; then |
26847 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
26848 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
26849 | echo "$as_me: $ac_file is unchanged" >&6;} |
26850 | else |
26851 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
26852 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
26853 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
26854 | X"$ac_file" : 'X\(//\)$' \| \ |
26855 | X"$ac_file" : 'X\(/\)' \| \ |
26856 | . : '\(.\)' 2>/dev/null || |
26857 | echo X"$ac_file" | |
26858 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
26859 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
26860 | /^X\(\/\/\)$/{ s//\1/; q; } |
26861 | /^X\(\/\).*/{ s//\1/; q; } |
26862 | s/.*/./; q'` |
26863 | { if $as_mkdir_p; then |
26864 | mkdir -p "$ac_dir" |
26865 | else |
26866 | as_dir="$ac_dir" |
26867 | as_dirs= |
26868 | while test ! -d "$as_dir"; do |
26869 | as_dirs="$as_dir $as_dirs" |
26870 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
26871 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
26872 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
26873 | X"$as_dir" : 'X\(//\)$' \| \ |
26874 | X"$as_dir" : 'X\(/\)' \| \ |
26875 | . : '\(.\)' 2>/dev/null || |
26876 | echo X"$as_dir" | |
26877 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
26878 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
26879 | /^X\(\/\/\)$/{ s//\1/; q; } |
26880 | /^X\(\/\).*/{ s//\1/; q; } |
26881 | s/.*/./; q'` |
26882 | done |
26883 | test ! -n "$as_dirs" || mkdir $as_dirs |
26884 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
26885 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
26886 | { (exit 1); exit 1; }; }; } |
26887 | |
26888 | rm -f $ac_file |
26889 | mv $tmp/config.h $ac_file |
26890 | fi |
26891 | else |
26892 | cat $tmp/config.h |
26893 | rm -f $tmp/config.h |
26894 | fi |
26895 | # Compute $ac_file's index in $config_headers. |
26896 | _am_stamp_count=1 |
26897 | for _am_header in $config_headers :; do |
26898 | case $_am_header in |
26899 | $ac_file | $ac_file:* ) |
26900 | break ;; |
26901 | * ) |
26902 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
26903 | esac |
26904 | done |
26905 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
26906 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
26907 | X$ac_file : 'X\(//\)[^/]' \| \ |
26908 | X$ac_file : 'X\(//\)$' \| \ |
26909 | X$ac_file : 'X\(/\)' \| \ |
26910 | . : '\(.\)' 2>/dev/null || |
26911 | echo X$ac_file | |
26912 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
26913 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
26914 | /^X\(\/\/\)$/{ s//\1/; q; } |
26915 | /^X\(\/\).*/{ s//\1/; q; } |
26916 | s/.*/./; q'`/stamp-h$_am_stamp_count |
26917 | done |
26918 | _ACEOF |
26919 | cat >>$CONFIG_STATUS <<\_ACEOF |
26920 | |
26921 | # |
26922 | # CONFIG_COMMANDS section. |
26923 | # |
26924 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
26925 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
26926 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
26927 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
26928 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
26929 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
26930 | X"$ac_dest" : 'X\(//\)$' \| \ |
26931 | X"$ac_dest" : 'X\(/\)' \| \ |
26932 | . : '\(.\)' 2>/dev/null || |
26933 | echo X"$ac_dest" | |
26934 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
26935 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
26936 | /^X\(\/\/\)$/{ s//\1/; q; } |
26937 | /^X\(\/\).*/{ s//\1/; q; } |
26938 | s/.*/./; q'` |
26939 | { if $as_mkdir_p; then |
26940 | mkdir -p "$ac_dir" |
26941 | else |
26942 | as_dir="$ac_dir" |
26943 | as_dirs= |
26944 | while test ! -d "$as_dir"; do |
26945 | as_dirs="$as_dir $as_dirs" |
26946 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
26947 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
26948 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
26949 | X"$as_dir" : 'X\(//\)$' \| \ |
26950 | X"$as_dir" : 'X\(/\)' \| \ |
26951 | . : '\(.\)' 2>/dev/null || |
26952 | echo X"$as_dir" | |
26953 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
26954 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
26955 | /^X\(\/\/\)$/{ s//\1/; q; } |
26956 | /^X\(\/\).*/{ s//\1/; q; } |
26957 | s/.*/./; q'` |
26958 | done |
26959 | test ! -n "$as_dirs" || mkdir $as_dirs |
26960 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
26961 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
26962 | { (exit 1); exit 1; }; }; } |
26963 | |
26964 | ac_builddir=. |
26965 | |
26966 | if test "$ac_dir" != .; then |
26967 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
26968 | # A "../" for each directory in $ac_dir_suffix. |
26969 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
26970 | else |
26971 | ac_dir_suffix= ac_top_builddir= |
26972 | fi |
26973 | |
26974 | case $srcdir in |
26975 | .) # No --srcdir option. We are building in place. |
26976 | ac_srcdir=. |
26977 | if test -z "$ac_top_builddir"; then |
26978 | ac_top_srcdir=. |
26979 | else |
26980 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
26981 | fi ;; |
26982 | [\\/]* | ?:[\\/]* ) # Absolute path. |
26983 | ac_srcdir=$srcdir$ac_dir_suffix; |
26984 | ac_top_srcdir=$srcdir ;; |
26985 | *) # Relative path. |
26986 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
26987 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
26988 | esac |
26989 | |
26990 | # Do not use `cd foo && pwd` to compute absolute paths, because |
26991 | # the directories may not exist. |
26992 | case `pwd` in |
26993 | .) ac_abs_builddir="$ac_dir";; |
26994 | *) |
26995 | case "$ac_dir" in |
26996 | .) ac_abs_builddir=`pwd`;; |
26997 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
26998 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
26999 | esac;; |
27000 | esac |
27001 | case $ac_abs_builddir in |
27002 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
27003 | *) |
27004 | case ${ac_top_builddir}. in |
27005 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
27006 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
27007 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
27008 | esac;; |
27009 | esac |
27010 | case $ac_abs_builddir in |
27011 | .) ac_abs_srcdir=$ac_srcdir;; |
27012 | *) |
27013 | case $ac_srcdir in |
27014 | .) ac_abs_srcdir=$ac_abs_builddir;; |
27015 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
27016 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
27017 | esac;; |
27018 | esac |
27019 | case $ac_abs_builddir in |
27020 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
27021 | *) |
27022 | case $ac_top_srcdir in |
27023 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
27024 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
27025 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
27026 | esac;; |
27027 | esac |
27028 | |
27029 | |
27030 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
27031 | echo "$as_me: executing $ac_dest commands" >&6;} |
27032 | case $ac_dest in |
27033 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
27034 | # Strip MF so we end up with the name of the file. |
27035 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
27036 | # Check whether this is an Automake generated Makefile or not. |
27037 | # We used to match only the files named `Makefile.in', but |
27038 | # some people rename them; so instead we look at the file content. |
27039 | # Grep'ing the first line is not enough: some people post-process |
27040 | # each Makefile.in and add a new line on top of each file to say so. |
27041 | # So let's grep whole file. |
27042 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
27043 | dirpart=`(dirname "$mf") 2>/dev/null || |
27044 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
27045 | X"$mf" : 'X\(//\)[^/]' \| \ |
27046 | X"$mf" : 'X\(//\)$' \| \ |
27047 | X"$mf" : 'X\(/\)' \| \ |
27048 | . : '\(.\)' 2>/dev/null || |
27049 | echo X"$mf" | |
27050 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
27051 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
27052 | /^X\(\/\/\)$/{ s//\1/; q; } |
27053 | /^X\(\/\).*/{ s//\1/; q; } |
27054 | s/.*/./; q'` |
27055 | else |
27056 | continue |
27057 | fi |
27058 | # Extract the definition of DEPDIR, am__include, and am__quote |
27059 | # from the Makefile without running `make'. |
27060 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
27061 | test -z "$DEPDIR" && continue |
27062 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
27063 | test -z "am__include" && continue |
27064 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
27065 | # When using ansi2knr, U may be empty or an underscore; expand it |
27066 | U=`sed -n 's/^U = //p' < "$mf"` |
27067 | # Find all dependency output files, they are included files with |
27068 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
27069 | # simplest approach to changing $(DEPDIR) to its actual value in the |
27070 | # expansion. |
27071 | for file in `sed -n " |
27072 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
27073 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
27074 | # Make sure the directory exists. |
27075 | test -f "$dirpart/$file" && continue |
27076 | fdir=`(dirname "$file") 2>/dev/null || |
27077 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
27078 | X"$file" : 'X\(//\)[^/]' \| \ |
27079 | X"$file" : 'X\(//\)$' \| \ |
27080 | X"$file" : 'X\(/\)' \| \ |
27081 | . : '\(.\)' 2>/dev/null || |
27082 | echo X"$file" | |
27083 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
27084 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
27085 | /^X\(\/\/\)$/{ s//\1/; q; } |
27086 | /^X\(\/\).*/{ s//\1/; q; } |
27087 | s/.*/./; q'` |
27088 | { if $as_mkdir_p; then |
27089 | mkdir -p $dirpart/$fdir |
27090 | else |
27091 | as_dir=$dirpart/$fdir |
27092 | as_dirs= |
27093 | while test ! -d "$as_dir"; do |
27094 | as_dirs="$as_dir $as_dirs" |
27095 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
27096 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
27097 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
27098 | X"$as_dir" : 'X\(//\)$' \| \ |
27099 | X"$as_dir" : 'X\(/\)' \| \ |
27100 | . : '\(.\)' 2>/dev/null || |
27101 | echo X"$as_dir" | |
27102 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
27103 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
27104 | /^X\(\/\/\)$/{ s//\1/; q; } |
27105 | /^X\(\/\).*/{ s//\1/; q; } |
27106 | s/.*/./; q'` |
27107 | done |
27108 | test ! -n "$as_dirs" || mkdir $as_dirs |
27109 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
27110 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
27111 | { (exit 1); exit 1; }; }; } |
27112 | |
27113 | # echo "creating $dirpart/$file" |
27114 | echo '# dummy' > "$dirpart/$file" |
27115 | done |
27116 | done |
27117 | ;; |
27118 | esac |
27119 | done |
27120 | _ACEOF |
27121 | |
27122 | cat >>$CONFIG_STATUS <<\_ACEOF |
27123 | |
27124 | { (exit 0); exit 0; } |
27125 | _ACEOF |
27126 | chmod +x $CONFIG_STATUS |
27127 | ac_clean_files=$ac_clean_files_save |
27128 | |
27129 | |
27130 | # configure is writing to config.log, and then calls config.status. |
27131 | # config.status does its own redirection, appending to config.log. |
27132 | # Unfortunately, on DOS this fails, as config.log is still kept open |
27133 | # by configure, so config.status won't be able to write to it; its |
27134 | # output is simply discarded. So we exec the FD to /dev/null, |
27135 | # effectively closing config.log, so it can be properly (re)opened and |
27136 | # appended to by config.status. When coming back to configure, we |
27137 | # need to make the FD available again. |
27138 | if test "$no_create" != yes; then |
27139 | ac_cs_success=: |
27140 | ac_config_status_args= |
27141 | test "$silent" = yes && |
27142 | ac_config_status_args="$ac_config_status_args --quiet" |
27143 | exec 5>/dev/null |
27144 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
27145 | exec 5>>config.log |
27146 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
27147 | # would make configure fail if this is the last instruction. |
27148 | $ac_cs_success || { (exit 1); exit 1; } |
27149 | fi |
27150 | |
27151 | # |
27152 | # CONFIG_SUBDIRS section. |
27153 | # |
27154 | if test "$no_recursion" != yes; then |
27155 | |
27156 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
27157 | ac_sub_configure_args= |
27158 | ac_prev= |
27159 | for ac_arg in $ac_configure_args; do |
27160 | if test -n "$ac_prev"; then |
27161 | ac_prev= |
27162 | continue |
27163 | fi |
27164 | case $ac_arg in |
27165 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
27166 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
27167 | ac_prev=cache_file ;; |
27168 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
27169 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
27170 | | --c=*) |
27171 | ;; |
27172 | --config-cache | -C) |
27173 | ;; |
27174 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
27175 | ac_prev=srcdir ;; |
27176 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
27177 | ;; |
27178 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
27179 | ac_prev=prefix ;; |
27180 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
27181 | ;; |
27182 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; |
27183 | esac |
27184 | done |
27185 | |
27186 | # Always prepend --prefix to ensure using the same prefix |
27187 | # in subdir configurations. |
27188 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" |
27189 | |
27190 | ac_popdir=`pwd` |
27191 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
27192 | |
27193 | # Do not complain, so a configure script can configure whichever |
27194 | # parts of a large source tree are present. |
27195 | test -d $srcdir/$ac_dir || continue |
27196 | |
27197 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 |
27198 | echo "$as_me: configuring in $ac_dir" >&6;} |
27199 | { if $as_mkdir_p; then |
27200 | mkdir -p "$ac_dir" |
27201 | else |
27202 | as_dir="$ac_dir" |
27203 | as_dirs= |
27204 | while test ! -d "$as_dir"; do |
27205 | as_dirs="$as_dir $as_dirs" |
27206 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
27207 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
27208 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
27209 | X"$as_dir" : 'X\(//\)$' \| \ |
27210 | X"$as_dir" : 'X\(/\)' \| \ |
27211 | . : '\(.\)' 2>/dev/null || |
27212 | echo X"$as_dir" | |
27213 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
27214 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
27215 | /^X\(\/\/\)$/{ s//\1/; q; } |
27216 | /^X\(\/\).*/{ s//\1/; q; } |
27217 | s/.*/./; q'` |
27218 | done |
27219 | test ! -n "$as_dirs" || mkdir $as_dirs |
27220 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
27221 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
27222 | { (exit 1); exit 1; }; }; } |
27223 | |
27224 | ac_builddir=. |
27225 | |
27226 | if test "$ac_dir" != .; then |
27227 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
27228 | # A "../" for each directory in $ac_dir_suffix. |
27229 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
27230 | else |
27231 | ac_dir_suffix= ac_top_builddir= |
27232 | fi |
27233 | |
27234 | case $srcdir in |
27235 | .) # No --srcdir option. We are building in place. |
27236 | ac_srcdir=. |
27237 | if test -z "$ac_top_builddir"; then |
27238 | ac_top_srcdir=. |
27239 | else |
27240 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
27241 | fi ;; |
27242 | [\\/]* | ?:[\\/]* ) # Absolute path. |
27243 | ac_srcdir=$srcdir$ac_dir_suffix; |
27244 | ac_top_srcdir=$srcdir ;; |
27245 | *) # Relative path. |
27246 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
27247 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
27248 | esac |
27249 | |
27250 | # Do not use `cd foo && pwd` to compute absolute paths, because |
27251 | # the directories may not exist. |
27252 | case `pwd` in |
27253 | .) ac_abs_builddir="$ac_dir";; |
27254 | *) |
27255 | case "$ac_dir" in |
27256 | .) ac_abs_builddir=`pwd`;; |
27257 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
27258 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
27259 | esac;; |
27260 | esac |
27261 | case $ac_abs_builddir in |
27262 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
27263 | *) |
27264 | case ${ac_top_builddir}. in |
27265 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
27266 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
27267 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
27268 | esac;; |
27269 | esac |
27270 | case $ac_abs_builddir in |
27271 | .) ac_abs_srcdir=$ac_srcdir;; |
27272 | *) |
27273 | case $ac_srcdir in |
27274 | .) ac_abs_srcdir=$ac_abs_builddir;; |
27275 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
27276 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
27277 | esac;; |
27278 | esac |
27279 | case $ac_abs_builddir in |
27280 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
27281 | *) |
27282 | case $ac_top_srcdir in |
27283 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
27284 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
27285 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
27286 | esac;; |
27287 | esac |
27288 | |
27289 | |
27290 | cd $ac_dir |
27291 | |
27292 | # Check for guested configure; otherwise get Cygnus style configure. |
27293 | if test -f $ac_srcdir/configure.gnu; then |
27294 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" |
27295 | elif test -f $ac_srcdir/configure; then |
27296 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" |
27297 | elif test -f $ac_srcdir/configure.in; then |
27298 | ac_sub_configure=$ac_configure |
27299 | else |
27300 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
27301 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
27302 | ac_sub_configure= |
27303 | fi |
27304 | |
27305 | # The recursion is here. |
27306 | if test -n "$ac_sub_configure"; then |
27307 | # Make the cache file name correct relative to the subdirectory. |
27308 | case $cache_file in |
27309 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
27310 | *) # Relative path. |
27311 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
27312 | esac |
27313 | |
27314 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
27315 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} |
27316 | # The eval makes quoting arguments work. |
27317 | eval $ac_sub_configure $ac_sub_configure_args \ |
27318 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
27319 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
27320 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
27321 | { (exit 1); exit 1; }; } |
27322 | fi |
27323 | |
27324 | cd $ac_popdir |
27325 | done |
27326 | fi |
27327 | |
27328 | |