Debian Codegraph @

addons/sqlbox/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for sqlbox cvs.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell [email protected] and [email protected]
278 $0: about your system, including any error possibly output
279 $0: before this message. Then install a modern shell, or
280 $0: manually run the script under such a shell if you do
281 $0: have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='sqlbox'
592 PACKAGE_TARNAME='sqlbox'
593 PACKAGE_VERSION='cvs'
594 PACKAGE_STRING='sqlbox cvs'
595 PACKAGE_BUGREPORT='[email protected]'
596 PACKAGE_URL=''
597
598 ac_unique_file="gw/sqlbox.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 rpm_requires
639 rpm_suffix
640 GW_CONFIG
641 CTLIB_INCLUDE
642 CTLIB_LFLAGS
643 DOCDRAFTS
644 DOCSTARGET
645 XML_DCL
646 TEX_DSL
647 HTML_DSL
648 CONVERT
649 FIG2DEV
650 DVIPS
651 PDFJADETEX
652 JADETEX
653 JADE
654 OLDJADE
655 OPENSSL
656 LIBOBJS
657 INCLUDES
658 CPP
659 OTOOL64
660 OTOOL
661 LIPO
662 NMEDIT
663 DSYMUTIL
664 MANIFEST_TOOL
665 RANLIB
666 ac_ct_AR
667 AR
668 DLLTOOL
669 OBJDUMP
670 LN_S
671 NM
672 ac_ct_DUMPBIN
673 DUMPBIN
674 LD
675 FGREP
676 EGREP
677 GREP
678 SED
679 am__fastdepCC_FALSE
680 am__fastdepCC_TRUE
681 CCDEPMODE
682 am__nodep
683 AMDEPBACKSLASH
684 AMDEP_FALSE
685 AMDEP_TRUE
686 am__quote
687 am__include
688 DEPDIR
689 OBJEXT
690 EXEEXT
691 ac_ct_CC
692 CPPFLAGS
693 LDFLAGS
694 CFLAGS
695 CC
696 LIBTOOL
697 host_os
698 host_vendor
699 host_cpu
700 host
701 build_os
702 build_vendor
703 build_cpu
704 build
705 MAINT
706 MAINTAINER_MODE_FALSE
707 MAINTAINER_MODE_TRUE
708 am__untar
709 am__tar
710 AMTAR
711 am__leading_dot
712 SET_MAKE
713 AWK
714 mkdir_p
715 MKDIR_P
716 INSTALL_STRIP_PROGRAM
717 STRIP
718 install_sh
719 MAKEINFO
720 AUTOHEADER
721 AUTOMAKE
722 AUTOCONF
723 ACLOCAL
724 PACKAGE
725 CYGPATH_W
726 am__isrc
727 INSTALL_DATA
728 INSTALL_SCRIPT
729 INSTALL_PROGRAM
730 VERSION
731 target_alias
732 host_alias
733 build_alias
734 LIBS
735 ECHO_T
736 ECHO_N
737 ECHO_C
738 DEFS
739 mandir
740 localedir
741 libdir
742 psdir
743 pdfdir
744 dvidir
745 htmldir
746 infodir
747 docdir
748 oldincludedir
749 includedir
750 localstatedir
751 sharedstatedir
752 sysconfdir
753 datadir
754 datarootdir
755 libexecdir
756 sbindir
757 bindir
758 program_transform_name
759 prefix
760 exec_prefix
761 PACKAGE_URL
762 PACKAGE_BUGREPORT
763 PACKAGE_STRING
764 PACKAGE_VERSION
765 PACKAGE_TARNAME
766 PACKAGE_NAME
767 PATH_SEPARATOR
768 SHELL'
769 ac_subst_files=''
770 ac_user_opts='
771 enable_option_checking
772 enable_maintainer_mode
773 enable_shared
774 enable_static
775 with_pic
776 enable_fast_install
777 enable_dependency_tracking
778 with_gnu_ld
779 with_sysroot
780 enable_libtool_lock
781 with_cflags
782 with_libs
783 with_ssl
784 enable_ssl
785 enable_ssl_thread_test
786 enable_docs
787 enable_drafts
788 with_ctlib
789 with_mssql
790 with_kannel_dir
791 '
792 ac_precious_vars='build_alias
793 host_alias
794 target_alias
795 CC
796 CFLAGS
797 LDFLAGS
798 LIBS
799 CPPFLAGS
800 CPP'
801
802
803 # Initialize some variables set by options.
804 ac_init_help=
805 ac_init_version=false
806 ac_unrecognized_opts=
807 ac_unrecognized_sep=
808 # The variables have the same names as the options, with
809 # dashes changed to underlines.
810 cache_file=/dev/null
811 exec_prefix=NONE
812 no_create=
813 no_recursion=
814 prefix=NONE
815 program_prefix=NONE
816 program_suffix=NONE
817 program_transform_name=s,x,x,
818 silent=
819 site=
820 srcdir=
821 verbose=
822 x_includes=NONE
823 x_libraries=NONE
824
825 # Installation directory options.
826 # These are left unexpanded so users can "make install exec_prefix=/foo"
827 # and all the variables that are supposed to be based on exec_prefix
828 # by default will actually change.
829 # Use braces instead of parens because sh, perl, etc. also accept them.
830 # (The list follows the same order as the GNU Coding Standards.)
831 bindir='${exec_prefix}/bin'
832 sbindir='${exec_prefix}/sbin'
833 libexecdir='${exec_prefix}/libexec'
834 datarootdir='${prefix}/share'
835 datadir='${datarootdir}'
836 sysconfdir='${prefix}/etc'
837 sharedstatedir='${prefix}/com'
838 localstatedir='${prefix}/var'
839 includedir='${prefix}/include'
840 oldincludedir='/usr/include'
841 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
842 infodir='${datarootdir}/info'
843 htmldir='${docdir}'
844 dvidir='${docdir}'
845 pdfdir='${docdir}'
846 psdir='${docdir}'
847 libdir='${exec_prefix}/lib'
848 localedir='${datarootdir}/locale'
849 mandir='${datarootdir}/man'
850
851 ac_prev=
852 ac_dashdash=
853 for ac_option
854 do
855 # If the previous option needs an argument, assign it.
856 if test -n "$ac_prev"; then
857 eval $ac_prev=\$ac_option
858 ac_prev=
859 continue
860 fi
861
862 case $ac_option in
863 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
864 *=) ac_optarg= ;;
865 *) ac_optarg=yes ;;
866 esac
867
868 # Accept the important Cygnus configure options, so we can diagnose typos.
869
870 case $ac_dashdash$ac_option in
871 --)
872 ac_dashdash=yes ;;
873
874 -bindir | --bindir | --bindi | --bind | --bin | --bi)
875 ac_prev=bindir ;;
876 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
877 bindir=$ac_optarg ;;
878
879 -build | --build | --buil | --bui | --bu)
880 ac_prev=build_alias ;;
881 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
882 build_alias=$ac_optarg ;;
883
884 -cache-file | --cache-file | --cache-fil | --cache-fi \
885 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
886 ac_prev=cache_file ;;
887 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
888 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
889 cache_file=$ac_optarg ;;
890
891 --config-cache | -C)
892 cache_file=config.cache ;;
893
894 -datadir | --datadir | --datadi | --datad)
895 ac_prev=datadir ;;
896 -datadir=* | --datadir=* | --datadi=* | --datad=*)
897 datadir=$ac_optarg ;;
898
899 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
900 | --dataroo | --dataro | --datar)
901 ac_prev=datarootdir ;;
902 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
903 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
904 datarootdir=$ac_optarg ;;
905
906 -disable-* | --disable-*)
907 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
908 # Reject names that are not valid shell variable names.
909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910 as_fn_error $? "invalid feature name: $ac_useropt"
911 ac_useropt_orig=$ac_useropt
912 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913 case $ac_user_opts in
914 *"
915 "enable_$ac_useropt"
916 "*) ;;
917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
918 ac_unrecognized_sep=', ';;
919 esac
920 eval enable_$ac_useropt=no ;;
921
922 -docdir | --docdir | --docdi | --doc | --do)
923 ac_prev=docdir ;;
924 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
925 docdir=$ac_optarg ;;
926
927 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
928 ac_prev=dvidir ;;
929 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
930 dvidir=$ac_optarg ;;
931
932 -enable-* | --enable-*)
933 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936 as_fn_error $? "invalid feature name: $ac_useropt"
937 ac_useropt_orig=$ac_useropt
938 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939 case $ac_user_opts in
940 *"
941 "enable_$ac_useropt"
942 "*) ;;
943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
944 ac_unrecognized_sep=', ';;
945 esac
946 eval enable_$ac_useropt=\$ac_optarg ;;
947
948 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950 | --exec | --exe | --ex)
951 ac_prev=exec_prefix ;;
952 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954 | --exec=* | --exe=* | --ex=*)
955 exec_prefix=$ac_optarg ;;
956
957 -gas | --gas | --ga | --g)
958 # Obsolete; use --with-gas.
959 with_gas=yes ;;
960
961 -help | --help | --hel | --he | -h)
962 ac_init_help=long ;;
963 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964 ac_init_help=recursive ;;
965 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966 ac_init_help=short ;;
967
968 -host | --host | --hos | --ho)
969 ac_prev=host_alias ;;
970 -host=* | --host=* | --hos=* | --ho=*)
971 host_alias=$ac_optarg ;;
972
973 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974 ac_prev=htmldir ;;
975 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976 | --ht=*)
977 htmldir=$ac_optarg ;;
978
979 -includedir | --includedir | --includedi | --included | --include \
980 | --includ | --inclu | --incl | --inc)
981 ac_prev=includedir ;;
982 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983 | --includ=* | --inclu=* | --incl=* | --inc=*)
984 includedir=$ac_optarg ;;
985
986 -infodir | --infodir | --infodi | --infod | --info | --inf)
987 ac_prev=infodir ;;
988 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989 infodir=$ac_optarg ;;
990
991 -libdir | --libdir | --libdi | --libd)
992 ac_prev=libdir ;;
993 -libdir=* | --libdir=* | --libdi=* | --libd=*)
994 libdir=$ac_optarg ;;
995
996 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997 | --libexe | --libex | --libe)
998 ac_prev=libexecdir ;;
999 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000 | --libexe=* | --libex=* | --libe=*)
1001 libexecdir=$ac_optarg ;;
1002
1003 -localedir | --localedir | --localedi | --localed | --locale)
1004 ac_prev=localedir ;;
1005 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006 localedir=$ac_optarg ;;
1007
1008 -localstatedir | --localstatedir | --localstatedi | --localstated \
1009 | --localstate | --localstat | --localsta | --localst | --locals)
1010 ac_prev=localstatedir ;;
1011 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1012 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1013 localstatedir=$ac_optarg ;;
1014
1015 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016 ac_prev=mandir ;;
1017 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018 mandir=$ac_optarg ;;
1019
1020 -nfp | --nfp | --nf)
1021 # Obsolete; use --without-fp.
1022 with_fp=no ;;
1023
1024 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025 | --no-cr | --no-c | -n)
1026 no_create=yes ;;
1027
1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030 no_recursion=yes ;;
1031
1032 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034 | --oldin | --oldi | --old | --ol | --o)
1035 ac_prev=oldincludedir ;;
1036 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039 oldincludedir=$ac_optarg ;;
1040
1041 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042 ac_prev=prefix ;;
1043 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044 prefix=$ac_optarg ;;
1045
1046 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047 | --program-pre | --program-pr | --program-p)
1048 ac_prev=program_prefix ;;
1049 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051 program_prefix=$ac_optarg ;;
1052
1053 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054 | --program-suf | --program-su | --program-s)
1055 ac_prev=program_suffix ;;
1056 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058 program_suffix=$ac_optarg ;;
1059
1060 -program-transform-name | --program-transform-name \
1061 | --program-transform-nam | --program-transform-na \
1062 | --program-transform-n | --program-transform- \
1063 | --program-transform | --program-transfor \
1064 | --program-transfo | --program-transf \
1065 | --program-trans | --program-tran \
1066 | --progr-tra | --program-tr | --program-t)
1067 ac_prev=program_transform_name ;;
1068 -program-transform-name=* | --program-transform-name=* \
1069 | --program-transform-nam=* | --program-transform-na=* \
1070 | --program-transform-n=* | --program-transform-=* \
1071 | --program-transform=* | --program-transfor=* \
1072 | --program-transfo=* | --program-transf=* \
1073 | --program-trans=* | --program-tran=* \
1074 | --progr-tra=* | --program-tr=* | --program-t=*)
1075 program_transform_name=$ac_optarg ;;
1076
1077 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078 ac_prev=pdfdir ;;
1079 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080 pdfdir=$ac_optarg ;;
1081
1082 -psdir | --psdir | --psdi | --psd | --ps)
1083 ac_prev=psdir ;;
1084 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085 psdir=$ac_optarg ;;
1086
1087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088 | -silent | --silent | --silen | --sile | --sil)
1089 silent=yes ;;
1090
1091 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1092 ac_prev=sbindir ;;
1093 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1094 | --sbi=* | --sb=*)
1095 sbindir=$ac_optarg ;;
1096
1097 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1098 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1099 | --sharedst | --shareds | --shared | --share | --shar \
1100 | --sha | --sh)
1101 ac_prev=sharedstatedir ;;
1102 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1103 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1104 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1105 | --sha=* | --sh=*)
1106 sharedstatedir=$ac_optarg ;;
1107
1108 -site | --site | --sit)
1109 ac_prev=site ;;
1110 -site=* | --site=* | --sit=*)
1111 site=$ac_optarg ;;
1112
1113 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1114 ac_prev=srcdir ;;
1115 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1116 srcdir=$ac_optarg ;;
1117
1118 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1119 | --syscon | --sysco | --sysc | --sys | --sy)
1120 ac_prev=sysconfdir ;;
1121 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1122 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1123 sysconfdir=$ac_optarg ;;
1124
1125 -target | --target | --targe | --targ | --tar | --ta | --t)
1126 ac_prev=target_alias ;;
1127 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1128 target_alias=$ac_optarg ;;
1129
1130 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1131 verbose=yes ;;
1132
1133 -version | --version | --versio | --versi | --vers | -V)
1134 ac_init_version=: ;;
1135
1136 -with-* | --with-*)
1137 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1138 # Reject names that are not valid shell variable names.
1139 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140 as_fn_error $? "invalid package name: $ac_useropt"
1141 ac_useropt_orig=$ac_useropt
1142 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143 case $ac_user_opts in
1144 *"
1145 "with_$ac_useropt"
1146 "*) ;;
1147 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1148 ac_unrecognized_sep=', ';;
1149 esac
1150 eval with_$ac_useropt=\$ac_optarg ;;
1151
1152 -without-* | --without-*)
1153 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156 as_fn_error $? "invalid package name: $ac_useropt"
1157 ac_useropt_orig=$ac_useropt
1158 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159 case $ac_user_opts in
1160 *"
1161 "with_$ac_useropt"
1162 "*) ;;
1163 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1164 ac_unrecognized_sep=', ';;
1165 esac
1166 eval with_$ac_useropt=no ;;
1167
1168 --x)
1169 # Obsolete; use --with-x.
1170 with_x=yes ;;
1171
1172 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1173 | --x-incl | --x-inc | --x-in | --x-i)
1174 ac_prev=x_includes ;;
1175 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1176 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1177 x_includes=$ac_optarg ;;
1178
1179 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1180 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1181 ac_prev=x_libraries ;;
1182 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1183 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1184 x_libraries=$ac_optarg ;;
1185
1186 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1187 Try \`$0 --help' for more information"
1188 ;;
1189
1190 *=*)
1191 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1192 # Reject names that are not valid shell variable names.
1193 case $ac_envvar in #(
1194 '' | [0-9]* | *[!_$as_cr_alnum]* )
1195 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1196 esac
1197 eval $ac_envvar=\$ac_optarg
1198 export $ac_envvar ;;
1199
1200 *)
1201 # FIXME: should be removed in autoconf 3.0.
1202 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1203 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1204 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1205 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1206 ;;
1207
1208 esac
1209 done
1210
1211 if test -n "$ac_prev"; then
1212 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1213 as_fn_error $? "missing argument to $ac_option"
1214 fi
1215
1216 if test -n "$ac_unrecognized_opts"; then
1217 case $enable_option_checking in
1218 no) ;;
1219 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1220 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1221 esac
1222 fi
1223
1224 # Check all directory arguments for consistency.
1225 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1226 datadir sysconfdir sharedstatedir localstatedir includedir \
1227 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1228 libdir localedir mandir
1229 do
1230 eval ac_val=\$$ac_var
1231 # Remove trailing slashes.
1232 case $ac_val in
1233 */ )
1234 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1235 eval $ac_var=\$ac_val;;
1236 esac
1237 # Be sure to have absolute directory names.
1238 case $ac_val in
1239 [\\/$]* | ?:[\\/]* ) continue;;
1240 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1241 esac
1242 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1243 done
1244
1245 # There might be people who depend on the old broken behavior: `$host'
1246 # used to hold the argument of --host etc.
1247 # FIXME: To remove some day.
1248 build=$build_alias
1249 host=$host_alias
1250 target=$target_alias
1251
1252 # FIXME: To remove some day.
1253 if test "x$host_alias" != x; then
1254 if test "x$build_alias" = x; then
1255 cross_compiling=maybe
1256 elif test "x$build_alias" != "x$host_alias"; then
1257 cross_compiling=yes
1258 fi
1259 fi
1260
1261 ac_tool_prefix=
1262 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1263
1264 test "$silent" = yes && exec 6>/dev/null
1265
1266
1267 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1268 ac_ls_di=`ls -di .` &&
1269 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1270 as_fn_error $? "working directory cannot be determined"
1271 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1272 as_fn_error $? "pwd does not report name of working directory"
1273
1274
1275 # Find the source files, if location was not specified.
1276 if test -z "$srcdir"; then
1277 ac_srcdir_defaulted=yes
1278 # Try the directory containing this script, then the parent directory.
1279 ac_confdir=`$as_dirname -- "$as_myself" ||
1280 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1281 X"$as_myself" : 'X\(//\)[^/]' \| \
1282 X"$as_myself" : 'X\(//\)$' \| \
1283 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1284 $as_echo X"$as_myself" |
1285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1286 s//\1/
1287 q
1288 }
1289 /^X\(\/\/\)[^/].*/{
1290 s//\1/
1291 q
1292 }
1293 /^X\(\/\/\)$/{
1294 s//\1/
1295 q
1296 }
1297 /^X\(\/\).*/{
1298 s//\1/
1299 q
1300 }
1301 s/.*/./; q'`
1302 srcdir=$ac_confdir
1303 if test ! -r "$srcdir/$ac_unique_file"; then
1304 srcdir=..
1305 fi
1306 else
1307 ac_srcdir_defaulted=no
1308 fi
1309 if test ! -r "$srcdir/$ac_unique_file"; then
1310 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1311 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1312 fi
1313 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1314 ac_abs_confdir=`(
1315 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1316 pwd)`
1317 # When building in place, set srcdir=.
1318 if test "$ac_abs_confdir" = "$ac_pwd"; then
1319 srcdir=.
1320 fi
1321 # Remove unnecessary trailing slashes from srcdir.
1322 # Double slashes in file names in object file debugging info
1323 # mess up M-x gdb in Emacs.
1324 case $srcdir in
1325 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1326 esac
1327 for ac_var in $ac_precious_vars; do
1328 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1329 eval ac_env_${ac_var}_value=\$${ac_var}
1330 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1331 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1332 done
1333
1334 #
1335 # Report the --help message.
1336 #
1337 if test "$ac_init_help" = "long"; then
1338 # Omit some internal or obsolete options to make the list less imposing.
1339 # This message is too long to be a string in the A/UX 3.1 sh.
1340 cat <<_ACEOF
1341 \`configure' configures sqlbox cvs to adapt to many kinds of systems.
1342
1343 Usage: $0 [OPTION]... [VAR=VALUE]...
1344
1345 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1346 VAR=VALUE. See below for descriptions of some of the useful variables.
1347
1348 Defaults for the options are specified in brackets.
1349
1350 Configuration:
1351 -h, --help display this help and exit
1352 --help=short display options specific to this package
1353 --help=recursive display the short help of all the included packages
1354 -V, --version display version information and exit
1355 -q, --quiet, --silent do not print \`checking ...' messages
1356 --cache-file=FILE cache test results in FILE [disabled]
1357 -C, --config-cache alias for \`--cache-file=config.cache'
1358 -n, --no-create do not create output files
1359 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1360
1361 Installation directories:
1362 --prefix=PREFIX install architecture-independent files in PREFIX
1363 [$ac_default_prefix]
1364 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1365 [PREFIX]
1366
1367 By default, \`make install' will install all the files in
1368 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1369 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1370 for instance \`--prefix=\$HOME'.
1371
1372 For better control, use the options below.
1373
1374 Fine tuning of the installation directories:
1375 --bindir=DIR user executables [EPREFIX/bin]
1376 --sbindir=DIR system admin executables [EPREFIX/sbin]
1377 --libexecdir=DIR program executables [EPREFIX/libexec]
1378 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1379 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1380 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1381 --libdir=DIR object code libraries [EPREFIX/lib]
1382 --includedir=DIR C header files [PREFIX/include]
1383 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1384 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1385 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1386 --infodir=DIR info documentation [DATAROOTDIR/info]
1387 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1388 --mandir=DIR man documentation [DATAROOTDIR/man]
1389 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlbox]
1390 --htmldir=DIR html documentation [DOCDIR]
1391 --dvidir=DIR dvi documentation [DOCDIR]
1392 --pdfdir=DIR pdf documentation [DOCDIR]
1393 --psdir=DIR ps documentation [DOCDIR]
1394 _ACEOF
1395
1396 cat <<\_ACEOF
1397
1398 Program names:
1399 --program-prefix=PREFIX prepend PREFIX to installed program names
1400 --program-suffix=SUFFIX append SUFFIX to installed program names
1401 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1402
1403 System types:
1404 --build=BUILD configure for building on BUILD [guessed]
1405 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1406 _ACEOF
1407 fi
1408
1409 if test -n "$ac_init_help"; then
1410 case $ac_init_help in
1411 short | recursive ) echo "Configuration of sqlbox cvs:";;
1412 esac
1413 cat <<\_ACEOF
1414
1415 Optional Features:
1416 --disable-option-checking ignore unrecognized --enable/--with options
1417 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1418 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1419 --enable-maintainer-mode enable make rules and dependencies not useful
1420 (and sometimes confusing) to the casual installer
1421 --enable-shared[=PKGS] build shared libraries [default=yes]
1422 --enable-static[=PKGS] build static libraries [default=yes]
1423 --enable-fast-install[=PKGS]
1424 optimize for fast installation [default=yes]
1425 --disable-dependency-tracking speeds up one-time build
1426 --enable-dependency-tracking do not reject slow dependency extractors
1427 --disable-libtool-lock avoid locking (might break parallel builds)
1428 --enable-ssl enable SSL client and server support enabled
1429 --disable-ssl-thread-test disable the multithread test for the OpenSSL library
1430 this will force to continue even if the test fails
1431 --enable-docs enable building of documentation [enabled]
1432 --enable-drafts enable building of documentation drafts [disabled]
1433
1434 Optional Packages:
1435 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1436 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1437 --with-pic try to use only PIC/non-PIC objects [default=use
1438 both]
1439 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1440 --with-sysroot=DIR Search for dependent libraries within DIR
1441 (or the compiler's sysroot if not specified).
1442 --with-cflags=FLAGS use FLAGS for CFLAGS
1443 --with-libs=FLAGS use FLAGS for extra libraries
1444 --with-ssl=DIR where to look for OpenSSL libs and header files
1445 DIR points to the installation /usr/local/ssl
1446 --with-ctlib=DIR Include Ct-Lib support. DIR is the Ct-Lib
1447 install directory, defaults to /opt/sybase.
1448 --with-mssql=DIR Include FreeTDS Ct-Lib support. DIR is the FreeTDS
1449 install directory, defaults to /usr/local.
1450 --with-kannel-dir=DIR where to look for Kannel Gateway libs and header files
1451 DIR points to the installation /usr/local
1452
1453
1454 Some influential environment variables:
1455 CC C compiler command
1456 CFLAGS C compiler flags
1457 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1458 nonstandard directory <lib dir>
1459 LIBS libraries to pass to the linker, e.g. -l<library>
1460 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1461 you have headers in a nonstandard directory <include dir>
1462 CPP C preprocessor
1463
1464 Use these variables to override the choices made by `configure' or to help
1465 it to find libraries and programs with nonstandard names/locations.
1466
1467 Report bugs to <[email protected]>.
1468 _ACEOF
1469 ac_status=$?
1470 fi
1471
1472 if test "$ac_init_help" = "recursive"; then
1473 # If there are subdirs, report their specific --help.
1474 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1475 test -d "$ac_dir" ||
1476 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1477 continue
1478 ac_builddir=.
1479
1480 case "$ac_dir" in
1481 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482 *)
1483 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1484 # A ".." for each directory in $ac_dir_suffix.
1485 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1486 case $ac_top_builddir_sub in
1487 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1489 esac ;;
1490 esac
1491 ac_abs_top_builddir=$ac_pwd
1492 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1493 # for backward compatibility:
1494 ac_top_builddir=$ac_top_build_prefix
1495
1496 case $srcdir in
1497 .) # We are building in place.
1498 ac_srcdir=.
1499 ac_top_srcdir=$ac_top_builddir_sub
1500 ac_abs_top_srcdir=$ac_pwd ;;
1501 [\\/]* | ?:[\\/]* ) # Absolute name.
1502 ac_srcdir=$srcdir$ac_dir_suffix;
1503 ac_top_srcdir=$srcdir
1504 ac_abs_top_srcdir=$srcdir ;;
1505 *) # Relative name.
1506 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1507 ac_top_srcdir=$ac_top_build_prefix$srcdir
1508 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1509 esac
1510 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1511
1512 cd "$ac_dir" || { ac_status=$?; continue; }
1513 # Check for guested configure.
1514 if test -f "$ac_srcdir/configure.gnu"; then
1515 echo &&
1516 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1517 elif test -f "$ac_srcdir/configure"; then
1518 echo &&
1519 $SHELL "$ac_srcdir/configure" --help=recursive
1520 else
1521 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1522 fi || ac_status=$?
1523 cd "$ac_pwd" || { ac_status=$?; break; }
1524 done
1525 fi
1526
1527 test -n "$ac_init_help" && exit $ac_status
1528 if $ac_init_version; then
1529 cat <<\_ACEOF
1530 sqlbox configure cvs
1531 generated by GNU Autoconf 2.69
1532
1533 Copyright (C) 2012 Free Software Foundation, Inc.
1534 This configure script is free software; the Free Software Foundation
1535 gives unlimited permission to copy, distribute and modify it.
1536 _ACEOF
1537 exit
1538 fi
1539
1540 ## ------------------------ ##
1541 ## Autoconf initialization. ##
1542 ## ------------------------ ##
1543
1544 # ac_fn_c_try_compile LINENO
1545 # --------------------------
1546 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1547 ac_fn_c_try_compile ()
1548 {
1549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1550 rm -f conftest.$ac_objext
1551 if { { ac_try="$ac_compile"
1552 case "(($ac_try" in
1553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1554 *) ac_try_echo=$ac_try;;
1555 esac
1556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1557 $as_echo "$ac_try_echo"; } >&5
1558 (eval "$ac_compile") 2>conftest.err
1559 ac_status=$?
1560 if test -s conftest.err; then
1561 grep -v '^ *+' conftest.err >conftest.er1
1562 cat conftest.er1 >&5
1563 mv -f conftest.er1 conftest.err
1564 fi
1565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1566 test $ac_status = 0; } && {
1567 test -z "$ac_c_werror_flag" ||
1568 test ! -s conftest.err
1569 } && test -s conftest.$ac_objext; then :
1570 ac_retval=0
1571 else
1572 $as_echo "$as_me: failed program was:" >&5
1573 sed 's/^/| /' conftest.$ac_ext >&5
1574
1575 ac_retval=1
1576 fi
1577 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1578 as_fn_set_status $ac_retval
1579
1580 } # ac_fn_c_try_compile
1581
1582 # ac_fn_c_try_link LINENO
1583 # -----------------------
1584 # Try to link conftest.$ac_ext, and return whether this succeeded.
1585 ac_fn_c_try_link ()
1586 {
1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588 rm -f conftest.$ac_objext conftest$ac_exeext
1589 if { { ac_try="$ac_link"
1590 case "(($ac_try" in
1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592 *) ac_try_echo=$ac_try;;
1593 esac
1594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595 $as_echo "$ac_try_echo"; } >&5
1596 (eval "$ac_link") 2>conftest.err
1597 ac_status=$?
1598 if test -s conftest.err; then
1599 grep -v '^ *+' conftest.err >conftest.er1
1600 cat conftest.er1 >&5
1601 mv -f conftest.er1 conftest.err
1602 fi
1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604 test $ac_status = 0; } && {
1605 test -z "$ac_c_werror_flag" ||
1606 test ! -s conftest.err
1607 } && test -s conftest$ac_exeext && {
1608 test "$cross_compiling" = yes ||
1609 test -x conftest$ac_exeext
1610 }; then :
1611 ac_retval=0
1612 else
1613 $as_echo "$as_me: failed program was:" >&5
1614 sed 's/^/| /' conftest.$ac_ext >&5
1615
1616 ac_retval=1
1617 fi
1618 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1619 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1620 # interfere with the next link command; also delete a directory that is
1621 # left behind by Apple's compiler. We do this before executing the actions.
1622 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624 as_fn_set_status $ac_retval
1625
1626 } # ac_fn_c_try_link
1627
1628 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1629 # -------------------------------------------------------
1630 # Tests whether HEADER exists and can be compiled using the include files in
1631 # INCLUDES, setting the cache variable VAR accordingly.
1632 ac_fn_c_check_header_compile ()
1633 {
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1636 $as_echo_n "checking for $2... " >&6; }
1637 if eval \${$3+:} false; then :
1638 $as_echo_n "(cached) " >&6
1639 else
1640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1641 /* end confdefs.h. */
1642 $4
1643 #include <$2>
1644 _ACEOF
1645 if ac_fn_c_try_compile "$LINENO"; then :
1646 eval "$3=yes"
1647 else
1648 eval "$3=no"
1649 fi
1650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1651 fi
1652 eval ac_res=\$$3
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1654 $as_echo "$ac_res" >&6; }
1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656
1657 } # ac_fn_c_check_header_compile
1658
1659 # ac_fn_c_try_cpp LINENO
1660 # ----------------------
1661 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1662 ac_fn_c_try_cpp ()
1663 {
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 if { { ac_try="$ac_cpp conftest.$ac_ext"
1666 case "(($ac_try" in
1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668 *) ac_try_echo=$ac_try;;
1669 esac
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1673 ac_status=$?
1674 if test -s conftest.err; then
1675 grep -v '^ *+' conftest.err >conftest.er1
1676 cat conftest.er1 >&5
1677 mv -f conftest.er1 conftest.err
1678 fi
1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680 test $ac_status = 0; } > conftest.i && {
1681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1682 test ! -s conftest.err
1683 }; then :
1684 ac_retval=0
1685 else
1686 $as_echo "$as_me: failed program was:" >&5
1687 sed 's/^/| /' conftest.$ac_ext >&5
1688
1689 ac_retval=1
1690 fi
1691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692 as_fn_set_status $ac_retval
1693
1694 } # ac_fn_c_try_cpp
1695
1696 # ac_fn_c_try_run LINENO
1697 # ----------------------
1698 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1699 # that executables *can* be run.
1700 ac_fn_c_try_run ()
1701 {
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 if { { ac_try="$ac_link"
1704 case "(($ac_try" in
1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706 *) ac_try_echo=$ac_try;;
1707 esac
1708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709 $as_echo "$ac_try_echo"; } >&5
1710 (eval "$ac_link") 2>&5
1711 ac_status=$?
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1714 { { case "(($ac_try" in
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1717 esac
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_try") 2>&5
1721 ac_status=$?
1722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723 test $ac_status = 0; }; }; then :
1724 ac_retval=0
1725 else
1726 $as_echo "$as_me: program exited with status $ac_status" >&5
1727 $as_echo "$as_me: failed program was:" >&5
1728 sed 's/^/| /' conftest.$ac_ext >&5
1729
1730 ac_retval=$ac_status
1731 fi
1732 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734 as_fn_set_status $ac_retval
1735
1736 } # ac_fn_c_try_run
1737
1738 # ac_fn_c_check_func LINENO FUNC VAR
1739 # ----------------------------------
1740 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1741 ac_fn_c_check_func ()
1742 {
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745 $as_echo_n "checking for $2... " >&6; }
1746 if eval \${$3+:} false; then :
1747 $as_echo_n "(cached) " >&6
1748 else
1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750 /* end confdefs.h. */
1751 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1753 #define $2 innocuous_$2
1754
1755 /* System header to define __stub macros and hopefully few prototypes,
1756 which can conflict with char $2 (); below.
1757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1758 <limits.h> exists even on freestanding compilers. */
1759
1760 #ifdef __STDC__
1761 # include <limits.h>
1762 #else
1763 # include <assert.h>
1764 #endif
1765
1766 #undef $2
1767
1768 /* Override any GCC internal prototype to avoid an error.
1769 Use char because int might match the return type of a GCC
1770 builtin and then its argument prototype would still apply. */
1771 #ifdef __cplusplus
1772 extern "C"
1773 #endif
1774 char $2 ();
1775 /* The GNU C library defines this for functions which it implements
1776 to always fail with ENOSYS. Some functions are actually named
1777 something starting with __ and the normal name is an alias. */
1778 #if defined __stub_$2 || defined __stub___$2
1779 choke me
1780 #endif
1781
1782 int
1783 main ()
1784 {
1785 return $2 ();
1786 ;
1787 return 0;
1788 }
1789 _ACEOF
1790 if ac_fn_c_try_link "$LINENO"; then :
1791 eval "$3=yes"
1792 else
1793 eval "$3=no"
1794 fi
1795 rm -f core conftest.err conftest.$ac_objext \
1796 conftest$ac_exeext conftest.$ac_ext
1797 fi
1798 eval ac_res=\$$3
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1800 $as_echo "$ac_res" >&6; }
1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802
1803 } # ac_fn_c_check_func
1804
1805 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1806 # -------------------------------------------------------
1807 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1808 # the include files in INCLUDES and setting the cache variable VAR
1809 # accordingly.
1810 ac_fn_c_check_header_mongrel ()
1811 {
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 if eval \${$3+:} false; then :
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1815 $as_echo_n "checking for $2... " >&6; }
1816 if eval \${$3+:} false; then :
1817 $as_echo_n "(cached) " >&6
1818 fi
1819 eval ac_res=\$$3
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1821 $as_echo "$ac_res" >&6; }
1822 else
1823 # Is the header compilable?
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1825 $as_echo_n "checking $2 usability... " >&6; }
1826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827 /* end confdefs.h. */
1828 $4
1829 #include <$2>
1830 _ACEOF
1831 if ac_fn_c_try_compile "$LINENO"; then :
1832 ac_header_compiler=yes
1833 else
1834 ac_header_compiler=no
1835 fi
1836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1838 $as_echo "$ac_header_compiler" >&6; }
1839
1840 # Is the header present?
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1842 $as_echo_n "checking $2 presence... " >&6; }
1843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844 /* end confdefs.h. */
1845 #include <$2>
1846 _ACEOF
1847 if ac_fn_c_try_cpp "$LINENO"; then :
1848 ac_header_preproc=yes
1849 else
1850 ac_header_preproc=no
1851 fi
1852 rm -f conftest.err conftest.i conftest.$ac_ext
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1854 $as_echo "$ac_header_preproc" >&6; }
1855
1856 # So? What about this header?
1857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1858 yes:no: )
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1860 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1862 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1863 ;;
1864 no:yes:* )
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1866 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1868 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1870 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1872 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1874 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1875 ( $as_echo "## ------------------------------- ##
1876 ## Report this to [email protected] ##
1877 ## ------------------------------- ##"
1878 ) | sed "s/^/$as_me: WARNING: /" >&2
1879 ;;
1880 esac
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1882 $as_echo_n "checking for $2... " >&6; }
1883 if eval \${$3+:} false; then :
1884 $as_echo_n "(cached) " >&6
1885 else
1886 eval "$3=\$ac_header_compiler"
1887 fi
1888 eval ac_res=\$$3
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1890 $as_echo "$ac_res" >&6; }
1891 fi
1892 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1893
1894 } # ac_fn_c_check_header_mongrel
1895 cat >config.log <<_ACEOF
1896 This file contains any messages produced by compilers while
1897 running configure, to aid debugging if configure makes a mistake.
1898
1899 It was created by sqlbox $as_me cvs, which was
1900 generated by GNU Autoconf 2.69. Invocation command line was
1901
1902 $ $0 $@
1903
1904 _ACEOF
1905 exec 5>>config.log
1906 {
1907 cat <<_ASUNAME
1908 ## --------- ##
1909 ## Platform. ##
1910 ## --------- ##
1911
1912 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1913 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1914 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1915 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1916 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1917
1918 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1919 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1920
1921 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1922 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1923 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1924 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1925 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1926 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1927 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1928
1929 _ASUNAME
1930
1931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1932 for as_dir in $PATH
1933 do
1934 IFS=$as_save_IFS
1935 test -z "$as_dir" && as_dir=.
1936 $as_echo "PATH: $as_dir"
1937 done
1938 IFS=$as_save_IFS
1939
1940 } >&5
1941
1942 cat >&5 <<_ACEOF
1943
1944
1945 ## ----------- ##
1946 ## Core tests. ##
1947 ## ----------- ##
1948
1949 _ACEOF
1950
1951
1952 # Keep a trace of the command line.
1953 # Strip out --no-create and --no-recursion so they do not pile up.
1954 # Strip out --silent because we don't want to record it for future runs.
1955 # Also quote any args containing shell meta-characters.
1956 # Make two passes to allow for proper duplicate-argument suppression.
1957 ac_configure_args=
1958 ac_configure_args0=
1959 ac_configure_args1=
1960 ac_must_keep_next=false
1961 for ac_pass in 1 2
1962 do
1963 for ac_arg
1964 do
1965 case $ac_arg in
1966 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1967 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1968 | -silent | --silent | --silen | --sile | --sil)
1969 continue ;;
1970 *\'*)
1971 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1972 esac
1973 case $ac_pass in
1974 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1975 2)
1976 as_fn_append ac_configure_args1 " '$ac_arg'"
1977 if test $ac_must_keep_next = true; then
1978 ac_must_keep_next=false # Got value, back to normal.
1979 else
1980 case $ac_arg in
1981 *=* | --config-cache | -C | -disable-* | --disable-* \
1982 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1983 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1984 | -with-* | --with-* | -without-* | --without-* | --x)
1985 case "$ac_configure_args0 " in
1986 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1987 esac
1988 ;;
1989 -* ) ac_must_keep_next=true ;;
1990 esac
1991 fi
1992 as_fn_append ac_configure_args " '$ac_arg'"
1993 ;;
1994 esac
1995 done
1996 done
1997 { ac_configure_args0=; unset ac_configure_args0;}
1998 { ac_configure_args1=; unset ac_configure_args1;}
1999
2000 # When interrupted or exit'd, cleanup temporary files, and complete
2001 # config.log. We remove comments because anyway the quotes in there
2002 # would cause problems or look ugly.
2003 # WARNING: Use '\'' to represent an apostrophe within the trap.
2004 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2005 trap 'exit_status=$?
2006 # Save into config.log some information that might help in debugging.
2007 {
2008 echo
2009
2010 $as_echo "## ---------------- ##
2011 ## Cache variables. ##
2012 ## ---------------- ##"
2013 echo
2014 # The following way of writing the cache mishandles newlines in values,
2015 (
2016 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2017 eval ac_val=\$$ac_var
2018 case $ac_val in #(
2019 *${as_nl}*)
2020 case $ac_var in #(
2021 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2022 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2023 esac
2024 case $ac_var in #(
2025 _ | IFS | as_nl) ;; #(
2026 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2027 *) { eval $ac_var=; unset $ac_var;} ;;
2028 esac ;;
2029 esac
2030 done
2031 (set) 2>&1 |
2032 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2033 *${as_nl}ac_space=\ *)
2034 sed -n \
2035 "s/'\''/'\''\\\\'\'''\''/g;
2036 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2037 ;; #(
2038 *)
2039 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2040 ;;
2041 esac |
2042 sort
2043 )
2044 echo
2045
2046 $as_echo "## ----------------- ##
2047 ## Output variables. ##
2048 ## ----------------- ##"
2049 echo
2050 for ac_var in $ac_subst_vars
2051 do
2052 eval ac_val=\$$ac_var
2053 case $ac_val in
2054 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2055 esac
2056 $as_echo "$ac_var='\''$ac_val'\''"
2057 done | sort
2058 echo
2059
2060 if test -n "$ac_subst_files"; then
2061 $as_echo "## ------------------- ##
2062 ## File substitutions. ##
2063 ## ------------------- ##"
2064 echo
2065 for ac_var in $ac_subst_files
2066 do
2067 eval ac_val=\$$ac_var
2068 case $ac_val in
2069 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2070 esac
2071 $as_echo "$ac_var='\''$ac_val'\''"
2072 done | sort
2073 echo
2074 fi
2075
2076 if test -s confdefs.h; then
2077 $as_echo "## ----------- ##
2078 ## confdefs.h. ##
2079 ## ----------- ##"
2080 echo
2081 cat confdefs.h
2082 echo
2083 fi
2084 test "$ac_signal" != 0 &&
2085 $as_echo "$as_me: caught signal $ac_signal"
2086 $as_echo "$as_me: exit $exit_status"
2087 } >&5
2088 rm -f core *.core core.conftest.* &&
2089 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2090 exit $exit_status
2091 ' 0
2092 for ac_signal in 1 2 13 15; do
2093 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2094 done
2095 ac_signal=0
2096
2097 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2098 rm -f -r conftest* confdefs.h
2099
2100 $as_echo "/* confdefs.h */" > confdefs.h
2101
2102 # Predefined preprocessor variables.
2103
2104 cat >>confdefs.h <<_ACEOF
2105 #define PACKAGE_NAME "$PACKAGE_NAME"
2106 _ACEOF
2107
2108 cat >>confdefs.h <<_ACEOF
2109 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2110 _ACEOF
2111
2112 cat >>confdefs.h <<_ACEOF
2113 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2114 _ACEOF
2115
2116 cat >>confdefs.h <<_ACEOF
2117 #define PACKAGE_STRING "$PACKAGE_STRING"
2118 _ACEOF
2119
2120 cat >>confdefs.h <<_ACEOF
2121 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2122 _ACEOF
2123
2124 cat >>confdefs.h <<_ACEOF
2125 #define PACKAGE_URL "$PACKAGE_URL"
2126 _ACEOF
2127
2128
2129 # Let the site file select an alternate cache file if it wants to.
2130 # Prefer an explicitly selected file to automatically selected ones.
2131 ac_site_file1=NONE
2132 ac_site_file2=NONE
2133 if test -n "$CONFIG_SITE"; then
2134 # We do not want a PATH search for config.site.
2135 case $CONFIG_SITE in #((
2136 -*) ac_site_file1=./$CONFIG_SITE;;
2137 */*) ac_site_file1=$CONFIG_SITE;;
2138 *) ac_site_file1=./$CONFIG_SITE;;
2139 esac
2140 elif test "x$prefix" != xNONE; then
2141 ac_site_file1=$prefix/share/config.site
2142 ac_site_file2=$prefix/etc/config.site
2143 else
2144 ac_site_file1=$ac_default_prefix/share/config.site
2145 ac_site_file2=$ac_default_prefix/etc/config.site
2146 fi
2147 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2148 do
2149 test "x$ac_site_file" = xNONE && continue
2150 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2152 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2153 sed 's/^/| /' "$ac_site_file" >&5
2154 . "$ac_site_file" \
2155 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2157 as_fn_error $? "failed to load site script $ac_site_file
2158 See \`config.log' for more details" "$LINENO" 5; }
2159 fi
2160 done
2161
2162 if test -r "$cache_file"; then
2163 # Some versions of bash will fail to source /dev/null (special files
2164 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2165 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2167 $as_echo "$as_me: loading cache $cache_file" >&6;}
2168 case $cache_file in
2169 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2170 *) . "./$cache_file";;
2171 esac
2172 fi
2173 else
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2175 $as_echo "$as_me: creating cache $cache_file" >&6;}
2176 >$cache_file
2177 fi
2178
2179 # Check that the precious variables saved in the cache have kept the same
2180 # value.
2181 ac_cache_corrupted=false
2182 for ac_var in $ac_precious_vars; do
2183 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2184 eval ac_new_set=\$ac_env_${ac_var}_set
2185 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2186 eval ac_new_val=\$ac_env_${ac_var}_value
2187 case $ac_old_set,$ac_new_set in
2188 set,)
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2190 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2191 ac_cache_corrupted=: ;;
2192 ,set)
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2194 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2195 ac_cache_corrupted=: ;;
2196 ,);;
2197 *)
2198 if test "x$ac_old_val" != "x$ac_new_val"; then
2199 # differences in whitespace do not lead to failure.
2200 ac_old_val_w=`echo x $ac_old_val`
2201 ac_new_val_w=`echo x $ac_new_val`
2202 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2204 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2205 ac_cache_corrupted=:
2206 else
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2208 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2209 eval $ac_var=\$ac_old_val
2210 fi
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2212 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2214 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2215 fi;;
2216 esac
2217 # Pass precious variables to config.status.
2218 if test "$ac_new_set" = set; then
2219 case $ac_new_val in
2220 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2221 *) ac_arg=$ac_var=$ac_new_val ;;
2222 esac
2223 case " $ac_configure_args " in
2224 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2225 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2226 esac
2227 fi
2228 done
2229 if $ac_cache_corrupted; then
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2231 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2233 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2234 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2235 fi
2236 ## -------------------- ##
2237 ## Main body of script. ##
2238 ## -------------------- ##
2239
2240 ac_ext=c
2241 ac_cpp='$CPP $CPPFLAGS'
2242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2245
2246
2247
2248 ac_aux_dir=
2249 for ac_dir in autotools "$srcdir"/autotools; do
2250 if test -f "$ac_dir/install-sh"; then
2251 ac_aux_dir=$ac_dir
2252 ac_install_sh="$ac_aux_dir/install-sh -c"
2253 break
2254 elif test -f "$ac_dir/install.sh"; then
2255 ac_aux_dir=$ac_dir
2256 ac_install_sh="$ac_aux_dir/install.sh -c"
2257 break
2258 elif test -f "$ac_dir/shtool"; then
2259 ac_aux_dir=$ac_dir
2260 ac_install_sh="$ac_aux_dir/shtool install -c"
2261 break
2262 fi
2263 done
2264 if test -z "$ac_aux_dir"; then
2265 as_fn_error $? "cannot find install-sh, install.sh, or shtool in autotools \"$srcdir\"/autotools" "$LINENO" 5
2266 fi
2267
2268 # These three variables are undocumented and unsupported,
2269 # and are intended to be withdrawn in a future Autoconf release.
2270 # They can cause serious problems if a builder's source tree is in a directory
2271 # whose full name contains unusual characters.
2272 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2273 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2274 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2275
2276
2277
2278 case $TERM in
2279 xterm|xterm*|vt220|vt220*|cygwin)
2280 T_MD=`echo dummy | awk '{ printf("%c%c%c%c", 27, 91, 49, 109); }'`
2281 T_ME=`echo dummy | awk '{ printf("%c%c%c", 27, 91, 109); }'`
2282 ;;
2283 vt100|vt100*)
2284 T_MD=`echo dummy | awk '{ printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }'`
2285 T_ME=`echo dummy | awk '{ printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }'`
2286 ;;
2287 default)
2288 T_MD=''
2289 T_ME=''
2290 ;;
2291 esac
2292
2293
2294 test -f config.nice && mv config.nice config.nice.old
2295 rm -f config.nice.old
2296 cat >config.nice<<EOF
2297 #! /bin/sh
2298 #
2299 # Created by configure
2300
2301 EOF
2302
2303 for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS CC CXX; do
2304 eval val=\$$var
2305 if test -n "$val"; then
2306 echo "$var='$val' \\" >> config.nice
2307 fi
2308 done
2309
2310 for arg in $0 "$@"; do
2311 echo "'$arg' \\" >> config.nice
2312 done
2313 echo '"$@"' >> config.nice
2314 chmod +x config.nice
2315
2316
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking svn checkout revision" >&5
2318 $as_echo_n "checking svn checkout revision... " >&6; }
2319
2320 if test -d ".svn"
2321 then
2322 revision=`svnversion .`
2323 test -z "$revision" && revision="unknown"
2324 SVN_REVISION="$revision"
2325 fi
2326
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVN_REVISION" >&5
2328 $as_echo "$SVN_REVISION" >&6; }
2329 VERSION="svn-r$SVN_REVISION"
2330 SB_NAME="SqlBox"
2331
2332 cat >>confdefs.h <<_ACEOF
2333 #define VERSION "$VERSION"
2334 _ACEOF
2335
2336
2337
2338 nl='
2339 '
2340 echo "${nl}${T_MD}Configuring for Kannel sqlbox version $VERSION ...${T_ME}"
2341
2342
2343 am__api_version='1.11'
2344
2345 # Find a good install program. We prefer a C program (faster),
2346 # so one script is as good as another. But avoid the broken or
2347 # incompatible versions:
2348 # SysV /etc/install, /usr/sbin/install
2349 # SunOS /usr/etc/install
2350 # IRIX /sbin/install
2351 # AIX /bin/install
2352 # AmigaOS /C/install, which installs bootblocks on floppy discs
2353 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2354 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2355 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2356 # OS/2's system install, which has a completely different semantic
2357 # ./install, which can be erroneously created by make from ./install.sh.
2358 # Reject install programs that cannot install multiple files.
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2360 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2361 if test -z "$INSTALL"; then
2362 if ${ac_cv_path_install+:} false; then :
2363 $as_echo_n "(cached) " >&6
2364 else
2365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366 for as_dir in $PATH
2367 do
2368 IFS=$as_save_IFS
2369 test -z "$as_dir" && as_dir=.
2370 # Account for people who put trailing slashes in PATH elements.
2371 case $as_dir/ in #((
2372 ./ | .// | /[cC]/* | \
2373 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2374 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2375 /usr/ucb/* ) ;;
2376 *)
2377 # OSF1 and SCO ODT 3.0 have their own names for install.
2378 # Don't use installbsd from OSF since it installs stuff as root
2379 # by default.
2380 for ac_prog in ginstall scoinst install; do
2381 for ac_exec_ext in '' $ac_executable_extensions; do
2382 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2383 if test $ac_prog = install &&
2384 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2385 # AIX install. It has an incompatible calling convention.
2386 :
2387 elif test $ac_prog = install &&
2388 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2389 # program-specific install script used by HP pwplus--don't use.
2390 :
2391 else
2392 rm -rf conftest.one conftest.two conftest.dir
2393 echo one > conftest.one
2394 echo two > conftest.two
2395 mkdir conftest.dir
2396 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2397 test -s conftest.one && test -s conftest.two &&
2398 test -s conftest.dir/conftest.one &&
2399 test -s conftest.dir/conftest.two
2400 then
2401 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2402 break 3
2403 fi
2404 fi
2405 fi
2406 done
2407 done
2408 ;;
2409 esac
2410
2411 done
2412 IFS=$as_save_IFS
2413
2414 rm -rf conftest.one conftest.two conftest.dir
2415
2416 fi
2417 if test "${ac_cv_path_install+set}" = set; then
2418 INSTALL=$ac_cv_path_install
2419 else
2420 # As a last resort, use the slow shell script. Don't cache a
2421 # value for INSTALL within a source directory, because that will
2422 # break other packages using the cache if that directory is
2423 # removed, or if the value is a relative name.
2424 INSTALL=$ac_install_sh
2425 fi
2426 fi
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2428 $as_echo "$INSTALL" >&6; }
2429
2430 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2431 # It thinks the first close brace ends the variable substitution.
2432 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2433
2434 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2435
2436 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2437
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2439 $as_echo_n "checking whether build environment is sane... " >&6; }
2440 # Just in case
2441 sleep 1
2442 echo timestamp > conftest.file
2443 # Reject unsafe characters in $srcdir or the absolute working directory
2444 # name. Accept space and tab only in the latter.
2445 am_lf='
2446 '
2447 case `pwd` in
2448 *[\\\"\#\$\&\'\`$am_lf]*)
2449 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2450 esac
2451 case $srcdir in
2452 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2453 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2454 esac
2455
2456 # Do `set' in a subshell so we don't clobber the current shell's
2457 # arguments. Must try -L first in case configure is actually a
2458 # symlink; some systems play weird games with the mod time of symlinks
2459 # (eg FreeBSD returns the mod time of the symlink's containing
2460 # directory).
2461 if (
2462 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2463 if test "$*" = "X"; then
2464 # -L didn't work.
2465 set X `ls -t "$srcdir/configure" conftest.file`
2466 fi
2467 rm -f conftest.file
2468 if test "$*" != "X $srcdir/configure conftest.file" \
2469 && test "$*" != "X conftest.file $srcdir/configure"; then
2470
2471 # If neither matched, then we have a broken ls. This can happen
2472 # if, for instance, CONFIG_SHELL is bash and it inherits a
2473 # broken ls alias from the environment. This has actually
2474 # happened. Such a system could not be considered "sane".
2475 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2476 alias in your environment" "$LINENO" 5
2477 fi
2478
2479 test "$2" = conftest.file
2480 )
2481 then
2482 # Ok.
2483 :
2484 else
2485 as_fn_error $? "newly created file is older than distributed files!
2486 Check your system clock" "$LINENO" 5
2487 fi
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2489 $as_echo "yes" >&6; }
2490 test "$program_prefix" != NONE &&
2491 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2492 # Use a double $ so make ignores it.
2493 test "$program_suffix" != NONE &&
2494 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2495 # Double any \ or $.
2496 # By default was `s,x,x', remove it if useless.
2497 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2498 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2499
2500 # expand $ac_aux_dir to an absolute path
2501 am_aux_dir=`cd $ac_aux_dir && pwd`
2502
2503 if test x"${MISSING+set}" != xset; then
2504 case $am_aux_dir in
2505 *\ * | *\ *)
2506 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2507 *)
2508 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2509 esac
2510 fi
2511 # Use eval to expand $SHELL
2512 if eval "$MISSING --run true"; then
2513 am_missing_run="$MISSING --run "
2514 else
2515 am_missing_run=
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2517 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2518 fi
2519
2520 if test x"${install_sh}" != xset; then
2521 case $am_aux_dir in
2522 *\ * | *\ *)
2523 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2524 *)
2525 install_sh="\${SHELL} $am_aux_dir/install-sh"
2526 esac
2527 fi
2528
2529 # Installed binaries are usually stripped using `strip' when the user
2530 # run `make install-strip'. However `strip' might not be the right
2531 # tool to use in cross-compilation environments, therefore Automake
2532 # will honor the `STRIP' environment variable to overrule this program.
2533 if test "$cross_compiling" != no; then
2534 if test -n "$ac_tool_prefix"; then
2535 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2536 set dummy ${ac_tool_prefix}strip; ac_word=$2
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2538 $as_echo_n "checking for $ac_word... " >&6; }
2539 if ${ac_cv_prog_STRIP+:} false; then :
2540 $as_echo_n "(cached) " >&6
2541 else
2542 if test -n "$STRIP"; then
2543 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2544 else
2545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546 for as_dir in $PATH
2547 do
2548 IFS=$as_save_IFS
2549 test -z "$as_dir" && as_dir=.
2550 for ac_exec_ext in '' $ac_executable_extensions; do
2551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2552 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2554 break 2
2555 fi
2556 done
2557 done
2558 IFS=$as_save_IFS
2559
2560 fi
2561 fi
2562 STRIP=$ac_cv_prog_STRIP
2563 if test -n "$STRIP"; then
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2565 $as_echo "$STRIP" >&6; }
2566 else
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2568 $as_echo "no" >&6; }
2569 fi
2570
2571
2572 fi
2573 if test -z "$ac_cv_prog_STRIP"; then
2574 ac_ct_STRIP=$STRIP
2575 # Extract the first word of "strip", so it can be a program name with args.
2576 set dummy strip; ac_word=$2
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2578 $as_echo_n "checking for $ac_word... " >&6; }
2579 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2580 $as_echo_n "(cached) " >&6
2581 else
2582 if test -n "$ac_ct_STRIP"; then
2583 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2584 else
2585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586 for as_dir in $PATH
2587 do
2588 IFS=$as_save_IFS
2589 test -z "$as_dir" && as_dir=.
2590 for ac_exec_ext in '' $ac_executable_extensions; do
2591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2592 ac_cv_prog_ac_ct_STRIP="strip"
2593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2594 break 2
2595 fi
2596 done
2597 done
2598 IFS=$as_save_IFS
2599
2600 fi
2601 fi
2602 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2603 if test -n "$ac_ct_STRIP"; then
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2605 $as_echo "$ac_ct_STRIP" >&6; }
2606 else
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2608 $as_echo "no" >&6; }
2609 fi
2610
2611 if test "x$ac_ct_STRIP" = x; then
2612 STRIP=":"
2613 else
2614 case $cross_compiling:$ac_tool_warned in
2615 yes:)
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2618 ac_tool_warned=yes ;;
2619 esac
2620 STRIP=$ac_ct_STRIP
2621 fi
2622 else
2623 STRIP="$ac_cv_prog_STRIP"
2624 fi
2625
2626 fi
2627 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2628
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2630 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2631 if test -z "$MKDIR_P"; then
2632 if ${ac_cv_path_mkdir+:} false; then :
2633 $as_echo_n "(cached) " >&6
2634 else
2635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2637 do
2638 IFS=$as_save_IFS
2639 test -z "$as_dir" && as_dir=.
2640 for ac_prog in mkdir gmkdir; do
2641 for ac_exec_ext in '' $ac_executable_extensions; do
2642 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2643 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2644 'mkdir (GNU coreutils) '* | \
2645 'mkdir (coreutils) '* | \
2646 'mkdir (fileutils) '4.1*)
2647 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2648 break 3;;
2649 esac
2650 done
2651 done
2652 done
2653 IFS=$as_save_IFS
2654
2655 fi
2656
2657 test -d ./--version && rmdir ./--version
2658 if test "${ac_cv_path_mkdir+set}" = set; then
2659 MKDIR_P="$ac_cv_path_mkdir -p"
2660 else
2661 # As a last resort, use the slow shell script. Don't cache a
2662 # value for MKDIR_P within a source directory, because that will
2663 # break other packages using the cache if that directory is
2664 # removed, or if the value is a relative name.
2665 MKDIR_P="$ac_install_sh -d"
2666 fi
2667 fi
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2669 $as_echo "$MKDIR_P" >&6; }
2670
2671 mkdir_p="$MKDIR_P"
2672 case $mkdir_p in
2673 [\\/$]* | ?:[\\/]*) ;;
2674 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2675 esac
2676
2677 for ac_prog in gawk mawk nawk awk
2678 do
2679 # Extract the first word of "$ac_prog", so it can be a program name with args.
2680 set dummy $ac_prog; ac_word=$2
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2682 $as_echo_n "checking for $ac_word... " >&6; }
2683 if ${ac_cv_prog_AWK+:} false; then :
2684 $as_echo_n "(cached) " >&6
2685 else
2686 if test -n "$AWK"; then
2687 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2688 else
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 for as_dir in $PATH
2691 do
2692 IFS=$as_save_IFS
2693 test -z "$as_dir" && as_dir=.
2694 for ac_exec_ext in '' $ac_executable_extensions; do
2695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2696 ac_cv_prog_AWK="$ac_prog"
2697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2698 break 2
2699 fi
2700 done
2701 done
2702 IFS=$as_save_IFS
2703
2704 fi
2705 fi
2706 AWK=$ac_cv_prog_AWK
2707 if test -n "$AWK"; then
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2709 $as_echo "$AWK" >&6; }
2710 else
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2712 $as_echo "no" >&6; }
2713 fi
2714
2715
2716 test -n "$AWK" && break
2717 done
2718
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2720 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2721 set x ${MAKE-make}
2722 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2723 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2724 $as_echo_n "(cached) " >&6
2725 else
2726 cat >conftest.make <<\_ACEOF
2727 SHELL = /bin/sh
2728 all:
2729 @echo '@@@%%%=$(MAKE)=@@@%%%'
2730 _ACEOF
2731 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2732 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2733 *@@@%%%=?*=@@@%%%*)
2734 eval ac_cv_prog_make_${ac_make}_set=yes;;
2735 *)
2736 eval ac_cv_prog_make_${ac_make}_set=no;;
2737 esac
2738 rm -f conftest.make
2739 fi
2740 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2742 $as_echo "yes" >&6; }
2743 SET_MAKE=
2744 else
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2746 $as_echo "no" >&6; }
2747 SET_MAKE="MAKE=${MAKE-make}"
2748 fi
2749
2750 rm -rf .tst 2>/dev/null
2751 mkdir .tst 2>/dev/null
2752 if test -d .tst; then
2753 am__leading_dot=.
2754 else
2755 am__leading_dot=_
2756 fi
2757 rmdir .tst 2>/dev/null
2758
2759 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2760 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2761 # is not polluted with repeated "-I."
2762 am__isrc=' -I$(srcdir)'
2763 # test to see if srcdir already configured
2764 if test -f $srcdir/config.status; then
2765 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2766 fi
2767 fi
2768
2769 # test whether we have cygpath
2770 if test -z "$CYGPATH_W"; then
2771 if (cygpath --version) >/dev/null 2>/dev/null; then
2772 CYGPATH_W='cygpath -w'
2773 else
2774 CYGPATH_W=echo
2775 fi
2776 fi
2777
2778
2779 # Define the identity of the package.
2780 PACKAGE=$SB_NAME
2781 VERSION=$VERSION
2782
2783
2784 cat >>confdefs.h <<_ACEOF
2785 #define PACKAGE "$PACKAGE"
2786 _ACEOF
2787
2788
2789 cat >>confdefs.h <<_ACEOF
2790 #define VERSION "$VERSION"
2791 _ACEOF
2792
2793 # Some tools Automake needs.
2794
2795 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2796
2797
2798 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2799
2800
2801 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2802
2803
2804 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2805
2806
2807 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2808
2809 # We need awk for the "check" target. The system "awk" is bad on
2810 # some platforms.
2811 # Always define AMTAR for backward compatibility. Yes, it's still used
2812 # in the wild :-( We should find a proper way to deprecate it ...
2813 AMTAR='$${TAR-tar}'
2814
2815 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2816
2817
2818
2819
2820
2821 ac_config_headers="$ac_config_headers sb-config.h"
2822
2823
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2825 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2826 # Check whether --enable-maintainer-mode was given.
2827 if test "${enable_maintainer_mode+set}" = set; then :
2828 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2829 else
2830 USE_MAINTAINER_MODE=no
2831 fi
2832
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2834 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2835 if test $USE_MAINTAINER_MODE = yes; then
2836 MAINTAINER_MODE_TRUE=
2837 MAINTAINER_MODE_FALSE='#'
2838 else
2839 MAINTAINER_MODE_TRUE='#'
2840 MAINTAINER_MODE_FALSE=
2841 fi
2842
2843 MAINT=$MAINTAINER_MODE_TRUE
2844
2845
2846 # Make sure we can run config.sub.
2847 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2848 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2849
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2851 $as_echo_n "checking build system type... " >&6; }
2852 if ${ac_cv_build+:} false; then :
2853 $as_echo_n "(cached) " >&6
2854 else
2855 ac_build_alias=$build_alias
2856 test "x$ac_build_alias" = x &&
2857 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2858 test "x$ac_build_alias" = x &&
2859 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2860 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2861 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2862
2863 fi
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2865 $as_echo "$ac_cv_build" >&6; }
2866 case $ac_cv_build in
2867 *-*-*) ;;
2868 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2869 esac
2870 build=$ac_cv_build
2871 ac_save_IFS=$IFS; IFS='-'
2872 set x $ac_cv_build
2873 shift
2874 build_cpu=$1
2875 build_vendor=$2
2876 shift; shift
2877 # Remember, the first character of IFS is used to create $*,
2878 # except with old shells:
2879 build_os=$*
2880 IFS=$ac_save_IFS
2881 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2882
2883
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2885 $as_echo_n "checking host system type... " >&6; }
2886 if ${ac_cv_host+:} false; then :
2887 $as_echo_n "(cached) " >&6
2888 else
2889 if test "x$host_alias" = x; then
2890 ac_cv_host=$ac_cv_build
2891 else
2892 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2893 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2894 fi
2895
2896 fi
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2898 $as_echo "$ac_cv_host" >&6; }
2899 case $ac_cv_host in
2900 *-*-*) ;;
2901 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2902 esac
2903 host=$ac_cv_host
2904 ac_save_IFS=$IFS; IFS='-'
2905 set x $ac_cv_host
2906 shift
2907 host_cpu=$1
2908 host_vendor=$2
2909 shift; shift
2910 # Remember, the first character of IFS is used to create $*,
2911 # except with old shells:
2912 host_os=$*
2913 IFS=$ac_save_IFS
2914 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2915
2916
2917
2918 case `pwd` in
2919 *\ * | *\ *)
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2921 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2922 esac
2923
2924
2925
2926 macro_version='2.4'
2927 macro_revision='1.3294'
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941 ltmain="$ac_aux_dir/ltmain.sh"
2942
2943 # Backslashify metacharacters that are still active within
2944 # double-quoted strings.
2945 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2946
2947 # Same as above, but do not quote variable references.
2948 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2949
2950 # Sed substitution to delay expansion of an escaped shell variable in a
2951 # double_quote_subst'ed string.
2952 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2953
2954 # Sed substitution to delay expansion of an escaped single quote.
2955 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2956
2957 # Sed substitution to avoid accidental globbing in evaled expressions
2958 no_glob_subst='s/\*/\\\*/g'
2959
2960 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2961 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2962 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2963
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2965 $as_echo_n "checking how to print strings... " >&6; }
2966 # Test print first, because it will be a builtin if present.
2967 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2968 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2969 ECHO='print -r --'
2970 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2971 ECHO='printf %s\n'
2972 else
2973 # Use this function as a fallback that always works.
2974 func_fallback_echo ()
2975 {
2976 eval 'cat <<_LTECHO_EOF
2977 $1
2978 _LTECHO_EOF'
2979 }
2980 ECHO='func_fallback_echo'
2981 fi
2982
2983 # func_echo_all arg...
2984 # Invoke $ECHO with all args, space-separated.
2985 func_echo_all ()
2986 {
2987 $ECHO ""
2988 }
2989
2990 case "$ECHO" in
2991 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2992 $as_echo "printf" >&6; } ;;
2993 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2994 $as_echo "print -r" >&6; } ;;
2995 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2996 $as_echo "cat" >&6; } ;;
2997 esac
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012 DEPDIR="${am__leading_dot}deps"
3013
3014 ac_config_commands="$ac_config_commands depfiles"
3015
3016
3017 am_make=${MAKE-make}
3018 cat > confinc << 'END'
3019 am__doit:
3020 @echo this is the am__doit target
3021 .PHONY: am__doit
3022 END
3023 # If we don't find an include directive, just comment out the code.
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3025 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3026 am__include="#"
3027 am__quote=
3028 _am_result=none
3029 # First try GNU make style include.
3030 echo "include confinc" > confmf
3031 # Ignore all kinds of additional output from `make'.
3032 case `$am_make -s -f confmf 2> /dev/null` in #(
3033 *the\ am__doit\ target*)
3034 am__include=include
3035 am__quote=
3036 _am_result=GNU
3037 ;;
3038 esac
3039 # Now try BSD make style include.
3040 if test "$am__include" = "#"; then
3041 echo '.include "confinc"' > confmf
3042 case `$am_make -s -f confmf 2> /dev/null` in #(
3043 *the\ am__doit\ target*)
3044 am__include=.include
3045 am__quote="\""
3046 _am_result=BSD
3047 ;;
3048 esac
3049 fi
3050
3051
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3053 $as_echo "$_am_result" >&6; }
3054 rm -f confinc confmf
3055
3056 # Check whether --enable-dependency-tracking was given.
3057 if test "${enable_dependency_tracking+set}" = set; then :
3058 enableval=$enable_dependency_tracking;
3059 fi
3060
3061 if test "x$enable_dependency_tracking" != xno; then
3062 am_depcomp="$ac_aux_dir/depcomp"
3063 AMDEPBACKSLASH='\'
3064 am__nodep='_no'
3065 fi
3066 if test "x$enable_dependency_tracking" != xno; then
3067 AMDEP_TRUE=
3068 AMDEP_FALSE='#'
3069 else
3070 AMDEP_TRUE='#'
3071 AMDEP_FALSE=
3072 fi
3073
3074
3075 ac_ext=c
3076 ac_cpp='$CPP $CPPFLAGS'
3077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3080 if test -n "$ac_tool_prefix"; then
3081 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3082 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084 $as_echo_n "checking for $ac_word... " >&6; }
3085 if ${ac_cv_prog_CC+:} false; then :
3086 $as_echo_n "(cached) " >&6
3087 else
3088 if test -n "$CC"; then
3089 ac_cv_prog_CC="$CC" # Let the user override the test.
3090 else
3091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092 for as_dir in $PATH
3093 do
3094 IFS=$as_save_IFS
3095 test -z "$as_dir" && as_dir=.
3096 for ac_exec_ext in '' $ac_executable_extensions; do
3097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3098 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100 break 2
3101 fi
3102 done
3103 done
3104 IFS=$as_save_IFS
3105
3106 fi
3107 fi
3108 CC=$ac_cv_prog_CC
3109 if test -n "$CC"; then
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3111 $as_echo "$CC" >&6; }
3112 else
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 $as_echo "no" >&6; }
3115 fi
3116
3117
3118 fi
3119 if test -z "$ac_cv_prog_CC"; then
3120 ac_ct_CC=$CC
3121 # Extract the first word of "gcc", so it can be a program name with args.
3122 set dummy gcc; ac_word=$2
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3124 $as_echo_n "checking for $ac_word... " >&6; }
3125 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3126 $as_echo_n "(cached) " >&6
3127 else
3128 if test -n "$ac_ct_CC"; then
3129 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3130 else
3131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132 for as_dir in $PATH
3133 do
3134 IFS=$as_save_IFS
3135 test -z "$as_dir" && as_dir=.
3136 for ac_exec_ext in '' $ac_executable_extensions; do
3137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3138 ac_cv_prog_ac_ct_CC="gcc"
3139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3140 break 2
3141 fi
3142 done
3143 done
3144 IFS=$as_save_IFS
3145
3146 fi
3147 fi
3148 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3149 if test -n "$ac_ct_CC"; then
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3151 $as_echo "$ac_ct_CC" >&6; }
3152 else
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154 $as_echo "no" >&6; }
3155 fi
3156
3157 if test "x$ac_ct_CC" = x; then
3158 CC=""
3159 else
3160 case $cross_compiling:$ac_tool_warned in
3161 yes:)
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3164 ac_tool_warned=yes ;;
3165 esac
3166 CC=$ac_ct_CC
3167 fi
3168 else
3169 CC="$ac_cv_prog_CC"
3170 fi
3171
3172 if test -z "$CC"; then
3173 if test -n "$ac_tool_prefix"; then
3174 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3175 set dummy ${ac_tool_prefix}cc; ac_word=$2
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3177 $as_echo_n "checking for $ac_word... " >&6; }
3178 if ${ac_cv_prog_CC+:} false; then :
3179 $as_echo_n "(cached) " >&6
3180 else
3181 if test -n "$CC"; then
3182 ac_cv_prog_CC="$CC" # Let the user override the test.
3183 else
3184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 for as_dir in $PATH
3186 do
3187 IFS=$as_save_IFS
3188 test -z "$as_dir" && as_dir=.
3189 for ac_exec_ext in '' $ac_executable_extensions; do
3190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3191 ac_cv_prog_CC="${ac_tool_prefix}cc"
3192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3193 break 2
3194 fi
3195 done
3196 done
3197 IFS=$as_save_IFS
3198
3199 fi
3200 fi
3201 CC=$ac_cv_prog_CC
3202 if test -n "$CC"; then
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3204 $as_echo "$CC" >&6; }
3205 else
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3207 $as_echo "no" >&6; }
3208 fi
3209
3210
3211 fi
3212 fi
3213 if test -z "$CC"; then
3214 # Extract the first word of "cc", so it can be a program name with args.
3215 set dummy cc; ac_word=$2
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3217 $as_echo_n "checking for $ac_word... " >&6; }
3218 if ${ac_cv_prog_CC+:} false; then :
3219 $as_echo_n "(cached) " >&6
3220 else
3221 if test -n "$CC"; then
3222 ac_cv_prog_CC="$CC" # Let the user override the test.
3223 else
3224 ac_prog_rejected=no
3225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226 for as_dir in $PATH
3227 do
3228 IFS=$as_save_IFS
3229 test -z "$as_dir" && as_dir=.
3230 for ac_exec_ext in '' $ac_executable_extensions; do
3231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3232 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3233 ac_prog_rejected=yes
3234 continue
3235 fi
3236 ac_cv_prog_CC="cc"
3237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3238 break 2
3239 fi
3240 done
3241 done
3242 IFS=$as_save_IFS
3243
3244 if test $ac_prog_rejected = yes; then
3245 # We found a bogon in the path, so make sure we never use it.
3246 set dummy $ac_cv_prog_CC
3247 shift
3248 if test $# != 0; then
3249 # We chose a different compiler from the bogus one.
3250 # However, it has the same basename, so the bogon will be chosen
3251 # first if we set CC to just the basename; use the full file name.
3252 shift
3253 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3254 fi
3255 fi
3256 fi
3257 fi
3258 CC=$ac_cv_prog_CC
3259 if test -n "$CC"; then
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3261 $as_echo "$CC" >&6; }
3262 else
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264 $as_echo "no" >&6; }
3265 fi
3266
3267
3268 fi
3269 if test -z "$CC"; then
3270 if test -n "$ac_tool_prefix"; then
3271 for ac_prog in cl.exe
3272 do
3273 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3274 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276 $as_echo_n "checking for $ac_word... " >&6; }
3277 if ${ac_cv_prog_CC+:} false; then :
3278 $as_echo_n "(cached) " >&6
3279 else
3280 if test -n "$CC"; then
3281 ac_cv_prog_CC="$CC" # Let the user override the test.
3282 else
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 for as_dir in $PATH
3285 do
3286 IFS=$as_save_IFS
3287 test -z "$as_dir" && as_dir=.
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3290 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 break 2
3293 fi
3294 done
3295 done
3296 IFS=$as_save_IFS
3297
3298 fi
3299 fi
3300 CC=$ac_cv_prog_CC
3301 if test -n "$CC"; then
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3303 $as_echo "$CC" >&6; }
3304 else
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 $as_echo "no" >&6; }
3307 fi
3308
3309
3310 test -n "$CC" && break
3311 done
3312 fi
3313 if test -z "$CC"; then
3314 ac_ct_CC=$CC
3315 for ac_prog in cl.exe
3316 do
3317 # Extract the first word of "$ac_prog", so it can be a program name with args.
3318 set dummy $ac_prog; ac_word=$2
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3320 $as_echo_n "checking for $ac_word... " >&6; }
3321 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3322 $as_echo_n "(cached) " >&6
3323 else
3324 if test -n "$ac_ct_CC"; then
3325 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3326 else
3327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328 for as_dir in $PATH
3329 do
3330 IFS=$as_save_IFS
3331 test -z "$as_dir" && as_dir=.
3332 for ac_exec_ext in '' $ac_executable_extensions; do
3333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3334 ac_cv_prog_ac_ct_CC="$ac_prog"
3335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3336 break 2
3337 fi
3338 done
3339 done
3340 IFS=$as_save_IFS
3341
3342 fi
3343 fi
3344 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3345 if test -n "$ac_ct_CC"; then
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3347 $as_echo "$ac_ct_CC" >&6; }
3348 else
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350 $as_echo "no" >&6; }
3351 fi
3352
3353
3354 test -n "$ac_ct_CC" && break
3355 done
3356
3357 if test "x$ac_ct_CC" = x; then
3358 CC=""
3359 else
3360 case $cross_compiling:$ac_tool_warned in
3361 yes:)
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3363 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3364 ac_tool_warned=yes ;;
3365 esac
3366 CC=$ac_ct_CC
3367 fi
3368 fi
3369
3370 fi
3371
3372
3373 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3374 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3375 as_fn_error $? "no acceptable C compiler found in \$PATH
3376 See \`config.log' for more details" "$LINENO" 5; }
3377
3378 # Provide some information about the compiler.
3379 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3380 set X $ac_compile
3381 ac_compiler=$2
3382 for ac_option in --version -v -V -qversion; do
3383 { { ac_try="$ac_compiler $ac_option >&5"
3384 case "(($ac_try" in
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3387 esac
3388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3389 $as_echo "$ac_try_echo"; } >&5
3390 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3391 ac_status=$?
3392 if test -s conftest.err; then
3393 sed '10a\
3394 ... rest of stderr output deleted ...
3395 10q' conftest.err >conftest.er1
3396 cat conftest.er1 >&5
3397 fi
3398 rm -f conftest.er1 conftest.err
3399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3400 test $ac_status = 0; }
3401 done
3402
3403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404 /* end confdefs.h. */
3405
3406 int
3407 main ()
3408 {
3409
3410 ;
3411 return 0;
3412 }
3413 _ACEOF
3414 ac_clean_files_save=$ac_clean_files
3415 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3416 # Try to create an executable without -o first, disregard a.out.
3417 # It will help us diagnose broken compilers, and finding out an intuition
3418 # of exeext.
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3420 $as_echo_n "checking whether the C compiler works... " >&6; }
3421 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3422
3423 # The possible output files:
3424 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3425
3426 ac_rmfiles=
3427 for ac_file in $ac_files
3428 do
3429 case $ac_file in
3430 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3431 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3432 esac
3433 done
3434 rm -f $ac_rmfiles
3435
3436 if { { ac_try="$ac_link_default"
3437 case "(($ac_try" in
3438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439 *) ac_try_echo=$ac_try;;
3440 esac
3441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3442 $as_echo "$ac_try_echo"; } >&5
3443 (eval "$ac_link_default") 2>&5
3444 ac_status=$?
3445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3446 test $ac_status = 0; }; then :
3447 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3448 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3449 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3450 # so that the user can short-circuit this test for compilers unknown to
3451 # Autoconf.
3452 for ac_file in $ac_files ''
3453 do
3454 test -f "$ac_file" || continue
3455 case $ac_file in
3456 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3457 ;;
3458 [ab].out )
3459 # We found the default executable, but exeext='' is most
3460 # certainly right.
3461 break;;
3462 *.* )
3463 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3464 then :; else
3465 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3466 fi
3467 # We set ac_cv_exeext here because the later test for it is not
3468 # safe: cross compilers may not add the suffix if given an `-o'
3469 # argument, so we may need to know it at that point already.
3470 # Even if this section looks crufty: it has the advantage of
3471 # actually working.
3472 break;;
3473 * )
3474 break;;
3475 esac
3476 done
3477 test "$ac_cv_exeext" = no && ac_cv_exeext=
3478
3479 else
3480 ac_file=''
3481 fi
3482 if test -z "$ac_file"; then :
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3484 $as_echo "no" >&6; }
3485 $as_echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3487
3488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3490 as_fn_error 77 "C compiler cannot create executables
3491 See \`config.log' for more details" "$LINENO" 5; }
3492 else
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3494 $as_echo "yes" >&6; }
3495 fi
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3497 $as_echo_n "checking for C compiler default output file name... " >&6; }
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3499 $as_echo "$ac_file" >&6; }
3500 ac_exeext=$ac_cv_exeext
3501
3502 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3503 ac_clean_files=$ac_clean_files_save
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3505 $as_echo_n "checking for suffix of executables... " >&6; }
3506 if { { ac_try="$ac_link"
3507 case "(($ac_try" in
3508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509 *) ac_try_echo=$ac_try;;
3510 esac
3511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3512 $as_echo "$ac_try_echo"; } >&5
3513 (eval "$ac_link") 2>&5
3514 ac_status=$?
3515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3516 test $ac_status = 0; }; then :
3517 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3518 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3519 # work properly (i.e., refer to `conftest.exe'), while it won't with
3520 # `rm'.
3521 for ac_file in conftest.exe conftest conftest.*; do
3522 test -f "$ac_file" || continue
3523 case $ac_file in
3524 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3525 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3526 break;;
3527 * ) break;;
3528 esac
3529 done
3530 else
3531 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3532 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3533 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3534 See \`config.log' for more details" "$LINENO" 5; }
3535 fi
3536 rm -f conftest conftest$ac_cv_exeext
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3538 $as_echo "$ac_cv_exeext" >&6; }
3539
3540 rm -f conftest.$ac_ext
3541 EXEEXT=$ac_cv_exeext
3542 ac_exeext=$EXEEXT
3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h. */
3545 #include <stdio.h>
3546 int
3547 main ()
3548 {
3549 FILE *f = fopen ("conftest.out", "w");
3550 return ferror (f) || fclose (f) != 0;
3551
3552 ;
3553 return 0;
3554 }
3555 _ACEOF
3556 ac_clean_files="$ac_clean_files conftest.out"
3557 # Check that the compiler produces executables we can run. If not, either
3558 # the compiler is broken, or we cross compile.
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3560 $as_echo_n "checking whether we are cross compiling... " >&6; }
3561 if test "$cross_compiling" != yes; then
3562 { { ac_try="$ac_link"
3563 case "(($ac_try" in
3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565 *) ac_try_echo=$ac_try;;
3566 esac
3567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3568 $as_echo "$ac_try_echo"; } >&5
3569 (eval "$ac_link") 2>&5
3570 ac_status=$?
3571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3572 test $ac_status = 0; }
3573 if { ac_try='./conftest$ac_cv_exeext'
3574 { { case "(($ac_try" in
3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576 *) ac_try_echo=$ac_try;;
3577 esac
3578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3579 $as_echo "$ac_try_echo"; } >&5
3580 (eval "$ac_try") 2>&5
3581 ac_status=$?
3582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3583 test $ac_status = 0; }; }; then
3584 cross_compiling=no
3585 else
3586 if test "$cross_compiling" = maybe; then
3587 cross_compiling=yes
3588 else
3589 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3591 as_fn_error $? "cannot run C compiled programs.
3592 If you meant to cross compile, use \`--host'.
3593 See \`config.log' for more details" "$LINENO" 5; }
3594 fi
3595 fi
3596 fi
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3598 $as_echo "$cross_compiling" >&6; }
3599
3600 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3601 ac_clean_files=$ac_clean_files_save
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3603 $as_echo_n "checking for suffix of object files... " >&6; }
3604 if ${ac_cv_objext+:} false; then :
3605 $as_echo_n "(cached) " >&6
3606 else
3607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608 /* end confdefs.h. */
3609
3610 int
3611 main ()
3612 {
3613
3614 ;
3615 return 0;
3616 }
3617 _ACEOF
3618 rm -f conftest.o conftest.obj
3619 if { { ac_try="$ac_compile"
3620 case "(($ac_try" in
3621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622 *) ac_try_echo=$ac_try;;
3623 esac
3624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3625 $as_echo "$ac_try_echo"; } >&5
3626 (eval "$ac_compile") 2>&5
3627 ac_status=$?
3628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3629 test $ac_status = 0; }; then :
3630 for ac_file in conftest.o conftest.obj conftest.*; do
3631 test -f "$ac_file" || continue;
3632 case $ac_file in
3633 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3634 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3635 break;;
3636 esac
3637 done
3638 else
3639 $as_echo "$as_me: failed program was:" >&5
3640 sed 's/^/| /' conftest.$ac_ext >&5
3641
3642 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3644 as_fn_error $? "cannot compute suffix of object files: cannot compile
3645 See \`config.log' for more details" "$LINENO" 5; }
3646 fi
3647 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3648 fi
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3650 $as_echo "$ac_cv_objext" >&6; }
3651 OBJEXT=$ac_cv_objext
3652 ac_objext=$OBJEXT
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3654 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3655 if ${ac_cv_c_compiler_gnu+:} false; then :
3656 $as_echo_n "(cached) " >&6
3657 else
3658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659 /* end confdefs.h. */
3660
3661 int
3662 main ()
3663 {
3664 #ifndef __GNUC__
3665 choke me
3666 #endif
3667
3668 ;
3669 return 0;
3670 }
3671 _ACEOF
3672 if ac_fn_c_try_compile "$LINENO"; then :
3673 ac_compiler_gnu=yes
3674 else
3675 ac_compiler_gnu=no
3676 fi
3677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3678 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3679
3680 fi
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3682 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3683 if test $ac_compiler_gnu = yes; then
3684 GCC=yes
3685 else
3686 GCC=
3687 fi
3688 ac_test_CFLAGS=${CFLAGS+set}
3689 ac_save_CFLAGS=$CFLAGS
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3691 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3692 if ${ac_cv_prog_cc_g+:} false; then :
3693 $as_echo_n "(cached) " >&6
3694 else
3695 ac_save_c_werror_flag=$ac_c_werror_flag
3696 ac_c_werror_flag=yes
3697 ac_cv_prog_cc_g=no
3698 CFLAGS="-g"
3699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700 /* end confdefs.h. */
3701
3702 int
3703 main ()
3704 {
3705
3706 ;
3707 return 0;
3708 }
3709 _ACEOF
3710 if ac_fn_c_try_compile "$LINENO"; then :
3711 ac_cv_prog_cc_g=yes
3712 else
3713 CFLAGS=""
3714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3715 /* end confdefs.h. */
3716
3717 int
3718 main ()
3719 {
3720
3721 ;
3722 return 0;
3723 }
3724 _ACEOF
3725 if ac_fn_c_try_compile "$LINENO"; then :
3726
3727 else
3728 ac_c_werror_flag=$ac_save_c_werror_flag
3729 CFLAGS="-g"
3730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731 /* end confdefs.h. */
3732
3733 int
3734 main ()
3735 {
3736
3737 ;
3738 return 0;
3739 }
3740 _ACEOF
3741 if ac_fn_c_try_compile "$LINENO"; then :
3742 ac_cv_prog_cc_g=yes
3743 fi
3744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3745 fi
3746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3747 fi
3748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3749 ac_c_werror_flag=$ac_save_c_werror_flag
3750 fi
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3752 $as_echo "$ac_cv_prog_cc_g" >&6; }
3753 if test "$ac_test_CFLAGS" = set; then
3754 CFLAGS=$ac_save_CFLAGS
3755 elif test $ac_cv_prog_cc_g = yes; then
3756 if test "$GCC" = yes; then
3757 CFLAGS="-g -O2"
3758 else
3759 CFLAGS="-g"
3760 fi
3761 else
3762 if test "$GCC" = yes; then
3763 CFLAGS="-O2"
3764 else
3765 CFLAGS=
3766 fi
3767 fi
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3769 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3770 if ${ac_cv_prog_cc_c89+:} false; then :
3771 $as_echo_n "(cached) " >&6
3772 else
3773 ac_cv_prog_cc_c89=no
3774 ac_save_CC=$CC
3775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776 /* end confdefs.h. */
3777 #include <stdarg.h>
3778 #include <stdio.h>
3779 struct stat;
3780 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3781 struct buf { int x; };
3782 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3783 static char *e (p, i)
3784 char **p;
3785 int i;
3786 {
3787 return p[i];
3788 }
3789 static char *f (char * (*g) (char **, int), char **p, ...)
3790 {
3791 char *s;
3792 va_list v;
3793 va_start (v,p);
3794 s = g (p, va_arg (v,int));
3795 va_end (v);
3796 return s;
3797 }
3798
3799 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3800 function prototypes and stuff, but not '\xHH' hex character constants.
3801 These don't provoke an error unfortunately, instead are silently treated
3802 as 'x'. The following induces an error, until -std is added to get
3803 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3804 array size at least. It's necessary to write '\x00'==0 to get something
3805 that's true only with -std. */
3806 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3807
3808 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3809 inside strings and character constants. */
3810 #define FOO(x) 'x'
3811 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3812
3813 int test (int i, double x);
3814 struct s1 {int (*f) (int a);};
3815 struct s2 {int (*f) (double a);};
3816 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3817 int argc;
3818 char **argv;
3819 int
3820 main ()
3821 {
3822 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3823 ;
3824 return 0;
3825 }
3826 _ACEOF
3827 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3828 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3829 do
3830 CC="$ac_save_CC $ac_arg"
3831 if ac_fn_c_try_compile "$LINENO"; then :
3832 ac_cv_prog_cc_c89=$ac_arg
3833 fi
3834 rm -f core conftest.err conftest.$ac_objext
3835 test "x$ac_cv_prog_cc_c89" != "xno" && break
3836 done
3837 rm -f conftest.$ac_ext
3838 CC=$ac_save_CC
3839
3840 fi
3841 # AC_CACHE_VAL
3842 case "x$ac_cv_prog_cc_c89" in
3843 x)
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3845 $as_echo "none needed" >&6; } ;;
3846 xno)
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3848 $as_echo "unsupported" >&6; } ;;
3849 *)
3850 CC="$CC $ac_cv_prog_cc_c89"
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3852 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3853 esac
3854 if test "x$ac_cv_prog_cc_c89" != xno; then :
3855
3856 fi
3857
3858 ac_ext=c
3859 ac_cpp='$CPP $CPPFLAGS'
3860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3863
3864 depcc="$CC" am_compiler_list=
3865
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3867 $as_echo_n "checking dependency style of $depcc... " >&6; }
3868 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3869 $as_echo_n "(cached) " >&6
3870 else
3871 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3872 # We make a subdir and do the tests there. Otherwise we can end up
3873 # making bogus files that we don't know about and never remove. For
3874 # instance it was reported that on HP-UX the gcc test will end up
3875 # making a dummy file named `D' -- because `-MD' means `put the output
3876 # in D'.
3877 rm -rf conftest.dir
3878 mkdir conftest.dir
3879 # Copy depcomp to subdir because otherwise we won't find it if we're
3880 # using a relative directory.
3881 cp "$am_depcomp" conftest.dir
3882 cd conftest.dir
3883 # We will build objects and dependencies in a subdirectory because
3884 # it helps to detect inapplicable dependency modes. For instance
3885 # both Tru64's cc and ICC support -MD to output dependencies as a
3886 # side effect of compilation, but ICC will put the dependencies in
3887 # the current directory while Tru64 will put them in the object
3888 # directory.
3889 mkdir sub
3890
3891 am_cv_CC_dependencies_compiler_type=none
3892 if test "$am_compiler_list" = ""; then
3893 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3894 fi
3895 am__universal=false
3896 case " $depcc " in #(
3897 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3898 esac
3899
3900 for depmode in $am_compiler_list; do
3901 # Setup a source with many dependencies, because some compilers
3902 # like to wrap large dependency lists on column 80 (with \), and
3903 # we should not choose a depcomp mode which is confused by this.
3904 #
3905 # We need to recreate these files for each test, as the compiler may
3906 # overwrite some of them when testing with obscure command lines.
3907 # This happens at least with the AIX C compiler.
3908 : > sub/conftest.c
3909 for i in 1 2 3 4 5 6; do
3910 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3911 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3912 # Solaris 8's {/usr,}/bin/sh.
3913 touch sub/conftst$i.h
3914 done
3915 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3916
3917 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3918 # mode. It turns out that the SunPro C++ compiler does not properly
3919 # handle `-M -o', and we need to detect this. Also, some Intel
3920 # versions had trouble with output in subdirs
3921 am__obj=sub/conftest.${OBJEXT-o}
3922 am__minus_obj="-o $am__obj"
3923 case $depmode in
3924 gcc)
3925 # This depmode causes a compiler race in universal mode.
3926 test "$am__universal" = false || continue
3927 ;;
3928 nosideeffect)
3929 # after this tag, mechanisms are not by side-effect, so they'll
3930 # only be used when explicitly requested
3931 if test "x$enable_dependency_tracking" = xyes; then
3932 continue
3933 else
3934 break
3935 fi
3936 ;;
3937 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3938 # This compiler won't grok `-c -o', but also, the minuso test has
3939 # not run yet. These depmodes are late enough in the game, and
3940 # so weak that their functioning should not be impacted.
3941 am__obj=conftest.${OBJEXT-o}
3942 am__minus_obj=
3943 ;;
3944 none) break ;;
3945 esac
3946 if depmode=$depmode \
3947 source=sub/conftest.c object=$am__obj \
3948 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3949 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3950 >/dev/null 2>conftest.err &&
3951 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3952 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3953 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3954 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3955 # icc doesn't choke on unknown options, it will just issue warnings
3956 # or remarks (even with -Werror). So we grep stderr for any message
3957 # that says an option was ignored or not supported.
3958 # When given -MP, icc 7.0 and 7.1 complain thusly:
3959 # icc: Command line warning: ignoring option '-M'; no argument required
3960 # The diagnosis changed in icc 8.0:
3961 # icc: Command line remark: option '-MP' not supported
3962 if (grep 'ignoring option' conftest.err ||
3963 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3964 am_cv_CC_dependencies_compiler_type=$depmode
3965 break
3966 fi
3967 fi
3968 done
3969
3970 cd ..
3971 rm -rf conftest.dir
3972 else
3973 am_cv_CC_dependencies_compiler_type=none
3974 fi
3975
3976 fi
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3978 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3979 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3980
3981 if
3982 test "x$enable_dependency_tracking" != xno \
3983 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3984 am__fastdepCC_TRUE=
3985 am__fastdepCC_FALSE='#'
3986 else
3987 am__fastdepCC_TRUE='#'
3988 am__fastdepCC_FALSE=
3989 fi
3990
3991
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3993 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3994 if ${ac_cv_path_SED+:} false; then :
3995 $as_echo_n "(cached) " >&6
3996 else
3997 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3998 for ac_i in 1 2 3 4 5 6 7; do
3999 ac_script="$ac_script$as_nl$ac_script"
4000 done
4001 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4002 { ac_script=; unset ac_script;}
4003 if test -z "$SED"; then
4004 ac_path_SED_found=false
4005 # Loop through the user's path and test for each of PROGNAME-LIST
4006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007 for as_dir in $PATH
4008 do
4009 IFS=$as_save_IFS
4010 test -z "$as_dir" && as_dir=.
4011 for ac_prog in sed gsed; do
4012 for ac_exec_ext in '' $ac_executable_extensions; do
4013 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4014 as_fn_executable_p "$ac_path_SED" || continue
4015 # Check for GNU ac_path_SED and select it if it is found.
4016 # Check for GNU $ac_path_SED
4017 case `"$ac_path_SED" --version 2>&1` in
4018 *GNU*)
4019 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4020 *)
4021 ac_count=0
4022 $as_echo_n 0123456789 >"conftest.in"
4023 while :
4024 do
4025 cat "conftest.in" "conftest.in" >"conftest.tmp"
4026 mv "conftest.tmp" "conftest.in"
4027 cp "conftest.in" "conftest.nl"
4028 $as_echo '' >> "conftest.nl"
4029 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4030 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4031 as_fn_arith $ac_count + 1 && ac_count=$as_val
4032 if test $ac_count -gt ${ac_path_SED_max-0}; then
4033 # Best one so far, save it but keep looking for a better one
4034 ac_cv_path_SED="$ac_path_SED"
4035 ac_path_SED_max=$ac_count
4036 fi
4037 # 10*(2^10) chars as input seems more than enough
4038 test $ac_count -gt 10 && break
4039 done
4040 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4041 esac
4042
4043 $ac_path_SED_found && break 3
4044 done
4045 done
4046 done
4047 IFS=$as_save_IFS
4048 if test -z "$ac_cv_path_SED"; then
4049 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4050 fi
4051 else
4052 ac_cv_path_SED=$SED
4053 fi
4054
4055 fi
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4057 $as_echo "$ac_cv_path_SED" >&6; }
4058 SED="$ac_cv_path_SED"
4059 rm -f conftest.sed
4060
4061 test -z "$SED" && SED=sed
4062 Xsed="$SED -e 1s/^X//"
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4075 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4076 if ${ac_cv_path_GREP+:} false; then :
4077 $as_echo_n "(cached) " >&6
4078 else
4079 if test -z "$GREP"; then
4080 ac_path_GREP_found=false
4081 # Loop through the user's path and test for each of PROGNAME-LIST
4082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4084 do
4085 IFS=$as_save_IFS
4086 test -z "$as_dir" && as_dir=.
4087 for ac_prog in grep ggrep; do
4088 for ac_exec_ext in '' $ac_executable_extensions; do
4089 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4090 as_fn_executable_p "$ac_path_GREP" || continue
4091 # Check for GNU ac_path_GREP and select it if it is found.
4092 # Check for GNU $ac_path_GREP
4093 case `"$ac_path_GREP" --version 2>&1` in
4094 *GNU*)
4095 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4096 *)
4097 ac_count=0
4098 $as_echo_n 0123456789 >"conftest.in"
4099 while :
4100 do
4101 cat "conftest.in" "conftest.in" >"conftest.tmp"
4102 mv "conftest.tmp" "conftest.in"
4103 cp "conftest.in" "conftest.nl"
4104 $as_echo 'GREP' >> "conftest.nl"
4105 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4106 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4107 as_fn_arith $ac_count + 1 && ac_count=$as_val
4108 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4109 # Best one so far, save it but keep looking for a better one
4110 ac_cv_path_GREP="$ac_path_GREP"
4111 ac_path_GREP_max=$ac_count
4112 fi
4113 # 10*(2^10) chars as input seems more than enough
4114 test $ac_count -gt 10 && break
4115 done
4116 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4117 esac
4118
4119 $ac_path_GREP_found && break 3
4120 done
4121 done
4122 done
4123 IFS=$as_save_IFS
4124 if test -z "$ac_cv_path_GREP"; then
4125 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4126 fi
4127 else
4128 ac_cv_path_GREP=$GREP
4129 fi
4130
4131 fi
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4133 $as_echo "$ac_cv_path_GREP" >&6; }
4134 GREP="$ac_cv_path_GREP"
4135
4136
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4138 $as_echo_n "checking for egrep... " >&6; }
4139 if ${ac_cv_path_EGREP+:} false; then :
4140 $as_echo_n "(cached) " >&6
4141 else
4142 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4143 then ac_cv_path_EGREP="$GREP -E"
4144 else
4145 if test -z "$EGREP"; then
4146 ac_path_EGREP_found=false
4147 # Loop through the user's path and test for each of PROGNAME-LIST
4148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4150 do
4151 IFS=$as_save_IFS
4152 test -z "$as_dir" && as_dir=.
4153 for ac_prog in egrep; do
4154 for ac_exec_ext in '' $ac_executable_extensions; do
4155 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4156 as_fn_executable_p "$ac_path_EGREP" || continue
4157 # Check for GNU ac_path_EGREP and select it if it is found.
4158 # Check for GNU $ac_path_EGREP
4159 case `"$ac_path_EGREP" --version 2>&1` in
4160 *GNU*)
4161 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4162 *)
4163 ac_count=0
4164 $as_echo_n 0123456789 >"conftest.in"
4165 while :
4166 do
4167 cat "conftest.in" "conftest.in" >"conftest.tmp"
4168 mv "conftest.tmp" "conftest.in"
4169 cp "conftest.in" "conftest.nl"
4170 $as_echo 'EGREP' >> "conftest.nl"
4171 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4172 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4173 as_fn_arith $ac_count + 1 && ac_count=$as_val
4174 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4175 # Best one so far, save it but keep looking for a better one
4176 ac_cv_path_EGREP="$ac_path_EGREP"
4177 ac_path_EGREP_max=$ac_count
4178 fi
4179 # 10*(2^10) chars as input seems more than enough
4180 test $ac_count -gt 10 && break
4181 done
4182 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4183 esac
4184
4185 $ac_path_EGREP_found && break 3
4186 done
4187 done
4188 done
4189 IFS=$as_save_IFS
4190 if test -z "$ac_cv_path_EGREP"; then
4191 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4192 fi
4193 else
4194 ac_cv_path_EGREP=$EGREP
4195 fi
4196
4197 fi
4198 fi
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4200 $as_echo "$ac_cv_path_EGREP" >&6; }
4201 EGREP="$ac_cv_path_EGREP"
4202
4203
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4205 $as_echo_n "checking for fgrep... " >&6; }
4206 if ${ac_cv_path_FGREP+:} false; then :
4207 $as_echo_n "(cached) " >&6
4208 else
4209 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4210 then ac_cv_path_FGREP="$GREP -F"
4211 else
4212 if test -z "$FGREP"; then
4213 ac_path_FGREP_found=false
4214 # Loop through the user's path and test for each of PROGNAME-LIST
4215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4217 do
4218 IFS=$as_save_IFS
4219 test -z "$as_dir" && as_dir=.
4220 for ac_prog in fgrep; do
4221 for ac_exec_ext in '' $ac_executable_extensions; do
4222 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4223 as_fn_executable_p "$ac_path_FGREP" || continue
4224 # Check for GNU ac_path_FGREP and select it if it is found.
4225 # Check for GNU $ac_path_FGREP
4226 case `"$ac_path_FGREP" --version 2>&1` in
4227 *GNU*)
4228 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4229 *)
4230 ac_count=0
4231 $as_echo_n 0123456789 >"conftest.in"
4232 while :
4233 do
4234 cat "conftest.in" "conftest.in" >"conftest.tmp"
4235 mv "conftest.tmp" "conftest.in"
4236 cp "conftest.in" "conftest.nl"
4237 $as_echo 'FGREP' >> "conftest.nl"
4238 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4239 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4240 as_fn_arith $ac_count + 1 && ac_count=$as_val
4241 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4242 # Best one so far, save it but keep looking for a better one
4243 ac_cv_path_FGREP="$ac_path_FGREP"
4244 ac_path_FGREP_max=$ac_count
4245 fi
4246 # 10*(2^10) chars as input seems more than enough
4247 test $ac_count -gt 10 && break
4248 done
4249 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4250 esac
4251
4252 $ac_path_FGREP_found && break 3
4253 done
4254 done
4255 done
4256 IFS=$as_save_IFS
4257 if test -z "$ac_cv_path_FGREP"; then
4258 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4259 fi
4260 else
4261 ac_cv_path_FGREP=$FGREP
4262 fi
4263
4264 fi
4265 fi
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4267 $as_echo "$ac_cv_path_FGREP" >&6; }
4268 FGREP="$ac_cv_path_FGREP"
4269
4270
4271 test -z "$GREP" && GREP=grep
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291 # Check whether --with-gnu-ld was given.
4292 if test "${with_gnu_ld+set}" = set; then :
4293 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4294 else
4295 with_gnu_ld=no
4296 fi
4297
4298 ac_prog=ld
4299 if test "$GCC" = yes; then
4300 # Check if gcc -print-prog-name=ld gives a path.
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4302 $as_echo_n "checking for ld used by $CC... " >&6; }
4303 case $host in
4304 *-*-mingw*)
4305 # gcc leaves a trailing carriage return which upsets mingw
4306 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4307 *)
4308 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4309 esac
4310 case $ac_prog in
4311 # Accept absolute paths.
4312 [\\/]* | ?:[\\/]*)
4313 re_direlt='/[^/][^/]*/\.\./'
4314 # Canonicalize the pathname of ld
4315 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4316 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4317 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4318 done
4319 test -z "$LD" && LD="$ac_prog"
4320 ;;
4321 "")
4322 # If it fails, then pretend we aren't using GCC.
4323 ac_prog=ld
4324 ;;
4325 *)
4326 # If it is relative, then search for the first ld in PATH.
4327 with_gnu_ld=unknown
4328 ;;
4329 esac
4330 elif test "$with_gnu_ld" = yes; then
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4332 $as_echo_n "checking for GNU ld... " >&6; }
4333 else
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4335 $as_echo_n "checking for non-GNU ld... " >&6; }
4336 fi
4337 if ${lt_cv_path_LD+:} false; then :
4338 $as_echo_n "(cached) " >&6
4339 else
4340 if test -z "$LD"; then
4341 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4342 for ac_dir in $PATH; do
4343 IFS="$lt_save_ifs"
4344 test -z "$ac_dir" && ac_dir=.
4345 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4346 lt_cv_path_LD="$ac_dir/$ac_prog"
4347 # Check to see if the program is GNU ld. I'd rather use --version,
4348 # but apparently some variants of GNU ld only accept -v.
4349 # Break only if it was the GNU/non-GNU ld that we prefer.
4350 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4351 *GNU* | *'with BFD'*)
4352 test "$with_gnu_ld" != no && break
4353 ;;
4354 *)
4355 test "$with_gnu_ld" != yes && break
4356 ;;
4357 esac
4358 fi
4359 done
4360 IFS="$lt_save_ifs"
4361 else
4362 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4363 fi
4364 fi
4365
4366 LD="$lt_cv_path_LD"
4367 if test -n "$LD"; then
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4369 $as_echo "$LD" >&6; }
4370 else
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4372 $as_echo "no" >&6; }
4373 fi
4374 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4376 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4377 if ${lt_cv_prog_gnu_ld+:} false; then :
4378 $as_echo_n "(cached) " >&6
4379 else
4380 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4381 case `$LD -v 2>&1 </dev/null` in
4382 *GNU* | *'with BFD'*)
4383 lt_cv_prog_gnu_ld=yes
4384 ;;
4385 *)
4386 lt_cv_prog_gnu_ld=no
4387 ;;
4388 esac
4389 fi
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4391 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4392 with_gnu_ld=$lt_cv_prog_gnu_ld
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4403 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4404 if ${lt_cv_path_NM+:} false; then :
4405 $as_echo_n "(cached) " >&6
4406 else
4407 if test -n "$NM"; then
4408 # Let the user override the test.
4409 lt_cv_path_NM="$NM"
4410 else
4411 lt_nm_to_check="${ac_tool_prefix}nm"
4412 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4413 lt_nm_to_check="$lt_nm_to_check nm"
4414 fi
4415 for lt_tmp_nm in $lt_nm_to_check; do
4416 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4417 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4418 IFS="$lt_save_ifs"
4419 test -z "$ac_dir" && ac_dir=.
4420 tmp_nm="$ac_dir/$lt_tmp_nm"
4421 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4422 # Check to see if the nm accepts a BSD-compat flag.
4423 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4424 # nm: unknown option "B" ignored
4425 # Tru64's nm complains that /dev/null is an invalid object file
4426 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4427 */dev/null* | *'Invalid file or object type'*)
4428 lt_cv_path_NM="$tmp_nm -B"
4429 break
4430 ;;
4431 *)
4432 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4433 */dev/null*)
4434 lt_cv_path_NM="$tmp_nm -p"
4435 break
4436 ;;
4437 *)
4438 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4439 continue # so that we can try to find one that supports BSD flags
4440 ;;
4441 esac
4442 ;;
4443 esac
4444 fi
4445 done
4446 IFS="$lt_save_ifs"
4447 done
4448 : ${lt_cv_path_NM=no}
4449 fi
4450 fi
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4452 $as_echo "$lt_cv_path_NM" >&6; }
4453 if test "$lt_cv_path_NM" != "no"; then
4454 NM="$lt_cv_path_NM"
4455 else
4456 # Didn't find any BSD compatible name lister, look for dumpbin.
4457 if test -n "$DUMPBIN"; then :
4458 # Let the user override the test.
4459 else
4460 if test -n "$ac_tool_prefix"; then
4461 for ac_prog in dumpbin "link -dump"
4462 do
4463 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4464 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4466 $as_echo_n "checking for $ac_word... " >&6; }
4467 if ${ac_cv_prog_DUMPBIN+:} false; then :
4468 $as_echo_n "(cached) " >&6
4469 else
4470 if test -n "$DUMPBIN"; then
4471 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4472 else
4473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474 for as_dir in $PATH
4475 do
4476 IFS=$as_save_IFS
4477 test -z "$as_dir" && as_dir=.
4478 for ac_exec_ext in '' $ac_executable_extensions; do
4479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4480 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4482 break 2
4483 fi
4484 done
4485 done
4486 IFS=$as_save_IFS
4487
4488 fi
4489 fi
4490 DUMPBIN=$ac_cv_prog_DUMPBIN
4491 if test -n "$DUMPBIN"; then
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4493 $as_echo "$DUMPBIN" >&6; }
4494 else
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4496 $as_echo "no" >&6; }
4497 fi
4498
4499
4500 test -n "$DUMPBIN" && break
4501 done
4502 fi
4503 if test -z "$DUMPBIN"; then
4504 ac_ct_DUMPBIN=$DUMPBIN
4505 for ac_prog in dumpbin "link -dump"
4506 do
4507 # Extract the first word of "$ac_prog", so it can be a program name with args.
4508 set dummy $ac_prog; ac_word=$2
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4510 $as_echo_n "checking for $ac_word... " >&6; }
4511 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4512 $as_echo_n "(cached) " >&6
4513 else
4514 if test -n "$ac_ct_DUMPBIN"; then
4515 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4516 else
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 for as_dir in $PATH
4519 do
4520 IFS=$as_save_IFS
4521 test -z "$as_dir" && as_dir=.
4522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4524 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4526 break 2
4527 fi
4528 done
4529 done
4530 IFS=$as_save_IFS
4531
4532 fi
4533 fi
4534 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4535 if test -n "$ac_ct_DUMPBIN"; then
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4537 $as_echo "$ac_ct_DUMPBIN" >&6; }
4538 else
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4540 $as_echo "no" >&6; }
4541 fi
4542
4543
4544 test -n "$ac_ct_DUMPBIN" && break
4545 done
4546
4547 if test "x$ac_ct_DUMPBIN" = x; then
4548 DUMPBIN=":"
4549 else
4550 case $cross_compiling:$ac_tool_warned in
4551 yes:)
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4554 ac_tool_warned=yes ;;
4555 esac
4556 DUMPBIN=$ac_ct_DUMPBIN
4557 fi
4558 fi
4559
4560 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4561 *COFF*)
4562 DUMPBIN="$DUMPBIN -symbols"
4563 ;;
4564 *)
4565 DUMPBIN=:
4566 ;;
4567 esac
4568 fi
4569
4570 if test "$DUMPBIN" != ":"; then
4571 NM="$DUMPBIN"
4572 fi
4573 fi
4574 test -z "$NM" && NM=nm
4575
4576
4577
4578
4579
4580
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4582 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4583 if ${lt_cv_nm_interface+:} false; then :
4584 $as_echo_n "(cached) " >&6
4585 else
4586 lt_cv_nm_interface="BSD nm"
4587 echo "int some_variable = 0;" > conftest.$ac_ext
4588 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4589 (eval "$ac_compile" 2>conftest.err)
4590 cat conftest.err >&5
4591 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4592 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4593 cat conftest.err >&5
4594 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4595 cat conftest.out >&5
4596 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4597 lt_cv_nm_interface="MS dumpbin"
4598 fi
4599 rm -f conftest*
4600 fi
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4602 $as_echo "$lt_cv_nm_interface" >&6; }
4603
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4605 $as_echo_n "checking whether ln -s works... " >&6; }
4606 LN_S=$as_ln_s
4607 if test "$LN_S" = "ln -s"; then
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4609 $as_echo "yes" >&6; }
4610 else
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4612 $as_echo "no, using $LN_S" >&6; }
4613 fi
4614
4615 # find the maximum length of command line arguments
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4617 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4618 if ${lt_cv_sys_max_cmd_len+:} false; then :
4619 $as_echo_n "(cached) " >&6
4620 else
4621 i=0
4622 teststring="ABCD"
4623
4624 case $build_os in
4625 msdosdjgpp*)
4626 # On DJGPP, this test can blow up pretty badly due to problems in libc
4627 # (any single argument exceeding 2000 bytes causes a buffer overrun
4628 # during glob expansion). Even if it were fixed, the result of this
4629 # check would be larger than it should be.
4630 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4631 ;;
4632
4633 gnu*)
4634 # Under GNU Hurd, this test is not required because there is
4635 # no limit to the length of command line arguments.
4636 # Libtool will interpret -1 as no limit whatsoever
4637 lt_cv_sys_max_cmd_len=-1;
4638 ;;
4639
4640 cygwin* | mingw* | cegcc*)
4641 # On Win9x/ME, this test blows up -- it succeeds, but takes
4642 # about 5 minutes as the teststring grows exponentially.
4643 # Worse, since 9x/ME are not pre-emptively multitasking,
4644 # you end up with a "frozen" computer, even though with patience
4645 # the test eventually succeeds (with a max line length of 256k).
4646 # Instead, let's just punt: use the minimum linelength reported by
4647 # all of the supported platforms: 8192 (on NT/2K/XP).
4648 lt_cv_sys_max_cmd_len=8192;
4649 ;;
4650
4651 mint*)
4652 # On MiNT this can take a long time and run out of memory.
4653 lt_cv_sys_max_cmd_len=8192;
4654 ;;
4655
4656 amigaos*)
4657 # On AmigaOS with pdksh, this test takes hours, literally.
4658 # So we just punt and use a minimum line length of 8192.
4659 lt_cv_sys_max_cmd_len=8192;
4660 ;;
4661
4662 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4663 # This has been around since 386BSD, at least. Likely further.
4664 if test -x /sbin/sysctl; then
4665 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4666 elif test -x /usr/sbin/sysctl; then
4667 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4668 else
4669 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4670 fi
4671 # And add a safety zone
4672 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4673 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4674 ;;
4675
4676 interix*)
4677 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4678 lt_cv_sys_max_cmd_len=196608
4679 ;;
4680
4681 osf*)
4682 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4683 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4684 # nice to cause kernel panics so lets avoid the loop below.
4685 # First set a reasonable default.
4686 lt_cv_sys_max_cmd_len=16384
4687 #
4688 if test -x /sbin/sysconfig; then
4689 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4690 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4691 esac
4692 fi
4693 ;;
4694 sco3.2v5*)
4695 lt_cv_sys_max_cmd_len=102400
4696 ;;
4697 sysv5* | sco5v6* | sysv4.2uw2*)
4698 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4699 if test -n "$kargmax"; then
4700 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4701 else
4702 lt_cv_sys_max_cmd_len=32768
4703 fi
4704 ;;
4705 *)
4706 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4707 if test -n "$lt_cv_sys_max_cmd_len"; then
4708 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4709 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4710 else
4711 # Make teststring a little bigger before we do anything with it.
4712 # a 1K string should be a reasonable start.
4713 for i in 1 2 3 4 5 6 7 8 ; do
4714 teststring=$teststring$teststring
4715 done
4716 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4717 # If test is not a shell built-in, we'll probably end up computing a
4718 # maximum length that is only half of the actual maximum length, but
4719 # we can't tell.
4720 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4721 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4722 test $i != 17 # 1/2 MB should be enough
4723 do
4724 i=`expr $i + 1`
4725 teststring=$teststring$teststring
4726 done
4727 # Only check the string length outside the loop.
4728 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4729 teststring=
4730 # Add a significant safety factor because C++ compilers can tack on
4731 # massive amounts of additional arguments before passing them to the
4732 # linker. It appears as though 1/2 is a usable value.
4733 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4734 fi
4735 ;;
4736 esac
4737
4738 fi
4739
4740 if test -n $lt_cv_sys_max_cmd_len ; then
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4742 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4743 else
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4745 $as_echo "none" >&6; }
4746 fi
4747 max_cmd_len=$lt_cv_sys_max_cmd_len
4748
4749
4750
4751
4752
4753
4754 : ${CP="cp -f"}
4755 : ${MV="mv -f"}
4756 : ${RM="rm -f"}
4757
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4759 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4760 # Try some XSI features
4761 xsi_shell=no
4762 ( _lt_dummy="a/b/c"
4763 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4764 = c,a/b,b/c, \
4765 && eval 'test $(( 1 + 1 )) -eq 2 \
4766 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4767 && xsi_shell=yes
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4769 $as_echo "$xsi_shell" >&6; }
4770
4771
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4773 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4774 lt_shell_append=no
4775 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4776 >/dev/null 2>&1 \
4777 && lt_shell_append=yes
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4779 $as_echo "$lt_shell_append" >&6; }
4780
4781
4782 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4783 lt_unset=unset
4784 else
4785 lt_unset=false
4786 fi
4787
4788
4789
4790
4791
4792 # test EBCDIC or ASCII
4793 case `echo X|tr X '\101'` in
4794 A) # ASCII based system
4795 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4796 lt_SP2NL='tr \040 \012'
4797 lt_NL2SP='tr \015\012 \040\040'
4798 ;;
4799 *) # EBCDIC based system
4800 lt_SP2NL='tr \100 \n'
4801 lt_NL2SP='tr \r\n \100\100'
4802 ;;
4803 esac
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4814 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4815 if ${lt_cv_to_host_file_cmd+:} false; then :
4816 $as_echo_n "(cached) " >&6
4817 else
4818 case $host in
4819 *-*-mingw* )
4820 case $build in
4821 *-*-mingw* ) # actually msys
4822 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4823 ;;
4824 *-*-cygwin* )
4825 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4826 ;;
4827 * ) # otherwise, assume *nix
4828 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4829 ;;
4830 esac
4831 ;;
4832 *-*-cygwin* )
4833 case $build in
4834 *-*-mingw* ) # actually msys
4835 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4836 ;;
4837 *-*-cygwin* )
4838 lt_cv_to_host_file_cmd=func_convert_file_noop
4839 ;;
4840 * ) # otherwise, assume *nix
4841 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4842 ;;
4843 esac
4844 ;;
4845 * ) # unhandled hosts (and "normal" native builds)
4846 lt_cv_to_host_file_cmd=func_convert_file_noop
4847 ;;
4848 esac
4849
4850 fi
4851
4852 to_host_file_cmd=$lt_cv_to_host_file_cmd
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4854 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4855
4856
4857
4858
4859
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4861 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4862 if ${lt_cv_to_tool_file_cmd+:} false; then :
4863 $as_echo_n "(cached) " >&6
4864 else
4865 #assume ordinary cross tools, or native build.
4866 lt_cv_to_tool_file_cmd=func_convert_file_noop
4867 case $host in
4868 *-*-mingw* )
4869 case $build in
4870 *-*-mingw* ) # actually msys
4871 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4872 ;;
4873 esac
4874 ;;
4875 esac
4876
4877 fi
4878
4879 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4881 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4882
4883
4884
4885
4886
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4888 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4889 if ${lt_cv_ld_reload_flag+:} false; then :
4890 $as_echo_n "(cached) " >&6
4891 else
4892 lt_cv_ld_reload_flag='-r'
4893 fi
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4895 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4896 reload_flag=$lt_cv_ld_reload_flag
4897 case $reload_flag in
4898 "" | " "*) ;;
4899 *) reload_flag=" $reload_flag" ;;
4900 esac
4901 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4902 case $host_os in
4903 cygwin* | mingw* | pw32* | cegcc*)
4904 if test "$GCC" != yes; then
4905 reload_cmds=false
4906 fi
4907 ;;
4908 darwin*)
4909 if test "$GCC" = yes; then
4910 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4911 else
4912 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4913 fi
4914 ;;
4915 esac
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925 if test -n "$ac_tool_prefix"; then
4926 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4927 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4929 $as_echo_n "checking for $ac_word... " >&6; }
4930 if ${ac_cv_prog_OBJDUMP+:} false; then :
4931 $as_echo_n "(cached) " >&6
4932 else
4933 if test -n "$OBJDUMP"; then
4934 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4935 else
4936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937 for as_dir in $PATH
4938 do
4939 IFS=$as_save_IFS
4940 test -z "$as_dir" && as_dir=.
4941 for ac_exec_ext in '' $ac_executable_extensions; do
4942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4943 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4945 break 2
4946 fi
4947 done
4948 done
4949 IFS=$as_save_IFS
4950
4951 fi
4952 fi
4953 OBJDUMP=$ac_cv_prog_OBJDUMP
4954 if test -n "$OBJDUMP"; then
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4956 $as_echo "$OBJDUMP" >&6; }
4957 else
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4959 $as_echo "no" >&6; }
4960 fi
4961
4962
4963 fi
4964 if test -z "$ac_cv_prog_OBJDUMP"; then
4965 ac_ct_OBJDUMP=$OBJDUMP
4966 # Extract the first word of "objdump", so it can be a program name with args.
4967 set dummy objdump; ac_word=$2
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4969 $as_echo_n "checking for $ac_word... " >&6; }
4970 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4971 $as_echo_n "(cached) " >&6
4972 else
4973 if test -n "$ac_ct_OBJDUMP"; then
4974 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4975 else
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 for as_dir in $PATH
4978 do
4979 IFS=$as_save_IFS
4980 test -z "$as_dir" && as_dir=.
4981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4983 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4985 break 2
4986 fi
4987 done
4988 done
4989 IFS=$as_save_IFS
4990
4991 fi
4992 fi
4993 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4994 if test -n "$ac_ct_OBJDUMP"; then
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4996 $as_echo "$ac_ct_OBJDUMP" >&6; }
4997 else
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4999 $as_echo "no" >&6; }
5000 fi
5001
5002 if test "x$ac_ct_OBJDUMP" = x; then
5003 OBJDUMP="false"
5004 else
5005 case $cross_compiling:$ac_tool_warned in
5006 yes:)
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5009 ac_tool_warned=yes ;;
5010 esac
5011 OBJDUMP=$ac_ct_OBJDUMP
5012 fi
5013 else
5014 OBJDUMP="$ac_cv_prog_OBJDUMP"
5015 fi
5016
5017 test -z "$OBJDUMP" && OBJDUMP=objdump
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5028 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5029 if ${lt_cv_deplibs_check_method+:} false; then :
5030 $as_echo_n "(cached) " >&6
5031 else
5032 lt_cv_file_magic_cmd='$MAGIC_CMD'
5033 lt_cv_file_magic_test_file=
5034 lt_cv_deplibs_check_method='unknown'
5035 # Need to set the preceding variable on all platforms that support
5036 # interlibrary dependencies.
5037 # 'none' -- dependencies not supported.
5038 # `unknown' -- same as none, but documents that we really don't know.
5039 # 'pass_all' -- all dependencies passed with no checks.
5040 # 'test_compile' -- check by making test program.
5041 # 'file_magic [[regex]]' -- check by looking for files in library path
5042 # which responds to the $file_magic_cmd with a given extended regex.
5043 # If you have `file' or equivalent on your system and you're not sure
5044 # whether `pass_all' will *always* work, you probably want this one.
5045
5046 case $host_os in
5047 aix[4-9]*)
5048 lt_cv_deplibs_check_method=pass_all
5049 ;;
5050
5051 beos*)
5052 lt_cv_deplibs_check_method=pass_all
5053 ;;
5054
5055 bsdi[45]*)
5056 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5057 lt_cv_file_magic_cmd='/usr/bin/file -L'
5058 lt_cv_file_magic_test_file=/shlib/libc.so
5059 ;;
5060
5061 cygwin*)
5062 # func_win32_libid is a shell function defined in ltmain.sh
5063 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5064 lt_cv_file_magic_cmd='func_win32_libid'
5065 ;;
5066
5067 mingw* | pw32*)
5068 # Base MSYS/MinGW do not provide the 'file' command needed by
5069 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5070 # unless we find 'file', for example because we are cross-compiling.
5071 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5072 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5073 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5074 lt_cv_file_magic_cmd='func_win32_libid'
5075 else
5076 # Keep this pattern in sync with the one in func_win32_libid.
5077 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5078 lt_cv_file_magic_cmd='$OBJDUMP -f'
5079 fi
5080 ;;
5081
5082 cegcc*)
5083 # use the weaker test based on 'objdump'. See mingw*.
5084 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5085 lt_cv_file_magic_cmd='$OBJDUMP -f'
5086 ;;
5087
5088 darwin* | rhapsody*)
5089 lt_cv_deplibs_check_method=pass_all
5090 ;;
5091
5092 freebsd* | dragonfly*)
5093 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5094 case $host_cpu in
5095 i*86 )
5096 # Not sure whether the presence of OpenBSD here was a mistake.
5097 # Let's accept both of them until this is cleared up.
5098 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5099 lt_cv_file_magic_cmd=/usr/bin/file
5100 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5101 ;;
5102 esac
5103 else
5104 lt_cv_deplibs_check_method=pass_all
5105 fi
5106 ;;
5107
5108 gnu*)
5109 lt_cv_deplibs_check_method=pass_all
5110 ;;
5111
5112 haiku*)
5113 lt_cv_deplibs_check_method=pass_all
5114 ;;
5115
5116 hpux10.20* | hpux11*)
5117 lt_cv_file_magic_cmd=/usr/bin/file
5118 case $host_cpu in
5119 ia64*)
5120 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5121 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5122 ;;
5123 hppa*64*)
5124 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5125 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5126 ;;
5127 *)
5128 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5129 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5130 ;;
5131 esac
5132 ;;
5133
5134 interix[3-9]*)
5135 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5136 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5137 ;;
5138
5139 irix5* | irix6* | nonstopux*)
5140 case $LD in
5141 *-32|*"-32 ") libmagic=32-bit;;
5142 *-n32|*"-n32 ") libmagic=N32;;
5143 *-64|*"-64 ") libmagic=64-bit;;
5144 *) libmagic=never-match;;
5145 esac
5146 lt_cv_deplibs_check_method=pass_all
5147 ;;
5148
5149 # This must be Linux ELF.
5150 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5151 lt_cv_deplibs_check_method=pass_all
5152 ;;
5153
5154 netbsd*)
5155 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5156 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5157 else
5158 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5159 fi
5160 ;;
5161
5162 newos6*)
5163 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5164 lt_cv_file_magic_cmd=/usr/bin/file
5165 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5166 ;;
5167
5168 *nto* | *qnx*)
5169 lt_cv_deplibs_check_method=pass_all
5170 ;;
5171
5172 openbsd*)
5173 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5174 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5175 else
5176 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5177 fi
5178 ;;
5179
5180 osf3* | osf4* | osf5*)
5181 lt_cv_deplibs_check_method=pass_all
5182 ;;
5183
5184 rdos*)
5185 lt_cv_deplibs_check_method=pass_all
5186 ;;
5187
5188 solaris*)
5189 lt_cv_deplibs_check_method=pass_all
5190 ;;
5191
5192 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5193 lt_cv_deplibs_check_method=pass_all
5194 ;;
5195
5196 sysv4 | sysv4.3*)
5197 case $host_vendor in
5198 motorola)
5199 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]'
5200 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5201 ;;
5202 ncr)
5203 lt_cv_deplibs_check_method=pass_all
5204 ;;
5205 sequent)
5206 lt_cv_file_magic_cmd='/bin/file'
5207 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5208 ;;
5209 sni)
5210 lt_cv_file_magic_cmd='/bin/file'
5211 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5212 lt_cv_file_magic_test_file=/lib/libc.so
5213 ;;
5214 siemens)
5215 lt_cv_deplibs_check_method=pass_all
5216 ;;
5217 pc)
5218 lt_cv_deplibs_check_method=pass_all
5219 ;;
5220 esac
5221 ;;
5222
5223 tpf*)
5224 lt_cv_deplibs_check_method=pass_all
5225 ;;
5226 esac
5227
5228 fi
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5230 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5231
5232 file_magic_glob=
5233 want_nocaseglob=no
5234 if test "$build" = "$host"; then
5235 case $host_os in
5236 mingw* | pw32*)
5237 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5238 want_nocaseglob=yes
5239 else
5240 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5241 fi
5242 ;;
5243 esac
5244 fi
5245
5246 file_magic_cmd=$lt_cv_file_magic_cmd
5247 deplibs_check_method=$lt_cv_deplibs_check_method
5248 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271 if test -n "$ac_tool_prefix"; then
5272 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5273 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5275 $as_echo_n "checking for $ac_word... " >&6; }
5276 if ${ac_cv_prog_DLLTOOL+:} false; then :
5277 $as_echo_n "(cached) " >&6
5278 else
5279 if test -n "$DLLTOOL"; then
5280 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5281 else
5282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5283 for as_dir in $PATH
5284 do
5285 IFS=$as_save_IFS
5286 test -z "$as_dir" && as_dir=.
5287 for ac_exec_ext in '' $ac_executable_extensions; do
5288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5289 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5291 break 2
5292 fi
5293 done
5294 done
5295 IFS=$as_save_IFS
5296
5297 fi
5298 fi
5299 DLLTOOL=$ac_cv_prog_DLLTOOL
5300 if test -n "$DLLTOOL"; then
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5302 $as_echo "$DLLTOOL" >&6; }
5303 else
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5305 $as_echo "no" >&6; }
5306 fi
5307
5308
5309 fi
5310 if test -z "$ac_cv_prog_DLLTOOL"; then
5311 ac_ct_DLLTOOL=$DLLTOOL
5312 # Extract the first word of "dlltool", so it can be a program name with args.
5313 set dummy dlltool; ac_word=$2
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5315 $as_echo_n "checking for $ac_word... " >&6; }
5316 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5317 $as_echo_n "(cached) " >&6
5318 else
5319 if test -n "$ac_ct_DLLTOOL"; then
5320 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5321 else
5322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323 for as_dir in $PATH
5324 do
5325 IFS=$as_save_IFS
5326 test -z "$as_dir" && as_dir=.
5327 for ac_exec_ext in '' $ac_executable_extensions; do
5328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5329 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5331 break 2
5332 fi
5333 done
5334 done
5335 IFS=$as_save_IFS
5336
5337 fi
5338 fi
5339 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5340 if test -n "$ac_ct_DLLTOOL"; then
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5342 $as_echo "$ac_ct_DLLTOOL" >&6; }
5343 else
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5345 $as_echo "no" >&6; }
5346 fi
5347
5348 if test "x$ac_ct_DLLTOOL" = x; then
5349 DLLTOOL="false"
5350 else
5351 case $cross_compiling:$ac_tool_warned in
5352 yes:)
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5354 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5355 ac_tool_warned=yes ;;
5356 esac
5357 DLLTOOL=$ac_ct_DLLTOOL
5358 fi
5359 else
5360 DLLTOOL="$ac_cv_prog_DLLTOOL"
5361 fi
5362
5363 test -z "$DLLTOOL" && DLLTOOL=dlltool
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5375 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5376 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5377 $as_echo_n "(cached) " >&6
5378 else
5379 lt_cv_sharedlib_from_linklib_cmd='unknown'
5380
5381 case $host_os in
5382 cygwin* | mingw* | pw32* | cegcc*)
5383 # two different shell functions defined in ltmain.sh
5384 # decide which to use based on capabilities of $DLLTOOL
5385 case `$DLLTOOL --help 2>&1` in
5386 *--identify-strict*)
5387 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5388 ;;
5389 *)
5390 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5391 ;;
5392 esac
5393 ;;
5394 *)
5395 # fallback: assume linklib IS sharedlib
5396 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5397 ;;
5398 esac
5399
5400 fi
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5402 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5403 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5404 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5405
5406
5407
5408
5409
5410
5411
5412
5413 if test -n "$ac_tool_prefix"; then
5414 for ac_prog in ar
5415 do
5416 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5417 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5419 $as_echo_n "checking for $ac_word... " >&6; }
5420 if ${ac_cv_prog_AR+:} false; then :
5421 $as_echo_n "(cached) " >&6
5422 else
5423 if test -n "$AR"; then
5424 ac_cv_prog_AR="$AR" # Let the user override the test.
5425 else
5426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427 for as_dir in $PATH
5428 do
5429 IFS=$as_save_IFS
5430 test -z "$as_dir" && as_dir=.
5431 for ac_exec_ext in '' $ac_executable_extensions; do
5432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5433 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5435 break 2
5436 fi
5437 done
5438 done
5439 IFS=$as_save_IFS
5440
5441 fi
5442 fi
5443 AR=$ac_cv_prog_AR
5444 if test -n "$AR"; then
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5446 $as_echo "$AR" >&6; }
5447 else
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5449 $as_echo "no" >&6; }
5450 fi
5451
5452
5453 test -n "$AR" && break
5454 done
5455 fi
5456 if test -z "$AR"; then
5457 ac_ct_AR=$AR
5458 for ac_prog in ar
5459 do
5460 # Extract the first word of "$ac_prog", so it can be a program name with args.
5461 set dummy $ac_prog; ac_word=$2
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5463 $as_echo_n "checking for $ac_word... " >&6; }
5464 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5465 $as_echo_n "(cached) " >&6
5466 else
5467 if test -n "$ac_ct_AR"; then
5468 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5469 else
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471 for as_dir in $PATH
5472 do
5473 IFS=$as_save_IFS
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5477 ac_cv_prog_ac_ct_AR="$ac_prog"
5478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5479 break 2
5480 fi
5481 done
5482 done
5483 IFS=$as_save_IFS
5484
5485 fi
5486 fi
5487 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5488 if test -n "$ac_ct_AR"; then
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5490 $as_echo "$ac_ct_AR" >&6; }
5491 else
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5493 $as_echo "no" >&6; }
5494 fi
5495
5496
5497 test -n "$ac_ct_AR" && break
5498 done
5499
5500 if test "x$ac_ct_AR" = x; then
5501 AR="false"
5502 else
5503 case $cross_compiling:$ac_tool_warned in
5504 yes:)
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5507 ac_tool_warned=yes ;;
5508 esac
5509 AR=$ac_ct_AR
5510 fi
5511 fi
5512
5513 : ${AR=ar}
5514 : ${AR_FLAGS=cru}
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5527 $as_echo_n "checking for archiver @FILE support... " >&6; }
5528 if ${lt_cv_ar_at_file+:} false; then :
5529 $as_echo_n "(cached) " >&6
5530 else
5531 lt_cv_ar_at_file=no
5532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5533 /* end confdefs.h. */
5534
5535 int
5536 main ()
5537 {
5538
5539 ;
5540 return 0;
5541 }
5542 _ACEOF
5543 if ac_fn_c_try_compile "$LINENO"; then :
5544 echo conftest.$ac_objext > conftest.lst
5545 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5547 (eval $lt_ar_try) 2>&5
5548 ac_status=$?
5549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5550 test $ac_status = 0; }
5551 if test "$ac_status" -eq 0; then
5552 # Ensure the archiver fails upon bogus file names.
5553 rm -f conftest.$ac_objext libconftest.a
5554 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5555 (eval $lt_ar_try) 2>&5
5556 ac_status=$?
5557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5558 test $ac_status = 0; }
5559 if test "$ac_status" -ne 0; then
5560 lt_cv_ar_at_file=@
5561 fi
5562 fi
5563 rm -f conftest.* libconftest.a
5564
5565 fi
5566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5567
5568 fi
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5570 $as_echo "$lt_cv_ar_at_file" >&6; }
5571
5572 if test "x$lt_cv_ar_at_file" = xno; then
5573 archiver_list_spec=
5574 else
5575 archiver_list_spec=$lt_cv_ar_at_file
5576 fi
5577
5578
5579
5580
5581
5582
5583
5584 if test -n "$ac_tool_prefix"; then
5585 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5586 set dummy ${ac_tool_prefix}strip; ac_word=$2
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5588 $as_echo_n "checking for $ac_word... " >&6; }
5589 if ${ac_cv_prog_STRIP+:} false; then :
5590 $as_echo_n "(cached) " >&6
5591 else
5592 if test -n "$STRIP"; then
5593 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5594 else
5595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5596 for as_dir in $PATH
5597 do
5598 IFS=$as_save_IFS
5599 test -z "$as_dir" && as_dir=.
5600 for ac_exec_ext in '' $ac_executable_extensions; do
5601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5602 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5604 break 2
5605 fi
5606 done
5607 done
5608 IFS=$as_save_IFS
5609
5610 fi
5611 fi
5612 STRIP=$ac_cv_prog_STRIP
5613 if test -n "$STRIP"; then
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5615 $as_echo "$STRIP" >&6; }
5616 else
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5618 $as_echo "no" >&6; }
5619 fi
5620
5621
5622 fi
5623 if test -z "$ac_cv_prog_STRIP"; then
5624 ac_ct_STRIP=$STRIP
5625 # Extract the first word of "strip", so it can be a program name with args.
5626 set dummy strip; ac_word=$2
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5628 $as_echo_n "checking for $ac_word... " >&6; }
5629 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5630 $as_echo_n "(cached) " >&6
5631 else
5632 if test -n "$ac_ct_STRIP"; then
5633 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5634 else
5635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5636 for as_dir in $PATH
5637 do
5638 IFS=$as_save_IFS
5639 test -z "$as_dir" && as_dir=.
5640 for ac_exec_ext in '' $ac_executable_extensions; do
5641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5642 ac_cv_prog_ac_ct_STRIP="strip"
5643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5644 break 2
5645 fi
5646 done
5647 done
5648 IFS=$as_save_IFS
5649
5650 fi
5651 fi
5652 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5653 if test -n "$ac_ct_STRIP"; then
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5655 $as_echo "$ac_ct_STRIP" >&6; }
5656 else
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5658 $as_echo "no" >&6; }
5659 fi
5660
5661 if test "x$ac_ct_STRIP" = x; then
5662 STRIP=":"
5663 else
5664 case $cross_compiling:$ac_tool_warned in
5665 yes:)
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5668 ac_tool_warned=yes ;;
5669 esac
5670 STRIP=$ac_ct_STRIP
5671 fi
5672 else
5673 STRIP="$ac_cv_prog_STRIP"
5674 fi
5675
5676 test -z "$STRIP" && STRIP=:
5677
5678
5679
5680
5681
5682
5683 if test -n "$ac_tool_prefix"; then
5684 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5685 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5687 $as_echo_n "checking for $ac_word... " >&6; }
5688 if ${ac_cv_prog_RANLIB+:} false; then :
5689 $as_echo_n "(cached) " >&6
5690 else
5691 if test -n "$RANLIB"; then
5692 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5693 else
5694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695 for as_dir in $PATH
5696 do
5697 IFS=$as_save_IFS
5698 test -z "$as_dir" && as_dir=.
5699 for ac_exec_ext in '' $ac_executable_extensions; do
5700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5701 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5703 break 2
5704 fi
5705 done
5706 done
5707 IFS=$as_save_IFS
5708
5709 fi
5710 fi
5711 RANLIB=$ac_cv_prog_RANLIB
5712 if test -n "$RANLIB"; then
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5714 $as_echo "$RANLIB" >&6; }
5715 else
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5717 $as_echo "no" >&6; }
5718 fi
5719
5720
5721 fi
5722 if test -z "$ac_cv_prog_RANLIB"; then
5723 ac_ct_RANLIB=$RANLIB
5724 # Extract the first word of "ranlib", so it can be a program name with args.
5725 set dummy ranlib; ac_word=$2
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5727 $as_echo_n "checking for $ac_word... " >&6; }
5728 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5729 $as_echo_n "(cached) " >&6
5730 else
5731 if test -n "$ac_ct_RANLIB"; then
5732 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5733 else
5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735 for as_dir in $PATH
5736 do
5737 IFS=$as_save_IFS
5738 test -z "$as_dir" && as_dir=.
5739 for ac_exec_ext in '' $ac_executable_extensions; do
5740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5741 ac_cv_prog_ac_ct_RANLIB="ranlib"
5742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5743 break 2
5744 fi
5745 done
5746 done
5747 IFS=$as_save_IFS
5748
5749 fi
5750 fi
5751 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5752 if test -n "$ac_ct_RANLIB"; then
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5754 $as_echo "$ac_ct_RANLIB" >&6; }
5755 else
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5757 $as_echo "no" >&6; }
5758 fi
5759
5760 if test "x$ac_ct_RANLIB" = x; then
5761 RANLIB=":"
5762 else
5763 case $cross_compiling:$ac_tool_warned in
5764 yes:)
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5766 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5767 ac_tool_warned=yes ;;
5768 esac
5769 RANLIB=$ac_ct_RANLIB
5770 fi
5771 else
5772 RANLIB="$ac_cv_prog_RANLIB"
5773 fi
5774
5775 test -z "$RANLIB" && RANLIB=:
5776
5777
5778
5779
5780
5781
5782 # Determine commands to create old-style static archives.
5783 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5784 old_postinstall_cmds='chmod 644 $oldlib'
5785 old_postuninstall_cmds=
5786
5787 if test -n "$RANLIB"; then
5788 case $host_os in
5789 openbsd*)
5790 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5791 ;;
5792 *)
5793 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5794 ;;
5795 esac
5796 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5797 fi
5798
5799 case $host_os in
5800 darwin*)
5801 lock_old_archive_extraction=yes ;;
5802 *)
5803 lock_old_archive_extraction=no ;;
5804 esac
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844 # If no C compiler was specified, use CC.
5845 LTCC=${LTCC-"$CC"}
5846
5847 # If no C compiler flags were specified, use CFLAGS.
5848 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5849
5850 # Allow CC to be a program name with arguments.
5851 compiler=$CC
5852
5853
5854 # Check for command to grab the raw symbol name followed by C symbol from nm.
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5856 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5857 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5858 $as_echo_n "(cached) " >&6
5859 else
5860
5861 # These are sane defaults that work on at least a few old systems.
5862 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5863
5864 # Character class describing NM global symbol codes.
5865 symcode='[BCDEGRST]'
5866
5867 # Regexp to match symbols that can be accessed directly from C.
5868 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5869
5870 # Define system-specific variables.
5871 case $host_os in
5872 aix*)
5873 symcode='[BCDT]'
5874 ;;
5875 cygwin* | mingw* | pw32* | cegcc*)
5876 symcode='[ABCDGISTW]'
5877 ;;
5878 hpux*)
5879 if test "$host_cpu" = ia64; then
5880 symcode='[ABCDEGRST]'
5881 fi
5882 ;;
5883 irix* | nonstopux*)
5884 symcode='[BCDEGRST]'
5885 ;;
5886 osf*)
5887 symcode='[BCDEGQRST]'
5888 ;;
5889 solaris*)
5890 symcode='[BDRT]'
5891 ;;
5892 sco3.2v5*)
5893 symcode='[DT]'
5894 ;;
5895 sysv4.2uw2*)
5896 symcode='[DT]'
5897 ;;
5898 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5899 symcode='[ABDT]'
5900 ;;
5901 sysv4)
5902 symcode='[DFNSTU]'
5903 ;;
5904 esac
5905
5906 # If we're using GNU nm, then use its standard symbol codes.
5907 case `$NM -V 2>&1` in
5908 *GNU* | *'with BFD'*)
5909 symcode='[ABCDGIRSTW]' ;;
5910 esac
5911
5912 # Transform an extracted symbol line into a proper C declaration.
5913 # Some systems (esp. on ia64) link data and code symbols differently,
5914 # so use this general approach.
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
5917 # Transform an extracted symbol line into symbol name and symbol address
5918 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5919 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5920
5921 # Handle CRLF in mingw tool chain
5922 opt_cr=
5923 case $build_os in
5924 mingw*)
5925 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5926 ;;
5927 esac
5928
5929 # Try without a prefix underscore, then with it.
5930 for ac_symprfx in "" "_"; do
5931
5932 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5933 symxfrm="\\1 $ac_symprfx\\2 \\2"
5934
5935 # Write the raw and C identifiers.
5936 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5937 # Fake it for dumpbin and say T for any non-static function
5938 # and D for any global variable.
5939 # Also find C++ and __fastcall symbols from MSVC++,
5940 # which start with @ or ?.
5941 lt_cv_sys_global_symbol_pipe="$AWK '"\
5942 " {last_section=section; section=\$ 3};"\
5943 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5944 " \$ 0!~/External *\|/{next};"\
5945 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5946 " {if(hide[section]) next};"\
5947 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5948 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5949 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5950 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5951 " ' prfx=^$ac_symprfx"
5952 else
5953 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5954 fi
5955 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5956
5957 # Check to see that the pipe works correctly.
5958 pipe_works=no
5959
5960 rm -f conftest*
5961 cat > conftest.$ac_ext <<_LT_EOF
5962 #ifdef __cplusplus
5963 extern "C" {
5964 #endif
5965 char nm_test_var;
5966 void nm_test_func(void);
5967 void nm_test_func(void){}
5968 #ifdef __cplusplus
5969 }
5970 #endif
5971 int main(){nm_test_var='a';nm_test_func();return(0);}
5972 _LT_EOF
5973
5974 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5975 (eval $ac_compile) 2>&5
5976 ac_status=$?
5977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5978 test $ac_status = 0; }; then
5979 # Now try to grab the symbols.
5980 nlist=conftest.nm
5981 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5982 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5983 ac_status=$?
5984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5985 test $ac_status = 0; } && test -s "$nlist"; then
5986 # Try sorting and uniquifying the output.
5987 if sort "$nlist" | uniq > "$nlist"T; then
5988 mv -f "$nlist"T "$nlist"
5989 else
5990 rm -f "$nlist"T
5991 fi
5992
5993 # Make sure that we snagged all the symbols we need.
5994 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5995 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5996 cat <<_LT_EOF > conftest.$ac_ext
5997 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5998 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5999 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6000 relocations are performed -- see ld's documentation on pseudo-relocs. */
6001 # define LT_DLSYM_CONST
6002 #elif defined(__osf__)
6003 /* This system does not cope well with relocations in const data. */
6004 # define LT_DLSYM_CONST
6005 #else
6006 # define LT_DLSYM_CONST const
6007 #endif
6008
6009 #ifdef __cplusplus
6010 extern "C" {
6011 #endif
6012
6013 _LT_EOF
6014 # Now generate the symbol file.
6015 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6016
6017 cat <<_LT_EOF >> conftest.$ac_ext
6018
6019 /* The mapping between symbol names and symbols. */
6020 LT_DLSYM_CONST struct {
6021 const char *name;
6022 void *address;
6023 }
6024 lt__PROGRAM__LTX_preloaded_symbols[] =
6025 {
6026 { "@PROGRAM@", (void *) 0 },
6027 _LT_EOF
6028 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6029 cat <<\_LT_EOF >> conftest.$ac_ext
6030 {0, (void *) 0}
6031 };
6032
6033 /* This works around a problem in FreeBSD linker */
6034 #ifdef FREEBSD_WORKAROUND
6035 static const void *lt_preloaded_setup() {
6036 return lt__PROGRAM__LTX_preloaded_symbols;
6037 }
6038 #endif
6039
6040 #ifdef __cplusplus
6041 }
6042 #endif
6043 _LT_EOF
6044 # Now try linking the two files.
6045 mv conftest.$ac_objext conftstm.$ac_objext
6046 lt_globsym_save_LIBS=$LIBS
6047 lt_globsym_save_CFLAGS=$CFLAGS
6048 LIBS="conftstm.$ac_objext"
6049 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6051 (eval $ac_link) 2>&5
6052 ac_status=$?
6053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6054 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6055 pipe_works=yes
6056 fi
6057 LIBS=$lt_globsym_save_LIBS
6058 CFLAGS=$lt_globsym_save_CFLAGS
6059 else
6060 echo "cannot find nm_test_func in $nlist" >&5
6061 fi
6062 else
6063 echo "cannot find nm_test_var in $nlist" >&5
6064 fi
6065 else
6066 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6067 fi
6068 else
6069 echo "$progname: failed program was:" >&5
6070 cat conftest.$ac_ext >&5
6071 fi
6072 rm -rf conftest* conftst*
6073
6074 # Do not use the global_symbol_pipe unless it works.
6075 if test "$pipe_works" = yes; then
6076 break
6077 else
6078 lt_cv_sys_global_symbol_pipe=
6079 fi
6080 done
6081
6082 fi
6083
6084 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6085 lt_cv_sys_global_symbol_to_cdecl=
6086 fi
6087 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6089 $as_echo "failed" >&6; }
6090 else
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6092 $as_echo "ok" >&6; }
6093 fi
6094
6095 # Response file support.
6096 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6097 nm_file_list_spec='@'
6098 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6099 nm_file_list_spec='@'
6100 fi
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6129 $as_echo_n "checking for sysroot... " >&6; }
6130
6131 # Check whether --with-sysroot was given.
6132 if test "${with_sysroot+set}" = set; then :
6133 withval=$with_sysroot;
6134 else
6135 with_sysroot=no
6136 fi
6137
6138
6139 lt_sysroot=
6140 case ${with_sysroot} in #(
6141 yes)
6142 if test "$GCC" = yes; then
6143 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6144 fi
6145 ;; #(
6146 /*)
6147 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6148 ;; #(
6149 no|'')
6150 ;; #(
6151 *)
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6153 $as_echo "${with_sysroot}" >&6; }
6154 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6155 ;;
6156 esac
6157
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6159 $as_echo "${lt_sysroot:-no}" >&6; }
6160
6161
6162
6163
6164
6165 # Check whether --enable-libtool-lock was given.
6166 if test "${enable_libtool_lock+set}" = set; then :
6167 enableval=$enable_libtool_lock;
6168 fi
6169
6170 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6171
6172 # Some flags need to be propagated to the compiler or linker for good
6173 # libtool support.
6174 case $host in
6175 ia64-*-hpux*)
6176 # Find out which ABI we are using.
6177 echo 'int i;' > conftest.$ac_ext
6178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6179 (eval $ac_compile) 2>&5
6180 ac_status=$?
6181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6182 test $ac_status = 0; }; then
6183 case `/usr/bin/file conftest.$ac_objext` in
6184 *ELF-32*)
6185 HPUX_IA64_MODE="32"
6186 ;;
6187 *ELF-64*)
6188 HPUX_IA64_MODE="64"
6189 ;;
6190 esac
6191 fi
6192 rm -rf conftest*
6193 ;;
6194 *-*-irix6*)
6195 # Find out which ABI we are using.
6196 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6198 (eval $ac_compile) 2>&5
6199 ac_status=$?
6200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6201 test $ac_status = 0; }; then
6202 if test "$lt_cv_prog_gnu_ld" = yes; then
6203 case `/usr/bin/file conftest.$ac_objext` in
6204 *32-bit*)
6205 LD="${LD-ld} -melf32bsmip"
6206 ;;
6207 *N32*)
6208 LD="${LD-ld} -melf32bmipn32"
6209 ;;
6210 *64-bit*)
6211 LD="${LD-ld} -melf64bmip"
6212 ;;
6213 esac
6214 else
6215 case `/usr/bin/file conftest.$ac_objext` in
6216 *32-bit*)
6217 LD="${LD-ld} -32"
6218 ;;
6219 *N32*)
6220 LD="${LD-ld} -n32"
6221 ;;
6222 *64-bit*)
6223 LD="${LD-ld} -64"
6224 ;;
6225 esac
6226 fi
6227 fi
6228 rm -rf conftest*
6229 ;;
6230
6231 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6232 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6233 # Find out which ABI we are using.
6234 echo 'int i;' > conftest.$ac_ext
6235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6236 (eval $ac_compile) 2>&5
6237 ac_status=$?
6238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6239 test $ac_status = 0; }; then
6240 case `/usr/bin/file conftest.o` in
6241 *32-bit*)
6242 case $host in
6243 x86_64-*kfreebsd*-gnu)
6244 LD="${LD-ld} -m elf_i386_fbsd"
6245 ;;
6246 x86_64-*linux*)
6247 LD="${LD-ld} -m elf_i386"
6248 ;;
6249 ppc64-*linux*|powerpc64-*linux*)
6250 LD="${LD-ld} -m elf32ppclinux"
6251 ;;
6252 s390x-*linux*)
6253 LD="${LD-ld} -m elf_s390"
6254 ;;
6255 sparc64-*linux*)
6256 LD="${LD-ld} -m elf32_sparc"
6257 ;;
6258 esac
6259 ;;
6260 *64-bit*)
6261 case $host in
6262 x86_64-*kfreebsd*-gnu)
6263 LD="${LD-ld} -m elf_x86_64_fbsd"
6264 ;;
6265 x86_64-*linux*)
6266 LD="${LD-ld} -m elf_x86_64"
6267 ;;
6268 ppc*-*linux*|powerpc*-*linux*)
6269 LD="${LD-ld} -m elf64ppc"
6270 ;;
6271 s390*-*linux*|s390*-*tpf*)
6272 LD="${LD-ld} -m elf64_s390"
6273 ;;
6274 sparc*-*linux*)
6275 LD="${LD-ld} -m elf64_sparc"
6276 ;;
6277 esac
6278 ;;
6279 esac
6280 fi
6281 rm -rf conftest*
6282 ;;
6283
6284 *-*-sco3.2v5*)
6285 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6286 SAVE_CFLAGS="$CFLAGS"
6287 CFLAGS="$CFLAGS -belf"
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6289 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6290 if ${lt_cv_cc_needs_belf+:} false; then :
6291 $as_echo_n "(cached) " >&6
6292 else
6293 ac_ext=c
6294 ac_cpp='$CPP $CPPFLAGS'
6295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6298
6299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6300 /* end confdefs.h. */
6301
6302 int
6303 main ()
6304 {
6305
6306 ;
6307 return 0;
6308 }
6309 _ACEOF
6310 if ac_fn_c_try_link "$LINENO"; then :
6311 lt_cv_cc_needs_belf=yes
6312 else
6313 lt_cv_cc_needs_belf=no
6314 fi
6315 rm -f core conftest.err conftest.$ac_objext \
6316 conftest$ac_exeext conftest.$ac_ext
6317 ac_ext=c
6318 ac_cpp='$CPP $CPPFLAGS'
6319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6322
6323 fi
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6325 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6326 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6327 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6328 CFLAGS="$SAVE_CFLAGS"
6329 fi
6330 ;;
6331 sparc*-*solaris*)
6332 # Find out which ABI we are using.
6333 echo 'int i;' > conftest.$ac_ext
6334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6335 (eval $ac_compile) 2>&5
6336 ac_status=$?
6337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6338 test $ac_status = 0; }; then
6339 case `/usr/bin/file conftest.o` in
6340 *64-bit*)
6341 case $lt_cv_prog_gnu_ld in
6342 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6343 *)
6344 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6345 LD="${LD-ld} -64"
6346 fi
6347 ;;
6348 esac
6349 ;;
6350 esac
6351 fi
6352 rm -rf conftest*
6353 ;;
6354 esac
6355
6356 need_locks="$enable_libtool_lock"
6357
6358 if test -n "$ac_tool_prefix"; then
6359 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6360 set dummy ${ac_tool_prefix}mt; ac_word=$2
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6362 $as_echo_n "checking for $ac_word... " >&6; }
6363 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6364 $as_echo_n "(cached) " >&6
6365 else
6366 if test -n "$MANIFEST_TOOL"; then
6367 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6368 else
6369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6370 for as_dir in $PATH
6371 do
6372 IFS=$as_save_IFS
6373 test -z "$as_dir" && as_dir=.
6374 for ac_exec_ext in '' $ac_executable_extensions; do
6375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6376 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6378 break 2
6379 fi
6380 done
6381 done
6382 IFS=$as_save_IFS
6383
6384 fi
6385 fi
6386 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6387 if test -n "$MANIFEST_TOOL"; then
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6389 $as_echo "$MANIFEST_TOOL" >&6; }
6390 else
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6392 $as_echo "no" >&6; }
6393 fi
6394
6395
6396 fi
6397 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6398 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6399 # Extract the first word of "mt", so it can be a program name with args.
6400 set dummy mt; ac_word=$2
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6402 $as_echo_n "checking for $ac_word... " >&6; }
6403 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6404 $as_echo_n "(cached) " >&6
6405 else
6406 if test -n "$ac_ct_MANIFEST_TOOL"; then
6407 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6408 else
6409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6410 for as_dir in $PATH
6411 do
6412 IFS=$as_save_IFS
6413 test -z "$as_dir" && as_dir=.
6414 for ac_exec_ext in '' $ac_executable_extensions; do
6415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6416 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6418 break 2
6419 fi
6420 done
6421 done
6422 IFS=$as_save_IFS
6423
6424 fi
6425 fi
6426 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6427 if test -n "$ac_ct_MANIFEST_TOOL"; then
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6429 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6430 else
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6432 $as_echo "no" >&6; }
6433 fi
6434
6435 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6436 MANIFEST_TOOL=":"
6437 else
6438 case $cross_compiling:$ac_tool_warned in
6439 yes:)
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6441 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6442 ac_tool_warned=yes ;;
6443 esac
6444 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6445 fi
6446 else
6447 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6448 fi
6449
6450 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6452 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6453 if ${lt_cv_path_mainfest_tool+:} false; then :
6454 $as_echo_n "(cached) " >&6
6455 else
6456 lt_cv_path_mainfest_tool=no
6457 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6458 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6459 cat conftest.err >&5
6460 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6461 lt_cv_path_mainfest_tool=yes
6462 fi
6463 rm -f conftest*
6464 fi
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6466 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6467 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6468 MANIFEST_TOOL=:
6469 fi
6470
6471
6472
6473
6474
6475
6476 case $host_os in
6477 rhapsody* | darwin*)
6478 if test -n "$ac_tool_prefix"; then
6479 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6480 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6482 $as_echo_n "checking for $ac_word... " >&6; }
6483 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6484 $as_echo_n "(cached) " >&6
6485 else
6486 if test -n "$DSYMUTIL"; then
6487 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6488 else
6489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6490 for as_dir in $PATH
6491 do
6492 IFS=$as_save_IFS
6493 test -z "$as_dir" && as_dir=.
6494 for ac_exec_ext in '' $ac_executable_extensions; do
6495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6496 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6498 break 2
6499 fi
6500 done
6501 done
6502 IFS=$as_save_IFS
6503
6504 fi
6505 fi
6506 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6507 if test -n "$DSYMUTIL"; then
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6509 $as_echo "$DSYMUTIL" >&6; }
6510 else
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6512 $as_echo "no" >&6; }
6513 fi
6514
6515
6516 fi
6517 if test -z "$ac_cv_prog_DSYMUTIL"; then
6518 ac_ct_DSYMUTIL=$DSYMUTIL
6519 # Extract the first word of "dsymutil", so it can be a program name with args.
6520 set dummy dsymutil; ac_word=$2
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6522 $as_echo_n "checking for $ac_word... " >&6; }
6523 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6524 $as_echo_n "(cached) " >&6
6525 else
6526 if test -n "$ac_ct_DSYMUTIL"; then
6527 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6528 else
6529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530 for as_dir in $PATH
6531 do
6532 IFS=$as_save_IFS
6533 test -z "$as_dir" && as_dir=.
6534 for ac_exec_ext in '' $ac_executable_extensions; do
6535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6536 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6538 break 2
6539 fi
6540 done
6541 done
6542 IFS=$as_save_IFS
6543
6544 fi
6545 fi
6546 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6547 if test -n "$ac_ct_DSYMUTIL"; then
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6549 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6550 else
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6552 $as_echo "no" >&6; }
6553 fi
6554
6555 if test "x$ac_ct_DSYMUTIL" = x; then
6556 DSYMUTIL=":"
6557 else
6558 case $cross_compiling:$ac_tool_warned in
6559 yes:)
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6562 ac_tool_warned=yes ;;
6563 esac
6564 DSYMUTIL=$ac_ct_DSYMUTIL
6565 fi
6566 else
6567 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6568 fi
6569
6570 if test -n "$ac_tool_prefix"; then
6571 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6572 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6574 $as_echo_n "checking for $ac_word... " >&6; }
6575 if ${ac_cv_prog_NMEDIT+:} false; then :
6576 $as_echo_n "(cached) " >&6
6577 else
6578 if test -n "$NMEDIT"; then
6579 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6580 else
6581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582 for as_dir in $PATH
6583 do
6584 IFS=$as_save_IFS
6585 test -z "$as_dir" && as_dir=.
6586 for ac_exec_ext in '' $ac_executable_extensions; do
6587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6588 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6590 break 2
6591 fi
6592 done
6593 done
6594 IFS=$as_save_IFS
6595
6596 fi
6597 fi
6598 NMEDIT=$ac_cv_prog_NMEDIT
6599 if test -n "$NMEDIT"; then
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6601 $as_echo "$NMEDIT" >&6; }
6602 else
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6604 $as_echo "no" >&6; }
6605 fi
6606
6607
6608 fi
6609 if test -z "$ac_cv_prog_NMEDIT"; then
6610 ac_ct_NMEDIT=$NMEDIT
6611 # Extract the first word of "nmedit", so it can be a program name with args.
6612 set dummy nmedit; ac_word=$2
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6614 $as_echo_n "checking for $ac_word... " >&6; }
6615 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6616 $as_echo_n "(cached) " >&6
6617 else
6618 if test -n "$ac_ct_NMEDIT"; then
6619 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6620 else
6621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622 for as_dir in $PATH
6623 do
6624 IFS=$as_save_IFS
6625 test -z "$as_dir" && as_dir=.
6626 for ac_exec_ext in '' $ac_executable_extensions; do
6627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6628 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6630 break 2
6631 fi
6632 done
6633 done
6634 IFS=$as_save_IFS
6635
6636 fi
6637 fi
6638 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6639 if test -n "$ac_ct_NMEDIT"; then
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6641 $as_echo "$ac_ct_NMEDIT" >&6; }
6642 else
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6644 $as_echo "no" >&6; }
6645 fi
6646
6647 if test "x$ac_ct_NMEDIT" = x; then
6648 NMEDIT=":"
6649 else
6650 case $cross_compiling:$ac_tool_warned in
6651 yes:)
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6653 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6654 ac_tool_warned=yes ;;
6655 esac
6656 NMEDIT=$ac_ct_NMEDIT
6657 fi
6658 else
6659 NMEDIT="$ac_cv_prog_NMEDIT"
6660 fi
6661
6662 if test -n "$ac_tool_prefix"; then
6663 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6664 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6666 $as_echo_n "checking for $ac_word... " >&6; }
6667 if ${ac_cv_prog_LIPO+:} false; then :
6668 $as_echo_n "(cached) " >&6
6669 else
6670 if test -n "$LIPO"; then
6671 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6672 else
6673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674 for as_dir in $PATH
6675 do
6676 IFS=$as_save_IFS
6677 test -z "$as_dir" && as_dir=.
6678 for ac_exec_ext in '' $ac_executable_extensions; do
6679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6680 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6682 break 2
6683 fi
6684 done
6685 done
6686 IFS=$as_save_IFS
6687
6688 fi
6689 fi
6690 LIPO=$ac_cv_prog_LIPO
6691 if test -n "$LIPO"; then
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6693 $as_echo "$LIPO" >&6; }
6694 else
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6696 $as_echo "no" >&6; }
6697 fi
6698
6699
6700 fi
6701 if test -z "$ac_cv_prog_LIPO"; then
6702 ac_ct_LIPO=$LIPO
6703 # Extract the first word of "lipo", so it can be a program name with args.
6704 set dummy lipo; ac_word=$2
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6706 $as_echo_n "checking for $ac_word... " >&6; }
6707 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6708 $as_echo_n "(cached) " >&6
6709 else
6710 if test -n "$ac_ct_LIPO"; then
6711 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6712 else
6713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6714 for as_dir in $PATH
6715 do
6716 IFS=$as_save_IFS
6717 test -z "$as_dir" && as_dir=.
6718 for ac_exec_ext in '' $ac_executable_extensions; do
6719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6720 ac_cv_prog_ac_ct_LIPO="lipo"
6721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6722 break 2
6723 fi
6724 done
6725 done
6726 IFS=$as_save_IFS
6727
6728 fi
6729 fi
6730 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6731 if test -n "$ac_ct_LIPO"; then
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6733 $as_echo "$ac_ct_LIPO" >&6; }
6734 else
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6736 $as_echo "no" >&6; }
6737 fi
6738
6739 if test "x$ac_ct_LIPO" = x; then
6740 LIPO=":"
6741 else
6742 case $cross_compiling:$ac_tool_warned in
6743 yes:)
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6745 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6746 ac_tool_warned=yes ;;
6747 esac
6748 LIPO=$ac_ct_LIPO
6749 fi
6750 else
6751 LIPO="$ac_cv_prog_LIPO"
6752 fi
6753
6754 if test -n "$ac_tool_prefix"; then
6755 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6756 set dummy ${ac_tool_prefix}otool; ac_word=$2
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6758 $as_echo_n "checking for $ac_word... " >&6; }
6759 if ${ac_cv_prog_OTOOL+:} false; then :
6760 $as_echo_n "(cached) " >&6
6761 else
6762 if test -n "$OTOOL"; then
6763 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6764 else
6765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766 for as_dir in $PATH
6767 do
6768 IFS=$as_save_IFS
6769 test -z "$as_dir" && as_dir=.
6770 for ac_exec_ext in '' $ac_executable_extensions; do
6771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6772 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6774 break 2
6775 fi
6776 done
6777 done
6778 IFS=$as_save_IFS
6779
6780 fi
6781 fi
6782 OTOOL=$ac_cv_prog_OTOOL
6783 if test -n "$OTOOL"; then
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6785 $as_echo "$OTOOL" >&6; }
6786 else
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6788 $as_echo "no" >&6; }
6789 fi
6790
6791
6792 fi
6793 if test -z "$ac_cv_prog_OTOOL"; then
6794 ac_ct_OTOOL=$OTOOL
6795 # Extract the first word of "otool", so it can be a program name with args.
6796 set dummy otool; ac_word=$2
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6798 $as_echo_n "checking for $ac_word... " >&6; }
6799 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6800 $as_echo_n "(cached) " >&6
6801 else
6802 if test -n "$ac_ct_OTOOL"; then
6803 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6804 else
6805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806 for as_dir in $PATH
6807 do
6808 IFS=$as_save_IFS
6809 test -z "$as_dir" && as_dir=.
6810 for ac_exec_ext in '' $ac_executable_extensions; do
6811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6812 ac_cv_prog_ac_ct_OTOOL="otool"
6813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6814 break 2
6815 fi
6816 done
6817 done
6818 IFS=$as_save_IFS
6819
6820 fi
6821 fi
6822 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6823 if test -n "$ac_ct_OTOOL"; then
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6825 $as_echo "$ac_ct_OTOOL" >&6; }
6826 else
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6828 $as_echo "no" >&6; }
6829 fi
6830
6831 if test "x$ac_ct_OTOOL" = x; then
6832 OTOOL=":"
6833 else
6834 case $cross_compiling:$ac_tool_warned in
6835 yes:)
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6837 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6838 ac_tool_warned=yes ;;
6839 esac
6840 OTOOL=$ac_ct_OTOOL
6841 fi
6842 else
6843 OTOOL="$ac_cv_prog_OTOOL"
6844 fi
6845
6846 if test -n "$ac_tool_prefix"; then
6847 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6848 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6850 $as_echo_n "checking for $ac_word... " >&6; }
6851 if ${ac_cv_prog_OTOOL64+:} false; then :
6852 $as_echo_n "(cached) " >&6
6853 else
6854 if test -n "$OTOOL64"; then
6855 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6856 else
6857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858 for as_dir in $PATH
6859 do
6860 IFS=$as_save_IFS
6861 test -z "$as_dir" && as_dir=.
6862 for ac_exec_ext in '' $ac_executable_extensions; do
6863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6864 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6866 break 2
6867 fi
6868 done
6869 done
6870 IFS=$as_save_IFS
6871
6872 fi
6873 fi
6874 OTOOL64=$ac_cv_prog_OTOOL64
6875 if test -n "$OTOOL64"; then
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6877 $as_echo "$OTOOL64" >&6; }
6878 else
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6880 $as_echo "no" >&6; }
6881 fi
6882
6883
6884 fi
6885 if test -z "$ac_cv_prog_OTOOL64"; then
6886 ac_ct_OTOOL64=$OTOOL64
6887 # Extract the first word of "otool64", so it can be a program name with args.
6888 set dummy otool64; ac_word=$2
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6890 $as_echo_n "checking for $ac_word... " >&6; }
6891 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6892 $as_echo_n "(cached) " >&6
6893 else
6894 if test -n "$ac_ct_OTOOL64"; then
6895 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6896 else
6897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898 for as_dir in $PATH
6899 do
6900 IFS=$as_save_IFS
6901 test -z "$as_dir" && as_dir=.
6902 for ac_exec_ext in '' $ac_executable_extensions; do
6903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6904 ac_cv_prog_ac_ct_OTOOL64="otool64"
6905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6906 break 2
6907 fi
6908 done
6909 done
6910 IFS=$as_save_IFS
6911
6912 fi
6913 fi
6914 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6915 if test -n "$ac_ct_OTOOL64"; then
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6917 $as_echo "$ac_ct_OTOOL64" >&6; }
6918 else
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6920 $as_echo "no" >&6; }
6921 fi
6922
6923 if test "x$ac_ct_OTOOL64" = x; then
6924 OTOOL64=":"
6925 else
6926 case $cross_compiling:$ac_tool_warned in
6927 yes:)
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6929 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6930 ac_tool_warned=yes ;;
6931 esac
6932 OTOOL64=$ac_ct_OTOOL64
6933 fi
6934 else
6935 OTOOL64="$ac_cv_prog_OTOOL64"
6936 fi
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6965 $as_echo_n "checking for -single_module linker flag... " >&6; }
6966 if ${lt_cv_apple_cc_single_mod+:} false; then :
6967 $as_echo_n "(cached) " >&6
6968 else
6969 lt_cv_apple_cc_single_mod=no
6970 if test -z "${LT_MULTI_MODULE}"; then
6971 # By default we will add the -single_module flag. You can override
6972 # by either setting the environment variable LT_MULTI_MODULE
6973 # non-empty at configure time, or by adding -multi_module to the
6974 # link flags.
6975 rm -rf libconftest.dylib*
6976 echo "int foo(void){return 1;}" > conftest.c
6977 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6978 -dynamiclib -Wl,-single_module conftest.c" >&5
6979 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6980 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6981 _lt_result=$?
6982 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6983 lt_cv_apple_cc_single_mod=yes
6984 else
6985 cat conftest.err >&5
6986 fi
6987 rm -rf libconftest.dylib*
6988 rm -f conftest.*
6989 fi
6990 fi
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6992 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6994 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6995 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6996 $as_echo_n "(cached) " >&6
6997 else
6998 lt_cv_ld_exported_symbols_list=no
6999 save_LDFLAGS=$LDFLAGS
7000 echo "_main" > conftest.sym
7001 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7003 /* end confdefs.h. */
7004
7005 int
7006 main ()
7007 {
7008
7009 ;
7010 return 0;
7011 }
7012 _ACEOF
7013 if ac_fn_c_try_link "$LINENO"; then :
7014 lt_cv_ld_exported_symbols_list=yes
7015 else
7016 lt_cv_ld_exported_symbols_list=no
7017 fi
7018 rm -f core conftest.err conftest.$ac_objext \
7019 conftest$ac_exeext conftest.$ac_ext
7020 LDFLAGS="$save_LDFLAGS"
7021
7022 fi
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7024 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7026 $as_echo_n "checking for -force_load linker flag... " >&6; }
7027 if ${lt_cv_ld_force_load+:} false; then :
7028 $as_echo_n "(cached) " >&6
7029 else
7030 lt_cv_ld_force_load=no
7031 cat > conftest.c << _LT_EOF
7032 int forced_loaded() { return 2;}
7033 _LT_EOF
7034 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7035 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7036 echo "$AR cru libconftest.a conftest.o" >&5
7037 $AR cru libconftest.a conftest.o 2>&5
7038 echo "$RANLIB libconftest.a" >&5
7039 $RANLIB libconftest.a 2>&5
7040 cat > conftest.c << _LT_EOF
7041 int main() { return 0;}
7042 _LT_EOF
7043 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7044 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7045 _lt_result=$?
7046 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7047 lt_cv_ld_force_load=yes
7048 else
7049 cat conftest.err >&5
7050 fi
7051 rm -f conftest.err libconftest.a conftest conftest.c
7052 rm -rf conftest.dSYM
7053
7054 fi
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7056 $as_echo "$lt_cv_ld_force_load" >&6; }
7057 case $host_os in
7058 rhapsody* | darwin1.[012])
7059 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7060 darwin1.*)
7061 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7062 darwin*) # darwin 5.x on
7063 # if running on 10.5 or later, the deployment target defaults
7064 # to the OS version, if on x86, and 10.4, the deployment
7065 # target defaults to 10.4. Don't you love it?
7066 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7067 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7068 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7069 10.[012]*)
7070 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7071 10.*)
7072 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7073 esac
7074 ;;
7075 esac
7076 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7077 _lt_dar_single_mod='$single_module'
7078 fi
7079 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7080 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7081 else
7082 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7083 fi
7084 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7085 _lt_dsymutil='~$DSYMUTIL $lib || :'
7086 else
7087 _lt_dsymutil=
7088 fi
7089 ;;
7090 esac
7091
7092 ac_ext=c
7093 ac_cpp='$CPP $CPPFLAGS'
7094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7098 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7099 # On Suns, sometimes $CPP names a directory.
7100 if test -n "$CPP" && test -d "$CPP"; then
7101 CPP=
7102 fi
7103 if test -z "$CPP"; then
7104 if ${ac_cv_prog_CPP+:} false; then :
7105 $as_echo_n "(cached) " >&6
7106 else
7107 # Double quotes because CPP needs to be expanded
7108 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7109 do
7110 ac_preproc_ok=false
7111 for ac_c_preproc_warn_flag in '' yes
7112 do
7113 # Use a header file that comes with gcc, so configuring glibc
7114 # with a fresh cross-compiler works.
7115 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7116 # <limits.h> exists even on freestanding compilers.
7117 # On the NeXT, cc -E runs the code through the compiler's parser,
7118 # not just through cpp. "Syntax error" is here to catch this case.
7119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7120 /* end confdefs.h. */
7121 #ifdef __STDC__
7122 # include <limits.h>
7123 #else
7124 # include <assert.h>
7125 #endif
7126 Syntax error
7127 _ACEOF
7128 if ac_fn_c_try_cpp "$LINENO"; then :
7129
7130 else
7131 # Broken: fails on valid input.
7132 continue
7133 fi
7134 rm -f conftest.err conftest.i conftest.$ac_ext
7135
7136 # OK, works on sane cases. Now check whether nonexistent headers
7137 # can be detected and how.
7138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7139 /* end confdefs.h. */
7140 #include <ac_nonexistent.h>
7141 _ACEOF
7142 if ac_fn_c_try_cpp "$LINENO"; then :
7143 # Broken: success on invalid input.
7144 continue
7145 else
7146 # Passes both tests.
7147 ac_preproc_ok=:
7148 break
7149 fi
7150 rm -f conftest.err conftest.i conftest.$ac_ext
7151
7152 done
7153 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7154 rm -f conftest.i conftest.err conftest.$ac_ext
7155 if $ac_preproc_ok; then :
7156 break
7157 fi
7158
7159 done
7160 ac_cv_prog_CPP=$CPP
7161
7162 fi
7163 CPP=$ac_cv_prog_CPP
7164 else
7165 ac_cv_prog_CPP=$CPP
7166 fi
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7168 $as_echo "$CPP" >&6; }
7169 ac_preproc_ok=false
7170 for ac_c_preproc_warn_flag in '' yes
7171 do
7172 # Use a header file that comes with gcc, so configuring glibc
7173 # with a fresh cross-compiler works.
7174 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7175 # <limits.h> exists even on freestanding compilers.
7176 # On the NeXT, cc -E runs the code through the compiler's parser,
7177 # not just through cpp. "Syntax error" is here to catch this case.
7178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7179 /* end confdefs.h. */
7180 #ifdef __STDC__
7181 # include <limits.h>
7182 #else
7183 # include <assert.h>
7184 #endif
7185 Syntax error
7186 _ACEOF
7187 if ac_fn_c_try_cpp "$LINENO"; then :
7188
7189 else
7190 # Broken: fails on valid input.
7191 continue
7192 fi
7193 rm -f conftest.err conftest.i conftest.$ac_ext
7194
7195 # OK, works on sane cases. Now check whether nonexistent headers
7196 # can be detected and how.
7197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7198 /* end confdefs.h. */
7199 #include <ac_nonexistent.h>
7200 _ACEOF
7201 if ac_fn_c_try_cpp "$LINENO"; then :
7202 # Broken: success on invalid input.
7203 continue
7204 else
7205 # Passes both tests.
7206 ac_preproc_ok=:
7207 break
7208 fi
7209 rm -f conftest.err conftest.i conftest.$ac_ext
7210
7211 done
7212 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7213 rm -f conftest.i conftest.err conftest.$ac_ext
7214 if $ac_preproc_ok; then :
7215
7216 else
7217 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7219 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7220 See \`config.log' for more details" "$LINENO" 5; }
7221 fi
7222
7223 ac_ext=c
7224 ac_cpp='$CPP $CPPFLAGS'
7225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7228
7229
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7231 $as_echo_n "checking for ANSI C header files... " >&6; }
7232 if ${ac_cv_header_stdc+:} false; then :
7233 $as_echo_n "(cached) " >&6
7234 else
7235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7236 /* end confdefs.h. */
7237 #include <stdlib.h>
7238 #include <stdarg.h>
7239 #include <string.h>
7240 #include <float.h>
7241
7242 int
7243 main ()
7244 {
7245
7246 ;
7247 return 0;
7248 }
7249 _ACEOF
7250 if ac_fn_c_try_compile "$LINENO"; then :
7251 ac_cv_header_stdc=yes
7252 else
7253 ac_cv_header_stdc=no
7254 fi
7255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7256
7257 if test $ac_cv_header_stdc = yes; then
7258 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7260 /* end confdefs.h. */
7261 #include <string.h>
7262
7263 _ACEOF
7264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7265 $EGREP "memchr" >/dev/null 2>&1; then :
7266
7267 else
7268 ac_cv_header_stdc=no
7269 fi
7270 rm -f conftest*
7271
7272 fi
7273
7274 if test $ac_cv_header_stdc = yes; then
7275 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7277 /* end confdefs.h. */
7278 #include <stdlib.h>
7279
7280 _ACEOF
7281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7282 $EGREP "free" >/dev/null 2>&1; then :
7283
7284 else
7285 ac_cv_header_stdc=no
7286 fi
7287 rm -f conftest*
7288
7289 fi
7290
7291 if test $ac_cv_header_stdc = yes; then
7292 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7293 if test "$cross_compiling" = yes; then :
7294 :
7295 else
7296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7297 /* end confdefs.h. */
7298 #include <ctype.h>
7299 #include <stdlib.h>
7300 #if ((' ' & 0x0FF) == 0x020)
7301 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7302 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7303 #else
7304 # define ISLOWER(c) \
7305 (('a' <= (c) && (c) <= 'i') \
7306 || ('j' <= (c) && (c) <= 'r') \
7307 || ('s' <= (c) && (c) <= 'z'))
7308 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7309 #endif
7310
7311 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7312 int
7313 main ()
7314 {
7315 int i;
7316 for (i = 0; i < 256; i++)
7317 if (XOR (islower (i), ISLOWER (i))
7318 || toupper (i) != TOUPPER (i))
7319 return 2;
7320 return 0;
7321 }
7322 _ACEOF
7323 if ac_fn_c_try_run "$LINENO"; then :
7324
7325 else
7326 ac_cv_header_stdc=no
7327 fi
7328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7329 conftest.$ac_objext conftest.beam conftest.$ac_ext
7330 fi
7331
7332 fi
7333 fi
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7335 $as_echo "$ac_cv_header_stdc" >&6; }
7336 if test $ac_cv_header_stdc = yes; then
7337
7338 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7339
7340 fi
7341
7342 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7343 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7344 inttypes.h stdint.h unistd.h
7345 do :
7346 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7347 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7348 "
7349 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7350 cat >>confdefs.h <<_ACEOF
7351 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7352 _ACEOF
7353
7354 fi
7355
7356 done
7357
7358
7359 for ac_header in dlfcn.h
7360 do :
7361 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7362 "
7363 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7364 cat >>confdefs.h <<_ACEOF
7365 #define HAVE_DLFCN_H 1
7366 _ACEOF
7367
7368 fi
7369
7370 done
7371
7372
7373
7374
7375
7376 # Set options
7377
7378
7379
7380 enable_dlopen=no
7381
7382
7383 enable_win32_dll=no
7384
7385
7386 # Check whether --enable-shared was given.
7387 if test "${enable_shared+set}" = set; then :
7388 enableval=$enable_shared; p=${PACKAGE-default}
7389 case $enableval in
7390 yes) enable_shared=yes ;;
7391 no) enable_shared=no ;;
7392 *)
7393 enable_shared=no
7394 # Look at the argument we got. We use all the common list separators.
7395 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7396 for pkg in $enableval; do
7397 IFS="$lt_save_ifs"
7398 if test "X$pkg" = "X$p"; then
7399 enable_shared=yes
7400 fi
7401 done
7402 IFS="$lt_save_ifs"
7403 ;;
7404 esac
7405 else
7406 enable_shared=yes
7407 fi
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417 # Check whether --enable-static was given.
7418 if test "${enable_static+set}" = set; then :
7419 enableval=$enable_static; p=${PACKAGE-default}
7420 case $enableval in
7421 yes) enable_static=yes ;;
7422 no) enable_static=no ;;
7423 *)
7424 enable_static=no
7425 # Look at the argument we got. We use all the common list separators.
7426 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7427 for pkg in $enableval; do
7428 IFS="$lt_save_ifs"
7429 if test "X$pkg" = "X$p"; then
7430 enable_static=yes
7431 fi
7432 done
7433 IFS="$lt_save_ifs"
7434 ;;
7435 esac
7436 else
7437 enable_static=yes
7438 fi
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449 # Check whether --with-pic was given.
7450 if test "${with_pic+set}" = set; then :
7451 withval=$with_pic; pic_mode="$withval"
7452 else
7453 pic_mode=default
7454 fi
7455
7456
7457 test -z "$pic_mode" && pic_mode=default
7458
7459
7460
7461
7462
7463
7464
7465 # Check whether --enable-fast-install was given.
7466 if test "${enable_fast_install+set}" = set; then :
7467 enableval=$enable_fast_install; p=${PACKAGE-default}
7468 case $enableval in
7469 yes) enable_fast_install=yes ;;
7470 no) enable_fast_install=no ;;
7471 *)
7472 enable_fast_install=no
7473 # Look at the argument we got. We use all the common list separators.
7474 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7475 for pkg in $enableval; do
7476 IFS="$lt_save_ifs"
7477 if test "X$pkg" = "X$p"; then
7478 enable_fast_install=yes
7479 fi
7480 done
7481 IFS="$lt_save_ifs"
7482 ;;
7483 esac
7484 else
7485 enable_fast_install=yes
7486 fi
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498 # This can be used to rebuild libtool when needed
7499 LIBTOOL_DEPS="$ltmain"
7500
7501 # Always use our own libtool.
7502 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529 test -z "$LN_S" && LN_S="ln -s"
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544 if test -n "${ZSH_VERSION+set}" ; then
7545 setopt NO_GLOB_SUBST
7546 fi
7547
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7549 $as_echo_n "checking for objdir... " >&6; }
7550 if ${lt_cv_objdir+:} false; then :
7551 $as_echo_n "(cached) " >&6
7552 else
7553 rm -f .libs 2>/dev/null
7554 mkdir .libs 2>/dev/null
7555 if test -d .libs; then
7556 lt_cv_objdir=.libs
7557 else
7558 # MS-DOS does not allow filenames that begin with a dot.
7559 lt_cv_objdir=_libs
7560 fi
7561 rmdir .libs 2>/dev/null
7562 fi
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7564 $as_echo "$lt_cv_objdir" >&6; }
7565 objdir=$lt_cv_objdir
7566
7567
7568
7569
7570
7571 cat >>confdefs.h <<_ACEOF
7572 #define LT_OBJDIR "$lt_cv_objdir/"
7573 _ACEOF
7574
7575
7576
7577
7578 case $host_os in
7579 aix3*)
7580 # AIX sometimes has problems with the GCC collect2 program. For some
7581 # reason, if we set the COLLECT_NAMES environment variable, the problems
7582 # vanish in a puff of smoke.
7583 if test "X${COLLECT_NAMES+set}" != Xset; then
7584 COLLECT_NAMES=
7585 export COLLECT_NAMES
7586 fi
7587 ;;
7588 esac
7589
7590 # Global variables:
7591 ofile=libtool
7592 can_build_shared=yes
7593
7594 # All known linkers require a `.a' archive for static linking (except MSVC,
7595 # which needs '.lib').
7596 libext=a
7597
7598 with_gnu_ld="$lt_cv_prog_gnu_ld"
7599
7600 old_CC="$CC"
7601 old_CFLAGS="$CFLAGS"
7602
7603 # Set sane defaults for various variables
7604 test -z "$CC" && CC=cc
7605 test -z "$LTCC" && LTCC=$CC
7606 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7607 test -z "$LD" && LD=ld
7608 test -z "$ac_objext" && ac_objext=o
7609
7610 for cc_temp in $compiler""; do
7611 case $cc_temp in
7612 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7613 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7614 \-*) ;;
7615 *) break;;
7616 esac
7617 done
7618 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7619
7620
7621 # Only perform the check for file, if the check method requires it
7622 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7623 case $deplibs_check_method in
7624 file_magic*)
7625 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7627 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7628 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7629 $as_echo_n "(cached) " >&6
7630 else
7631 case $MAGIC_CMD in
7632 [\\/*] | ?:[\\/]*)
7633 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7634 ;;
7635 *)
7636 lt_save_MAGIC_CMD="$MAGIC_CMD"
7637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7638 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7639 for ac_dir in $ac_dummy; do
7640 IFS="$lt_save_ifs"
7641 test -z "$ac_dir" && ac_dir=.
7642 if test -f $ac_dir/${ac_tool_prefix}file; then
7643 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7644 if test -n "$file_magic_test_file"; then
7645 case $deplibs_check_method in
7646 "file_magic "*)
7647 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7648 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7649 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7650 $EGREP "$file_magic_regex" > /dev/null; then
7651 :
7652 else
7653 cat <<_LT_EOF 1>&2
7654
7655 *** Warning: the command libtool uses to detect shared libraries,
7656 *** $file_magic_cmd, produces output that libtool cannot recognize.
7657 *** The result is that libtool may fail to recognize shared libraries
7658 *** as such. This will affect the creation of libtool libraries that
7659 *** depend on shared libraries, but programs linked with such libtool
7660 *** libraries will work regardless of this problem. Nevertheless, you
7661 *** may want to report the problem to your system manager and/or to
7662 *** [email protected]
7663
7664 _LT_EOF
7665 fi ;;
7666 esac
7667 fi
7668 break
7669 fi
7670 done
7671 IFS="$lt_save_ifs"
7672 MAGIC_CMD="$lt_save_MAGIC_CMD"
7673 ;;
7674 esac
7675 fi
7676
7677 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7678 if test -n "$MAGIC_CMD"; then
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7680 $as_echo "$MAGIC_CMD" >&6; }
7681 else
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7683 $as_echo "no" >&6; }
7684 fi
7685
7686
7687
7688
7689
7690 if test -z "$lt_cv_path_MAGIC_CMD"; then
7691 if test -n "$ac_tool_prefix"; then
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7693 $as_echo_n "checking for file... " >&6; }
7694 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7695 $as_echo_n "(cached) " >&6
7696 else
7697 case $MAGIC_CMD in
7698 [\\/*] | ?:[\\/]*)
7699 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7700 ;;
7701 *)
7702 lt_save_MAGIC_CMD="$MAGIC_CMD"
7703 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7704 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7705 for ac_dir in $ac_dummy; do
7706 IFS="$lt_save_ifs"
7707 test -z "$ac_dir" && ac_dir=.
7708 if test -f $ac_dir/file; then
7709 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7710 if test -n "$file_magic_test_file"; then
7711 case $deplibs_check_method in
7712 "file_magic "*)
7713 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7714 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7715 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7716 $EGREP "$file_magic_regex" > /dev/null; then
7717 :
7718 else
7719 cat <<_LT_EOF 1>&2
7720
7721 *** Warning: the command libtool uses to detect shared libraries,
7722 *** $file_magic_cmd, produces output that libtool cannot recognize.
7723 *** The result is that libtool may fail to recognize shared libraries
7724 *** as such. This will affect the creation of libtool libraries that
7725 *** depend on shared libraries, but programs linked with such libtool
7726 *** libraries will work regardless of this problem. Nevertheless, you
7727 *** may want to report the problem to your system manager and/or to
7728 *** [email protected]
7729
7730 _LT_EOF
7731 fi ;;
7732 esac
7733 fi
7734 break
7735 fi
7736 done
7737 IFS="$lt_save_ifs"
7738 MAGIC_CMD="$lt_save_MAGIC_CMD"
7739 ;;
7740 esac
7741 fi
7742
7743 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7744 if test -n "$MAGIC_CMD"; then
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7746 $as_echo "$MAGIC_CMD" >&6; }
7747 else
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7749 $as_echo "no" >&6; }
7750 fi
7751
7752
7753 else
7754 MAGIC_CMD=:
7755 fi
7756 fi
7757
7758 fi
7759 ;;
7760 esac
7761
7762 # Use C for the default configuration in the libtool script
7763
7764 lt_save_CC="$CC"
7765 ac_ext=c
7766 ac_cpp='$CPP $CPPFLAGS'
7767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7770
7771
7772 # Source file extension for C test sources.
7773 ac_ext=c
7774
7775 # Object file extension for compiled C test sources.
7776 objext=o
7777 objext=$objext
7778
7779 # Code to be used in simple compile tests
7780 lt_simple_compile_test_code="int some_variable = 0;"
7781
7782 # Code to be used in simple link tests
7783 lt_simple_link_test_code='int main(){return(0);}'
7784
7785
7786
7787
7788
7789
7790
7791 # If no C compiler was specified, use CC.
7792 LTCC=${LTCC-"$CC"}
7793
7794 # If no C compiler flags were specified, use CFLAGS.
7795 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7796
7797 # Allow CC to be a program name with arguments.
7798 compiler=$CC
7799
7800 # Save the default compiler, since it gets overwritten when the other
7801 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7802 compiler_DEFAULT=$CC
7803
7804 # save warnings/boilerplate of simple test code
7805 ac_outfile=conftest.$ac_objext
7806 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7807 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7808 _lt_compiler_boilerplate=`cat conftest.err`
7809 $RM conftest*
7810
7811 ac_outfile=conftest.$ac_objext
7812 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7813 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7814 _lt_linker_boilerplate=`cat conftest.err`
7815 $RM -r conftest*
7816
7817
7818 if test -n "$compiler"; then
7819
7820 lt_prog_compiler_no_builtin_flag=
7821
7822 if test "$GCC" = yes; then
7823 case $cc_basename in
7824 nvcc*)
7825 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7826 *)
7827 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7828 esac
7829
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7831 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7832 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7833 $as_echo_n "(cached) " >&6
7834 else
7835 lt_cv_prog_compiler_rtti_exceptions=no
7836 ac_outfile=conftest.$ac_objext
7837 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7838 lt_compiler_flag="-fno-rtti -fno-exceptions"
7839 # Insert the option either (1) after the last *FLAGS variable, or
7840 # (2) before a word containing "conftest.", or (3) at the end.
7841 # Note that $ac_compile itself does not contain backslashes and begins
7842 # with a dollar sign (not a hyphen), so the echo should work correctly.
7843 # The option is referenced via a variable to avoid confusing sed.
7844 lt_compile=`echo "$ac_compile" | $SED \
7845 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7846 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7847 -e 's:$: $lt_compiler_flag:'`
7848 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7849 (eval "$lt_compile" 2>conftest.err)
7850 ac_status=$?
7851 cat conftest.err >&5
7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 if (exit $ac_status) && test -s "$ac_outfile"; then
7854 # The compiler can only warn and ignore the option if not recognized
7855 # So say no if there are warnings other than the usual output.
7856 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7857 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7858 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7859 lt_cv_prog_compiler_rtti_exceptions=yes
7860 fi
7861 fi
7862 $RM conftest*
7863
7864 fi
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7866 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7867
7868 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7869 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7870 else
7871 :
7872 fi
7873
7874 fi
7875
7876
7877
7878
7879
7880
7881 lt_prog_compiler_wl=
7882 lt_prog_compiler_pic=
7883 lt_prog_compiler_static=
7884
7885
7886 if test "$GCC" = yes; then
7887 lt_prog_compiler_wl='-Wl,'
7888 lt_prog_compiler_static='-static'
7889
7890 case $host_os in
7891 aix*)
7892 # All AIX code is PIC.
7893 if test "$host_cpu" = ia64; then
7894 # AIX 5 now supports IA64 processor
7895 lt_prog_compiler_static='-Bstatic'
7896 fi
7897 ;;
7898
7899 amigaos*)
7900 case $host_cpu in
7901 powerpc)
7902 # see comment about AmigaOS4 .so support
7903 lt_prog_compiler_pic='-fPIC'
7904 ;;
7905 m68k)
7906 # FIXME: we need at least 68020 code to build shared libraries, but
7907 # adding the `-m68020' flag to GCC prevents building anything better,
7908 # like `-m68040'.
7909 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7910 ;;
7911 esac
7912 ;;
7913
7914 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7915 # PIC is the default for these OSes.
7916 ;;
7917
7918 mingw* | cygwin* | pw32* | os2* | cegcc*)
7919 # This hack is so that the source file can tell whether it is being
7920 # built for inclusion in a dll (and should export symbols for example).
7921 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7922 # (--disable-auto-import) libraries
7923 lt_prog_compiler_pic='-DDLL_EXPORT'
7924 ;;
7925
7926 darwin* | rhapsody*)
7927 # PIC is the default on this platform
7928 # Common symbols not allowed in MH_DYLIB files
7929 lt_prog_compiler_pic='-fno-common'
7930 ;;
7931
7932 haiku*)
7933 # PIC is the default for Haiku.
7934 # The "-static" flag exists, but is broken.
7935 lt_prog_compiler_static=
7936 ;;
7937
7938 hpux*)
7939 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7940 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7941 # sets the default TLS model and affects inlining.
7942 case $host_cpu in
7943 hppa*64*)
7944 # +Z the default
7945 ;;
7946 *)
7947 lt_prog_compiler_pic='-fPIC'
7948 ;;
7949 esac
7950 ;;
7951
7952 interix[3-9]*)
7953 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7954 # Instead, we relocate shared libraries at runtime.
7955 ;;
7956
7957 msdosdjgpp*)
7958 # Just because we use GCC doesn't mean we suddenly get shared libraries
7959 # on systems that don't support them.
7960 lt_prog_compiler_can_build_shared=no
7961 enable_shared=no
7962 ;;
7963
7964 *nto* | *qnx*)
7965 # QNX uses GNU C++, but need to define -shared option too, otherwise
7966 # it will coredump.
7967 lt_prog_compiler_pic='-fPIC -shared'
7968 ;;
7969
7970 sysv4*MP*)
7971 if test -d /usr/nec; then
7972 lt_prog_compiler_pic=-Kconform_pic
7973 fi
7974 ;;
7975
7976 *)
7977 lt_prog_compiler_pic='-fPIC'
7978 ;;
7979 esac
7980
7981 case $cc_basename in
7982 nvcc*) # Cuda Compiler Driver 2.2
7983 lt_prog_compiler_wl='-Xlinker '
7984 lt_prog_compiler_pic='-Xcompiler -fPIC'
7985 ;;
7986 esac
7987 else
7988 # PORTME Check for flag to pass linker flags through the system compiler.
7989 case $host_os in
7990 aix*)
7991 lt_prog_compiler_wl='-Wl,'
7992 if test "$host_cpu" = ia64; then
7993 # AIX 5 now supports IA64 processor
7994 lt_prog_compiler_static='-Bstatic'
7995 else
7996 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7997 fi
7998 ;;
7999
8000 mingw* | cygwin* | pw32* | os2* | cegcc*)
8001 # This hack is so that the source file can tell whether it is being
8002 # built for inclusion in a dll (and should export symbols for example).
8003 lt_prog_compiler_pic='-DDLL_EXPORT'
8004 ;;
8005
8006 hpux9* | hpux10* | hpux11*)
8007 lt_prog_compiler_wl='-Wl,'
8008 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8009 # not for PA HP-UX.
8010 case $host_cpu in
8011 hppa*64*|ia64*)
8012 # +Z the default
8013 ;;
8014 *)
8015 lt_prog_compiler_pic='+Z'
8016 ;;
8017 esac
8018 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8019 lt_prog_compiler_static='${wl}-a ${wl}archive'
8020 ;;
8021
8022 irix5* | irix6* | nonstopux*)
8023 lt_prog_compiler_wl='-Wl,'
8024 # PIC (with -KPIC) is the default.
8025 lt_prog_compiler_static='-non_shared'
8026 ;;
8027
8028 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8029 case $cc_basename in
8030 # old Intel for x86_64 which still supported -KPIC.
8031 ecc*)
8032 lt_prog_compiler_wl='-Wl,'
8033 lt_prog_compiler_pic='-KPIC'
8034 lt_prog_compiler_static='-static'
8035 ;;
8036 # icc used to be incompatible with GCC.
8037 # ICC 10 doesn't accept -KPIC any more.
8038 icc* | ifort*)
8039 lt_prog_compiler_wl='-Wl,'
8040 lt_prog_compiler_pic='-fPIC'
8041 lt_prog_compiler_static='-static'
8042 ;;
8043 # Lahey Fortran 8.1.
8044 lf95*)
8045 lt_prog_compiler_wl='-Wl,'
8046 lt_prog_compiler_pic='--shared'
8047 lt_prog_compiler_static='--static'
8048 ;;
8049 nagfor*)
8050 # NAG Fortran compiler
8051 lt_prog_compiler_wl='-Wl,-Wl,,'
8052 lt_prog_compiler_pic='-PIC'
8053 lt_prog_compiler_static='-Bstatic'
8054 ;;
8055 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8056 # Portland Group compilers (*not* the Pentium gcc compiler,
8057 # which looks to be a dead project)
8058 lt_prog_compiler_wl='-Wl,'
8059 lt_prog_compiler_pic='-fpic'
8060 lt_prog_compiler_static='-Bstatic'
8061 ;;
8062 ccc*)
8063 lt_prog_compiler_wl='-Wl,'
8064 # All Alpha code is PIC.
8065 lt_prog_compiler_static='-non_shared'
8066 ;;
8067 xl* | bgxl* | bgf* | mpixl*)
8068 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8069 lt_prog_compiler_wl='-Wl,'
8070 lt_prog_compiler_pic='-qpic'
8071 lt_prog_compiler_static='-qstaticlink'
8072 ;;
8073 *)
8074 case `$CC -V 2>&1 | sed 5q` in
8075 *Sun\ F* | *Sun*Fortran*)
8076 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8077 lt_prog_compiler_pic='-KPIC'
8078 lt_prog_compiler_static='-Bstatic'
8079 lt_prog_compiler_wl=''
8080 ;;
8081 *Sun\ C*)
8082 # Sun C 5.9
8083 lt_prog_compiler_pic='-KPIC'
8084 lt_prog_compiler_static='-Bstatic'
8085 lt_prog_compiler_wl='-Wl,'
8086 ;;
8087 esac
8088 ;;
8089 esac
8090 ;;
8091
8092 newsos6)
8093 lt_prog_compiler_pic='-KPIC'
8094 lt_prog_compiler_static='-Bstatic'
8095 ;;
8096
8097 *nto* | *qnx*)
8098 # QNX uses GNU C++, but need to define -shared option too, otherwise
8099 # it will coredump.
8100 lt_prog_compiler_pic='-fPIC -shared'
8101 ;;
8102
8103 osf3* | osf4* | osf5*)
8104 lt_prog_compiler_wl='-Wl,'
8105 # All OSF/1 code is PIC.
8106 lt_prog_compiler_static='-non_shared'
8107 ;;
8108
8109 rdos*)
8110 lt_prog_compiler_static='-non_shared'
8111 ;;
8112
8113 solaris*)
8114 lt_prog_compiler_pic='-KPIC'
8115 lt_prog_compiler_static='-Bstatic'
8116 case $cc_basename in
8117 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8118 lt_prog_compiler_wl='-Qoption ld ';;
8119 *)
8120 lt_prog_compiler_wl='-Wl,';;
8121 esac
8122 ;;
8123
8124 sunos4*)
8125 lt_prog_compiler_wl='-Qoption ld '
8126 lt_prog_compiler_pic='-PIC'
8127 lt_prog_compiler_static='-Bstatic'
8128 ;;
8129
8130 sysv4 | sysv4.2uw2* | sysv4.3*)
8131 lt_prog_compiler_wl='-Wl,'
8132 lt_prog_compiler_pic='-KPIC'
8133 lt_prog_compiler_static='-Bstatic'
8134 ;;
8135
8136 sysv4*MP*)
8137 if test -d /usr/nec ;then
8138 lt_prog_compiler_pic='-Kconform_pic'
8139 lt_prog_compiler_static='-Bstatic'
8140 fi
8141 ;;
8142
8143 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8144 lt_prog_compiler_wl='-Wl,'
8145 lt_prog_compiler_pic='-KPIC'
8146 lt_prog_compiler_static='-Bstatic'
8147 ;;
8148
8149 unicos*)
8150 lt_prog_compiler_wl='-Wl,'
8151 lt_prog_compiler_can_build_shared=no
8152 ;;
8153
8154 uts4*)
8155 lt_prog_compiler_pic='-pic'
8156 lt_prog_compiler_static='-Bstatic'
8157 ;;
8158
8159 *)
8160 lt_prog_compiler_can_build_shared=no
8161 ;;
8162 esac
8163 fi
8164
8165 case $host_os in
8166 # For platforms which do not support PIC, -DPIC is meaningless:
8167 *djgpp*)
8168 lt_prog_compiler_pic=
8169 ;;
8170 *)
8171 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8172 ;;
8173 esac
8174
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8176 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8177 if ${lt_cv_prog_compiler_pic+:} false; then :
8178 $as_echo_n "(cached) " >&6
8179 else
8180 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8181 fi
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8183 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8184 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8185
8186 #
8187 # Check to make sure the PIC flag actually works.
8188 #
8189 if test -n "$lt_prog_compiler_pic"; then
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8191 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8192 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8193 $as_echo_n "(cached) " >&6
8194 else
8195 lt_cv_prog_compiler_pic_works=no
8196 ac_outfile=conftest.$ac_objext
8197 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8198 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8199 # Insert the option either (1) after the last *FLAGS variable, or
8200 # (2) before a word containing "conftest.", or (3) at the end.
8201 # Note that $ac_compile itself does not contain backslashes and begins
8202 # with a dollar sign (not a hyphen), so the echo should work correctly.
8203 # The option is referenced via a variable to avoid confusing sed.
8204 lt_compile=`echo "$ac_compile" | $SED \
8205 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8206 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8207 -e 's:$: $lt_compiler_flag:'`
8208 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8209 (eval "$lt_compile" 2>conftest.err)
8210 ac_status=$?
8211 cat conftest.err >&5
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 if (exit $ac_status) && test -s "$ac_outfile"; then
8214 # The compiler can only warn and ignore the option if not recognized
8215 # So say no if there are warnings other than the usual output.
8216 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8217 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8218 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8219 lt_cv_prog_compiler_pic_works=yes
8220 fi
8221 fi
8222 $RM conftest*
8223
8224 fi
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8226 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8227
8228 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8229 case $lt_prog_compiler_pic in
8230 "" | " "*) ;;
8231 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8232 esac
8233 else
8234 lt_prog_compiler_pic=
8235 lt_prog_compiler_can_build_shared=no
8236 fi
8237
8238 fi
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250 #
8251 # Check to make sure the static flag actually works.
8252 #
8253 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8255 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8256 if ${lt_cv_prog_compiler_static_works+:} false; then :
8257 $as_echo_n "(cached) " >&6
8258 else
8259 lt_cv_prog_compiler_static_works=no
8260 save_LDFLAGS="$LDFLAGS"
8261 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8262 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8263 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8264 # The linker can only warn and ignore the option if not recognized
8265 # So say no if there are warnings
8266 if test -s conftest.err; then
8267 # Append any errors to the config.log.
8268 cat conftest.err 1>&5
8269 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8270 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8271 if diff conftest.exp conftest.er2 >/dev/null; then
8272 lt_cv_prog_compiler_static_works=yes
8273 fi
8274 else
8275 lt_cv_prog_compiler_static_works=yes
8276 fi
8277 fi
8278 $RM -r conftest*
8279 LDFLAGS="$save_LDFLAGS"
8280
8281 fi
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8283 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8284
8285 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8286 :
8287 else
8288 lt_prog_compiler_static=
8289 fi
8290
8291
8292
8293
8294
8295
8296
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8298 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8299 if ${lt_cv_prog_compiler_c_o+:} false; then :
8300 $as_echo_n "(cached) " >&6
8301 else
8302 lt_cv_prog_compiler_c_o=no
8303 $RM -r conftest 2>/dev/null
8304 mkdir conftest
8305 cd conftest
8306 mkdir out
8307 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8308
8309 lt_compiler_flag="-o out/conftest2.$ac_objext"
8310 # Insert the option either (1) after the last *FLAGS variable, or
8311 # (2) before a word containing "conftest.", or (3) at the end.
8312 # Note that $ac_compile itself does not contain backslashes and begins
8313 # with a dollar sign (not a hyphen), so the echo should work correctly.
8314 lt_compile=`echo "$ac_compile" | $SED \
8315 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8316 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8317 -e 's:$: $lt_compiler_flag:'`
8318 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8319 (eval "$lt_compile" 2>out/conftest.err)
8320 ac_status=$?
8321 cat out/conftest.err >&5
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8324 then
8325 # The compiler can only warn and ignore the option if not recognized
8326 # So say no if there are warnings
8327 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8328 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8329 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8330 lt_cv_prog_compiler_c_o=yes
8331 fi
8332 fi
8333 chmod u+w . 2>&5
8334 $RM conftest*
8335 # SGI C++ compiler will create directory out/ii_files/ for
8336 # template instantiation
8337 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8338 $RM out/* && rmdir out
8339 cd ..
8340 $RM -r conftest
8341 $RM conftest*
8342
8343 fi
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8345 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8346
8347
8348
8349
8350
8351
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8353 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8354 if ${lt_cv_prog_compiler_c_o+:} false; then :
8355 $as_echo_n "(cached) " >&6
8356 else
8357 lt_cv_prog_compiler_c_o=no
8358 $RM -r conftest 2>/dev/null
8359 mkdir conftest
8360 cd conftest
8361 mkdir out
8362 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8363
8364 lt_compiler_flag="-o out/conftest2.$ac_objext"
8365 # Insert the option either (1) after the last *FLAGS variable, or
8366 # (2) before a word containing "conftest.", or (3) at the end.
8367 # Note that $ac_compile itself does not contain backslashes and begins
8368 # with a dollar sign (not a hyphen), so the echo should work correctly.
8369 lt_compile=`echo "$ac_compile" | $SED \
8370 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8371 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8372 -e 's:$: $lt_compiler_flag:'`
8373 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8374 (eval "$lt_compile" 2>out/conftest.err)
8375 ac_status=$?
8376 cat out/conftest.err >&5
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8379 then
8380 # The compiler can only warn and ignore the option if not recognized
8381 # So say no if there are warnings
8382 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8383 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8384 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8385 lt_cv_prog_compiler_c_o=yes
8386 fi
8387 fi
8388 chmod u+w . 2>&5
8389 $RM conftest*
8390 # SGI C++ compiler will create directory out/ii_files/ for
8391 # template instantiation
8392 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8393 $RM out/* && rmdir out
8394 cd ..
8395 $RM -r conftest
8396 $RM conftest*
8397
8398 fi
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8400 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8401
8402
8403
8404
8405 hard_links="nottested"
8406 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8407 # do not overwrite the value of need_locks provided by the user
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8409 $as_echo_n "checking if we can lock with hard links... " >&6; }
8410 hard_links=yes
8411 $RM conftest*
8412 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8413 touch conftest.a
8414 ln conftest.a conftest.b 2>&5 || hard_links=no
8415 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8417 $as_echo "$hard_links" >&6; }
8418 if test "$hard_links" = no; then
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8420 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8421 need_locks=warn
8422 fi
8423 else
8424 need_locks=no
8425 fi
8426
8427
8428
8429
8430
8431
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8433 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8434
8435 runpath_var=
8436 allow_undefined_flag=
8437 always_export_symbols=no
8438 archive_cmds=
8439 archive_expsym_cmds=
8440 compiler_needs_object=no
8441 enable_shared_with_static_runtimes=no
8442 export_dynamic_flag_spec=
8443 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8444 hardcode_automatic=no
8445 hardcode_direct=no
8446 hardcode_direct_absolute=no
8447 hardcode_libdir_flag_spec=
8448 hardcode_libdir_flag_spec_ld=
8449 hardcode_libdir_separator=
8450 hardcode_minus_L=no
8451 hardcode_shlibpath_var=unsupported
8452 inherit_rpath=no
8453 link_all_deplibs=unknown
8454 module_cmds=
8455 module_expsym_cmds=
8456 old_archive_from_new_cmds=
8457 old_archive_from_expsyms_cmds=
8458 thread_safe_flag_spec=
8459 whole_archive_flag_spec=
8460 # include_expsyms should be a list of space-separated symbols to be *always*
8461 # included in the symbol list
8462 include_expsyms=
8463 # exclude_expsyms can be an extended regexp of symbols to exclude
8464 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8465 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8466 # as well as any symbol that contains `d'.
8467 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8468 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8469 # platforms (ab)use it in PIC code, but their linkers get confused if
8470 # the symbol is explicitly referenced. Since portable code cannot
8471 # rely on this symbol name, it's probably fine to never include it in
8472 # preloaded symbol tables.
8473 # Exclude shared library initialization/finalization symbols.
8474 extract_expsyms_cmds=
8475
8476 case $host_os in
8477 cygwin* | mingw* | pw32* | cegcc*)
8478 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8479 # When not using gcc, we currently assume that we are using
8480 # Microsoft Visual C++.
8481 if test "$GCC" != yes; then
8482 with_gnu_ld=no
8483 fi
8484 ;;
8485 interix*)
8486 # we just hope/assume this is gcc and not c89 (= MSVC++)
8487 with_gnu_ld=yes
8488 ;;
8489 openbsd*)
8490 with_gnu_ld=no
8491 ;;
8492 esac
8493
8494 ld_shlibs=yes
8495
8496 # On some targets, GNU ld is compatible enough with the native linker
8497 # that we're better off using the native interface for both.
8498 lt_use_gnu_ld_interface=no
8499 if test "$with_gnu_ld" = yes; then
8500 case $host_os in
8501 aix*)
8502 # The AIX port of GNU ld has always aspired to compatibility
8503 # with the native linker. However, as the warning in the GNU ld
8504 # block says, versions before 2.19.5* couldn't really create working
8505 # shared libraries, regardless of the interface used.
8506 case `$LD -v 2>&1` in
8507 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8508 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8509 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8510 *)
8511 lt_use_gnu_ld_interface=yes
8512 ;;
8513 esac
8514 ;;
8515 *)
8516 lt_use_gnu_ld_interface=yes
8517 ;;
8518 esac
8519 fi
8520
8521 if test "$lt_use_gnu_ld_interface" = yes; then
8522 # If archive_cmds runs LD, not CC, wlarc should be empty
8523 wlarc='${wl}'
8524
8525 # Set some defaults for GNU ld with shared library support. These
8526 # are reset later if shared libraries are not supported. Putting them
8527 # here allows them to be overridden if necessary.
8528 runpath_var=LD_RUN_PATH
8529 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8530 export_dynamic_flag_spec='${wl}--export-dynamic'
8531 # ancient GNU ld didn't support --whole-archive et. al.
8532 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8533 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8534 else
8535 whole_archive_flag_spec=
8536 fi
8537 supports_anon_versioning=no
8538 case `$LD -v 2>&1` in
8539 *GNU\ gold*) supports_anon_versioning=yes ;;
8540 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8541 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8542 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8543 *\ 2.11.*) ;; # other 2.11 versions
8544 *) supports_anon_versioning=yes ;;
8545 esac
8546
8547 # See if GNU ld supports shared libraries.
8548 case $host_os in
8549 aix[3-9]*)
8550 # On AIX/PPC, the GNU linker is very broken
8551 if test "$host_cpu" != ia64; then
8552 ld_shlibs=no
8553 cat <<_LT_EOF 1>&2
8554
8555 *** Warning: the GNU linker, at least up to release 2.19, is reported
8556 *** to be unable to reliably create shared libraries on AIX.
8557 *** Therefore, libtool is disabling shared libraries support. If you
8558 *** really care for shared libraries, you may want to install binutils
8559 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8560 *** You will then need to restart the configuration process.
8561
8562 _LT_EOF
8563 fi
8564 ;;
8565
8566 amigaos*)
8567 case $host_cpu in
8568 powerpc)
8569 # see comment about AmigaOS4 .so support
8570 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8571 archive_expsym_cmds=''
8572 ;;
8573 m68k)
8574 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)'
8575 hardcode_libdir_flag_spec='-L$libdir'
8576 hardcode_minus_L=yes
8577 ;;
8578 esac
8579 ;;
8580
8581 beos*)
8582 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8583 allow_undefined_flag=unsupported
8584 # Joseph Beckenbach <[email protected]> says some releases of gcc
8585 # support --undefined. This deserves some investigation. FIXME
8586 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8587 else
8588 ld_shlibs=no
8589 fi
8590 ;;
8591
8592 cygwin* | mingw* | pw32* | cegcc*)
8593 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8594 # as there is no search path for DLLs.
8595 hardcode_libdir_flag_spec='-L$libdir'
8596 export_dynamic_flag_spec='${wl}--export-all-symbols'
8597 allow_undefined_flag=unsupported
8598 always_export_symbols=no
8599 enable_shared_with_static_runtimes=yes
8600 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8601 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8602
8603 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8604 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8605 # If the export-symbols file already is a .def file (1st line
8606 # is EXPORTS), use it as is; otherwise, prepend...
8607 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8608 cp $export_symbols $output_objdir/$soname.def;
8609 else
8610 echo EXPORTS > $output_objdir/$soname.def;
8611 cat $export_symbols >> $output_objdir/$soname.def;
8612 fi~
8613 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8614 else
8615 ld_shlibs=no
8616 fi
8617 ;;
8618
8619 haiku*)
8620 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8621 link_all_deplibs=yes
8622 ;;
8623
8624 interix[3-9]*)
8625 hardcode_direct=no
8626 hardcode_shlibpath_var=no
8627 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8628 export_dynamic_flag_spec='${wl}-E'
8629 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8630 # Instead, shared libraries are loaded at an image base (0x10000000 by
8631 # default) and relocated if they conflict, which is a slow very memory
8632 # consuming and fragmenting process. To avoid this, we pick a random,
8633 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8634 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8635 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8636 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'
8637 ;;
8638
8639 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8640 tmp_diet=no
8641 if test "$host_os" = linux-dietlibc; then
8642 case $cc_basename in
8643 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8644 esac
8645 fi
8646 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8647 && test "$tmp_diet" = no
8648 then
8649 tmp_addflag=' $pic_flag'
8650 tmp_sharedflag='-shared'
8651 case $cc_basename,$host_cpu in
8652 pgcc*) # Portland Group C compiler
8653 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8654 tmp_addflag=' $pic_flag'
8655 ;;
8656 pgf77* | pgf90* | pgf95* | pgfortran*)
8657 # Portland Group f77 and f90 compilers
8658 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8659 tmp_addflag=' $pic_flag -Mnomain' ;;
8660 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8661 tmp_addflag=' -i_dynamic' ;;
8662 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8663 tmp_addflag=' -i_dynamic -nofor_main' ;;
8664 ifc* | ifort*) # Intel Fortran compiler
8665 tmp_addflag=' -nofor_main' ;;
8666 lf95*) # Lahey Fortran 8.1
8667 whole_archive_flag_spec=
8668 tmp_sharedflag='--shared' ;;
8669 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8670 tmp_sharedflag='-qmkshrobj'
8671 tmp_addflag= ;;
8672 nvcc*) # Cuda Compiler Driver 2.2
8673 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8674 compiler_needs_object=yes
8675 ;;
8676 esac
8677 case `$CC -V 2>&1 | sed 5q` in
8678 *Sun\ C*) # Sun C 5.9
8679 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8680 compiler_needs_object=yes
8681 tmp_sharedflag='-G' ;;
8682 *Sun\ F*) # Sun Fortran 8.3
8683 tmp_sharedflag='-G' ;;
8684 esac
8685 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8686
8687 if test "x$supports_anon_versioning" = xyes; then
8688 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8689 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8690 echo "local: *; };" >> $output_objdir/$libname.ver~
8691 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8692 fi
8693
8694 case $cc_basename in
8695 xlf* | bgf* | bgxlf* | mpixlf*)
8696 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8697 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8698 hardcode_libdir_flag_spec=
8699 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8700 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8701 if test "x$supports_anon_versioning" = xyes; then
8702 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8703 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8704 echo "local: *; };" >> $output_objdir/$libname.ver~
8705 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8706 fi
8707 ;;
8708 esac
8709 else
8710 ld_shlibs=no
8711 fi
8712 ;;
8713
8714 netbsd*)
8715 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8716 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8717 wlarc=
8718 else
8719 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8720 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8721 fi
8722 ;;
8723
8724 solaris*)
8725 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8726 ld_shlibs=no
8727 cat <<_LT_EOF 1>&2
8728
8729 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8730 *** create shared libraries on Solaris systems. Therefore, libtool
8731 *** is disabling shared libraries support. We urge you to upgrade GNU
8732 *** binutils to release 2.9.1 or newer. Another option is to modify
8733 *** your PATH or compiler configuration so that the native linker is
8734 *** used, and then restart.
8735
8736 _LT_EOF
8737 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8738 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8739 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8740 else
8741 ld_shlibs=no
8742 fi
8743 ;;
8744
8745 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8746 case `$LD -v 2>&1` in
8747 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8748 ld_shlibs=no
8749 cat <<_LT_EOF 1>&2
8750
8751 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8752 *** reliably create shared libraries on SCO systems. Therefore, libtool
8753 *** is disabling shared libraries support. We urge you to upgrade GNU
8754 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8755 *** your PATH or compiler configuration so that the native linker is
8756 *** used, and then restart.
8757
8758 _LT_EOF
8759 ;;
8760 *)
8761 # For security reasons, it is highly recommended that you always
8762 # use absolute paths for naming shared libraries, and exclude the
8763 # DT_RUNPATH tag from executables and libraries. But doing so
8764 # requires that you compile everything twice, which is a pain.
8765 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8766 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8767 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8768 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8769 else
8770 ld_shlibs=no
8771 fi
8772 ;;
8773 esac
8774 ;;
8775
8776 sunos4*)
8777 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8778 wlarc=
8779 hardcode_direct=yes
8780 hardcode_shlibpath_var=no
8781 ;;
8782
8783 *)
8784 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8785 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8786 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8787 else
8788 ld_shlibs=no
8789 fi
8790 ;;
8791 esac
8792
8793 if test "$ld_shlibs" = no; then
8794 runpath_var=
8795 hardcode_libdir_flag_spec=
8796 export_dynamic_flag_spec=
8797 whole_archive_flag_spec=
8798 fi
8799 else
8800 # PORTME fill in a description of your system's linker (not GNU ld)
8801 case $host_os in
8802 aix3*)
8803 allow_undefined_flag=unsupported
8804 always_export_symbols=yes
8805 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'
8806 # Note: this linker hardcodes the directories in LIBPATH if there
8807 # are no directories specified by -L.
8808 hardcode_minus_L=yes
8809 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8810 # Neither direct hardcoding nor static linking is supported with a
8811 # broken collect2.
8812 hardcode_direct=unsupported
8813 fi
8814 ;;
8815
8816 aix[4-9]*)
8817 if test "$host_cpu" = ia64; then
8818 # On IA64, the linker does run time linking by default, so we don't
8819 # have to do anything special.
8820 aix_use_runtimelinking=no
8821 exp_sym_flag='-Bexport'
8822 no_entry_flag=""
8823 else
8824 # If we're using GNU nm, then we don't want the "-C" option.
8825 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8826 # Also, AIX nm treats weak defined symbols like other global
8827 # defined symbols, whereas GNU nm marks them as "W".
8828 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8829 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8830 else
8831 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'
8832 fi
8833 aix_use_runtimelinking=no
8834
8835 # Test if we are trying to use run time linking or normal
8836 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8837 # need to do runtime linking.
8838 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8839 for ld_flag in $LDFLAGS; do
8840 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8841 aix_use_runtimelinking=yes
8842 break
8843 fi
8844 done
8845 ;;
8846 esac
8847
8848 exp_sym_flag='-bexport'
8849 no_entry_flag='-bnoentry'
8850 fi
8851
8852 # When large executables or shared objects are built, AIX ld can
8853 # have problems creating the table of contents. If linking a library
8854 # or program results in "error TOC overflow" add -mminimal-toc to
8855 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8856 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8857
8858 archive_cmds=''
8859 hardcode_direct=yes
8860 hardcode_direct_absolute=yes
8861 hardcode_libdir_separator=':'
8862 link_all_deplibs=yes
8863 file_list_spec='${wl}-f,'
8864
8865 if test "$GCC" = yes; then
8866 case $host_os in aix4.[012]|aix4.[012].*)
8867 # We only want to do this on AIX 4.2 and lower, the check
8868 # below for broken collect2 doesn't work under 4.3+
8869 collect2name=`${CC} -print-prog-name=collect2`
8870 if test -f "$collect2name" &&
8871 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8872 then
8873 # We have reworked collect2
8874 :
8875 else
8876 # We have old collect2
8877 hardcode_direct=unsupported
8878 # It fails to find uninstalled libraries when the uninstalled
8879 # path is not listed in the libpath. Setting hardcode_minus_L
8880 # to unsupported forces relinking
8881 hardcode_minus_L=yes
8882 hardcode_libdir_flag_spec='-L$libdir'
8883 hardcode_libdir_separator=
8884 fi
8885 ;;
8886 esac
8887 shared_flag='-shared'
8888 if test "$aix_use_runtimelinking" = yes; then
8889 shared_flag="$shared_flag "'${wl}-G'
8890 fi
8891 else
8892 # not using gcc
8893 if test "$host_cpu" = ia64; then
8894 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8895 # chokes on -Wl,-G. The following line is correct:
8896 shared_flag='-G'
8897 else
8898 if test "$aix_use_runtimelinking" = yes; then
8899 shared_flag='${wl}-G'
8900 else
8901 shared_flag='${wl}-bM:SRE'
8902 fi
8903 fi
8904 fi
8905
8906 export_dynamic_flag_spec='${wl}-bexpall'
8907 # It seems that -bexpall does not export symbols beginning with
8908 # underscore (_), so it is better to generate a list of symbols to export.
8909 always_export_symbols=yes
8910 if test "$aix_use_runtimelinking" = yes; then
8911 # Warning - without using the other runtime loading flags (-brtl),
8912 # -berok will link without error, but may produce a broken library.
8913 allow_undefined_flag='-berok'
8914 # Determine the default libpath from the value encoded in an
8915 # empty executable.
8916 if test "${lt_cv_aix_libpath+set}" = set; then
8917 aix_libpath=$lt_cv_aix_libpath
8918 else
8919 if ${lt_cv_aix_libpath_+:} false; then :
8920 $as_echo_n "(cached) " >&6
8921 else
8922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8923 /* end confdefs.h. */
8924
8925 int
8926 main ()
8927 {
8928
8929 ;
8930 return 0;
8931 }
8932 _ACEOF
8933 if ac_fn_c_try_link "$LINENO"; then :
8934
8935 lt_aix_libpath_sed='
8936 /Import File Strings/,/^$/ {
8937 /^0/ {
8938 s/^0 *\([^ ]*\) *$/\1/
8939 p
8940 }
8941 }'
8942 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8943 # Check for a 64-bit object if we didn't find anything.
8944 if test -z "$lt_cv_aix_libpath_"; then
8945 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8946 fi
8947 fi
8948 rm -f core conftest.err conftest.$ac_objext \
8949 conftest$ac_exeext conftest.$ac_ext
8950 if test -z "$lt_cv_aix_libpath_"; then
8951 lt_cv_aix_libpath_="/usr/lib:/lib"
8952 fi
8953
8954 fi
8955
8956 aix_libpath=$lt_cv_aix_libpath_
8957 fi
8958
8959 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8960 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8961 else
8962 if test "$host_cpu" = ia64; then
8963 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8964 allow_undefined_flag="-z nodefs"
8965 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"
8966 else
8967 # Determine the default libpath from the value encoded in an
8968 # empty executable.
8969 if test "${lt_cv_aix_libpath+set}" = set; then
8970 aix_libpath=$lt_cv_aix_libpath
8971 else
8972 if ${lt_cv_aix_libpath_+:} false; then :
8973 $as_echo_n "(cached) " >&6
8974 else
8975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8976 /* end confdefs.h. */
8977
8978 int
8979 main ()
8980 {
8981
8982 ;
8983 return 0;
8984 }
8985 _ACEOF
8986 if ac_fn_c_try_link "$LINENO"; then :
8987
8988 lt_aix_libpath_sed='
8989 /Import File Strings/,/^$/ {
8990 /^0/ {
8991 s/^0 *\([^ ]*\) *$/\1/
8992 p
8993 }
8994 }'
8995 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8996 # Check for a 64-bit object if we didn't find anything.
8997 if test -z "$lt_cv_aix_libpath_"; then
8998 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8999 fi
9000 fi
9001 rm -f core conftest.err conftest.$ac_objext \
9002 conftest$ac_exeext conftest.$ac_ext
9003 if test -z "$lt_cv_aix_libpath_"; then
9004 lt_cv_aix_libpath_="/usr/lib:/lib"
9005 fi
9006
9007 fi
9008
9009 aix_libpath=$lt_cv_aix_libpath_
9010 fi
9011
9012 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9013 # Warning - without using the other run time loading flags,
9014 # -berok will link without error, but may produce a broken library.
9015 no_undefined_flag=' ${wl}-bernotok'
9016 allow_undefined_flag=' ${wl}-berok'
9017 if test "$with_gnu_ld" = yes; then
9018 # We only use this code for GNU lds that support --whole-archive.
9019 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9020 else
9021 # Exported symbols can be pulled into shared objects from archives
9022 whole_archive_flag_spec='$convenience'
9023 fi
9024 archive_cmds_need_lc=yes
9025 # This is similar to how AIX traditionally builds its shared libraries.
9026 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'
9027 fi
9028 fi
9029 ;;
9030
9031 amigaos*)
9032 case $host_cpu in
9033 powerpc)
9034 # see comment about AmigaOS4 .so support
9035 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9036 archive_expsym_cmds=''
9037 ;;
9038 m68k)
9039 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)'
9040 hardcode_libdir_flag_spec='-L$libdir'
9041 hardcode_minus_L=yes
9042 ;;
9043 esac
9044 ;;
9045
9046 bsdi[45]*)
9047 export_dynamic_flag_spec=-rdynamic
9048 ;;
9049
9050 cygwin* | mingw* | pw32* | cegcc*)
9051 # When not using gcc, we currently assume that we are using
9052 # Microsoft Visual C++.
9053 # hardcode_libdir_flag_spec is actually meaningless, as there is
9054 # no search path for DLLs.
9055 case $cc_basename in
9056 cl*)
9057 # Native MSVC
9058 hardcode_libdir_flag_spec=' '
9059 allow_undefined_flag=unsupported
9060 always_export_symbols=yes
9061 file_list_spec='@'
9062 # Tell ltmain to make .lib files, not .a files.
9063 libext=lib
9064 # Tell ltmain to make .dll files, not .so files.
9065 shrext_cmds=".dll"
9066 # FIXME: Setting linknames here is a bad hack.
9067 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9068 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9069 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9070 else
9071 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9072 fi~
9073 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9074 linknames='
9075 # The linker will not automatically build a static lib if we build a DLL.
9076 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9077 enable_shared_with_static_runtimes=yes
9078 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9079 # Don't use ranlib
9080 old_postinstall_cmds='chmod 644 $oldlib'
9081 postlink_cmds='lt_outputfile="@OUTPUT@"~
9082 lt_tool_outputfile="@TOOL_OUTPUT@"~
9083 case $lt_outputfile in
9084 *.exe|*.EXE) ;;
9085 *)
9086 lt_outputfile="$lt_outputfile.exe"
9087 lt_tool_outputfile="$lt_tool_outputfile.exe"
9088 ;;
9089 esac~
9090 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9091 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9092 $RM "$lt_outputfile.manifest";
9093 fi'
9094 ;;
9095 *)
9096 # Assume MSVC wrapper
9097 hardcode_libdir_flag_spec=' '
9098 allow_undefined_flag=unsupported
9099 # Tell ltmain to make .lib files, not .a files.
9100 libext=lib
9101 # Tell ltmain to make .dll files, not .so files.
9102 shrext_cmds=".dll"
9103 # FIXME: Setting linknames here is a bad hack.
9104 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9105 # The linker will automatically build a .lib file if we build a DLL.
9106 old_archive_from_new_cmds='true'
9107 # FIXME: Should let the user specify the lib program.
9108 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9109 enable_shared_with_static_runtimes=yes
9110 ;;
9111 esac
9112 ;;
9113
9114 darwin* | rhapsody*)
9115
9116
9117 archive_cmds_need_lc=no
9118 hardcode_direct=no
9119 hardcode_automatic=yes
9120 hardcode_shlibpath_var=unsupported
9121 if test "$lt_cv_ld_force_load" = "yes"; then
9122 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9123 else
9124 whole_archive_flag_spec=''
9125 fi
9126 link_all_deplibs=yes
9127 allow_undefined_flag="$_lt_dar_allow_undefined"
9128 case $cc_basename in
9129 ifort*) _lt_dar_can_shared=yes ;;
9130 *) _lt_dar_can_shared=$GCC ;;
9131 esac
9132 if test "$_lt_dar_can_shared" = "yes"; then
9133 output_verbose_link_cmd=func_echo_all
9134 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9135 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9136 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9137 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9138
9139 else
9140 ld_shlibs=no
9141 fi
9142
9143 ;;
9144
9145 dgux*)
9146 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9147 hardcode_libdir_flag_spec='-L$libdir'
9148 hardcode_shlibpath_var=no
9149 ;;
9150
9151 freebsd1*)
9152 ld_shlibs=no
9153 ;;
9154
9155 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9156 # support. Future versions do this automatically, but an explicit c++rt0.o
9157 # does not break anything, and helps significantly (at the cost of a little
9158 # extra space).
9159 freebsd2.2*)
9160 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9161 hardcode_libdir_flag_spec='-R$libdir'
9162 hardcode_direct=yes
9163 hardcode_shlibpath_var=no
9164 ;;
9165
9166 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9167 freebsd2*)
9168 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9169 hardcode_direct=yes
9170 hardcode_minus_L=yes
9171 hardcode_shlibpath_var=no
9172 ;;
9173
9174 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9175 freebsd* | dragonfly*)
9176 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9177 hardcode_libdir_flag_spec='-R$libdir'
9178 hardcode_direct=yes
9179 hardcode_shlibpath_var=no
9180 ;;
9181
9182 hpux9*)
9183 if test "$GCC" = yes; then
9184 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9185 else
9186 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'
9187 fi
9188 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9189 hardcode_libdir_separator=:
9190 hardcode_direct=yes
9191
9192 # hardcode_minus_L: Not really in the search PATH,
9193 # but as the default location of the library.
9194 hardcode_minus_L=yes
9195 export_dynamic_flag_spec='${wl}-E'
9196 ;;
9197
9198 hpux10*)
9199 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9200 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9201 else
9202 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9203 fi
9204 if test "$with_gnu_ld" = no; then
9205 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9206 hardcode_libdir_flag_spec_ld='+b $libdir'
9207 hardcode_libdir_separator=:
9208 hardcode_direct=yes
9209 hardcode_direct_absolute=yes
9210 export_dynamic_flag_spec='${wl}-E'
9211 # hardcode_minus_L: Not really in the search PATH,
9212 # but as the default location of the library.
9213 hardcode_minus_L=yes
9214 fi
9215 ;;
9216
9217 hpux11*)
9218 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9219 case $host_cpu in
9220 hppa*64*)
9221 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9222 ;;
9223 ia64*)
9224 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9225 ;;
9226 *)
9227 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9228 ;;
9229 esac
9230 else
9231 case $host_cpu in
9232 hppa*64*)
9233 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9234 ;;
9235 ia64*)
9236 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9237 ;;
9238 *)
9239
9240 # Older versions of the 11.00 compiler do not understand -b yet
9241 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9243 $as_echo_n "checking if $CC understands -b... " >&6; }
9244 if ${lt_cv_prog_compiler__b+:} false; then :
9245 $as_echo_n "(cached) " >&6
9246 else
9247 lt_cv_prog_compiler__b=no
9248 save_LDFLAGS="$LDFLAGS"
9249 LDFLAGS="$LDFLAGS -b"
9250 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9251 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9252 # The linker can only warn and ignore the option if not recognized
9253 # So say no if there are warnings
9254 if test -s conftest.err; then
9255 # Append any errors to the config.log.
9256 cat conftest.err 1>&5
9257 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9258 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9259 if diff conftest.exp conftest.er2 >/dev/null; then
9260 lt_cv_prog_compiler__b=yes
9261 fi
9262 else
9263 lt_cv_prog_compiler__b=yes
9264 fi
9265 fi
9266 $RM -r conftest*
9267 LDFLAGS="$save_LDFLAGS"
9268
9269 fi
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9271 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9272
9273 if test x"$lt_cv_prog_compiler__b" = xyes; then
9274 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9275 else
9276 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9277 fi
9278
9279 ;;
9280 esac
9281 fi
9282 if test "$with_gnu_ld" = no; then
9283 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9284 hardcode_libdir_separator=:
9285
9286 case $host_cpu in
9287 hppa*64*|ia64*)
9288 hardcode_direct=no
9289 hardcode_shlibpath_var=no
9290 ;;
9291 *)
9292 hardcode_direct=yes
9293 hardcode_direct_absolute=yes
9294 export_dynamic_flag_spec='${wl}-E'
9295
9296 # hardcode_minus_L: Not really in the search PATH,
9297 # but as the default location of the library.
9298 hardcode_minus_L=yes
9299 ;;
9300 esac
9301 fi
9302 ;;
9303
9304 irix5* | irix6* | nonstopux*)
9305 if test "$GCC" = yes; then
9306 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9307 # Try to use the -exported_symbol ld option, if it does not
9308 # work, assume that -exports_file does not work either and
9309 # implicitly export all symbols.
9310 # This should be the same for all languages, so no per-tag cache variable.
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9312 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9313 if ${lt_cv_irix_exported_symbol+:} false; then :
9314 $as_echo_n "(cached) " >&6
9315 else
9316 save_LDFLAGS="$LDFLAGS"
9317 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9319 /* end confdefs.h. */
9320 int foo (void) { return 0; }
9321 _ACEOF
9322 if ac_fn_c_try_link "$LINENO"; then :
9323 lt_cv_irix_exported_symbol=yes
9324 else
9325 lt_cv_irix_exported_symbol=no
9326 fi
9327 rm -f core conftest.err conftest.$ac_objext \
9328 conftest$ac_exeext conftest.$ac_ext
9329 LDFLAGS="$save_LDFLAGS"
9330 fi
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9332 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9333 if test "$lt_cv_irix_exported_symbol" = yes; then
9334 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9335 fi
9336 else
9337 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9338 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9339 fi
9340 archive_cmds_need_lc='no'
9341 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9342 hardcode_libdir_separator=:
9343 inherit_rpath=yes
9344 link_all_deplibs=yes
9345 ;;
9346
9347 netbsd*)
9348 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9349 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9350 else
9351 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9352 fi
9353 hardcode_libdir_flag_spec='-R$libdir'
9354 hardcode_direct=yes
9355 hardcode_shlibpath_var=no
9356 ;;
9357
9358 newsos6)
9359 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9360 hardcode_direct=yes
9361 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9362 hardcode_libdir_separator=:
9363 hardcode_shlibpath_var=no
9364 ;;
9365
9366 *nto* | *qnx*)
9367 ;;
9368
9369 openbsd*)
9370 if test -f /usr/libexec/ld.so; then
9371 hardcode_direct=yes
9372 hardcode_shlibpath_var=no
9373 hardcode_direct_absolute=yes
9374 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9375 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9376 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9377 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9378 export_dynamic_flag_spec='${wl}-E'
9379 else
9380 case $host_os in
9381 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9382 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9383 hardcode_libdir_flag_spec='-R$libdir'
9384 ;;
9385 *)
9386 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9387 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9388 ;;
9389 esac
9390 fi
9391 else
9392 ld_shlibs=no
9393 fi
9394 ;;
9395
9396 os2*)
9397 hardcode_libdir_flag_spec='-L$libdir'
9398 hardcode_minus_L=yes
9399 allow_undefined_flag=unsupported
9400 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'
9401 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9402 ;;
9403
9404 osf3*)
9405 if test "$GCC" = yes; then
9406 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9407 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9408 else
9409 allow_undefined_flag=' -expect_unresolved \*'
9410 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9411 fi
9412 archive_cmds_need_lc='no'
9413 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9414 hardcode_libdir_separator=:
9415 ;;
9416
9417 osf4* | osf5*) # as osf3* with the addition of -msym flag
9418 if test "$GCC" = yes; then
9419 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9420 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9421 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9422 else
9423 allow_undefined_flag=' -expect_unresolved \*'
9424 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9425 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9426 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9427
9428 # Both c and cxx compiler support -rpath directly
9429 hardcode_libdir_flag_spec='-rpath $libdir'
9430 fi
9431 archive_cmds_need_lc='no'
9432 hardcode_libdir_separator=:
9433 ;;
9434
9435 solaris*)
9436 no_undefined_flag=' -z defs'
9437 if test "$GCC" = yes; then
9438 wlarc='${wl}'
9439 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9440 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9441 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9442 else
9443 case `$CC -V 2>&1` in
9444 *"Compilers 5.0"*)
9445 wlarc=''
9446 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9447 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9448 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9449 ;;
9450 *)
9451 wlarc='${wl}'
9452 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9453 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9454 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9455 ;;
9456 esac
9457 fi
9458 hardcode_libdir_flag_spec='-R$libdir'
9459 hardcode_shlibpath_var=no
9460 case $host_os in
9461 solaris2.[0-5] | solaris2.[0-5].*) ;;
9462 *)
9463 # The compiler driver will combine and reorder linker options,
9464 # but understands `-z linker_flag'. GCC discards it without `$wl',
9465 # but is careful enough not to reorder.
9466 # Supported since Solaris 2.6 (maybe 2.5.1?)
9467 if test "$GCC" = yes; then
9468 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9469 else
9470 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9471 fi
9472 ;;
9473 esac
9474 link_all_deplibs=yes
9475 ;;
9476
9477 sunos4*)
9478 if test "x$host_vendor" = xsequent; then
9479 # Use $CC to link under sequent, because it throws in some extra .o
9480 # files that make .init and .fini sections work.
9481 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9482 else
9483 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9484 fi
9485 hardcode_libdir_flag_spec='-L$libdir'
9486 hardcode_direct=yes
9487 hardcode_minus_L=yes
9488 hardcode_shlibpath_var=no
9489 ;;
9490
9491 sysv4)
9492 case $host_vendor in
9493 sni)
9494 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9495 hardcode_direct=yes # is this really true???
9496 ;;
9497 siemens)
9498 ## LD is ld it makes a PLAMLIB
9499 ## CC just makes a GrossModule.
9500 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9501 reload_cmds='$CC -r -o $output$reload_objs'
9502 hardcode_direct=no
9503 ;;
9504 motorola)
9505 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9506 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9507 ;;
9508 esac
9509 runpath_var='LD_RUN_PATH'
9510 hardcode_shlibpath_var=no
9511 ;;
9512
9513 sysv4.3*)
9514 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9515 hardcode_shlibpath_var=no
9516 export_dynamic_flag_spec='-Bexport'
9517 ;;
9518
9519 sysv4*MP*)
9520 if test -d /usr/nec; then
9521 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9522 hardcode_shlibpath_var=no
9523 runpath_var=LD_RUN_PATH
9524 hardcode_runpath_var=yes
9525 ld_shlibs=yes
9526 fi
9527 ;;
9528
9529 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9530 no_undefined_flag='${wl}-z,text'
9531 archive_cmds_need_lc=no
9532 hardcode_shlibpath_var=no
9533 runpath_var='LD_RUN_PATH'
9534
9535 if test "$GCC" = yes; then
9536 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9537 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9538 else
9539 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9540 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9541 fi
9542 ;;
9543
9544 sysv5* | sco3.2v5* | sco5v6*)
9545 # Note: We can NOT use -z defs as we might desire, because we do not
9546 # link with -lc, and that would cause any symbols used from libc to
9547 # always be unresolved, which means just about no library would
9548 # ever link correctly. If we're not using GNU ld we use -z text
9549 # though, which does catch some bad symbols but isn't as heavy-handed
9550 # as -z defs.
9551 no_undefined_flag='${wl}-z,text'
9552 allow_undefined_flag='${wl}-z,nodefs'
9553 archive_cmds_need_lc=no
9554 hardcode_shlibpath_var=no
9555 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9556 hardcode_libdir_separator=':'
9557 link_all_deplibs=yes
9558 export_dynamic_flag_spec='${wl}-Bexport'
9559 runpath_var='LD_RUN_PATH'
9560
9561 if test "$GCC" = yes; then
9562 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9563 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9564 else
9565 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9566 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9567 fi
9568 ;;
9569
9570 uts4*)
9571 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9572 hardcode_libdir_flag_spec='-L$libdir'
9573 hardcode_shlibpath_var=no
9574 ;;
9575
9576 *)
9577 ld_shlibs=no
9578 ;;
9579 esac
9580
9581 if test x$host_vendor = xsni; then
9582 case $host in
9583 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9584 export_dynamic_flag_spec='${wl}-Blargedynsym'
9585 ;;
9586 esac
9587 fi
9588 fi
9589
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9591 $as_echo "$ld_shlibs" >&6; }
9592 test "$ld_shlibs" = no && can_build_shared=no
9593
9594 with_gnu_ld=$with_gnu_ld
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610 #
9611 # Do we need to explicitly link libc?
9612 #
9613 case "x$archive_cmds_need_lc" in
9614 x|xyes)
9615 # Assume -lc should be added
9616 archive_cmds_need_lc=yes
9617
9618 if test "$enable_shared" = yes && test "$GCC" = yes; then
9619 case $archive_cmds in
9620 *'~'*)
9621 # FIXME: we may have to deal with multi-command sequences.
9622 ;;
9623 '$CC '*)
9624 # Test whether the compiler implicitly links with -lc since on some
9625 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9626 # to ld, don't add -lc before -lgcc.
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9628 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9629 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9630 $as_echo_n "(cached) " >&6
9631 else
9632 $RM conftest*
9633 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9634
9635 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9636 (eval $ac_compile) 2>&5
9637 ac_status=$?
9638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9639 test $ac_status = 0; } 2>conftest.err; then
9640 soname=conftest
9641 lib=conftest
9642 libobjs=conftest.$ac_objext
9643 deplibs=
9644 wl=$lt_prog_compiler_wl
9645 pic_flag=$lt_prog_compiler_pic
9646 compiler_flags=-v
9647 linker_flags=-v
9648 verstring=
9649 output_objdir=.
9650 libname=conftest
9651 lt_save_allow_undefined_flag=$allow_undefined_flag
9652 allow_undefined_flag=
9653 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9654 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9655 ac_status=$?
9656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9657 test $ac_status = 0; }
9658 then
9659 lt_cv_archive_cmds_need_lc=no
9660 else
9661 lt_cv_archive_cmds_need_lc=yes
9662 fi
9663 allow_undefined_flag=$lt_save_allow_undefined_flag
9664 else
9665 cat conftest.err 1>&5
9666 fi
9667 $RM conftest*
9668
9669 fi
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9671 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9672 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9673 ;;
9674 esac
9675 fi
9676 ;;
9677 esac
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9836 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9837
9838 if test "$GCC" = yes; then
9839 case $host_os in
9840 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9841 *) lt_awk_arg="/^libraries:/" ;;
9842 esac
9843 case $host_os in
9844 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9845 *) lt_sed_strip_eq="s,=/,/,g" ;;
9846 esac
9847 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9848 case $lt_search_path_spec in
9849 *\;*)
9850 # if the path contains ";" then we assume it to be the separator
9851 # otherwise default to the standard path separator (i.e. ":") - it is
9852 # assumed that no part of a normal pathname contains ";" but that should
9853 # okay in the real world where ";" in dirpaths is itself problematic.
9854 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9855 ;;
9856 *)
9857 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9858 ;;
9859 esac
9860 # Ok, now we have the path, separated by spaces, we can step through it
9861 # and add multilib dir if necessary.
9862 lt_tmp_lt_search_path_spec=
9863 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9864 for lt_sys_path in $lt_search_path_spec; do
9865 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9866 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9867 else
9868 test -d "$lt_sys_path" && \
9869 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9870 fi
9871 done
9872 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9873 BEGIN {RS=" "; FS="/|\n";} {
9874 lt_foo="";
9875 lt_count=0;
9876 for (lt_i = NF; lt_i > 0; lt_i--) {
9877 if ($lt_i != "" && $lt_i != ".") {
9878 if ($lt_i == "..") {
9879 lt_count++;
9880 } else {
9881 if (lt_count == 0) {
9882 lt_foo="/" $lt_i lt_foo;
9883 } else {
9884 lt_count--;
9885 }
9886 }
9887 }
9888 }
9889 if (lt_foo != "") { lt_freq[lt_foo]++; }
9890 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9891 }'`
9892 # AWK program above erroneously prepends '/' to C:/dos/paths
9893 # for these hosts.
9894 case $host_os in
9895 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9896 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9897 esac
9898 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9899 else
9900 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9901 fi
9902 library_names_spec=
9903 libname_spec='lib$name'
9904 soname_spec=
9905 shrext_cmds=".so"
9906 postinstall_cmds=
9907 postuninstall_cmds=
9908 finish_cmds=
9909 finish_eval=
9910 shlibpath_var=
9911 shlibpath_overrides_runpath=unknown
9912 version_type=none
9913 dynamic_linker="$host_os ld.so"
9914 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9915 need_lib_prefix=unknown
9916 hardcode_into_libs=no
9917
9918 # when you set need_version to no, make sure it does not cause -set_version
9919 # flags to be left without arguments
9920 need_version=unknown
9921
9922 case $host_os in
9923 aix3*)
9924 version_type=linux
9925 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9926 shlibpath_var=LIBPATH
9927
9928 # AIX 3 has no versioning support, so we append a major version to the name.
9929 soname_spec='${libname}${release}${shared_ext}$major'
9930 ;;
9931
9932 aix[4-9]*)
9933 version_type=linux
9934 need_lib_prefix=no
9935 need_version=no
9936 hardcode_into_libs=yes
9937 if test "$host_cpu" = ia64; then
9938 # AIX 5 supports IA64
9939 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9940 shlibpath_var=LD_LIBRARY_PATH
9941 else
9942 # With GCC up to 2.95.x, collect2 would create an import file
9943 # for dependence libraries. The import file would start with
9944 # the line `#! .'. This would cause the generated library to
9945 # depend on `.', always an invalid library. This was fixed in
9946 # development snapshots of GCC prior to 3.0.
9947 case $host_os in
9948 aix4 | aix4.[01] | aix4.[01].*)
9949 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9950 echo ' yes '
9951 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9952 :
9953 else
9954 can_build_shared=no
9955 fi
9956 ;;
9957 esac
9958 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9959 # soname into executable. Probably we can add versioning support to
9960 # collect2, so additional links can be useful in future.
9961 if test "$aix_use_runtimelinking" = yes; then
9962 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9963 # instead of lib<name>.a to let people know that these are not
9964 # typical AIX shared libraries.
9965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9966 else
9967 # We preserve .a as extension for shared libraries through AIX4.2
9968 # and later when we are not doing run time linking.
9969 library_names_spec='${libname}${release}.a $libname.a'
9970 soname_spec='${libname}${release}${shared_ext}$major'
9971 fi
9972 shlibpath_var=LIBPATH
9973 fi
9974 ;;
9975
9976 amigaos*)
9977 case $host_cpu in
9978 powerpc)
9979 # Since July 2007 AmigaOS4 officially supports .so libraries.
9980 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9982 ;;
9983 m68k)
9984 library_names_spec='$libname.ixlibrary $libname.a'
9985 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9986 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
9987 ;;
9988 esac
9989 ;;
9990
9991 beos*)
9992 library_names_spec='${libname}${shared_ext}'
9993 dynamic_linker="$host_os ld.so"
9994 shlibpath_var=LIBRARY_PATH
9995 ;;
9996
9997 bsdi[45]*)
9998 version_type=linux
9999 need_version=no
10000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10001 soname_spec='${libname}${release}${shared_ext}$major'
10002 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10003 shlibpath_var=LD_LIBRARY_PATH
10004 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10005 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10006 # the default ld.so.conf also contains /usr/contrib/lib and
10007 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10008 # libtool to hard-code these into programs
10009 ;;
10010
10011 cygwin* | mingw* | pw32* | cegcc*)
10012 version_type=windows
10013 shrext_cmds=".dll"
10014 need_version=no
10015 need_lib_prefix=no
10016
10017 case $GCC,$cc_basename in
10018 yes,*)
10019 # gcc
10020 library_names_spec='$libname.dll.a'
10021 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10022 postinstall_cmds='base_file=`basename \${file}`~
10023 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10024 dldir=$destdir/`dirname \$dlpath`~
10025 test -d \$dldir || mkdir -p \$dldir~
10026 $install_prog $dir/$dlname \$dldir/$dlname~
10027 chmod a+x \$dldir/$dlname~
10028 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10029 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10030 fi'
10031 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10032 dlpath=$dir/\$dldll~
10033 $RM \$dlpath'
10034 shlibpath_overrides_runpath=yes
10035
10036 case $host_os in
10037 cygwin*)
10038 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10039 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10040
10041 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10042 ;;
10043 mingw* | cegcc*)
10044 # MinGW DLLs use traditional 'lib' prefix
10045 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10046 ;;
10047 pw32*)
10048 # pw32 DLLs use 'pw' prefix rather than 'lib'
10049 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10050 ;;
10051 esac
10052 dynamic_linker='Win32 ld.exe'
10053 ;;
10054
10055 *,cl*)
10056 # Native MSVC
10057 libname_spec='$name'
10058 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10059 library_names_spec='${libname}.dll.lib'
10060
10061 case $build_os in
10062 mingw*)
10063 sys_lib_search_path_spec=
10064 lt_save_ifs=$IFS
10065 IFS=';'
10066 for lt_path in $LIB
10067 do
10068 IFS=$lt_save_ifs
10069 # Let DOS variable expansion print the short 8.3 style file name.
10070 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10071 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10072 done
10073 IFS=$lt_save_ifs
10074 # Convert to MSYS style.
10075 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10076 ;;
10077 cygwin*)
10078 # Convert to unix form, then to dos form, then back to unix form
10079 # but this time dos style (no spaces!) so that the unix form looks
10080 # like /cygdrive/c/PROGRA~1:/cygdr...
10081 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10082 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10083 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10084 ;;
10085 *)
10086 sys_lib_search_path_spec="$LIB"
10087 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10088 # It is most probably a Windows format PATH.
10089 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10090 else
10091 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10092 fi
10093 # FIXME: find the short name or the path components, as spaces are
10094 # common. (e.g. "Program Files" -> "PROGRA~1")
10095 ;;
10096 esac
10097
10098 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10099 postinstall_cmds='base_file=`basename \${file}`~
10100 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10101 dldir=$destdir/`dirname \$dlpath`~
10102 test -d \$dldir || mkdir -p \$dldir~
10103 $install_prog $dir/$dlname \$dldir/$dlname'
10104 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10105 dlpath=$dir/\$dldll~
10106 $RM \$dlpath'
10107 shlibpath_overrides_runpath=yes
10108 dynamic_linker='Win32 link.exe'
10109 ;;
10110
10111 *)
10112 # Assume MSVC wrapper
10113 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10114 dynamic_linker='Win32 ld.exe'
10115 ;;
10116 esac
10117 # FIXME: first we should search . and the directory the executable is in
10118 shlibpath_var=PATH
10119 ;;
10120
10121 darwin* | rhapsody*)
10122 dynamic_linker="$host_os dyld"
10123 version_type=darwin
10124 need_lib_prefix=no
10125 need_version=no
10126 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10127 soname_spec='${libname}${release}${major}$shared_ext'
10128 shlibpath_overrides_runpath=yes
10129 shlibpath_var=DYLD_LIBRARY_PATH
10130 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10131
10132 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10133 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10134 ;;
10135
10136 dgux*)
10137 version_type=linux
10138 need_lib_prefix=no
10139 need_version=no
10140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10141 soname_spec='${libname}${release}${shared_ext}$major'
10142 shlibpath_var=LD_LIBRARY_PATH
10143 ;;
10144
10145 freebsd1*)
10146 dynamic_linker=no
10147 ;;
10148
10149 freebsd* | dragonfly*)
10150 # DragonFly does not have aout. When/if they implement a new
10151 # versioning mechanism, adjust this.
10152 if test -x /usr/bin/objformat; then
10153 objformat=`/usr/bin/objformat`
10154 else
10155 case $host_os in
10156 freebsd[123]*) objformat=aout ;;
10157 *) objformat=elf ;;
10158 esac
10159 fi
10160 version_type=freebsd-$objformat
10161 case $version_type in
10162 freebsd-elf*)
10163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10164 need_version=no
10165 need_lib_prefix=no
10166 ;;
10167 freebsd-*)
10168 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10169 need_version=yes
10170 ;;
10171 esac
10172 shlibpath_var=LD_LIBRARY_PATH
10173 case $host_os in
10174 freebsd2*)
10175 shlibpath_overrides_runpath=yes
10176 ;;
10177 freebsd3.[01]* | freebsdelf3.[01]*)
10178 shlibpath_overrides_runpath=yes
10179 hardcode_into_libs=yes
10180 ;;
10181 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10182 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10183 shlibpath_overrides_runpath=no
10184 hardcode_into_libs=yes
10185 ;;
10186 *) # from 4.6 on, and DragonFly
10187 shlibpath_overrides_runpath=yes
10188 hardcode_into_libs=yes
10189 ;;
10190 esac
10191 ;;
10192
10193 gnu*)
10194 version_type=linux
10195 need_lib_prefix=no
10196 need_version=no
10197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10198 soname_spec='${libname}${release}${shared_ext}$major'
10199 shlibpath_var=LD_LIBRARY_PATH
10200 hardcode_into_libs=yes
10201 ;;
10202
10203 haiku*)
10204 version_type=linux
10205 need_lib_prefix=no
10206 need_version=no
10207 dynamic_linker="$host_os runtime_loader"
10208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10209 soname_spec='${libname}${release}${shared_ext}$major'
10210 shlibpath_var=LIBRARY_PATH
10211 shlibpath_overrides_runpath=yes
10212 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10213 hardcode_into_libs=yes
10214 ;;
10215
10216 hpux9* | hpux10* | hpux11*)
10217 # Give a soname corresponding to the major version so that dld.sl refuses to
10218 # link against other versions.
10219 version_type=sunos
10220 need_lib_prefix=no
10221 need_version=no
10222 case $host_cpu in
10223 ia64*)
10224 shrext_cmds='.so'
10225 hardcode_into_libs=yes
10226 dynamic_linker="$host_os dld.so"
10227 shlibpath_var=LD_LIBRARY_PATH
10228 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10230 soname_spec='${libname}${release}${shared_ext}$major'
10231 if test "X$HPUX_IA64_MODE" = X32; then
10232 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10233 else
10234 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10235 fi
10236 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10237 ;;
10238 hppa*64*)
10239 shrext_cmds='.sl'
10240 hardcode_into_libs=yes
10241 dynamic_linker="$host_os dld.sl"
10242 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10243 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10245 soname_spec='${libname}${release}${shared_ext}$major'
10246 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10247 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10248 ;;
10249 *)
10250 shrext_cmds='.sl'
10251 dynamic_linker="$host_os dld.sl"
10252 shlibpath_var=SHLIB_PATH
10253 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10255 soname_spec='${libname}${release}${shared_ext}$major'
10256 ;;
10257 esac
10258 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10259 postinstall_cmds='chmod 555 $lib'
10260 # or fails outright, so override atomically:
10261 install_override_mode=555
10262 ;;
10263
10264 interix[3-9]*)
10265 version_type=linux
10266 need_lib_prefix=no
10267 need_version=no
10268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10269 soname_spec='${libname}${release}${shared_ext}$major'
10270 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10271 shlibpath_var=LD_LIBRARY_PATH
10272 shlibpath_overrides_runpath=no
10273 hardcode_into_libs=yes
10274 ;;
10275
10276 irix5* | irix6* | nonstopux*)
10277 case $host_os in
10278 nonstopux*) version_type=nonstopux ;;
10279 *)
10280 if test "$lt_cv_prog_gnu_ld" = yes; then
10281 version_type=linux
10282 else
10283 version_type=irix
10284 fi ;;
10285 esac
10286 need_lib_prefix=no
10287 need_version=no
10288 soname_spec='${libname}${release}${shared_ext}$major'
10289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10290 case $host_os in
10291 irix5* | nonstopux*)
10292 libsuff= shlibsuff=
10293 ;;
10294 *)
10295 case $LD in # libtool.m4 will add one of these switches to LD
10296 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10297 libsuff= shlibsuff= libmagic=32-bit;;
10298 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10299 libsuff=32 shlibsuff=N32 libmagic=N32;;
10300 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10301 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10302 *) libsuff= shlibsuff= libmagic=never-match;;
10303 esac
10304 ;;
10305 esac
10306 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10307 shlibpath_overrides_runpath=no
10308 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10309 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10310 hardcode_into_libs=yes
10311 ;;
10312
10313 # No shared lib support for Linux oldld, aout, or coff.
10314 linux*oldld* | linux*aout* | linux*coff*)
10315 dynamic_linker=no
10316 ;;
10317
10318 # This must be Linux ELF.
10319 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10320 version_type=linux
10321 need_lib_prefix=no
10322 need_version=no
10323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10324 soname_spec='${libname}${release}${shared_ext}$major'
10325 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10326 shlibpath_var=LD_LIBRARY_PATH
10327 shlibpath_overrides_runpath=no
10328
10329 # Some binutils ld are patched to set DT_RUNPATH
10330 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10331 $as_echo_n "(cached) " >&6
10332 else
10333 lt_cv_shlibpath_overrides_runpath=no
10334 save_LDFLAGS=$LDFLAGS
10335 save_libdir=$libdir
10336 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10337 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10339 /* end confdefs.h. */
10340
10341 int
10342 main ()
10343 {
10344
10345 ;
10346 return 0;
10347 }
10348 _ACEOF
10349 if ac_fn_c_try_link "$LINENO"; then :
10350 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10351 lt_cv_shlibpath_overrides_runpath=yes
10352 fi
10353 fi
10354 rm -f core conftest.err conftest.$ac_objext \
10355 conftest$ac_exeext conftest.$ac_ext
10356 LDFLAGS=$save_LDFLAGS
10357 libdir=$save_libdir
10358
10359 fi
10360
10361 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10362
10363 # This implies no fast_install, which is unacceptable.
10364 # Some rework will be needed to allow for fast_install
10365 # before this can be enabled.
10366 hardcode_into_libs=yes
10367
10368 # Append ld.so.conf contents to the search path
10369 if test -f /etc/ld.so.conf; then
10370 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10371 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10372 fi
10373
10374 # We used to test for /lib/ld.so.1 and disable shared libraries on
10375 # powerpc, because MkLinux only supported shared libraries with the
10376 # GNU dynamic linker. Since this was broken with cross compilers,
10377 # most powerpc-linux boxes support dynamic linking these days and
10378 # people can always --disable-shared, the test was removed, and we
10379 # assume the GNU/Linux dynamic linker is in use.
10380 dynamic_linker='GNU/Linux ld.so'
10381 ;;
10382
10383 netbsd*)
10384 version_type=sunos
10385 need_lib_prefix=no
10386 need_version=no
10387 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10389 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10390 dynamic_linker='NetBSD (a.out) ld.so'
10391 else
10392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10393 soname_spec='${libname}${release}${shared_ext}$major'
10394 dynamic_linker='NetBSD ld.elf_so'
10395 fi
10396 shlibpath_var=LD_LIBRARY_PATH
10397 shlibpath_overrides_runpath=yes
10398 hardcode_into_libs=yes
10399 ;;
10400
10401 newsos6)
10402 version_type=linux
10403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10404 shlibpath_var=LD_LIBRARY_PATH
10405 shlibpath_overrides_runpath=yes
10406 ;;
10407
10408 *nto* | *qnx*)
10409 version_type=qnx
10410 need_lib_prefix=no
10411 need_version=no
10412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10413 soname_spec='${libname}${release}${shared_ext}$major'
10414 shlibpath_var=LD_LIBRARY_PATH
10415 shlibpath_overrides_runpath=no
10416 hardcode_into_libs=yes
10417 dynamic_linker='ldqnx.so'
10418 ;;
10419
10420 openbsd*)
10421 version_type=sunos
10422 sys_lib_dlsearch_path_spec="/usr/lib"
10423 need_lib_prefix=no
10424 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10425 case $host_os in
10426 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10427 *) need_version=no ;;
10428 esac
10429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10430 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10431 shlibpath_var=LD_LIBRARY_PATH
10432 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10433 case $host_os in
10434 openbsd2.[89] | openbsd2.[89].*)
10435 shlibpath_overrides_runpath=no
10436 ;;
10437 *)
10438 shlibpath_overrides_runpath=yes
10439 ;;
10440 esac
10441 else
10442 shlibpath_overrides_runpath=yes
10443 fi
10444 ;;
10445
10446 os2*)
10447 libname_spec='$name'
10448 shrext_cmds=".dll"
10449 need_lib_prefix=no
10450 library_names_spec='$libname${shared_ext} $libname.a'
10451 dynamic_linker='OS/2 ld.exe'
10452 shlibpath_var=LIBPATH
10453 ;;
10454
10455 osf3* | osf4* | osf5*)
10456 version_type=osf
10457 need_lib_prefix=no
10458 need_version=no
10459 soname_spec='${libname}${release}${shared_ext}$major'
10460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10461 shlibpath_var=LD_LIBRARY_PATH
10462 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10463 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10464 ;;
10465
10466 rdos*)
10467 dynamic_linker=no
10468 ;;
10469
10470 solaris*)
10471 version_type=linux
10472 need_lib_prefix=no
10473 need_version=no
10474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10475 soname_spec='${libname}${release}${shared_ext}$major'
10476 shlibpath_var=LD_LIBRARY_PATH
10477 shlibpath_overrides_runpath=yes
10478 hardcode_into_libs=yes
10479 # ldd complains unless libraries are executable
10480 postinstall_cmds='chmod +x $lib'
10481 ;;
10482
10483 sunos4*)
10484 version_type=sunos
10485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10486 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10487 shlibpath_var=LD_LIBRARY_PATH
10488 shlibpath_overrides_runpath=yes
10489 if test "$with_gnu_ld" = yes; then
10490 need_lib_prefix=no
10491 fi
10492 need_version=yes
10493 ;;
10494
10495 sysv4 | sysv4.3*)
10496 version_type=linux
10497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10498 soname_spec='${libname}${release}${shared_ext}$major'
10499 shlibpath_var=LD_LIBRARY_PATH
10500 case $host_vendor in
10501 sni)
10502 shlibpath_overrides_runpath=no
10503 need_lib_prefix=no
10504 runpath_var=LD_RUN_PATH
10505 ;;
10506 siemens)
10507 need_lib_prefix=no
10508 ;;
10509 motorola)
10510 need_lib_prefix=no
10511 need_version=no
10512 shlibpath_overrides_runpath=no
10513 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10514 ;;
10515 esac
10516 ;;
10517
10518 sysv4*MP*)
10519 if test -d /usr/nec ;then
10520 version_type=linux
10521 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10522 soname_spec='$libname${shared_ext}.$major'
10523 shlibpath_var=LD_LIBRARY_PATH
10524 fi
10525 ;;
10526
10527 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10528 version_type=freebsd-elf
10529 need_lib_prefix=no
10530 need_version=no
10531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10532 soname_spec='${libname}${release}${shared_ext}$major'
10533 shlibpath_var=LD_LIBRARY_PATH
10534 shlibpath_overrides_runpath=yes
10535 hardcode_into_libs=yes
10536 if test "$with_gnu_ld" = yes; then
10537 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10538 else
10539 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10540 case $host_os in
10541 sco3.2v5*)
10542 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10543 ;;
10544 esac
10545 fi
10546 sys_lib_dlsearch_path_spec='/usr/lib'
10547 ;;
10548
10549 tpf*)
10550 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10551 version_type=linux
10552 need_lib_prefix=no
10553 need_version=no
10554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10555 shlibpath_var=LD_LIBRARY_PATH
10556 shlibpath_overrides_runpath=no
10557 hardcode_into_libs=yes
10558 ;;
10559
10560 uts4*)
10561 version_type=linux
10562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10563 soname_spec='${libname}${release}${shared_ext}$major'
10564 shlibpath_var=LD_LIBRARY_PATH
10565 ;;
10566
10567 *)
10568 dynamic_linker=no
10569 ;;
10570 esac
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10572 $as_echo "$dynamic_linker" >&6; }
10573 test "$dynamic_linker" = no && can_build_shared=no
10574
10575 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10576 if test "$GCC" = yes; then
10577 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10578 fi
10579
10580 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10581 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10582 fi
10583 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10584 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10585 fi
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10679 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10680 hardcode_action=
10681 if test -n "$hardcode_libdir_flag_spec" ||
10682 test -n "$runpath_var" ||
10683 test "X$hardcode_automatic" = "Xyes" ; then
10684
10685 # We can hardcode non-existent directories.
10686 if test "$hardcode_direct" != no &&
10687 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10688 # have to relink, otherwise we might link with an installed library
10689 # when we should be linking with a yet-to-be-installed one
10690 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10691 test "$hardcode_minus_L" != no; then
10692 # Linking always hardcodes the temporary library directory.
10693 hardcode_action=relink
10694 else
10695 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10696 hardcode_action=immediate
10697 fi
10698 else
10699 # We cannot hardcode anything, or else we can only hardcode existing
10700 # directories.
10701 hardcode_action=unsupported
10702 fi
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10704 $as_echo "$hardcode_action" >&6; }
10705
10706 if test "$hardcode_action" = relink ||
10707 test "$inherit_rpath" = yes; then
10708 # Fast installation is not supported
10709 enable_fast_install=no
10710 elif test "$shlibpath_overrides_runpath" = yes ||
10711 test "$enable_shared" = no; then
10712 # Fast installation is not necessary
10713 enable_fast_install=needless
10714 fi
10715
10716
10717
10718
10719
10720
10721 if test "x$enable_dlopen" != xyes; then
10722 enable_dlopen=unknown
10723 enable_dlopen_self=unknown
10724 enable_dlopen_self_static=unknown
10725 else
10726 lt_cv_dlopen=no
10727 lt_cv_dlopen_libs=
10728
10729 case $host_os in
10730 beos*)
10731 lt_cv_dlopen="load_add_on"
10732 lt_cv_dlopen_libs=
10733 lt_cv_dlopen_self=yes
10734 ;;
10735
10736 mingw* | pw32* | cegcc*)
10737 lt_cv_dlopen="LoadLibrary"
10738 lt_cv_dlopen_libs=
10739 ;;
10740
10741 cygwin*)
10742 lt_cv_dlopen="dlopen"
10743 lt_cv_dlopen_libs=
10744 ;;
10745
10746 darwin*)
10747 # if libdl is installed we need to link against it
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10749 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10750 if ${ac_cv_lib_dl_dlopen+:} false; then :
10751 $as_echo_n "(cached) " >&6
10752 else
10753 ac_check_lib_save_LIBS=$LIBS
10754 LIBS="-ldl $LIBS"
10755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10756 /* end confdefs.h. */
10757
10758 /* Override any GCC internal prototype to avoid an error.
10759 Use char because int might match the return type of a GCC
10760 builtin and then its argument prototype would still apply. */
10761 #ifdef __cplusplus
10762 extern "C"
10763 #endif
10764 char dlopen ();
10765 int
10766 main ()
10767 {
10768 return dlopen ();
10769 ;
10770 return 0;
10771 }
10772 _ACEOF
10773 if ac_fn_c_try_link "$LINENO"; then :
10774 ac_cv_lib_dl_dlopen=yes
10775 else
10776 ac_cv_lib_dl_dlopen=no
10777 fi
10778 rm -f core conftest.err conftest.$ac_objext \
10779 conftest$ac_exeext conftest.$ac_ext
10780 LIBS=$ac_check_lib_save_LIBS
10781 fi
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10783 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10784 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10785 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10786 else
10787
10788 lt_cv_dlopen="dyld"
10789 lt_cv_dlopen_libs=
10790 lt_cv_dlopen_self=yes
10791
10792 fi
10793
10794 ;;
10795
10796 *)
10797 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10798 if test "x$ac_cv_func_shl_load" = xyes; then :
10799 lt_cv_dlopen="shl_load"
10800 else
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10802 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10803 if ${ac_cv_lib_dld_shl_load+:} false; then :
10804 $as_echo_n "(cached) " >&6
10805 else
10806 ac_check_lib_save_LIBS=$LIBS
10807 LIBS="-ldld $LIBS"
10808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10809 /* end confdefs.h. */
10810
10811 /* Override any GCC internal prototype to avoid an error.
10812 Use char because int might match the return type of a GCC
10813 builtin and then its argument prototype would still apply. */
10814 #ifdef __cplusplus
10815 extern "C"
10816 #endif
10817 char shl_load ();
10818 int
10819 main ()
10820 {
10821 return shl_load ();
10822 ;
10823 return 0;
10824 }
10825 _ACEOF
10826 if ac_fn_c_try_link "$LINENO"; then :
10827 ac_cv_lib_dld_shl_load=yes
10828 else
10829 ac_cv_lib_dld_shl_load=no
10830 fi
10831 rm -f core conftest.err conftest.$ac_objext \
10832 conftest$ac_exeext conftest.$ac_ext
10833 LIBS=$ac_check_lib_save_LIBS
10834 fi
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10836 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10837 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10838 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10839 else
10840 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10841 if test "x$ac_cv_func_dlopen" = xyes; then :
10842 lt_cv_dlopen="dlopen"
10843 else
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10845 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10846 if ${ac_cv_lib_dl_dlopen+:} false; then :
10847 $as_echo_n "(cached) " >&6
10848 else
10849 ac_check_lib_save_LIBS=$LIBS
10850 LIBS="-ldl $LIBS"
10851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10852 /* end confdefs.h. */
10853
10854 /* Override any GCC internal prototype to avoid an error.
10855 Use char because int might match the return type of a GCC
10856 builtin and then its argument prototype would still apply. */
10857 #ifdef __cplusplus
10858 extern "C"
10859 #endif
10860 char dlopen ();
10861 int
10862 main ()
10863 {
10864 return dlopen ();
10865 ;
10866 return 0;
10867 }
10868 _ACEOF
10869 if ac_fn_c_try_link "$LINENO"; then :
10870 ac_cv_lib_dl_dlopen=yes
10871 else
10872 ac_cv_lib_dl_dlopen=no
10873 fi
10874 rm -f core conftest.err conftest.$ac_objext \
10875 conftest$ac_exeext conftest.$ac_ext
10876 LIBS=$ac_check_lib_save_LIBS
10877 fi
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10879 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10880 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10881 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10882 else
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10884 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10885 if ${ac_cv_lib_svld_dlopen+:} false; then :
10886 $as_echo_n "(cached) " >&6
10887 else
10888 ac_check_lib_save_LIBS=$LIBS
10889 LIBS="-lsvld $LIBS"
10890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10891 /* end confdefs.h. */
10892
10893 /* Override any GCC internal prototype to avoid an error.
10894 Use char because int might match the return type of a GCC
10895 builtin and then its argument prototype would still apply. */
10896 #ifdef __cplusplus
10897 extern "C"
10898 #endif
10899 char dlopen ();
10900 int
10901 main ()
10902 {
10903 return dlopen ();
10904 ;
10905 return 0;
10906 }
10907 _ACEOF
10908 if ac_fn_c_try_link "$LINENO"; then :
10909 ac_cv_lib_svld_dlopen=yes
10910 else
10911 ac_cv_lib_svld_dlopen=no
10912 fi
10913 rm -f core conftest.err conftest.$ac_objext \
10914 conftest$ac_exeext conftest.$ac_ext
10915 LIBS=$ac_check_lib_save_LIBS
10916 fi
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10918 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10919 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10920 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10921 else
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10923 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10924 if ${ac_cv_lib_dld_dld_link+:} false; then :
10925 $as_echo_n "(cached) " >&6
10926 else
10927 ac_check_lib_save_LIBS=$LIBS
10928 LIBS="-ldld $LIBS"
10929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10930 /* end confdefs.h. */
10931
10932 /* Override any GCC internal prototype to avoid an error.
10933 Use char because int might match the return type of a GCC
10934 builtin and then its argument prototype would still apply. */
10935 #ifdef __cplusplus
10936 extern "C"
10937 #endif
10938 char dld_link ();
10939 int
10940 main ()
10941 {
10942 return dld_link ();
10943 ;
10944 return 0;
10945 }
10946 _ACEOF
10947 if ac_fn_c_try_link "$LINENO"; then :
10948 ac_cv_lib_dld_dld_link=yes
10949 else
10950 ac_cv_lib_dld_dld_link=no
10951 fi
10952 rm -f core conftest.err conftest.$ac_objext \
10953 conftest$ac_exeext conftest.$ac_ext
10954 LIBS=$ac_check_lib_save_LIBS
10955 fi
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10957 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10958 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10959 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10960 fi
10961
10962
10963 fi
10964
10965
10966 fi
10967
10968
10969 fi
10970
10971
10972 fi
10973
10974
10975 fi
10976
10977 ;;
10978 esac
10979
10980 if test "x$lt_cv_dlopen" != xno; then
10981 enable_dlopen=yes
10982 else
10983 enable_dlopen=no
10984 fi
10985
10986 case $lt_cv_dlopen in
10987 dlopen)
10988 save_CPPFLAGS="$CPPFLAGS"
10989 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10990
10991 save_LDFLAGS="$LDFLAGS"
10992 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10993
10994 save_LIBS="$LIBS"
10995 LIBS="$lt_cv_dlopen_libs $LIBS"
10996
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10998 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10999 if ${lt_cv_dlopen_self+:} false; then :
11000 $as_echo_n "(cached) " >&6
11001 else
11002 if test "$cross_compiling" = yes; then :
11003 lt_cv_dlopen_self=cross
11004 else
11005 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11006 lt_status=$lt_dlunknown
11007 cat > conftest.$ac_ext <<_LT_EOF
11008 #line $LINENO "configure"
11009 #include "confdefs.h"
11010
11011 #if HAVE_DLFCN_H
11012 #include <dlfcn.h>
11013 #endif
11014
11015 #include <stdio.h>
11016
11017 #ifdef RTLD_GLOBAL
11018 # define LT_DLGLOBAL RTLD_GLOBAL
11019 #else
11020 # ifdef DL_GLOBAL
11021 # define LT_DLGLOBAL DL_GLOBAL
11022 # else
11023 # define LT_DLGLOBAL 0
11024 # endif
11025 #endif
11026
11027 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11028 find out it does not work in some platform. */
11029 #ifndef LT_DLLAZY_OR_NOW
11030 # ifdef RTLD_LAZY
11031 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11032 # else
11033 # ifdef DL_LAZY
11034 # define LT_DLLAZY_OR_NOW DL_LAZY
11035 # else
11036 # ifdef RTLD_NOW
11037 # define LT_DLLAZY_OR_NOW RTLD_NOW
11038 # else
11039 # ifdef DL_NOW
11040 # define LT_DLLAZY_OR_NOW DL_NOW
11041 # else
11042 # define LT_DLLAZY_OR_NOW 0
11043 # endif
11044 # endif
11045 # endif
11046 # endif
11047 #endif
11048
11049 /* When -fvisbility=hidden is used, assume the code has been annotated
11050 correspondingly for the symbols needed. */
11051 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11052 int fnord () __attribute__((visibility("default")));
11053 #endif
11054
11055 int fnord () { return 42; }
11056 int main ()
11057 {
11058 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11059 int status = $lt_dlunknown;
11060
11061 if (self)
11062 {
11063 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11064 else
11065 {
11066 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11067 else puts (dlerror ());
11068 }
11069 /* dlclose (self); */
11070 }
11071 else
11072 puts (dlerror ());
11073
11074 return status;
11075 }
11076 _LT_EOF
11077 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11078 (eval $ac_link) 2>&5
11079 ac_status=$?
11080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11081 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11082 (./conftest; exit; ) >&5 2>/dev/null
11083 lt_status=$?
11084 case x$lt_status in
11085 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11086 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11087 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11088 esac
11089 else :
11090 # compilation failed
11091 lt_cv_dlopen_self=no
11092 fi
11093 fi
11094 rm -fr conftest*
11095
11096
11097 fi
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11099 $as_echo "$lt_cv_dlopen_self" >&6; }
11100
11101 if test "x$lt_cv_dlopen_self" = xyes; then
11102 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11104 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11105 if ${lt_cv_dlopen_self_static+:} false; then :
11106 $as_echo_n "(cached) " >&6
11107 else
11108 if test "$cross_compiling" = yes; then :
11109 lt_cv_dlopen_self_static=cross
11110 else
11111 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11112 lt_status=$lt_dlunknown
11113 cat > conftest.$ac_ext <<_LT_EOF
11114 #line $LINENO "configure"
11115 #include "confdefs.h"
11116
11117 #if HAVE_DLFCN_H
11118 #include <dlfcn.h>
11119 #endif
11120
11121 #include <stdio.h>
11122
11123 #ifdef RTLD_GLOBAL
11124 # define LT_DLGLOBAL RTLD_GLOBAL
11125 #else
11126 # ifdef DL_GLOBAL
11127 # define LT_DLGLOBAL DL_GLOBAL
11128 # else
11129 # define LT_DLGLOBAL 0
11130 # endif
11131 #endif
11132
11133 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11134 find out it does not work in some platform. */
11135 #ifndef LT_DLLAZY_OR_NOW
11136 # ifdef RTLD_LAZY
11137 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11138 # else
11139 # ifdef DL_LAZY
11140 # define LT_DLLAZY_OR_NOW DL_LAZY
11141 # else
11142 # ifdef RTLD_NOW
11143 # define LT_DLLAZY_OR_NOW RTLD_NOW
11144 # else
11145 # ifdef DL_NOW
11146 # define LT_DLLAZY_OR_NOW DL_NOW
11147 # else
11148 # define LT_DLLAZY_OR_NOW 0
11149 # endif
11150 # endif
11151 # endif
11152 # endif
11153 #endif
11154
11155 /* When -fvisbility=hidden is used, assume the code has been annotated
11156 correspondingly for the symbols needed. */
11157 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11158 int fnord () __attribute__((visibility("default")));
11159 #endif
11160
11161 int fnord () { return 42; }
11162 int main ()
11163 {
11164 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11165 int status = $lt_dlunknown;
11166
11167 if (self)
11168 {
11169 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11170 else
11171 {
11172 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11173 else puts (dlerror ());
11174 }
11175 /* dlclose (self); */
11176 }
11177 else
11178 puts (dlerror ());
11179
11180 return status;
11181 }
11182 _LT_EOF
11183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11184 (eval $ac_link) 2>&5
11185 ac_status=$?
11186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11187 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11188 (./conftest; exit; ) >&5 2>/dev/null
11189 lt_status=$?
11190 case x$lt_status in
11191 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11192 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11193 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11194 esac
11195 else :
11196 # compilation failed
11197 lt_cv_dlopen_self_static=no
11198 fi
11199 fi
11200 rm -fr conftest*
11201
11202
11203 fi
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11205 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11206 fi
11207
11208 CPPFLAGS="$save_CPPFLAGS"
11209 LDFLAGS="$save_LDFLAGS"
11210 LIBS="$save_LIBS"
11211 ;;
11212 esac
11213
11214 case $lt_cv_dlopen_self in
11215 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11216 *) enable_dlopen_self=unknown ;;
11217 esac
11218
11219 case $lt_cv_dlopen_self_static in
11220 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11221 *) enable_dlopen_self_static=unknown ;;
11222 esac
11223 fi
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241 striplib=
11242 old_striplib=
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11244 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11245 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11246 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11247 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11249 $as_echo "yes" >&6; }
11250 else
11251 # FIXME - insert some real tests, host_os isn't really good enough
11252 case $host_os in
11253 darwin*)
11254 if test -n "$STRIP" ; then
11255 striplib="$STRIP -x"
11256 old_striplib="$STRIP -S"
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11258 $as_echo "yes" >&6; }
11259 else
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11261 $as_echo "no" >&6; }
11262 fi
11263 ;;
11264 *)
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11266 $as_echo "no" >&6; }
11267 ;;
11268 esac
11269 fi
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282 # Report which library types will actually be built
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11284 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11286 $as_echo "$can_build_shared" >&6; }
11287
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11289 $as_echo_n "checking whether to build shared libraries... " >&6; }
11290 test "$can_build_shared" = "no" && enable_shared=no
11291
11292 # On AIX, shared libraries and static libraries use the same namespace, and
11293 # are all built from PIC.
11294 case $host_os in
11295 aix3*)
11296 test "$enable_shared" = yes && enable_static=no
11297 if test -n "$RANLIB"; then
11298 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11299 postinstall_cmds='$RANLIB $lib'
11300 fi
11301 ;;
11302
11303 aix[4-9]*)
11304 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11305 test "$enable_shared" = yes && enable_static=no
11306 fi
11307 ;;
11308 esac
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11310 $as_echo "$enable_shared" >&6; }
11311
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11313 $as_echo_n "checking whether to build static libraries... " >&6; }
11314 # Make sure either enable_shared or enable_static is yes.
11315 test "$enable_shared" = yes || enable_static=yes
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11317 $as_echo "$enable_static" >&6; }
11318
11319
11320
11321
11322 fi
11323 ac_ext=c
11324 ac_cpp='$CPP $CPPFLAGS'
11325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11328
11329 CC="$lt_save_CC"
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343 ac_config_commands="$ac_config_commands libtool"
11344
11345
11346
11347
11348 # Only expand once:
11349
11350
11351
11352 INCLUDES='-I$(top_srcdir)/gw -I$(top_builddir)/gw'
11353
11354
11355 ac_header_dirent=no
11356 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11357 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
11359 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
11360 if eval \${$as_ac_Header+:} false; then :
11361 $as_echo_n "(cached) " >&6
11362 else
11363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11364 /* end confdefs.h. */
11365 #include <sys/types.h>
11366 #include <$ac_hdr>
11367
11368 int
11369 main ()
11370 {
11371 if ((DIR *) 0)
11372 return 0;
11373 ;
11374 return 0;
11375 }
11376 _ACEOF
11377 if ac_fn_c_try_compile "$LINENO"; then :
11378 eval "$as_ac_Header=yes"
11379 else
11380 eval "$as_ac_Header=no"
11381 fi
11382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11383 fi
11384 eval ac_res=\$$as_ac_Header
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11386 $as_echo "$ac_res" >&6; }
11387 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11388 cat >>confdefs.h <<_ACEOF
11389 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11390 _ACEOF
11391
11392 ac_header_dirent=$ac_hdr; break
11393 fi
11394
11395 done
11396 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11397 if test $ac_header_dirent = dirent.h; then
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11399 $as_echo_n "checking for library containing opendir... " >&6; }
11400 if ${ac_cv_search_opendir+:} false; then :
11401 $as_echo_n "(cached) " >&6
11402 else
11403 ac_func_search_save_LIBS=$LIBS
11404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11405 /* end confdefs.h. */
11406
11407 /* Override any GCC internal prototype to avoid an error.
11408 Use char because int might match the return type of a GCC
11409 builtin and then its argument prototype would still apply. */
11410 #ifdef __cplusplus
11411 extern "C"
11412 #endif
11413 char opendir ();
11414 int
11415 main ()
11416 {
11417 return opendir ();
11418 ;
11419 return 0;
11420 }
11421 _ACEOF
11422 for ac_lib in '' dir; do
11423 if test -z "$ac_lib"; then
11424 ac_res="none required"
11425 else
11426 ac_res=-l$ac_lib
11427 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11428 fi
11429 if ac_fn_c_try_link "$LINENO"; then :
11430 ac_cv_search_opendir=$ac_res
11431 fi
11432 rm -f core conftest.err conftest.$ac_objext \
11433 conftest$ac_exeext
11434 if ${ac_cv_search_opendir+:} false; then :
11435 break
11436 fi
11437 done
11438 if ${ac_cv_search_opendir+:} false; then :
11439
11440 else
11441 ac_cv_search_opendir=no
11442 fi
11443 rm conftest.$ac_ext
11444 LIBS=$ac_func_search_save_LIBS
11445 fi
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11447 $as_echo "$ac_cv_search_opendir" >&6; }
11448 ac_res=$ac_cv_search_opendir
11449 if test "$ac_res" != no; then :
11450 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11451
11452 fi
11453
11454 else
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11456 $as_echo_n "checking for library containing opendir... " >&6; }
11457 if ${ac_cv_search_opendir+:} false; then :
11458 $as_echo_n "(cached) " >&6
11459 else
11460 ac_func_search_save_LIBS=$LIBS
11461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11462 /* end confdefs.h. */
11463
11464 /* Override any GCC internal prototype to avoid an error.
11465 Use char because int might match the return type of a GCC
11466 builtin and then its argument prototype would still apply. */
11467 #ifdef __cplusplus
11468 extern "C"
11469 #endif
11470 char opendir ();
11471 int
11472 main ()
11473 {
11474 return opendir ();
11475 ;
11476 return 0;
11477 }
11478 _ACEOF
11479 for ac_lib in '' x; do
11480 if test -z "$ac_lib"; then
11481 ac_res="none required"
11482 else
11483 ac_res=-l$ac_lib
11484 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11485 fi
11486 if ac_fn_c_try_link "$LINENO"; then :
11487 ac_cv_search_opendir=$ac_res
11488 fi
11489 rm -f core conftest.err conftest.$ac_objext \
11490 conftest$ac_exeext
11491 if ${ac_cv_search_opendir+:} false; then :
11492 break
11493 fi
11494 done
11495 if ${ac_cv_search_opendir+:} false; then :
11496
11497 else
11498 ac_cv_search_opendir=no
11499 fi
11500 rm conftest.$ac_ext
11501 LIBS=$ac_func_search_save_LIBS
11502 fi
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11504 $as_echo "$ac_cv_search_opendir" >&6; }
11505 ac_res=$ac_cv_search_opendir
11506 if test "$ac_res" != no; then :
11507 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11508
11509 fi
11510
11511 fi
11512
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11514 $as_echo_n "checking for ANSI C header files... " >&6; }
11515 if ${ac_cv_header_stdc+:} false; then :
11516 $as_echo_n "(cached) " >&6
11517 else
11518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11519 /* end confdefs.h. */
11520 #include <stdlib.h>
11521 #include <stdarg.h>
11522 #include <string.h>
11523 #include <float.h>
11524
11525 int
11526 main ()
11527 {
11528
11529 ;
11530 return 0;
11531 }
11532 _ACEOF
11533 if ac_fn_c_try_compile "$LINENO"; then :
11534 ac_cv_header_stdc=yes
11535 else
11536 ac_cv_header_stdc=no
11537 fi
11538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11539
11540 if test $ac_cv_header_stdc = yes; then
11541 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11543 /* end confdefs.h. */
11544 #include <string.h>
11545
11546 _ACEOF
11547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11548 $EGREP "memchr" >/dev/null 2>&1; then :
11549
11550 else
11551 ac_cv_header_stdc=no
11552 fi
11553 rm -f conftest*
11554
11555 fi
11556
11557 if test $ac_cv_header_stdc = yes; then
11558 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11560 /* end confdefs.h. */
11561 #include <stdlib.h>
11562
11563 _ACEOF
11564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11565 $EGREP "free" >/dev/null 2>&1; then :
11566
11567 else
11568 ac_cv_header_stdc=no
11569 fi
11570 rm -f conftest*
11571
11572 fi
11573
11574 if test $ac_cv_header_stdc = yes; then
11575 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11576 if test "$cross_compiling" = yes; then :
11577 :
11578 else
11579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11580 /* end confdefs.h. */
11581 #include <ctype.h>
11582 #include <stdlib.h>
11583 #if ((' ' & 0x0FF) == 0x020)
11584 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11585 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11586 #else
11587 # define ISLOWER(c) \
11588 (('a' <= (c) && (c) <= 'i') \
11589 || ('j' <= (c) && (c) <= 'r') \
11590 || ('s' <= (c) && (c) <= 'z'))
11591 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11592 #endif
11593
11594 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11595 int
11596 main ()
11597 {
11598 int i;
11599 for (i = 0; i < 256; i++)
11600 if (XOR (islower (i), ISLOWER (i))
11601 || toupper (i) != TOUPPER (i))
11602 return 2;
11603 return 0;
11604 }
11605 _ACEOF
11606 if ac_fn_c_try_run "$LINENO"; then :
11607
11608 else
11609 ac_cv_header_stdc=no
11610 fi
11611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11612 conftest.$ac_objext conftest.beam conftest.$ac_ext
11613 fi
11614
11615 fi
11616 fi
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11618 $as_echo "$ac_cv_header_stdc" >&6; }
11619 if test $ac_cv_header_stdc = yes; then
11620
11621 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11622
11623 fi
11624
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
11626 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
11627 if ${ac_cv_header_sys_wait_h+:} false; then :
11628 $as_echo_n "(cached) " >&6
11629 else
11630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11631 /* end confdefs.h. */
11632 #include <sys/types.h>
11633 #include <sys/wait.h>
11634 #ifndef WEXITSTATUS
11635 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11636 #endif
11637 #ifndef WIFEXITED
11638 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11639 #endif
11640
11641 int
11642 main ()
11643 {
11644 int s;
11645 wait (&s);
11646 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11647 ;
11648 return 0;
11649 }
11650 _ACEOF
11651 if ac_fn_c_try_compile "$LINENO"; then :
11652 ac_cv_header_sys_wait_h=yes
11653 else
11654 ac_cv_header_sys_wait_h=no
11655 fi
11656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11657 fi
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
11659 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
11660 if test $ac_cv_header_sys_wait_h = yes; then
11661
11662 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11663
11664 fi
11665
11666
11667
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11669 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11670 if ${ac_cv_c_const+:} false; then :
11671 $as_echo_n "(cached) " >&6
11672 else
11673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11674 /* end confdefs.h. */
11675
11676 int
11677 main ()
11678 {
11679
11680 #ifndef __cplusplus
11681 /* Ultrix mips cc rejects this sort of thing. */
11682 typedef int charset[2];
11683 const charset cs = { 0, 0 };
11684 /* SunOS 4.1.1 cc rejects this. */
11685 char const *const *pcpcc;
11686 char **ppc;
11687 /* NEC SVR4.0.2 mips cc rejects this. */
11688 struct point {int x, y;};
11689 static struct point const zero = {0,0};
11690 /* AIX XL C 1.02.0.0 rejects this.
11691 It does not let you subtract one const X* pointer from another in
11692 an arm of an if-expression whose if-part is not a constant
11693 expression */
11694 const char *g = "string";
11695 pcpcc = &g + (g ? g-g : 0);
11696 /* HPUX 7.0 cc rejects these. */
11697 ++pcpcc;
11698 ppc = (char**) pcpcc;
11699 pcpcc = (char const *const *) ppc;
11700 { /* SCO 3.2v4 cc rejects this sort of thing. */
11701 char tx;
11702 char *t = &tx;
11703 char const *s = 0 ? (char *) 0 : (char const *) 0;
11704
11705 *t++ = 0;
11706 if (s) return 0;
11707 }
11708 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11709 int x[] = {25, 17};
11710 const int *foo = &x[0];
11711 ++foo;
11712 }
11713 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11714 typedef const int *iptr;
11715 iptr p = 0;
11716 ++p;
11717 }
11718 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
11719 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11720 struct s { int j; const int *ap[3]; } bx;
11721 struct s *b = &bx; b->j = 5;
11722 }
11723 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11724 const int foo = 10;
11725 if (!foo) return 0;
11726 }
11727 return !cs[0] && !zero.x;
11728 #endif
11729
11730 ;
11731 return 0;
11732 }
11733 _ACEOF
11734 if ac_fn_c_try_compile "$LINENO"; then :
11735 ac_cv_c_const=yes
11736 else
11737 ac_cv_c_const=no
11738 fi
11739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11740 fi
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11742 $as_echo "$ac_cv_c_const" >&6; }
11743 if test $ac_cv_c_const = no; then
11744
11745 $as_echo "#define const /**/" >>confdefs.h
11746
11747 fi
11748
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
11750 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
11751 if ${ac_cv_struct_tm+:} false; then :
11752 $as_echo_n "(cached) " >&6
11753 else
11754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11755 /* end confdefs.h. */
11756 #include <sys/types.h>
11757 #include <time.h>
11758
11759 int
11760 main ()
11761 {
11762 struct tm tm;
11763 int *p = &tm.tm_sec;
11764 return !p;
11765 ;
11766 return 0;
11767 }
11768 _ACEOF
11769 if ac_fn_c_try_compile "$LINENO"; then :
11770 ac_cv_struct_tm=time.h
11771 else
11772 ac_cv_struct_tm=sys/time.h
11773 fi
11774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11775 fi
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
11777 $as_echo "$ac_cv_struct_tm" >&6; }
11778 if test $ac_cv_struct_tm = sys/time.h; then
11779
11780 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
11781
11782 fi
11783
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
11785 $as_echo_n "checking for working volatile... " >&6; }
11786 if ${ac_cv_c_volatile+:} false; then :
11787 $as_echo_n "(cached) " >&6
11788 else
11789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11790 /* end confdefs.h. */
11791
11792 int
11793 main ()
11794 {
11795
11796 volatile int x;
11797 int * volatile y = (int *) 0;
11798 return !x && !y;
11799 ;
11800 return 0;
11801 }
11802 _ACEOF
11803 if ac_fn_c_try_compile "$LINENO"; then :
11804 ac_cv_c_volatile=yes
11805 else
11806 ac_cv_c_volatile=no
11807 fi
11808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11809 fi
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
11811 $as_echo "$ac_cv_c_volatile" >&6; }
11812 if test $ac_cv_c_volatile = no; then
11813
11814 $as_echo "#define volatile /**/" >>confdefs.h
11815
11816 fi
11817
11818
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
11820 $as_echo_n "checking whether closedir returns void... " >&6; }
11821 if ${ac_cv_func_closedir_void+:} false; then :
11822 $as_echo_n "(cached) " >&6
11823 else
11824 if test "$cross_compiling" = yes; then :
11825 ac_cv_func_closedir_void=yes
11826 else
11827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11828 /* end confdefs.h. */
11829 $ac_includes_default
11830 #include <$ac_header_dirent>
11831 #ifndef __cplusplus
11832 int closedir ();
11833 #endif
11834
11835 int
11836 main ()
11837 {
11838 return closedir (opendir (".")) != 0;
11839 ;
11840 return 0;
11841 }
11842 _ACEOF
11843 if ac_fn_c_try_run "$LINENO"; then :
11844 ac_cv_func_closedir_void=no
11845 else
11846 ac_cv_func_closedir_void=yes
11847 fi
11848 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11849 conftest.$ac_objext conftest.beam conftest.$ac_ext
11850 fi
11851
11852 fi
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
11854 $as_echo "$ac_cv_func_closedir_void" >&6; }
11855 if test $ac_cv_func_closedir_void = yes; then
11856
11857 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
11858
11859 fi
11860
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
11862 $as_echo_n "checking for error_at_line... " >&6; }
11863 if ${ac_cv_lib_error_at_line+:} false; then :
11864 $as_echo_n "(cached) " >&6
11865 else
11866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11867 /* end confdefs.h. */
11868 #include <error.h>
11869 int
11870 main ()
11871 {
11872 error_at_line (0, 0, "", 0, "an error occurred");
11873 ;
11874 return 0;
11875 }
11876 _ACEOF
11877 if ac_fn_c_try_link "$LINENO"; then :
11878 ac_cv_lib_error_at_line=yes
11879 else
11880 ac_cv_lib_error_at_line=no
11881 fi
11882 rm -f core conftest.err conftest.$ac_objext \
11883 conftest$ac_exeext conftest.$ac_ext
11884 fi
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
11886 $as_echo "$ac_cv_lib_error_at_line" >&6; }
11887 if test $ac_cv_lib_error_at_line = no; then
11888 case " $LIBOBJS " in
11889 *" error.$ac_objext "* ) ;;
11890 *) LIBOBJS="$LIBOBJS error.$ac_objext"
11891 ;;
11892 esac
11893
11894 fi
11895
11896 for ac_header in stdlib.h
11897 do :
11898 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
11899 if test "x$ac_cv_header_stdlib_h" = xyes; then :
11900 cat >>confdefs.h <<_ACEOF
11901 #define HAVE_STDLIB_H 1
11902 _ACEOF
11903
11904 fi
11905
11906 done
11907
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
11909 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
11910 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
11911 $as_echo_n "(cached) " >&6
11912 else
11913 if test "$cross_compiling" = yes; then :
11914 ac_cv_func_malloc_0_nonnull=no
11915 else
11916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11917 /* end confdefs.h. */
11918 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
11919 # include <stdlib.h>
11920 #else
11921 char *malloc ();
11922 #endif
11923
11924 int
11925 main ()
11926 {
11927 return ! malloc (0);
11928 ;
11929 return 0;
11930 }
11931 _ACEOF
11932 if ac_fn_c_try_run "$LINENO"; then :
11933 ac_cv_func_malloc_0_nonnull=yes
11934 else
11935 ac_cv_func_malloc_0_nonnull=no
11936 fi
11937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11938 conftest.$ac_objext conftest.beam conftest.$ac_ext
11939 fi
11940
11941 fi
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
11943 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
11944 if test $ac_cv_func_malloc_0_nonnull = yes; then :
11945
11946 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
11947
11948 else
11949 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
11950
11951 case " $LIBOBJS " in
11952 *" malloc.$ac_objext "* ) ;;
11953 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
11954 ;;
11955 esac
11956
11957
11958 $as_echo "#define malloc rpl_malloc" >>confdefs.h
11959
11960 fi
11961
11962
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
11964 $as_echo_n "checking for working memcmp... " >&6; }
11965 if ${ac_cv_func_memcmp_working+:} false; then :
11966 $as_echo_n "(cached) " >&6
11967 else
11968 if test "$cross_compiling" = yes; then :
11969 ac_cv_func_memcmp_working=no
11970 else
11971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11972 /* end confdefs.h. */
11973 $ac_includes_default
11974 int
11975 main ()
11976 {
11977
11978 /* Some versions of memcmp are not 8-bit clean. */
11979 char c0 = '\100', c1 = '\200', c2 = '\201';
11980 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11981 return 1;
11982
11983 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11984 or more and with at least one buffer not starting on a 4-byte boundary.
11985 William Lewis provided this test program. */
11986 {
11987 char foo[21];
11988 char bar[21];
11989 int i;
11990 for (i = 0; i < 4; i++)
11991 {
11992 char *a = foo + i;
11993 char *b = bar + i;
11994 strcpy (a, "--------01111111");
11995 strcpy (b, "--------10000000");
11996 if (memcmp (a, b, 16) >= 0)
11997 return 1;
11998 }
11999 return 0;
12000 }
12001
12002 ;
12003 return 0;
12004 }
12005 _ACEOF
12006 if ac_fn_c_try_run "$LINENO"; then :
12007 ac_cv_func_memcmp_working=yes
12008 else
12009 ac_cv_func_memcmp_working=no
12010 fi
12011 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12012 conftest.$ac_objext conftest.beam conftest.$ac_ext
12013 fi
12014
12015 fi
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
12017 $as_echo "$ac_cv_func_memcmp_working" >&6; }
12018 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
12019 *" memcmp.$ac_objext "* ) ;;
12020 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
12021 ;;
12022 esac
12023
12024
12025
12026 EXE_EXT=""
12027 case "$host" in
12028 *-sun-solaris*)
12029 CFLAGS="$CFLAGS -DSunOS=1"
12030 ;;
12031 *-cygwin*)
12032 EXE_EXT=".exe"
12033 LDFLAGS="$LDFLAGS -Wl,--enable-auto-import"
12034 ;;
12035 *apple-darwin*)
12036 # MacOS X
12037 # Lets try to find the newest installed SDK for compilation
12038 # so we know how to link against it.
12039 # If we find a SDK, we use that rather then the standard /usr
12040 # location libs and includes.
12041 found=0
12042 SDK=""
12043 for loc in "MacOSX10.6.sdk" "MacOSX10.5.sdk" "MacOSX10.4u.sdk" "MacOSX10.4.0.sdk" "MacOSX10.3.9.sdk" \
12044 "MacOSX10.3.0.sdk" "MacOSX10.2.8.sdk" "MacOSX10.1.5.sdk"
12045 do
12046 if test "$found" = "0" ; then
12047 if test -d "/Developer/SDKs/${E}" ; then
12048 found="1"
12049 SDK="${loc}"
12050 fi
12051 fi
12052 done
12053 if test "$SDK" != "" ; then
12054 CFLAGS="$CFLAGS -DDARWIN=1 -L/Developer/SDKs/${SDK}/usr/lib -I/Developer/SDKs/${SDK}/usr/include"
12055 else
12056 CFLAGS="$CFLAGS -DDARWIN=1"
12057 fi
12058 LIBTOOL="libtool -static -o"
12059 ;;
12060 *-linux-*)
12061 CFLAGS="$CFLAGS -D_XOPEN_SOURCE=600 -D_BSD_SOURCE"
12062 LDFLAGS="$LDFLAGS -rdynamic"
12063 ;;
12064 *-*-openbsd* | *-*-freebsd*)
12065 CFLAGS="$CFLAGS -pthread"
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_exit in -lpthread" >&5
12067 $as_echo_n "checking for pthread_exit in -lpthread... " >&6; }
12068 if ${ac_cv_lib_pthread_pthread_exit+:} false; then :
12069 $as_echo_n "(cached) " >&6
12070 else
12071 ac_check_lib_save_LIBS=$LIBS
12072 LIBS="-lpthread $LIBS"
12073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12074 /* end confdefs.h. */
12075
12076 /* Override any GCC internal prototype to avoid an error.
12077 Use char because int might match the return type of a GCC
12078 builtin and then its argument prototype would still apply. */
12079 #ifdef __cplusplus
12080 extern "C"
12081 #endif
12082 char pthread_exit ();
12083 int
12084 main ()
12085 {
12086 return pthread_exit ();
12087 ;
12088 return 0;
12089 }
12090 _ACEOF
12091 if ac_fn_c_try_link "$LINENO"; then :
12092 ac_cv_lib_pthread_pthread_exit=yes
12093 else
12094 ac_cv_lib_pthread_pthread_exit=no
12095 fi
12096 rm -f core conftest.err conftest.$ac_objext \
12097 conftest$ac_exeext conftest.$ac_ext
12098 LIBS=$ac_check_lib_save_LIBS
12099 fi
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_exit" >&5
12101 $as_echo "$ac_cv_lib_pthread_pthread_exit" >&6; }
12102 if test "x$ac_cv_lib_pthread_pthread_exit" = xyes; then :
12103 LIBS="$LIBS -lpthread"; pthread="yes"
12104 else
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_exit in -lc_r" >&5
12106 $as_echo_n "checking for pthread_exit in -lc_r... " >&6; }
12107 if ${ac_cv_lib_c_r_pthread_exit+:} false; then :
12108 $as_echo_n "(cached) " >&6
12109 else
12110 ac_check_lib_save_LIBS=$LIBS
12111 LIBS="-lc_r $LIBS"
12112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12113 /* end confdefs.h. */
12114
12115 /* Override any GCC internal prototype to avoid an error.
12116 Use char because int might match the return type of a GCC
12117 builtin and then its argument prototype would still apply. */
12118 #ifdef __cplusplus
12119 extern "C"
12120 #endif
12121 char pthread_exit ();
12122 int
12123 main ()
12124 {
12125 return pthread_exit ();
12126 ;
12127 return 0;
12128 }
12129 _ACEOF
12130 if ac_fn_c_try_link "$LINENO"; then :
12131 ac_cv_lib_c_r_pthread_exit=yes
12132 else
12133 ac_cv_lib_c_r_pthread_exit=no
12134 fi
12135 rm -f core conftest.err conftest.$ac_objext \
12136 conftest$ac_exeext conftest.$ac_ext
12137 LIBS=$ac_check_lib_save_LIBS
12138 fi
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_exit" >&5
12140 $as_echo "$ac_cv_lib_c_r_pthread_exit" >&6; }
12141 if test "x$ac_cv_lib_c_r_pthread_exit" = xyes; then :
12142 LIBS="$LIBS -lc_r"; pthread="yes"
12143 fi
12144
12145
12146 fi
12147
12148 ;;
12149 *-interix3*)
12150 INSTALL="./install-sh"
12151 ;;
12152 esac
12153
12154
12155 # Check whether --with-cflags was given.
12156 if test "${with_cflags+set}" = set; then :
12157 withval=$with_cflags; CFLAGS="$CFLAGS $withval"
12158 fi
12159
12160
12161
12162 # Check whether --with-libs was given.
12163 if test "${with_libs+set}" = set; then :
12164 withval=$with_libs; LIBS="$LIBS $withval"
12165 fi
12166
12167
12168
12169
12170
12171 nl='
12172 '
12173 echo "${nl}${T_MD}Configuring OpenSSL support ...${T_ME}"
12174
12175
12176 # Check whether --with-ssl was given.
12177 if test "${with_ssl+set}" = set; then :
12178 withval=$with_ssl; if test -d "$withval"; then
12179 ssllib="$withval/lib";
12180 sslinc="$withval/include"
12181 else
12182 as_fn_error $? "Unable to find OpenSSL libs and/or directories at $withval" "$LINENO" 5
12183 fi
12184
12185 fi
12186
12187
12188
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile with SSL support" >&5
12190 $as_echo_n "checking whether to compile with SSL support... " >&6; }
12191 # Check whether --enable-ssl was given.
12192 if test "${enable_ssl+set}" = set; then :
12193 enableval=$enable_ssl;
12194 if test "$enableval" = no ; then
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12196 $as_echo "disabled" >&6; }
12197 ssl=no
12198 else
12199 ssl=yes
12200 fi
12201
12202 else
12203
12204 ssl=yes
12205
12206 fi
12207
12208
12209 if test "$ssl" = "yes" ; then
12210 if test "x$ssllib" = "x" && test "x$sslinc" = "x"; then
12211 for loc in /usr/lib /usr/local/ssl/lib /usr/local/openssl/lib; do
12212 if test -f "$loc/libssl.a"; then
12213 ssllib="$loc"
12214 fi
12215 done
12216 for loc in /usr/include/ssl /usr/include/openssl /usr/local/ssl/include \
12217 /usr/local/openssl/include; do
12218 if test -d "$loc"; then
12219 sslinc="$loc"
12220 fi
12221 done
12222 fi
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: trying $ssllib $sslinc" >&5
12224 $as_echo "trying $ssllib $sslinc" >&6; }
12225 fi
12226
12227
12228 if test "x$ssllib" != "x" && test "x$sslinc" != "x"; then
12229 CFLAGS="$CFLAGS -I$sslinc"
12230 LIBS="$LIBS -L$ssllib"
12231
12232 # Extract the first word of "openssl", so it can be a program name with args.
12233 set dummy openssl; ac_word=$2
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12235 $as_echo_n "checking for $ac_word... " >&6; }
12236 if ${ac_cv_path_OPENSSL+:} false; then :
12237 $as_echo_n "(cached) " >&6
12238 else
12239 case $OPENSSL in
12240 [\\/]* | ?:[\\/]*)
12241 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
12242 ;;
12243 *)
12244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12245 for as_dir in $PATH
12246 do
12247 IFS=$as_save_IFS
12248 test -z "$as_dir" && as_dir=.
12249 for ac_exec_ext in '' $ac_executable_extensions; do
12250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12251 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
12252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12253 break 2
12254 fi
12255 done
12256 done
12257 IFS=$as_save_IFS
12258
12259 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="no"
12260 ;;
12261 esac
12262 fi
12263 OPENSSL=$ac_cv_path_OPENSSL
12264 if test -n "$OPENSSL"; then
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
12266 $as_echo "$OPENSSL" >&6; }
12267 else
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12269 $as_echo "no" >&6; }
12270 fi
12271
12272
12273 if test "$OPENSSL" = "yes"; then
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openssl version" >&5
12275 $as_echo_n "checking openssl version... " >&6; }
12276 openssl_version=`$OPENSSL version | awk '{print $2}'`
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_version" >&5
12278 $as_echo "$openssl_version" >&6; }
12279 fi
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_lock in -lcrypto" >&5
12281 $as_echo_n "checking for CRYPTO_lock in -lcrypto... " >&6; }
12282 if ${ac_cv_lib_crypto_CRYPTO_lock+:} false; then :
12283 $as_echo_n "(cached) " >&6
12284 else
12285 ac_check_lib_save_LIBS=$LIBS
12286 LIBS="-lcrypto $LIBS"
12287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12288 /* end confdefs.h. */
12289
12290 /* Override any GCC internal prototype to avoid an error.
12291 Use char because int might match the return type of a GCC
12292 builtin and then its argument prototype would still apply. */
12293 #ifdef __cplusplus
12294 extern "C"
12295 #endif
12296 char CRYPTO_lock ();
12297 int
12298 main ()
12299 {
12300 return CRYPTO_lock ();
12301 ;
12302 return 0;
12303 }
12304 _ACEOF
12305 if ac_fn_c_try_link "$LINENO"; then :
12306 ac_cv_lib_crypto_CRYPTO_lock=yes
12307 else
12308 ac_cv_lib_crypto_CRYPTO_lock=no
12309 fi
12310 rm -f core conftest.err conftest.$ac_objext \
12311 conftest$ac_exeext conftest.$ac_ext
12312 LIBS=$ac_check_lib_save_LIBS
12313 fi
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_lock" >&5
12315 $as_echo "$ac_cv_lib_crypto_CRYPTO_lock" >&6; }
12316 if test "x$ac_cv_lib_crypto_CRYPTO_lock" = xyes; then :
12317 LIBS="$LIBS -lcrypto"
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
12319 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
12320 if ${ac_cv_lib_ssl_SSL_library_init+:} false; then :
12321 $as_echo_n "(cached) " >&6
12322 else
12323 ac_check_lib_save_LIBS=$LIBS
12324 LIBS="-lssl $LIBS"
12325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12326 /* end confdefs.h. */
12327
12328 /* Override any GCC internal prototype to avoid an error.
12329 Use char because int might match the return type of a GCC
12330 builtin and then its argument prototype would still apply. */
12331 #ifdef __cplusplus
12332 extern "C"
12333 #endif
12334 char SSL_library_init ();
12335 int
12336 main ()
12337 {
12338 return SSL_library_init ();
12339 ;
12340 return 0;
12341 }
12342 _ACEOF
12343 if ac_fn_c_try_link "$LINENO"; then :
12344 ac_cv_lib_ssl_SSL_library_init=yes
12345 else
12346 ac_cv_lib_ssl_SSL_library_init=no
12347 fi
12348 rm -f core conftest.err conftest.$ac_objext \
12349 conftest$ac_exeext conftest.$ac_ext
12350 LIBS=$ac_check_lib_save_LIBS
12351 fi
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
12353 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
12354 if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes; then :
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
12356 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
12357 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
12358 $as_echo_n "(cached) " >&6
12359 else
12360 ac_check_lib_save_LIBS=$LIBS
12361 LIBS="-lssl $LIBS"
12362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12363 /* end confdefs.h. */
12364
12365 /* Override any GCC internal prototype to avoid an error.
12366 Use char because int might match the return type of a GCC
12367 builtin and then its argument prototype would still apply. */
12368 #ifdef __cplusplus
12369 extern "C"
12370 #endif
12371 char SSL_connect ();
12372 int
12373 main ()
12374 {
12375 return SSL_connect ();
12376 ;
12377 return 0;
12378 }
12379 _ACEOF
12380 if ac_fn_c_try_link "$LINENO"; then :
12381 ac_cv_lib_ssl_SSL_connect=yes
12382 else
12383 ac_cv_lib_ssl_SSL_connect=no
12384 fi
12385 rm -f core conftest.err conftest.$ac_objext \
12386 conftest$ac_exeext conftest.$ac_ext
12387 LIBS=$ac_check_lib_save_LIBS
12388 fi
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
12390 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
12391 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
12392 cat >>confdefs.h <<_ACEOF
12393 #define HAVE_LIBSSL 1
12394 _ACEOF
12395
12396 LIBS="-lssl $LIBS"
12397
12398 fi
12399
12400 for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
12401 openssl/pem.h openssl/ssl.h openssl/err.h
12402 do :
12403 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12404 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12405 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12406 cat >>confdefs.h <<_ACEOF
12407 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12408 _ACEOF
12409
12410 fi
12411
12412 done
12413
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the OpenSSL library is multithread-enabled" >&5
12415 $as_echo_n "checking whether the OpenSSL library is multithread-enabled... " >&6; }
12416 if test "$cross_compiling" = yes; then :
12417 echo "Cross-compiling; make sure your SSL library is multithread-enabled"
12418
12419 else
12420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12421 /* end confdefs.h. */
12422
12423 #define OPENSSL_THREAD_DEFINES
12424 #include <openssl/opensslconf.h>
12425 int main(void) {
12426 #if defined(THREADS)
12427 exit(0);
12428 #elif defined(OPENSSL_THREADS)
12429 exit(0);
12430 #else
12431 exit(1);
12432 #endif
12433 }
12434
12435 _ACEOF
12436 if ac_fn_c_try_run "$LINENO"; then :
12437
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12439 $as_echo "yes" >&6; }
12440 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
12441
12442 LIBS="$LIBS -lssl"
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile with SSL support" >&5
12444 $as_echo_n "checking whether to compile with SSL support... " >&6; }
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12446 $as_echo "yes" >&6; }
12447
12448 else
12449
12450 # Check whether --enable-ssl-thread-test was given.
12451 if test "${enable_ssl_thread_test+set}" = set; then :
12452 enableval=$enable_ssl_thread_test; if test "$enableval" = no ; then
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, continue forced" >&5
12454 $as_echo "no, continue forced" >&6; }
12455 fi
12456
12457 else
12458
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12460 $as_echo "no" >&6; }
12461 as_fn_error $? "Either get a multithread-enabled SSL or configure with --disable-ssl" "$LINENO" 5
12462
12463 fi
12464
12465
12466 fi
12467 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12468 conftest.$ac_objext conftest.beam conftest.$ac_ext
12469 fi
12470
12471
12472 fi
12473
12474
12475 fi
12476
12477 fi
12478
12479
12480
12481
12482 nl='
12483 '
12484 echo "${nl}${T_MD}Configuring DocBook support ...${T_ME}"
12485
12486 # Extract the first word of "jade", so it can be a program name with args.
12487 set dummy jade; ac_word=$2
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12489 $as_echo_n "checking for $ac_word... " >&6; }
12490 if ${ac_cv_prog_OLDJADE+:} false; then :
12491 $as_echo_n "(cached) " >&6
12492 else
12493 if test -n "$OLDJADE"; then
12494 ac_cv_prog_OLDJADE="$OLDJADE" # Let the user override the test.
12495 else
12496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12497 for as_dir in $PATH
12498 do
12499 IFS=$as_save_IFS
12500 test -z "$as_dir" && as_dir=.
12501 for ac_exec_ext in '' $ac_executable_extensions; do
12502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12503 ac_cv_prog_OLDJADE="jade"
12504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12505 break 2
12506 fi
12507 done
12508 done
12509 IFS=$as_save_IFS
12510
12511 test -z "$ac_cv_prog_OLDJADE" && ac_cv_prog_OLDJADE="no"
12512 fi
12513 fi
12514 OLDJADE=$ac_cv_prog_OLDJADE
12515 if test -n "$OLDJADE"; then
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OLDJADE" >&5
12517 $as_echo "$OLDJADE" >&6; }
12518 else
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12520 $as_echo "no" >&6; }
12521 fi
12522
12523
12524 if test "$OLDJADE" = "no" ;
12525 then
12526 # Extract the first word of "openjade", so it can be a program name with args.
12527 set dummy openjade; ac_word=$2
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12529 $as_echo_n "checking for $ac_word... " >&6; }
12530 if ${ac_cv_prog_JADE+:} false; then :
12531 $as_echo_n "(cached) " >&6
12532 else
12533 if test -n "$JADE"; then
12534 ac_cv_prog_JADE="$JADE" # Let the user override the test.
12535 else
12536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12537 for as_dir in $PATH
12538 do
12539 IFS=$as_save_IFS
12540 test -z "$as_dir" && as_dir=.
12541 for ac_exec_ext in '' $ac_executable_extensions; do
12542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12543 ac_cv_prog_JADE="openjade"
12544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12545 break 2
12546 fi
12547 done
12548 done
12549 IFS=$as_save_IFS
12550
12551 test -z "$ac_cv_prog_JADE" && ac_cv_prog_JADE="no"
12552 fi
12553 fi
12554 JADE=$ac_cv_prog_JADE
12555 if test -n "$JADE"; then
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JADE" >&5
12557 $as_echo "$JADE" >&6; }
12558 else
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12560 $as_echo "no" >&6; }
12561 fi
12562
12563
12564 else
12565 JADE=$OLDJADE
12566 fi
12567 # Extract the first word of "jadetex", so it can be a program name with args.
12568 set dummy jadetex; ac_word=$2
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12570 $as_echo_n "checking for $ac_word... " >&6; }
12571 if ${ac_cv_prog_JADETEX+:} false; then :
12572 $as_echo_n "(cached) " >&6
12573 else
12574 if test -n "$JADETEX"; then
12575 ac_cv_prog_JADETEX="$JADETEX" # Let the user override the test.
12576 else
12577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12578 for as_dir in $PATH
12579 do
12580 IFS=$as_save_IFS
12581 test -z "$as_dir" && as_dir=.
12582 for ac_exec_ext in '' $ac_executable_extensions; do
12583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12584 ac_cv_prog_JADETEX="jadetex"
12585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12586 break 2
12587 fi
12588 done
12589 done
12590 IFS=$as_save_IFS
12591
12592 test -z "$ac_cv_prog_JADETEX" && ac_cv_prog_JADETEX="no"
12593 fi
12594 fi
12595 JADETEX=$ac_cv_prog_JADETEX
12596 if test -n "$JADETEX"; then
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JADETEX" >&5
12598 $as_echo "$JADETEX" >&6; }
12599 else
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12601 $as_echo "no" >&6; }
12602 fi
12603
12604
12605 # Extract the first word of "pdfjadetex", so it can be a program name with args.
12606 set dummy pdfjadetex; ac_word=$2
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12608 $as_echo_n "checking for $ac_word... " >&6; }
12609 if ${ac_cv_prog_PDFJADETEX+:} false; then :
12610 $as_echo_n "(cached) " >&6
12611 else
12612 if test -n "$PDFJADETEX"; then
12613 ac_cv_prog_PDFJADETEX="$PDFJADETEX" # Let the user override the test.
12614 else
12615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12616 for as_dir in $PATH
12617 do
12618 IFS=$as_save_IFS
12619 test -z "$as_dir" && as_dir=.
12620 for ac_exec_ext in '' $ac_executable_extensions; do
12621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12622 ac_cv_prog_PDFJADETEX="pdfjadetex"
12623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12624 break 2
12625 fi
12626 done
12627 done
12628 IFS=$as_save_IFS
12629
12630 test -z "$ac_cv_prog_PDFJADETEX" && ac_cv_prog_PDFJADETEX="no"
12631 fi
12632 fi
12633 PDFJADETEX=$ac_cv_prog_PDFJADETEX
12634 if test -n "$PDFJADETEX"; then
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFJADETEX" >&5
12636 $as_echo "$PDFJADETEX" >&6; }
12637 else
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12639 $as_echo "no" >&6; }
12640 fi
12641
12642
12643 # Extract the first word of "dvips", so it can be a program name with args.
12644 set dummy dvips; ac_word=$2
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12646 $as_echo_n "checking for $ac_word... " >&6; }
12647 if ${ac_cv_prog_DVIPS+:} false; then :
12648 $as_echo_n "(cached) " >&6
12649 else
12650 if test -n "$DVIPS"; then
12651 ac_cv_prog_DVIPS="$DVIPS" # Let the user override the test.
12652 else
12653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12654 for as_dir in $PATH
12655 do
12656 IFS=$as_save_IFS
12657 test -z "$as_dir" && as_dir=.
12658 for ac_exec_ext in '' $ac_executable_extensions; do
12659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12660 ac_cv_prog_DVIPS="dvips"
12661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12662 break 2
12663 fi
12664 done
12665 done
12666 IFS=$as_save_IFS
12667
12668 test -z "$ac_cv_prog_DVIPS" && ac_cv_prog_DVIPS="no"
12669 fi
12670 fi
12671 DVIPS=$ac_cv_prog_DVIPS
12672 if test -n "$DVIPS"; then
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
12674 $as_echo "$DVIPS" >&6; }
12675 else
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12677 $as_echo "no" >&6; }
12678 fi
12679
12680
12681 # Extract the first word of "fig2dev", so it can be a program name with args.
12682 set dummy fig2dev; ac_word=$2
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12684 $as_echo_n "checking for $ac_word... " >&6; }
12685 if ${ac_cv_prog_FIG2DEV+:} false; then :
12686 $as_echo_n "(cached) " >&6
12687 else
12688 if test -n "$FIG2DEV"; then
12689 ac_cv_prog_FIG2DEV="$FIG2DEV" # Let the user override the test.
12690 else
12691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12692 for as_dir in $PATH
12693 do
12694 IFS=$as_save_IFS
12695 test -z "$as_dir" && as_dir=.
12696 for ac_exec_ext in '' $ac_executable_extensions; do
12697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12698 ac_cv_prog_FIG2DEV="fig2dev"
12699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12700 break 2
12701 fi
12702 done
12703 done
12704 IFS=$as_save_IFS
12705
12706 test -z "$ac_cv_prog_FIG2DEV" && ac_cv_prog_FIG2DEV="no"
12707 fi
12708 fi
12709 FIG2DEV=$ac_cv_prog_FIG2DEV
12710 if test -n "$FIG2DEV"; then
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIG2DEV" >&5
12712 $as_echo "$FIG2DEV" >&6; }
12713 else
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12715 $as_echo "no" >&6; }
12716 fi
12717
12718
12719 # Extract the first word of "convert", so it can be a program name with args.
12720 set dummy convert; ac_word=$2
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12722 $as_echo_n "checking for $ac_word... " >&6; }
12723 if ${ac_cv_prog_CONVERT+:} false; then :
12724 $as_echo_n "(cached) " >&6
12725 else
12726 if test -n "$CONVERT"; then
12727 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
12728 else
12729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12730 for as_dir in $PATH
12731 do
12732 IFS=$as_save_IFS
12733 test -z "$as_dir" && as_dir=.
12734 for ac_exec_ext in '' $ac_executable_extensions; do
12735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12736 ac_cv_prog_CONVERT="convert"
12737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12738 break 2
12739 fi
12740 done
12741 done
12742 IFS=$as_save_IFS
12743
12744 test -z "$ac_cv_prog_CONVERT" && ac_cv_prog_CONVERT="no"
12745 fi
12746 fi
12747 CONVERT=$ac_cv_prog_CONVERT
12748 if test -n "$CONVERT"; then
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
12750 $as_echo "$CONVERT" >&6; }
12751 else
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12753 $as_echo "no" >&6; }
12754 fi
12755
12756
12757
12758 found=""
12759 for loc in /usr /usr/local /opt/local; do
12760 if test "x$found" = "x" ; then
12761 for file in ${loc}/lib/sgml/stylesheet/dsssl/docbook/nwalsh/html/docbook.dsl \
12762 ${loc}/lib/sgml/stylesheets/nwalsh-modular/html/docbook.dsl \
12763 ${loc}/share/dsssl/docbook-dsssl/html/docbook.dsl \
12764 ${loc}/share/sgml/docbook/dsssl-stylesheets-1.*/html/docbook.dsl \
12765 ${loc}/share/sgml/docbook/dsssl-stylesheets/html/docbook.dsl \
12766 ${loc}/share/sgml/docbook/stylesheet/dsssl/modular/html/docbook.dsl \
12767 ${loc}/share/sgml/docbook/dsssl/modular/html/docbook.dsl ; do
12768 if test "x$found" = "x" ; then
12769 as_ac_File=`$as_echo "ac_cv_file_$file" | $as_tr_sh`
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $file" >&5
12771 $as_echo_n "checking for $file... " >&6; }
12772 if eval \${$as_ac_File+:} false; then :
12773 $as_echo_n "(cached) " >&6
12774 else
12775 test "$cross_compiling" = yes &&
12776 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
12777 if test -r "$file"; then
12778 eval "$as_ac_File=yes"
12779 else
12780 eval "$as_ac_File=no"
12781 fi
12782 fi
12783 eval ac_res=\$$as_ac_File
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12785 $as_echo "$ac_res" >&6; }
12786 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
12787 HTML_DSL=$file; found=1
12788 fi
12789
12790 fi
12791 done
12792 fi
12793 done
12794
12795 found=""
12796 for loc in /usr /usr/local /opt/local; do
12797 if test "x$found" = "x" ; then
12798 for file in ${loc}/lib/sgml/stylesheet/dsssl/docbook/nwalsh/print/docbook.dsl \
12799 ${loc}/lib/sgml/stylesheets/nwalsh-modular/print/docbook.dsl \
12800 ${loc}/share/dsssl/docbook-dsssl/print/docbook.dsl \
12801 ${loc}/share/sgml/docbook/dsssl-stylesheets-1.*/print/docbook.dsl \
12802 ${loc}/share/sgml/docbook/dsssl-stylesheets/print/docbook.dsl \
12803 ${loc}/share/sgml/docbook/stylesheet/dsssl/modular/print/docbook.dsl \
12804 ${loc}/share/sgml/docbook/dsssl/modular/print/docbook.dsl ; do
12805 if test "x$found" = "x" ; then
12806 as_ac_File=`$as_echo "ac_cv_file_$file" | $as_tr_sh`
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $file" >&5
12808 $as_echo_n "checking for $file... " >&6; }
12809 if eval \${$as_ac_File+:} false; then :
12810 $as_echo_n "(cached) " >&6
12811 else
12812 test "$cross_compiling" = yes &&
12813 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
12814 if test -r "$file"; then
12815 eval "$as_ac_File=yes"
12816 else
12817 eval "$as_ac_File=no"
12818 fi
12819 fi
12820 eval ac_res=\$$as_ac_File
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12822 $as_echo "$ac_res" >&6; }
12823 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
12824 TEX_DSL=$file; found=1
12825 fi
12826
12827 fi
12828 done
12829 fi
12830 done
12831
12832 found=""
12833 for loc in /usr /usr/local /sw /opt/local; do
12834 if test "x$found" = "x" ; then
12835 for file in ${loc}/lib/sgml/stylesheet/dsssl/docbook/nwalsh/dtds/decls/xml.dcl \
12836 ${loc}/lib/sgml/stylesheets/nwalsh-modular/dtds/decls/xml.dcl \
12837 ${loc}/share/sgml/docbook/dsssl-stylesheets-1.*/dtds/decls/xml.dcl \
12838 ${loc}/share/sgml/docbook/dsssl-stylesheets/dtds/decls/xml.dcl \
12839 ${loc}/share/sgml/docbook/stylesheet/dsssl/modular/dtds/decls/xml.dcl \
12840 ${loc}/share/sgml/docbook/dsssl/modular/dtds/decls/xml.dcl \
12841 ${loc}/share/sgml/dsssl/docbook-dsssl-nwalsh/dtds/decls/xml.dcl \
12842 ${loc}/share/dsssl/docbook-dsssl/dtds/decls/xml.dcl ; do
12843 if test "x$found" = "x" ; then
12844 as_ac_File=`$as_echo "ac_cv_file_$file" | $as_tr_sh`
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $file" >&5
12846 $as_echo_n "checking for $file... " >&6; }
12847 if eval \${$as_ac_File+:} false; then :
12848 $as_echo_n "(cached) " >&6
12849 else
12850 test "$cross_compiling" = yes &&
12851 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
12852 if test -r "$file"; then
12853 eval "$as_ac_File=yes"
12854 else
12855 eval "$as_ac_File=no"
12856 fi
12857 fi
12858 eval ac_res=\$$as_ac_File
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12860 $as_echo "$ac_res" >&6; }
12861 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
12862 XML_DCL=$file; found=1
12863 fi
12864
12865 fi
12866 done
12867 fi
12868 done
12869
12870
12871
12872
12873 # Check whether --enable-docs was given.
12874 if test "${enable_docs+set}" = set; then :
12875 enableval=$enable_docs;
12876 if test "$enableval" = "yes"
12877 then
12878 DOCSTARGET="docs"
12879 else
12880 DOCSTARGET="no-docs"
12881 fi
12882
12883 fi
12884
12885
12886 if test "x$HTML_DSL" = "x" -o "x$TEX_DSL" = "x" \
12887 || test "$JADE" = "no" \
12888 || test "$JADETEX" = "no" \
12889 || test "$PDFJADETEX" = "no" \
12890 || test "$DVIPS" = "no" \
12891 || test "$FIG2DEV" = "no" \
12892 || test "$CONVERT" = "no" \
12893 || test "$DOCSTARGET" = "no-docs"
12894 then
12895 DOCSTARGET="no-docs"
12896 else
12897 DOCSTARGET="docs"
12898 fi
12899
12900 case "$DOCSTARGET" in
12901 no-docs) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building documentation." >&5
12902 $as_echo "Not building documentation." >&6; } ;;
12903 docs) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Documentation will be built as well." >&5
12904 $as_echo "Documentation will be built as well." >&6; } ;;
12905 esac
12906
12907
12908
12909 DOCDRAFTS="IGNORE"
12910
12911 # Check whether --enable-drafts was given.
12912 if test "${enable_drafts+set}" = set; then :
12913 enableval=$enable_drafts;
12914 if test "$enableval" = "yes"
12915 then
12916 DOCDRAFTS="INCLUDE"
12917 else
12918 DOCDRAFTS="IGNORE"
12919 fi
12920
12921 fi
12922
12923 if test "x$DOCSTARGET" = "xdocs"
12924 then
12925 case "$DOCDRAFTS" in
12926 INCLUDE) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Documentation will include drafts." >&5
12927 $as_echo "Documentation will include drafts." >&6; } ;;
12928 esac
12929 fi
12930
12931
12932
12933 nl='
12934 '
12935 echo "${nl}${T_MD}Configuring Kannel and DB dependancies ...${T_ME}"
12936
12937
12938
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ct-Lib support" >&5
12940 $as_echo_n "checking for Ct-Lib support... " >&6; }
12941
12942 # Check whether --with-ctlib was given.
12943 if test "${with_ctlib+set}" = set; then :
12944 withval=$with_ctlib;
12945 if test "$withval" = "yes"; then
12946 withval=/opt/sybase
12947 fi
12948
12949 if test "$withval" != "no"; then
12950 if test -f $withval/include/ctpublic.h; then
12951 CTLIB_INCDIR=$withval/include
12952 CTLIB_LIBDIR=$withval/lib
12953 else
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12955 $as_echo "no" >&6; }
12956 as_fn_error $? "Invalid Ct-Lib directory - unable to find ctpublic.h" "$LINENO" 5
12957 fi
12958 CTLIB_LFLAGS="-L$CTLIB_LIBDIR -lct -lcs -lsybtcl -lcomn -lintl"
12959 CTLIB_INCLUDE="-I$CTLIB_INCDIR"
12960
12961 $as_echo "#define HAVE_CTLIB 1" >>confdefs.h
12962
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12964 $as_echo "yes" >&6; }
12965 have_db=yes
12966 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12967 if test "x$ac_cv_func_dlopen" = xyes; then :
12968
12969 else
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12971 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12972 if ${ac_cv_lib_dl_dlopen+:} false; then :
12973 $as_echo_n "(cached) " >&6
12974 else
12975 ac_check_lib_save_LIBS=$LIBS
12976 LIBS="-ldl $LIBS"
12977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12978 /* end confdefs.h. */
12979
12980 /* Override any GCC internal prototype to avoid an error.
12981 Use char because int might match the return type of a GCC
12982 builtin and then its argument prototype would still apply. */
12983 #ifdef __cplusplus
12984 extern "C"
12985 #endif
12986 char dlopen ();
12987 int
12988 main ()
12989 {
12990 return dlopen ();
12991 ;
12992 return 0;
12993 }
12994 _ACEOF
12995 if ac_fn_c_try_link "$LINENO"; then :
12996 ac_cv_lib_dl_dlopen=yes
12997 else
12998 ac_cv_lib_dl_dlopen=no
12999 fi
13000 rm -f core conftest.err conftest.$ac_objext \
13001 conftest$ac_exeext conftest.$ac_ext
13002 LIBS=$ac_check_lib_save_LIBS
13003 fi
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13005 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13006 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13007 CTLIB_LFLAGS="$CTLIB_LFLAGS -ldl"
13008 fi
13009
13010 fi
13011
13012 fi
13013 if test "x$DBTYPE" = "x" ; then
13014 DBTYPE="ctlib"
13015 else
13016 DBTYPE="$DBTYPE-ctlib"
13017 fi
13018
13019
13020 else
13021
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13023 $as_echo "no" >&6; }
13024
13025 fi
13026
13027
13028
13029
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeTDS Ct-Lib support" >&5
13031 $as_echo_n "checking for FreeTDS Ct-Lib support... " >&6; }
13032
13033 # Check whether --with-mssql was given.
13034 if test "${with_mssql+set}" = set; then :
13035 withval=$with_mssql;
13036 if test "$withval" = "yes"; then
13037 withval=/usr/local
13038 fi
13039
13040 if test "$withval" != "no"; then
13041 if test -f $withval/include/ctpublic.h; then
13042 CTLIB_INCDIR=$withval/include
13043 CTLIB_LIBDIR=$withval/lib
13044 else
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13046 $as_echo "no" >&6; }
13047 as_fn_error $? "Invalid FreeTDS directory - unable to find ctpublic.h" "$LINENO" 5
13048 fi
13049 CTLIB_LFLAGS="-L$CTLIB_LIBDIR -lct"
13050 CTLIB_INCLUDE="-I$CTLIB_INCDIR"
13051
13052 $as_echo "#define HAVE_CTLIB 1" >>confdefs.h
13053
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13055 $as_echo "yes" >&6; }
13056 have_db=yes
13057 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13058 if test "x$ac_cv_func_dlopen" = xyes; then :
13059
13060 else
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13062 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13063 if ${ac_cv_lib_dl_dlopen+:} false; then :
13064 $as_echo_n "(cached) " >&6
13065 else
13066 ac_check_lib_save_LIBS=$LIBS
13067 LIBS="-ldl $LIBS"
13068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13069 /* end confdefs.h. */
13070
13071 /* Override any GCC internal prototype to avoid an error.
13072 Use char because int might match the return type of a GCC
13073 builtin and then its argument prototype would still apply. */
13074 #ifdef __cplusplus
13075 extern "C"
13076 #endif
13077 char dlopen ();
13078 int
13079 main ()
13080 {
13081 return dlopen ();
13082 ;
13083 return 0;
13084 }
13085 _ACEOF
13086 if ac_fn_c_try_link "$LINENO"; then :
13087 ac_cv_lib_dl_dlopen=yes
13088 else
13089 ac_cv_lib_dl_dlopen=no
13090 fi
13091 rm -f core conftest.err conftest.$ac_objext \
13092 conftest$ac_exeext conftest.$ac_ext
13093 LIBS=$ac_check_lib_save_LIBS
13094 fi
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13096 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13097 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13098 CTLIB_LFLAGS="$CTLIB_LFLAGS -ldl"
13099 fi
13100
13101 fi
13102
13103 fi
13104 if test "x$DBTYPE" = "x" ; then
13105 DBTYPE="freetds"
13106 else
13107 DBTYPE="$DBTYPE-freetds"
13108 fi
13109
13110
13111 else
13112
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13114 $as_echo "no" >&6; }
13115
13116 fi
13117
13118
13119
13120
13121
13122 # Check whether --with-kannel-dir was given.
13123 if test "${with_kannel_dir+set}" = set; then :
13124 withval=$with_kannel_dir;
13125 gwloc=""
13126 if test -d "$withval" ; then
13127 gwloc="$withval"
13128 fi
13129
13130 fi
13131
13132
13133 # Extract the first word of "gw-config", so it can be a program name with args.
13134 set dummy gw-config; ac_word=$2
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13136 $as_echo_n "checking for $ac_word... " >&6; }
13137 if ${ac_cv_path_GW_CONFIG+:} false; then :
13138 $as_echo_n "(cached) " >&6
13139 else
13140 case $GW_CONFIG in
13141 [\\/]* | ?:[\\/]*)
13142 ac_cv_path_GW_CONFIG="$GW_CONFIG" # Let the user override the test with a path.
13143 ;;
13144 *)
13145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13146 as_dummy="$gwloc/bin:$gwloc:../gateway/gw/:$PATH"
13147 for as_dir in $as_dummy
13148 do
13149 IFS=$as_save_IFS
13150 test -z "$as_dir" && as_dir=.
13151 for ac_exec_ext in '' $ac_executable_extensions; do
13152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13153 ac_cv_path_GW_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13155 break 2
13156 fi
13157 done
13158 done
13159 IFS=$as_save_IFS
13160
13161 test -z "$ac_cv_path_GW_CONFIG" && ac_cv_path_GW_CONFIG="no"
13162 ;;
13163 esac
13164 fi
13165 GW_CONFIG=$ac_cv_path_GW_CONFIG
13166 if test -n "$GW_CONFIG"; then
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GW_CONFIG" >&5
13168 $as_echo "$GW_CONFIG" >&6; }
13169 else
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13171 $as_echo "no" >&6; }
13172 fi
13173
13174
13175 if test "$GW_CONFIG" = "no"; then
13176 found=""
13177 for loc in $pgsqlloc /usr /usr/local ; do
13178 if test "x$found" = "x" ; then
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kannel include files in" >&5
13180 $as_echo_n "checking for Kannel include files in... " >&6; }
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $loc" >&5
13182 $as_echo "$loc" >&6; }
13183 as_ac_File=`$as_echo "ac_cv_file_"$loc/include/kannel/gw-config.h"" | $as_tr_sh`
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"$loc/include/kannel/gw-config.h\"" >&5
13185 $as_echo_n "checking for \"$loc/include/kannel/gw-config.h\"... " >&6; }
13186 if eval \${$as_ac_File+:} false; then :
13187 $as_echo_n "(cached) " >&6
13188 else
13189 test "$cross_compiling" = yes &&
13190 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
13191 if test -r ""$loc/include/kannel/gw-config.h""; then
13192 eval "$as_ac_File=yes"
13193 else
13194 eval "$as_ac_File=no"
13195 fi
13196 fi
13197 eval ac_res=\$$as_ac_File
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13199 $as_echo "$ac_res" >&6; }
13200 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
13201 CFLAGS="$CFLAGS -I$loc/include/kannel -I$loc/include/kannel";
13202 LDFLAGS="$LDFLAGS -L$loc/lib/kannel -lwap -lgwlib";
13203 found=1
13204
13205 fi
13206
13207 fi
13208 done;
13209 if test "x$found" != "x1" ; then
13210 as_fn_error $? "Unable to find gw-config.h, please provide a --with-kannel-dir=<dir> location" "$LINENO" 5
13211 fi
13212 else
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kannel version" >&5
13214 $as_echo_n "checking Kannel version... " >&6; }
13215 gw_version=`$GW_CONFIG --version`
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gw_version" >&5
13217 $as_echo "$gw_version" >&6; }
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kannel libs" >&5
13219 $as_echo_n "checking Kannel libs... " >&6; }
13220 if ! $GW_CONFIG --libs &>/dev/null ; then
13221 LIBS="$LIBS `$GW_CONFIG --libs`"
13222 gw_libdir=`$GW_CONFIG --libs`
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gw_libdir" >&5
13224 $as_echo "$gw_libdir" >&6; }
13225 fi
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kannel includes" >&5
13227 $as_echo_n "checking Kannel includes... " >&6; }
13228 if ! $GW_CONFIG --cflags &>/dev/null ; then
13229 CFLAGS="$CFLAGS `$GW_CONFIG --cflags`"
13230 gw_incdir=`$GW_CONFIG --cflags`
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gw_incdir" >&5
13232 $as_echo "$gw_incdir" >&6; }
13233 fi
13234 fi
13235
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cfg_create in -lgwlib" >&5
13237 $as_echo_n "checking for cfg_create in -lgwlib... " >&6; }
13238 if ${ac_cv_lib_gwlib_cfg_create+:} false; then :
13239 $as_echo_n "(cached) " >&6
13240 else
13241 ac_check_lib_save_LIBS=$LIBS
13242 LIBS="-lgwlib $LDFLAGS
13243 $LIBS"
13244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13245 /* end confdefs.h. */
13246
13247 /* Override any GCC internal prototype to avoid an error.
13248 Use char because int might match the return type of a GCC
13249 builtin and then its argument prototype would still apply. */
13250 #ifdef __cplusplus
13251 extern "C"
13252 #endif
13253 char cfg_create ();
13254 int
13255 main ()
13256 {
13257 return cfg_create ();
13258 ;
13259 return 0;
13260 }
13261 _ACEOF
13262 if ac_fn_c_try_link "$LINENO"; then :
13263 ac_cv_lib_gwlib_cfg_create=yes
13264 else
13265 ac_cv_lib_gwlib_cfg_create=no
13266 fi
13267 rm -f core conftest.err conftest.$ac_objext \
13268 conftest$ac_exeext conftest.$ac_ext
13269 LIBS=$ac_check_lib_save_LIBS
13270 fi
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gwlib_cfg_create" >&5
13272 $as_echo "$ac_cv_lib_gwlib_cfg_create" >&6; }
13273 if test "x$ac_cv_lib_gwlib_cfg_create" = xyes; then :
13274 cat >>confdefs.h <<_ACEOF
13275 #define HAVE_LIBGWLIB 1
13276 _ACEOF
13277
13278 LIBS="-lgwlib $LIBS"
13279
13280 else
13281 as_fn_error $? "Kannel gwlib is required!" "$LINENO" 5
13282 fi
13283
13284
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kannel's DB support" >&5
13286 $as_echo_n "checking for Kannel's DB support... " >&6; }
13287
13288 if test "$cross_compiling" = yes; then :
13289 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13291 as_fn_error $? "cannot run test program while cross compiling
13292 See \`config.log' for more details" "$LINENO" 5; }
13293 else
13294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13295 /* end confdefs.h. */
13296 #include "gw-config.h"
13297 int main(
13298 #if defined(HAVE_SQLITE3)
13299 exit(0);
13300 #endif
13301 exit(1);
13302 }
13303 _ACEOF
13304 if ac_fn_c_try_run "$LINENO"; then :
13305
13306 rpm_suffix="sqlite3"
13307
13308 rpm_requires="sqlite3-devel >= 1.8"
13309
13310
13311 fi
13312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13313 conftest.$ac_objext conftest.beam conftest.$ac_ext
13314 fi
13315
13316
13317 if test "$cross_compiling" = yes; then :
13318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13320 as_fn_error $? "cannot run test program while cross compiling
13321 See \`config.log' for more details" "$LINENO" 5; }
13322 else
13323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13324 /* end confdefs.h. */
13325 #include "gw-config.h"
13326 int main(void){
13327 #if defined(HAVE_SQLITE)
13328 exit(0);
13329 #endif
13330 exit(1);
13331 }
13332 _ACEOF
13333 if ac_fn_c_try_run "$LINENO"; then :
13334
13335 rpm_suffix="sqlite"
13336
13337 rpm_requires="sqlite2-devel >= 2.7"
13338
13339
13340 fi
13341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13342 conftest.$ac_objext conftest.beam conftest.$ac_ext
13343 fi
13344
13345
13346 if test "$cross_compiling" = yes; then :
13347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13349 as_fn_error $? "cannot run test program while cross compiling
13350 See \`config.log' for more details" "$LINENO" 5; }
13351 else
13352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13353 /* end confdefs.h. */
13354 #include "gw-config.h"
13355 int main(void){
13356 #if defined(HAVE_PGSQL)
13357 exit(0);
13358 #endif
13359 exit(1);
13360 }
13361 _ACEOF
13362 if ac_fn_c_try_run "$LINENO"; then :
13363
13364 rpm_suffix="pgsql"
13365
13366 rpm_requires="postgresql-devel >= 7.2"
13367
13368
13369 fi
13370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13371 conftest.$ac_objext conftest.beam conftest.$ac_ext
13372 fi
13373
13374
13375 if test "$cross_compiling" = yes; then :
13376 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13378 as_fn_error $? "cannot run test program while cross compiling
13379 See \`config.log' for more details" "$LINENO" 5; }
13380 else
13381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13382 /* end confdefs.h. */
13383 #include "gw-config.h"
13384 int main(void){
13385 #if defined(HAVE_ORACLE)
13386 exit(0);
13387 #endif
13388 exit(1);
13389 }
13390 _ACEOF
13391 if ac_fn_c_try_run "$LINENO"; then :
13392
13393 rpm_suffix="oracle"
13394
13395 rpm_requires="oracle-instantclient-devel >= 8"
13396
13397
13398 fi
13399 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13400 conftest.$ac_objext conftest.beam conftest.$ac_ext
13401 fi
13402
13403
13404 if test "$cross_compiling" = yes; then :
13405 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13407 as_fn_error $? "cannot run test program while cross compiling
13408 See \`config.log' for more details" "$LINENO" 5; }
13409 else
13410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13411 /* end confdefs.h. */
13412 #include "gw-config.h"
13413 int main(void){
13414 #if defined(HAVE_MYSQL)
13415 exit(0);
13416 #endif
13417 exit(1);
13418 }
13419 _ACEOF
13420 if ac_fn_c_try_run "$LINENO"; then :
13421
13422 rpm_suffix="mysql"
13423
13424 rpm_requires="mysql-devel >= 3.23"
13425
13426
13427 fi
13428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13429 conftest.$ac_objext conftest.beam conftest.$ac_ext
13430 fi
13431
13432
13433 if test "$cross_compiling" = yes; then :
13434 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13436 as_fn_error $? "cannot run test program while cross compiling
13437 See \`config.log' for more details" "$LINENO" 5; }
13438 else
13439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13440 /* end confdefs.h. */
13441 #include "gw-config.h"
13442 int main(void){
13443 #if defined(HAVE_SDB)
13444 exit(0);
13445 #endif
13446 exit(1);
13447 }
13448 _ACEOF
13449 if ac_fn_c_try_run "$LINENO"; then :
13450
13451 rpm_suffix="sdb"
13452
13453 rpm_requires="libsdb-devel >= 0.5"
13454
13455
13456 fi
13457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13458 conftest.$ac_objext conftest.beam conftest.$ac_ext
13459 fi
13460
13461
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13463 $as_echo "ok" >&6; }
13464
13465
13466
13467
13468 nl='
13469 '
13470 echo "${nl}${T_MD}Generating output files ...${T_ME}"
13471
13472 ac_config_files="$ac_config_files Makefile gw/Makefile rpm/sqlbox.spec"
13473
13474 cat >confcache <<\_ACEOF
13475 # This file is a shell script that caches the results of configure
13476 # tests run on this system so they can be shared between configure
13477 # scripts and configure runs, see configure's option --config-cache.
13478 # It is not useful on other systems. If it contains results you don't
13479 # want to keep, you may remove or edit it.
13480 #
13481 # config.status only pays attention to the cache file if you give it
13482 # the --recheck option to rerun configure.
13483 #
13484 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13485 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13486 # following values.
13487
13488 _ACEOF
13489
13490 # The following way of writing the cache mishandles newlines in values,
13491 # but we know of no workaround that is simple, portable, and efficient.
13492 # So, we kill variables containing newlines.
13493 # Ultrix sh set writes to stderr and can't be redirected directly,
13494 # and sets the high bit in the cache file unless we assign to the vars.
13495 (
13496 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13497 eval ac_val=\$$ac_var
13498 case $ac_val in #(
13499 *${as_nl}*)
13500 case $ac_var in #(
13501 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13502 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13503 esac
13504 case $ac_var in #(
13505 _ | IFS | as_nl) ;; #(
13506 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13507 *) { eval $ac_var=; unset $ac_var;} ;;
13508 esac ;;
13509 esac
13510 done
13511
13512 (set) 2>&1 |
13513 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13514 *${as_nl}ac_space=\ *)
13515 # `set' does not quote correctly, so add quotes: double-quote
13516 # substitution turns \\\\ into \\, and sed turns \\ into \.
13517 sed -n \
13518 "s/'/'\\\\''/g;
13519 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13520 ;; #(
13521 *)
13522 # `set' quotes correctly as required by POSIX, so do not add quotes.
13523 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13524 ;;
13525 esac |
13526 sort
13527 ) |
13528 sed '
13529 /^ac_cv_env_/b end
13530 t clear
13531 :clear
13532 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13533 t end
13534 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13535 :end' >>confcache
13536 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13537 if test -w "$cache_file"; then
13538 if test "x$cache_file" != "x/dev/null"; then
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13540 $as_echo "$as_me: updating cache $cache_file" >&6;}
13541 if test ! -f "$cache_file" || test -h "$cache_file"; then
13542 cat confcache >"$cache_file"
13543 else
13544 case $cache_file in #(
13545 */* | ?:*)
13546 mv -f confcache "$cache_file"$$ &&
13547 mv -f "$cache_file"$$ "$cache_file" ;; #(
13548 *)
13549 mv -f confcache "$cache_file" ;;
13550 esac
13551 fi
13552 fi
13553 else
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13555 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13556 fi
13557 fi
13558 rm -f confcache
13559
13560 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13561 # Let make expand exec_prefix.
13562 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13563
13564 DEFS=-DHAVE_CONFIG_H
13565
13566 ac_libobjs=
13567 ac_ltlibobjs=
13568 U=
13569 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13570 # 1. Remove the extension, and $U if already installed.
13571 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13572 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13573 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13574 # will be set to the directory where LIBOBJS objects are built.
13575 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13576 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13577 done
13578 LIBOBJS=$ac_libobjs
13579
13580 LTLIBOBJS=$ac_ltlibobjs
13581
13582
13583 if test -n "$EXEEXT"; then
13584 am__EXEEXT_TRUE=
13585 am__EXEEXT_FALSE='#'
13586 else
13587 am__EXEEXT_TRUE='#'
13588 am__EXEEXT_FALSE=
13589 fi
13590
13591 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13592 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13593 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13594 fi
13595 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13596 as_fn_error $? "conditional \"AMDEP\" was never defined.
13597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13598 fi
13599 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13600 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13602 fi
13603
13604 : "${CONFIG_STATUS=./config.status}"
13605 ac_write_fail=0
13606 ac_clean_files_save=$ac_clean_files
13607 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13609 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13610 as_write_fail=0
13611 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13612 #! $SHELL
13613 # Generated by $as_me.
13614 # Run this file to recreate the current configuration.
13615 # Compiler output produced by configure, useful for debugging
13616 # configure, is in config.log if it exists.
13617
13618 debug=false
13619 ac_cs_recheck=false
13620 ac_cs_silent=false
13621
13622 SHELL=\${CONFIG_SHELL-$SHELL}
13623 export SHELL
13624 _ASEOF
13625 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13626 ## -------------------- ##
13627 ## M4sh Initialization. ##
13628 ## -------------------- ##
13629
13630 # Be more Bourne compatible
13631 DUALCASE=1; export DUALCASE # for MKS sh
13632 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13633 emulate sh
13634 NULLCMD=:
13635 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13636 # is contrary to our usage. Disable this feature.
13637 alias -g '${1+"$@"}'='"$@"'
13638 setopt NO_GLOB_SUBST
13639 else
13640 case `(set -o) 2>/dev/null` in #(
13641 *posix*) :
13642 set -o posix ;; #(
13643 *) :
13644 ;;
13645 esac
13646 fi
13647
13648
13649 as_nl='
13650 '
13651 export as_nl
13652 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13653 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13654 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13655 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13656 # Prefer a ksh shell builtin over an external printf program on Solaris,
13657 # but without wasting forks for bash or zsh.
13658 if test -z "$BASH_VERSION$ZSH_VERSION" \
13659 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13660 as_echo='print -r --'
13661 as_echo_n='print -rn --'
13662 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13663 as_echo='printf %s\n'
13664 as_echo_n='printf %s'
13665 else
13666 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13667 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13668 as_echo_n='/usr/ucb/echo -n'
13669 else
13670 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13671 as_echo_n_body='eval
13672 arg=$1;
13673 case $arg in #(
13674 *"$as_nl"*)
13675 expr "X$arg" : "X\\(.*\\)$as_nl";
13676 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13677 esac;
13678 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13679 '
13680 export as_echo_n_body
13681 as_echo_n='sh -c $as_echo_n_body as_echo'
13682 fi
13683 export as_echo_body
13684 as_echo='sh -c $as_echo_body as_echo'
13685 fi
13686
13687 # The user is always right.
13688 if test "${PATH_SEPARATOR+set}" != set; then
13689 PATH_SEPARATOR=:
13690 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13691 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13692 PATH_SEPARATOR=';'
13693 }
13694 fi
13695
13696
13697 # IFS
13698 # We need space, tab and new line, in precisely that order. Quoting is
13699 # there to prevent editors from complaining about space-tab.
13700 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13701 # splitting by setting IFS to empty value.)
13702 IFS=" "" $as_nl"
13703
13704 # Find who we are. Look in the path if we contain no directory separator.
13705 as_myself=
13706 case $0 in #((
13707 *[\\/]* ) as_myself=$0 ;;
13708 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13709 for as_dir in $PATH
13710 do
13711 IFS=$as_save_IFS
13712 test -z "$as_dir" && as_dir=.
13713 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13714 done
13715 IFS=$as_save_IFS
13716
13717 ;;
13718 esac
13719 # We did not find ourselves, most probably we were run as `sh COMMAND'
13720 # in which case we are not to be found in the path.
13721 if test "x$as_myself" = x; then
13722 as_myself=$0
13723 fi
13724 if test ! -f "$as_myself"; then
13725 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13726 exit 1
13727 fi
13728
13729 # Unset variables that we do not need and which cause bugs (e.g. in
13730 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13731 # suppresses any "Segmentation fault" message there. '((' could
13732 # trigger a bug in pdksh 5.2.14.
13733 for as_var in BASH_ENV ENV MAIL MAILPATH
13734 do eval test x\${$as_var+set} = xset \
13735 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13736 done
13737 PS1='$ '
13738 PS2='> '
13739 PS4='+ '
13740
13741 # NLS nuisances.
13742 LC_ALL=C
13743 export LC_ALL
13744 LANGUAGE=C
13745 export LANGUAGE
13746
13747 # CDPATH.
13748 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13749
13750
13751 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13752 # ----------------------------------------
13753 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13754 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13755 # script with STATUS, using 1 if that was 0.
13756 as_fn_error ()
13757 {
13758 as_status=$1; test $as_status -eq 0 && as_status=1
13759 if test "$4"; then
13760 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13761 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13762 fi
13763 $as_echo "$as_me: error: $2" >&2
13764 as_fn_exit $as_status
13765 } # as_fn_error
13766
13767
13768 # as_fn_set_status STATUS
13769 # -----------------------
13770 # Set $? to STATUS, without forking.
13771 as_fn_set_status ()
13772 {
13773 return $1
13774 } # as_fn_set_status
13775
13776 # as_fn_exit STATUS
13777 # -----------------
13778 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13779 as_fn_exit ()
13780 {
13781 set +e
13782 as_fn_set_status $1
13783 exit $1
13784 } # as_fn_exit
13785
13786 # as_fn_unset VAR
13787 # ---------------
13788 # Portably unset VAR.
13789 as_fn_unset ()
13790 {
13791 { eval $1=; unset $1;}
13792 }
13793 as_unset=as_fn_unset
13794 # as_fn_append VAR VALUE
13795 # ----------------------
13796 # Append the text in VALUE to the end of the definition contained in VAR. Take
13797 # advantage of any shell optimizations that allow amortized linear growth over
13798 # repeated appends, instead of the typical quadratic growth present in naive
13799 # implementations.
13800 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13801 eval 'as_fn_append ()
13802 {
13803 eval $1+=\$2
13804 }'
13805 else
13806 as_fn_append ()
13807 {
13808 eval $1=\$$1\$2
13809 }
13810 fi # as_fn_append
13811
13812 # as_fn_arith ARG...
13813 # ------------------
13814 # Perform arithmetic evaluation on the ARGs, and store the result in the
13815 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13816 # must be portable across $(()) and expr.
13817 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13818 eval 'as_fn_arith ()
13819 {
13820 as_val=$(( $* ))
13821 }'
13822 else
13823 as_fn_arith ()
13824 {
13825 as_val=`expr "$@" || test $? -eq 1`
13826 }
13827 fi # as_fn_arith
13828
13829
13830 if expr a : '\(a\)' >/dev/null 2>&1 &&
13831 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13832 as_expr=expr
13833 else
13834 as_expr=false
13835 fi
13836
13837 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13838 as_basename=basename
13839 else
13840 as_basename=false
13841 fi
13842
13843 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13844 as_dirname=dirname
13845 else
13846 as_dirname=false
13847 fi
13848
13849 as_me=`$as_basename -- "$0" ||
13850 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13851 X"$0" : 'X\(//\)$' \| \
13852 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13853 $as_echo X/"$0" |
13854 sed '/^.*\/\([^/][^/]*\)\/*$/{
13855 s//\1/
13856 q
13857 }
13858 /^X\/\(\/\/\)$/{
13859 s//\1/
13860 q
13861 }
13862 /^X\/\(\/\).*/{
13863 s//\1/
13864 q
13865 }
13866 s/.*/./; q'`
13867
13868 # Avoid depending upon Character Ranges.
13869 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13870 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13871 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13872 as_cr_digits='0123456789'
13873 as_cr_alnum=$as_cr_Letters$as_cr_digits
13874
13875 ECHO_C= ECHO_N= ECHO_T=
13876 case `echo -n x` in #(((((
13877 -n*)
13878 case `echo 'xy\c'` in
13879 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13880 xy) ECHO_C='\c';;
13881 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13882 ECHO_T=' ';;
13883 esac;;
13884 *)
13885 ECHO_N='-n';;
13886 esac
13887
13888 rm -f conf$$ conf$$.exe conf$$.file
13889 if test -d conf$$.dir; then
13890 rm -f conf$$.dir/conf$$.file
13891 else
13892 rm -f conf$$.dir
13893 mkdir conf$$.dir 2>/dev/null
13894 fi
13895 if (echo >conf$$.file) 2>/dev/null; then
13896 if ln -s conf$$.file conf$$ 2>/dev/null; then
13897 as_ln_s='ln -s'
13898 # ... but there are two gotchas:
13899 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13900 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13901 # In both cases, we have to default to `cp -pR'.
13902 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13903 as_ln_s='cp -pR'
13904 elif ln conf$$.file conf$$ 2>/dev/null; then
13905 as_ln_s=ln
13906 else
13907 as_ln_s='cp -pR'
13908 fi
13909 else
13910 as_ln_s='cp -pR'
13911 fi
13912 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13913 rmdir conf$$.dir 2>/dev/null
13914
13915
13916 # as_fn_mkdir_p
13917 # -------------
13918 # Create "$as_dir" as a directory, including parents if necessary.
13919 as_fn_mkdir_p ()
13920 {
13921
13922 case $as_dir in #(
13923 -*) as_dir=./$as_dir;;
13924 esac
13925 test -d "$as_dir" || eval $as_mkdir_p || {
13926 as_dirs=
13927 while :; do
13928 case $as_dir in #(
13929 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13930 *) as_qdir=$as_dir;;
13931 esac
13932 as_dirs="'$as_qdir' $as_dirs"
13933 as_dir=`$as_dirname -- "$as_dir" ||
13934 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13935 X"$as_dir" : 'X\(//\)[^/]' \| \
13936 X"$as_dir" : 'X\(//\)$' \| \
13937 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13938 $as_echo X"$as_dir" |
13939 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13940 s//\1/
13941 q
13942 }
13943 /^X\(\/\/\)[^/].*/{
13944 s//\1/
13945 q
13946 }
13947 /^X\(\/\/\)$/{
13948 s//\1/
13949 q
13950 }
13951 /^X\(\/\).*/{
13952 s//\1/
13953 q
13954 }
13955 s/.*/./; q'`
13956 test -d "$as_dir" && break
13957 done
13958 test -z "$as_dirs" || eval "mkdir $as_dirs"
13959 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13960
13961
13962 } # as_fn_mkdir_p
13963 if mkdir -p . 2>/dev/null; then
13964 as_mkdir_p='mkdir -p "$as_dir"'
13965 else
13966 test -d ./-p && rmdir ./-p
13967 as_mkdir_p=false
13968 fi
13969
13970
13971 # as_fn_executable_p FILE
13972 # -----------------------
13973 # Test if FILE is an executable regular file.
13974 as_fn_executable_p ()
13975 {
13976 test -f "$1" && test -x "$1"
13977 } # as_fn_executable_p
13978 as_test_x='test -x'
13979 as_executable_p=as_fn_executable_p
13980
13981 # Sed expression to map a string onto a valid CPP name.
13982 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13983
13984 # Sed expression to map a string onto a valid variable name.
13985 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13986
13987
13988 exec 6>&1
13989 ## ----------------------------------- ##
13990 ## Main body of $CONFIG_STATUS script. ##
13991 ## ----------------------------------- ##
13992 _ASEOF
13993 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13994
13995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13996 # Save the log message, to keep $0 and so on meaningful, and to
13997 # report actual input values of CONFIG_FILES etc. instead of their
13998 # values after options handling.
13999 ac_log="
14000 This file was extended by sqlbox $as_me cvs, which was
14001 generated by GNU Autoconf 2.69. Invocation command line was
14002
14003 CONFIG_FILES = $CONFIG_FILES
14004 CONFIG_HEADERS = $CONFIG_HEADERS
14005 CONFIG_LINKS = $CONFIG_LINKS
14006 CONFIG_COMMANDS = $CONFIG_COMMANDS
14007 $ $0 $@
14008
14009 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14010 "
14011
14012 _ACEOF
14013
14014 case $ac_config_files in *"
14015 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14016 esac
14017
14018 case $ac_config_headers in *"
14019 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14020 esac
14021
14022
14023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14024 # Files that config.status was made for.
14025 config_files="$ac_config_files"
14026 config_headers="$ac_config_headers"
14027 config_commands="$ac_config_commands"
14028
14029 _ACEOF
14030
14031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14032 ac_cs_usage="\
14033 \`$as_me' instantiates files and other configuration actions
14034 from templates according to the current configuration. Unless the files
14035 and actions are specified as TAGs, all are instantiated by default.
14036
14037 Usage: $0 [OPTION]... [TAG]...
14038
14039 -h, --help print this help, then exit
14040 -V, --version print version number and configuration settings, then exit
14041 --config print configuration, then exit
14042 -q, --quiet, --silent
14043 do not print progress messages
14044 -d, --debug don't remove temporary files
14045 --recheck update $as_me by reconfiguring in the same conditions
14046 --file=FILE[:TEMPLATE]
14047 instantiate the configuration file FILE
14048 --header=FILE[:TEMPLATE]
14049 instantiate the configuration header FILE
14050
14051 Configuration files:
14052 $config_files
14053
14054 Configuration headers:
14055 $config_headers
14056
14057 Configuration commands:
14058 $config_commands
14059
14060 Report bugs to <[email protected]>."
14061
14062 _ACEOF
14063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14064 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14065 ac_cs_version="\\
14066 sqlbox config.status cvs
14067 configured by $0, generated by GNU Autoconf 2.69,
14068 with options \\"\$ac_cs_config\\"
14069
14070 Copyright (C) 2012 Free Software Foundation, Inc.
14071 This config.status script is free software; the Free Software Foundation
14072 gives unlimited permission to copy, distribute and modify it."
14073
14074 ac_pwd='$ac_pwd'
14075 srcdir='$srcdir'
14076 INSTALL='$INSTALL'
14077 MKDIR_P='$MKDIR_P'
14078 AWK='$AWK'
14079 test -n "\$AWK" || AWK=awk
14080 _ACEOF
14081
14082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14083 # The default lists apply if the user does not specify any file.
14084 ac_need_defaults=:
14085 while test $# != 0
14086 do
14087 case $1 in
14088 --*=?*)
14089 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14090 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14091 ac_shift=:
14092 ;;
14093 --*=)
14094 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14095 ac_optarg=
14096 ac_shift=:
14097 ;;
14098 *)
14099 ac_option=$1
14100 ac_optarg=$2
14101 ac_shift=shift
14102 ;;
14103 esac
14104
14105 case $ac_option in
14106 # Handling of the options.
14107 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14108 ac_cs_recheck=: ;;
14109 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14110 $as_echo "$ac_cs_version"; exit ;;
14111 --config | --confi | --conf | --con | --co | --c )
14112 $as_echo "$ac_cs_config"; exit ;;
14113 --debug | --debu | --deb | --de | --d | -d )
14114 debug=: ;;
14115 --file | --fil | --fi | --f )
14116 $ac_shift
14117 case $ac_optarg in
14118 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14119 '') as_fn_error $? "missing file argument" ;;
14120 esac
14121 as_fn_append CONFIG_FILES " '$ac_optarg'"
14122 ac_need_defaults=false;;
14123 --header | --heade | --head | --hea )
14124 $ac_shift
14125 case $ac_optarg in
14126 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14127 esac
14128 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14129 ac_need_defaults=false;;
14130 --he | --h)
14131 # Conflict between --help and --header
14132 as_fn_error $? "ambiguous option: \`$1'
14133 Try \`$0 --help' for more information.";;
14134 --help | --hel | -h )
14135 $as_echo "$ac_cs_usage"; exit ;;
14136 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14137 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14138 ac_cs_silent=: ;;
14139
14140 # This is an error.
14141 -*) as_fn_error $? "unrecognized option: \`$1'
14142 Try \`$0 --help' for more information." ;;
14143
14144 *) as_fn_append ac_config_targets " $1"
14145 ac_need_defaults=false ;;
14146
14147 esac
14148 shift
14149 done
14150
14151 ac_configure_extra_args=
14152
14153 if $ac_cs_silent; then
14154 exec 6>/dev/null
14155 ac_configure_extra_args="$ac_configure_extra_args --silent"
14156 fi
14157
14158 _ACEOF
14159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14160 if \$ac_cs_recheck; then
14161 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14162 shift
14163 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14164 CONFIG_SHELL='$SHELL'
14165 export CONFIG_SHELL
14166 exec "\$@"
14167 fi
14168
14169 _ACEOF
14170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14171 exec 5>>config.log
14172 {
14173 echo
14174 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14175 ## Running $as_me. ##
14176 _ASBOX
14177 $as_echo "$ac_log"
14178 } >&5
14179
14180 _ACEOF
14181 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14182 #
14183 # INIT-COMMANDS
14184 #
14185 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14186
14187
14188 # The HP-UX ksh and POSIX shell print the target directory to stdout
14189 # if CDPATH is set.
14190 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14191
14192 sed_quote_subst='$sed_quote_subst'
14193 double_quote_subst='$double_quote_subst'
14194 delay_variable_subst='$delay_variable_subst'
14195 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14196 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14197 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14198 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14199 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14200 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14201 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14202 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14203 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14204 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14205 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14206 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14207 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14208 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14209 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14210 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14211 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14212 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14213 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14214 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14215 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14216 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14217 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14218 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14219 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14220 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14221 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14222 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14223 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14224 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14225 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14226 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14227 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14228 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14229 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14230 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14231 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14232 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14233 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14234 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14235 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14236 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14237 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14238 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14239 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14240 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14241 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14242 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14243 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14244 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14245 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14246 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14247 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14248 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14249 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14250 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
14251 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14252 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14253 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14254 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14255 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14256 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14257 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14258 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14259 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14260 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14261 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14262 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14263 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14264 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14265 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14266 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14267 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14268 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14269 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14270 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14271 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14272 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14273 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14274 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14275 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14276 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14277 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14278 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14279 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14280 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14281 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14282 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14283 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14284 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14285 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14286 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14287 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14288 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14289 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14290 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14291 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14292 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14293 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14294 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14295 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14296 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14297 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14298 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14299 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14300 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14301 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14302 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14303 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14304 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14305 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14306 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14307 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14308 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14309 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14310 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14311 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14312 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14313 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14314 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14315 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14316 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14317 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14318 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14319 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14320 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14321 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14322 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14323 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14324 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14325
14326 LTCC='$LTCC'
14327 LTCFLAGS='$LTCFLAGS'
14328 compiler='$compiler_DEFAULT'
14329
14330 # A function that is used when there is no print builtin or printf.
14331 func_fallback_echo ()
14332 {
14333 eval 'cat <<_LTECHO_EOF
14334 \$1
14335 _LTECHO_EOF'
14336 }
14337
14338 # Quote evaled strings.
14339 for var in SHELL \
14340 ECHO \
14341 SED \
14342 GREP \
14343 EGREP \
14344 FGREP \
14345 LD \
14346 NM \
14347 LN_S \
14348 lt_SP2NL \
14349 lt_NL2SP \
14350 reload_flag \
14351 OBJDUMP \
14352 deplibs_check_method \
14353 file_magic_cmd \
14354 file_magic_glob \
14355 want_nocaseglob \
14356 DLLTOOL \
14357 sharedlib_from_linklib_cmd \
14358 AR \
14359 AR_FLAGS \
14360 archiver_list_spec \
14361 STRIP \
14362 RANLIB \
14363 CC \
14364 CFLAGS \
14365 compiler \
14366 lt_cv_sys_global_symbol_pipe \
14367 lt_cv_sys_global_symbol_to_cdecl \
14368 lt_cv_sys_global_symbol_to_c_name_address \
14369 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14370 nm_file_list_spec \
14371 lt_prog_compiler_no_builtin_flag \
14372 lt_prog_compiler_pic \
14373 lt_prog_compiler_wl \
14374 lt_prog_compiler_static \
14375 lt_cv_prog_compiler_c_o \
14376 need_locks \
14377 MANIFEST_TOOL \
14378 DSYMUTIL \
14379 NMEDIT \
14380 LIPO \
14381 OTOOL \
14382 OTOOL64 \
14383 shrext_cmds \
14384 export_dynamic_flag_spec \
14385 whole_archive_flag_spec \
14386 compiler_needs_object \
14387 with_gnu_ld \
14388 allow_undefined_flag \
14389 no_undefined_flag \
14390 hardcode_libdir_flag_spec \
14391 hardcode_libdir_flag_spec_ld \
14392 hardcode_libdir_separator \
14393 exclude_expsyms \
14394 include_expsyms \
14395 file_list_spec \
14396 variables_saved_for_relink \
14397 libname_spec \
14398 library_names_spec \
14399 soname_spec \
14400 install_override_mode \
14401 finish_eval \
14402 old_striplib \
14403 striplib; do
14404 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14405 *[\\\\\\\`\\"\\\$]*)
14406 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14407 ;;
14408 *)
14409 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14410 ;;
14411 esac
14412 done
14413
14414 # Double-quote double-evaled strings.
14415 for var in reload_cmds \
14416 old_postinstall_cmds \
14417 old_postuninstall_cmds \
14418 old_archive_cmds \
14419 extract_expsyms_cmds \
14420 old_archive_from_new_cmds \
14421 old_archive_from_expsyms_cmds \
14422 archive_cmds \
14423 archive_expsym_cmds \
14424 module_cmds \
14425 module_expsym_cmds \
14426 export_symbols_cmds \
14427 prelink_cmds \
14428 postlink_cmds \
14429 postinstall_cmds \
14430 postuninstall_cmds \
14431 finish_cmds \
14432 sys_lib_search_path_spec \
14433 sys_lib_dlsearch_path_spec; do
14434 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14435 *[\\\\\\\`\\"\\\$]*)
14436 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14437 ;;
14438 *)
14439 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14440 ;;
14441 esac
14442 done
14443
14444 ac_aux_dir='$ac_aux_dir'
14445 xsi_shell='$xsi_shell'
14446 lt_shell_append='$lt_shell_append'
14447
14448 # See if we are running on zsh, and set the options which allow our
14449 # commands through without removal of \ escapes INIT.
14450 if test -n "\${ZSH_VERSION+set}" ; then
14451 setopt NO_GLOB_SUBST
14452 fi
14453
14454
14455 PACKAGE='$PACKAGE'
14456 VERSION='$VERSION'
14457 TIMESTAMP='$TIMESTAMP'
14458 RM='$RM'
14459 ofile='$ofile'
14460
14461
14462
14463
14464 _ACEOF
14465
14466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14467
14468 # Handling of arguments.
14469 for ac_config_target in $ac_config_targets
14470 do
14471 case $ac_config_target in
14472 "sb-config.h") CONFIG_HEADERS="$CONFIG_HEADERS sb-config.h" ;;
14473 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14474 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14475 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14476 "gw/Makefile") CONFIG_FILES="$CONFIG_FILES gw/Makefile" ;;
14477 "rpm/sqlbox.spec") CONFIG_FILES="$CONFIG_FILES rpm/sqlbox.spec" ;;
14478
14479 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14480 esac
14481 done
14482
14483
14484 # If the user did not use the arguments to specify the items to instantiate,
14485 # then the envvar interface is used. Set only those that are not.
14486 # We use the long form for the default assignment because of an extremely
14487 # bizarre bug on SunOS 4.1.3.
14488 if $ac_need_defaults; then
14489 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14490 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14491 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14492 fi
14493
14494 # Have a temporary directory for convenience. Make it in the build tree
14495 # simply because there is no reason against having it here, and in addition,
14496 # creating and moving files from /tmp can sometimes cause problems.
14497 # Hook for its removal unless debugging.
14498 # Note that there is a small window in which the directory will not be cleaned:
14499 # after its creation but before its name has been assigned to `$tmp'.
14500 $debug ||
14501 {
14502 tmp= ac_tmp=
14503 trap 'exit_status=$?
14504 : "${ac_tmp:=$tmp}"
14505 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14506 ' 0
14507 trap 'as_fn_exit 1' 1 2 13 15
14508 }
14509 # Create a (secure) tmp directory for tmp files.
14510
14511 {
14512 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14513 test -d "$tmp"
14514 } ||
14515 {
14516 tmp=./conf$$-$RANDOM
14517 (umask 077 && mkdir "$tmp")
14518 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14519 ac_tmp=$tmp
14520
14521 # Set up the scripts for CONFIG_FILES section.
14522 # No need to generate them if there are no CONFIG_FILES.
14523 # This happens for instance with `./config.status config.h'.
14524 if test -n "$CONFIG_FILES"; then
14525
14526
14527 ac_cr=`echo X | tr X '\015'`
14528 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14529 # But we know of no other shell where ac_cr would be empty at this
14530 # point, so we can use a bashism as a fallback.
14531 if test "x$ac_cr" = x; then
14532 eval ac_cr=\$\'\\r\'
14533 fi
14534 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14535 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14536 ac_cs_awk_cr='\\r'
14537 else
14538 ac_cs_awk_cr=$ac_cr
14539 fi
14540
14541 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14542 _ACEOF
14543
14544
14545 {
14546 echo "cat >conf$$subs.awk <<_ACEOF" &&
14547 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14548 echo "_ACEOF"
14549 } >conf$$subs.sh ||
14550 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14551 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14552 ac_delim='%!_!# '
14553 for ac_last_try in false false false false false :; do
14554 . ./conf$$subs.sh ||
14555 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14556
14557 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14558 if test $ac_delim_n = $ac_delim_num; then
14559 break
14560 elif $ac_last_try; then
14561 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14562 else
14563 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14564 fi
14565 done
14566 rm -f conf$$subs.sh
14567
14568 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14569 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14570 _ACEOF
14571 sed -n '
14572 h
14573 s/^/S["/; s/!.*/"]=/
14574 p
14575 g
14576 s/^[^!]*!//
14577 :repl
14578 t repl
14579 s/'"$ac_delim"'$//
14580 t delim
14581 :nl
14582 h
14583 s/\(.\{148\}\)..*/\1/
14584 t more1
14585 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14586 p
14587 n
14588 b repl
14589 :more1
14590 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14591 p
14592 g
14593 s/.\{148\}//
14594 t nl
14595 :delim
14596 h
14597 s/\(.\{148\}\)..*/\1/
14598 t more2
14599 s/["\\]/\\&/g; s/^/"/; s/$/"/
14600 p
14601 b
14602 :more2
14603 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14604 p
14605 g
14606 s/.\{148\}//
14607 t delim
14608 ' <conf$$subs.awk | sed '
14609 /^[^""]/{
14610 N
14611 s/\n//
14612 }
14613 ' >>$CONFIG_STATUS || ac_write_fail=1
14614 rm -f conf$$subs.awk
14615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14616 _ACAWK
14617 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14618 for (key in S) S_is_set[key] = 1
14619 FS = ""
14620
14621 }
14622 {
14623 line = $ 0
14624 nfields = split(line, field, "@")
14625 substed = 0
14626 len = length(field[1])
14627 for (i = 2; i < nfields; i++) {
14628 key = field[i]
14629 keylen = length(key)
14630 if (S_is_set[key]) {
14631 value = S[key]
14632 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14633 len += length(value) + length(field[++i])
14634 substed = 1
14635 } else
14636 len += 1 + keylen
14637 }
14638
14639 print line
14640 }
14641
14642 _ACAWK
14643 _ACEOF
14644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14645 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14646 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14647 else
14648 cat
14649 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14650 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14651 _ACEOF
14652
14653 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14654 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14655 # trailing colons and then remove the whole line if VPATH becomes empty
14656 # (actually we leave an empty line to preserve line numbers).
14657 if test "x$srcdir" = x.; then
14658 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14659 h
14660 s///
14661 s/^/:/
14662 s/[ ]*$/:/
14663 s/:\$(srcdir):/:/g
14664 s/:\${srcdir}:/:/g
14665 s/:@srcdir@:/:/g
14666 s/^:*//
14667 s/:*$//
14668 x
14669 s/\(=[ ]*\).*/\1/
14670 G
14671 s/\n//
14672 s/^[^=]*=[ ]*$//
14673 }'
14674 fi
14675
14676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14677 fi # test -n "$CONFIG_FILES"
14678
14679 # Set up the scripts for CONFIG_HEADERS section.
14680 # No need to generate them if there are no CONFIG_HEADERS.
14681 # This happens for instance with `./config.status Makefile'.
14682 if test -n "$CONFIG_HEADERS"; then
14683 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14684 BEGIN {
14685 _ACEOF
14686
14687 # Transform confdefs.h into an awk script `defines.awk', embedded as
14688 # here-document in config.status, that substitutes the proper values into
14689 # config.h.in to produce config.h.
14690
14691 # Create a delimiter string that does not exist in confdefs.h, to ease
14692 # handling of long lines.
14693 ac_delim='%!_!# '
14694 for ac_last_try in false false :; do
14695 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14696 if test -z "$ac_tt"; then
14697 break
14698 elif $ac_last_try; then
14699 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14700 else
14701 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14702 fi
14703 done
14704
14705 # For the awk script, D is an array of macro values keyed by name,
14706 # likewise P contains macro parameters if any. Preserve backslash
14707 # newline sequences.
14708
14709 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14710 sed -n '
14711 s/.\{148\}/&'"$ac_delim"'/g
14712 t rset
14713 :rset
14714 s/^[ ]*#[ ]*define[ ][ ]*/ /
14715 t def
14716 d
14717 :def
14718 s/\\$//
14719 t bsnl
14720 s/["\\]/\\&/g
14721 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14722 D["\1"]=" \3"/p
14723 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14724 d
14725 :bsnl
14726 s/["\\]/\\&/g
14727 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14728 D["\1"]=" \3\\\\\\n"\\/p
14729 t cont
14730 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14731 t cont
14732 d
14733 :cont
14734 n
14735 s/.\{148\}/&'"$ac_delim"'/g
14736 t clear
14737 :clear
14738 s/\\$//
14739 t bsnlc
14740 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14741 d
14742 :bsnlc
14743 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14744 b cont
14745 ' <confdefs.h | sed '
14746 s/'"$ac_delim"'/"\\\
14747 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14748
14749 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14750 for (key in D) D_is_set[key] = 1
14751 FS = ""
14752 }
14753 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14754 line = \$ 0
14755 split(line, arg, " ")
14756 if (arg[1] == "#") {
14757 defundef = arg[2]
14758 mac1 = arg[3]
14759 } else {
14760 defundef = substr(arg[1], 2)
14761 mac1 = arg[2]
14762 }
14763 split(mac1, mac2, "(") #)
14764 macro = mac2[1]
14765 prefix = substr(line, 1, index(line, defundef) - 1)
14766 if (D_is_set[macro]) {
14767 # Preserve the white space surrounding the "#".
14768 print prefix "define", macro P[macro] D[macro]
14769 next
14770 } else {
14771 # Replace #undef with comments. This is necessary, for example,
14772 # in the case of _POSIX_SOURCE, which is predefined and required
14773 # on some systems where configure will not decide to define it.
14774 if (defundef == "undef") {
14775 print "/*", prefix defundef, macro, "*/"
14776 next
14777 }
14778 }
14779 }
14780 { print }
14781 _ACAWK
14782 _ACEOF
14783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14784 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14785 fi # test -n "$CONFIG_HEADERS"
14786
14787
14788 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14789 shift
14790 for ac_tag
14791 do
14792 case $ac_tag in
14793 :[FHLC]) ac_mode=$ac_tag; continue;;
14794 esac
14795 case $ac_mode$ac_tag in
14796 :[FHL]*:*);;
14797 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14798 :[FH]-) ac_tag=-:-;;
14799 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14800 esac
14801 ac_save_IFS=$IFS
14802 IFS=:
14803 set x $ac_tag
14804 IFS=$ac_save_IFS
14805 shift
14806 ac_file=$1
14807 shift
14808
14809 case $ac_mode in
14810 :L) ac_source=$1;;
14811 :[FH])
14812 ac_file_inputs=
14813 for ac_f
14814 do
14815 case $ac_f in
14816 -) ac_f="$ac_tmp/stdin";;
14817 *) # Look for the file first in the build tree, then in the source tree
14818 # (if the path is not absolute). The absolute path cannot be DOS-style,
14819 # because $ac_f cannot contain `:'.
14820 test -f "$ac_f" ||
14821 case $ac_f in
14822 [\\/$]*) false;;
14823 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14824 esac ||
14825 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14826 esac
14827 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14828 as_fn_append ac_file_inputs " '$ac_f'"
14829 done
14830
14831 # Let's still pretend it is `configure' which instantiates (i.e., don't
14832 # use $as_me), people would be surprised to read:
14833 # /* config.h. Generated by config.status. */
14834 configure_input='Generated from '`
14835 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14836 `' by configure.'
14837 if test x"$ac_file" != x-; then
14838 configure_input="$ac_file. $configure_input"
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14840 $as_echo "$as_me: creating $ac_file" >&6;}
14841 fi
14842 # Neutralize special characters interpreted by sed in replacement strings.
14843 case $configure_input in #(
14844 *\&* | *\|* | *\\* )
14845 ac_sed_conf_input=`$as_echo "$configure_input" |
14846 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14847 *) ac_sed_conf_input=$configure_input;;
14848 esac
14849
14850 case $ac_tag in
14851 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14852 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14853 esac
14854 ;;
14855 esac
14856
14857 ac_dir=`$as_dirname -- "$ac_file" ||
14858 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14859 X"$ac_file" : 'X\(//\)[^/]' \| \
14860 X"$ac_file" : 'X\(//\)$' \| \
14861 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14862 $as_echo X"$ac_file" |
14863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14864 s//\1/
14865 q
14866 }
14867 /^X\(\/\/\)[^/].*/{
14868 s//\1/
14869 q
14870 }
14871 /^X\(\/\/\)$/{
14872 s//\1/
14873 q
14874 }
14875 /^X\(\/\).*/{
14876 s//\1/
14877 q
14878 }
14879 s/.*/./; q'`
14880 as_dir="$ac_dir"; as_fn_mkdir_p
14881 ac_builddir=.
14882
14883 case "$ac_dir" in
14884 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14885 *)
14886 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14887 # A ".." for each directory in $ac_dir_suffix.
14888 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14889 case $ac_top_builddir_sub in
14890 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14891 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14892 esac ;;
14893 esac
14894 ac_abs_top_builddir=$ac_pwd
14895 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14896 # for backward compatibility:
14897 ac_top_builddir=$ac_top_build_prefix
14898
14899 case $srcdir in
14900 .) # We are building in place.
14901 ac_srcdir=.
14902 ac_top_srcdir=$ac_top_builddir_sub
14903 ac_abs_top_srcdir=$ac_pwd ;;
14904 [\\/]* | ?:[\\/]* ) # Absolute name.
14905 ac_srcdir=$srcdir$ac_dir_suffix;
14906 ac_top_srcdir=$srcdir
14907 ac_abs_top_srcdir=$srcdir ;;
14908 *) # Relative name.
14909 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14910 ac_top_srcdir=$ac_top_build_prefix$srcdir
14911 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14912 esac
14913 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14914
14915
14916 case $ac_mode in
14917 :F)
14918 #
14919 # CONFIG_FILE
14920 #
14921
14922 case $INSTALL in
14923 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14924 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14925 esac
14926 ac_MKDIR_P=$MKDIR_P
14927 case $MKDIR_P in
14928 [\\/$]* | ?:[\\/]* ) ;;
14929 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14930 esac
14931 _ACEOF
14932
14933 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14934 # If the template does not know about datarootdir, expand it.
14935 # FIXME: This hack should be removed a few years after 2.60.
14936 ac_datarootdir_hack=; ac_datarootdir_seen=
14937 ac_sed_dataroot='
14938 /datarootdir/ {
14939 p
14940 q
14941 }
14942 /@datadir@/p
14943 /@docdir@/p
14944 /@infodir@/p
14945 /@localedir@/p
14946 /@mandir@/p'
14947 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14948 *datarootdir*) ac_datarootdir_seen=yes;;
14949 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14951 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14952 _ACEOF
14953 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14954 ac_datarootdir_hack='
14955 s&@datadir@&$datadir&g
14956 s&@docdir@&$docdir&g
14957 s&@infodir@&$infodir&g
14958 s&@localedir@&$localedir&g
14959 s&@mandir@&$mandir&g
14960 s&\\\${datarootdir}&$datarootdir&g' ;;
14961 esac
14962 _ACEOF
14963
14964 # Neutralize VPATH when `$srcdir' = `.'.
14965 # Shell code in configure.ac might set extrasub.
14966 # FIXME: do we really want to maintain this feature?
14967 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14968 ac_sed_extra="$ac_vpsub
14969 $extrasub
14970 _ACEOF
14971 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14972 :t
14973 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14974 s|@configure_input@|$ac_sed_conf_input|;t t
14975 s&@top_builddir@&$ac_top_builddir_sub&;t t
14976 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14977 s&@srcdir@&$ac_srcdir&;t t
14978 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14979 s&@top_srcdir@&$ac_top_srcdir&;t t
14980 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14981 s&@builddir@&$ac_builddir&;t t
14982 s&@abs_builddir@&$ac_abs_builddir&;t t
14983 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14984 s&@INSTALL@&$ac_INSTALL&;t t
14985 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14986 $ac_datarootdir_hack
14987 "
14988 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14989 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14990
14991 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14992 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14993 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14994 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14996 which seems to be undefined. Please make sure it is defined" >&5
14997 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14998 which seems to be undefined. Please make sure it is defined" >&2;}
14999
15000 rm -f "$ac_tmp/stdin"
15001 case $ac_file in
15002 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15003 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15004 esac \
15005 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15006 ;;
15007 :H)
15008 #
15009 # CONFIG_HEADER
15010 #
15011 if test x"$ac_file" != x-; then
15012 {
15013 $as_echo "/* $configure_input */" \
15014 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15015 } >"$ac_tmp/config.h" \
15016 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15017 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15019 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15020 else
15021 rm -f "$ac_file"
15022 mv "$ac_tmp/config.h" "$ac_file" \
15023 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15024 fi
15025 else
15026 $as_echo "/* $configure_input */" \
15027 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15028 || as_fn_error $? "could not create -" "$LINENO" 5
15029 fi
15030 # Compute "$ac_file"'s index in $config_headers.
15031 _am_arg="$ac_file"
15032 _am_stamp_count=1
15033 for _am_header in $config_headers :; do
15034 case $_am_header in
15035 $_am_arg | $_am_arg:* )
15036 break ;;
15037 * )
15038 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15039 esac
15040 done
15041 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15042 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15043 X"$_am_arg" : 'X\(//\)[^/]' \| \
15044 X"$_am_arg" : 'X\(//\)$' \| \
15045 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15046 $as_echo X"$_am_arg" |
15047 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15048 s//\1/
15049 q
15050 }
15051 /^X\(\/\/\)[^/].*/{
15052 s//\1/
15053 q
15054 }
15055 /^X\(\/\/\)$/{
15056 s//\1/
15057 q
15058 }
15059 /^X\(\/\).*/{
15060 s//\1/
15061 q
15062 }
15063 s/.*/./; q'`/stamp-h$_am_stamp_count
15064 ;;
15065
15066 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15067 $as_echo "$as_me: executing $ac_file commands" >&6;}
15068 ;;
15069 esac
15070
15071
15072 case $ac_file$ac_mode in
15073 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15074 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15075 # are listed without --file. Let's play safe and only enable the eval
15076 # if we detect the quoting.
15077 case $CONFIG_FILES in
15078 *\'*) eval set x "$CONFIG_FILES" ;;
15079 *) set x $CONFIG_FILES ;;
15080 esac
15081 shift
15082 for mf
15083 do
15084 # Strip MF so we end up with the name of the file.
15085 mf=`echo "$mf" | sed -e 's/:.*$//'`
15086 # Check whether this is an Automake generated Makefile or not.
15087 # We used to match only the files named `Makefile.in', but
15088 # some people rename them; so instead we look at the file content.
15089 # Grep'ing the first line is not enough: some people post-process
15090 # each Makefile.in and add a new line on top of each file to say so.
15091 # Grep'ing the whole file is not good either: AIX grep has a line
15092 # limit of 2048, but all sed's we know have understand at least 4000.
15093 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15094 dirpart=`$as_dirname -- "$mf" ||
15095 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15096 X"$mf" : 'X\(//\)[^/]' \| \
15097 X"$mf" : 'X\(//\)$' \| \
15098 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15099 $as_echo X"$mf" |
15100 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15101 s//\1/
15102 q
15103 }
15104 /^X\(\/\/\)[^/].*/{
15105 s//\1/
15106 q
15107 }
15108 /^X\(\/\/\)$/{
15109 s//\1/
15110 q
15111 }
15112 /^X\(\/\).*/{
15113 s//\1/
15114 q
15115 }
15116 s/.*/./; q'`
15117 else
15118 continue
15119 fi
15120 # Extract the definition of DEPDIR, am__include, and am__quote
15121 # from the Makefile without running `make'.
15122 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15123 test -z "$DEPDIR" && continue
15124 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15125 test -z "am__include" && continue
15126 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15127 # When using ansi2knr, U may be empty or an underscore; expand it
15128 U=`sed -n 's/^U = //p' < "$mf"`
15129 # Find all dependency output files, they are included files with
15130 # $(DEPDIR) in their names. We invoke sed twice because it is the
15131 # simplest approach to changing $(DEPDIR) to its actual value in the
15132 # expansion.
15133 for file in `sed -n "
15134 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15135 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15136 # Make sure the directory exists.
15137 test -f "$dirpart/$file" && continue
15138 fdir=`$as_dirname -- "$file" ||
15139 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15140 X"$file" : 'X\(//\)[^/]' \| \
15141 X"$file" : 'X\(//\)$' \| \
15142 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15143 $as_echo X"$file" |
15144 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15145 s//\1/
15146 q
15147 }
15148 /^X\(\/\/\)[^/].*/{
15149 s//\1/
15150 q
15151 }
15152 /^X\(\/\/\)$/{
15153 s//\1/
15154 q
15155 }
15156 /^X\(\/\).*/{
15157 s//\1/
15158 q
15159 }
15160 s/.*/./; q'`
15161 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15162 # echo "creating $dirpart/$file"
15163 echo '# dummy' > "$dirpart/$file"
15164 done
15165 done
15166 }
15167 ;;
15168 "libtool":C)
15169
15170 # See if we are running on zsh, and set the options which allow our
15171 # commands through without removal of \ escapes.
15172 if test -n "${ZSH_VERSION+set}" ; then
15173 setopt NO_GLOB_SUBST
15174 fi
15175
15176 cfgfile="${ofile}T"
15177 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15178 $RM "$cfgfile"
15179
15180 cat <<_LT_EOF >> "$cfgfile"
15181 #! $SHELL
15182
15183 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15184 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15185 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15186 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15187 #
15188 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15189 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
15190 # Inc.
15191 # Written by Gordon Matzigkeit, 1996
15192 #
15193 # This file is part of GNU Libtool.
15194 #
15195 # GNU Libtool is free software; you can redistribute it and/or
15196 # modify it under the terms of the GNU General Public License as
15197 # published by the Free Software Foundation; either version 2 of
15198 # the License, or (at your option) any later version.
15199 #
15200 # As a special exception to the GNU General Public License,
15201 # if you distribute this file as part of a program or library that
15202 # is built using GNU Libtool, you may include this file under the
15203 # same distribution terms that you use for the rest of that program.
15204 #
15205 # GNU Libtool is distributed in the hope that it will be useful,
15206 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15207 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15208 # GNU General Public License for more details.
15209 #
15210 # You should have received a copy of the GNU General Public License
15211 # along with GNU Libtool; see the file COPYING. If not, a copy
15212 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15213 # obtained by writing to the Free Software Foundation, Inc.,
15214 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15215
15216
15217 # The names of the tagged configurations supported by this script.
15218 available_tags=""
15219
15220 # ### BEGIN LIBTOOL CONFIG
15221
15222 # Which release of libtool.m4 was used?
15223 macro_version=$macro_version
15224 macro_revision=$macro_revision
15225
15226 # Whether or not to build shared libraries.
15227 build_libtool_libs=$enable_shared
15228
15229 # Whether or not to build static libraries.
15230 build_old_libs=$enable_static
15231
15232 # What type of objects to build.
15233 pic_mode=$pic_mode
15234
15235 # Whether or not to optimize for fast installation.
15236 fast_install=$enable_fast_install
15237
15238 # Shell to use when invoking shell scripts.
15239 SHELL=$lt_SHELL
15240
15241 # An echo program that protects backslashes.
15242 ECHO=$lt_ECHO
15243
15244 # The host system.
15245 host_alias=$host_alias
15246 host=$host
15247 host_os=$host_os
15248
15249 # The build system.
15250 build_alias=$build_alias
15251 build=$build
15252 build_os=$build_os
15253
15254 # A sed program that does not truncate output.
15255 SED=$lt_SED
15256
15257 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15258 Xsed="\$SED -e 1s/^X//"
15259
15260 # A grep program that handles long lines.
15261 GREP=$lt_GREP
15262
15263 # An ERE matcher.
15264 EGREP=$lt_EGREP
15265
15266 # A literal string matcher.
15267 FGREP=$lt_FGREP
15268
15269 # A BSD- or MS-compatible name lister.
15270 NM=$lt_NM
15271
15272 # Whether we need soft or hard links.
15273 LN_S=$lt_LN_S
15274
15275 # What is the maximum length of a command?
15276 max_cmd_len=$max_cmd_len
15277
15278 # Object file suffix (normally "o").
15279 objext=$ac_objext
15280
15281 # Executable file suffix (normally "").
15282 exeext=$exeext
15283
15284 # whether the shell understands "unset".
15285 lt_unset=$lt_unset
15286
15287 # turn spaces into newlines.
15288 SP2NL=$lt_lt_SP2NL
15289
15290 # turn newlines into spaces.
15291 NL2SP=$lt_lt_NL2SP
15292
15293 # convert \$build file names to \$host format.
15294 to_host_file_cmd=$lt_cv_to_host_file_cmd
15295
15296 # convert \$build files to toolchain format.
15297 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15298
15299 # An object symbol dumper.
15300 OBJDUMP=$lt_OBJDUMP
15301
15302 # Method to check whether dependent libraries are shared objects.
15303 deplibs_check_method=$lt_deplibs_check_method
15304
15305 # Command to use when deplibs_check_method = "file_magic".
15306 file_magic_cmd=$lt_file_magic_cmd
15307
15308 # How to find potential files when deplibs_check_method = "file_magic".
15309 file_magic_glob=$lt_file_magic_glob
15310
15311 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15312 want_nocaseglob=$lt_want_nocaseglob
15313
15314 # DLL creation program.
15315 DLLTOOL=$lt_DLLTOOL
15316
15317 # Command to associate shared and link libraries.
15318 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15319
15320 # The archiver.
15321 AR=$lt_AR
15322
15323 # Flags to create an archive.
15324 AR_FLAGS=$lt_AR_FLAGS
15325
15326 # How to feed a file listing to the archiver.
15327 archiver_list_spec=$lt_archiver_list_spec
15328
15329 # A symbol stripping program.
15330 STRIP=$lt_STRIP
15331
15332 # Commands used to install an old-style archive.
15333 RANLIB=$lt_RANLIB
15334 old_postinstall_cmds=$lt_old_postinstall_cmds
15335 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15336
15337 # Whether to use a lock for old archive extraction.
15338 lock_old_archive_extraction=$lock_old_archive_extraction
15339
15340 # A C compiler.
15341 LTCC=$lt_CC
15342
15343 # LTCC compiler flags.
15344 LTCFLAGS=$lt_CFLAGS
15345
15346 # Take the output of nm and produce a listing of raw symbols and C names.
15347 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15348
15349 # Transform the output of nm in a proper C declaration.
15350 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15351
15352 # Transform the output of nm in a C name address pair.
15353 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15354
15355 # Transform the output of nm in a C name address pair when lib prefix is needed.
15356 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15357
15358 # Specify filename containing input files for \$NM.
15359 nm_file_list_spec=$lt_nm_file_list_spec
15360
15361 # The root where to search for dependent libraries,and in which our libraries should be installed.
15362 lt_sysroot=$lt_sysroot
15363
15364 # The name of the directory that contains temporary libtool files.
15365 objdir=$objdir
15366
15367 # Used to examine libraries when file_magic_cmd begins with "file".
15368 MAGIC_CMD=$MAGIC_CMD
15369
15370 # Must we lock files when doing compilation?
15371 need_locks=$lt_need_locks
15372
15373 # Manifest tool.
15374 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15375
15376 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15377 DSYMUTIL=$lt_DSYMUTIL
15378
15379 # Tool to change global to local symbols on Mac OS X.
15380 NMEDIT=$lt_NMEDIT
15381
15382 # Tool to manipulate fat objects and archives on Mac OS X.
15383 LIPO=$lt_LIPO
15384
15385 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15386 OTOOL=$lt_OTOOL
15387
15388 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15389 OTOOL64=$lt_OTOOL64
15390
15391 # Old archive suffix (normally "a").
15392 libext=$libext
15393
15394 # Shared library suffix (normally ".so").
15395 shrext_cmds=$lt_shrext_cmds
15396
15397 # The commands to extract the exported symbol list from a shared archive.
15398 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15399
15400 # Variables whose values should be saved in libtool wrapper scripts and
15401 # restored at link time.
15402 variables_saved_for_relink=$lt_variables_saved_for_relink
15403
15404 # Do we need the "lib" prefix for modules?
15405 need_lib_prefix=$need_lib_prefix
15406
15407 # Do we need a version for libraries?
15408 need_version=$need_version
15409
15410 # Library versioning type.
15411 version_type=$version_type
15412
15413 # Shared library runtime path variable.
15414 runpath_var=$runpath_var
15415
15416 # Shared library path variable.
15417 shlibpath_var=$shlibpath_var
15418
15419 # Is shlibpath searched before the hard-coded library search path?
15420 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15421
15422 # Format of library name prefix.
15423 libname_spec=$lt_libname_spec
15424
15425 # List of archive names. First name is the real one, the rest are links.
15426 # The last name is the one that the linker finds with -lNAME
15427 library_names_spec=$lt_library_names_spec
15428
15429 # The coded name of the library, if different from the real name.
15430 soname_spec=$lt_soname_spec
15431
15432 # Permission mode override for installation of shared libraries.
15433 install_override_mode=$lt_install_override_mode
15434
15435 # Command to use after installation of a shared archive.
15436 postinstall_cmds=$lt_postinstall_cmds
15437
15438 # Command to use after uninstallation of a shared archive.
15439 postuninstall_cmds=$lt_postuninstall_cmds
15440
15441 # Commands used to finish a libtool library installation in a directory.
15442 finish_cmds=$lt_finish_cmds
15443
15444 # As "finish_cmds", except a single script fragment to be evaled but
15445 # not shown.
15446 finish_eval=$lt_finish_eval
15447
15448 # Whether we should hardcode library paths into libraries.
15449 hardcode_into_libs=$hardcode_into_libs
15450
15451 # Compile-time system search path for libraries.
15452 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15453
15454 # Run-time system search path for libraries.
15455 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15456
15457 # Whether dlopen is supported.
15458 dlopen_support=$enable_dlopen
15459
15460 # Whether dlopen of programs is supported.
15461 dlopen_self=$enable_dlopen_self
15462
15463 # Whether dlopen of statically linked programs is supported.
15464 dlopen_self_static=$enable_dlopen_self_static
15465
15466 # Commands to strip libraries.
15467 old_striplib=$lt_old_striplib
15468 striplib=$lt_striplib
15469
15470
15471 # The linker used to build libraries.
15472 LD=$lt_LD
15473
15474 # How to create reloadable object files.
15475 reload_flag=$lt_reload_flag
15476 reload_cmds=$lt_reload_cmds
15477
15478 # Commands used to build an old-style archive.
15479 old_archive_cmds=$lt_old_archive_cmds
15480
15481 # A language specific compiler.
15482 CC=$lt_compiler
15483
15484 # Is the compiler the GNU compiler?
15485 with_gcc=$GCC
15486
15487 # Compiler flag to turn off builtin functions.
15488 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15489
15490 # Additional compiler flags for building library objects.
15491 pic_flag=$lt_lt_prog_compiler_pic
15492
15493 # How to pass a linker flag through the compiler.
15494 wl=$lt_lt_prog_compiler_wl
15495
15496 # Compiler flag to prevent dynamic linking.
15497 link_static_flag=$lt_lt_prog_compiler_static
15498
15499 # Does compiler simultaneously support -c and -o options?
15500 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15501
15502 # Whether or not to add -lc for building shared libraries.
15503 build_libtool_need_lc=$archive_cmds_need_lc
15504
15505 # Whether or not to disallow shared libs when runtime libs are static.
15506 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15507
15508 # Compiler flag to allow reflexive dlopens.
15509 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15510
15511 # Compiler flag to generate shared objects directly from archives.
15512 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15513
15514 # Whether the compiler copes with passing no objects directly.
15515 compiler_needs_object=$lt_compiler_needs_object
15516
15517 # Create an old-style archive from a shared archive.
15518 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15519
15520 # Create a temporary old-style archive to link instead of a shared archive.
15521 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15522
15523 # Commands used to build a shared archive.
15524 archive_cmds=$lt_archive_cmds
15525 archive_expsym_cmds=$lt_archive_expsym_cmds
15526
15527 # Commands used to build a loadable module if different from building
15528 # a shared archive.
15529 module_cmds=$lt_module_cmds
15530 module_expsym_cmds=$lt_module_expsym_cmds
15531
15532 # Whether we are building with GNU ld or not.
15533 with_gnu_ld=$lt_with_gnu_ld
15534
15535 # Flag that allows shared libraries with undefined symbols to be built.
15536 allow_undefined_flag=$lt_allow_undefined_flag
15537
15538 # Flag that enforces no undefined symbols.
15539 no_undefined_flag=$lt_no_undefined_flag
15540
15541 # Flag to hardcode \$libdir into a binary during linking.
15542 # This must work even if \$libdir does not exist
15543 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15544
15545 # If ld is used when linking, flag to hardcode \$libdir into a binary
15546 # during linking. This must work even if \$libdir does not exist.
15547 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15548
15549 # Whether we need a single "-rpath" flag with a separated argument.
15550 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15551
15552 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15553 # DIR into the resulting binary.
15554 hardcode_direct=$hardcode_direct
15555
15556 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15557 # DIR into the resulting binary and the resulting library dependency is
15558 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15559 # library is relocated.
15560 hardcode_direct_absolute=$hardcode_direct_absolute
15561
15562 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15563 # into the resulting binary.
15564 hardcode_minus_L=$hardcode_minus_L
15565
15566 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15567 # into the resulting binary.
15568 hardcode_shlibpath_var=$hardcode_shlibpath_var
15569
15570 # Set to "yes" if building a shared library automatically hardcodes DIR
15571 # into the library and all subsequent libraries and executables linked
15572 # against it.
15573 hardcode_automatic=$hardcode_automatic
15574
15575 # Set to yes if linker adds runtime paths of dependent libraries
15576 # to runtime path list.
15577 inherit_rpath=$inherit_rpath
15578
15579 # Whether libtool must link a program against all its dependency libraries.
15580 link_all_deplibs=$link_all_deplibs
15581
15582 # Set to "yes" if exported symbols are required.
15583 always_export_symbols=$always_export_symbols
15584
15585 # The commands to list exported symbols.
15586 export_symbols_cmds=$lt_export_symbols_cmds
15587
15588 # Symbols that should not be listed in the preloaded symbols.
15589 exclude_expsyms=$lt_exclude_expsyms
15590
15591 # Symbols that must always be exported.
15592 include_expsyms=$lt_include_expsyms
15593
15594 # Commands necessary for linking programs (against libraries) with templates.
15595 prelink_cmds=$lt_prelink_cmds
15596
15597 # Commands necessary for finishing linking programs.
15598 postlink_cmds=$lt_postlink_cmds
15599
15600 # Specify filename containing input files.
15601 file_list_spec=$lt_file_list_spec
15602
15603 # How to hardcode a shared library path into an executable.
15604 hardcode_action=$hardcode_action
15605
15606 # ### END LIBTOOL CONFIG
15607
15608 _LT_EOF
15609
15610 case $host_os in
15611 aix3*)
15612 cat <<\_LT_EOF >> "$cfgfile"
15613 # AIX sometimes has problems with the GCC collect2 program. For some
15614 # reason, if we set the COLLECT_NAMES environment variable, the problems
15615 # vanish in a puff of smoke.
15616 if test "X${COLLECT_NAMES+set}" != Xset; then
15617 COLLECT_NAMES=
15618 export COLLECT_NAMES
15619 fi
15620 _LT_EOF
15621 ;;
15622 esac
15623
15624
15625 ltmain="$ac_aux_dir/ltmain.sh"
15626
15627
15628 # We use sed instead of cat because bash on DJGPP gets confused if
15629 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15630 # text mode, it properly converts lines to CR/LF. This bash problem
15631 # is reportedly fixed, but why not run on old versions too?
15632 sed '$q' "$ltmain" >> "$cfgfile" \
15633 || (rm -f "$cfgfile"; exit 1)
15634
15635 if test x"$xsi_shell" = xyes; then
15636 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15637 func_dirname ()\
15638 {\
15639 \ case ${1} in\
15640 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15641 \ * ) func_dirname_result="${3}" ;;\
15642 \ esac\
15643 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15644 && mv -f "$cfgfile.tmp" "$cfgfile" \
15645 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15646 test 0 -eq $? || _lt_function_replace_fail=:
15647
15648
15649 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15650 func_basename ()\
15651 {\
15652 \ func_basename_result="${1##*/}"\
15653 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15654 && mv -f "$cfgfile.tmp" "$cfgfile" \
15655 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15656 test 0 -eq $? || _lt_function_replace_fail=:
15657
15658
15659 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15660 func_dirname_and_basename ()\
15661 {\
15662 \ case ${1} in\
15663 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15664 \ * ) func_dirname_result="${3}" ;;\
15665 \ esac\
15666 \ func_basename_result="${1##*/}"\
15667 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15668 && mv -f "$cfgfile.tmp" "$cfgfile" \
15669 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15670 test 0 -eq $? || _lt_function_replace_fail=:
15671
15672
15673 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15674 func_stripname ()\
15675 {\
15676 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15677 \ # positional parameters, so assign one to ordinary parameter first.\
15678 \ func_stripname_result=${3}\
15679 \ func_stripname_result=${func_stripname_result#"${1}"}\
15680 \ func_stripname_result=${func_stripname_result%"${2}"}\
15681 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15682 && mv -f "$cfgfile.tmp" "$cfgfile" \
15683 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15684 test 0 -eq $? || _lt_function_replace_fail=:
15685
15686
15687 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15688 func_split_long_opt ()\
15689 {\
15690 \ func_split_long_opt_name=${1%%=*}\
15691 \ func_split_long_opt_arg=${1#*=}\
15692 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15693 && mv -f "$cfgfile.tmp" "$cfgfile" \
15694 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15695 test 0 -eq $? || _lt_function_replace_fail=:
15696
15697
15698 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15699 func_split_short_opt ()\
15700 {\
15701 \ func_split_short_opt_arg=${1#??}\
15702 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15703 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15704 && mv -f "$cfgfile.tmp" "$cfgfile" \
15705 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15706 test 0 -eq $? || _lt_function_replace_fail=:
15707
15708
15709 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15710 func_lo2o ()\
15711 {\
15712 \ case ${1} in\
15713 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15714 \ *) func_lo2o_result=${1} ;;\
15715 \ esac\
15716 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15717 && mv -f "$cfgfile.tmp" "$cfgfile" \
15718 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15719 test 0 -eq $? || _lt_function_replace_fail=:
15720
15721
15722 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15723 func_xform ()\
15724 {\
15725 func_xform_result=${1%.*}.lo\
15726 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15727 && mv -f "$cfgfile.tmp" "$cfgfile" \
15728 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15729 test 0 -eq $? || _lt_function_replace_fail=:
15730
15731
15732 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15733 func_arith ()\
15734 {\
15735 func_arith_result=$(( $* ))\
15736 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15737 && mv -f "$cfgfile.tmp" "$cfgfile" \
15738 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15739 test 0 -eq $? || _lt_function_replace_fail=:
15740
15741
15742 sed -e '/^func_len ()$/,/^} # func_len /c\
15743 func_len ()\
15744 {\
15745 func_len_result=${#1}\
15746 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15747 && mv -f "$cfgfile.tmp" "$cfgfile" \
15748 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15749 test 0 -eq $? || _lt_function_replace_fail=:
15750
15751 fi
15752
15753 if test x"$lt_shell_append" = xyes; then
15754 sed -e '/^func_append ()$/,/^} # func_append /c\
15755 func_append ()\
15756 {\
15757 eval "${1}+=\\${2}"\
15758 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15759 && mv -f "$cfgfile.tmp" "$cfgfile" \
15760 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15761 test 0 -eq $? || _lt_function_replace_fail=:
15762
15763
15764 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15765 func_append_quoted ()\
15766 {\
15767 \ func_quote_for_eval "${2}"\
15768 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15769 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15770 && mv -f "$cfgfile.tmp" "$cfgfile" \
15771 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15772 test 0 -eq $? || _lt_function_replace_fail=:
15773
15774
15775 # Save a `func_append' function call where possible by direct use of '+='
15776 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15777 && mv -f "$cfgfile.tmp" "$cfgfile" \
15778 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15779 test 0 -eq $? || _lt_function_replace_fail=:
15780 else
15781 # Save a `func_append' function call even when '+=' is not available
15782 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15783 && mv -f "$cfgfile.tmp" "$cfgfile" \
15784 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15785 test 0 -eq $? || _lt_function_replace_fail=:
15786 fi
15787
15788 if test x"$_lt_function_replace_fail" = x":"; then
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15790 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15791 fi
15792
15793
15794 mv -f "$cfgfile" "$ofile" ||
15795 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15796 chmod +x "$ofile"
15797
15798 ;;
15799
15800 esac
15801 done # for ac_tag
15802
15803
15804 as_fn_exit 0
15805 _ACEOF
15806 ac_clean_files=$ac_clean_files_save
15807
15808 test $ac_write_fail = 0 ||
15809 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15810
15811
15812 # configure is writing to config.log, and then calls config.status.
15813 # config.status does its own redirection, appending to config.log.
15814 # Unfortunately, on DOS this fails, as config.log is still kept open
15815 # by configure, so config.status won't be able to write to it; its
15816 # output is simply discarded. So we exec the FD to /dev/null,
15817 # effectively closing config.log, so it can be properly (re)opened and
15818 # appended to by config.status. When coming back to configure, we
15819 # need to make the FD available again.
15820 if test "$no_create" != yes; then
15821 ac_cs_success=:
15822 ac_config_status_args=
15823 test "$silent" = yes &&
15824 ac_config_status_args="$ac_config_status_args --quiet"
15825 exec 5>/dev/null
15826 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15827 exec 5>>config.log
15828 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15829 # would make configure fail if this is the last instruction.
15830 $ac_cs_success || as_fn_exit 1
15831 fi
15832 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15834 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15835 fi
15836
15837
15838
15839
15840
15841 nl='
15842 '
15843 echo "${nl}${T_MD}License information ...${T_ME}"
15844
15845 cat <<X
15846 +--------------------------------------------------------------------+
15847 | License: |
15848 | This software is subject to the Kannel Software License, available |
15849 | in this distribution in the file LICENSE. By continuing this |
15850 | installation process, you are bound by the terms of this license |
15851 | agreement. If you do not agree with the terms of this license, you |
15852 | must abort the installation process at this point. |
15853 | |
15854 | The Kannel Group <http://www.kannel.org/> |
15855 +--------------------------------------------------------------------+
15856
15857 Thank you for using Kannel.
15858 X