ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/configure
Revision: 1670
Committed: Tue Nov 20 21:30:04 2012 UTC (11 years, 4 months ago) by michael
File size: 489728 byte(s)
Log Message:
- Update some configure tests. We actually don't use inet_aton
  and friends anymore.

File Contents

# Content
1 #! /bin/sh
2 # From configure.ac Id: configure.ac 1664 2012-11-18 14:33:47Z michael .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for ircd-hybrid 8.0.0.
5 #
6 # Report bugs to <bugs@ircd-hybrid.org>.
7 #
8 #
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
33 esac
34 fi
35
36
37 as_nl='
38 '
39 export as_nl
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='print -r --'
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='printf %s\n'
52 as_echo_n='printf %s'
53 else
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
57 else
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 as_echo_n_body='eval
60 arg=$1;
61 case $arg in #(
62 *"$as_nl"*)
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 esac;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 '
68 export as_echo_n_body
69 as_echo_n='sh -c $as_echo_n_body as_echo'
70 fi
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
73 fi
74
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # IFS
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
90 IFS=" "" $as_nl"
91
92 # Find who we are. Look in the path if we contain no directory separator.
93 as_myself=
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
104
105 ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 # Use a proper internal environment variable to ensure we don't fall
139 # into an infinite loop, continuously re-executing ourselves.
140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141 _as_can_reexec=no; export _as_can_reexec;
142 # We cannot yet assume a decent shell, so we have to provide a
143 # neutralization value for shells without unset; and this also
144 # works around shells that cannot unset nonexistent variables.
145 # Preserve -v and -x to the replacement shell.
146 BASH_ENV=/dev/null
147 ENV=/dev/null
148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 case $- in # ((((
150 *v*x* | *x*v* ) as_opts=-vx ;;
151 *v* ) as_opts=-v ;;
152 *x* ) as_opts=-x ;;
153 * ) as_opts= ;;
154 esac
155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 # Admittedly, this is quite paranoid, since all the known shells bail
157 # out after a failed `exec'.
158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159 as_fn_exit 255
160 fi
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec=; unset _as_can_reexec;}
163 if test "x$CONFIG_SHELL" = x; then
164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165 emulate sh
166 NULLCMD=:
167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168 # is contrary to our usage. Disable this feature.
169 alias -g '\${1+\"\$@\"}'='\"\$@\"'
170 setopt NO_GLOB_SUBST
171 else
172 case \`(set -o) 2>/dev/null\` in #(
173 *posix*) :
174 set -o posix ;; #(
175 *) :
176 ;;
177 esac
178 fi
179 "
180 as_required="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
185
186 exitcode=0
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192
193 else
194 exitcode=1; echo positional parameters were not saved.
195 fi
196 test x\$exitcode = x0 || exit 1
197 test -x / || exit 1"
198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
210 test \$(( 1 + 1 )) = 2 || exit 1"
211 if (eval "$as_required") 2>/dev/null; then :
212 as_have_required=yes
213 else
214 as_have_required=no
215 fi
216 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217
218 else
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 as_found=false
221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 do
223 IFS=$as_save_IFS
224 test -z "$as_dir" && as_dir=.
225 as_found=:
226 case $as_dir in #(
227 /*)
228 for as_base in sh bash ksh sh5; do
229 # Try only shells that exist, to save several forks.
230 as_shell=$as_dir/$as_base
231 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 CONFIG_SHELL=$as_shell as_have_required=yes
234 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
235 break 2
236 fi
237 fi
238 done;;
239 esac
240 as_found=false
241 done
242 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi; }
246 IFS=$as_save_IFS
247
248
249 if test "x$CONFIG_SHELL" != x; then :
250 export CONFIG_SHELL
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
255 BASH_ENV=/dev/null
256 ENV=/dev/null
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 case $- in # ((((
259 *v*x* | *x*v* ) as_opts=-vx ;;
260 *v* ) as_opts=-v ;;
261 *x* ) as_opts=-x ;;
262 * ) as_opts= ;;
263 esac
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed `exec'.
267 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
269 fi
270
271 if test x$as_have_required = xno; then :
272 $as_echo "$0: This script requires a shell more modern than all"
273 $as_echo "$0: the shells that I found on your system."
274 if test x${ZSH_VERSION+set} = xset ; then
275 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 $as_echo "$0: Please tell bug-autoconf@gnu.org and
279 $0: bugs@ircd-hybrid.org about your system, including any
280 $0: error possibly output before this message. Then install
281 $0: a modern shell, or manually run the script under such a
282 $0: shell if you do have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 lt_ltdl_dir='libltdl'
569
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572
573 test -n "$DJDIR" || exec 7<&0 </dev/null
574 exec 6>&1
575
576 # Name of the host.
577 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
581 #
582 # Initializations.
583 #
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592
593 # Identity of this package.
594 PACKAGE_NAME='ircd-hybrid'
595 PACKAGE_TARNAME='ircd-hybrid'
596 PACKAGE_VERSION='8.0.0'
597 PACKAGE_STRING='ircd-hybrid 8.0.0'
598 PACKAGE_BUGREPORT='bugs@ircd-hybrid.org'
599 PACKAGE_URL=''
600
601 ac_unique_file="src/ircd.c"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
637
638 ac_func_list=
639 ac_header_list=
640 ac_subst_vars='ltdl_LTLIBOBJS
641 ltdl_LIBOBJS
642 am__EXEEXT_FALSE
643 am__EXEEXT_TRUE
644 LTLIBOBJS
645 LIBOBJS
646 LOCALSTATEDIR
647 DATADIR
648 LIBDIR
649 SYSCONFDIR
650 PREFIX
651 ENABLE_SSL_FALSE
652 ENABLE_SSL_TRUE
653 LTDLOPEN
654 LT_CONFIG_H
655 CONVENIENCE_LTDL_FALSE
656 CONVENIENCE_LTDL_TRUE
657 INSTALL_LTDL_FALSE
658 INSTALL_LTDL_TRUE
659 ARGZ_H
660 sys_symbol_underscore
661 LIBADD_DL
662 LT_DLPREOPEN
663 LIBADD_DLD_LINK
664 LIBADD_SHL_LOAD
665 LIBADD_DLOPEN
666 LT_DLLOADERS
667 INCLTDL
668 LTDLINCL
669 LTDLDEPS
670 LIBLTDL
671 CPP
672 OTOOL64
673 OTOOL
674 LIPO
675 NMEDIT
676 DSYMUTIL
677 MANIFEST_TOOL
678 RANLIB
679 ac_ct_AR
680 AR
681 DLLTOOL
682 OBJDUMP
683 LN_S
684 NM
685 ac_ct_DUMPBIN
686 DUMPBIN
687 LD
688 FGREP
689 EGREP
690 GREP
691 SED
692 host_os
693 host_vendor
694 host_cpu
695 host
696 build_os
697 build_vendor
698 build_cpu
699 build
700 LIBTOOL
701 LEXLIB
702 LEX_OUTPUT_ROOT
703 LEX
704 YFLAGS
705 YACC
706 am__fastdepCC_FALSE
707 am__fastdepCC_TRUE
708 CCDEPMODE
709 am__nodep
710 AMDEPBACKSLASH
711 AMDEP_FALSE
712 AMDEP_TRUE
713 am__quote
714 am__include
715 DEPDIR
716 OBJEXT
717 EXEEXT
718 ac_ct_CC
719 CPPFLAGS
720 LDFLAGS
721 CFLAGS
722 CC
723 MAINT
724 MAINTAINER_MODE_FALSE
725 MAINTAINER_MODE_TRUE
726 am__untar
727 am__tar
728 AMTAR
729 am__leading_dot
730 SET_MAKE
731 AWK
732 mkdir_p
733 MKDIR_P
734 INSTALL_STRIP_PROGRAM
735 STRIP
736 install_sh
737 MAKEINFO
738 AUTOHEADER
739 AUTOMAKE
740 AUTOCONF
741 ACLOCAL
742 VERSION
743 PACKAGE
744 CYGPATH_W
745 am__isrc
746 INSTALL_DATA
747 INSTALL_SCRIPT
748 INSTALL_PROGRAM
749 target_alias
750 host_alias
751 build_alias
752 LIBS
753 ECHO_T
754 ECHO_N
755 ECHO_C
756 DEFS
757 mandir
758 localedir
759 libdir
760 psdir
761 pdfdir
762 dvidir
763 htmldir
764 infodir
765 docdir
766 oldincludedir
767 includedir
768 localstatedir
769 sharedstatedir
770 sysconfdir
771 datadir
772 datarootdir
773 libexecdir
774 sbindir
775 bindir
776 program_transform_name
777 prefix
778 exec_prefix
779 PACKAGE_URL
780 PACKAGE_BUGREPORT
781 PACKAGE_STRING
782 PACKAGE_VERSION
783 PACKAGE_TARNAME
784 PACKAGE_NAME
785 PATH_SEPARATOR
786 SHELL'
787 ac_subst_files=''
788 ac_user_opts='
789 enable_option_checking
790 enable_maintainer_mode
791 enable_dependency_tracking
792 enable_static
793 enable_shared
794 with_pic
795 enable_fast_install
796 with_gnu_ld
797 with_sysroot
798 enable_libtool_lock
799 with_included_ltdl
800 with_ltdl_include
801 with_ltdl_lib
802 enable_ltdl_install
803 enable_libpcre
804 enable_openssl
805 enable_assert
806 enable_kqueue
807 enable_epoll
808 enable_devpoll
809 enable_rtsigio
810 enable_poll
811 enable_select
812 with_nicklen
813 with_topiclen
814 enable_halfops
815 enable_debugging
816 enable_warnings
817 '
818 ac_precious_vars='build_alias
819 host_alias
820 target_alias
821 CC
822 CFLAGS
823 LDFLAGS
824 LIBS
825 CPPFLAGS
826 YACC
827 YFLAGS
828 CPP'
829
830
831 # Initialize some variables set by options.
832 ac_init_help=
833 ac_init_version=false
834 ac_unrecognized_opts=
835 ac_unrecognized_sep=
836 # The variables have the same names as the options, with
837 # dashes changed to underlines.
838 cache_file=/dev/null
839 exec_prefix=NONE
840 no_create=
841 no_recursion=
842 prefix=NONE
843 program_prefix=NONE
844 program_suffix=NONE
845 program_transform_name=s,x,x,
846 silent=
847 site=
848 srcdir=
849 verbose=
850 x_includes=NONE
851 x_libraries=NONE
852
853 # Installation directory options.
854 # These are left unexpanded so users can "make install exec_prefix=/foo"
855 # and all the variables that are supposed to be based on exec_prefix
856 # by default will actually change.
857 # Use braces instead of parens because sh, perl, etc. also accept them.
858 # (The list follows the same order as the GNU Coding Standards.)
859 bindir='${exec_prefix}/bin'
860 sbindir='${exec_prefix}/sbin'
861 libexecdir='${exec_prefix}/libexec'
862 datarootdir='${prefix}/share'
863 datadir='${datarootdir}'
864 sysconfdir='${prefix}/etc'
865 sharedstatedir='${prefix}/com'
866 localstatedir='${prefix}/var'
867 includedir='${prefix}/include'
868 oldincludedir='/usr/include'
869 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
870 infodir='${datarootdir}/info'
871 htmldir='${docdir}'
872 dvidir='${docdir}'
873 pdfdir='${docdir}'
874 psdir='${docdir}'
875 libdir='${exec_prefix}/lib'
876 localedir='${datarootdir}/locale'
877 mandir='${datarootdir}/man'
878
879 ac_prev=
880 ac_dashdash=
881 for ac_option
882 do
883 # If the previous option needs an argument, assign it.
884 if test -n "$ac_prev"; then
885 eval $ac_prev=\$ac_option
886 ac_prev=
887 continue
888 fi
889
890 case $ac_option in
891 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
892 *=) ac_optarg= ;;
893 *) ac_optarg=yes ;;
894 esac
895
896 # Accept the important Cygnus configure options, so we can diagnose typos.
897
898 case $ac_dashdash$ac_option in
899 --)
900 ac_dashdash=yes ;;
901
902 -bindir | --bindir | --bindi | --bind | --bin | --bi)
903 ac_prev=bindir ;;
904 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
905 bindir=$ac_optarg ;;
906
907 -build | --build | --buil | --bui | --bu)
908 ac_prev=build_alias ;;
909 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
910 build_alias=$ac_optarg ;;
911
912 -cache-file | --cache-file | --cache-fil | --cache-fi \
913 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914 ac_prev=cache_file ;;
915 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
917 cache_file=$ac_optarg ;;
918
919 --config-cache | -C)
920 cache_file=config.cache ;;
921
922 -datadir | --datadir | --datadi | --datad)
923 ac_prev=datadir ;;
924 -datadir=* | --datadir=* | --datadi=* | --datad=*)
925 datadir=$ac_optarg ;;
926
927 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928 | --dataroo | --dataro | --datar)
929 ac_prev=datarootdir ;;
930 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932 datarootdir=$ac_optarg ;;
933
934 -disable-* | --disable-*)
935 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938 as_fn_error $? "invalid feature name: $ac_useropt"
939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
942 *"
943 "enable_$ac_useropt"
944 "*) ;;
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
947 esac
948 eval enable_$ac_useropt=no ;;
949
950 -docdir | --docdir | --docdi | --doc | --do)
951 ac_prev=docdir ;;
952 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
953 docdir=$ac_optarg ;;
954
955 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
956 ac_prev=dvidir ;;
957 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
958 dvidir=$ac_optarg ;;
959
960 -enable-* | --enable-*)
961 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
962 # Reject names that are not valid shell variable names.
963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964 as_fn_error $? "invalid feature name: $ac_useropt"
965 ac_useropt_orig=$ac_useropt
966 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
967 case $ac_user_opts in
968 *"
969 "enable_$ac_useropt"
970 "*) ;;
971 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
972 ac_unrecognized_sep=', ';;
973 esac
974 eval enable_$ac_useropt=\$ac_optarg ;;
975
976 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
977 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
978 | --exec | --exe | --ex)
979 ac_prev=exec_prefix ;;
980 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
981 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
982 | --exec=* | --exe=* | --ex=*)
983 exec_prefix=$ac_optarg ;;
984
985 -gas | --gas | --ga | --g)
986 # Obsolete; use --with-gas.
987 with_gas=yes ;;
988
989 -help | --help | --hel | --he | -h)
990 ac_init_help=long ;;
991 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
992 ac_init_help=recursive ;;
993 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
994 ac_init_help=short ;;
995
996 -host | --host | --hos | --ho)
997 ac_prev=host_alias ;;
998 -host=* | --host=* | --hos=* | --ho=*)
999 host_alias=$ac_optarg ;;
1000
1001 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1002 ac_prev=htmldir ;;
1003 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1004 | --ht=*)
1005 htmldir=$ac_optarg ;;
1006
1007 -includedir | --includedir | --includedi | --included | --include \
1008 | --includ | --inclu | --incl | --inc)
1009 ac_prev=includedir ;;
1010 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1011 | --includ=* | --inclu=* | --incl=* | --inc=*)
1012 includedir=$ac_optarg ;;
1013
1014 -infodir | --infodir | --infodi | --infod | --info | --inf)
1015 ac_prev=infodir ;;
1016 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1017 infodir=$ac_optarg ;;
1018
1019 -libdir | --libdir | --libdi | --libd)
1020 ac_prev=libdir ;;
1021 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1022 libdir=$ac_optarg ;;
1023
1024 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1025 | --libexe | --libex | --libe)
1026 ac_prev=libexecdir ;;
1027 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1028 | --libexe=* | --libex=* | --libe=*)
1029 libexecdir=$ac_optarg ;;
1030
1031 -localedir | --localedir | --localedi | --localed | --locale)
1032 ac_prev=localedir ;;
1033 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1034 localedir=$ac_optarg ;;
1035
1036 -localstatedir | --localstatedir | --localstatedi | --localstated \
1037 | --localstate | --localstat | --localsta | --localst | --locals)
1038 ac_prev=localstatedir ;;
1039 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1040 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1041 localstatedir=$ac_optarg ;;
1042
1043 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1044 ac_prev=mandir ;;
1045 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1046 mandir=$ac_optarg ;;
1047
1048 -nfp | --nfp | --nf)
1049 # Obsolete; use --without-fp.
1050 with_fp=no ;;
1051
1052 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1053 | --no-cr | --no-c | -n)
1054 no_create=yes ;;
1055
1056 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1057 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1058 no_recursion=yes ;;
1059
1060 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1061 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1062 | --oldin | --oldi | --old | --ol | --o)
1063 ac_prev=oldincludedir ;;
1064 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1065 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1066 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1067 oldincludedir=$ac_optarg ;;
1068
1069 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1070 ac_prev=prefix ;;
1071 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1072 prefix=$ac_optarg ;;
1073
1074 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1075 | --program-pre | --program-pr | --program-p)
1076 ac_prev=program_prefix ;;
1077 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1078 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1079 program_prefix=$ac_optarg ;;
1080
1081 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1082 | --program-suf | --program-su | --program-s)
1083 ac_prev=program_suffix ;;
1084 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1085 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1086 program_suffix=$ac_optarg ;;
1087
1088 -program-transform-name | --program-transform-name \
1089 | --program-transform-nam | --program-transform-na \
1090 | --program-transform-n | --program-transform- \
1091 | --program-transform | --program-transfor \
1092 | --program-transfo | --program-transf \
1093 | --program-trans | --program-tran \
1094 | --progr-tra | --program-tr | --program-t)
1095 ac_prev=program_transform_name ;;
1096 -program-transform-name=* | --program-transform-name=* \
1097 | --program-transform-nam=* | --program-transform-na=* \
1098 | --program-transform-n=* | --program-transform-=* \
1099 | --program-transform=* | --program-transfor=* \
1100 | --program-transfo=* | --program-transf=* \
1101 | --program-trans=* | --program-tran=* \
1102 | --progr-tra=* | --program-tr=* | --program-t=*)
1103 program_transform_name=$ac_optarg ;;
1104
1105 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1106 ac_prev=pdfdir ;;
1107 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1108 pdfdir=$ac_optarg ;;
1109
1110 -psdir | --psdir | --psdi | --psd | --ps)
1111 ac_prev=psdir ;;
1112 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1113 psdir=$ac_optarg ;;
1114
1115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1116 | -silent | --silent | --silen | --sile | --sil)
1117 silent=yes ;;
1118
1119 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1120 ac_prev=sbindir ;;
1121 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1122 | --sbi=* | --sb=*)
1123 sbindir=$ac_optarg ;;
1124
1125 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1126 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1127 | --sharedst | --shareds | --shared | --share | --shar \
1128 | --sha | --sh)
1129 ac_prev=sharedstatedir ;;
1130 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1131 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1132 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1133 | --sha=* | --sh=*)
1134 sharedstatedir=$ac_optarg ;;
1135
1136 -site | --site | --sit)
1137 ac_prev=site ;;
1138 -site=* | --site=* | --sit=*)
1139 site=$ac_optarg ;;
1140
1141 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1142 ac_prev=srcdir ;;
1143 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1144 srcdir=$ac_optarg ;;
1145
1146 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1147 | --syscon | --sysco | --sysc | --sys | --sy)
1148 ac_prev=sysconfdir ;;
1149 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1150 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1151 sysconfdir=$ac_optarg ;;
1152
1153 -target | --target | --targe | --targ | --tar | --ta | --t)
1154 ac_prev=target_alias ;;
1155 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1156 target_alias=$ac_optarg ;;
1157
1158 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1159 verbose=yes ;;
1160
1161 -version | --version | --versio | --versi | --vers | -V)
1162 ac_init_version=: ;;
1163
1164 -with-* | --with-*)
1165 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168 as_fn_error $? "invalid package name: $ac_useropt"
1169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1172 *"
1173 "with_$ac_useropt"
1174 "*) ;;
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
1177 esac
1178 eval with_$ac_useropt=\$ac_optarg ;;
1179
1180 -without-* | --without-*)
1181 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 as_fn_error $? "invalid package name: $ac_useropt"
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1188 *"
1189 "with_$ac_useropt"
1190 "*) ;;
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1193 esac
1194 eval with_$ac_useropt=no ;;
1195
1196 --x)
1197 # Obsolete; use --with-x.
1198 with_x=yes ;;
1199
1200 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1201 | --x-incl | --x-inc | --x-in | --x-i)
1202 ac_prev=x_includes ;;
1203 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1204 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1205 x_includes=$ac_optarg ;;
1206
1207 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1208 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1209 ac_prev=x_libraries ;;
1210 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1211 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1212 x_libraries=$ac_optarg ;;
1213
1214 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1215 Try \`$0 --help' for more information"
1216 ;;
1217
1218 *=*)
1219 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1220 # Reject names that are not valid shell variable names.
1221 case $ac_envvar in #(
1222 '' | [0-9]* | *[!_$as_cr_alnum]* )
1223 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1224 esac
1225 eval $ac_envvar=\$ac_optarg
1226 export $ac_envvar ;;
1227
1228 *)
1229 # FIXME: should be removed in autoconf 3.0.
1230 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1231 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1232 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1233 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1234 ;;
1235
1236 esac
1237 done
1238
1239 if test -n "$ac_prev"; then
1240 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1241 as_fn_error $? "missing argument to $ac_option"
1242 fi
1243
1244 if test -n "$ac_unrecognized_opts"; then
1245 case $enable_option_checking in
1246 no) ;;
1247 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1248 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1249 esac
1250 fi
1251
1252 # Check all directory arguments for consistency.
1253 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1254 datadir sysconfdir sharedstatedir localstatedir includedir \
1255 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1256 libdir localedir mandir
1257 do
1258 eval ac_val=\$$ac_var
1259 # Remove trailing slashes.
1260 case $ac_val in
1261 */ )
1262 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1263 eval $ac_var=\$ac_val;;
1264 esac
1265 # Be sure to have absolute directory names.
1266 case $ac_val in
1267 [\\/$]* | ?:[\\/]* ) continue;;
1268 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1269 esac
1270 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1271 done
1272
1273 # There might be people who depend on the old broken behavior: `$host'
1274 # used to hold the argument of --host etc.
1275 # FIXME: To remove some day.
1276 build=$build_alias
1277 host=$host_alias
1278 target=$target_alias
1279
1280 # FIXME: To remove some day.
1281 if test "x$host_alias" != x; then
1282 if test "x$build_alias" = x; then
1283 cross_compiling=maybe
1284 elif test "x$build_alias" != "x$host_alias"; then
1285 cross_compiling=yes
1286 fi
1287 fi
1288
1289 ac_tool_prefix=
1290 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1291
1292 test "$silent" = yes && exec 6>/dev/null
1293
1294
1295 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1296 ac_ls_di=`ls -di .` &&
1297 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1298 as_fn_error $? "working directory cannot be determined"
1299 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1300 as_fn_error $? "pwd does not report name of working directory"
1301
1302
1303 # Find the source files, if location was not specified.
1304 if test -z "$srcdir"; then
1305 ac_srcdir_defaulted=yes
1306 # Try the directory containing this script, then the parent directory.
1307 ac_confdir=`$as_dirname -- "$as_myself" ||
1308 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1309 X"$as_myself" : 'X\(//\)[^/]' \| \
1310 X"$as_myself" : 'X\(//\)$' \| \
1311 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1312 $as_echo X"$as_myself" |
1313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1314 s//\1/
1315 q
1316 }
1317 /^X\(\/\/\)[^/].*/{
1318 s//\1/
1319 q
1320 }
1321 /^X\(\/\/\)$/{
1322 s//\1/
1323 q
1324 }
1325 /^X\(\/\).*/{
1326 s//\1/
1327 q
1328 }
1329 s/.*/./; q'`
1330 srcdir=$ac_confdir
1331 if test ! -r "$srcdir/$ac_unique_file"; then
1332 srcdir=..
1333 fi
1334 else
1335 ac_srcdir_defaulted=no
1336 fi
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1338 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1339 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1340 fi
1341 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1342 ac_abs_confdir=`(
1343 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1344 pwd)`
1345 # When building in place, set srcdir=.
1346 if test "$ac_abs_confdir" = "$ac_pwd"; then
1347 srcdir=.
1348 fi
1349 # Remove unnecessary trailing slashes from srcdir.
1350 # Double slashes in file names in object file debugging info
1351 # mess up M-x gdb in Emacs.
1352 case $srcdir in
1353 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1354 esac
1355 for ac_var in $ac_precious_vars; do
1356 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1357 eval ac_env_${ac_var}_value=\$${ac_var}
1358 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1360 done
1361
1362 #
1363 # Report the --help message.
1364 #
1365 if test "$ac_init_help" = "long"; then
1366 # Omit some internal or obsolete options to make the list less imposing.
1367 # This message is too long to be a string in the A/UX 3.1 sh.
1368 cat <<_ACEOF
1369 \`configure' configures ircd-hybrid 8.0.0 to adapt to many kinds of systems.
1370
1371 Usage: $0 [OPTION]... [VAR=VALUE]...
1372
1373 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1374 VAR=VALUE. See below for descriptions of some of the useful variables.
1375
1376 Defaults for the options are specified in brackets.
1377
1378 Configuration:
1379 -h, --help display this help and exit
1380 --help=short display options specific to this package
1381 --help=recursive display the short help of all the included packages
1382 -V, --version display version information and exit
1383 -q, --quiet, --silent do not print \`checking ...' messages
1384 --cache-file=FILE cache test results in FILE [disabled]
1385 -C, --config-cache alias for \`--cache-file=config.cache'
1386 -n, --no-create do not create output files
1387 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1388
1389 Installation directories:
1390 --prefix=PREFIX install architecture-independent files in PREFIX
1391 [$ac_default_prefix]
1392 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1393 [PREFIX]
1394
1395 By default, \`make install' will install all the files in
1396 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1397 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1398 for instance \`--prefix=\$HOME'.
1399
1400 For better control, use the options below.
1401
1402 Fine tuning of the installation directories:
1403 --bindir=DIR user executables [EPREFIX/bin]
1404 --sbindir=DIR system admin executables [EPREFIX/sbin]
1405 --libexecdir=DIR program executables [EPREFIX/libexec]
1406 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1407 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1408 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1409 --libdir=DIR object code libraries [EPREFIX/lib]
1410 --includedir=DIR C header files [PREFIX/include]
1411 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1412 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1413 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1414 --infodir=DIR info documentation [DATAROOTDIR/info]
1415 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1416 --mandir=DIR man documentation [DATAROOTDIR/man]
1417 --docdir=DIR documentation root [DATAROOTDIR/doc/ircd-hybrid]
1418 --htmldir=DIR html documentation [DOCDIR]
1419 --dvidir=DIR dvi documentation [DOCDIR]
1420 --pdfdir=DIR pdf documentation [DOCDIR]
1421 --psdir=DIR ps documentation [DOCDIR]
1422 _ACEOF
1423
1424 cat <<\_ACEOF
1425
1426 Program names:
1427 --program-prefix=PREFIX prepend PREFIX to installed program names
1428 --program-suffix=SUFFIX append SUFFIX to installed program names
1429 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1430
1431 System types:
1432 --build=BUILD configure for building on BUILD [guessed]
1433 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1434 _ACEOF
1435 fi
1436
1437 if test -n "$ac_init_help"; then
1438 case $ac_init_help in
1439 short | recursive ) echo "Configuration of ircd-hybrid 8.0.0:";;
1440 esac
1441 cat <<\_ACEOF
1442
1443 Optional Features:
1444 --disable-option-checking ignore unrecognized --enable/--with options
1445 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1446 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1447 --enable-maintainer-mode
1448 enable make rules and dependencies not useful (and
1449 sometimes confusing) to the casual installer
1450 --enable-dependency-tracking
1451 do not reject slow dependency extractors
1452 --disable-dependency-tracking
1453 speeds up one-time build
1454 --enable-static[=PKGS] build static libraries [default=no]
1455 --enable-shared[=PKGS] build shared libraries [default=yes]
1456 --enable-fast-install[=PKGS]
1457 optimize for fast installation [default=yes]
1458 --disable-libtool-lock avoid locking (might break parallel builds)
1459 --enable-ltdl-install install libltdl
1460 --disable-libpcre Disable PCRE support
1461 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1462 --disable-openssl Disable OpenSSL support.
1463 --enable-assert Enable assert() statements
1464 --enable-kqueue Force kqueue usage.
1465 --enable-epoll Force epoll usage.
1466 --enable-devpoll Force devpoll usage.
1467 --enable-rtsigio Force rtsigio usage.
1468 --enable-poll Force poll usage.
1469 --enable-select Force select usage.
1470 --enable-halfops Enable halfops support.
1471 --enable-debugging Enable debugging.
1472 --enable-warnings Enable compiler warnings.
1473
1474 Optional Packages:
1475 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1476 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1477 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1478 both]
1479 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1480 --with-sysroot=DIR Search for dependent libraries within DIR
1481 (or the compiler's sysroot if not specified).
1482 --with-included-ltdl use the GNU ltdl sources included here
1483 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1484 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1485 --with-nicklen=<value> Set nickname length (default 9).
1486 --with-topiclen=<value> Set topic length (default 160).
1487
1488 Some influential environment variables:
1489 CC C compiler command
1490 CFLAGS C compiler flags
1491 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1492 nonstandard directory <lib dir>
1493 LIBS libraries to pass to the linker, e.g. -l<library>
1494 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1495 you have headers in a nonstandard directory <include dir>
1496 YACC The `Yet Another Compiler Compiler' implementation to use.
1497 Defaults to the first program found out of: `bison -y', `byacc',
1498 `yacc'.
1499 YFLAGS The list of arguments that will be passed by default to $YACC.
1500 This script will default YFLAGS to the empty string to avoid a
1501 default value of `-d' given by some make applications.
1502 CPP C preprocessor
1503
1504 Use these variables to override the choices made by `configure' or to help
1505 it to find libraries and programs with nonstandard names/locations.
1506
1507 Report bugs to <bugs@ircd-hybrid.org>.
1508 _ACEOF
1509 ac_status=$?
1510 fi
1511
1512 if test "$ac_init_help" = "recursive"; then
1513 # If there are subdirs, report their specific --help.
1514 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1515 test -d "$ac_dir" ||
1516 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1517 continue
1518 ac_builddir=.
1519
1520 case "$ac_dir" in
1521 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 *)
1523 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1524 # A ".." for each directory in $ac_dir_suffix.
1525 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1526 case $ac_top_builddir_sub in
1527 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1529 esac ;;
1530 esac
1531 ac_abs_top_builddir=$ac_pwd
1532 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1533 # for backward compatibility:
1534 ac_top_builddir=$ac_top_build_prefix
1535
1536 case $srcdir in
1537 .) # We are building in place.
1538 ac_srcdir=.
1539 ac_top_srcdir=$ac_top_builddir_sub
1540 ac_abs_top_srcdir=$ac_pwd ;;
1541 [\\/]* | ?:[\\/]* ) # Absolute name.
1542 ac_srcdir=$srcdir$ac_dir_suffix;
1543 ac_top_srcdir=$srcdir
1544 ac_abs_top_srcdir=$srcdir ;;
1545 *) # Relative name.
1546 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1547 ac_top_srcdir=$ac_top_build_prefix$srcdir
1548 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1549 esac
1550 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1551
1552 cd "$ac_dir" || { ac_status=$?; continue; }
1553 # Check for guested configure.
1554 if test -f "$ac_srcdir/configure.gnu"; then
1555 echo &&
1556 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1557 elif test -f "$ac_srcdir/configure"; then
1558 echo &&
1559 $SHELL "$ac_srcdir/configure" --help=recursive
1560 else
1561 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1562 fi || ac_status=$?
1563 cd "$ac_pwd" || { ac_status=$?; break; }
1564 done
1565 fi
1566
1567 test -n "$ac_init_help" && exit $ac_status
1568 if $ac_init_version; then
1569 cat <<\_ACEOF
1570 ircd-hybrid configure 8.0.0
1571 generated by GNU Autoconf 2.69
1572
1573 Copyright (C) 2012 Free Software Foundation, Inc.
1574 This configure script is free software; the Free Software Foundation
1575 gives unlimited permission to copy, distribute and modify it.
1576 _ACEOF
1577 exit
1578 fi
1579
1580 ## ------------------------ ##
1581 ## Autoconf initialization. ##
1582 ## ------------------------ ##
1583
1584 # ac_fn_c_try_compile LINENO
1585 # --------------------------
1586 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1587 ac_fn_c_try_compile ()
1588 {
1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590 rm -f conftest.$ac_objext
1591 if { { ac_try="$ac_compile"
1592 case "(($ac_try" in
1593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1594 *) ac_try_echo=$ac_try;;
1595 esac
1596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597 $as_echo "$ac_try_echo"; } >&5
1598 (eval "$ac_compile") 2>conftest.err
1599 ac_status=$?
1600 if test -s conftest.err; then
1601 grep -v '^ *+' conftest.err >conftest.er1
1602 cat conftest.er1 >&5
1603 mv -f conftest.er1 conftest.err
1604 fi
1605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606 test $ac_status = 0; } && {
1607 test -z "$ac_c_werror_flag" ||
1608 test ! -s conftest.err
1609 } && test -s conftest.$ac_objext; then :
1610 ac_retval=0
1611 else
1612 $as_echo "$as_me: failed program was:" >&5
1613 sed 's/^/| /' conftest.$ac_ext >&5
1614
1615 ac_retval=1
1616 fi
1617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1618 as_fn_set_status $ac_retval
1619
1620 } # ac_fn_c_try_compile
1621
1622 # ac_fn_c_try_link LINENO
1623 # -----------------------
1624 # Try to link conftest.$ac_ext, and return whether this succeeded.
1625 ac_fn_c_try_link ()
1626 {
1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628 rm -f conftest.$ac_objext conftest$ac_exeext
1629 if { { ac_try="$ac_link"
1630 case "(($ac_try" in
1631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632 *) ac_try_echo=$ac_try;;
1633 esac
1634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635 $as_echo "$ac_try_echo"; } >&5
1636 (eval "$ac_link") 2>conftest.err
1637 ac_status=$?
1638 if test -s conftest.err; then
1639 grep -v '^ *+' conftest.err >conftest.er1
1640 cat conftest.er1 >&5
1641 mv -f conftest.er1 conftest.err
1642 fi
1643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644 test $ac_status = 0; } && {
1645 test -z "$ac_c_werror_flag" ||
1646 test ! -s conftest.err
1647 } && test -s conftest$ac_exeext && {
1648 test "$cross_compiling" = yes ||
1649 test -x conftest$ac_exeext
1650 }; then :
1651 ac_retval=0
1652 else
1653 $as_echo "$as_me: failed program was:" >&5
1654 sed 's/^/| /' conftest.$ac_ext >&5
1655
1656 ac_retval=1
1657 fi
1658 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1659 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1660 # interfere with the next link command; also delete a directory that is
1661 # left behind by Apple's compiler. We do this before executing the actions.
1662 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664 as_fn_set_status $ac_retval
1665
1666 } # ac_fn_c_try_link
1667
1668 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1669 # -------------------------------------------------------
1670 # Tests whether HEADER exists and can be compiled using the include files in
1671 # INCLUDES, setting the cache variable VAR accordingly.
1672 ac_fn_c_check_header_compile ()
1673 {
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1676 $as_echo_n "checking for $2... " >&6; }
1677 if eval \${$3+:} false; then :
1678 $as_echo_n "(cached) " >&6
1679 else
1680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1681 /* end confdefs.h. */
1682 $4
1683 #include <$2>
1684 _ACEOF
1685 if ac_fn_c_try_compile "$LINENO"; then :
1686 eval "$3=yes"
1687 else
1688 eval "$3=no"
1689 fi
1690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1691 fi
1692 eval ac_res=\$$3
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1694 $as_echo "$ac_res" >&6; }
1695 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696
1697 } # ac_fn_c_check_header_compile
1698
1699 # ac_fn_c_try_cpp LINENO
1700 # ----------------------
1701 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1702 ac_fn_c_try_cpp ()
1703 {
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 if { { ac_try="$ac_cpp conftest.$ac_ext"
1706 case "(($ac_try" in
1707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708 *) ac_try_echo=$ac_try;;
1709 esac
1710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711 $as_echo "$ac_try_echo"; } >&5
1712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1713 ac_status=$?
1714 if test -s conftest.err; then
1715 grep -v '^ *+' conftest.err >conftest.er1
1716 cat conftest.er1 >&5
1717 mv -f conftest.er1 conftest.err
1718 fi
1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720 test $ac_status = 0; } > conftest.i && {
1721 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1722 test ! -s conftest.err
1723 }; then :
1724 ac_retval=0
1725 else
1726 $as_echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1728
1729 ac_retval=1
1730 fi
1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732 as_fn_set_status $ac_retval
1733
1734 } # ac_fn_c_try_cpp
1735
1736 # ac_fn_c_try_run LINENO
1737 # ----------------------
1738 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1739 # that executables *can* be run.
1740 ac_fn_c_try_run ()
1741 {
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 if { { ac_try="$ac_link"
1744 case "(($ac_try" in
1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746 *) ac_try_echo=$ac_try;;
1747 esac
1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749 $as_echo "$ac_try_echo"; } >&5
1750 (eval "$ac_link") 2>&5
1751 ac_status=$?
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1754 { { case "(($ac_try" in
1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756 *) ac_try_echo=$ac_try;;
1757 esac
1758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759 $as_echo "$ac_try_echo"; } >&5
1760 (eval "$ac_try") 2>&5
1761 ac_status=$?
1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763 test $ac_status = 0; }; }; then :
1764 ac_retval=0
1765 else
1766 $as_echo "$as_me: program exited with status $ac_status" >&5
1767 $as_echo "$as_me: failed program was:" >&5
1768 sed 's/^/| /' conftest.$ac_ext >&5
1769
1770 ac_retval=$ac_status
1771 fi
1772 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774 as_fn_set_status $ac_retval
1775
1776 } # ac_fn_c_try_run
1777
1778 # ac_fn_c_check_func LINENO FUNC VAR
1779 # ----------------------------------
1780 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1781 ac_fn_c_check_func ()
1782 {
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785 $as_echo_n "checking for $2... " >&6; }
1786 if eval \${$3+:} false; then :
1787 $as_echo_n "(cached) " >&6
1788 else
1789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790 /* end confdefs.h. */
1791 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1793 #define $2 innocuous_$2
1794
1795 /* System header to define __stub macros and hopefully few prototypes,
1796 which can conflict with char $2 (); below.
1797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1798 <limits.h> exists even on freestanding compilers. */
1799
1800 #ifdef __STDC__
1801 # include <limits.h>
1802 #else
1803 # include <assert.h>
1804 #endif
1805
1806 #undef $2
1807
1808 /* Override any GCC internal prototype to avoid an error.
1809 Use char because int might match the return type of a GCC
1810 builtin and then its argument prototype would still apply. */
1811 #ifdef __cplusplus
1812 extern "C"
1813 #endif
1814 char $2 ();
1815 /* The GNU C library defines this for functions which it implements
1816 to always fail with ENOSYS. Some functions are actually named
1817 something starting with __ and the normal name is an alias. */
1818 #if defined __stub_$2 || defined __stub___$2
1819 choke me
1820 #endif
1821
1822 int
1823 main ()
1824 {
1825 return $2 ();
1826 ;
1827 return 0;
1828 }
1829 _ACEOF
1830 if ac_fn_c_try_link "$LINENO"; then :
1831 eval "$3=yes"
1832 else
1833 eval "$3=no"
1834 fi
1835 rm -f core conftest.err conftest.$ac_objext \
1836 conftest$ac_exeext conftest.$ac_ext
1837 fi
1838 eval ac_res=\$$3
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1840 $as_echo "$ac_res" >&6; }
1841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842
1843 } # ac_fn_c_check_func
1844
1845 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1846 # ---------------------------------------------
1847 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1848 # accordingly.
1849 ac_fn_c_check_decl ()
1850 {
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 as_decl_name=`echo $2|sed 's/ *(.*//'`
1853 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1855 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1856 if eval \${$3+:} false; then :
1857 $as_echo_n "(cached) " >&6
1858 else
1859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1860 /* end confdefs.h. */
1861 $4
1862 int
1863 main ()
1864 {
1865 #ifndef $as_decl_name
1866 #ifdef __cplusplus
1867 (void) $as_decl_use;
1868 #else
1869 (void) $as_decl_name;
1870 #endif
1871 #endif
1872
1873 ;
1874 return 0;
1875 }
1876 _ACEOF
1877 if ac_fn_c_try_compile "$LINENO"; then :
1878 eval "$3=yes"
1879 else
1880 eval "$3=no"
1881 fi
1882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1883 fi
1884 eval ac_res=\$$3
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886 $as_echo "$ac_res" >&6; }
1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888
1889 } # ac_fn_c_check_decl
1890
1891 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1892 # -------------------------------------------
1893 # Tests whether TYPE exists after having included INCLUDES, setting cache
1894 # variable VAR accordingly.
1895 ac_fn_c_check_type ()
1896 {
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1899 $as_echo_n "checking for $2... " >&6; }
1900 if eval \${$3+:} false; then :
1901 $as_echo_n "(cached) " >&6
1902 else
1903 eval "$3=no"
1904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905 /* end confdefs.h. */
1906 $4
1907 int
1908 main ()
1909 {
1910 if (sizeof ($2))
1911 return 0;
1912 ;
1913 return 0;
1914 }
1915 _ACEOF
1916 if ac_fn_c_try_compile "$LINENO"; then :
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1919 $4
1920 int
1921 main ()
1922 {
1923 if (sizeof (($2)))
1924 return 0;
1925 ;
1926 return 0;
1927 }
1928 _ACEOF
1929 if ac_fn_c_try_compile "$LINENO"; then :
1930
1931 else
1932 eval "$3=yes"
1933 fi
1934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1935 fi
1936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1937 fi
1938 eval ac_res=\$$3
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1940 $as_echo "$ac_res" >&6; }
1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942
1943 } # ac_fn_c_check_type
1944
1945 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1946 # ----------------------------------------------------
1947 # Tries to find if the field MEMBER exists in type AGGR, after including
1948 # INCLUDES, setting cache variable VAR accordingly.
1949 ac_fn_c_check_member ()
1950 {
1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1953 $as_echo_n "checking for $2.$3... " >&6; }
1954 if eval \${$4+:} false; then :
1955 $as_echo_n "(cached) " >&6
1956 else
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1959 $5
1960 int
1961 main ()
1962 {
1963 static $2 ac_aggr;
1964 if (ac_aggr.$3)
1965 return 0;
1966 ;
1967 return 0;
1968 }
1969 _ACEOF
1970 if ac_fn_c_try_compile "$LINENO"; then :
1971 eval "$4=yes"
1972 else
1973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h. */
1975 $5
1976 int
1977 main ()
1978 {
1979 static $2 ac_aggr;
1980 if (sizeof ac_aggr.$3)
1981 return 0;
1982 ;
1983 return 0;
1984 }
1985 _ACEOF
1986 if ac_fn_c_try_compile "$LINENO"; then :
1987 eval "$4=yes"
1988 else
1989 eval "$4=no"
1990 fi
1991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1992 fi
1993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1994 fi
1995 eval ac_res=\$$4
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1997 $as_echo "$ac_res" >&6; }
1998 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1999
2000 } # ac_fn_c_check_member
2001
2002 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2003 # -------------------------------------------------------
2004 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2005 # the include files in INCLUDES and setting the cache variable VAR
2006 # accordingly.
2007 ac_fn_c_check_header_mongrel ()
2008 {
2009 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010 if eval \${$3+:} false; then :
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012 $as_echo_n "checking for $2... " >&6; }
2013 if eval \${$3+:} false; then :
2014 $as_echo_n "(cached) " >&6
2015 fi
2016 eval ac_res=\$$3
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2018 $as_echo "$ac_res" >&6; }
2019 else
2020 # Is the header compilable?
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2022 $as_echo_n "checking $2 usability... " >&6; }
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2025 $4
2026 #include <$2>
2027 _ACEOF
2028 if ac_fn_c_try_compile "$LINENO"; then :
2029 ac_header_compiler=yes
2030 else
2031 ac_header_compiler=no
2032 fi
2033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2035 $as_echo "$ac_header_compiler" >&6; }
2036
2037 # Is the header present?
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2039 $as_echo_n "checking $2 presence... " >&6; }
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h. */
2042 #include <$2>
2043 _ACEOF
2044 if ac_fn_c_try_cpp "$LINENO"; then :
2045 ac_header_preproc=yes
2046 else
2047 ac_header_preproc=no
2048 fi
2049 rm -f conftest.err conftest.i conftest.$ac_ext
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2051 $as_echo "$ac_header_preproc" >&6; }
2052
2053 # So? What about this header?
2054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2055 yes:no: )
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2057 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2059 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2060 ;;
2061 no:yes:* )
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2063 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2065 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2067 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2069 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2071 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2072 ( $as_echo "## ----------------------------------- ##
2073 ## Report this to bugs@ircd-hybrid.org ##
2074 ## ----------------------------------- ##"
2075 ) | sed "s/^/$as_me: WARNING: /" >&2
2076 ;;
2077 esac
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2079 $as_echo_n "checking for $2... " >&6; }
2080 if eval \${$3+:} false; then :
2081 $as_echo_n "(cached) " >&6
2082 else
2083 eval "$3=\$ac_header_compiler"
2084 fi
2085 eval ac_res=\$$3
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2087 $as_echo "$ac_res" >&6; }
2088 fi
2089 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2090
2091 } # ac_fn_c_check_header_mongrel
2092 cat >config.log <<_ACEOF
2093 This file contains any messages produced by compilers while
2094 running configure, to aid debugging if configure makes a mistake.
2095
2096 It was created by ircd-hybrid $as_me 8.0.0, which was
2097 generated by GNU Autoconf 2.69. Invocation command line was
2098
2099 $ $0 $@
2100
2101 _ACEOF
2102 exec 5>>config.log
2103 {
2104 cat <<_ASUNAME
2105 ## --------- ##
2106 ## Platform. ##
2107 ## --------- ##
2108
2109 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2110 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2111 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2112 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2113 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2114
2115 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2116 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2117
2118 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2119 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2120 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2121 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2122 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2123 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2124 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2125
2126 _ASUNAME
2127
2128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2129 for as_dir in $PATH
2130 do
2131 IFS=$as_save_IFS
2132 test -z "$as_dir" && as_dir=.
2133 $as_echo "PATH: $as_dir"
2134 done
2135 IFS=$as_save_IFS
2136
2137 } >&5
2138
2139 cat >&5 <<_ACEOF
2140
2141
2142 ## ----------- ##
2143 ## Core tests. ##
2144 ## ----------- ##
2145
2146 _ACEOF
2147
2148
2149 # Keep a trace of the command line.
2150 # Strip out --no-create and --no-recursion so they do not pile up.
2151 # Strip out --silent because we don't want to record it for future runs.
2152 # Also quote any args containing shell meta-characters.
2153 # Make two passes to allow for proper duplicate-argument suppression.
2154 ac_configure_args=
2155 ac_configure_args0=
2156 ac_configure_args1=
2157 ac_must_keep_next=false
2158 for ac_pass in 1 2
2159 do
2160 for ac_arg
2161 do
2162 case $ac_arg in
2163 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2165 | -silent | --silent | --silen | --sile | --sil)
2166 continue ;;
2167 *\'*)
2168 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2169 esac
2170 case $ac_pass in
2171 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2172 2)
2173 as_fn_append ac_configure_args1 " '$ac_arg'"
2174 if test $ac_must_keep_next = true; then
2175 ac_must_keep_next=false # Got value, back to normal.
2176 else
2177 case $ac_arg in
2178 *=* | --config-cache | -C | -disable-* | --disable-* \
2179 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2180 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2181 | -with-* | --with-* | -without-* | --without-* | --x)
2182 case "$ac_configure_args0 " in
2183 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2184 esac
2185 ;;
2186 -* ) ac_must_keep_next=true ;;
2187 esac
2188 fi
2189 as_fn_append ac_configure_args " '$ac_arg'"
2190 ;;
2191 esac
2192 done
2193 done
2194 { ac_configure_args0=; unset ac_configure_args0;}
2195 { ac_configure_args1=; unset ac_configure_args1;}
2196
2197 # When interrupted or exit'd, cleanup temporary files, and complete
2198 # config.log. We remove comments because anyway the quotes in there
2199 # would cause problems or look ugly.
2200 # WARNING: Use '\'' to represent an apostrophe within the trap.
2201 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2202 trap 'exit_status=$?
2203 # Save into config.log some information that might help in debugging.
2204 {
2205 echo
2206
2207 $as_echo "## ---------------- ##
2208 ## Cache variables. ##
2209 ## ---------------- ##"
2210 echo
2211 # The following way of writing the cache mishandles newlines in values,
2212 (
2213 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2214 eval ac_val=\$$ac_var
2215 case $ac_val in #(
2216 *${as_nl}*)
2217 case $ac_var in #(
2218 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2219 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2220 esac
2221 case $ac_var in #(
2222 _ | IFS | as_nl) ;; #(
2223 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2224 *) { eval $ac_var=; unset $ac_var;} ;;
2225 esac ;;
2226 esac
2227 done
2228 (set) 2>&1 |
2229 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2230 *${as_nl}ac_space=\ *)
2231 sed -n \
2232 "s/'\''/'\''\\\\'\'''\''/g;
2233 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2234 ;; #(
2235 *)
2236 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2237 ;;
2238 esac |
2239 sort
2240 )
2241 echo
2242
2243 $as_echo "## ----------------- ##
2244 ## Output variables. ##
2245 ## ----------------- ##"
2246 echo
2247 for ac_var in $ac_subst_vars
2248 do
2249 eval ac_val=\$$ac_var
2250 case $ac_val in
2251 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2252 esac
2253 $as_echo "$ac_var='\''$ac_val'\''"
2254 done | sort
2255 echo
2256
2257 if test -n "$ac_subst_files"; then
2258 $as_echo "## ------------------- ##
2259 ## File substitutions. ##
2260 ## ------------------- ##"
2261 echo
2262 for ac_var in $ac_subst_files
2263 do
2264 eval ac_val=\$$ac_var
2265 case $ac_val in
2266 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2267 esac
2268 $as_echo "$ac_var='\''$ac_val'\''"
2269 done | sort
2270 echo
2271 fi
2272
2273 if test -s confdefs.h; then
2274 $as_echo "## ----------- ##
2275 ## confdefs.h. ##
2276 ## ----------- ##"
2277 echo
2278 cat confdefs.h
2279 echo
2280 fi
2281 test "$ac_signal" != 0 &&
2282 $as_echo "$as_me: caught signal $ac_signal"
2283 $as_echo "$as_me: exit $exit_status"
2284 } >&5
2285 rm -f core *.core core.conftest.* &&
2286 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2287 exit $exit_status
2288 ' 0
2289 for ac_signal in 1 2 13 15; do
2290 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2291 done
2292 ac_signal=0
2293
2294 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2295 rm -f -r conftest* confdefs.h
2296
2297 $as_echo "/* confdefs.h */" > confdefs.h
2298
2299 # Predefined preprocessor variables.
2300
2301 cat >>confdefs.h <<_ACEOF
2302 #define PACKAGE_NAME "$PACKAGE_NAME"
2303 _ACEOF
2304
2305 cat >>confdefs.h <<_ACEOF
2306 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2307 _ACEOF
2308
2309 cat >>confdefs.h <<_ACEOF
2310 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2311 _ACEOF
2312
2313 cat >>confdefs.h <<_ACEOF
2314 #define PACKAGE_STRING "$PACKAGE_STRING"
2315 _ACEOF
2316
2317 cat >>confdefs.h <<_ACEOF
2318 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2319 _ACEOF
2320
2321 cat >>confdefs.h <<_ACEOF
2322 #define PACKAGE_URL "$PACKAGE_URL"
2323 _ACEOF
2324
2325
2326 # Let the site file select an alternate cache file if it wants to.
2327 # Prefer an explicitly selected file to automatically selected ones.
2328 ac_site_file1=NONE
2329 ac_site_file2=NONE
2330 if test -n "$CONFIG_SITE"; then
2331 # We do not want a PATH search for config.site.
2332 case $CONFIG_SITE in #((
2333 -*) ac_site_file1=./$CONFIG_SITE;;
2334 */*) ac_site_file1=$CONFIG_SITE;;
2335 *) ac_site_file1=./$CONFIG_SITE;;
2336 esac
2337 elif test "x$prefix" != xNONE; then
2338 ac_site_file1=$prefix/share/config.site
2339 ac_site_file2=$prefix/etc/config.site
2340 else
2341 ac_site_file1=$ac_default_prefix/share/config.site
2342 ac_site_file2=$ac_default_prefix/etc/config.site
2343 fi
2344 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2345 do
2346 test "x$ac_site_file" = xNONE && continue
2347 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2349 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2350 sed 's/^/| /' "$ac_site_file" >&5
2351 . "$ac_site_file" \
2352 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2354 as_fn_error $? "failed to load site script $ac_site_file
2355 See \`config.log' for more details" "$LINENO" 5; }
2356 fi
2357 done
2358
2359 if test -r "$cache_file"; then
2360 # Some versions of bash will fail to source /dev/null (special files
2361 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2362 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2364 $as_echo "$as_me: loading cache $cache_file" >&6;}
2365 case $cache_file in
2366 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2367 *) . "./$cache_file";;
2368 esac
2369 fi
2370 else
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2372 $as_echo "$as_me: creating cache $cache_file" >&6;}
2373 >$cache_file
2374 fi
2375
2376 as_fn_append ac_func_list " strtok_r"
2377 as_fn_append ac_func_list " usleep"
2378 as_fn_append ac_func_list " strlcat"
2379 as_fn_append ac_func_list " strlcpy"
2380 as_fn_append ac_header_list " crypt.h"
2381 as_fn_append ac_header_list " sys/resource.h"
2382 as_fn_append ac_header_list " sys/param.h"
2383 as_fn_append ac_header_list " types.h"
2384 as_fn_append ac_header_list " socket.h"
2385 as_fn_append ac_header_list " sys/wait.h"
2386 as_fn_append ac_header_list " wait.h"
2387 # Check that the precious variables saved in the cache have kept the same
2388 # value.
2389 ac_cache_corrupted=false
2390 for ac_var in $ac_precious_vars; do
2391 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2392 eval ac_new_set=\$ac_env_${ac_var}_set
2393 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2394 eval ac_new_val=\$ac_env_${ac_var}_value
2395 case $ac_old_set,$ac_new_set in
2396 set,)
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2398 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2399 ac_cache_corrupted=: ;;
2400 ,set)
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2402 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2403 ac_cache_corrupted=: ;;
2404 ,);;
2405 *)
2406 if test "x$ac_old_val" != "x$ac_new_val"; then
2407 # differences in whitespace do not lead to failure.
2408 ac_old_val_w=`echo x $ac_old_val`
2409 ac_new_val_w=`echo x $ac_new_val`
2410 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2412 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2413 ac_cache_corrupted=:
2414 else
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2416 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2417 eval $ac_var=\$ac_old_val
2418 fi
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2420 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2422 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2423 fi;;
2424 esac
2425 # Pass precious variables to config.status.
2426 if test "$ac_new_set" = set; then
2427 case $ac_new_val in
2428 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2429 *) ac_arg=$ac_var=$ac_new_val ;;
2430 esac
2431 case " $ac_configure_args " in
2432 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2433 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2434 esac
2435 fi
2436 done
2437 if $ac_cache_corrupted; then
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2441 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2442 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2443 fi
2444 ## -------------------- ##
2445 ## Main body of script. ##
2446 ## -------------------- ##
2447
2448 ac_ext=c
2449 ac_cpp='$CPP $CPPFLAGS'
2450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2453
2454
2455 am__api_version='1.12'
2456
2457 ac_aux_dir=
2458 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2459 if test -f "$ac_dir/install-sh"; then
2460 ac_aux_dir=$ac_dir
2461 ac_install_sh="$ac_aux_dir/install-sh -c"
2462 break
2463 elif test -f "$ac_dir/install.sh"; then
2464 ac_aux_dir=$ac_dir
2465 ac_install_sh="$ac_aux_dir/install.sh -c"
2466 break
2467 elif test -f "$ac_dir/shtool"; then
2468 ac_aux_dir=$ac_dir
2469 ac_install_sh="$ac_aux_dir/shtool install -c"
2470 break
2471 fi
2472 done
2473 if test -z "$ac_aux_dir"; then
2474 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2475 fi
2476
2477 # These three variables are undocumented and unsupported,
2478 # and are intended to be withdrawn in a future Autoconf release.
2479 # They can cause serious problems if a builder's source tree is in a directory
2480 # whose full name contains unusual characters.
2481 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2482 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2483 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2484
2485
2486 # Find a good install program. We prefer a C program (faster),
2487 # so one script is as good as another. But avoid the broken or
2488 # incompatible versions:
2489 # SysV /etc/install, /usr/sbin/install
2490 # SunOS /usr/etc/install
2491 # IRIX /sbin/install
2492 # AIX /bin/install
2493 # AmigaOS /C/install, which installs bootblocks on floppy discs
2494 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2495 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2496 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2497 # OS/2's system install, which has a completely different semantic
2498 # ./install, which can be erroneously created by make from ./install.sh.
2499 # Reject install programs that cannot install multiple files.
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2501 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2502 if test -z "$INSTALL"; then
2503 if ${ac_cv_path_install+:} false; then :
2504 $as_echo_n "(cached) " >&6
2505 else
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507 for as_dir in $PATH
2508 do
2509 IFS=$as_save_IFS
2510 test -z "$as_dir" && as_dir=.
2511 # Account for people who put trailing slashes in PATH elements.
2512 case $as_dir/ in #((
2513 ./ | .// | /[cC]/* | \
2514 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2515 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2516 /usr/ucb/* ) ;;
2517 *)
2518 # OSF1 and SCO ODT 3.0 have their own names for install.
2519 # Don't use installbsd from OSF since it installs stuff as root
2520 # by default.
2521 for ac_prog in ginstall scoinst install; do
2522 for ac_exec_ext in '' $ac_executable_extensions; do
2523 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2524 if test $ac_prog = install &&
2525 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2526 # AIX install. It has an incompatible calling convention.
2527 :
2528 elif test $ac_prog = install &&
2529 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2530 # program-specific install script used by HP pwplus--don't use.
2531 :
2532 else
2533 rm -rf conftest.one conftest.two conftest.dir
2534 echo one > conftest.one
2535 echo two > conftest.two
2536 mkdir conftest.dir
2537 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2538 test -s conftest.one && test -s conftest.two &&
2539 test -s conftest.dir/conftest.one &&
2540 test -s conftest.dir/conftest.two
2541 then
2542 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2543 break 3
2544 fi
2545 fi
2546 fi
2547 done
2548 done
2549 ;;
2550 esac
2551
2552 done
2553 IFS=$as_save_IFS
2554
2555 rm -rf conftest.one conftest.two conftest.dir
2556
2557 fi
2558 if test "${ac_cv_path_install+set}" = set; then
2559 INSTALL=$ac_cv_path_install
2560 else
2561 # As a last resort, use the slow shell script. Don't cache a
2562 # value for INSTALL within a source directory, because that will
2563 # break other packages using the cache if that directory is
2564 # removed, or if the value is a relative name.
2565 INSTALL=$ac_install_sh
2566 fi
2567 fi
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2569 $as_echo "$INSTALL" >&6; }
2570
2571 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2572 # It thinks the first close brace ends the variable substitution.
2573 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2574
2575 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2576
2577 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2578
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2580 $as_echo_n "checking whether build environment is sane... " >&6; }
2581 # Reject unsafe characters in $srcdir or the absolute working directory
2582 # name. Accept space and tab only in the latter.
2583 am_lf='
2584 '
2585 case `pwd` in
2586 *[\\\"\#\$\&\'\`$am_lf]*)
2587 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2588 esac
2589 case $srcdir in
2590 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2591 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2592 esac
2593
2594 # Do 'set' in a subshell so we don't clobber the current shell's
2595 # arguments. Must try -L first in case configure is actually a
2596 # symlink; some systems play weird games with the mod time of symlinks
2597 # (eg FreeBSD returns the mod time of the symlink's containing
2598 # directory).
2599 if (
2600 am_has_slept=no
2601 for am_try in 1 2; do
2602 echo "timestamp, slept: $am_has_slept" > conftest.file
2603 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2604 if test "$*" = "X"; then
2605 # -L didn't work.
2606 set X `ls -t "$srcdir/configure" conftest.file`
2607 fi
2608 if test "$*" != "X $srcdir/configure conftest.file" \
2609 && test "$*" != "X conftest.file $srcdir/configure"; then
2610
2611 # If neither matched, then we have a broken ls. This can happen
2612 # if, for instance, CONFIG_SHELL is bash and it inherits a
2613 # broken ls alias from the environment. This has actually
2614 # happened. Such a system could not be considered "sane".
2615 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2616 alias in your environment" "$LINENO" 5
2617 fi
2618 if test "$2" = conftest.file || test $am_try -eq 2; then
2619 break
2620 fi
2621 # Just in case.
2622 sleep 1
2623 am_has_slept=yes
2624 done
2625 test "$2" = conftest.file
2626 )
2627 then
2628 # Ok.
2629 :
2630 else
2631 as_fn_error $? "newly created file is older than distributed files!
2632 Check your system clock" "$LINENO" 5
2633 fi
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2635 $as_echo "yes" >&6; }
2636 # If we didn't sleep, we still need to ensure time stamps of config.status and
2637 # generated files are strictly newer.
2638 am_sleep_pid=
2639 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2640 ( sleep 1 ) &
2641 am_sleep_pid=$!
2642 fi
2643
2644 rm -f conftest.file
2645
2646 test "$program_prefix" != NONE &&
2647 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2648 # Use a double $ so make ignores it.
2649 test "$program_suffix" != NONE &&
2650 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2651 # Double any \ or $.
2652 # By default was `s,x,x', remove it if useless.
2653 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2654 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2655
2656 # expand $ac_aux_dir to an absolute path
2657 am_aux_dir=`cd $ac_aux_dir && pwd`
2658
2659 if test x"${MISSING+set}" != xset; then
2660 case $am_aux_dir in
2661 *\ * | *\ *)
2662 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2663 *)
2664 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2665 esac
2666 fi
2667 # Use eval to expand $SHELL
2668 if eval "$MISSING --run true"; then
2669 am_missing_run="$MISSING --run "
2670 else
2671 am_missing_run=
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2673 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2674 fi
2675
2676 if test x"${install_sh}" != xset; then
2677 case $am_aux_dir in
2678 *\ * | *\ *)
2679 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2680 *)
2681 install_sh="\${SHELL} $am_aux_dir/install-sh"
2682 esac
2683 fi
2684
2685 # Installed binaries are usually stripped using 'strip' when the user
2686 # run "make install-strip". However 'strip' might not be the right
2687 # tool to use in cross-compilation environments, therefore Automake
2688 # will honor the 'STRIP' environment variable to overrule this program.
2689 if test "$cross_compiling" != no; then
2690 if test -n "$ac_tool_prefix"; then
2691 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2692 set dummy ${ac_tool_prefix}strip; ac_word=$2
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2694 $as_echo_n "checking for $ac_word... " >&6; }
2695 if ${ac_cv_prog_STRIP+:} false; then :
2696 $as_echo_n "(cached) " >&6
2697 else
2698 if test -n "$STRIP"; then
2699 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2700 else
2701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702 for as_dir in $PATH
2703 do
2704 IFS=$as_save_IFS
2705 test -z "$as_dir" && as_dir=.
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2708 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2710 break 2
2711 fi
2712 done
2713 done
2714 IFS=$as_save_IFS
2715
2716 fi
2717 fi
2718 STRIP=$ac_cv_prog_STRIP
2719 if test -n "$STRIP"; then
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2721 $as_echo "$STRIP" >&6; }
2722 else
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2724 $as_echo "no" >&6; }
2725 fi
2726
2727
2728 fi
2729 if test -z "$ac_cv_prog_STRIP"; then
2730 ac_ct_STRIP=$STRIP
2731 # Extract the first word of "strip", so it can be a program name with args.
2732 set dummy strip; ac_word=$2
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2734 $as_echo_n "checking for $ac_word... " >&6; }
2735 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2736 $as_echo_n "(cached) " >&6
2737 else
2738 if test -n "$ac_ct_STRIP"; then
2739 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2740 else
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 for as_dir in $PATH
2743 do
2744 IFS=$as_save_IFS
2745 test -z "$as_dir" && as_dir=.
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2748 ac_cv_prog_ac_ct_STRIP="strip"
2749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2750 break 2
2751 fi
2752 done
2753 done
2754 IFS=$as_save_IFS
2755
2756 fi
2757 fi
2758 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2759 if test -n "$ac_ct_STRIP"; then
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2761 $as_echo "$ac_ct_STRIP" >&6; }
2762 else
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2764 $as_echo "no" >&6; }
2765 fi
2766
2767 if test "x$ac_ct_STRIP" = x; then
2768 STRIP=":"
2769 else
2770 case $cross_compiling:$ac_tool_warned in
2771 yes:)
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2774 ac_tool_warned=yes ;;
2775 esac
2776 STRIP=$ac_ct_STRIP
2777 fi
2778 else
2779 STRIP="$ac_cv_prog_STRIP"
2780 fi
2781
2782 fi
2783 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2784
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2786 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2787 if test -z "$MKDIR_P"; then
2788 if ${ac_cv_path_mkdir+:} false; then :
2789 $as_echo_n "(cached) " >&6
2790 else
2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2793 do
2794 IFS=$as_save_IFS
2795 test -z "$as_dir" && as_dir=.
2796 for ac_prog in mkdir gmkdir; do
2797 for ac_exec_ext in '' $ac_executable_extensions; do
2798 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2799 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2800 'mkdir (GNU coreutils) '* | \
2801 'mkdir (coreutils) '* | \
2802 'mkdir (fileutils) '4.1*)
2803 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2804 break 3;;
2805 esac
2806 done
2807 done
2808 done
2809 IFS=$as_save_IFS
2810
2811 fi
2812
2813 test -d ./--version && rmdir ./--version
2814 if test "${ac_cv_path_mkdir+set}" = set; then
2815 MKDIR_P="$ac_cv_path_mkdir -p"
2816 else
2817 # As a last resort, use the slow shell script. Don't cache a
2818 # value for MKDIR_P within a source directory, because that will
2819 # break other packages using the cache if that directory is
2820 # removed, or if the value is a relative name.
2821 MKDIR_P="$ac_install_sh -d"
2822 fi
2823 fi
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2825 $as_echo "$MKDIR_P" >&6; }
2826
2827 for ac_prog in gawk mawk nawk awk
2828 do
2829 # Extract the first word of "$ac_prog", so it can be a program name with args.
2830 set dummy $ac_prog; ac_word=$2
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2832 $as_echo_n "checking for $ac_word... " >&6; }
2833 if ${ac_cv_prog_AWK+:} false; then :
2834 $as_echo_n "(cached) " >&6
2835 else
2836 if test -n "$AWK"; then
2837 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2838 else
2839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840 for as_dir in $PATH
2841 do
2842 IFS=$as_save_IFS
2843 test -z "$as_dir" && as_dir=.
2844 for ac_exec_ext in '' $ac_executable_extensions; do
2845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2846 ac_cv_prog_AWK="$ac_prog"
2847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2848 break 2
2849 fi
2850 done
2851 done
2852 IFS=$as_save_IFS
2853
2854 fi
2855 fi
2856 AWK=$ac_cv_prog_AWK
2857 if test -n "$AWK"; then
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2859 $as_echo "$AWK" >&6; }
2860 else
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2862 $as_echo "no" >&6; }
2863 fi
2864
2865
2866 test -n "$AWK" && break
2867 done
2868
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2870 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2871 set x ${MAKE-make}
2872 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2873 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2874 $as_echo_n "(cached) " >&6
2875 else
2876 cat >conftest.make <<\_ACEOF
2877 SHELL = /bin/sh
2878 all:
2879 @echo '@@@%%%=$(MAKE)=@@@%%%'
2880 _ACEOF
2881 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2882 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2883 *@@@%%%=?*=@@@%%%*)
2884 eval ac_cv_prog_make_${ac_make}_set=yes;;
2885 *)
2886 eval ac_cv_prog_make_${ac_make}_set=no;;
2887 esac
2888 rm -f conftest.make
2889 fi
2890 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2892 $as_echo "yes" >&6; }
2893 SET_MAKE=
2894 else
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896 $as_echo "no" >&6; }
2897 SET_MAKE="MAKE=${MAKE-make}"
2898 fi
2899
2900 rm -rf .tst 2>/dev/null
2901 mkdir .tst 2>/dev/null
2902 if test -d .tst; then
2903 am__leading_dot=.
2904 else
2905 am__leading_dot=_
2906 fi
2907 rmdir .tst 2>/dev/null
2908
2909 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2910 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2911 # is not polluted with repeated "-I."
2912 am__isrc=' -I$(srcdir)'
2913 # test to see if srcdir already configured
2914 if test -f $srcdir/config.status; then
2915 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2916 fi
2917 fi
2918
2919 # test whether we have cygpath
2920 if test -z "$CYGPATH_W"; then
2921 if (cygpath --version) >/dev/null 2>/dev/null; then
2922 CYGPATH_W='cygpath -w'
2923 else
2924 CYGPATH_W=echo
2925 fi
2926 fi
2927
2928
2929 # Define the identity of the package.
2930 PACKAGE='ircd-hybrid'
2931 VERSION='8.0.0'
2932
2933
2934 cat >>confdefs.h <<_ACEOF
2935 #define PACKAGE "$PACKAGE"
2936 _ACEOF
2937
2938
2939 cat >>confdefs.h <<_ACEOF
2940 #define VERSION "$VERSION"
2941 _ACEOF
2942
2943 # Some tools Automake needs.
2944
2945 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2946
2947
2948 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2949
2950
2951 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2952
2953
2954 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2955
2956
2957 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2958
2959 # For better backward compatibility. To be removed once Automake 1.9.x
2960 # dies out for good. For more background, see:
2961 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2962 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2963 mkdir_p='$(MKDIR_P)'
2964
2965 # We need awk for the "check" target. The system "awk" is bad on
2966 # some platforms.
2967 # Always define AMTAR for backward compatibility. Yes, it's still used
2968 # in the wild :-( We should find a proper way to deprecate it ...
2969 AMTAR='$${TAR-tar}'
2970
2971 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2972
2973
2974
2975
2976
2977
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2979 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2980 # Check whether --enable-maintainer-mode was given.
2981 if test "${enable_maintainer_mode+set}" = set; then :
2982 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2983 else
2984 USE_MAINTAINER_MODE=no
2985 fi
2986
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2988 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2989 if test $USE_MAINTAINER_MODE = yes; then
2990 MAINTAINER_MODE_TRUE=
2991 MAINTAINER_MODE_FALSE='#'
2992 else
2993 MAINTAINER_MODE_TRUE='#'
2994 MAINTAINER_MODE_FALSE=
2995 fi
2996
2997 MAINT=$MAINTAINER_MODE_TRUE
2998
2999
3000 ac_config_headers="$ac_config_headers config.h"
3001
3002
3003
3004 # Checks for programs.
3005 DEPDIR="${am__leading_dot}deps"
3006
3007 ac_config_commands="$ac_config_commands depfiles"
3008
3009
3010 am_make=${MAKE-make}
3011 cat > confinc << 'END'
3012 am__doit:
3013 @echo this is the am__doit target
3014 .PHONY: am__doit
3015 END
3016 # If we don't find an include directive, just comment out the code.
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3018 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3019 am__include="#"
3020 am__quote=
3021 _am_result=none
3022 # First try GNU make style include.
3023 echo "include confinc" > confmf
3024 # Ignore all kinds of additional output from 'make'.
3025 case `$am_make -s -f confmf 2> /dev/null` in #(
3026 *the\ am__doit\ target*)
3027 am__include=include
3028 am__quote=
3029 _am_result=GNU
3030 ;;
3031 esac
3032 # Now try BSD make style include.
3033 if test "$am__include" = "#"; then
3034 echo '.include "confinc"' > confmf
3035 case `$am_make -s -f confmf 2> /dev/null` in #(
3036 *the\ am__doit\ target*)
3037 am__include=.include
3038 am__quote="\""
3039 _am_result=BSD
3040 ;;
3041 esac
3042 fi
3043
3044
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3046 $as_echo "$_am_result" >&6; }
3047 rm -f confinc confmf
3048
3049 # Check whether --enable-dependency-tracking was given.
3050 if test "${enable_dependency_tracking+set}" = set; then :
3051 enableval=$enable_dependency_tracking;
3052 fi
3053
3054 if test "x$enable_dependency_tracking" != xno; then
3055 am_depcomp="$ac_aux_dir/depcomp"
3056 AMDEPBACKSLASH='\'
3057 am__nodep='_no'
3058 fi
3059 if test "x$enable_dependency_tracking" != xno; then
3060 AMDEP_TRUE=
3061 AMDEP_FALSE='#'
3062 else
3063 AMDEP_TRUE='#'
3064 AMDEP_FALSE=
3065 fi
3066
3067
3068 ac_ext=c
3069 ac_cpp='$CPP $CPPFLAGS'
3070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3073 if test -n "$ac_tool_prefix"; then
3074 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3075 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3077 $as_echo_n "checking for $ac_word... " >&6; }
3078 if ${ac_cv_prog_CC+:} false; then :
3079 $as_echo_n "(cached) " >&6
3080 else
3081 if test -n "$CC"; then
3082 ac_cv_prog_CC="$CC" # Let the user override the test.
3083 else
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 for as_dir in $PATH
3086 do
3087 IFS=$as_save_IFS
3088 test -z "$as_dir" && as_dir=.
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3091 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3093 break 2
3094 fi
3095 done
3096 done
3097 IFS=$as_save_IFS
3098
3099 fi
3100 fi
3101 CC=$ac_cv_prog_CC
3102 if test -n "$CC"; then
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3104 $as_echo "$CC" >&6; }
3105 else
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3107 $as_echo "no" >&6; }
3108 fi
3109
3110
3111 fi
3112 if test -z "$ac_cv_prog_CC"; then
3113 ac_ct_CC=$CC
3114 # Extract the first word of "gcc", so it can be a program name with args.
3115 set dummy gcc; ac_word=$2
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3117 $as_echo_n "checking for $ac_word... " >&6; }
3118 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3119 $as_echo_n "(cached) " >&6
3120 else
3121 if test -n "$ac_ct_CC"; then
3122 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3123 else
3124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125 for as_dir in $PATH
3126 do
3127 IFS=$as_save_IFS
3128 test -z "$as_dir" && as_dir=.
3129 for ac_exec_ext in '' $ac_executable_extensions; do
3130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3131 ac_cv_prog_ac_ct_CC="gcc"
3132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3133 break 2
3134 fi
3135 done
3136 done
3137 IFS=$as_save_IFS
3138
3139 fi
3140 fi
3141 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3142 if test -n "$ac_ct_CC"; then
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3144 $as_echo "$ac_ct_CC" >&6; }
3145 else
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147 $as_echo "no" >&6; }
3148 fi
3149
3150 if test "x$ac_ct_CC" = x; then
3151 CC=""
3152 else
3153 case $cross_compiling:$ac_tool_warned in
3154 yes:)
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3157 ac_tool_warned=yes ;;
3158 esac
3159 CC=$ac_ct_CC
3160 fi
3161 else
3162 CC="$ac_cv_prog_CC"
3163 fi
3164
3165 if test -z "$CC"; then
3166 if test -n "$ac_tool_prefix"; then
3167 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3168 set dummy ${ac_tool_prefix}cc; ac_word=$2
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3170 $as_echo_n "checking for $ac_word... " >&6; }
3171 if ${ac_cv_prog_CC+:} false; then :
3172 $as_echo_n "(cached) " >&6
3173 else
3174 if test -n "$CC"; then
3175 ac_cv_prog_CC="$CC" # Let the user override the test.
3176 else
3177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178 for as_dir in $PATH
3179 do
3180 IFS=$as_save_IFS
3181 test -z "$as_dir" && as_dir=.
3182 for ac_exec_ext in '' $ac_executable_extensions; do
3183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3184 ac_cv_prog_CC="${ac_tool_prefix}cc"
3185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3186 break 2
3187 fi
3188 done
3189 done
3190 IFS=$as_save_IFS
3191
3192 fi
3193 fi
3194 CC=$ac_cv_prog_CC
3195 if test -n "$CC"; then
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3197 $as_echo "$CC" >&6; }
3198 else
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200 $as_echo "no" >&6; }
3201 fi
3202
3203
3204 fi
3205 fi
3206 if test -z "$CC"; then
3207 # Extract the first word of "cc", so it can be a program name with args.
3208 set dummy cc; ac_word=$2
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3210 $as_echo_n "checking for $ac_word... " >&6; }
3211 if ${ac_cv_prog_CC+:} false; then :
3212 $as_echo_n "(cached) " >&6
3213 else
3214 if test -n "$CC"; then
3215 ac_cv_prog_CC="$CC" # Let the user override the test.
3216 else
3217 ac_prog_rejected=no
3218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219 for as_dir in $PATH
3220 do
3221 IFS=$as_save_IFS
3222 test -z "$as_dir" && as_dir=.
3223 for ac_exec_ext in '' $ac_executable_extensions; do
3224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3225 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3226 ac_prog_rejected=yes
3227 continue
3228 fi
3229 ac_cv_prog_CC="cc"
3230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3231 break 2
3232 fi
3233 done
3234 done
3235 IFS=$as_save_IFS
3236
3237 if test $ac_prog_rejected = yes; then
3238 # We found a bogon in the path, so make sure we never use it.
3239 set dummy $ac_cv_prog_CC
3240 shift
3241 if test $# != 0; then
3242 # We chose a different compiler from the bogus one.
3243 # However, it has the same basename, so the bogon will be chosen
3244 # first if we set CC to just the basename; use the full file name.
3245 shift
3246 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3247 fi
3248 fi
3249 fi
3250 fi
3251 CC=$ac_cv_prog_CC
3252 if test -n "$CC"; then
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3254 $as_echo "$CC" >&6; }
3255 else
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257 $as_echo "no" >&6; }
3258 fi
3259
3260
3261 fi
3262 if test -z "$CC"; then
3263 if test -n "$ac_tool_prefix"; then
3264 for ac_prog in cl.exe
3265 do
3266 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3267 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3269 $as_echo_n "checking for $ac_word... " >&6; }
3270 if ${ac_cv_prog_CC+:} false; then :
3271 $as_echo_n "(cached) " >&6
3272 else
3273 if test -n "$CC"; then
3274 ac_cv_prog_CC="$CC" # Let the user override the test.
3275 else
3276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 for as_dir in $PATH
3278 do
3279 IFS=$as_save_IFS
3280 test -z "$as_dir" && as_dir=.
3281 for ac_exec_ext in '' $ac_executable_extensions; do
3282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3283 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3285 break 2
3286 fi
3287 done
3288 done
3289 IFS=$as_save_IFS
3290
3291 fi
3292 fi
3293 CC=$ac_cv_prog_CC
3294 if test -n "$CC"; then
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3296 $as_echo "$CC" >&6; }
3297 else
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299 $as_echo "no" >&6; }
3300 fi
3301
3302
3303 test -n "$CC" && break
3304 done
3305 fi
3306 if test -z "$CC"; then
3307 ac_ct_CC=$CC
3308 for ac_prog in cl.exe
3309 do
3310 # Extract the first word of "$ac_prog", so it can be a program name with args.
3311 set dummy $ac_prog; ac_word=$2
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3313 $as_echo_n "checking for $ac_word... " >&6; }
3314 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3315 $as_echo_n "(cached) " >&6
3316 else
3317 if test -n "$ac_ct_CC"; then
3318 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3319 else
3320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321 for as_dir in $PATH
3322 do
3323 IFS=$as_save_IFS
3324 test -z "$as_dir" && as_dir=.
3325 for ac_exec_ext in '' $ac_executable_extensions; do
3326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3327 ac_cv_prog_ac_ct_CC="$ac_prog"
3328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3329 break 2
3330 fi
3331 done
3332 done
3333 IFS=$as_save_IFS
3334
3335 fi
3336 fi
3337 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3338 if test -n "$ac_ct_CC"; then
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3340 $as_echo "$ac_ct_CC" >&6; }
3341 else
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3343 $as_echo "no" >&6; }
3344 fi
3345
3346
3347 test -n "$ac_ct_CC" && break
3348 done
3349
3350 if test "x$ac_ct_CC" = x; then
3351 CC=""
3352 else
3353 case $cross_compiling:$ac_tool_warned in
3354 yes:)
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3357 ac_tool_warned=yes ;;
3358 esac
3359 CC=$ac_ct_CC
3360 fi
3361 fi
3362
3363 fi
3364
3365
3366 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3368 as_fn_error $? "no acceptable C compiler found in \$PATH
3369 See \`config.log' for more details" "$LINENO" 5; }
3370
3371 # Provide some information about the compiler.
3372 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3373 set X $ac_compile
3374 ac_compiler=$2
3375 for ac_option in --version -v -V -qversion; do
3376 { { ac_try="$ac_compiler $ac_option >&5"
3377 case "(($ac_try" in
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3380 esac
3381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3382 $as_echo "$ac_try_echo"; } >&5
3383 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3384 ac_status=$?
3385 if test -s conftest.err; then
3386 sed '10a\
3387 ... rest of stderr output deleted ...
3388 10q' conftest.err >conftest.er1
3389 cat conftest.er1 >&5
3390 fi
3391 rm -f conftest.er1 conftest.err
3392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3393 test $ac_status = 0; }
3394 done
3395
3396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397 /* end confdefs.h. */
3398
3399 int
3400 main ()
3401 {
3402
3403 ;
3404 return 0;
3405 }
3406 _ACEOF
3407 ac_clean_files_save=$ac_clean_files
3408 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3409 # Try to create an executable without -o first, disregard a.out.
3410 # It will help us diagnose broken compilers, and finding out an intuition
3411 # of exeext.
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3413 $as_echo_n "checking whether the C compiler works... " >&6; }
3414 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3415
3416 # The possible output files:
3417 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3418
3419 ac_rmfiles=
3420 for ac_file in $ac_files
3421 do
3422 case $ac_file in
3423 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3424 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3425 esac
3426 done
3427 rm -f $ac_rmfiles
3428
3429 if { { ac_try="$ac_link_default"
3430 case "(($ac_try" in
3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3433 esac
3434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3435 $as_echo "$ac_try_echo"; } >&5
3436 (eval "$ac_link_default") 2>&5
3437 ac_status=$?
3438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3439 test $ac_status = 0; }; then :
3440 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3441 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3442 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3443 # so that the user can short-circuit this test for compilers unknown to
3444 # Autoconf.
3445 for ac_file in $ac_files ''
3446 do
3447 test -f "$ac_file" || continue
3448 case $ac_file in
3449 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3450 ;;
3451 [ab].out )
3452 # We found the default executable, but exeext='' is most
3453 # certainly right.
3454 break;;
3455 *.* )
3456 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3457 then :; else
3458 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3459 fi
3460 # We set ac_cv_exeext here because the later test for it is not
3461 # safe: cross compilers may not add the suffix if given an `-o'
3462 # argument, so we may need to know it at that point already.
3463 # Even if this section looks crufty: it has the advantage of
3464 # actually working.
3465 break;;
3466 * )
3467 break;;
3468 esac
3469 done
3470 test "$ac_cv_exeext" = no && ac_cv_exeext=
3471
3472 else
3473 ac_file=''
3474 fi
3475 if test -z "$ac_file"; then :
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3477 $as_echo "no" >&6; }
3478 $as_echo "$as_me: failed program was:" >&5
3479 sed 's/^/| /' conftest.$ac_ext >&5
3480
3481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3483 as_fn_error 77 "C compiler cannot create executables
3484 See \`config.log' for more details" "$LINENO" 5; }
3485 else
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3487 $as_echo "yes" >&6; }
3488 fi
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3490 $as_echo_n "checking for C compiler default output file name... " >&6; }
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3492 $as_echo "$ac_file" >&6; }
3493 ac_exeext=$ac_cv_exeext
3494
3495 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3496 ac_clean_files=$ac_clean_files_save
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3498 $as_echo_n "checking for suffix of executables... " >&6; }
3499 if { { ac_try="$ac_link"
3500 case "(($ac_try" in
3501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502 *) ac_try_echo=$ac_try;;
3503 esac
3504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3505 $as_echo "$ac_try_echo"; } >&5
3506 (eval "$ac_link") 2>&5
3507 ac_status=$?
3508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3509 test $ac_status = 0; }; then :
3510 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3511 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3512 # work properly (i.e., refer to `conftest.exe'), while it won't with
3513 # `rm'.
3514 for ac_file in conftest.exe conftest conftest.*; do
3515 test -f "$ac_file" || continue
3516 case $ac_file in
3517 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3518 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3519 break;;
3520 * ) break;;
3521 esac
3522 done
3523 else
3524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3526 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3527 See \`config.log' for more details" "$LINENO" 5; }
3528 fi
3529 rm -f conftest conftest$ac_cv_exeext
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3531 $as_echo "$ac_cv_exeext" >&6; }
3532
3533 rm -f conftest.$ac_ext
3534 EXEEXT=$ac_cv_exeext
3535 ac_exeext=$EXEEXT
3536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537 /* end confdefs.h. */
3538 #include <stdio.h>
3539 int
3540 main ()
3541 {
3542 FILE *f = fopen ("conftest.out", "w");
3543 return ferror (f) || fclose (f) != 0;
3544
3545 ;
3546 return 0;
3547 }
3548 _ACEOF
3549 ac_clean_files="$ac_clean_files conftest.out"
3550 # Check that the compiler produces executables we can run. If not, either
3551 # the compiler is broken, or we cross compile.
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3553 $as_echo_n "checking whether we are cross compiling... " >&6; }
3554 if test "$cross_compiling" != yes; then
3555 { { ac_try="$ac_link"
3556 case "(($ac_try" in
3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;;
3559 esac
3560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3561 $as_echo "$ac_try_echo"; } >&5
3562 (eval "$ac_link") 2>&5
3563 ac_status=$?
3564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3565 test $ac_status = 0; }
3566 if { ac_try='./conftest$ac_cv_exeext'
3567 { { case "(($ac_try" in
3568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569 *) ac_try_echo=$ac_try;;
3570 esac
3571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3572 $as_echo "$ac_try_echo"; } >&5
3573 (eval "$ac_try") 2>&5
3574 ac_status=$?
3575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3576 test $ac_status = 0; }; }; then
3577 cross_compiling=no
3578 else
3579 if test "$cross_compiling" = maybe; then
3580 cross_compiling=yes
3581 else
3582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3584 as_fn_error $? "cannot run C compiled programs.
3585 If you meant to cross compile, use \`--host'.
3586 See \`config.log' for more details" "$LINENO" 5; }
3587 fi
3588 fi
3589 fi
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3591 $as_echo "$cross_compiling" >&6; }
3592
3593 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3594 ac_clean_files=$ac_clean_files_save
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3596 $as_echo_n "checking for suffix of object files... " >&6; }
3597 if ${ac_cv_objext+:} false; then :
3598 $as_echo_n "(cached) " >&6
3599 else
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h. */
3602
3603 int
3604 main ()
3605 {
3606
3607 ;
3608 return 0;
3609 }
3610 _ACEOF
3611 rm -f conftest.o conftest.obj
3612 if { { ac_try="$ac_compile"
3613 case "(($ac_try" in
3614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615 *) ac_try_echo=$ac_try;;
3616 esac
3617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3618 $as_echo "$ac_try_echo"; } >&5
3619 (eval "$ac_compile") 2>&5
3620 ac_status=$?
3621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3622 test $ac_status = 0; }; then :
3623 for ac_file in conftest.o conftest.obj conftest.*; do
3624 test -f "$ac_file" || continue;
3625 case $ac_file in
3626 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3627 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3628 break;;
3629 esac
3630 done
3631 else
3632 $as_echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3634
3635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3637 as_fn_error $? "cannot compute suffix of object files: cannot compile
3638 See \`config.log' for more details" "$LINENO" 5; }
3639 fi
3640 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3641 fi
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3643 $as_echo "$ac_cv_objext" >&6; }
3644 OBJEXT=$ac_cv_objext
3645 ac_objext=$OBJEXT
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3647 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3648 if ${ac_cv_c_compiler_gnu+:} false; then :
3649 $as_echo_n "(cached) " >&6
3650 else
3651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652 /* end confdefs.h. */
3653
3654 int
3655 main ()
3656 {
3657 #ifndef __GNUC__
3658 choke me
3659 #endif
3660
3661 ;
3662 return 0;
3663 }
3664 _ACEOF
3665 if ac_fn_c_try_compile "$LINENO"; then :
3666 ac_compiler_gnu=yes
3667 else
3668 ac_compiler_gnu=no
3669 fi
3670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3671 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3672
3673 fi
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3675 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3676 if test $ac_compiler_gnu = yes; then
3677 GCC=yes
3678 else
3679 GCC=
3680 fi
3681 ac_test_CFLAGS=${CFLAGS+set}
3682 ac_save_CFLAGS=$CFLAGS
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3684 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3685 if ${ac_cv_prog_cc_g+:} false; then :
3686 $as_echo_n "(cached) " >&6
3687 else
3688 ac_save_c_werror_flag=$ac_c_werror_flag
3689 ac_c_werror_flag=yes
3690 ac_cv_prog_cc_g=no
3691 CFLAGS="-g"
3692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3693 /* end confdefs.h. */
3694
3695 int
3696 main ()
3697 {
3698
3699 ;
3700 return 0;
3701 }
3702 _ACEOF
3703 if ac_fn_c_try_compile "$LINENO"; then :
3704 ac_cv_prog_cc_g=yes
3705 else
3706 CFLAGS=""
3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h. */
3709
3710 int
3711 main ()
3712 {
3713
3714 ;
3715 return 0;
3716 }
3717 _ACEOF
3718 if ac_fn_c_try_compile "$LINENO"; then :
3719
3720 else
3721 ac_c_werror_flag=$ac_save_c_werror_flag
3722 CFLAGS="-g"
3723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3724 /* end confdefs.h. */
3725
3726 int
3727 main ()
3728 {
3729
3730 ;
3731 return 0;
3732 }
3733 _ACEOF
3734 if ac_fn_c_try_compile "$LINENO"; then :
3735 ac_cv_prog_cc_g=yes
3736 fi
3737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3738 fi
3739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3740 fi
3741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3742 ac_c_werror_flag=$ac_save_c_werror_flag
3743 fi
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3745 $as_echo "$ac_cv_prog_cc_g" >&6; }
3746 if test "$ac_test_CFLAGS" = set; then
3747 CFLAGS=$ac_save_CFLAGS
3748 elif test $ac_cv_prog_cc_g = yes; then
3749 if test "$GCC" = yes; then
3750 CFLAGS="-g -O2"
3751 else
3752 CFLAGS="-g"
3753 fi
3754 else
3755 if test "$GCC" = yes; then
3756 CFLAGS="-O2"
3757 else
3758 CFLAGS=
3759 fi
3760 fi
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3762 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3763 if ${ac_cv_prog_cc_c89+:} false; then :
3764 $as_echo_n "(cached) " >&6
3765 else
3766 ac_cv_prog_cc_c89=no
3767 ac_save_CC=$CC
3768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769 /* end confdefs.h. */
3770 #include <stdarg.h>
3771 #include <stdio.h>
3772 struct stat;
3773 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3774 struct buf { int x; };
3775 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3776 static char *e (p, i)
3777 char **p;
3778 int i;
3779 {
3780 return p[i];
3781 }
3782 static char *f (char * (*g) (char **, int), char **p, ...)
3783 {
3784 char *s;
3785 va_list v;
3786 va_start (v,p);
3787 s = g (p, va_arg (v,int));
3788 va_end (v);
3789 return s;
3790 }
3791
3792 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3793 function prototypes and stuff, but not '\xHH' hex character constants.
3794 These don't provoke an error unfortunately, instead are silently treated
3795 as 'x'. The following induces an error, until -std is added to get
3796 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3797 array size at least. It's necessary to write '\x00'==0 to get something
3798 that's true only with -std. */
3799 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3800
3801 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3802 inside strings and character constants. */
3803 #define FOO(x) 'x'
3804 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3805
3806 int test (int i, double x);
3807 struct s1 {int (*f) (int a);};
3808 struct s2 {int (*f) (double a);};
3809 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3810 int argc;
3811 char **argv;
3812 int
3813 main ()
3814 {
3815 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3816 ;
3817 return 0;
3818 }
3819 _ACEOF
3820 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3821 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3822 do
3823 CC="$ac_save_CC $ac_arg"
3824 if ac_fn_c_try_compile "$LINENO"; then :
3825 ac_cv_prog_cc_c89=$ac_arg
3826 fi
3827 rm -f core conftest.err conftest.$ac_objext
3828 test "x$ac_cv_prog_cc_c89" != "xno" && break
3829 done
3830 rm -f conftest.$ac_ext
3831 CC=$ac_save_CC
3832
3833 fi
3834 # AC_CACHE_VAL
3835 case "x$ac_cv_prog_cc_c89" in
3836 x)
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3838 $as_echo "none needed" >&6; } ;;
3839 xno)
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3841 $as_echo "unsupported" >&6; } ;;
3842 *)
3843 CC="$CC $ac_cv_prog_cc_c89"
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3845 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3846 esac
3847 if test "x$ac_cv_prog_cc_c89" != xno; then :
3848
3849 fi
3850
3851 ac_ext=c
3852 ac_cpp='$CPP $CPPFLAGS'
3853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3856
3857 depcc="$CC" am_compiler_list=
3858
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3860 $as_echo_n "checking dependency style of $depcc... " >&6; }
3861 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3862 $as_echo_n "(cached) " >&6
3863 else
3864 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3865 # We make a subdir and do the tests there. Otherwise we can end up
3866 # making bogus files that we don't know about and never remove. For
3867 # instance it was reported that on HP-UX the gcc test will end up
3868 # making a dummy file named 'D' -- because '-MD' means "put the output
3869 # in D".
3870 rm -rf conftest.dir
3871 mkdir conftest.dir
3872 # Copy depcomp to subdir because otherwise we won't find it if we're
3873 # using a relative directory.
3874 cp "$am_depcomp" conftest.dir
3875 cd conftest.dir
3876 # We will build objects and dependencies in a subdirectory because
3877 # it helps to detect inapplicable dependency modes. For instance
3878 # both Tru64's cc and ICC support -MD to output dependencies as a
3879 # side effect of compilation, but ICC will put the dependencies in
3880 # the current directory while Tru64 will put them in the object
3881 # directory.
3882 mkdir sub
3883
3884 am_cv_CC_dependencies_compiler_type=none
3885 if test "$am_compiler_list" = ""; then
3886 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3887 fi
3888 am__universal=false
3889 case " $depcc " in #(
3890 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3891 esac
3892
3893 for depmode in $am_compiler_list; do
3894 # Setup a source with many dependencies, because some compilers
3895 # like to wrap large dependency lists on column 80 (with \), and
3896 # we should not choose a depcomp mode which is confused by this.
3897 #
3898 # We need to recreate these files for each test, as the compiler may
3899 # overwrite some of them when testing with obscure command lines.
3900 # This happens at least with the AIX C compiler.
3901 : > sub/conftest.c
3902 for i in 1 2 3 4 5 6; do
3903 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3904 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3905 # Solaris 10 /bin/sh.
3906 echo '/* dummy */' > sub/conftst$i.h
3907 done
3908 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3909
3910 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3911 # mode. It turns out that the SunPro C++ compiler does not properly
3912 # handle '-M -o', and we need to detect this. Also, some Intel
3913 # versions had trouble with output in subdirs.
3914 am__obj=sub/conftest.${OBJEXT-o}
3915 am__minus_obj="-o $am__obj"
3916 case $depmode in
3917 gcc)
3918 # This depmode causes a compiler race in universal mode.
3919 test "$am__universal" = false || continue
3920 ;;
3921 nosideeffect)
3922 # After this tag, mechanisms are not by side-effect, so they'll
3923 # only be used when explicitly requested.
3924 if test "x$enable_dependency_tracking" = xyes; then
3925 continue
3926 else
3927 break
3928 fi
3929 ;;
3930 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3931 # This compiler won't grok '-c -o', but also, the minuso test has
3932 # not run yet. These depmodes are late enough in the game, and
3933 # so weak that their functioning should not be impacted.
3934 am__obj=conftest.${OBJEXT-o}
3935 am__minus_obj=
3936 ;;
3937 none) break ;;
3938 esac
3939 if depmode=$depmode \
3940 source=sub/conftest.c object=$am__obj \
3941 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3942 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3943 >/dev/null 2>conftest.err &&
3944 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3945 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3946 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3947 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3948 # icc doesn't choke on unknown options, it will just issue warnings
3949 # or remarks (even with -Werror). So we grep stderr for any message
3950 # that says an option was ignored or not supported.
3951 # When given -MP, icc 7.0 and 7.1 complain thusly:
3952 # icc: Command line warning: ignoring option '-M'; no argument required
3953 # The diagnosis changed in icc 8.0:
3954 # icc: Command line remark: option '-MP' not supported
3955 if (grep 'ignoring option' conftest.err ||
3956 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3957 am_cv_CC_dependencies_compiler_type=$depmode
3958 break
3959 fi
3960 fi
3961 done
3962
3963 cd ..
3964 rm -rf conftest.dir
3965 else
3966 am_cv_CC_dependencies_compiler_type=none
3967 fi
3968
3969 fi
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3971 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3972 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3973
3974 if
3975 test "x$enable_dependency_tracking" != xno \
3976 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3977 am__fastdepCC_TRUE=
3978 am__fastdepCC_FALSE='#'
3979 else
3980 am__fastdepCC_TRUE='#'
3981 am__fastdepCC_FALSE=
3982 fi
3983
3984
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3986 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3987 if ${ac_cv_prog_cc_c99+:} false; then :
3988 $as_echo_n "(cached) " >&6
3989 else
3990 ac_cv_prog_cc_c99=no
3991 ac_save_CC=$CC
3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993 /* end confdefs.h. */
3994 #include <stdarg.h>
3995 #include <stdbool.h>
3996 #include <stdlib.h>
3997 #include <wchar.h>
3998 #include <stdio.h>
3999
4000 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4001 #define debug(...) fprintf (stderr, __VA_ARGS__)
4002 #define showlist(...) puts (#__VA_ARGS__)
4003 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4004 static void
4005 test_varargs_macros (void)
4006 {
4007 int x = 1234;
4008 int y = 5678;
4009 debug ("Flag");
4010 debug ("X = %d\n", x);
4011 showlist (The first, second, and third items.);
4012 report (x>y, "x is %d but y is %d", x, y);
4013 }
4014
4015 // Check long long types.
4016 #define BIG64 18446744073709551615ull
4017 #define BIG32 4294967295ul
4018 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4019 #if !BIG_OK
4020 your preprocessor is broken;
4021 #endif
4022 #if BIG_OK
4023 #else
4024 your preprocessor is broken;
4025 #endif
4026 static long long int bignum = -9223372036854775807LL;
4027 static unsigned long long int ubignum = BIG64;
4028
4029 struct incomplete_array
4030 {
4031 int datasize;
4032 double data[];
4033 };
4034
4035 struct named_init {
4036 int number;
4037 const wchar_t *name;
4038 double average;
4039 };
4040
4041 typedef const char *ccp;
4042
4043 static inline int
4044 test_restrict (ccp restrict text)
4045 {
4046 // See if C++-style comments work.
4047 // Iterate through items via the restricted pointer.
4048 // Also check for declarations in for loops.
4049 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4050 continue;
4051 return 0;
4052 }
4053
4054 // Check varargs and va_copy.
4055 static void
4056 test_varargs (const char *format, ...)
4057 {
4058 va_list args;
4059 va_start (args, format);
4060 va_list args_copy;
4061 va_copy (args_copy, args);
4062
4063 const char *str;
4064 int number;
4065 float fnumber;
4066
4067 while (*format)
4068 {
4069 switch (*format++)
4070 {
4071 case 's': // string
4072 str = va_arg (args_copy, const char *);
4073 break;
4074 case 'd': // int
4075 number = va_arg (args_copy, int);
4076 break;
4077 case 'f': // float
4078 fnumber = va_arg (args_copy, double);
4079 break;
4080 default:
4081 break;
4082 }
4083 }
4084 va_end (args_copy);
4085 va_end (args);
4086 }
4087
4088 int
4089 main ()
4090 {
4091
4092 // Check bool.
4093 _Bool success = false;
4094
4095 // Check restrict.
4096 if (test_restrict ("String literal") == 0)
4097 success = true;
4098 char *restrict newvar = "Another string";
4099
4100 // Check varargs.
4101 test_varargs ("s, d' f .", "string", 65, 34.234);
4102 test_varargs_macros ();
4103
4104 // Check flexible array members.
4105 struct incomplete_array *ia =
4106 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4107 ia->datasize = 10;
4108 for (int i = 0; i < ia->datasize; ++i)
4109 ia->data[i] = i * 1.234;
4110
4111 // Check named initializers.
4112 struct named_init ni = {
4113 .number = 34,
4114 .name = L"Test wide string",
4115 .average = 543.34343,
4116 };
4117
4118 ni.number = 58;
4119
4120 int dynamic_array[ni.number];
4121 dynamic_array[ni.number - 1] = 543;
4122
4123 // work around unused variable warnings
4124 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4125 || dynamic_array[ni.number - 1] != 543);
4126
4127 ;
4128 return 0;
4129 }
4130 _ACEOF
4131 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4132 do
4133 CC="$ac_save_CC $ac_arg"
4134 if ac_fn_c_try_compile "$LINENO"; then :
4135 ac_cv_prog_cc_c99=$ac_arg
4136 fi
4137 rm -f core conftest.err conftest.$ac_objext
4138 test "x$ac_cv_prog_cc_c99" != "xno" && break
4139 done
4140 rm -f conftest.$ac_ext
4141 CC=$ac_save_CC
4142
4143 fi
4144 # AC_CACHE_VAL
4145 case "x$ac_cv_prog_cc_c99" in
4146 x)
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4148 $as_echo "none needed" >&6; } ;;
4149 xno)
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4151 $as_echo "unsupported" >&6; } ;;
4152 *)
4153 CC="$CC $ac_cv_prog_cc_c99"
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4155 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4156 esac
4157 if test "x$ac_cv_prog_cc_c99" != xno; then :
4158
4159 fi
4160
4161
4162 if test "$ac_cv_prog_cc_c99" = "no"; then :
4163 as_fn_error $? "no suitable C99 compiler found. Aborting." "$LINENO" 5
4164 fi
4165 for ac_prog in 'bison -y' byacc
4166 do
4167 # Extract the first word of "$ac_prog", so it can be a program name with args.
4168 set dummy $ac_prog; ac_word=$2
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4170 $as_echo_n "checking for $ac_word... " >&6; }
4171 if ${ac_cv_prog_YACC+:} false; then :
4172 $as_echo_n "(cached) " >&6
4173 else
4174 if test -n "$YACC"; then
4175 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4176 else
4177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178 for as_dir in $PATH
4179 do
4180 IFS=$as_save_IFS
4181 test -z "$as_dir" && as_dir=.
4182 for ac_exec_ext in '' $ac_executable_extensions; do
4183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4184 ac_cv_prog_YACC="$ac_prog"
4185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4186 break 2
4187 fi
4188 done
4189 done
4190 IFS=$as_save_IFS
4191
4192 fi
4193 fi
4194 YACC=$ac_cv_prog_YACC
4195 if test -n "$YACC"; then
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4197 $as_echo "$YACC" >&6; }
4198 else
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4200 $as_echo "no" >&6; }
4201 fi
4202
4203
4204 test -n "$YACC" && break
4205 done
4206 test -n "$YACC" || YACC="yacc"
4207
4208
4209 for ac_prog in flex lex
4210 do
4211 # Extract the first word of "$ac_prog", so it can be a program name with args.
4212 set dummy $ac_prog; ac_word=$2
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4214 $as_echo_n "checking for $ac_word... " >&6; }
4215 if ${ac_cv_prog_LEX+:} false; then :
4216 $as_echo_n "(cached) " >&6
4217 else
4218 if test -n "$LEX"; then
4219 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4220 else
4221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222 for as_dir in $PATH
4223 do
4224 IFS=$as_save_IFS
4225 test -z "$as_dir" && as_dir=.
4226 for ac_exec_ext in '' $ac_executable_extensions; do
4227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4228 ac_cv_prog_LEX="$ac_prog"
4229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4230 break 2
4231 fi
4232 done
4233 done
4234 IFS=$as_save_IFS
4235
4236 fi
4237 fi
4238 LEX=$ac_cv_prog_LEX
4239 if test -n "$LEX"; then
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4241 $as_echo "$LEX" >&6; }
4242 else
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4244 $as_echo "no" >&6; }
4245 fi
4246
4247
4248 test -n "$LEX" && break
4249 done
4250 test -n "$LEX" || LEX=":"
4251
4252 if test "x$LEX" != "x:"; then
4253 cat >conftest.l <<_ACEOF
4254 %%
4255 a { ECHO; }
4256 b { REJECT; }
4257 c { yymore (); }
4258 d { yyless (1); }
4259 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
4260 yyless ((input () != 0)); }
4261 f { unput (yytext[0]); }
4262 . { BEGIN INITIAL; }
4263 %%
4264 #ifdef YYTEXT_POINTER
4265 extern char *yytext;
4266 #endif
4267 int
4268 main (void)
4269 {
4270 return ! yylex () + ! yywrap ();
4271 }
4272 _ACEOF
4273 { { ac_try="$LEX conftest.l"
4274 case "(($ac_try" in
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4277 esac
4278 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4279 $as_echo "$ac_try_echo"; } >&5
4280 (eval "$LEX conftest.l") 2>&5
4281 ac_status=$?
4282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4283 test $ac_status = 0; }
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4285 $as_echo_n "checking lex output file root... " >&6; }
4286 if ${ac_cv_prog_lex_root+:} false; then :
4287 $as_echo_n "(cached) " >&6
4288 else
4289
4290 if test -f lex.yy.c; then
4291 ac_cv_prog_lex_root=lex.yy
4292 elif test -f lexyy.c; then
4293 ac_cv_prog_lex_root=lexyy
4294 else
4295 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4296 fi
4297 fi
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4299 $as_echo "$ac_cv_prog_lex_root" >&6; }
4300 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4301
4302 if test -z "${LEXLIB+set}"; then
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4304 $as_echo_n "checking lex library... " >&6; }
4305 if ${ac_cv_lib_lex+:} false; then :
4306 $as_echo_n "(cached) " >&6
4307 else
4308
4309 ac_save_LIBS=$LIBS
4310 ac_cv_lib_lex='none needed'
4311 for ac_lib in '' -lfl -ll; do
4312 LIBS="$ac_lib $ac_save_LIBS"
4313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4314 /* end confdefs.h. */
4315 `cat $LEX_OUTPUT_ROOT.c`
4316 _ACEOF
4317 if ac_fn_c_try_link "$LINENO"; then :
4318 ac_cv_lib_lex=$ac_lib
4319 fi
4320 rm -f core conftest.err conftest.$ac_objext \
4321 conftest$ac_exeext conftest.$ac_ext
4322 test "$ac_cv_lib_lex" != 'none needed' && break
4323 done
4324 LIBS=$ac_save_LIBS
4325
4326 fi
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4328 $as_echo "$ac_cv_lib_lex" >&6; }
4329 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4330 fi
4331
4332
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4334 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4335 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4336 $as_echo_n "(cached) " >&6
4337 else
4338 # POSIX says lex can declare yytext either as a pointer or an array; the
4339 # default is implementation-dependent. Figure out which it is, since
4340 # not all implementations provide the %pointer and %array declarations.
4341 ac_cv_prog_lex_yytext_pointer=no
4342 ac_save_LIBS=$LIBS
4343 LIBS="$LEXLIB $ac_save_LIBS"
4344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4345 /* end confdefs.h. */
4346
4347 #define YYTEXT_POINTER 1
4348 `cat $LEX_OUTPUT_ROOT.c`
4349 _ACEOF
4350 if ac_fn_c_try_link "$LINENO"; then :
4351 ac_cv_prog_lex_yytext_pointer=yes
4352 fi
4353 rm -f core conftest.err conftest.$ac_objext \
4354 conftest$ac_exeext conftest.$ac_ext
4355 LIBS=$ac_save_LIBS
4356
4357 fi
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4359 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4360 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4361
4362 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4363
4364 fi
4365 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4366
4367 fi
4368 if test "$LEX" = :; then
4369 LEX=${am_missing_run}flex
4370 fi
4371
4372
4373 # Initializing libtool.
4374
4375
4376
4377
4378
4379
4380
4381 case `pwd` in
4382 *\ * | *\ *)
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4384 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4385 esac
4386
4387
4388
4389 macro_version='2.4.2'
4390 macro_revision='1.3337'
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404 ltmain="$ac_aux_dir/ltmain.sh"
4405
4406 # Make sure we can run config.sub.
4407 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4408 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4409
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4411 $as_echo_n "checking build system type... " >&6; }
4412 if ${ac_cv_build+:} false; then :
4413 $as_echo_n "(cached) " >&6
4414 else
4415 ac_build_alias=$build_alias
4416 test "x$ac_build_alias" = x &&
4417 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4418 test "x$ac_build_alias" = x &&
4419 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4420 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4421 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4422
4423 fi
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4425 $as_echo "$ac_cv_build" >&6; }
4426 case $ac_cv_build in
4427 *-*-*) ;;
4428 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4429 esac
4430 build=$ac_cv_build
4431 ac_save_IFS=$IFS; IFS='-'
4432 set x $ac_cv_build
4433 shift
4434 build_cpu=$1
4435 build_vendor=$2
4436 shift; shift
4437 # Remember, the first character of IFS is used to create $*,
4438 # except with old shells:
4439 build_os=$*
4440 IFS=$ac_save_IFS
4441 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4442
4443
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4445 $as_echo_n "checking host system type... " >&6; }
4446 if ${ac_cv_host+:} false; then :
4447 $as_echo_n "(cached) " >&6
4448 else
4449 if test "x$host_alias" = x; then
4450 ac_cv_host=$ac_cv_build
4451 else
4452 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4453 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4454 fi
4455
4456 fi
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4458 $as_echo "$ac_cv_host" >&6; }
4459 case $ac_cv_host in
4460 *-*-*) ;;
4461 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4462 esac
4463 host=$ac_cv_host
4464 ac_save_IFS=$IFS; IFS='-'
4465 set x $ac_cv_host
4466 shift
4467 host_cpu=$1
4468 host_vendor=$2
4469 shift; shift
4470 # Remember, the first character of IFS is used to create $*,
4471 # except with old shells:
4472 host_os=$*
4473 IFS=$ac_save_IFS
4474 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4475
4476
4477 # Backslashify metacharacters that are still active within
4478 # double-quoted strings.
4479 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4480
4481 # Same as above, but do not quote variable references.
4482 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4483
4484 # Sed substitution to delay expansion of an escaped shell variable in a
4485 # double_quote_subst'ed string.
4486 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4487
4488 # Sed substitution to delay expansion of an escaped single quote.
4489 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4490
4491 # Sed substitution to avoid accidental globbing in evaled expressions
4492 no_glob_subst='s/\*/\\\*/g'
4493
4494 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4495 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4496 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4497
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4499 $as_echo_n "checking how to print strings... " >&6; }
4500 # Test print first, because it will be a builtin if present.
4501 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4502 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4503 ECHO='print -r --'
4504 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4505 ECHO='printf %s\n'
4506 else
4507 # Use this function as a fallback that always works.
4508 func_fallback_echo ()
4509 {
4510 eval 'cat <<_LTECHO_EOF
4511 $1
4512 _LTECHO_EOF'
4513 }
4514 ECHO='func_fallback_echo'
4515 fi
4516
4517 # func_echo_all arg...
4518 # Invoke $ECHO with all args, space-separated.
4519 func_echo_all ()
4520 {
4521 $ECHO ""
4522 }
4523
4524 case "$ECHO" in
4525 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4526 $as_echo "printf" >&6; } ;;
4527 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4528 $as_echo "print -r" >&6; } ;;
4529 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4530 $as_echo "cat" >&6; } ;;
4531 esac
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4547 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4548 if ${ac_cv_path_SED+:} false; then :
4549 $as_echo_n "(cached) " >&6
4550 else
4551 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4552 for ac_i in 1 2 3 4 5 6 7; do
4553 ac_script="$ac_script$as_nl$ac_script"
4554 done
4555 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4556 { ac_script=; unset ac_script;}
4557 if test -z "$SED"; then
4558 ac_path_SED_found=false
4559 # Loop through the user's path and test for each of PROGNAME-LIST
4560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561 for as_dir in $PATH
4562 do
4563 IFS=$as_save_IFS
4564 test -z "$as_dir" && as_dir=.
4565 for ac_prog in sed gsed; do
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4568 as_fn_executable_p "$ac_path_SED" || continue
4569 # Check for GNU ac_path_SED and select it if it is found.
4570 # Check for GNU $ac_path_SED
4571 case `"$ac_path_SED" --version 2>&1` in
4572 *GNU*)
4573 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4574 *)
4575 ac_count=0
4576 $as_echo_n 0123456789 >"conftest.in"
4577 while :
4578 do
4579 cat "conftest.in" "conftest.in" >"conftest.tmp"
4580 mv "conftest.tmp" "conftest.in"
4581 cp "conftest.in" "conftest.nl"
4582 $as_echo '' >> "conftest.nl"
4583 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4584 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4585 as_fn_arith $ac_count + 1 && ac_count=$as_val
4586 if test $ac_count -gt ${ac_path_SED_max-0}; then
4587 # Best one so far, save it but keep looking for a better one
4588 ac_cv_path_SED="$ac_path_SED"
4589 ac_path_SED_max=$ac_count
4590 fi
4591 # 10*(2^10) chars as input seems more than enough
4592 test $ac_count -gt 10 && break
4593 done
4594 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4595 esac
4596
4597 $ac_path_SED_found && break 3
4598 done
4599 done
4600 done
4601 IFS=$as_save_IFS
4602 if test -z "$ac_cv_path_SED"; then
4603 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4604 fi
4605 else
4606 ac_cv_path_SED=$SED
4607 fi
4608
4609 fi
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4611 $as_echo "$ac_cv_path_SED" >&6; }
4612 SED="$ac_cv_path_SED"
4613 rm -f conftest.sed
4614
4615 test -z "$SED" && SED=sed
4616 Xsed="$SED -e 1s/^X//"
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4629 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4630 if ${ac_cv_path_GREP+:} false; then :
4631 $as_echo_n "(cached) " >&6
4632 else
4633 if test -z "$GREP"; then
4634 ac_path_GREP_found=false
4635 # Loop through the user's path and test for each of PROGNAME-LIST
4636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4637 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4638 do
4639 IFS=$as_save_IFS
4640 test -z "$as_dir" && as_dir=.
4641 for ac_prog in grep ggrep; do
4642 for ac_exec_ext in '' $ac_executable_extensions; do
4643 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4644 as_fn_executable_p "$ac_path_GREP" || continue
4645 # Check for GNU ac_path_GREP and select it if it is found.
4646 # Check for GNU $ac_path_GREP
4647 case `"$ac_path_GREP" --version 2>&1` in
4648 *GNU*)
4649 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4650 *)
4651 ac_count=0
4652 $as_echo_n 0123456789 >"conftest.in"
4653 while :
4654 do
4655 cat "conftest.in" "conftest.in" >"conftest.tmp"
4656 mv "conftest.tmp" "conftest.in"
4657 cp "conftest.in" "conftest.nl"
4658 $as_echo 'GREP' >> "conftest.nl"
4659 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4660 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4661 as_fn_arith $ac_count + 1 && ac_count=$as_val
4662 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4663 # Best one so far, save it but keep looking for a better one
4664 ac_cv_path_GREP="$ac_path_GREP"
4665 ac_path_GREP_max=$ac_count
4666 fi
4667 # 10*(2^10) chars as input seems more than enough
4668 test $ac_count -gt 10 && break
4669 done
4670 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4671 esac
4672
4673 $ac_path_GREP_found && break 3
4674 done
4675 done
4676 done
4677 IFS=$as_save_IFS
4678 if test -z "$ac_cv_path_GREP"; then
4679 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4680 fi
4681 else
4682 ac_cv_path_GREP=$GREP
4683 fi
4684
4685 fi
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4687 $as_echo "$ac_cv_path_GREP" >&6; }
4688 GREP="$ac_cv_path_GREP"
4689
4690
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4692 $as_echo_n "checking for egrep... " >&6; }
4693 if ${ac_cv_path_EGREP+:} false; then :
4694 $as_echo_n "(cached) " >&6
4695 else
4696 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4697 then ac_cv_path_EGREP="$GREP -E"
4698 else
4699 if test -z "$EGREP"; then
4700 ac_path_EGREP_found=false
4701 # Loop through the user's path and test for each of PROGNAME-LIST
4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4704 do
4705 IFS=$as_save_IFS
4706 test -z "$as_dir" && as_dir=.
4707 for ac_prog in egrep; do
4708 for ac_exec_ext in '' $ac_executable_extensions; do
4709 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4710 as_fn_executable_p "$ac_path_EGREP" || continue
4711 # Check for GNU ac_path_EGREP and select it if it is found.
4712 # Check for GNU $ac_path_EGREP
4713 case `"$ac_path_EGREP" --version 2>&1` in
4714 *GNU*)
4715 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4716 *)
4717 ac_count=0
4718 $as_echo_n 0123456789 >"conftest.in"
4719 while :
4720 do
4721 cat "conftest.in" "conftest.in" >"conftest.tmp"
4722 mv "conftest.tmp" "conftest.in"
4723 cp "conftest.in" "conftest.nl"
4724 $as_echo 'EGREP' >> "conftest.nl"
4725 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4726 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4727 as_fn_arith $ac_count + 1 && ac_count=$as_val
4728 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4729 # Best one so far, save it but keep looking for a better one
4730 ac_cv_path_EGREP="$ac_path_EGREP"
4731 ac_path_EGREP_max=$ac_count
4732 fi
4733 # 10*(2^10) chars as input seems more than enough
4734 test $ac_count -gt 10 && break
4735 done
4736 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4737 esac
4738
4739 $ac_path_EGREP_found && break 3
4740 done
4741 done
4742 done
4743 IFS=$as_save_IFS
4744 if test -z "$ac_cv_path_EGREP"; then
4745 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4746 fi
4747 else
4748 ac_cv_path_EGREP=$EGREP
4749 fi
4750
4751 fi
4752 fi
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4754 $as_echo "$ac_cv_path_EGREP" >&6; }
4755 EGREP="$ac_cv_path_EGREP"
4756
4757
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4759 $as_echo_n "checking for fgrep... " >&6; }
4760 if ${ac_cv_path_FGREP+:} false; then :
4761 $as_echo_n "(cached) " >&6
4762 else
4763 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4764 then ac_cv_path_FGREP="$GREP -F"
4765 else
4766 if test -z "$FGREP"; then
4767 ac_path_FGREP_found=false
4768 # Loop through the user's path and test for each of PROGNAME-LIST
4769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4770 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4771 do
4772 IFS=$as_save_IFS
4773 test -z "$as_dir" && as_dir=.
4774 for ac_prog in fgrep; do
4775 for ac_exec_ext in '' $ac_executable_extensions; do
4776 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4777 as_fn_executable_p "$ac_path_FGREP" || continue
4778 # Check for GNU ac_path_FGREP and select it if it is found.
4779 # Check for GNU $ac_path_FGREP
4780 case `"$ac_path_FGREP" --version 2>&1` in
4781 *GNU*)
4782 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4783 *)
4784 ac_count=0
4785 $as_echo_n 0123456789 >"conftest.in"
4786 while :
4787 do
4788 cat "conftest.in" "conftest.in" >"conftest.tmp"
4789 mv "conftest.tmp" "conftest.in"
4790 cp "conftest.in" "conftest.nl"
4791 $as_echo 'FGREP' >> "conftest.nl"
4792 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4793 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4794 as_fn_arith $ac_count + 1 && ac_count=$as_val
4795 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4796 # Best one so far, save it but keep looking for a better one
4797 ac_cv_path_FGREP="$ac_path_FGREP"
4798 ac_path_FGREP_max=$ac_count
4799 fi
4800 # 10*(2^10) chars as input seems more than enough
4801 test $ac_count -gt 10 && break
4802 done
4803 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4804 esac
4805
4806 $ac_path_FGREP_found && break 3
4807 done
4808 done
4809 done
4810 IFS=$as_save_IFS
4811 if test -z "$ac_cv_path_FGREP"; then
4812 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4813 fi
4814 else
4815 ac_cv_path_FGREP=$FGREP
4816 fi
4817
4818 fi
4819 fi
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4821 $as_echo "$ac_cv_path_FGREP" >&6; }
4822 FGREP="$ac_cv_path_FGREP"
4823
4824
4825 test -z "$GREP" && GREP=grep
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845 # Check whether --with-gnu-ld was given.
4846 if test "${with_gnu_ld+set}" = set; then :
4847 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4848 else
4849 with_gnu_ld=no
4850 fi
4851
4852 ac_prog=ld
4853 if test "$GCC" = yes; then
4854 # Check if gcc -print-prog-name=ld gives a path.
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4856 $as_echo_n "checking for ld used by $CC... " >&6; }
4857 case $host in
4858 *-*-mingw*)
4859 # gcc leaves a trailing carriage return which upsets mingw
4860 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4861 *)
4862 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4863 esac
4864 case $ac_prog in
4865 # Accept absolute paths.
4866 [\\/]* | ?:[\\/]*)
4867 re_direlt='/[^/][^/]*/\.\./'
4868 # Canonicalize the pathname of ld
4869 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4870 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4871 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4872 done
4873 test -z "$LD" && LD="$ac_prog"
4874 ;;
4875 "")
4876 # If it fails, then pretend we aren't using GCC.
4877 ac_prog=ld
4878 ;;
4879 *)
4880 # If it is relative, then search for the first ld in PATH.
4881 with_gnu_ld=unknown
4882 ;;
4883 esac
4884 elif test "$with_gnu_ld" = yes; then
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4886 $as_echo_n "checking for GNU ld... " >&6; }
4887 else
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4889 $as_echo_n "checking for non-GNU ld... " >&6; }
4890 fi
4891 if ${lt_cv_path_LD+:} false; then :
4892 $as_echo_n "(cached) " >&6
4893 else
4894 if test -z "$LD"; then
4895 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4896 for ac_dir in $PATH; do
4897 IFS="$lt_save_ifs"
4898 test -z "$ac_dir" && ac_dir=.
4899 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4900 lt_cv_path_LD="$ac_dir/$ac_prog"
4901 # Check to see if the program is GNU ld. I'd rather use --version,
4902 # but apparently some variants of GNU ld only accept -v.
4903 # Break only if it was the GNU/non-GNU ld that we prefer.
4904 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4905 *GNU* | *'with BFD'*)
4906 test "$with_gnu_ld" != no && break
4907 ;;
4908 *)
4909 test "$with_gnu_ld" != yes && break
4910 ;;
4911 esac
4912 fi
4913 done
4914 IFS="$lt_save_ifs"
4915 else
4916 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4917 fi
4918 fi
4919
4920 LD="$lt_cv_path_LD"
4921 if test -n "$LD"; then
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4923 $as_echo "$LD" >&6; }
4924 else
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4926 $as_echo "no" >&6; }
4927 fi
4928 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4930 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4931 if ${lt_cv_prog_gnu_ld+:} false; then :
4932 $as_echo_n "(cached) " >&6
4933 else
4934 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4935 case `$LD -v 2>&1 </dev/null` in
4936 *GNU* | *'with BFD'*)
4937 lt_cv_prog_gnu_ld=yes
4938 ;;
4939 *)
4940 lt_cv_prog_gnu_ld=no
4941 ;;
4942 esac
4943 fi
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4945 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4946 with_gnu_ld=$lt_cv_prog_gnu_ld
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4957 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4958 if ${lt_cv_path_NM+:} false; then :
4959 $as_echo_n "(cached) " >&6
4960 else
4961 if test -n "$NM"; then
4962 # Let the user override the test.
4963 lt_cv_path_NM="$NM"
4964 else
4965 lt_nm_to_check="${ac_tool_prefix}nm"
4966 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4967 lt_nm_to_check="$lt_nm_to_check nm"
4968 fi
4969 for lt_tmp_nm in $lt_nm_to_check; do
4970 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4971 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4972 IFS="$lt_save_ifs"
4973 test -z "$ac_dir" && ac_dir=.
4974 tmp_nm="$ac_dir/$lt_tmp_nm"
4975 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4976 # Check to see if the nm accepts a BSD-compat flag.
4977 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4978 # nm: unknown option "B" ignored
4979 # Tru64's nm complains that /dev/null is an invalid object file
4980 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4981 */dev/null* | *'Invalid file or object type'*)
4982 lt_cv_path_NM="$tmp_nm -B"
4983 break
4984 ;;
4985 *)
4986 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4987 */dev/null*)
4988 lt_cv_path_NM="$tmp_nm -p"
4989 break
4990 ;;
4991 *)
4992 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4993 continue # so that we can try to find one that supports BSD flags
4994 ;;
4995 esac
4996 ;;
4997 esac
4998 fi
4999 done
5000 IFS="$lt_save_ifs"
5001 done
5002 : ${lt_cv_path_NM=no}
5003 fi
5004 fi
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5006 $as_echo "$lt_cv_path_NM" >&6; }
5007 if test "$lt_cv_path_NM" != "no"; then
5008 NM="$lt_cv_path_NM"
5009 else
5010 # Didn't find any BSD compatible name lister, look for dumpbin.
5011 if test -n "$DUMPBIN"; then :
5012 # Let the user override the test.
5013 else
5014 if test -n "$ac_tool_prefix"; then
5015 for ac_prog in dumpbin "link -dump"
5016 do
5017 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5018 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5020 $as_echo_n "checking for $ac_word... " >&6; }
5021 if ${ac_cv_prog_DUMPBIN+:} false; then :
5022 $as_echo_n "(cached) " >&6
5023 else
5024 if test -n "$DUMPBIN"; then
5025 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5026 else
5027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028 for as_dir in $PATH
5029 do
5030 IFS=$as_save_IFS
5031 test -z "$as_dir" && as_dir=.
5032 for ac_exec_ext in '' $ac_executable_extensions; do
5033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5034 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5036 break 2
5037 fi
5038 done
5039 done
5040 IFS=$as_save_IFS
5041
5042 fi
5043 fi
5044 DUMPBIN=$ac_cv_prog_DUMPBIN
5045 if test -n "$DUMPBIN"; then
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5047 $as_echo "$DUMPBIN" >&6; }
5048 else
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5050 $as_echo "no" >&6; }
5051 fi
5052
5053
5054 test -n "$DUMPBIN" && break
5055 done
5056 fi
5057 if test -z "$DUMPBIN"; then
5058 ac_ct_DUMPBIN=$DUMPBIN
5059 for ac_prog in dumpbin "link -dump"
5060 do
5061 # Extract the first word of "$ac_prog", so it can be a program name with args.
5062 set dummy $ac_prog; ac_word=$2
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5064 $as_echo_n "checking for $ac_word... " >&6; }
5065 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5066 $as_echo_n "(cached) " >&6
5067 else
5068 if test -n "$ac_ct_DUMPBIN"; then
5069 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5070 else
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 for as_dir in $PATH
5073 do
5074 IFS=$as_save_IFS
5075 test -z "$as_dir" && as_dir=.
5076 for ac_exec_ext in '' $ac_executable_extensions; do
5077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5078 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5080 break 2
5081 fi
5082 done
5083 done
5084 IFS=$as_save_IFS
5085
5086 fi
5087 fi
5088 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5089 if test -n "$ac_ct_DUMPBIN"; then
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5091 $as_echo "$ac_ct_DUMPBIN" >&6; }
5092 else
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094 $as_echo "no" >&6; }
5095 fi
5096
5097
5098 test -n "$ac_ct_DUMPBIN" && break
5099 done
5100
5101 if test "x$ac_ct_DUMPBIN" = x; then
5102 DUMPBIN=":"
5103 else
5104 case $cross_compiling:$ac_tool_warned in
5105 yes:)
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5108 ac_tool_warned=yes ;;
5109 esac
5110 DUMPBIN=$ac_ct_DUMPBIN
5111 fi
5112 fi
5113
5114 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5115 *COFF*)
5116 DUMPBIN="$DUMPBIN -symbols"
5117 ;;
5118 *)
5119 DUMPBIN=:
5120 ;;
5121 esac
5122 fi
5123
5124 if test "$DUMPBIN" != ":"; then
5125 NM="$DUMPBIN"
5126 fi
5127 fi
5128 test -z "$NM" && NM=nm
5129
5130
5131
5132
5133
5134
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5136 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5137 if ${lt_cv_nm_interface+:} false; then :
5138 $as_echo_n "(cached) " >&6
5139 else
5140 lt_cv_nm_interface="BSD nm"
5141 echo "int some_variable = 0;" > conftest.$ac_ext
5142 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5143 (eval "$ac_compile" 2>conftest.err)
5144 cat conftest.err >&5
5145 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5146 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5147 cat conftest.err >&5
5148 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5149 cat conftest.out >&5
5150 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5151 lt_cv_nm_interface="MS dumpbin"
5152 fi
5153 rm -f conftest*
5154 fi
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5156 $as_echo "$lt_cv_nm_interface" >&6; }
5157
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5159 $as_echo_n "checking whether ln -s works... " >&6; }
5160 LN_S=$as_ln_s
5161 if test "$LN_S" = "ln -s"; then
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5163 $as_echo "yes" >&6; }
5164 else
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5166 $as_echo "no, using $LN_S" >&6; }
5167 fi
5168
5169 # find the maximum length of command line arguments
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5171 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5172 if ${lt_cv_sys_max_cmd_len+:} false; then :
5173 $as_echo_n "(cached) " >&6
5174 else
5175 i=0
5176 teststring="ABCD"
5177
5178 case $build_os in
5179 msdosdjgpp*)
5180 # On DJGPP, this test can blow up pretty badly due to problems in libc
5181 # (any single argument exceeding 2000 bytes causes a buffer overrun
5182 # during glob expansion). Even if it were fixed, the result of this
5183 # check would be larger than it should be.
5184 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5185 ;;
5186
5187 gnu*)
5188 # Under GNU Hurd, this test is not required because there is
5189 # no limit to the length of command line arguments.
5190 # Libtool will interpret -1 as no limit whatsoever
5191 lt_cv_sys_max_cmd_len=-1;
5192 ;;
5193
5194 cygwin* | mingw* | cegcc*)
5195 # On Win9x/ME, this test blows up -- it succeeds, but takes
5196 # about 5 minutes as the teststring grows exponentially.
5197 # Worse, since 9x/ME are not pre-emptively multitasking,
5198 # you end up with a "frozen" computer, even though with patience
5199 # the test eventually succeeds (with a max line length of 256k).
5200 # Instead, let's just punt: use the minimum linelength reported by
5201 # all of the supported platforms: 8192 (on NT/2K/XP).
5202 lt_cv_sys_max_cmd_len=8192;
5203 ;;
5204
5205 mint*)
5206 # On MiNT this can take a long time and run out of memory.
5207 lt_cv_sys_max_cmd_len=8192;
5208 ;;
5209
5210 amigaos*)
5211 # On AmigaOS with pdksh, this test takes hours, literally.
5212 # So we just punt and use a minimum line length of 8192.
5213 lt_cv_sys_max_cmd_len=8192;
5214 ;;
5215
5216 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5217 # This has been around since 386BSD, at least. Likely further.
5218 if test -x /sbin/sysctl; then
5219 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5220 elif test -x /usr/sbin/sysctl; then
5221 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5222 else
5223 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5224 fi
5225 # And add a safety zone
5226 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5227 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5228 ;;
5229
5230 interix*)
5231 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5232 lt_cv_sys_max_cmd_len=196608
5233 ;;
5234
5235 os2*)
5236 # The test takes a long time on OS/2.
5237 lt_cv_sys_max_cmd_len=8192
5238 ;;
5239
5240 osf*)
5241 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5242 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5243 # nice to cause kernel panics so lets avoid the loop below.
5244 # First set a reasonable default.
5245 lt_cv_sys_max_cmd_len=16384
5246 #
5247 if test -x /sbin/sysconfig; then
5248 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5249 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5250 esac
5251 fi
5252 ;;
5253 sco3.2v5*)
5254 lt_cv_sys_max_cmd_len=102400
5255 ;;
5256 sysv5* | sco5v6* | sysv4.2uw2*)
5257 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5258 if test -n "$kargmax"; then
5259 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5260 else
5261 lt_cv_sys_max_cmd_len=32768
5262 fi
5263 ;;
5264 *)
5265 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5266 if test -n "$lt_cv_sys_max_cmd_len"; then
5267 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5268 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5269 else
5270 # Make teststring a little bigger before we do anything with it.
5271 # a 1K string should be a reasonable start.
5272 for i in 1 2 3 4 5 6 7 8 ; do
5273 teststring=$teststring$teststring
5274 done
5275 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5276 # If test is not a shell built-in, we'll probably end up computing a
5277 # maximum length that is only half of the actual maximum length, but
5278 # we can't tell.
5279 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5280 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5281 test $i != 17 # 1/2 MB should be enough
5282 do
5283 i=`expr $i + 1`
5284 teststring=$teststring$teststring
5285 done
5286 # Only check the string length outside the loop.
5287 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5288 teststring=
5289 # Add a significant safety factor because C++ compilers can tack on
5290 # massive amounts of additional arguments before passing them to the
5291 # linker. It appears as though 1/2 is a usable value.
5292 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5293 fi
5294 ;;
5295 esac
5296
5297 fi
5298
5299 if test -n $lt_cv_sys_max_cmd_len ; then
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5301 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5302 else
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5304 $as_echo "none" >&6; }
5305 fi
5306 max_cmd_len=$lt_cv_sys_max_cmd_len
5307
5308
5309
5310
5311
5312
5313 : ${CP="cp -f"}
5314 : ${MV="mv -f"}
5315 : ${RM="rm -f"}
5316
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5318 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5319 # Try some XSI features
5320 xsi_shell=no
5321 ( _lt_dummy="a/b/c"
5322 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5323 = c,a/b,b/c, \
5324 && eval 'test $(( 1 + 1 )) -eq 2 \
5325 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5326 && xsi_shell=yes
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5328 $as_echo "$xsi_shell" >&6; }
5329
5330
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5332 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5333 lt_shell_append=no
5334 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5335 >/dev/null 2>&1 \
5336 && lt_shell_append=yes
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5338 $as_echo "$lt_shell_append" >&6; }
5339
5340
5341 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5342 lt_unset=unset
5343 else
5344 lt_unset=false
5345 fi
5346
5347
5348
5349
5350
5351 # test EBCDIC or ASCII
5352 case `echo X|tr X '\101'` in
5353 A) # ASCII based system
5354 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5355 lt_SP2NL='tr \040 \012'
5356 lt_NL2SP='tr \015\012 \040\040'
5357 ;;
5358 *) # EBCDIC based system
5359 lt_SP2NL='tr \100 \n'
5360 lt_NL2SP='tr \r\n \100\100'
5361 ;;
5362 esac
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5373 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5374 if ${lt_cv_to_host_file_cmd+:} false; then :
5375 $as_echo_n "(cached) " >&6
5376 else
5377 case $host in
5378 *-*-mingw* )
5379 case $build in
5380 *-*-mingw* ) # actually msys
5381 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5382 ;;
5383 *-*-cygwin* )
5384 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5385 ;;
5386 * ) # otherwise, assume *nix
5387 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5388 ;;
5389 esac
5390 ;;
5391 *-*-cygwin* )
5392 case $build in
5393 *-*-mingw* ) # actually msys
5394 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5395 ;;
5396 *-*-cygwin* )
5397 lt_cv_to_host_file_cmd=func_convert_file_noop
5398 ;;
5399 * ) # otherwise, assume *nix
5400 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5401 ;;
5402 esac
5403 ;;
5404 * ) # unhandled hosts (and "normal" native builds)
5405 lt_cv_to_host_file_cmd=func_convert_file_noop
5406 ;;
5407 esac
5408
5409 fi
5410
5411 to_host_file_cmd=$lt_cv_to_host_file_cmd
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5413 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5414
5415
5416
5417
5418
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5420 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5421 if ${lt_cv_to_tool_file_cmd+:} false; then :
5422 $as_echo_n "(cached) " >&6
5423 else
5424 #assume ordinary cross tools, or native build.
5425 lt_cv_to_tool_file_cmd=func_convert_file_noop
5426 case $host in
5427 *-*-mingw* )
5428 case $build in
5429 *-*-mingw* ) # actually msys
5430 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5431 ;;
5432 esac
5433 ;;
5434 esac
5435
5436 fi
5437
5438 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5440 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5441
5442
5443
5444
5445
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5447 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5448 if ${lt_cv_ld_reload_flag+:} false; then :
5449 $as_echo_n "(cached) " >&6
5450 else
5451 lt_cv_ld_reload_flag='-r'
5452 fi
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5454 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5455 reload_flag=$lt_cv_ld_reload_flag
5456 case $reload_flag in
5457 "" | " "*) ;;
5458 *) reload_flag=" $reload_flag" ;;
5459 esac
5460 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5461 case $host_os in
5462 cygwin* | mingw* | pw32* | cegcc*)
5463 if test "$GCC" != yes; then
5464 reload_cmds=false
5465 fi
5466 ;;
5467 darwin*)
5468 if test "$GCC" = yes; then
5469 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5470 else
5471 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5472 fi
5473 ;;
5474 esac
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484 if test -n "$ac_tool_prefix"; then
5485 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5486 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5488 $as_echo_n "checking for $ac_word... " >&6; }
5489 if ${ac_cv_prog_OBJDUMP+:} false; then :
5490 $as_echo_n "(cached) " >&6
5491 else
5492 if test -n "$OBJDUMP"; then
5493 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5494 else
5495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496 for as_dir in $PATH
5497 do
5498 IFS=$as_save_IFS
5499 test -z "$as_dir" && as_dir=.
5500 for ac_exec_ext in '' $ac_executable_extensions; do
5501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5502 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5504 break 2
5505 fi
5506 done
5507 done
5508 IFS=$as_save_IFS
5509
5510 fi
5511 fi
5512 OBJDUMP=$ac_cv_prog_OBJDUMP
5513 if test -n "$OBJDUMP"; then
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5515 $as_echo "$OBJDUMP" >&6; }
5516 else
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5518 $as_echo "no" >&6; }
5519 fi
5520
5521
5522 fi
5523 if test -z "$ac_cv_prog_OBJDUMP"; then
5524 ac_ct_OBJDUMP=$OBJDUMP
5525 # Extract the first word of "objdump", so it can be a program name with args.
5526 set dummy objdump; ac_word=$2
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5528 $as_echo_n "checking for $ac_word... " >&6; }
5529 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5530 $as_echo_n "(cached) " >&6
5531 else
5532 if test -n "$ac_ct_OBJDUMP"; then
5533 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5534 else
5535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536 for as_dir in $PATH
5537 do
5538 IFS=$as_save_IFS
5539 test -z "$as_dir" && as_dir=.
5540 for ac_exec_ext in '' $ac_executable_extensions; do
5541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5542 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5544 break 2
5545 fi
5546 done
5547 done
5548 IFS=$as_save_IFS
5549
5550 fi
5551 fi
5552 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5553 if test -n "$ac_ct_OBJDUMP"; then
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5555 $as_echo "$ac_ct_OBJDUMP" >&6; }
5556 else
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5558 $as_echo "no" >&6; }
5559 fi
5560
5561 if test "x$ac_ct_OBJDUMP" = x; then
5562 OBJDUMP="false"
5563 else
5564 case $cross_compiling:$ac_tool_warned in
5565 yes:)
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5568 ac_tool_warned=yes ;;
5569 esac
5570 OBJDUMP=$ac_ct_OBJDUMP
5571 fi
5572 else
5573 OBJDUMP="$ac_cv_prog_OBJDUMP"
5574 fi
5575
5576 test -z "$OBJDUMP" && OBJDUMP=objdump
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5587 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5588 if ${lt_cv_deplibs_check_method+:} false; then :
5589 $as_echo_n "(cached) " >&6
5590 else
5591 lt_cv_file_magic_cmd='$MAGIC_CMD'
5592 lt_cv_file_magic_test_file=
5593 lt_cv_deplibs_check_method='unknown'
5594 # Need to set the preceding variable on all platforms that support
5595 # interlibrary dependencies.
5596 # 'none' -- dependencies not supported.
5597 # `unknown' -- same as none, but documents that we really don't know.
5598 # 'pass_all' -- all dependencies passed with no checks.
5599 # 'test_compile' -- check by making test program.
5600 # 'file_magic [[regex]]' -- check by looking for files in library path
5601 # which responds to the $file_magic_cmd with a given extended regex.
5602 # If you have `file' or equivalent on your system and you're not sure
5603 # whether `pass_all' will *always* work, you probably want this one.
5604
5605 case $host_os in
5606 aix[4-9]*)
5607 lt_cv_deplibs_check_method=pass_all
5608 ;;
5609
5610 beos*)
5611 lt_cv_deplibs_check_method=pass_all
5612 ;;
5613
5614 bsdi[45]*)
5615 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5616 lt_cv_file_magic_cmd='/usr/bin/file -L'
5617 lt_cv_file_magic_test_file=/shlib/libc.so
5618 ;;
5619
5620 cygwin*)
5621 # func_win32_libid is a shell function defined in ltmain.sh
5622 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5623 lt_cv_file_magic_cmd='func_win32_libid'
5624 ;;
5625
5626 mingw* | pw32*)
5627 # Base MSYS/MinGW do not provide the 'file' command needed by
5628 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5629 # unless we find 'file', for example because we are cross-compiling.
5630 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5631 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5632 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5633 lt_cv_file_magic_cmd='func_win32_libid'
5634 else
5635 # Keep this pattern in sync with the one in func_win32_libid.
5636 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5637 lt_cv_file_magic_cmd='$OBJDUMP -f'
5638 fi
5639 ;;
5640
5641 cegcc*)
5642 # use the weaker test based on 'objdump'. See mingw*.
5643 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5644 lt_cv_file_magic_cmd='$OBJDUMP -f'
5645 ;;
5646
5647 darwin* | rhapsody*)
5648 lt_cv_deplibs_check_method=pass_all
5649 ;;
5650
5651 freebsd* | dragonfly*)
5652 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5653 case $host_cpu in
5654 i*86 )
5655 # Not sure whether the presence of OpenBSD here was a mistake.
5656 # Let's accept both of them until this is cleared up.
5657 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5658 lt_cv_file_magic_cmd=/usr/bin/file
5659 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5660 ;;
5661 esac
5662 else
5663 lt_cv_deplibs_check_method=pass_all
5664 fi
5665 ;;
5666
5667 gnu*)
5668 lt_cv_deplibs_check_method=pass_all
5669 ;;
5670
5671 haiku*)
5672 lt_cv_deplibs_check_method=pass_all
5673 ;;
5674
5675 hpux10.20* | hpux11*)
5676 lt_cv_file_magic_cmd=/usr/bin/file
5677 case $host_cpu in
5678 ia64*)
5679 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5680 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5681 ;;
5682 hppa*64*)
5683 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]'
5684 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5685 ;;
5686 *)
5687 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5688 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5689 ;;
5690 esac
5691 ;;
5692
5693 interix[3-9]*)
5694 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5695 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5696 ;;
5697
5698 irix5* | irix6* | nonstopux*)
5699 case $LD in
5700 *-32|*"-32 ") libmagic=32-bit;;
5701 *-n32|*"-n32 ") libmagic=N32;;
5702 *-64|*"-64 ") libmagic=64-bit;;
5703 *) libmagic=never-match;;
5704 esac
5705 lt_cv_deplibs_check_method=pass_all
5706 ;;
5707
5708 # This must be glibc/ELF.
5709 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5710 lt_cv_deplibs_check_method=pass_all
5711 ;;
5712
5713 netbsd*)
5714 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5715 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5716 else
5717 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5718 fi
5719 ;;
5720
5721 newos6*)
5722 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5723 lt_cv_file_magic_cmd=/usr/bin/file
5724 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5725 ;;
5726
5727 *nto* | *qnx*)
5728 lt_cv_deplibs_check_method=pass_all
5729 ;;
5730
5731 openbsd*)
5732 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5733 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5734 else
5735 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5736 fi
5737 ;;
5738
5739 osf3* | osf4* | osf5*)
5740 lt_cv_deplibs_check_method=pass_all
5741 ;;
5742
5743 rdos*)
5744 lt_cv_deplibs_check_method=pass_all
5745 ;;
5746
5747 solaris*)
5748 lt_cv_deplibs_check_method=pass_all
5749 ;;
5750
5751 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5752 lt_cv_deplibs_check_method=pass_all
5753 ;;
5754
5755 sysv4 | sysv4.3*)
5756 case $host_vendor in
5757 motorola)
5758 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]'
5759 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5760 ;;
5761 ncr)
5762 lt_cv_deplibs_check_method=pass_all
5763 ;;
5764 sequent)
5765 lt_cv_file_magic_cmd='/bin/file'
5766 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5767 ;;
5768 sni)
5769 lt_cv_file_magic_cmd='/bin/file'
5770 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5771 lt_cv_file_magic_test_file=/lib/libc.so
5772 ;;
5773 siemens)
5774 lt_cv_deplibs_check_method=pass_all
5775 ;;
5776 pc)
5777 lt_cv_deplibs_check_method=pass_all
5778 ;;
5779 esac
5780 ;;
5781
5782 tpf*)
5783 lt_cv_deplibs_check_method=pass_all
5784 ;;
5785 esac
5786
5787 fi
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5789 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5790
5791 file_magic_glob=
5792 want_nocaseglob=no
5793 if test "$build" = "$host"; then
5794 case $host_os in
5795 mingw* | pw32*)
5796 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5797 want_nocaseglob=yes
5798 else
5799 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5800 fi
5801 ;;
5802 esac
5803 fi
5804
5805 file_magic_cmd=$lt_cv_file_magic_cmd
5806 deplibs_check_method=$lt_cv_deplibs_check_method
5807 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830 if test -n "$ac_tool_prefix"; then
5831 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5832 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5834 $as_echo_n "checking for $ac_word... " >&6; }
5835 if ${ac_cv_prog_DLLTOOL+:} false; then :
5836 $as_echo_n "(cached) " >&6
5837 else
5838 if test -n "$DLLTOOL"; then
5839 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5840 else
5841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5842 for as_dir in $PATH
5843 do
5844 IFS=$as_save_IFS
5845 test -z "$as_dir" && as_dir=.
5846 for ac_exec_ext in '' $ac_executable_extensions; do
5847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5848 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5850 break 2
5851 fi
5852 done
5853 done
5854 IFS=$as_save_IFS
5855
5856 fi
5857 fi
5858 DLLTOOL=$ac_cv_prog_DLLTOOL
5859 if test -n "$DLLTOOL"; then
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5861 $as_echo "$DLLTOOL" >&6; }
5862 else
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5864 $as_echo "no" >&6; }
5865 fi
5866
5867
5868 fi
5869 if test -z "$ac_cv_prog_DLLTOOL"; then
5870 ac_ct_DLLTOOL=$DLLTOOL
5871 # Extract the first word of "dlltool", so it can be a program name with args.
5872 set dummy dlltool; ac_word=$2
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5874 $as_echo_n "checking for $ac_word... " >&6; }
5875 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5876 $as_echo_n "(cached) " >&6
5877 else
5878 if test -n "$ac_ct_DLLTOOL"; then
5879 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5880 else
5881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882 for as_dir in $PATH
5883 do
5884 IFS=$as_save_IFS
5885 test -z "$as_dir" && as_dir=.
5886 for ac_exec_ext in '' $ac_executable_extensions; do
5887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5888 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5890 break 2
5891 fi
5892 done
5893 done
5894 IFS=$as_save_IFS
5895
5896 fi
5897 fi
5898 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5899 if test -n "$ac_ct_DLLTOOL"; then
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5901 $as_echo "$ac_ct_DLLTOOL" >&6; }
5902 else
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5904 $as_echo "no" >&6; }
5905 fi
5906
5907 if test "x$ac_ct_DLLTOOL" = x; then
5908 DLLTOOL="false"
5909 else
5910 case $cross_compiling:$ac_tool_warned in
5911 yes:)
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5913 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5914 ac_tool_warned=yes ;;
5915 esac
5916 DLLTOOL=$ac_ct_DLLTOOL
5917 fi
5918 else
5919 DLLTOOL="$ac_cv_prog_DLLTOOL"
5920 fi
5921
5922 test -z "$DLLTOOL" && DLLTOOL=dlltool
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5934 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5935 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5936 $as_echo_n "(cached) " >&6
5937 else
5938 lt_cv_sharedlib_from_linklib_cmd='unknown'
5939
5940 case $host_os in
5941 cygwin* | mingw* | pw32* | cegcc*)
5942 # two different shell functions defined in ltmain.sh
5943 # decide which to use based on capabilities of $DLLTOOL
5944 case `$DLLTOOL --help 2>&1` in
5945 *--identify-strict*)
5946 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5947 ;;
5948 *)
5949 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5950 ;;
5951 esac
5952 ;;
5953 *)
5954 # fallback: assume linklib IS sharedlib
5955 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5956 ;;
5957 esac
5958
5959 fi
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5961 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5962 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5963 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5964
5965
5966
5967
5968
5969
5970
5971 if test -n "$ac_tool_prefix"; then
5972 for ac_prog in ar
5973 do
5974 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5975 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5977 $as_echo_n "checking for $ac_word... " >&6; }
5978 if ${ac_cv_prog_AR+:} false; then :
5979 $as_echo_n "(cached) " >&6
5980 else
5981 if test -n "$AR"; then
5982 ac_cv_prog_AR="$AR" # Let the user override the test.
5983 else
5984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5985 for as_dir in $PATH
5986 do
5987 IFS=$as_save_IFS
5988 test -z "$as_dir" && as_dir=.
5989 for ac_exec_ext in '' $ac_executable_extensions; do
5990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5991 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5993 break 2
5994 fi
5995 done
5996 done
5997 IFS=$as_save_IFS
5998
5999 fi
6000 fi
6001 AR=$ac_cv_prog_AR
6002 if test -n "$AR"; then
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6004 $as_echo "$AR" >&6; }
6005 else
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6007 $as_echo "no" >&6; }
6008 fi
6009
6010
6011 test -n "$AR" && break
6012 done
6013 fi
6014 if test -z "$AR"; then
6015 ac_ct_AR=$AR
6016 for ac_prog in ar
6017 do
6018 # Extract the first word of "$ac_prog", so it can be a program name with args.
6019 set dummy $ac_prog; ac_word=$2
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6021 $as_echo_n "checking for $ac_word... " >&6; }
6022 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6023 $as_echo_n "(cached) " >&6
6024 else
6025 if test -n "$ac_ct_AR"; then
6026 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6027 else
6028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6029 for as_dir in $PATH
6030 do
6031 IFS=$as_save_IFS
6032 test -z "$as_dir" && as_dir=.
6033 for ac_exec_ext in '' $ac_executable_extensions; do
6034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6035 ac_cv_prog_ac_ct_AR="$ac_prog"
6036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6037 break 2
6038 fi
6039 done
6040 done
6041 IFS=$as_save_IFS
6042
6043 fi
6044 fi
6045 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6046 if test -n "$ac_ct_AR"; then
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6048 $as_echo "$ac_ct_AR" >&6; }
6049 else
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6051 $as_echo "no" >&6; }
6052 fi
6053
6054
6055 test -n "$ac_ct_AR" && break
6056 done
6057
6058 if test "x$ac_ct_AR" = x; then
6059 AR="false"
6060 else
6061 case $cross_compiling:$ac_tool_warned in
6062 yes:)
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6065 ac_tool_warned=yes ;;
6066 esac
6067 AR=$ac_ct_AR
6068 fi
6069 fi
6070
6071 : ${AR=ar}
6072 : ${AR_FLAGS=cru}
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6085 $as_echo_n "checking for archiver @FILE support... " >&6; }
6086 if ${lt_cv_ar_at_file+:} false; then :
6087 $as_echo_n "(cached) " >&6
6088 else
6089 lt_cv_ar_at_file=no
6090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6091 /* end confdefs.h. */
6092
6093 int
6094 main ()
6095 {
6096
6097 ;
6098 return 0;
6099 }
6100 _ACEOF
6101 if ac_fn_c_try_compile "$LINENO"; then :
6102 echo conftest.$ac_objext > conftest.lst
6103 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6105 (eval $lt_ar_try) 2>&5
6106 ac_status=$?
6107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6108 test $ac_status = 0; }
6109 if test "$ac_status" -eq 0; then
6110 # Ensure the archiver fails upon bogus file names.
6111 rm -f conftest.$ac_objext libconftest.a
6112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6113 (eval $lt_ar_try) 2>&5
6114 ac_status=$?
6115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6116 test $ac_status = 0; }
6117 if test "$ac_status" -ne 0; then
6118 lt_cv_ar_at_file=@
6119 fi
6120 fi
6121 rm -f conftest.* libconftest.a
6122
6123 fi
6124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6125
6126 fi
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6128 $as_echo "$lt_cv_ar_at_file" >&6; }
6129
6130 if test "x$lt_cv_ar_at_file" = xno; then
6131 archiver_list_spec=
6132 else
6133 archiver_list_spec=$lt_cv_ar_at_file
6134 fi
6135
6136
6137
6138
6139
6140
6141
6142 if test -n "$ac_tool_prefix"; then
6143 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6144 set dummy ${ac_tool_prefix}strip; ac_word=$2
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6146 $as_echo_n "checking for $ac_word... " >&6; }
6147 if ${ac_cv_prog_STRIP+:} false; then :
6148 $as_echo_n "(cached) " >&6
6149 else
6150 if test -n "$STRIP"; then
6151 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6152 else
6153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6154 for as_dir in $PATH
6155 do
6156 IFS=$as_save_IFS
6157 test -z "$as_dir" && as_dir=.
6158 for ac_exec_ext in '' $ac_executable_extensions; do
6159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6160 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6162 break 2
6163 fi
6164 done
6165 done
6166 IFS=$as_save_IFS
6167
6168 fi
6169 fi
6170 STRIP=$ac_cv_prog_STRIP
6171 if test -n "$STRIP"; then
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6173 $as_echo "$STRIP" >&6; }
6174 else
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6176 $as_echo "no" >&6; }
6177 fi
6178
6179
6180 fi
6181 if test -z "$ac_cv_prog_STRIP"; then
6182 ac_ct_STRIP=$STRIP
6183 # Extract the first word of "strip", so it can be a program name with args.
6184 set dummy strip; ac_word=$2
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6186 $as_echo_n "checking for $ac_word... " >&6; }
6187 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6188 $as_echo_n "(cached) " >&6
6189 else
6190 if test -n "$ac_ct_STRIP"; then
6191 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6192 else
6193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194 for as_dir in $PATH
6195 do
6196 IFS=$as_save_IFS
6197 test -z "$as_dir" && as_dir=.
6198 for ac_exec_ext in '' $ac_executable_extensions; do
6199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6200 ac_cv_prog_ac_ct_STRIP="strip"
6201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6202 break 2
6203 fi
6204 done
6205 done
6206 IFS=$as_save_IFS
6207
6208 fi
6209 fi
6210 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6211 if test -n "$ac_ct_STRIP"; then
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6213 $as_echo "$ac_ct_STRIP" >&6; }
6214 else
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6216 $as_echo "no" >&6; }
6217 fi
6218
6219 if test "x$ac_ct_STRIP" = x; then
6220 STRIP=":"
6221 else
6222 case $cross_compiling:$ac_tool_warned in
6223 yes:)
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6226 ac_tool_warned=yes ;;
6227 esac
6228 STRIP=$ac_ct_STRIP
6229 fi
6230 else
6231 STRIP="$ac_cv_prog_STRIP"
6232 fi
6233
6234 test -z "$STRIP" && STRIP=:
6235
6236
6237
6238
6239
6240
6241 if test -n "$ac_tool_prefix"; then
6242 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6243 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6245 $as_echo_n "checking for $ac_word... " >&6; }
6246 if ${ac_cv_prog_RANLIB+:} false; then :
6247 $as_echo_n "(cached) " >&6
6248 else
6249 if test -n "$RANLIB"; then
6250 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6251 else
6252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6253 for as_dir in $PATH
6254 do
6255 IFS=$as_save_IFS
6256 test -z "$as_dir" && as_dir=.
6257 for ac_exec_ext in '' $ac_executable_extensions; do
6258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6259 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6261 break 2
6262 fi
6263 done
6264 done
6265 IFS=$as_save_IFS
6266
6267 fi
6268 fi
6269 RANLIB=$ac_cv_prog_RANLIB
6270 if test -n "$RANLIB"; then
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6272 $as_echo "$RANLIB" >&6; }
6273 else
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6275 $as_echo "no" >&6; }
6276 fi
6277
6278
6279 fi
6280 if test -z "$ac_cv_prog_RANLIB"; then
6281 ac_ct_RANLIB=$RANLIB
6282 # Extract the first word of "ranlib", so it can be a program name with args.
6283 set dummy ranlib; ac_word=$2
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6285 $as_echo_n "checking for $ac_word... " >&6; }
6286 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6287 $as_echo_n "(cached) " >&6
6288 else
6289 if test -n "$ac_ct_RANLIB"; then
6290 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6291 else
6292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293 for as_dir in $PATH
6294 do
6295 IFS=$as_save_IFS
6296 test -z "$as_dir" && as_dir=.
6297 for ac_exec_ext in '' $ac_executable_extensions; do
6298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6299 ac_cv_prog_ac_ct_RANLIB="ranlib"
6300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6301 break 2
6302 fi
6303 done
6304 done
6305 IFS=$as_save_IFS
6306
6307 fi
6308 fi
6309 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6310 if test -n "$ac_ct_RANLIB"; then
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6312 $as_echo "$ac_ct_RANLIB" >&6; }
6313 else
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6315 $as_echo "no" >&6; }
6316 fi
6317
6318 if test "x$ac_ct_RANLIB" = x; then
6319 RANLIB=":"
6320 else
6321 case $cross_compiling:$ac_tool_warned in
6322 yes:)
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6325 ac_tool_warned=yes ;;
6326 esac
6327 RANLIB=$ac_ct_RANLIB
6328 fi
6329 else
6330 RANLIB="$ac_cv_prog_RANLIB"
6331 fi
6332
6333 test -z "$RANLIB" && RANLIB=:
6334
6335
6336
6337
6338
6339
6340 # Determine commands to create old-style static archives.
6341 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6342 old_postinstall_cmds='chmod 644 $oldlib'
6343 old_postuninstall_cmds=
6344
6345 if test -n "$RANLIB"; then
6346 case $host_os in
6347 openbsd*)
6348 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6349 ;;
6350 *)
6351 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6352 ;;
6353 esac
6354 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6355 fi
6356
6357 case $host_os in
6358 darwin*)
6359 lock_old_archive_extraction=yes ;;
6360 *)
6361 lock_old_archive_extraction=no ;;
6362 esac
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402 # If no C compiler was specified, use CC.
6403 LTCC=${LTCC-"$CC"}
6404
6405 # If no C compiler flags were specified, use CFLAGS.
6406 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6407
6408 # Allow CC to be a program name with arguments.
6409 compiler=$CC
6410
6411
6412 # Check for command to grab the raw symbol name followed by C symbol from nm.
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6414 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6415 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6416 $as_echo_n "(cached) " >&6
6417 else
6418
6419 # These are sane defaults that work on at least a few old systems.
6420 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6421
6422 # Character class describing NM global symbol codes.
6423 symcode='[BCDEGRST]'
6424
6425 # Regexp to match symbols that can be accessed directly from C.
6426 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6427
6428 # Define system-specific variables.
6429 case $host_os in
6430 aix*)
6431 symcode='[BCDT]'
6432 ;;
6433 cygwin* | mingw* | pw32* | cegcc*)
6434 symcode='[ABCDGISTW]'
6435 ;;
6436 hpux*)
6437 if test "$host_cpu" = ia64; then
6438 symcode='[ABCDEGRST]'
6439 fi
6440 ;;
6441 irix* | nonstopux*)
6442 symcode='[BCDEGRST]'
6443 ;;
6444 osf*)
6445 symcode='[BCDEGQRST]'
6446 ;;
6447 solaris*)
6448 symcode='[BDRT]'
6449 ;;
6450 sco3.2v5*)
6451 symcode='[DT]'
6452 ;;
6453 sysv4.2uw2*)
6454 symcode='[DT]'
6455 ;;
6456 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6457 symcode='[ABDT]'
6458 ;;
6459 sysv4)
6460 symcode='[DFNSTU]'
6461 ;;
6462 esac
6463
6464 # If we're using GNU nm, then use its standard symbol codes.
6465 case `$NM -V 2>&1` in
6466 *GNU* | *'with BFD'*)
6467 symcode='[ABCDGIRSTW]' ;;
6468 esac
6469
6470 # Transform an extracted symbol line into a proper C declaration.
6471 # Some systems (esp. on ia64) link data and code symbols differently,
6472 # so use this general approach.
6473 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6474
6475 # Transform an extracted symbol line into symbol name and symbol address
6476 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6477 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'"
6478
6479 # Handle CRLF in mingw tool chain
6480 opt_cr=
6481 case $build_os in
6482 mingw*)
6483 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6484 ;;
6485 esac
6486
6487 # Try without a prefix underscore, then with it.
6488 for ac_symprfx in "" "_"; do
6489
6490 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6491 symxfrm="\\1 $ac_symprfx\\2 \\2"
6492
6493 # Write the raw and C identifiers.
6494 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6495 # Fake it for dumpbin and say T for any non-static function
6496 # and D for any global variable.
6497 # Also find C++ and __fastcall symbols from MSVC++,
6498 # which start with @ or ?.
6499 lt_cv_sys_global_symbol_pipe="$AWK '"\
6500 " {last_section=section; section=\$ 3};"\
6501 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6502 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6503 " \$ 0!~/External *\|/{next};"\
6504 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6505 " {if(hide[section]) next};"\
6506 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6507 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6508 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6509 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6510 " ' prfx=^$ac_symprfx"
6511 else
6512 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6513 fi
6514 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6515
6516 # Check to see that the pipe works correctly.
6517 pipe_works=no
6518
6519 rm -f conftest*
6520 cat > conftest.$ac_ext <<_LT_EOF
6521 #ifdef __cplusplus
6522 extern "C" {
6523 #endif
6524 char nm_test_var;
6525 void nm_test_func(void);
6526 void nm_test_func(void){}
6527 #ifdef __cplusplus
6528 }
6529 #endif
6530 int main(){nm_test_var='a';nm_test_func();return(0);}
6531 _LT_EOF
6532
6533 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6534 (eval $ac_compile) 2>&5
6535 ac_status=$?
6536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6537 test $ac_status = 0; }; then
6538 # Now try to grab the symbols.
6539 nlist=conftest.nm
6540 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6541 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6542 ac_status=$?
6543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6544 test $ac_status = 0; } && test -s "$nlist"; then
6545 # Try sorting and uniquifying the output.
6546 if sort "$nlist" | uniq > "$nlist"T; then
6547 mv -f "$nlist"T "$nlist"
6548 else
6549 rm -f "$nlist"T
6550 fi
6551
6552 # Make sure that we snagged all the symbols we need.
6553 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6554 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6555 cat <<_LT_EOF > conftest.$ac_ext
6556 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6557 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6558 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6559 relocations are performed -- see ld's documentation on pseudo-relocs. */
6560 # define LT_DLSYM_CONST
6561 #elif defined(__osf__)
6562 /* This system does not cope well with relocations in const data. */
6563 # define LT_DLSYM_CONST
6564 #else
6565 # define LT_DLSYM_CONST const
6566 #endif
6567
6568 #ifdef __cplusplus
6569 extern "C" {
6570 #endif
6571
6572 _LT_EOF
6573 # Now generate the symbol file.
6574 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6575
6576 cat <<_LT_EOF >> conftest.$ac_ext
6577
6578 /* The mapping between symbol names and symbols. */
6579 LT_DLSYM_CONST struct {
6580 const char *name;
6581 void *address;
6582 }
6583 lt__PROGRAM__LTX_preloaded_symbols[] =
6584 {
6585 { "@PROGRAM@", (void *) 0 },
6586 _LT_EOF
6587 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6588 cat <<\_LT_EOF >> conftest.$ac_ext
6589 {0, (void *) 0}
6590 };
6591
6592 /* This works around a problem in FreeBSD linker */
6593 #ifdef FREEBSD_WORKAROUND
6594 static const void *lt_preloaded_setup() {
6595 return lt__PROGRAM__LTX_preloaded_symbols;
6596 }
6597 #endif
6598
6599 #ifdef __cplusplus
6600 }
6601 #endif
6602 _LT_EOF
6603 # Now try linking the two files.
6604 mv conftest.$ac_objext conftstm.$ac_objext
6605 lt_globsym_save_LIBS=$LIBS
6606 lt_globsym_save_CFLAGS=$CFLAGS
6607 LIBS="conftstm.$ac_objext"
6608 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6609 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6610 (eval $ac_link) 2>&5
6611 ac_status=$?
6612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6613 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6614 pipe_works=yes
6615 fi
6616 LIBS=$lt_globsym_save_LIBS
6617 CFLAGS=$lt_globsym_save_CFLAGS
6618 else
6619 echo "cannot find nm_test_func in $nlist" >&5
6620 fi
6621 else
6622 echo "cannot find nm_test_var in $nlist" >&5
6623 fi
6624 else
6625 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6626 fi
6627 else
6628 echo "$progname: failed program was:" >&5
6629 cat conftest.$ac_ext >&5
6630 fi
6631 rm -rf conftest* conftst*
6632
6633 # Do not use the global_symbol_pipe unless it works.
6634 if test "$pipe_works" = yes; then
6635 break
6636 else
6637 lt_cv_sys_global_symbol_pipe=
6638 fi
6639 done
6640
6641 fi
6642
6643 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6644 lt_cv_sys_global_symbol_to_cdecl=
6645 fi
6646 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6648 $as_echo "failed" >&6; }
6649 else
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6651 $as_echo "ok" >&6; }
6652 fi
6653
6654 # Response file support.
6655 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6656 nm_file_list_spec='@'
6657 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6658 nm_file_list_spec='@'
6659 fi
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6688 $as_echo_n "checking for sysroot... " >&6; }
6689
6690 # Check whether --with-sysroot was given.
6691 if test "${with_sysroot+set}" = set; then :
6692 withval=$with_sysroot;
6693 else
6694 with_sysroot=no
6695 fi
6696
6697
6698 lt_sysroot=
6699 case ${with_sysroot} in #(
6700 yes)
6701 if test "$GCC" = yes; then
6702 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6703 fi
6704 ;; #(
6705 /*)
6706 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6707 ;; #(
6708 no|'')
6709 ;; #(
6710 *)
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6712 $as_echo "${with_sysroot}" >&6; }
6713 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6714 ;;
6715 esac
6716
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6718 $as_echo "${lt_sysroot:-no}" >&6; }
6719
6720
6721
6722
6723
6724 # Check whether --enable-libtool-lock was given.
6725 if test "${enable_libtool_lock+set}" = set; then :
6726 enableval=$enable_libtool_lock;
6727 fi
6728
6729 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6730
6731 # Some flags need to be propagated to the compiler or linker for good
6732 # libtool support.
6733 case $host in
6734 ia64-*-hpux*)
6735 # Find out which ABI we are using.
6736 echo 'int i;' > conftest.$ac_ext
6737 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6738 (eval $ac_compile) 2>&5
6739 ac_status=$?
6740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6741 test $ac_status = 0; }; then
6742 case `/usr/bin/file conftest.$ac_objext` in
6743 *ELF-32*)
6744 HPUX_IA64_MODE="32"
6745 ;;
6746 *ELF-64*)
6747 HPUX_IA64_MODE="64"
6748 ;;
6749 esac
6750 fi
6751 rm -rf conftest*
6752 ;;
6753 *-*-irix6*)
6754 # Find out which ABI we are using.
6755 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6756 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6757 (eval $ac_compile) 2>&5
6758 ac_status=$?
6759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6760 test $ac_status = 0; }; then
6761 if test "$lt_cv_prog_gnu_ld" = yes; then
6762 case `/usr/bin/file conftest.$ac_objext` in
6763 *32-bit*)
6764 LD="${LD-ld} -melf32bsmip"
6765 ;;
6766 *N32*)
6767 LD="${LD-ld} -melf32bmipn32"
6768 ;;
6769 *64-bit*)
6770 LD="${LD-ld} -melf64bmip"
6771 ;;
6772 esac
6773 else
6774 case `/usr/bin/file conftest.$ac_objext` in
6775 *32-bit*)
6776 LD="${LD-ld} -32"
6777 ;;
6778 *N32*)
6779 LD="${LD-ld} -n32"
6780 ;;
6781 *64-bit*)
6782 LD="${LD-ld} -64"
6783 ;;
6784 esac
6785 fi
6786 fi
6787 rm -rf conftest*
6788 ;;
6789
6790 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6791 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6792 # Find out which ABI we are using.
6793 echo 'int i;' > conftest.$ac_ext
6794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6795 (eval $ac_compile) 2>&5
6796 ac_status=$?
6797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6798 test $ac_status = 0; }; then
6799 case `/usr/bin/file conftest.o` in
6800 *32-bit*)
6801 case $host in
6802 x86_64-*kfreebsd*-gnu)
6803 LD="${LD-ld} -m elf_i386_fbsd"
6804 ;;
6805 x86_64-*linux*)
6806 LD="${LD-ld} -m elf_i386"
6807 ;;
6808 ppc64-*linux*|powerpc64-*linux*)
6809 LD="${LD-ld} -m elf32ppclinux"
6810 ;;
6811 s390x-*linux*)
6812 LD="${LD-ld} -m elf_s390"
6813 ;;
6814 sparc64-*linux*)
6815 LD="${LD-ld} -m elf32_sparc"
6816 ;;
6817 esac
6818 ;;
6819 *64-bit*)
6820 case $host in
6821 x86_64-*kfreebsd*-gnu)
6822 LD="${LD-ld} -m elf_x86_64_fbsd"
6823 ;;
6824 x86_64-*linux*)
6825 LD="${LD-ld} -m elf_x86_64"
6826 ;;
6827 ppc*-*linux*|powerpc*-*linux*)
6828 LD="${LD-ld} -m elf64ppc"
6829 ;;
6830 s390*-*linux*|s390*-*tpf*)
6831 LD="${LD-ld} -m elf64_s390"
6832 ;;
6833 sparc*-*linux*)
6834 LD="${LD-ld} -m elf64_sparc"
6835 ;;
6836 esac
6837 ;;
6838 esac
6839 fi
6840 rm -rf conftest*
6841 ;;
6842
6843 *-*-sco3.2v5*)
6844 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6845 SAVE_CFLAGS="$CFLAGS"
6846 CFLAGS="$CFLAGS -belf"
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6848 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6849 if ${lt_cv_cc_needs_belf+:} false; then :
6850 $as_echo_n "(cached) " >&6
6851 else
6852 ac_ext=c
6853 ac_cpp='$CPP $CPPFLAGS'
6854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6857
6858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6859 /* end confdefs.h. */
6860
6861 int
6862 main ()
6863 {
6864
6865 ;
6866 return 0;
6867 }
6868 _ACEOF
6869 if ac_fn_c_try_link "$LINENO"; then :
6870 lt_cv_cc_needs_belf=yes
6871 else
6872 lt_cv_cc_needs_belf=no
6873 fi
6874 rm -f core conftest.err conftest.$ac_objext \
6875 conftest$ac_exeext conftest.$ac_ext
6876 ac_ext=c
6877 ac_cpp='$CPP $CPPFLAGS'
6878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6881
6882 fi
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6884 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6885 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6886 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6887 CFLAGS="$SAVE_CFLAGS"
6888 fi
6889 ;;
6890 *-*solaris*)
6891 # Find out which ABI we are using.
6892 echo 'int i;' > conftest.$ac_ext
6893 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6894 (eval $ac_compile) 2>&5
6895 ac_status=$?
6896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6897 test $ac_status = 0; }; then
6898 case `/usr/bin/file conftest.o` in
6899 *64-bit*)
6900 case $lt_cv_prog_gnu_ld in
6901 yes*)
6902 case $host in
6903 i?86-*-solaris*)
6904 LD="${LD-ld} -m elf_x86_64"
6905 ;;
6906 sparc*-*-solaris*)
6907 LD="${LD-ld} -m elf64_sparc"
6908 ;;
6909 esac
6910 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6911 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6912 LD="${LD-ld}_sol2"
6913 fi
6914 ;;
6915 *)
6916 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6917 LD="${LD-ld} -64"
6918 fi
6919 ;;
6920 esac
6921 ;;
6922 esac
6923 fi
6924 rm -rf conftest*
6925 ;;
6926 esac
6927
6928 need_locks="$enable_libtool_lock"
6929
6930 if test -n "$ac_tool_prefix"; then
6931 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6932 set dummy ${ac_tool_prefix}mt; ac_word=$2
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6934 $as_echo_n "checking for $ac_word... " >&6; }
6935 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6936 $as_echo_n "(cached) " >&6
6937 else
6938 if test -n "$MANIFEST_TOOL"; then
6939 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6940 else
6941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942 for as_dir in $PATH
6943 do
6944 IFS=$as_save_IFS
6945 test -z "$as_dir" && as_dir=.
6946 for ac_exec_ext in '' $ac_executable_extensions; do
6947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6948 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6950 break 2
6951 fi
6952 done
6953 done
6954 IFS=$as_save_IFS
6955
6956 fi
6957 fi
6958 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6959 if test -n "$MANIFEST_TOOL"; then
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6961 $as_echo "$MANIFEST_TOOL" >&6; }
6962 else
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6964 $as_echo "no" >&6; }
6965 fi
6966
6967
6968 fi
6969 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6970 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6971 # Extract the first word of "mt", so it can be a program name with args.
6972 set dummy mt; ac_word=$2
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6974 $as_echo_n "checking for $ac_word... " >&6; }
6975 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6976 $as_echo_n "(cached) " >&6
6977 else
6978 if test -n "$ac_ct_MANIFEST_TOOL"; then
6979 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6980 else
6981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6982 for as_dir in $PATH
6983 do
6984 IFS=$as_save_IFS
6985 test -z "$as_dir" && as_dir=.
6986 for ac_exec_ext in '' $ac_executable_extensions; do
6987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6988 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6990 break 2
6991 fi
6992 done
6993 done
6994 IFS=$as_save_IFS
6995
6996 fi
6997 fi
6998 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6999 if test -n "$ac_ct_MANIFEST_TOOL"; then
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7001 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7002 else
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7004 $as_echo "no" >&6; }
7005 fi
7006
7007 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7008 MANIFEST_TOOL=":"
7009 else
7010 case $cross_compiling:$ac_tool_warned in
7011 yes:)
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7013 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7014 ac_tool_warned=yes ;;
7015 esac
7016 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7017 fi
7018 else
7019 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7020 fi
7021
7022 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7024 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7025 if ${lt_cv_path_mainfest_tool+:} false; then :
7026 $as_echo_n "(cached) " >&6
7027 else
7028 lt_cv_path_mainfest_tool=no
7029 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7030 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7031 cat conftest.err >&5
7032 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7033 lt_cv_path_mainfest_tool=yes
7034 fi
7035 rm -f conftest*
7036 fi
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7038 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7039 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7040 MANIFEST_TOOL=:
7041 fi
7042
7043
7044
7045
7046
7047
7048 case $host_os in
7049 rhapsody* | darwin*)
7050 if test -n "$ac_tool_prefix"; then
7051 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7052 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7054 $as_echo_n "checking for $ac_word... " >&6; }
7055 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7056 $as_echo_n "(cached) " >&6
7057 else
7058 if test -n "$DSYMUTIL"; then
7059 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7060 else
7061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7062 for as_dir in $PATH
7063 do
7064 IFS=$as_save_IFS
7065 test -z "$as_dir" && as_dir=.
7066 for ac_exec_ext in '' $ac_executable_extensions; do
7067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7068 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7070 break 2
7071 fi
7072 done
7073 done
7074 IFS=$as_save_IFS
7075
7076 fi
7077 fi
7078 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7079 if test -n "$DSYMUTIL"; then
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7081 $as_echo "$DSYMUTIL" >&6; }
7082 else
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7084 $as_echo "no" >&6; }
7085 fi
7086
7087
7088 fi
7089 if test -z "$ac_cv_prog_DSYMUTIL"; then
7090 ac_ct_DSYMUTIL=$DSYMUTIL
7091 # Extract the first word of "dsymutil", so it can be a program name with args.
7092 set dummy dsymutil; ac_word=$2
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7094 $as_echo_n "checking for $ac_word... " >&6; }
7095 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7096 $as_echo_n "(cached) " >&6
7097 else
7098 if test -n "$ac_ct_DSYMUTIL"; then
7099 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7100 else
7101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102 for as_dir in $PATH
7103 do
7104 IFS=$as_save_IFS
7105 test -z "$as_dir" && as_dir=.
7106 for ac_exec_ext in '' $ac_executable_extensions; do
7107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7108 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7110 break 2
7111 fi
7112 done
7113 done
7114 IFS=$as_save_IFS
7115
7116 fi
7117 fi
7118 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7119 if test -n "$ac_ct_DSYMUTIL"; then
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7121 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7122 else
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7124 $as_echo "no" >&6; }
7125 fi
7126
7127 if test "x$ac_ct_DSYMUTIL" = x; then
7128 DSYMUTIL=":"
7129 else
7130 case $cross_compiling:$ac_tool_warned in
7131 yes:)
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7133 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7134 ac_tool_warned=yes ;;
7135 esac
7136 DSYMUTIL=$ac_ct_DSYMUTIL
7137 fi
7138 else
7139 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7140 fi
7141
7142 if test -n "$ac_tool_prefix"; then
7143 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7144 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7146 $as_echo_n "checking for $ac_word... " >&6; }
7147 if ${ac_cv_prog_NMEDIT+:} false; then :
7148 $as_echo_n "(cached) " >&6
7149 else
7150 if test -n "$NMEDIT"; then
7151 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7152 else
7153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7154 for as_dir in $PATH
7155 do
7156 IFS=$as_save_IFS
7157 test -z "$as_dir" && as_dir=.
7158 for ac_exec_ext in '' $ac_executable_extensions; do
7159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7160 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7162 break 2
7163 fi
7164 done
7165 done
7166 IFS=$as_save_IFS
7167
7168 fi
7169 fi
7170 NMEDIT=$ac_cv_prog_NMEDIT
7171 if test -n "$NMEDIT"; then
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7173 $as_echo "$NMEDIT" >&6; }
7174 else
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7176 $as_echo "no" >&6; }
7177 fi
7178
7179
7180 fi
7181 if test -z "$ac_cv_prog_NMEDIT"; then
7182 ac_ct_NMEDIT=$NMEDIT
7183 # Extract the first word of "nmedit", so it can be a program name with args.
7184 set dummy nmedit; ac_word=$2
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7186 $as_echo_n "checking for $ac_word... " >&6; }
7187 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7188 $as_echo_n "(cached) " >&6
7189 else
7190 if test -n "$ac_ct_NMEDIT"; then
7191 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7192 else
7193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 for as_dir in $PATH
7195 do
7196 IFS=$as_save_IFS
7197 test -z "$as_dir" && as_dir=.
7198 for ac_exec_ext in '' $ac_executable_extensions; do
7199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7200 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7202 break 2
7203 fi
7204 done
7205 done
7206 IFS=$as_save_IFS
7207
7208 fi
7209 fi
7210 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7211 if test -n "$ac_ct_NMEDIT"; then
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7213 $as_echo "$ac_ct_NMEDIT" >&6; }
7214 else
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7216 $as_echo "no" >&6; }
7217 fi
7218
7219 if test "x$ac_ct_NMEDIT" = x; then
7220 NMEDIT=":"
7221 else
7222 case $cross_compiling:$ac_tool_warned in
7223 yes:)
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7226 ac_tool_warned=yes ;;
7227 esac
7228 NMEDIT=$ac_ct_NMEDIT
7229 fi
7230 else
7231 NMEDIT="$ac_cv_prog_NMEDIT"
7232 fi
7233
7234 if test -n "$ac_tool_prefix"; then
7235 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7236 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7238 $as_echo_n "checking for $ac_word... " >&6; }
7239 if ${ac_cv_prog_LIPO+:} false; then :
7240 $as_echo_n "(cached) " >&6
7241 else
7242 if test -n "$LIPO"; then
7243 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7244 else
7245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7246 for as_dir in $PATH
7247 do
7248 IFS=$as_save_IFS
7249 test -z "$as_dir" && as_dir=.
7250 for ac_exec_ext in '' $ac_executable_extensions; do
7251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7252 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7254 break 2
7255 fi
7256 done
7257 done
7258 IFS=$as_save_IFS
7259
7260 fi
7261 fi
7262 LIPO=$ac_cv_prog_LIPO
7263 if test -n "$LIPO"; then
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7265 $as_echo "$LIPO" >&6; }
7266 else
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7268 $as_echo "no" >&6; }
7269 fi
7270
7271
7272 fi
7273 if test -z "$ac_cv_prog_LIPO"; then
7274 ac_ct_LIPO=$LIPO
7275 # Extract the first word of "lipo", so it can be a program name with args.
7276 set dummy lipo; ac_word=$2
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7278 $as_echo_n "checking for $ac_word... " >&6; }
7279 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7280 $as_echo_n "(cached) " >&6
7281 else
7282 if test -n "$ac_ct_LIPO"; then
7283 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7284 else
7285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7286 for as_dir in $PATH
7287 do
7288 IFS=$as_save_IFS
7289 test -z "$as_dir" && as_dir=.
7290 for ac_exec_ext in '' $ac_executable_extensions; do
7291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7292 ac_cv_prog_ac_ct_LIPO="lipo"
7293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7294 break 2
7295 fi
7296 done
7297 done
7298 IFS=$as_save_IFS
7299
7300 fi
7301 fi
7302 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7303 if test -n "$ac_ct_LIPO"; then
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7305 $as_echo "$ac_ct_LIPO" >&6; }
7306 else
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7308 $as_echo "no" >&6; }
7309 fi
7310
7311 if test "x$ac_ct_LIPO" = x; then
7312 LIPO=":"
7313 else
7314 case $cross_compiling:$ac_tool_warned in
7315 yes:)
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7318 ac_tool_warned=yes ;;
7319 esac
7320 LIPO=$ac_ct_LIPO
7321 fi
7322 else
7323 LIPO="$ac_cv_prog_LIPO"
7324 fi
7325
7326 if test -n "$ac_tool_prefix"; then
7327 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7328 set dummy ${ac_tool_prefix}otool; ac_word=$2
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7330 $as_echo_n "checking for $ac_word... " >&6; }
7331 if ${ac_cv_prog_OTOOL+:} false; then :
7332 $as_echo_n "(cached) " >&6
7333 else
7334 if test -n "$OTOOL"; then
7335 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7336 else
7337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338 for as_dir in $PATH
7339 do
7340 IFS=$as_save_IFS
7341 test -z "$as_dir" && as_dir=.
7342 for ac_exec_ext in '' $ac_executable_extensions; do
7343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7344 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7346 break 2
7347 fi
7348 done
7349 done
7350 IFS=$as_save_IFS
7351
7352 fi
7353 fi
7354 OTOOL=$ac_cv_prog_OTOOL
7355 if test -n "$OTOOL"; then
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7357 $as_echo "$OTOOL" >&6; }
7358 else
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7360 $as_echo "no" >&6; }
7361 fi
7362
7363
7364 fi
7365 if test -z "$ac_cv_prog_OTOOL"; then
7366 ac_ct_OTOOL=$OTOOL
7367 # Extract the first word of "otool", so it can be a program name with args.
7368 set dummy otool; ac_word=$2
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7370 $as_echo_n "checking for $ac_word... " >&6; }
7371 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7372 $as_echo_n "(cached) " >&6
7373 else
7374 if test -n "$ac_ct_OTOOL"; then
7375 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7376 else
7377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378 for as_dir in $PATH
7379 do
7380 IFS=$as_save_IFS
7381 test -z "$as_dir" && as_dir=.
7382 for ac_exec_ext in '' $ac_executable_extensions; do
7383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7384 ac_cv_prog_ac_ct_OTOOL="otool"
7385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7386 break 2
7387 fi
7388 done
7389 done
7390 IFS=$as_save_IFS
7391
7392 fi
7393 fi
7394 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7395 if test -n "$ac_ct_OTOOL"; then
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7397 $as_echo "$ac_ct_OTOOL" >&6; }
7398 else
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7400 $as_echo "no" >&6; }
7401 fi
7402
7403 if test "x$ac_ct_OTOOL" = x; then
7404 OTOOL=":"
7405 else
7406 case $cross_compiling:$ac_tool_warned in
7407 yes:)
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7410 ac_tool_warned=yes ;;
7411 esac
7412 OTOOL=$ac_ct_OTOOL
7413 fi
7414 else
7415 OTOOL="$ac_cv_prog_OTOOL"
7416 fi
7417
7418 if test -n "$ac_tool_prefix"; then
7419 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7420 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7422 $as_echo_n "checking for $ac_word... " >&6; }
7423 if ${ac_cv_prog_OTOOL64+:} false; then :
7424 $as_echo_n "(cached) " >&6
7425 else
7426 if test -n "$OTOOL64"; then
7427 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7428 else
7429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7430 for as_dir in $PATH
7431 do
7432 IFS=$as_save_IFS
7433 test -z "$as_dir" && as_dir=.
7434 for ac_exec_ext in '' $ac_executable_extensions; do
7435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7436 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7438 break 2
7439 fi
7440 done
7441 done
7442 IFS=$as_save_IFS
7443
7444 fi
7445 fi
7446 OTOOL64=$ac_cv_prog_OTOOL64
7447 if test -n "$OTOOL64"; then
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7449 $as_echo "$OTOOL64" >&6; }
7450 else
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7452 $as_echo "no" >&6; }
7453 fi
7454
7455
7456 fi
7457 if test -z "$ac_cv_prog_OTOOL64"; then
7458 ac_ct_OTOOL64=$OTOOL64
7459 # Extract the first word of "otool64", so it can be a program name with args.
7460 set dummy otool64; ac_word=$2
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7462 $as_echo_n "checking for $ac_word... " >&6; }
7463 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7464 $as_echo_n "(cached) " >&6
7465 else
7466 if test -n "$ac_ct_OTOOL64"; then
7467 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7468 else
7469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470 for as_dir in $PATH
7471 do
7472 IFS=$as_save_IFS
7473 test -z "$as_dir" && as_dir=.
7474 for ac_exec_ext in '' $ac_executable_extensions; do
7475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7476 ac_cv_prog_ac_ct_OTOOL64="otool64"
7477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7478 break 2
7479 fi
7480 done
7481 done
7482 IFS=$as_save_IFS
7483
7484 fi
7485 fi
7486 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7487 if test -n "$ac_ct_OTOOL64"; then
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7489 $as_echo "$ac_ct_OTOOL64" >&6; }
7490 else
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7492 $as_echo "no" >&6; }
7493 fi
7494
7495 if test "x$ac_ct_OTOOL64" = x; then
7496 OTOOL64=":"
7497 else
7498 case $cross_compiling:$ac_tool_warned in
7499 yes:)
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7502 ac_tool_warned=yes ;;
7503 esac
7504 OTOOL64=$ac_ct_OTOOL64
7505 fi
7506 else
7507 OTOOL64="$ac_cv_prog_OTOOL64"
7508 fi
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7537 $as_echo_n "checking for -single_module linker flag... " >&6; }
7538 if ${lt_cv_apple_cc_single_mod+:} false; then :
7539 $as_echo_n "(cached) " >&6
7540 else
7541 lt_cv_apple_cc_single_mod=no
7542 if test -z "${LT_MULTI_MODULE}"; then
7543 # By default we will add the -single_module flag. You can override
7544 # by either setting the environment variable LT_MULTI_MODULE
7545 # non-empty at configure time, or by adding -multi_module to the
7546 # link flags.
7547 rm -rf libconftest.dylib*
7548 echo "int foo(void){return 1;}" > conftest.c
7549 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7550 -dynamiclib -Wl,-single_module conftest.c" >&5
7551 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7552 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7553 _lt_result=$?
7554 # If there is a non-empty error log, and "single_module"
7555 # appears in it, assume the flag caused a linker warning
7556 if test -s conftest.err && $GREP single_module conftest.err; then
7557 cat conftest.err >&5
7558 # Otherwise, if the output was created with a 0 exit code from
7559 # the compiler, it worked.
7560 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7561 lt_cv_apple_cc_single_mod=yes
7562 else
7563 cat conftest.err >&5
7564 fi
7565 rm -rf libconftest.dylib*
7566 rm -f conftest.*
7567 fi
7568 fi
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7570 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7571
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7573 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7574 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7575 $as_echo_n "(cached) " >&6
7576 else
7577 lt_cv_ld_exported_symbols_list=no
7578 save_LDFLAGS=$LDFLAGS
7579 echo "_main" > conftest.sym
7580 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7582 /* end confdefs.h. */
7583
7584 int
7585 main ()
7586 {
7587
7588 ;
7589 return 0;
7590 }
7591 _ACEOF
7592 if ac_fn_c_try_link "$LINENO"; then :
7593 lt_cv_ld_exported_symbols_list=yes
7594 else
7595 lt_cv_ld_exported_symbols_list=no
7596 fi
7597 rm -f core conftest.err conftest.$ac_objext \
7598 conftest$ac_exeext conftest.$ac_ext
7599 LDFLAGS="$save_LDFLAGS"
7600
7601 fi
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7603 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7604
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7606 $as_echo_n "checking for -force_load linker flag... " >&6; }
7607 if ${lt_cv_ld_force_load+:} false; then :
7608 $as_echo_n "(cached) " >&6
7609 else
7610 lt_cv_ld_force_load=no
7611 cat > conftest.c << _LT_EOF
7612 int forced_loaded() { return 2;}
7613 _LT_EOF
7614 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7615 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7616 echo "$AR cru libconftest.a conftest.o" >&5
7617 $AR cru libconftest.a conftest.o 2>&5
7618 echo "$RANLIB libconftest.a" >&5
7619 $RANLIB libconftest.a 2>&5
7620 cat > conftest.c << _LT_EOF
7621 int main() { return 0;}
7622 _LT_EOF
7623 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7624 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7625 _lt_result=$?
7626 if test -s conftest.err && $GREP force_load conftest.err; then
7627 cat conftest.err >&5
7628 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7629 lt_cv_ld_force_load=yes
7630 else
7631 cat conftest.err >&5
7632 fi
7633 rm -f conftest.err libconftest.a conftest conftest.c
7634 rm -rf conftest.dSYM
7635
7636 fi
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7638 $as_echo "$lt_cv_ld_force_load" >&6; }
7639 case $host_os in
7640 rhapsody* | darwin1.[012])
7641 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7642 darwin1.*)
7643 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7644 darwin*) # darwin 5.x on
7645 # if running on 10.5 or later, the deployment target defaults
7646 # to the OS version, if on x86, and 10.4, the deployment
7647 # target defaults to 10.4. Don't you love it?
7648 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7649 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7650 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7651 10.[012]*)
7652 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7653 10.*)
7654 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7655 esac
7656 ;;
7657 esac
7658 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7659 _lt_dar_single_mod='$single_module'
7660 fi
7661 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7662 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7663 else
7664 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7665 fi
7666 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7667 _lt_dsymutil='~$DSYMUTIL $lib || :'
7668 else
7669 _lt_dsymutil=
7670 fi
7671 ;;
7672 esac
7673
7674 ac_ext=c
7675 ac_cpp='$CPP $CPPFLAGS'
7676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7680 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7681 # On Suns, sometimes $CPP names a directory.
7682 if test -n "$CPP" && test -d "$CPP"; then
7683 CPP=
7684 fi
7685 if test -z "$CPP"; then
7686 if ${ac_cv_prog_CPP+:} false; then :
7687 $as_echo_n "(cached) " >&6
7688 else
7689 # Double quotes because CPP needs to be expanded
7690 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7691 do
7692 ac_preproc_ok=false
7693 for ac_c_preproc_warn_flag in '' yes
7694 do
7695 # Use a header file that comes with gcc, so configuring glibc
7696 # with a fresh cross-compiler works.
7697 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7698 # <limits.h> exists even on freestanding compilers.
7699 # On the NeXT, cc -E runs the code through the compiler's parser,
7700 # not just through cpp. "Syntax error" is here to catch this case.
7701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7702 /* end confdefs.h. */
7703 #ifdef __STDC__
7704 # include <limits.h>
7705 #else
7706 # include <assert.h>
7707 #endif
7708 Syntax error
7709 _ACEOF
7710 if ac_fn_c_try_cpp "$LINENO"; then :
7711
7712 else
7713 # Broken: fails on valid input.
7714 continue
7715 fi
7716 rm -f conftest.err conftest.i conftest.$ac_ext
7717
7718 # OK, works on sane cases. Now check whether nonexistent headers
7719 # can be detected and how.
7720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7721 /* end confdefs.h. */
7722 #include <ac_nonexistent.h>
7723 _ACEOF
7724 if ac_fn_c_try_cpp "$LINENO"; then :
7725 # Broken: success on invalid input.
7726 continue
7727 else
7728 # Passes both tests.
7729 ac_preproc_ok=:
7730 break
7731 fi
7732 rm -f conftest.err conftest.i conftest.$ac_ext
7733
7734 done
7735 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7736 rm -f conftest.i conftest.err conftest.$ac_ext
7737 if $ac_preproc_ok; then :
7738 break
7739 fi
7740
7741 done
7742 ac_cv_prog_CPP=$CPP
7743
7744 fi
7745 CPP=$ac_cv_prog_CPP
7746 else
7747 ac_cv_prog_CPP=$CPP
7748 fi
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7750 $as_echo "$CPP" >&6; }
7751 ac_preproc_ok=false
7752 for ac_c_preproc_warn_flag in '' yes
7753 do
7754 # Use a header file that comes with gcc, so configuring glibc
7755 # with a fresh cross-compiler works.
7756 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7757 # <limits.h> exists even on freestanding compilers.
7758 # On the NeXT, cc -E runs the code through the compiler's parser,
7759 # not just through cpp. "Syntax error" is here to catch this case.
7760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7761 /* end confdefs.h. */
7762 #ifdef __STDC__
7763 # include <limits.h>
7764 #else
7765 # include <assert.h>
7766 #endif
7767 Syntax error
7768 _ACEOF
7769 if ac_fn_c_try_cpp "$LINENO"; then :
7770
7771 else
7772 # Broken: fails on valid input.
7773 continue
7774 fi
7775 rm -f conftest.err conftest.i conftest.$ac_ext
7776
7777 # OK, works on sane cases. Now check whether nonexistent headers
7778 # can be detected and how.
7779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7780 /* end confdefs.h. */
7781 #include <ac_nonexistent.h>
7782 _ACEOF
7783 if ac_fn_c_try_cpp "$LINENO"; then :
7784 # Broken: success on invalid input.
7785 continue
7786 else
7787 # Passes both tests.
7788 ac_preproc_ok=:
7789 break
7790 fi
7791 rm -f conftest.err conftest.i conftest.$ac_ext
7792
7793 done
7794 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7795 rm -f conftest.i conftest.err conftest.$ac_ext
7796 if $ac_preproc_ok; then :
7797
7798 else
7799 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7801 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7802 See \`config.log' for more details" "$LINENO" 5; }
7803 fi
7804
7805 ac_ext=c
7806 ac_cpp='$CPP $CPPFLAGS'
7807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7810
7811
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7813 $as_echo_n "checking for ANSI C header files... " >&6; }
7814 if ${ac_cv_header_stdc+:} false; then :
7815 $as_echo_n "(cached) " >&6
7816 else
7817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7818 /* end confdefs.h. */
7819 #include <stdlib.h>
7820 #include <stdarg.h>
7821 #include <string.h>
7822 #include <float.h>
7823
7824 int
7825 main ()
7826 {
7827
7828 ;
7829 return 0;
7830 }
7831 _ACEOF
7832 if ac_fn_c_try_compile "$LINENO"; then :
7833 ac_cv_header_stdc=yes
7834 else
7835 ac_cv_header_stdc=no
7836 fi
7837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7838
7839 if test $ac_cv_header_stdc = yes; then
7840 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7842 /* end confdefs.h. */
7843 #include <string.h>
7844
7845 _ACEOF
7846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7847 $EGREP "memchr" >/dev/null 2>&1; then :
7848
7849 else
7850 ac_cv_header_stdc=no
7851 fi
7852 rm -f conftest*
7853
7854 fi
7855
7856 if test $ac_cv_header_stdc = yes; then
7857 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7859 /* end confdefs.h. */
7860 #include <stdlib.h>
7861
7862 _ACEOF
7863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7864 $EGREP "free" >/dev/null 2>&1; then :
7865
7866 else
7867 ac_cv_header_stdc=no
7868 fi
7869 rm -f conftest*
7870
7871 fi
7872
7873 if test $ac_cv_header_stdc = yes; then
7874 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7875 if test "$cross_compiling" = yes; then :
7876 :
7877 else
7878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7879 /* end confdefs.h. */
7880 #include <ctype.h>
7881 #include <stdlib.h>
7882 #if ((' ' & 0x0FF) == 0x020)
7883 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7884 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7885 #else
7886 # define ISLOWER(c) \
7887 (('a' <= (c) && (c) <= 'i') \
7888 || ('j' <= (c) && (c) <= 'r') \
7889 || ('s' <= (c) && (c) <= 'z'))
7890 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7891 #endif
7892
7893 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7894 int
7895 main ()
7896 {
7897 int i;
7898 for (i = 0; i < 256; i++)
7899 if (XOR (islower (i), ISLOWER (i))
7900 || toupper (i) != TOUPPER (i))
7901 return 2;
7902 return 0;
7903 }
7904 _ACEOF
7905 if ac_fn_c_try_run "$LINENO"; then :
7906
7907 else
7908 ac_cv_header_stdc=no
7909 fi
7910 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7911 conftest.$ac_objext conftest.beam conftest.$ac_ext
7912 fi
7913
7914 fi
7915 fi
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7917 $as_echo "$ac_cv_header_stdc" >&6; }
7918 if test $ac_cv_header_stdc = yes; then
7919
7920 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7921
7922 fi
7923
7924 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7925 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7926 inttypes.h stdint.h unistd.h
7927 do :
7928 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7929 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7930 "
7931 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7932 cat >>confdefs.h <<_ACEOF
7933 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7934 _ACEOF
7935
7936 fi
7937
7938 done
7939
7940
7941 for ac_header in dlfcn.h
7942 do :
7943 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7944 "
7945 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7946 cat >>confdefs.h <<_ACEOF
7947 #define HAVE_DLFCN_H 1
7948 _ACEOF
7949
7950 fi
7951
7952 done
7953
7954
7955
7956
7957
7958 # Set options
7959 enable_dlopen=yes
7960 # Check whether --enable-static was given.
7961 if test "${enable_static+set}" = set; then :
7962 enableval=$enable_static; p=${PACKAGE-default}
7963 case $enableval in
7964 yes) enable_static=yes ;;
7965 no) enable_static=no ;;
7966 *)
7967 enable_static=no
7968 # Look at the argument we got. We use all the common list separators.
7969 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7970 for pkg in $enableval; do
7971 IFS="$lt_save_ifs"
7972 if test "X$pkg" = "X$p"; then
7973 enable_static=yes
7974 fi
7975 done
7976 IFS="$lt_save_ifs"
7977 ;;
7978 esac
7979 else
7980 enable_static=no
7981 fi
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993 enable_win32_dll=no
7994
7995
7996 # Check whether --enable-shared was given.
7997 if test "${enable_shared+set}" = set; then :
7998 enableval=$enable_shared; p=${PACKAGE-default}
7999 case $enableval in
8000 yes) enable_shared=yes ;;
8001 no) enable_shared=no ;;
8002 *)
8003 enable_shared=no
8004 # Look at the argument we got. We use all the common list separators.
8005 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8006 for pkg in $enableval; do
8007 IFS="$lt_save_ifs"
8008 if test "X$pkg" = "X$p"; then
8009 enable_shared=yes
8010 fi
8011 done
8012 IFS="$lt_save_ifs"
8013 ;;
8014 esac
8015 else
8016 enable_shared=yes
8017 fi
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029 # Check whether --with-pic was given.
8030 if test "${with_pic+set}" = set; then :
8031 withval=$with_pic; lt_p=${PACKAGE-default}
8032 case $withval in
8033 yes|no) pic_mode=$withval ;;
8034 *)
8035 pic_mode=default
8036 # Look at the argument we got. We use all the common list separators.
8037 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8038 for lt_pkg in $withval; do
8039 IFS="$lt_save_ifs"
8040 if test "X$lt_pkg" = "X$lt_p"; then
8041 pic_mode=yes
8042 fi
8043 done
8044 IFS="$lt_save_ifs"
8045 ;;
8046 esac
8047 else
8048 pic_mode=default
8049 fi
8050
8051
8052 test -z "$pic_mode" && pic_mode=default
8053
8054
8055
8056
8057
8058
8059
8060 # Check whether --enable-fast-install was given.
8061 if test "${enable_fast_install+set}" = set; then :
8062 enableval=$enable_fast_install; p=${PACKAGE-default}
8063 case $enableval in
8064 yes) enable_fast_install=yes ;;
8065 no) enable_fast_install=no ;;
8066 *)
8067 enable_fast_install=no
8068 # Look at the argument we got. We use all the common list separators.
8069 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8070 for pkg in $enableval; do
8071 IFS="$lt_save_ifs"
8072 if test "X$pkg" = "X$p"; then
8073 enable_fast_install=yes
8074 fi
8075 done
8076 IFS="$lt_save_ifs"
8077 ;;
8078 esac
8079 else
8080 enable_fast_install=yes
8081 fi
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093 # This can be used to rebuild libtool when needed
8094 LIBTOOL_DEPS="$ltmain"
8095
8096 # Always use our own libtool.
8097 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128 test -z "$LN_S" && LN_S="ln -s"
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143 if test -n "${ZSH_VERSION+set}" ; then
8144 setopt NO_GLOB_SUBST
8145 fi
8146
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8148 $as_echo_n "checking for objdir... " >&6; }
8149 if ${lt_cv_objdir+:} false; then :
8150 $as_echo_n "(cached) " >&6
8151 else
8152 rm -f .libs 2>/dev/null
8153 mkdir .libs 2>/dev/null
8154 if test -d .libs; then
8155 lt_cv_objdir=.libs
8156 else
8157 # MS-DOS does not allow filenames that begin with a dot.
8158 lt_cv_objdir=_libs
8159 fi
8160 rmdir .libs 2>/dev/null
8161 fi
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8163 $as_echo "$lt_cv_objdir" >&6; }
8164 objdir=$lt_cv_objdir
8165
8166
8167
8168
8169
8170 cat >>confdefs.h <<_ACEOF
8171 #define LT_OBJDIR "$lt_cv_objdir/"
8172 _ACEOF
8173
8174
8175
8176
8177 case $host_os in
8178 aix3*)
8179 # AIX sometimes has problems with the GCC collect2 program. For some
8180 # reason, if we set the COLLECT_NAMES environment variable, the problems
8181 # vanish in a puff of smoke.
8182 if test "X${COLLECT_NAMES+set}" != Xset; then
8183 COLLECT_NAMES=
8184 export COLLECT_NAMES
8185 fi
8186 ;;
8187 esac
8188
8189 # Global variables:
8190 ofile=libtool
8191 can_build_shared=yes
8192
8193 # All known linkers require a `.a' archive for static linking (except MSVC,
8194 # which needs '.lib').
8195 libext=a
8196
8197 with_gnu_ld="$lt_cv_prog_gnu_ld"
8198
8199 old_CC="$CC"
8200 old_CFLAGS="$CFLAGS"
8201
8202 # Set sane defaults for various variables
8203 test -z "$CC" && CC=cc
8204 test -z "$LTCC" && LTCC=$CC
8205 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8206 test -z "$LD" && LD=ld
8207 test -z "$ac_objext" && ac_objext=o
8208
8209 for cc_temp in $compiler""; do
8210 case $cc_temp in
8211 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8212 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8213 \-*) ;;
8214 *) break;;
8215 esac
8216 done
8217 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8218
8219
8220 # Only perform the check for file, if the check method requires it
8221 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8222 case $deplibs_check_method in
8223 file_magic*)
8224 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8226 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8227 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8228 $as_echo_n "(cached) " >&6
8229 else
8230 case $MAGIC_CMD in
8231 [\\/*] | ?:[\\/]*)
8232 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8233 ;;
8234 *)
8235 lt_save_MAGIC_CMD="$MAGIC_CMD"
8236 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8237 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8238 for ac_dir in $ac_dummy; do
8239 IFS="$lt_save_ifs"
8240 test -z "$ac_dir" && ac_dir=.
8241 if test -f $ac_dir/${ac_tool_prefix}file; then
8242 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8243 if test -n "$file_magic_test_file"; then
8244 case $deplibs_check_method in
8245 "file_magic "*)
8246 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8247 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8248 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8249 $EGREP "$file_magic_regex" > /dev/null; then
8250 :
8251 else
8252 cat <<_LT_EOF 1>&2
8253
8254 *** Warning: the command libtool uses to detect shared libraries,
8255 *** $file_magic_cmd, produces output that libtool cannot recognize.
8256 *** The result is that libtool may fail to recognize shared libraries
8257 *** as such. This will affect the creation of libtool libraries that
8258 *** depend on shared libraries, but programs linked with such libtool
8259 *** libraries will work regardless of this problem. Nevertheless, you
8260 *** may want to report the problem to your system manager and/or to
8261 *** bug-libtool@gnu.org
8262
8263 _LT_EOF
8264 fi ;;
8265 esac
8266 fi
8267 break
8268 fi
8269 done
8270 IFS="$lt_save_ifs"
8271 MAGIC_CMD="$lt_save_MAGIC_CMD"
8272 ;;
8273 esac
8274 fi
8275
8276 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8277 if test -n "$MAGIC_CMD"; then
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8279 $as_echo "$MAGIC_CMD" >&6; }
8280 else
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8282 $as_echo "no" >&6; }
8283 fi
8284
8285
8286
8287
8288
8289 if test -z "$lt_cv_path_MAGIC_CMD"; then
8290 if test -n "$ac_tool_prefix"; then
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8292 $as_echo_n "checking for file... " >&6; }
8293 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8294 $as_echo_n "(cached) " >&6
8295 else
8296 case $MAGIC_CMD in
8297 [\\/*] | ?:[\\/]*)
8298 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8299 ;;
8300 *)
8301 lt_save_MAGIC_CMD="$MAGIC_CMD"
8302 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8303 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8304 for ac_dir in $ac_dummy; do
8305 IFS="$lt_save_ifs"
8306 test -z "$ac_dir" && ac_dir=.
8307 if test -f $ac_dir/file; then
8308 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8309 if test -n "$file_magic_test_file"; then
8310 case $deplibs_check_method in
8311 "file_magic "*)
8312 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8313 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8314 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8315 $EGREP "$file_magic_regex" > /dev/null; then
8316 :
8317 else
8318 cat <<_LT_EOF 1>&2
8319
8320 *** Warning: the command libtool uses to detect shared libraries,
8321 *** $file_magic_cmd, produces output that libtool cannot recognize.
8322 *** The result is that libtool may fail to recognize shared libraries
8323 *** as such. This will affect the creation of libtool libraries that
8324 *** depend on shared libraries, but programs linked with such libtool
8325 *** libraries will work regardless of this problem. Nevertheless, you
8326 *** may want to report the problem to your system manager and/or to
8327 *** bug-libtool@gnu.org
8328
8329 _LT_EOF
8330 fi ;;
8331 esac
8332 fi
8333 break
8334 fi
8335 done
8336 IFS="$lt_save_ifs"
8337 MAGIC_CMD="$lt_save_MAGIC_CMD"
8338 ;;
8339 esac
8340 fi
8341
8342 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8343 if test -n "$MAGIC_CMD"; then
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8345 $as_echo "$MAGIC_CMD" >&6; }
8346 else
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8348 $as_echo "no" >&6; }
8349 fi
8350
8351
8352 else
8353 MAGIC_CMD=:
8354 fi
8355 fi
8356
8357 fi
8358 ;;
8359 esac
8360
8361 # Use C for the default configuration in the libtool script
8362
8363 lt_save_CC="$CC"
8364 ac_ext=c
8365 ac_cpp='$CPP $CPPFLAGS'
8366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8369
8370
8371 # Source file extension for C test sources.
8372 ac_ext=c
8373
8374 # Object file extension for compiled C test sources.
8375 objext=o
8376 objext=$objext
8377
8378 # Code to be used in simple compile tests
8379 lt_simple_compile_test_code="int some_variable = 0;"
8380
8381 # Code to be used in simple link tests
8382 lt_simple_link_test_code='int main(){return(0);}'
8383
8384
8385
8386
8387
8388
8389
8390 # If no C compiler was specified, use CC.
8391 LTCC=${LTCC-"$CC"}
8392
8393 # If no C compiler flags were specified, use CFLAGS.
8394 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8395
8396 # Allow CC to be a program name with arguments.
8397 compiler=$CC
8398
8399 # Save the default compiler, since it gets overwritten when the other
8400 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8401 compiler_DEFAULT=$CC
8402
8403 # save warnings/boilerplate of simple test code
8404 ac_outfile=conftest.$ac_objext
8405 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8406 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8407 _lt_compiler_boilerplate=`cat conftest.err`
8408 $RM conftest*
8409
8410 ac_outfile=conftest.$ac_objext
8411 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8412 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8413 _lt_linker_boilerplate=`cat conftest.err`
8414 $RM -r conftest*
8415
8416
8417 if test -n "$compiler"; then
8418
8419 lt_prog_compiler_no_builtin_flag=
8420
8421 if test "$GCC" = yes; then
8422 case $cc_basename in
8423 nvcc*)
8424 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8425 *)
8426 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8427 esac
8428
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8430 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8431 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8432 $as_echo_n "(cached) " >&6
8433 else
8434 lt_cv_prog_compiler_rtti_exceptions=no
8435 ac_outfile=conftest.$ac_objext
8436 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8437 lt_compiler_flag="-fno-rtti -fno-exceptions"
8438 # Insert the option either (1) after the last *FLAGS variable, or
8439 # (2) before a word containing "conftest.", or (3) at the end.
8440 # Note that $ac_compile itself does not contain backslashes and begins
8441 # with a dollar sign (not a hyphen), so the echo should work correctly.
8442 # The option is referenced via a variable to avoid confusing sed.
8443 lt_compile=`echo "$ac_compile" | $SED \
8444 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8445 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8446 -e 's:$: $lt_compiler_flag:'`
8447 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8448 (eval "$lt_compile" 2>conftest.err)
8449 ac_status=$?
8450 cat conftest.err >&5
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 if (exit $ac_status) && test -s "$ac_outfile"; then
8453 # The compiler can only warn and ignore the option if not recognized
8454 # So say no if there are warnings other than the usual output.
8455 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8456 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8457 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8458 lt_cv_prog_compiler_rtti_exceptions=yes
8459 fi
8460 fi
8461 $RM conftest*
8462
8463 fi
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8465 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8466
8467 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8468 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8469 else
8470 :
8471 fi
8472
8473 fi
8474
8475
8476
8477
8478
8479
8480 lt_prog_compiler_wl=
8481 lt_prog_compiler_pic=
8482 lt_prog_compiler_static=
8483
8484
8485 if test "$GCC" = yes; then
8486 lt_prog_compiler_wl='-Wl,'
8487 lt_prog_compiler_static='-static'
8488
8489 case $host_os in
8490 aix*)
8491 # All AIX code is PIC.
8492 if test "$host_cpu" = ia64; then
8493 # AIX 5 now supports IA64 processor
8494 lt_prog_compiler_static='-Bstatic'
8495 fi
8496 ;;
8497
8498 amigaos*)
8499 case $host_cpu in
8500 powerpc)
8501 # see comment about AmigaOS4 .so support
8502 lt_prog_compiler_pic='-fPIC'
8503 ;;
8504 m68k)
8505 # FIXME: we need at least 68020 code to build shared libraries, but
8506 # adding the `-m68020' flag to GCC prevents building anything better,
8507 # like `-m68040'.
8508 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8509 ;;
8510 esac
8511 ;;
8512
8513 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8514 # PIC is the default for these OSes.
8515 ;;
8516
8517 mingw* | cygwin* | pw32* | os2* | cegcc*)
8518 # This hack is so that the source file can tell whether it is being
8519 # built for inclusion in a dll (and should export symbols for example).
8520 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8521 # (--disable-auto-import) libraries
8522 lt_prog_compiler_pic='-DDLL_EXPORT'
8523 ;;
8524
8525 darwin* | rhapsody*)
8526 # PIC is the default on this platform
8527 # Common symbols not allowed in MH_DYLIB files
8528 lt_prog_compiler_pic='-fno-common'
8529 ;;
8530
8531 haiku*)
8532 # PIC is the default for Haiku.
8533 # The "-static" flag exists, but is broken.
8534 lt_prog_compiler_static=
8535 ;;
8536
8537 hpux*)
8538 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8539 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8540 # sets the default TLS model and affects inlining.
8541 case $host_cpu in
8542 hppa*64*)
8543 # +Z the default
8544 ;;
8545 *)
8546 lt_prog_compiler_pic='-fPIC'
8547 ;;
8548 esac
8549 ;;
8550
8551 interix[3-9]*)
8552 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8553 # Instead, we relocate shared libraries at runtime.
8554 ;;
8555
8556 msdosdjgpp*)
8557 # Just because we use GCC doesn't mean we suddenly get shared libraries
8558 # on systems that don't support them.
8559 lt_prog_compiler_can_build_shared=no
8560 enable_shared=no
8561 ;;
8562
8563 *nto* | *qnx*)
8564 # QNX uses GNU C++, but need to define -shared option too, otherwise
8565 # it will coredump.
8566 lt_prog_compiler_pic='-fPIC -shared'
8567 ;;
8568
8569 sysv4*MP*)
8570 if test -d /usr/nec; then
8571 lt_prog_compiler_pic=-Kconform_pic
8572 fi
8573 ;;
8574
8575 *)
8576 lt_prog_compiler_pic='-fPIC'
8577 ;;
8578 esac
8579
8580 case $cc_basename in
8581 nvcc*) # Cuda Compiler Driver 2.2
8582 lt_prog_compiler_wl='-Xlinker '
8583 if test -n "$lt_prog_compiler_pic"; then
8584 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8585 fi
8586 ;;
8587 esac
8588 else
8589 # PORTME Check for flag to pass linker flags through the system compiler.
8590 case $host_os in
8591 aix*)
8592 lt_prog_compiler_wl='-Wl,'
8593 if test "$host_cpu" = ia64; then
8594 # AIX 5 now supports IA64 processor
8595 lt_prog_compiler_static='-Bstatic'
8596 else
8597 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8598 fi
8599 ;;
8600
8601 mingw* | cygwin* | pw32* | os2* | cegcc*)
8602 # This hack is so that the source file can tell whether it is being
8603 # built for inclusion in a dll (and should export symbols for example).
8604 lt_prog_compiler_pic='-DDLL_EXPORT'
8605 ;;
8606
8607 hpux9* | hpux10* | hpux11*)
8608 lt_prog_compiler_wl='-Wl,'
8609 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8610 # not for PA HP-UX.
8611 case $host_cpu in
8612 hppa*64*|ia64*)
8613 # +Z the default
8614 ;;
8615 *)
8616 lt_prog_compiler_pic='+Z'
8617 ;;
8618 esac
8619 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8620 lt_prog_compiler_static='${wl}-a ${wl}archive'
8621 ;;
8622
8623 irix5* | irix6* | nonstopux*)
8624 lt_prog_compiler_wl='-Wl,'
8625 # PIC (with -KPIC) is the default.
8626 lt_prog_compiler_static='-non_shared'
8627 ;;
8628
8629 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8630 case $cc_basename in
8631 # old Intel for x86_64 which still supported -KPIC.
8632 ecc*)
8633 lt_prog_compiler_wl='-Wl,'
8634 lt_prog_compiler_pic='-KPIC'
8635 lt_prog_compiler_static='-static'
8636 ;;
8637 # icc used to be incompatible with GCC.
8638 # ICC 10 doesn't accept -KPIC any more.
8639 icc* | ifort*)
8640 lt_prog_compiler_wl='-Wl,'
8641 lt_prog_compiler_pic='-fPIC'
8642 lt_prog_compiler_static='-static'
8643 ;;
8644 # Lahey Fortran 8.1.
8645 lf95*)
8646 lt_prog_compiler_wl='-Wl,'
8647 lt_prog_compiler_pic='--shared'
8648 lt_prog_compiler_static='--static'
8649 ;;
8650 nagfor*)
8651 # NAG Fortran compiler
8652 lt_prog_compiler_wl='-Wl,-Wl,,'
8653 lt_prog_compiler_pic='-PIC'
8654 lt_prog_compiler_static='-Bstatic'
8655 ;;
8656 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8657 # Portland Group compilers (*not* the Pentium gcc compiler,
8658 # which looks to be a dead project)
8659 lt_prog_compiler_wl='-Wl,'
8660 lt_prog_compiler_pic='-fpic'
8661 lt_prog_compiler_static='-Bstatic'
8662 ;;
8663 ccc*)
8664 lt_prog_compiler_wl='-Wl,'
8665 # All Alpha code is PIC.
8666 lt_prog_compiler_static='-non_shared'
8667 ;;
8668 xl* | bgxl* | bgf* | mpixl*)
8669 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8670 lt_prog_compiler_wl='-Wl,'
8671 lt_prog_compiler_pic='-qpic'
8672 lt_prog_compiler_static='-qstaticlink'
8673 ;;
8674 *)
8675 case `$CC -V 2>&1 | sed 5q` in
8676 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8677 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8678 lt_prog_compiler_pic='-KPIC'
8679 lt_prog_compiler_static='-Bstatic'
8680 lt_prog_compiler_wl=''
8681 ;;
8682 *Sun\ F* | *Sun*Fortran*)
8683 lt_prog_compiler_pic='-KPIC'
8684 lt_prog_compiler_static='-Bstatic'
8685 lt_prog_compiler_wl='-Qoption ld '
8686 ;;
8687 *Sun\ C*)
8688 # Sun C 5.9
8689 lt_prog_compiler_pic='-KPIC'
8690 lt_prog_compiler_static='-Bstatic'
8691 lt_prog_compiler_wl='-Wl,'
8692 ;;
8693 *Intel*\ [CF]*Compiler*)
8694 lt_prog_compiler_wl='-Wl,'
8695 lt_prog_compiler_pic='-fPIC'
8696 lt_prog_compiler_static='-static'
8697 ;;
8698 *Portland\ Group*)
8699 lt_prog_compiler_wl='-Wl,'
8700 lt_prog_compiler_pic='-fpic'
8701 lt_prog_compiler_static='-Bstatic'
8702 ;;
8703 esac
8704 ;;
8705 esac
8706 ;;
8707
8708 newsos6)
8709 lt_prog_compiler_pic='-KPIC'
8710 lt_prog_compiler_static='-Bstatic'
8711 ;;
8712
8713 *nto* | *qnx*)
8714 # QNX uses GNU C++, but need to define -shared option too, otherwise
8715 # it will coredump.
8716 lt_prog_compiler_pic='-fPIC -shared'
8717 ;;
8718
8719 osf3* | osf4* | osf5*)
8720 lt_prog_compiler_wl='-Wl,'
8721 # All OSF/1 code is PIC.
8722 lt_prog_compiler_static='-non_shared'
8723 ;;
8724
8725 rdos*)
8726 lt_prog_compiler_static='-non_shared'
8727 ;;
8728
8729 solaris*)
8730 lt_prog_compiler_pic='-KPIC'
8731 lt_prog_compiler_static='-Bstatic'
8732 case $cc_basename in
8733 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8734 lt_prog_compiler_wl='-Qoption ld ';;
8735 *)
8736 lt_prog_compiler_wl='-Wl,';;
8737 esac
8738 ;;
8739
8740 sunos4*)
8741 lt_prog_compiler_wl='-Qoption ld '
8742 lt_prog_compiler_pic='-PIC'
8743 lt_prog_compiler_static='-Bstatic'
8744 ;;
8745
8746 sysv4 | sysv4.2uw2* | sysv4.3*)
8747 lt_prog_compiler_wl='-Wl,'
8748 lt_prog_compiler_pic='-KPIC'
8749 lt_prog_compiler_static='-Bstatic'
8750 ;;
8751
8752 sysv4*MP*)
8753 if test -d /usr/nec ;then
8754 lt_prog_compiler_pic='-Kconform_pic'
8755 lt_prog_compiler_static='-Bstatic'
8756 fi
8757 ;;
8758
8759 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8760 lt_prog_compiler_wl='-Wl,'
8761 lt_prog_compiler_pic='-KPIC'
8762 lt_prog_compiler_static='-Bstatic'
8763 ;;
8764
8765 unicos*)
8766 lt_prog_compiler_wl='-Wl,'
8767 lt_prog_compiler_can_build_shared=no
8768 ;;
8769
8770 uts4*)
8771 lt_prog_compiler_pic='-pic'
8772 lt_prog_compiler_static='-Bstatic'
8773 ;;
8774
8775 *)
8776 lt_prog_compiler_can_build_shared=no
8777 ;;
8778 esac
8779 fi
8780
8781 case $host_os in
8782 # For platforms which do not support PIC, -DPIC is meaningless:
8783 *djgpp*)
8784 lt_prog_compiler_pic=
8785 ;;
8786 *)
8787 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8788 ;;
8789 esac
8790
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8792 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8793 if ${lt_cv_prog_compiler_pic+:} false; then :
8794 $as_echo_n "(cached) " >&6
8795 else
8796 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8797 fi
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8799 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8800 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8801
8802 #
8803 # Check to make sure the PIC flag actually works.
8804 #
8805 if test -n "$lt_prog_compiler_pic"; then
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8807 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8808 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8809 $as_echo_n "(cached) " >&6
8810 else
8811 lt_cv_prog_compiler_pic_works=no
8812 ac_outfile=conftest.$ac_objext
8813 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8814 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8815 # Insert the option either (1) after the last *FLAGS variable, or
8816 # (2) before a word containing "conftest.", or (3) at the end.
8817 # Note that $ac_compile itself does not contain backslashes and begins
8818 # with a dollar sign (not a hyphen), so the echo should work correctly.
8819 # The option is referenced via a variable to avoid confusing sed.
8820 lt_compile=`echo "$ac_compile" | $SED \
8821 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8822 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8823 -e 's:$: $lt_compiler_flag:'`
8824 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8825 (eval "$lt_compile" 2>conftest.err)
8826 ac_status=$?
8827 cat conftest.err >&5
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 if (exit $ac_status) && test -s "$ac_outfile"; then
8830 # The compiler can only warn and ignore the option if not recognized
8831 # So say no if there are warnings other than the usual output.
8832 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8833 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8834 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8835 lt_cv_prog_compiler_pic_works=yes
8836 fi
8837 fi
8838 $RM conftest*
8839
8840 fi
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8842 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8843
8844 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8845 case $lt_prog_compiler_pic in
8846 "" | " "*) ;;
8847 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8848 esac
8849 else
8850 lt_prog_compiler_pic=
8851 lt_prog_compiler_can_build_shared=no
8852 fi
8853
8854 fi
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866 #
8867 # Check to make sure the static flag actually works.
8868 #
8869 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8871 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8872 if ${lt_cv_prog_compiler_static_works+:} false; then :
8873 $as_echo_n "(cached) " >&6
8874 else
8875 lt_cv_prog_compiler_static_works=no
8876 save_LDFLAGS="$LDFLAGS"
8877 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8878 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8879 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8880 # The linker can only warn and ignore the option if not recognized
8881 # So say no if there are warnings
8882 if test -s conftest.err; then
8883 # Append any errors to the config.log.
8884 cat conftest.err 1>&5
8885 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8886 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8887 if diff conftest.exp conftest.er2 >/dev/null; then
8888 lt_cv_prog_compiler_static_works=yes
8889 fi
8890 else
8891 lt_cv_prog_compiler_static_works=yes
8892 fi
8893 fi
8894 $RM -r conftest*
8895 LDFLAGS="$save_LDFLAGS"
8896
8897 fi
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8899 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8900
8901 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8902 :
8903 else
8904 lt_prog_compiler_static=
8905 fi
8906
8907
8908
8909
8910
8911
8912
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8914 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8915 if ${lt_cv_prog_compiler_c_o+:} false; then :
8916 $as_echo_n "(cached) " >&6
8917 else
8918 lt_cv_prog_compiler_c_o=no
8919 $RM -r conftest 2>/dev/null
8920 mkdir conftest
8921 cd conftest
8922 mkdir out
8923 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8924
8925 lt_compiler_flag="-o out/conftest2.$ac_objext"
8926 # Insert the option either (1) after the last *FLAGS variable, or
8927 # (2) before a word containing "conftest.", or (3) at the end.
8928 # Note that $ac_compile itself does not contain backslashes and begins
8929 # with a dollar sign (not a hyphen), so the echo should work correctly.
8930 lt_compile=`echo "$ac_compile" | $SED \
8931 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8932 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8933 -e 's:$: $lt_compiler_flag:'`
8934 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8935 (eval "$lt_compile" 2>out/conftest.err)
8936 ac_status=$?
8937 cat out/conftest.err >&5
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8940 then
8941 # The compiler can only warn and ignore the option if not recognized
8942 # So say no if there are warnings
8943 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8944 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8945 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8946 lt_cv_prog_compiler_c_o=yes
8947 fi
8948 fi
8949 chmod u+w . 2>&5
8950 $RM conftest*
8951 # SGI C++ compiler will create directory out/ii_files/ for
8952 # template instantiation
8953 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8954 $RM out/* && rmdir out
8955 cd ..
8956 $RM -r conftest
8957 $RM conftest*
8958
8959 fi
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8961 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8962
8963
8964
8965
8966
8967
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8969 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8970 if ${lt_cv_prog_compiler_c_o+:} false; then :
8971 $as_echo_n "(cached) " >&6
8972 else
8973 lt_cv_prog_compiler_c_o=no
8974 $RM -r conftest 2>/dev/null
8975 mkdir conftest
8976 cd conftest
8977 mkdir out
8978 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8979
8980 lt_compiler_flag="-o out/conftest2.$ac_objext"
8981 # Insert the option either (1) after the last *FLAGS variable, or
8982 # (2) before a word containing "conftest.", or (3) at the end.
8983 # Note that $ac_compile itself does not contain backslashes and begins
8984 # with a dollar sign (not a hyphen), so the echo should work correctly.
8985 lt_compile=`echo "$ac_compile" | $SED \
8986 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8987 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8988 -e 's:$: $lt_compiler_flag:'`
8989 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8990 (eval "$lt_compile" 2>out/conftest.err)
8991 ac_status=$?
8992 cat out/conftest.err >&5
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8995 then
8996 # The compiler can only warn and ignore the option if not recognized
8997 # So say no if there are warnings
8998 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8999 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9000 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9001 lt_cv_prog_compiler_c_o=yes
9002 fi
9003 fi
9004 chmod u+w . 2>&5
9005 $RM conftest*
9006 # SGI C++ compiler will create directory out/ii_files/ for
9007 # template instantiation
9008 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9009 $RM out/* && rmdir out
9010 cd ..
9011 $RM -r conftest
9012 $RM conftest*
9013
9014 fi
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9016 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9017
9018
9019
9020
9021 hard_links="nottested"
9022 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9023 # do not overwrite the value of need_locks provided by the user
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9025 $as_echo_n "checking if we can lock with hard links... " >&6; }
9026 hard_links=yes
9027 $RM conftest*
9028 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9029 touch conftest.a
9030 ln conftest.a conftest.b 2>&5 || hard_links=no
9031 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9033 $as_echo "$hard_links" >&6; }
9034 if test "$hard_links" = no; then
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9036 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9037 need_locks=warn
9038 fi
9039 else
9040 need_locks=no
9041 fi
9042
9043
9044
9045
9046
9047
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9049 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9050
9051 runpath_var=
9052 allow_undefined_flag=
9053 always_export_symbols=no
9054 archive_cmds=
9055 archive_expsym_cmds=
9056 compiler_needs_object=no
9057 enable_shared_with_static_runtimes=no
9058 export_dynamic_flag_spec=
9059 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9060 hardcode_automatic=no
9061 hardcode_direct=no
9062 hardcode_direct_absolute=no
9063 hardcode_libdir_flag_spec=
9064 hardcode_libdir_separator=
9065 hardcode_minus_L=no
9066 hardcode_shlibpath_var=unsupported
9067 inherit_rpath=no
9068 link_all_deplibs=unknown
9069 module_cmds=
9070 module_expsym_cmds=
9071 old_archive_from_new_cmds=
9072 old_archive_from_expsyms_cmds=
9073 thread_safe_flag_spec=
9074 whole_archive_flag_spec=
9075 # include_expsyms should be a list of space-separated symbols to be *always*
9076 # included in the symbol list
9077 include_expsyms=
9078 # exclude_expsyms can be an extended regexp of symbols to exclude
9079 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9080 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9081 # as well as any symbol that contains `d'.
9082 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9083 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9084 # platforms (ab)use it in PIC code, but their linkers get confused if
9085 # the symbol is explicitly referenced. Since portable code cannot
9086 # rely on this symbol name, it's probably fine to never include it in
9087 # preloaded symbol tables.
9088 # Exclude shared library initialization/finalization symbols.
9089 extract_expsyms_cmds=
9090
9091 case $host_os in
9092 cygwin* | mingw* | pw32* | cegcc*)
9093 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9094 # When not using gcc, we currently assume that we are using
9095 # Microsoft Visual C++.
9096 if test "$GCC" != yes; then
9097 with_gnu_ld=no
9098 fi
9099 ;;
9100 interix*)
9101 # we just hope/assume this is gcc and not c89 (= MSVC++)
9102 with_gnu_ld=yes
9103 ;;
9104 openbsd*)
9105 with_gnu_ld=no
9106 ;;
9107 esac
9108
9109 ld_shlibs=yes
9110
9111 # On some targets, GNU ld is compatible enough with the native linker
9112 # that we're better off using the native interface for both.
9113 lt_use_gnu_ld_interface=no
9114 if test "$with_gnu_ld" = yes; then
9115 case $host_os in
9116 aix*)
9117 # The AIX port of GNU ld has always aspired to compatibility
9118 # with the native linker. However, as the warning in the GNU ld
9119 # block says, versions before 2.19.5* couldn't really create working
9120 # shared libraries, regardless of the interface used.
9121 case `$LD -v 2>&1` in
9122 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9123 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9124 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9125 *)
9126 lt_use_gnu_ld_interface=yes
9127 ;;
9128 esac
9129 ;;
9130 *)
9131 lt_use_gnu_ld_interface=yes
9132 ;;
9133 esac
9134 fi
9135
9136 if test "$lt_use_gnu_ld_interface" = yes; then
9137 # If archive_cmds runs LD, not CC, wlarc should be empty
9138 wlarc='${wl}'
9139
9140 # Set some defaults for GNU ld with shared library support. These
9141 # are reset later if shared libraries are not supported. Putting them
9142 # here allows them to be overridden if necessary.
9143 runpath_var=LD_RUN_PATH
9144 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9145 export_dynamic_flag_spec='${wl}--export-dynamic'
9146 # ancient GNU ld didn't support --whole-archive et. al.
9147 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9148 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9149 else
9150 whole_archive_flag_spec=
9151 fi
9152 supports_anon_versioning=no
9153 case `$LD -v 2>&1` in
9154 *GNU\ gold*) supports_anon_versioning=yes ;;
9155 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9156 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9157 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9158 *\ 2.11.*) ;; # other 2.11 versions
9159 *) supports_anon_versioning=yes ;;
9160 esac
9161
9162 # See if GNU ld supports shared libraries.
9163 case $host_os in
9164 aix[3-9]*)
9165 # On AIX/PPC, the GNU linker is very broken
9166 if test "$host_cpu" != ia64; then
9167 ld_shlibs=no
9168 cat <<_LT_EOF 1>&2
9169
9170 *** Warning: the GNU linker, at least up to release 2.19, is reported
9171 *** to be unable to reliably create shared libraries on AIX.
9172 *** Therefore, libtool is disabling shared libraries support. If you
9173 *** really care for shared libraries, you may want to install binutils
9174 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9175 *** You will then need to restart the configuration process.
9176
9177 _LT_EOF
9178 fi
9179 ;;
9180
9181 amigaos*)
9182 case $host_cpu in
9183 powerpc)
9184 # see comment about AmigaOS4 .so support
9185 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9186 archive_expsym_cmds=''
9187 ;;
9188 m68k)
9189 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)'
9190 hardcode_libdir_flag_spec='-L$libdir'
9191 hardcode_minus_L=yes
9192 ;;
9193 esac
9194 ;;
9195
9196 beos*)
9197 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9198 allow_undefined_flag=unsupported
9199 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9200 # support --undefined. This deserves some investigation. FIXME
9201 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9202 else
9203 ld_shlibs=no
9204 fi
9205 ;;
9206
9207 cygwin* | mingw* | pw32* | cegcc*)
9208 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9209 # as there is no search path for DLLs.
9210 hardcode_libdir_flag_spec='-L$libdir'
9211 export_dynamic_flag_spec='${wl}--export-all-symbols'
9212 allow_undefined_flag=unsupported
9213 always_export_symbols=no
9214 enable_shared_with_static_runtimes=yes
9215 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'
9216 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9217
9218 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9219 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9220 # If the export-symbols file already is a .def file (1st line
9221 # is EXPORTS), use it as is; otherwise, prepend...
9222 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9223 cp $export_symbols $output_objdir/$soname.def;
9224 else
9225 echo EXPORTS > $output_objdir/$soname.def;
9226 cat $export_symbols >> $output_objdir/$soname.def;
9227 fi~
9228 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9229 else
9230 ld_shlibs=no
9231 fi
9232 ;;
9233
9234 haiku*)
9235 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9236 link_all_deplibs=yes
9237 ;;
9238
9239 interix[3-9]*)
9240 hardcode_direct=no
9241 hardcode_shlibpath_var=no
9242 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9243 export_dynamic_flag_spec='${wl}-E'
9244 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9245 # Instead, shared libraries are loaded at an image base (0x10000000 by
9246 # default) and relocated if they conflict, which is a slow very memory
9247 # consuming and fragmenting process. To avoid this, we pick a random,
9248 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9249 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9250 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9251 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'
9252 ;;
9253
9254 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9255 tmp_diet=no
9256 if test "$host_os" = linux-dietlibc; then
9257 case $cc_basename in
9258 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9259 esac
9260 fi
9261 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9262 && test "$tmp_diet" = no
9263 then
9264 tmp_addflag=' $pic_flag'
9265 tmp_sharedflag='-shared'
9266 case $cc_basename,$host_cpu in
9267 pgcc*) # Portland Group C compiler
9268 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'
9269 tmp_addflag=' $pic_flag'
9270 ;;
9271 pgf77* | pgf90* | pgf95* | pgfortran*)
9272 # Portland Group f77 and f90 compilers
9273 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'
9274 tmp_addflag=' $pic_flag -Mnomain' ;;
9275 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9276 tmp_addflag=' -i_dynamic' ;;
9277 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9278 tmp_addflag=' -i_dynamic -nofor_main' ;;
9279 ifc* | ifort*) # Intel Fortran compiler
9280 tmp_addflag=' -nofor_main' ;;
9281 lf95*) # Lahey Fortran 8.1
9282 whole_archive_flag_spec=
9283 tmp_sharedflag='--shared' ;;
9284 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9285 tmp_sharedflag='-qmkshrobj'
9286 tmp_addflag= ;;
9287 nvcc*) # Cuda Compiler Driver 2.2
9288 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'
9289 compiler_needs_object=yes
9290 ;;
9291 esac
9292 case `$CC -V 2>&1 | sed 5q` in
9293 *Sun\ C*) # Sun C 5.9
9294 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'
9295 compiler_needs_object=yes
9296 tmp_sharedflag='-G' ;;
9297 *Sun\ F*) # Sun Fortran 8.3
9298 tmp_sharedflag='-G' ;;
9299 esac
9300 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9301
9302 if test "x$supports_anon_versioning" = xyes; then
9303 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9304 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9305 echo "local: *; };" >> $output_objdir/$libname.ver~
9306 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9307 fi
9308
9309 case $cc_basename in
9310 xlf* | bgf* | bgxlf* | mpixlf*)
9311 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9312 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9313 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9314 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9315 if test "x$supports_anon_versioning" = xyes; then
9316 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9317 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9318 echo "local: *; };" >> $output_objdir/$libname.ver~
9319 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9320 fi
9321 ;;
9322 esac
9323 else
9324 ld_shlibs=no
9325 fi
9326 ;;
9327
9328 netbsd*)
9329 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9330 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9331 wlarc=
9332 else
9333 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9334 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9335 fi
9336 ;;
9337
9338 solaris*)
9339 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9340 ld_shlibs=no
9341 cat <<_LT_EOF 1>&2
9342
9343 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9344 *** create shared libraries on Solaris systems. Therefore, libtool
9345 *** is disabling shared libraries support. We urge you to upgrade GNU
9346 *** binutils to release 2.9.1 or newer. Another option is to modify
9347 *** your PATH or compiler configuration so that the native linker is
9348 *** used, and then restart.
9349
9350 _LT_EOF
9351 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9352 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9353 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9354 else
9355 ld_shlibs=no
9356 fi
9357 ;;
9358
9359 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9360 case `$LD -v 2>&1` in
9361 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9362 ld_shlibs=no
9363 cat <<_LT_EOF 1>&2
9364
9365 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9366 *** reliably create shared libraries on SCO systems. Therefore, libtool
9367 *** is disabling shared libraries support. We urge you to upgrade GNU
9368 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9369 *** your PATH or compiler configuration so that the native linker is
9370 *** used, and then restart.
9371
9372 _LT_EOF
9373 ;;
9374 *)
9375 # For security reasons, it is highly recommended that you always
9376 # use absolute paths for naming shared libraries, and exclude the
9377 # DT_RUNPATH tag from executables and libraries. But doing so
9378 # requires that you compile everything twice, which is a pain.
9379 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9380 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9381 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9382 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9383 else
9384 ld_shlibs=no
9385 fi
9386 ;;
9387 esac
9388 ;;
9389
9390 sunos4*)
9391 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9392 wlarc=
9393 hardcode_direct=yes
9394 hardcode_shlibpath_var=no
9395 ;;
9396
9397 *)
9398 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9399 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9400 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9401 else
9402 ld_shlibs=no
9403 fi
9404 ;;
9405 esac
9406
9407 if test "$ld_shlibs" = no; then
9408 runpath_var=
9409 hardcode_libdir_flag_spec=
9410 export_dynamic_flag_spec=
9411 whole_archive_flag_spec=
9412 fi
9413 else
9414 # PORTME fill in a description of your system's linker (not GNU ld)
9415 case $host_os in
9416 aix3*)
9417 allow_undefined_flag=unsupported
9418 always_export_symbols=yes
9419 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'
9420 # Note: this linker hardcodes the directories in LIBPATH if there
9421 # are no directories specified by -L.
9422 hardcode_minus_L=yes
9423 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9424 # Neither direct hardcoding nor static linking is supported with a
9425 # broken collect2.
9426 hardcode_direct=unsupported
9427 fi
9428 ;;
9429
9430 aix[4-9]*)
9431 if test "$host_cpu" = ia64; then
9432 # On IA64, the linker does run time linking by default, so we don't
9433 # have to do anything special.
9434 aix_use_runtimelinking=no
9435 exp_sym_flag='-Bexport'
9436 no_entry_flag=""
9437 else
9438 # If we're using GNU nm, then we don't want the "-C" option.
9439 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9440 # Also, AIX nm treats weak defined symbols like other global
9441 # defined symbols, whereas GNU nm marks them as "W".
9442 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9443 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'
9444 else
9445 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'
9446 fi
9447 aix_use_runtimelinking=no
9448
9449 # Test if we are trying to use run time linking or normal
9450 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9451 # need to do runtime linking.
9452 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9453 for ld_flag in $LDFLAGS; do
9454 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9455 aix_use_runtimelinking=yes
9456 break
9457 fi
9458 done
9459 ;;
9460 esac
9461
9462 exp_sym_flag='-bexport'
9463 no_entry_flag='-bnoentry'
9464 fi
9465
9466 # When large executables or shared objects are built, AIX ld can
9467 # have problems creating the table of contents. If linking a library
9468 # or program results in "error TOC overflow" add -mminimal-toc to
9469 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9470 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9471
9472 archive_cmds=''
9473 hardcode_direct=yes
9474 hardcode_direct_absolute=yes
9475 hardcode_libdir_separator=':'
9476 link_all_deplibs=yes
9477 file_list_spec='${wl}-f,'
9478
9479 if test "$GCC" = yes; then
9480 case $host_os in aix4.[012]|aix4.[012].*)
9481 # We only want to do this on AIX 4.2 and lower, the check
9482 # below for broken collect2 doesn't work under 4.3+
9483 collect2name=`${CC} -print-prog-name=collect2`
9484 if test -f "$collect2name" &&
9485 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9486 then
9487 # We have reworked collect2
9488 :
9489 else
9490 # We have old collect2
9491 hardcode_direct=unsupported
9492 # It fails to find uninstalled libraries when the uninstalled
9493 # path is not listed in the libpath. Setting hardcode_minus_L
9494 # to unsupported forces relinking
9495 hardcode_minus_L=yes
9496 hardcode_libdir_flag_spec='-L$libdir'
9497 hardcode_libdir_separator=
9498 fi
9499 ;;
9500 esac
9501 shared_flag='-shared'
9502 if test "$aix_use_runtimelinking" = yes; then
9503 shared_flag="$shared_flag "'${wl}-G'
9504 fi
9505 else
9506 # not using gcc
9507 if test "$host_cpu" = ia64; then
9508 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9509 # chokes on -Wl,-G. The following line is correct:
9510 shared_flag='-G'
9511 else
9512 if test "$aix_use_runtimelinking" = yes; then
9513 shared_flag='${wl}-G'
9514 else
9515 shared_flag='${wl}-bM:SRE'
9516 fi
9517 fi
9518 fi
9519
9520 export_dynamic_flag_spec='${wl}-bexpall'
9521 # It seems that -bexpall does not export symbols beginning with
9522 # underscore (_), so it is better to generate a list of symbols to export.
9523 always_export_symbols=yes
9524 if test "$aix_use_runtimelinking" = yes; then
9525 # Warning - without using the other runtime loading flags (-brtl),
9526 # -berok will link without error, but may produce a broken library.
9527 allow_undefined_flag='-berok'
9528 # Determine the default libpath from the value encoded in an
9529 # empty executable.
9530 if test "${lt_cv_aix_libpath+set}" = set; then
9531 aix_libpath=$lt_cv_aix_libpath
9532 else
9533 if ${lt_cv_aix_libpath_+:} false; then :
9534 $as_echo_n "(cached) " >&6
9535 else
9536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9537 /* end confdefs.h. */
9538
9539 int
9540 main ()
9541 {
9542
9543 ;
9544 return 0;
9545 }
9546 _ACEOF
9547 if ac_fn_c_try_link "$LINENO"; then :
9548
9549 lt_aix_libpath_sed='
9550 /Import File Strings/,/^$/ {
9551 /^0/ {
9552 s/^0 *\([^ ]*\) *$/\1/
9553 p
9554 }
9555 }'
9556 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9557 # Check for a 64-bit object if we didn't find anything.
9558 if test -z "$lt_cv_aix_libpath_"; then
9559 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9560 fi
9561 fi
9562 rm -f core conftest.err conftest.$ac_objext \
9563 conftest$ac_exeext conftest.$ac_ext
9564 if test -z "$lt_cv_aix_libpath_"; then
9565 lt_cv_aix_libpath_="/usr/lib:/lib"
9566 fi
9567
9568 fi
9569
9570 aix_libpath=$lt_cv_aix_libpath_
9571 fi
9572
9573 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9574 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"
9575 else
9576 if test "$host_cpu" = ia64; then
9577 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9578 allow_undefined_flag="-z nodefs"
9579 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"
9580 else
9581 # Determine the default libpath from the value encoded in an
9582 # empty executable.
9583 if test "${lt_cv_aix_libpath+set}" = set; then
9584 aix_libpath=$lt_cv_aix_libpath
9585 else
9586 if ${lt_cv_aix_libpath_+:} false; then :
9587 $as_echo_n "(cached) " >&6
9588 else
9589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9590 /* end confdefs.h. */
9591
9592 int
9593 main ()
9594 {
9595
9596 ;
9597 return 0;
9598 }
9599 _ACEOF
9600 if ac_fn_c_try_link "$LINENO"; then :
9601
9602 lt_aix_libpath_sed='
9603 /Import File Strings/,/^$/ {
9604 /^0/ {
9605 s/^0 *\([^ ]*\) *$/\1/
9606 p
9607 }
9608 }'
9609 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9610 # Check for a 64-bit object if we didn't find anything.
9611 if test -z "$lt_cv_aix_libpath_"; then
9612 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9613 fi
9614 fi
9615 rm -f core conftest.err conftest.$ac_objext \
9616 conftest$ac_exeext conftest.$ac_ext
9617 if test -z "$lt_cv_aix_libpath_"; then
9618 lt_cv_aix_libpath_="/usr/lib:/lib"
9619 fi
9620
9621 fi
9622
9623 aix_libpath=$lt_cv_aix_libpath_
9624 fi
9625
9626 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9627 # Warning - without using the other run time loading flags,
9628 # -berok will link without error, but may produce a broken library.
9629 no_undefined_flag=' ${wl}-bernotok'
9630 allow_undefined_flag=' ${wl}-berok'
9631 if test "$with_gnu_ld" = yes; then
9632 # We only use this code for GNU lds that support --whole-archive.
9633 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9634 else
9635 # Exported symbols can be pulled into shared objects from archives
9636 whole_archive_flag_spec='$convenience'
9637 fi
9638 archive_cmds_need_lc=yes
9639 # This is similar to how AIX traditionally builds its shared libraries.
9640 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'
9641 fi
9642 fi
9643 ;;
9644
9645 amigaos*)
9646 case $host_cpu in
9647 powerpc)
9648 # see comment about AmigaOS4 .so support
9649 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9650 archive_expsym_cmds=''
9651 ;;
9652 m68k)
9653 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)'
9654 hardcode_libdir_flag_spec='-L$libdir'
9655 hardcode_minus_L=yes
9656 ;;
9657 esac
9658 ;;
9659
9660 bsdi[45]*)
9661 export_dynamic_flag_spec=-rdynamic
9662 ;;
9663
9664 cygwin* | mingw* | pw32* | cegcc*)
9665 # When not using gcc, we currently assume that we are using
9666 # Microsoft Visual C++.
9667 # hardcode_libdir_flag_spec is actually meaningless, as there is
9668 # no search path for DLLs.
9669 case $cc_basename in
9670 cl*)
9671 # Native MSVC
9672 hardcode_libdir_flag_spec=' '
9673 allow_undefined_flag=unsupported
9674 always_export_symbols=yes
9675 file_list_spec='@'
9676 # Tell ltmain to make .lib files, not .a files.
9677 libext=lib
9678 # Tell ltmain to make .dll files, not .so files.
9679 shrext_cmds=".dll"
9680 # FIXME: Setting linknames here is a bad hack.
9681 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9682 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9683 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9684 else
9685 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9686 fi~
9687 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9688 linknames='
9689 # The linker will not automatically build a static lib if we build a DLL.
9690 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9691 enable_shared_with_static_runtimes=yes
9692 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9693 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9694 # Don't use ranlib
9695 old_postinstall_cmds='chmod 644 $oldlib'
9696 postlink_cmds='lt_outputfile="@OUTPUT@"~
9697 lt_tool_outputfile="@TOOL_OUTPUT@"~
9698 case $lt_outputfile in
9699 *.exe|*.EXE) ;;
9700 *)
9701 lt_outputfile="$lt_outputfile.exe"
9702 lt_tool_outputfile="$lt_tool_outputfile.exe"
9703 ;;
9704 esac~
9705 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9706 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9707 $RM "$lt_outputfile.manifest";
9708 fi'
9709 ;;
9710 *)
9711 # Assume MSVC wrapper
9712 hardcode_libdir_flag_spec=' '
9713 allow_undefined_flag=unsupported
9714 # Tell ltmain to make .lib files, not .a files.
9715 libext=lib
9716 # Tell ltmain to make .dll files, not .so files.
9717 shrext_cmds=".dll"
9718 # FIXME: Setting linknames here is a bad hack.
9719 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9720 # The linker will automatically build a .lib file if we build a DLL.
9721 old_archive_from_new_cmds='true'
9722 # FIXME: Should let the user specify the lib program.
9723 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9724 enable_shared_with_static_runtimes=yes
9725 ;;
9726 esac
9727 ;;
9728
9729 darwin* | rhapsody*)
9730
9731
9732 archive_cmds_need_lc=no
9733 hardcode_direct=no
9734 hardcode_automatic=yes
9735 hardcode_shlibpath_var=unsupported
9736 if test "$lt_cv_ld_force_load" = "yes"; then
9737 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\"`'
9738
9739 else
9740 whole_archive_flag_spec=''
9741 fi
9742 link_all_deplibs=yes
9743 allow_undefined_flag="$_lt_dar_allow_undefined"
9744 case $cc_basename in
9745 ifort*) _lt_dar_can_shared=yes ;;
9746 *) _lt_dar_can_shared=$GCC ;;
9747 esac
9748 if test "$_lt_dar_can_shared" = "yes"; then
9749 output_verbose_link_cmd=func_echo_all
9750 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9751 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9752 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}"
9753 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}"
9754
9755 else
9756 ld_shlibs=no
9757 fi
9758
9759 ;;
9760
9761 dgux*)
9762 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9763 hardcode_libdir_flag_spec='-L$libdir'
9764 hardcode_shlibpath_var=no
9765 ;;
9766
9767 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9768 # support. Future versions do this automatically, but an explicit c++rt0.o
9769 # does not break anything, and helps significantly (at the cost of a little
9770 # extra space).
9771 freebsd2.2*)
9772 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9773 hardcode_libdir_flag_spec='-R$libdir'
9774 hardcode_direct=yes
9775 hardcode_shlibpath_var=no
9776 ;;
9777
9778 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9779 freebsd2.*)
9780 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9781 hardcode_direct=yes
9782 hardcode_minus_L=yes
9783 hardcode_shlibpath_var=no
9784 ;;
9785
9786 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9787 freebsd* | dragonfly*)
9788 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9789 hardcode_libdir_flag_spec='-R$libdir'
9790 hardcode_direct=yes
9791 hardcode_shlibpath_var=no
9792 ;;
9793
9794 hpux9*)
9795 if test "$GCC" = yes; then
9796 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'
9797 else
9798 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'
9799 fi
9800 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9801 hardcode_libdir_separator=:
9802 hardcode_direct=yes
9803
9804 # hardcode_minus_L: Not really in the search PATH,
9805 # but as the default location of the library.
9806 hardcode_minus_L=yes
9807 export_dynamic_flag_spec='${wl}-E'
9808 ;;
9809
9810 hpux10*)
9811 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9812 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9813 else
9814 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9815 fi
9816 if test "$with_gnu_ld" = no; then
9817 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9818 hardcode_libdir_separator=:
9819 hardcode_direct=yes
9820 hardcode_direct_absolute=yes
9821 export_dynamic_flag_spec='${wl}-E'
9822 # hardcode_minus_L: Not really in the search PATH,
9823 # but as the default location of the library.
9824 hardcode_minus_L=yes
9825 fi
9826 ;;
9827
9828 hpux11*)
9829 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9830 case $host_cpu in
9831 hppa*64*)
9832 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9833 ;;
9834 ia64*)
9835 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9836 ;;
9837 *)
9838 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9839 ;;
9840 esac
9841 else
9842 case $host_cpu in
9843 hppa*64*)
9844 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9845 ;;
9846 ia64*)
9847 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9848 ;;
9849 *)
9850
9851 # Older versions of the 11.00 compiler do not understand -b yet
9852 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9854 $as_echo_n "checking if $CC understands -b... " >&6; }
9855 if ${lt_cv_prog_compiler__b+:} false; then :
9856 $as_echo_n "(cached) " >&6
9857 else
9858 lt_cv_prog_compiler__b=no
9859 save_LDFLAGS="$LDFLAGS"
9860 LDFLAGS="$LDFLAGS -b"
9861 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9862 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9863 # The linker can only warn and ignore the option if not recognized
9864 # So say no if there are warnings
9865 if test -s conftest.err; then
9866 # Append any errors to the config.log.
9867 cat conftest.err 1>&5
9868 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9869 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9870 if diff conftest.exp conftest.er2 >/dev/null; then
9871 lt_cv_prog_compiler__b=yes
9872 fi
9873 else
9874 lt_cv_prog_compiler__b=yes
9875 fi
9876 fi
9877 $RM -r conftest*
9878 LDFLAGS="$save_LDFLAGS"
9879
9880 fi
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9882 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9883
9884 if test x"$lt_cv_prog_compiler__b" = xyes; then
9885 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9886 else
9887 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9888 fi
9889
9890 ;;
9891 esac
9892 fi
9893 if test "$with_gnu_ld" = no; then
9894 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9895 hardcode_libdir_separator=:
9896
9897 case $host_cpu in
9898 hppa*64*|ia64*)
9899 hardcode_direct=no
9900 hardcode_shlibpath_var=no
9901 ;;
9902 *)
9903 hardcode_direct=yes
9904 hardcode_direct_absolute=yes
9905 export_dynamic_flag_spec='${wl}-E'
9906
9907 # hardcode_minus_L: Not really in the search PATH,
9908 # but as the default location of the library.
9909 hardcode_minus_L=yes
9910 ;;
9911 esac
9912 fi
9913 ;;
9914
9915 irix5* | irix6* | nonstopux*)
9916 if test "$GCC" = yes; then
9917 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'
9918 # Try to use the -exported_symbol ld option, if it does not
9919 # work, assume that -exports_file does not work either and
9920 # implicitly export all symbols.
9921 # This should be the same for all languages, so no per-tag cache variable.
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9923 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9924 if ${lt_cv_irix_exported_symbol+:} false; then :
9925 $as_echo_n "(cached) " >&6
9926 else
9927 save_LDFLAGS="$LDFLAGS"
9928 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9930 /* end confdefs.h. */
9931 int foo (void) { return 0; }
9932 _ACEOF
9933 if ac_fn_c_try_link "$LINENO"; then :
9934 lt_cv_irix_exported_symbol=yes
9935 else
9936 lt_cv_irix_exported_symbol=no
9937 fi
9938 rm -f core conftest.err conftest.$ac_objext \
9939 conftest$ac_exeext conftest.$ac_ext
9940 LDFLAGS="$save_LDFLAGS"
9941 fi
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9943 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9944 if test "$lt_cv_irix_exported_symbol" = yes; then
9945 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'
9946 fi
9947 else
9948 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'
9949 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'
9950 fi
9951 archive_cmds_need_lc='no'
9952 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9953 hardcode_libdir_separator=:
9954 inherit_rpath=yes
9955 link_all_deplibs=yes
9956 ;;
9957
9958 netbsd*)
9959 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9960 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9961 else
9962 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9963 fi
9964 hardcode_libdir_flag_spec='-R$libdir'
9965 hardcode_direct=yes
9966 hardcode_shlibpath_var=no
9967 ;;
9968
9969 newsos6)
9970 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9971 hardcode_direct=yes
9972 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9973 hardcode_libdir_separator=:
9974 hardcode_shlibpath_var=no
9975 ;;
9976
9977 *nto* | *qnx*)
9978 ;;
9979
9980 openbsd*)
9981 if test -f /usr/libexec/ld.so; then
9982 hardcode_direct=yes
9983 hardcode_shlibpath_var=no
9984 hardcode_direct_absolute=yes
9985 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9986 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9987 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9988 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9989 export_dynamic_flag_spec='${wl}-E'
9990 else
9991 case $host_os in
9992 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9993 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9994 hardcode_libdir_flag_spec='-R$libdir'
9995 ;;
9996 *)
9997 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9998 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9999 ;;
10000 esac
10001 fi
10002 else
10003 ld_shlibs=no
10004 fi
10005 ;;
10006
10007 os2*)
10008 hardcode_libdir_flag_spec='-L$libdir'
10009 hardcode_minus_L=yes
10010 allow_undefined_flag=unsupported
10011 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'
10012 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10013 ;;
10014
10015 osf3*)
10016 if test "$GCC" = yes; then
10017 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10018 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'
10019 else
10020 allow_undefined_flag=' -expect_unresolved \*'
10021 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'
10022 fi
10023 archive_cmds_need_lc='no'
10024 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10025 hardcode_libdir_separator=:
10026 ;;
10027
10028 osf4* | osf5*) # as osf3* with the addition of -msym flag
10029 if test "$GCC" = yes; then
10030 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10031 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'
10032 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10033 else
10034 allow_undefined_flag=' -expect_unresolved \*'
10035 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'
10036 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~
10037 $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'
10038
10039 # Both c and cxx compiler support -rpath directly
10040 hardcode_libdir_flag_spec='-rpath $libdir'
10041 fi
10042 archive_cmds_need_lc='no'
10043 hardcode_libdir_separator=:
10044 ;;
10045
10046 solaris*)
10047 no_undefined_flag=' -z defs'
10048 if test "$GCC" = yes; then
10049 wlarc='${wl}'
10050 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10051 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10052 $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'
10053 else
10054 case `$CC -V 2>&1` in
10055 *"Compilers 5.0"*)
10056 wlarc=''
10057 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10058 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10059 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10060 ;;
10061 *)
10062 wlarc='${wl}'
10063 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10064 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10065 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10066 ;;
10067 esac
10068 fi
10069 hardcode_libdir_flag_spec='-R$libdir'
10070 hardcode_shlibpath_var=no
10071 case $host_os in
10072 solaris2.[0-5] | solaris2.[0-5].*) ;;
10073 *)
10074 # The compiler driver will combine and reorder linker options,
10075 # but understands `-z linker_flag'. GCC discards it without `$wl',
10076 # but is careful enough not to reorder.
10077 # Supported since Solaris 2.6 (maybe 2.5.1?)
10078 if test "$GCC" = yes; then
10079 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10080 else
10081 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10082 fi
10083 ;;
10084 esac
10085 link_all_deplibs=yes
10086 ;;
10087
10088 sunos4*)
10089 if test "x$host_vendor" = xsequent; then
10090 # Use $CC to link under sequent, because it throws in some extra .o
10091 # files that make .init and .fini sections work.
10092 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10093 else
10094 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10095 fi
10096 hardcode_libdir_flag_spec='-L$libdir'
10097 hardcode_direct=yes
10098 hardcode_minus_L=yes
10099 hardcode_shlibpath_var=no
10100 ;;
10101
10102 sysv4)
10103 case $host_vendor in
10104 sni)
10105 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10106 hardcode_direct=yes # is this really true???
10107 ;;
10108 siemens)
10109 ## LD is ld it makes a PLAMLIB
10110 ## CC just makes a GrossModule.
10111 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10112 reload_cmds='$CC -r -o $output$reload_objs'
10113 hardcode_direct=no
10114 ;;
10115 motorola)
10116 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10117 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10118 ;;
10119 esac
10120 runpath_var='LD_RUN_PATH'
10121 hardcode_shlibpath_var=no
10122 ;;
10123
10124 sysv4.3*)
10125 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10126 hardcode_shlibpath_var=no
10127 export_dynamic_flag_spec='-Bexport'
10128 ;;
10129
10130 sysv4*MP*)
10131 if test -d /usr/nec; then
10132 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10133 hardcode_shlibpath_var=no
10134 runpath_var=LD_RUN_PATH
10135 hardcode_runpath_var=yes
10136 ld_shlibs=yes
10137 fi
10138 ;;
10139
10140 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10141 no_undefined_flag='${wl}-z,text'
10142 archive_cmds_need_lc=no
10143 hardcode_shlibpath_var=no
10144 runpath_var='LD_RUN_PATH'
10145
10146 if test "$GCC" = yes; then
10147 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10148 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10149 else
10150 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10151 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10152 fi
10153 ;;
10154
10155 sysv5* | sco3.2v5* | sco5v6*)
10156 # Note: We can NOT use -z defs as we might desire, because we do not
10157 # link with -lc, and that would cause any symbols used from libc to
10158 # always be unresolved, which means just about no library would
10159 # ever link correctly. If we're not using GNU ld we use -z text
10160 # though, which does catch some bad symbols but isn't as heavy-handed
10161 # as -z defs.
10162 no_undefined_flag='${wl}-z,text'
10163 allow_undefined_flag='${wl}-z,nodefs'
10164 archive_cmds_need_lc=no
10165 hardcode_shlibpath_var=no
10166 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10167 hardcode_libdir_separator=':'
10168 link_all_deplibs=yes
10169 export_dynamic_flag_spec='${wl}-Bexport'
10170 runpath_var='LD_RUN_PATH'
10171
10172 if test "$GCC" = yes; then
10173 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10174 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10175 else
10176 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10177 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10178 fi
10179 ;;
10180
10181 uts4*)
10182 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10183 hardcode_libdir_flag_spec='-L$libdir'
10184 hardcode_shlibpath_var=no
10185 ;;
10186
10187 *)
10188 ld_shlibs=no
10189 ;;
10190 esac
10191
10192 if test x$host_vendor = xsni; then
10193 case $host in
10194 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10195 export_dynamic_flag_spec='${wl}-Blargedynsym'
10196 ;;
10197 esac
10198 fi
10199 fi
10200
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10202 $as_echo "$ld_shlibs" >&6; }
10203 test "$ld_shlibs" = no && can_build_shared=no
10204
10205 with_gnu_ld=$with_gnu_ld
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221 #
10222 # Do we need to explicitly link libc?
10223 #
10224 case "x$archive_cmds_need_lc" in
10225 x|xyes)
10226 # Assume -lc should be added
10227 archive_cmds_need_lc=yes
10228
10229 if test "$enable_shared" = yes && test "$GCC" = yes; then
10230 case $archive_cmds in
10231 *'~'*)
10232 # FIXME: we may have to deal with multi-command sequences.
10233 ;;
10234 '$CC '*)
10235 # Test whether the compiler implicitly links with -lc since on some
10236 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10237 # to ld, don't add -lc before -lgcc.
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10239 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10240 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10241 $as_echo_n "(cached) " >&6
10242 else
10243 $RM conftest*
10244 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10245
10246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10247 (eval $ac_compile) 2>&5
10248 ac_status=$?
10249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10250 test $ac_status = 0; } 2>conftest.err; then
10251 soname=conftest
10252 lib=conftest
10253 libobjs=conftest.$ac_objext
10254 deplibs=
10255 wl=$lt_prog_compiler_wl
10256 pic_flag=$lt_prog_compiler_pic
10257 compiler_flags=-v
10258 linker_flags=-v
10259 verstring=
10260 output_objdir=.
10261 libname=conftest
10262 lt_save_allow_undefined_flag=$allow_undefined_flag
10263 allow_undefined_flag=
10264 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10265 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10266 ac_status=$?
10267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10268 test $ac_status = 0; }
10269 then
10270 lt_cv_archive_cmds_need_lc=no
10271 else
10272 lt_cv_archive_cmds_need_lc=yes
10273 fi
10274 allow_undefined_flag=$lt_save_allow_undefined_flag
10275 else
10276 cat conftest.err 1>&5
10277 fi
10278 $RM conftest*
10279
10280 fi
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10282 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10283 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10284 ;;
10285 esac
10286 fi
10287 ;;
10288 esac
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10442 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10443
10444 if test "$GCC" = yes; then
10445 case $host_os in
10446 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10447 *) lt_awk_arg="/^libraries:/" ;;
10448 esac
10449 case $host_os in
10450 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10451 *) lt_sed_strip_eq="s,=/,/,g" ;;
10452 esac
10453 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10454 case $lt_search_path_spec in
10455 *\;*)
10456 # if the path contains ";" then we assume it to be the separator
10457 # otherwise default to the standard path separator (i.e. ":") - it is
10458 # assumed that no part of a normal pathname contains ";" but that should
10459 # okay in the real world where ";" in dirpaths is itself problematic.
10460 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10461 ;;
10462 *)
10463 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10464 ;;
10465 esac
10466 # Ok, now we have the path, separated by spaces, we can step through it
10467 # and add multilib dir if necessary.
10468 lt_tmp_lt_search_path_spec=
10469 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10470 for lt_sys_path in $lt_search_path_spec; do
10471 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10472 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10473 else
10474 test -d "$lt_sys_path" && \
10475 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10476 fi
10477 done
10478 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10479 BEGIN {RS=" "; FS="/|\n";} {
10480 lt_foo="";
10481 lt_count=0;
10482 for (lt_i = NF; lt_i > 0; lt_i--) {
10483 if ($lt_i != "" && $lt_i != ".") {
10484 if ($lt_i == "..") {
10485 lt_count++;
10486 } else {
10487 if (lt_count == 0) {
10488 lt_foo="/" $lt_i lt_foo;
10489 } else {
10490 lt_count--;
10491 }
10492 }
10493 }
10494 }
10495 if (lt_foo != "") { lt_freq[lt_foo]++; }
10496 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10497 }'`
10498 # AWK program above erroneously prepends '/' to C:/dos/paths
10499 # for these hosts.
10500 case $host_os in
10501 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10502 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10503 esac
10504 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10505 else
10506 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10507 fi
10508 library_names_spec=
10509 libname_spec='lib$name'
10510 soname_spec=
10511 shrext_cmds=".so"
10512 postinstall_cmds=
10513 postuninstall_cmds=
10514 finish_cmds=
10515 finish_eval=
10516 shlibpath_var=
10517 shlibpath_overrides_runpath=unknown
10518 version_type=none
10519 dynamic_linker="$host_os ld.so"
10520 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10521 need_lib_prefix=unknown
10522 hardcode_into_libs=no
10523
10524 # when you set need_version to no, make sure it does not cause -set_version
10525 # flags to be left without arguments
10526 need_version=unknown
10527
10528 case $host_os in
10529 aix3*)
10530 version_type=linux # correct to gnu/linux during the next big refactor
10531 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10532 shlibpath_var=LIBPATH
10533
10534 # AIX 3 has no versioning support, so we append a major version to the name.
10535 soname_spec='${libname}${release}${shared_ext}$major'
10536 ;;
10537
10538 aix[4-9]*)
10539 version_type=linux # correct to gnu/linux during the next big refactor
10540 need_lib_prefix=no
10541 need_version=no
10542 hardcode_into_libs=yes
10543 if test "$host_cpu" = ia64; then
10544 # AIX 5 supports IA64
10545 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10546 shlibpath_var=LD_LIBRARY_PATH
10547 else
10548 # With GCC up to 2.95.x, collect2 would create an import file
10549 # for dependence libraries. The import file would start with
10550 # the line `#! .'. This would cause the generated library to
10551 # depend on `.', always an invalid library. This was fixed in
10552 # development snapshots of GCC prior to 3.0.
10553 case $host_os in
10554 aix4 | aix4.[01] | aix4.[01].*)
10555 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10556 echo ' yes '
10557 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10558 :
10559 else
10560 can_build_shared=no
10561 fi
10562 ;;
10563 esac
10564 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10565 # soname into executable. Probably we can add versioning support to
10566 # collect2, so additional links can be useful in future.
10567 if test "$aix_use_runtimelinking" = yes; then
10568 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10569 # instead of lib<name>.a to let people know that these are not
10570 # typical AIX shared libraries.
10571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10572 else
10573 # We preserve .a as extension for shared libraries through AIX4.2
10574 # and later when we are not doing run time linking.
10575 library_names_spec='${libname}${release}.a $libname.a'
10576 soname_spec='${libname}${release}${shared_ext}$major'
10577 fi
10578 shlibpath_var=LIBPATH
10579 fi
10580 ;;
10581
10582 amigaos*)
10583 case $host_cpu in
10584 powerpc)
10585 # Since July 2007 AmigaOS4 officially supports .so libraries.
10586 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10588 ;;
10589 m68k)
10590 library_names_spec='$libname.ixlibrary $libname.a'
10591 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10592 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'
10593 ;;
10594 esac
10595 ;;
10596
10597 beos*)
10598 library_names_spec='${libname}${shared_ext}'
10599 dynamic_linker="$host_os ld.so"
10600 shlibpath_var=LIBRARY_PATH
10601 ;;
10602
10603 bsdi[45]*)
10604 version_type=linux # correct to gnu/linux during the next big refactor
10605 need_version=no
10606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10607 soname_spec='${libname}${release}${shared_ext}$major'
10608 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10609 shlibpath_var=LD_LIBRARY_PATH
10610 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10611 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10612 # the default ld.so.conf also contains /usr/contrib/lib and
10613 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10614 # libtool to hard-code these into programs
10615 ;;
10616
10617 cygwin* | mingw* | pw32* | cegcc*)
10618 version_type=windows
10619 shrext_cmds=".dll"
10620 need_version=no
10621 need_lib_prefix=no
10622
10623 case $GCC,$cc_basename in
10624 yes,*)
10625 # gcc
10626 library_names_spec='$libname.dll.a'
10627 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10628 postinstall_cmds='base_file=`basename \${file}`~
10629 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10630 dldir=$destdir/`dirname \$dlpath`~
10631 test -d \$dldir || mkdir -p \$dldir~
10632 $install_prog $dir/$dlname \$dldir/$dlname~
10633 chmod a+x \$dldir/$dlname~
10634 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10635 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10636 fi'
10637 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10638 dlpath=$dir/\$dldll~
10639 $RM \$dlpath'
10640 shlibpath_overrides_runpath=yes
10641
10642 case $host_os in
10643 cygwin*)
10644 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10645 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10646
10647 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10648 ;;
10649 mingw* | cegcc*)
10650 # MinGW DLLs use traditional 'lib' prefix
10651 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10652 ;;
10653 pw32*)
10654 # pw32 DLLs use 'pw' prefix rather than 'lib'
10655 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10656 ;;
10657 esac
10658 dynamic_linker='Win32 ld.exe'
10659 ;;
10660
10661 *,cl*)
10662 # Native MSVC
10663 libname_spec='$name'
10664 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10665 library_names_spec='${libname}.dll.lib'
10666
10667 case $build_os in
10668 mingw*)
10669 sys_lib_search_path_spec=
10670 lt_save_ifs=$IFS
10671 IFS=';'
10672 for lt_path in $LIB
10673 do
10674 IFS=$lt_save_ifs
10675 # Let DOS variable expansion print the short 8.3 style file name.
10676 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10677 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10678 done
10679 IFS=$lt_save_ifs
10680 # Convert to MSYS style.
10681 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10682 ;;
10683 cygwin*)
10684 # Convert to unix form, then to dos form, then back to unix form
10685 # but this time dos style (no spaces!) so that the unix form looks
10686 # like /cygdrive/c/PROGRA~1:/cygdr...
10687 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10688 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10689 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10690 ;;
10691 *)
10692 sys_lib_search_path_spec="$LIB"
10693 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10694 # It is most probably a Windows format PATH.
10695 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10696 else
10697 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10698 fi
10699 # FIXME: find the short name or the path components, as spaces are
10700 # common. (e.g. "Program Files" -> "PROGRA~1")
10701 ;;
10702 esac
10703
10704 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10705 postinstall_cmds='base_file=`basename \${file}`~
10706 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10707 dldir=$destdir/`dirname \$dlpath`~
10708 test -d \$dldir || mkdir -p \$dldir~
10709 $install_prog $dir/$dlname \$dldir/$dlname'
10710 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10711 dlpath=$dir/\$dldll~
10712 $RM \$dlpath'
10713 shlibpath_overrides_runpath=yes
10714 dynamic_linker='Win32 link.exe'
10715 ;;
10716
10717 *)
10718 # Assume MSVC wrapper
10719 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10720 dynamic_linker='Win32 ld.exe'
10721 ;;
10722 esac
10723 # FIXME: first we should search . and the directory the executable is in
10724 shlibpath_var=PATH
10725 ;;
10726
10727 darwin* | rhapsody*)
10728 dynamic_linker="$host_os dyld"
10729 version_type=darwin
10730 need_lib_prefix=no
10731 need_version=no
10732 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10733 soname_spec='${libname}${release}${major}$shared_ext'
10734 shlibpath_overrides_runpath=yes
10735 shlibpath_var=DYLD_LIBRARY_PATH
10736 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10737
10738 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10739 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10740 ;;
10741
10742 dgux*)
10743 version_type=linux # correct to gnu/linux during the next big refactor
10744 need_lib_prefix=no
10745 need_version=no
10746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10747 soname_spec='${libname}${release}${shared_ext}$major'
10748 shlibpath_var=LD_LIBRARY_PATH
10749 ;;
10750
10751 freebsd* | dragonfly*)
10752 # DragonFly does not have aout. When/if they implement a new
10753 # versioning mechanism, adjust this.
10754 if test -x /usr/bin/objformat; then
10755 objformat=`/usr/bin/objformat`
10756 else
10757 case $host_os in
10758 freebsd[23].*) objformat=aout ;;
10759 *) objformat=elf ;;
10760 esac
10761 fi
10762 version_type=freebsd-$objformat
10763 case $version_type in
10764 freebsd-elf*)
10765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10766 need_version=no
10767 need_lib_prefix=no
10768 ;;
10769 freebsd-*)
10770 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10771 need_version=yes
10772 ;;
10773 esac
10774 shlibpath_var=LD_LIBRARY_PATH
10775 case $host_os in
10776 freebsd2.*)
10777 shlibpath_overrides_runpath=yes
10778 ;;
10779 freebsd3.[01]* | freebsdelf3.[01]*)
10780 shlibpath_overrides_runpath=yes
10781 hardcode_into_libs=yes
10782 ;;
10783 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10784 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10785 shlibpath_overrides_runpath=no
10786 hardcode_into_libs=yes
10787 ;;
10788 *) # from 4.6 on, and DragonFly
10789 shlibpath_overrides_runpath=yes
10790 hardcode_into_libs=yes
10791 ;;
10792 esac
10793 ;;
10794
10795 gnu*)
10796 version_type=linux # correct to gnu/linux during the next big refactor
10797 need_lib_prefix=no
10798 need_version=no
10799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10800 soname_spec='${libname}${release}${shared_ext}$major'
10801 shlibpath_var=LD_LIBRARY_PATH
10802 shlibpath_overrides_runpath=no
10803 hardcode_into_libs=yes
10804 ;;
10805
10806 haiku*)
10807 version_type=linux # correct to gnu/linux during the next big refactor
10808 need_lib_prefix=no
10809 need_version=no
10810 dynamic_linker="$host_os runtime_loader"
10811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10812 soname_spec='${libname}${release}${shared_ext}$major'
10813 shlibpath_var=LIBRARY_PATH
10814 shlibpath_overrides_runpath=yes
10815 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10816 hardcode_into_libs=yes
10817 ;;
10818
10819 hpux9* | hpux10* | hpux11*)
10820 # Give a soname corresponding to the major version so that dld.sl refuses to
10821 # link against other versions.
10822 version_type=sunos
10823 need_lib_prefix=no
10824 need_version=no
10825 case $host_cpu in
10826 ia64*)
10827 shrext_cmds='.so'
10828 hardcode_into_libs=yes
10829 dynamic_linker="$host_os dld.so"
10830 shlibpath_var=LD_LIBRARY_PATH
10831 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10833 soname_spec='${libname}${release}${shared_ext}$major'
10834 if test "X$HPUX_IA64_MODE" = X32; then
10835 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10836 else
10837 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10838 fi
10839 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10840 ;;
10841 hppa*64*)
10842 shrext_cmds='.sl'
10843 hardcode_into_libs=yes
10844 dynamic_linker="$host_os dld.sl"
10845 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10846 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10848 soname_spec='${libname}${release}${shared_ext}$major'
10849 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10850 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10851 ;;
10852 *)
10853 shrext_cmds='.sl'
10854 dynamic_linker="$host_os dld.sl"
10855 shlibpath_var=SHLIB_PATH
10856 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10858 soname_spec='${libname}${release}${shared_ext}$major'
10859 ;;
10860 esac
10861 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10862 postinstall_cmds='chmod 555 $lib'
10863 # or fails outright, so override atomically:
10864 install_override_mode=555
10865 ;;
10866
10867 interix[3-9]*)
10868 version_type=linux # correct to gnu/linux during the next big refactor
10869 need_lib_prefix=no
10870 need_version=no
10871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10872 soname_spec='${libname}${release}${shared_ext}$major'
10873 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10874 shlibpath_var=LD_LIBRARY_PATH
10875 shlibpath_overrides_runpath=no
10876 hardcode_into_libs=yes
10877 ;;
10878
10879 irix5* | irix6* | nonstopux*)
10880 case $host_os in
10881 nonstopux*) version_type=nonstopux ;;
10882 *)
10883 if test "$lt_cv_prog_gnu_ld" = yes; then
10884 version_type=linux # correct to gnu/linux during the next big refactor
10885 else
10886 version_type=irix
10887 fi ;;
10888 esac
10889 need_lib_prefix=no
10890 need_version=no
10891 soname_spec='${libname}${release}${shared_ext}$major'
10892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10893 case $host_os in
10894 irix5* | nonstopux*)
10895 libsuff= shlibsuff=
10896 ;;
10897 *)
10898 case $LD in # libtool.m4 will add one of these switches to LD
10899 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10900 libsuff= shlibsuff= libmagic=32-bit;;
10901 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10902 libsuff=32 shlibsuff=N32 libmagic=N32;;
10903 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10904 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10905 *) libsuff= shlibsuff= libmagic=never-match;;
10906 esac
10907 ;;
10908 esac
10909 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10910 shlibpath_overrides_runpath=no
10911 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10912 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10913 hardcode_into_libs=yes
10914 ;;
10915
10916 # No shared lib support for Linux oldld, aout, or coff.
10917 linux*oldld* | linux*aout* | linux*coff*)
10918 dynamic_linker=no
10919 ;;
10920
10921 # This must be glibc/ELF.
10922 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10923 version_type=linux # correct to gnu/linux during the next big refactor
10924 need_lib_prefix=no
10925 need_version=no
10926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10927 soname_spec='${libname}${release}${shared_ext}$major'
10928 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10929 shlibpath_var=LD_LIBRARY_PATH
10930 shlibpath_overrides_runpath=no
10931
10932 # Some binutils ld are patched to set DT_RUNPATH
10933 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10934 $as_echo_n "(cached) " >&6
10935 else
10936 lt_cv_shlibpath_overrides_runpath=no
10937 save_LDFLAGS=$LDFLAGS
10938 save_libdir=$libdir
10939 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10940 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10942 /* end confdefs.h. */
10943
10944 int
10945 main ()
10946 {
10947
10948 ;
10949 return 0;
10950 }
10951 _ACEOF
10952 if ac_fn_c_try_link "$LINENO"; then :
10953 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10954 lt_cv_shlibpath_overrides_runpath=yes
10955 fi
10956 fi
10957 rm -f core conftest.err conftest.$ac_objext \
10958 conftest$ac_exeext conftest.$ac_ext
10959 LDFLAGS=$save_LDFLAGS
10960 libdir=$save_libdir
10961
10962 fi
10963
10964 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10965
10966 # This implies no fast_install, which is unacceptable.
10967 # Some rework will be needed to allow for fast_install
10968 # before this can be enabled.
10969 hardcode_into_libs=yes
10970
10971 # Append ld.so.conf contents to the search path
10972 if test -f /etc/ld.so.conf; then
10973 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' ' '`
10974 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10975 fi
10976
10977 # We used to test for /lib/ld.so.1 and disable shared libraries on
10978 # powerpc, because MkLinux only supported shared libraries with the
10979 # GNU dynamic linker. Since this was broken with cross compilers,
10980 # most powerpc-linux boxes support dynamic linking these days and
10981 # people can always --disable-shared, the test was removed, and we
10982 # assume the GNU/Linux dynamic linker is in use.
10983 dynamic_linker='GNU/Linux ld.so'
10984 ;;
10985
10986 netbsd*)
10987 version_type=sunos
10988 need_lib_prefix=no
10989 need_version=no
10990 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10992 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10993 dynamic_linker='NetBSD (a.out) ld.so'
10994 else
10995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10996 soname_spec='${libname}${release}${shared_ext}$major'
10997 dynamic_linker='NetBSD ld.elf_so'
10998 fi
10999 shlibpath_var=LD_LIBRARY_PATH
11000 shlibpath_overrides_runpath=yes
11001 hardcode_into_libs=yes
11002 ;;
11003
11004 newsos6)
11005 version_type=linux # correct to gnu/linux during the next big refactor
11006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11007 shlibpath_var=LD_LIBRARY_PATH
11008 shlibpath_overrides_runpath=yes
11009 ;;
11010
11011 *nto* | *qnx*)
11012 version_type=qnx
11013 need_lib_prefix=no
11014 need_version=no
11015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11016 soname_spec='${libname}${release}${shared_ext}$major'
11017 shlibpath_var=LD_LIBRARY_PATH
11018 shlibpath_overrides_runpath=no
11019 hardcode_into_libs=yes
11020 dynamic_linker='ldqnx.so'
11021 ;;
11022
11023 openbsd*)
11024 version_type=sunos
11025 sys_lib_dlsearch_path_spec="/usr/lib"
11026 need_lib_prefix=no
11027 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11028 case $host_os in
11029 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11030 *) need_version=no ;;
11031 esac
11032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11033 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11034 shlibpath_var=LD_LIBRARY_PATH
11035 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11036 case $host_os in
11037 openbsd2.[89] | openbsd2.[89].*)
11038 shlibpath_overrides_runpath=no
11039 ;;
11040 *)
11041 shlibpath_overrides_runpath=yes
11042 ;;
11043 esac
11044 else
11045 shlibpath_overrides_runpath=yes
11046 fi
11047 ;;
11048
11049 os2*)
11050 libname_spec='$name'
11051 shrext_cmds=".dll"
11052 need_lib_prefix=no
11053 library_names_spec='$libname${shared_ext} $libname.a'
11054 dynamic_linker='OS/2 ld.exe'
11055 shlibpath_var=LIBPATH
11056 ;;
11057
11058 osf3* | osf4* | osf5*)
11059 version_type=osf
11060 need_lib_prefix=no
11061 need_version=no
11062 soname_spec='${libname}${release}${shared_ext}$major'
11063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11064 shlibpath_var=LD_LIBRARY_PATH
11065 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11066 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11067 ;;
11068
11069 rdos*)
11070 dynamic_linker=no
11071 ;;
11072
11073 solaris*)
11074 version_type=linux # correct to gnu/linux during the next big refactor
11075 need_lib_prefix=no
11076 need_version=no
11077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11078 soname_spec='${libname}${release}${shared_ext}$major'
11079 shlibpath_var=LD_LIBRARY_PATH
11080 shlibpath_overrides_runpath=yes
11081 hardcode_into_libs=yes
11082 # ldd complains unless libraries are executable
11083 postinstall_cmds='chmod +x $lib'
11084 ;;
11085
11086 sunos4*)
11087 version_type=sunos
11088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11089 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11090 shlibpath_var=LD_LIBRARY_PATH
11091 shlibpath_overrides_runpath=yes
11092 if test "$with_gnu_ld" = yes; then
11093 need_lib_prefix=no
11094 fi
11095 need_version=yes
11096 ;;
11097
11098 sysv4 | sysv4.3*)
11099 version_type=linux # correct to gnu/linux during the next big refactor
11100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11101 soname_spec='${libname}${release}${shared_ext}$major'
11102 shlibpath_var=LD_LIBRARY_PATH
11103 case $host_vendor in
11104 sni)
11105 shlibpath_overrides_runpath=no
11106 need_lib_prefix=no
11107 runpath_var=LD_RUN_PATH
11108 ;;
11109 siemens)
11110 need_lib_prefix=no
11111 ;;
11112 motorola)
11113 need_lib_prefix=no
11114 need_version=no
11115 shlibpath_overrides_runpath=no
11116 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11117 ;;
11118 esac
11119 ;;
11120
11121 sysv4*MP*)
11122 if test -d /usr/nec ;then
11123 version_type=linux # correct to gnu/linux during the next big refactor
11124 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11125 soname_spec='$libname${shared_ext}.$major'
11126 shlibpath_var=LD_LIBRARY_PATH
11127 fi
11128 ;;
11129
11130 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11131 version_type=freebsd-elf
11132 need_lib_prefix=no
11133 need_version=no
11134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11135 soname_spec='${libname}${release}${shared_ext}$major'
11136 shlibpath_var=LD_LIBRARY_PATH
11137 shlibpath_overrides_runpath=yes
11138 hardcode_into_libs=yes
11139 if test "$with_gnu_ld" = yes; then
11140 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11141 else
11142 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11143 case $host_os in
11144 sco3.2v5*)
11145 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11146 ;;
11147 esac
11148 fi
11149 sys_lib_dlsearch_path_spec='/usr/lib'
11150 ;;
11151
11152 tpf*)
11153 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11154 version_type=linux # correct to gnu/linux during the next big refactor
11155 need_lib_prefix=no
11156 need_version=no
11157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11158 shlibpath_var=LD_LIBRARY_PATH
11159 shlibpath_overrides_runpath=no
11160 hardcode_into_libs=yes
11161 ;;
11162
11163 uts4*)
11164 version_type=linux # correct to gnu/linux during the next big refactor
11165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11166 soname_spec='${libname}${release}${shared_ext}$major'
11167 shlibpath_var=LD_LIBRARY_PATH
11168 ;;
11169
11170 *)
11171 dynamic_linker=no
11172 ;;
11173 esac
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11175 $as_echo "$dynamic_linker" >&6; }
11176 test "$dynamic_linker" = no && can_build_shared=no
11177
11178 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11179 if test "$GCC" = yes; then
11180 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11181 fi
11182
11183 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11184 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11185 fi
11186 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11187 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11188 fi
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11282 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11283 hardcode_action=
11284 if test -n "$hardcode_libdir_flag_spec" ||
11285 test -n "$runpath_var" ||
11286 test "X$hardcode_automatic" = "Xyes" ; then
11287
11288 # We can hardcode non-existent directories.
11289 if test "$hardcode_direct" != no &&
11290 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11291 # have to relink, otherwise we might link with an installed library
11292 # when we should be linking with a yet-to-be-installed one
11293 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11294 test "$hardcode_minus_L" != no; then
11295 # Linking always hardcodes the temporary library directory.
11296 hardcode_action=relink
11297 else
11298 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11299 hardcode_action=immediate
11300 fi
11301 else
11302 # We cannot hardcode anything, or else we can only hardcode existing
11303 # directories.
11304 hardcode_action=unsupported
11305 fi
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11307 $as_echo "$hardcode_action" >&6; }
11308
11309 if test "$hardcode_action" = relink ||
11310 test "$inherit_rpath" = yes; then
11311 # Fast installation is not supported
11312 enable_fast_install=no
11313 elif test "$shlibpath_overrides_runpath" = yes ||
11314 test "$enable_shared" = no; then
11315 # Fast installation is not necessary
11316 enable_fast_install=needless
11317 fi
11318
11319
11320
11321
11322
11323
11324 if test "x$enable_dlopen" != xyes; then
11325 enable_dlopen=unknown
11326 enable_dlopen_self=unknown
11327 enable_dlopen_self_static=unknown
11328 else
11329 lt_cv_dlopen=no
11330 lt_cv_dlopen_libs=
11331
11332 case $host_os in
11333 beos*)
11334 lt_cv_dlopen="load_add_on"
11335 lt_cv_dlopen_libs=
11336 lt_cv_dlopen_self=yes
11337 ;;
11338
11339 mingw* | pw32* | cegcc*)
11340 lt_cv_dlopen="LoadLibrary"
11341 lt_cv_dlopen_libs=
11342 ;;
11343
11344 cygwin*)
11345 lt_cv_dlopen="dlopen"
11346 lt_cv_dlopen_libs=
11347 ;;
11348
11349 darwin*)
11350 # if libdl is installed we need to link against it
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11352 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11353 if ${ac_cv_lib_dl_dlopen+:} false; then :
11354 $as_echo_n "(cached) " >&6
11355 else
11356 ac_check_lib_save_LIBS=$LIBS
11357 LIBS="-ldl $LIBS"
11358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11359 /* end confdefs.h. */
11360
11361 /* Override any GCC internal prototype to avoid an error.
11362 Use char because int might match the return type of a GCC
11363 builtin and then its argument prototype would still apply. */
11364 #ifdef __cplusplus
11365 extern "C"
11366 #endif
11367 char dlopen ();
11368 int
11369 main ()
11370 {
11371 return dlopen ();
11372 ;
11373 return 0;
11374 }
11375 _ACEOF
11376 if ac_fn_c_try_link "$LINENO"; then :
11377 ac_cv_lib_dl_dlopen=yes
11378 else
11379 ac_cv_lib_dl_dlopen=no
11380 fi
11381 rm -f core conftest.err conftest.$ac_objext \
11382 conftest$ac_exeext conftest.$ac_ext
11383 LIBS=$ac_check_lib_save_LIBS
11384 fi
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11386 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11387 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11388 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11389 else
11390
11391 lt_cv_dlopen="dyld"
11392 lt_cv_dlopen_libs=
11393 lt_cv_dlopen_self=yes
11394
11395 fi
11396
11397 ;;
11398
11399 *)
11400 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11401 if test "x$ac_cv_func_shl_load" = xyes; then :
11402 lt_cv_dlopen="shl_load"
11403 else
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11405 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11406 if ${ac_cv_lib_dld_shl_load+:} false; then :
11407 $as_echo_n "(cached) " >&6
11408 else
11409 ac_check_lib_save_LIBS=$LIBS
11410 LIBS="-ldld $LIBS"
11411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11412 /* end confdefs.h. */
11413
11414 /* Override any GCC internal prototype to avoid an error.
11415 Use char because int might match the return type of a GCC
11416 builtin and then its argument prototype would still apply. */
11417 #ifdef __cplusplus
11418 extern "C"
11419 #endif
11420 char shl_load ();
11421 int
11422 main ()
11423 {
11424 return shl_load ();
11425 ;
11426 return 0;
11427 }
11428 _ACEOF
11429 if ac_fn_c_try_link "$LINENO"; then :
11430 ac_cv_lib_dld_shl_load=yes
11431 else
11432 ac_cv_lib_dld_shl_load=no
11433 fi
11434 rm -f core conftest.err conftest.$ac_objext \
11435 conftest$ac_exeext conftest.$ac_ext
11436 LIBS=$ac_check_lib_save_LIBS
11437 fi
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11439 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11440 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11441 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11442 else
11443 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11444 if test "x$ac_cv_func_dlopen" = xyes; then :
11445 lt_cv_dlopen="dlopen"
11446 else
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11448 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11449 if ${ac_cv_lib_dl_dlopen+:} false; then :
11450 $as_echo_n "(cached) " >&6
11451 else
11452 ac_check_lib_save_LIBS=$LIBS
11453 LIBS="-ldl $LIBS"
11454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11455 /* end confdefs.h. */
11456
11457 /* Override any GCC internal prototype to avoid an error.
11458 Use char because int might match the return type of a GCC
11459 builtin and then its argument prototype would still apply. */
11460 #ifdef __cplusplus
11461 extern "C"
11462 #endif
11463 char dlopen ();
11464 int
11465 main ()
11466 {
11467 return dlopen ();
11468 ;
11469 return 0;
11470 }
11471 _ACEOF
11472 if ac_fn_c_try_link "$LINENO"; then :
11473 ac_cv_lib_dl_dlopen=yes
11474 else
11475 ac_cv_lib_dl_dlopen=no
11476 fi
11477 rm -f core conftest.err conftest.$ac_objext \
11478 conftest$ac_exeext conftest.$ac_ext
11479 LIBS=$ac_check_lib_save_LIBS
11480 fi
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11482 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11483 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11484 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11485 else
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11487 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11488 if ${ac_cv_lib_svld_dlopen+:} false; then :
11489 $as_echo_n "(cached) " >&6
11490 else
11491 ac_check_lib_save_LIBS=$LIBS
11492 LIBS="-lsvld $LIBS"
11493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11494 /* end confdefs.h. */
11495
11496 /* Override any GCC internal prototype to avoid an error.
11497 Use char because int might match the return type of a GCC
11498 builtin and then its argument prototype would still apply. */
11499 #ifdef __cplusplus
11500 extern "C"
11501 #endif
11502 char dlopen ();
11503 int
11504 main ()
11505 {
11506 return dlopen ();
11507 ;
11508 return 0;
11509 }
11510 _ACEOF
11511 if ac_fn_c_try_link "$LINENO"; then :
11512 ac_cv_lib_svld_dlopen=yes
11513 else
11514 ac_cv_lib_svld_dlopen=no
11515 fi
11516 rm -f core conftest.err conftest.$ac_objext \
11517 conftest$ac_exeext conftest.$ac_ext
11518 LIBS=$ac_check_lib_save_LIBS
11519 fi
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11521 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11522 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11523 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11524 else
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11526 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11527 if ${ac_cv_lib_dld_dld_link+:} false; then :
11528 $as_echo_n "(cached) " >&6
11529 else
11530 ac_check_lib_save_LIBS=$LIBS
11531 LIBS="-ldld $LIBS"
11532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11533 /* end confdefs.h. */
11534
11535 /* Override any GCC internal prototype to avoid an error.
11536 Use char because int might match the return type of a GCC
11537 builtin and then its argument prototype would still apply. */
11538 #ifdef __cplusplus
11539 extern "C"
11540 #endif
11541 char dld_link ();
11542 int
11543 main ()
11544 {
11545 return dld_link ();
11546 ;
11547 return 0;
11548 }
11549 _ACEOF
11550 if ac_fn_c_try_link "$LINENO"; then :
11551 ac_cv_lib_dld_dld_link=yes
11552 else
11553 ac_cv_lib_dld_dld_link=no
11554 fi
11555 rm -f core conftest.err conftest.$ac_objext \
11556 conftest$ac_exeext conftest.$ac_ext
11557 LIBS=$ac_check_lib_save_LIBS
11558 fi
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11560 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11561 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11562 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11563 fi
11564
11565
11566 fi
11567
11568
11569 fi
11570
11571
11572 fi
11573
11574
11575 fi
11576
11577
11578 fi
11579
11580 ;;
11581 esac
11582
11583 if test "x$lt_cv_dlopen" != xno; then
11584 enable_dlopen=yes
11585 else
11586 enable_dlopen=no
11587 fi
11588
11589 case $lt_cv_dlopen in
11590 dlopen)
11591 save_CPPFLAGS="$CPPFLAGS"
11592 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11593
11594 save_LDFLAGS="$LDFLAGS"
11595 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11596
11597 save_LIBS="$LIBS"
11598 LIBS="$lt_cv_dlopen_libs $LIBS"
11599
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11601 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11602 if ${lt_cv_dlopen_self+:} false; then :
11603 $as_echo_n "(cached) " >&6
11604 else
11605 if test "$cross_compiling" = yes; then :
11606 lt_cv_dlopen_self=cross
11607 else
11608 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11609 lt_status=$lt_dlunknown
11610 cat > conftest.$ac_ext <<_LT_EOF
11611 #line $LINENO "configure"
11612 #include "confdefs.h"
11613
11614 #if HAVE_DLFCN_H
11615 #include <dlfcn.h>
11616 #endif
11617
11618 #include <stdio.h>
11619
11620 #ifdef RTLD_GLOBAL
11621 # define LT_DLGLOBAL RTLD_GLOBAL
11622 #else
11623 # ifdef DL_GLOBAL
11624 # define LT_DLGLOBAL DL_GLOBAL
11625 # else
11626 # define LT_DLGLOBAL 0
11627 # endif
11628 #endif
11629
11630 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11631 find out it does not work in some platform. */
11632 #ifndef LT_DLLAZY_OR_NOW
11633 # ifdef RTLD_LAZY
11634 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11635 # else
11636 # ifdef DL_LAZY
11637 # define LT_DLLAZY_OR_NOW DL_LAZY
11638 # else
11639 # ifdef RTLD_NOW
11640 # define LT_DLLAZY_OR_NOW RTLD_NOW
11641 # else
11642 # ifdef DL_NOW
11643 # define LT_DLLAZY_OR_NOW DL_NOW
11644 # else
11645 # define LT_DLLAZY_OR_NOW 0
11646 # endif
11647 # endif
11648 # endif
11649 # endif
11650 #endif
11651
11652 /* When -fvisbility=hidden is used, assume the code has been annotated
11653 correspondingly for the symbols needed. */
11654 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11655 int fnord () __attribute__((visibility("default")));
11656 #endif
11657
11658 int fnord () { return 42; }
11659 int main ()
11660 {
11661 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11662 int status = $lt_dlunknown;
11663
11664 if (self)
11665 {
11666 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11667 else
11668 {
11669 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11670 else puts (dlerror ());
11671 }
11672 /* dlclose (self); */
11673 }
11674 else
11675 puts (dlerror ());
11676
11677 return status;
11678 }
11679 _LT_EOF
11680 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11681 (eval $ac_link) 2>&5
11682 ac_status=$?
11683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11684 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11685 (./conftest; exit; ) >&5 2>/dev/null
11686 lt_status=$?
11687 case x$lt_status in
11688 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11689 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11690 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11691 esac
11692 else :
11693 # compilation failed
11694 lt_cv_dlopen_self=no
11695 fi
11696 fi
11697 rm -fr conftest*
11698
11699
11700 fi
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11702 $as_echo "$lt_cv_dlopen_self" >&6; }
11703
11704 if test "x$lt_cv_dlopen_self" = xyes; then
11705 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11707 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11708 if ${lt_cv_dlopen_self_static+:} false; then :
11709 $as_echo_n "(cached) " >&6
11710 else
11711 if test "$cross_compiling" = yes; then :
11712 lt_cv_dlopen_self_static=cross
11713 else
11714 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11715 lt_status=$lt_dlunknown
11716 cat > conftest.$ac_ext <<_LT_EOF
11717 #line $LINENO "configure"
11718 #include "confdefs.h"
11719
11720 #if HAVE_DLFCN_H
11721 #include <dlfcn.h>
11722 #endif
11723
11724 #include <stdio.h>
11725
11726 #ifdef RTLD_GLOBAL
11727 # define LT_DLGLOBAL RTLD_GLOBAL
11728 #else
11729 # ifdef DL_GLOBAL
11730 # define LT_DLGLOBAL DL_GLOBAL
11731 # else
11732 # define LT_DLGLOBAL 0
11733 # endif
11734 #endif
11735
11736 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11737 find out it does not work in some platform. */
11738 #ifndef LT_DLLAZY_OR_NOW
11739 # ifdef RTLD_LAZY
11740 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11741 # else
11742 # ifdef DL_LAZY
11743 # define LT_DLLAZY_OR_NOW DL_LAZY
11744 # else
11745 # ifdef RTLD_NOW
11746 # define LT_DLLAZY_OR_NOW RTLD_NOW
11747 # else
11748 # ifdef DL_NOW
11749 # define LT_DLLAZY_OR_NOW DL_NOW
11750 # else
11751 # define LT_DLLAZY_OR_NOW 0
11752 # endif
11753 # endif
11754 # endif
11755 # endif
11756 #endif
11757
11758 /* When -fvisbility=hidden is used, assume the code has been annotated
11759 correspondingly for the symbols needed. */
11760 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11761 int fnord () __attribute__((visibility("default")));
11762 #endif
11763
11764 int fnord () { return 42; }
11765 int main ()
11766 {
11767 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11768 int status = $lt_dlunknown;
11769
11770 if (self)
11771 {
11772 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11773 else
11774 {
11775 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11776 else puts (dlerror ());
11777 }
11778 /* dlclose (self); */
11779 }
11780 else
11781 puts (dlerror ());
11782
11783 return status;
11784 }
11785 _LT_EOF
11786 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11787 (eval $ac_link) 2>&5
11788 ac_status=$?
11789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11790 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11791 (./conftest; exit; ) >&5 2>/dev/null
11792 lt_status=$?
11793 case x$lt_status in
11794 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11795 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11796 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11797 esac
11798 else :
11799 # compilation failed
11800 lt_cv_dlopen_self_static=no
11801 fi
11802 fi
11803 rm -fr conftest*
11804
11805
11806 fi
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11808 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11809 fi
11810
11811 CPPFLAGS="$save_CPPFLAGS"
11812 LDFLAGS="$save_LDFLAGS"
11813 LIBS="$save_LIBS"
11814 ;;
11815 esac
11816
11817 case $lt_cv_dlopen_self in
11818 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11819 *) enable_dlopen_self=unknown ;;
11820 esac
11821
11822 case $lt_cv_dlopen_self_static in
11823 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11824 *) enable_dlopen_self_static=unknown ;;
11825 esac
11826 fi
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844 striplib=
11845 old_striplib=
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11847 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11848 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11849 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11850 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11852 $as_echo "yes" >&6; }
11853 else
11854 # FIXME - insert some real tests, host_os isn't really good enough
11855 case $host_os in
11856 darwin*)
11857 if test -n "$STRIP" ; then
11858 striplib="$STRIP -x"
11859 old_striplib="$STRIP -S"
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11861 $as_echo "yes" >&6; }
11862 else
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11864 $as_echo "no" >&6; }
11865 fi
11866 ;;
11867 *)
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11869 $as_echo "no" >&6; }
11870 ;;
11871 esac
11872 fi
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885 # Report which library types will actually be built
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11887 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11889 $as_echo "$can_build_shared" >&6; }
11890
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11892 $as_echo_n "checking whether to build shared libraries... " >&6; }
11893 test "$can_build_shared" = "no" && enable_shared=no
11894
11895 # On AIX, shared libraries and static libraries use the same namespace, and
11896 # are all built from PIC.
11897 case $host_os in
11898 aix3*)
11899 test "$enable_shared" = yes && enable_static=no
11900 if test -n "$RANLIB"; then
11901 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11902 postinstall_cmds='$RANLIB $lib'
11903 fi
11904 ;;
11905
11906 aix[4-9]*)
11907 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11908 test "$enable_shared" = yes && enable_static=no
11909 fi
11910 ;;
11911 esac
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11913 $as_echo "$enable_shared" >&6; }
11914
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11916 $as_echo_n "checking whether to build static libraries... " >&6; }
11917 # Make sure either enable_shared or enable_static is yes.
11918 test "$enable_shared" = yes || enable_static=yes
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11920 $as_echo "$enable_static" >&6; }
11921
11922
11923
11924
11925 fi
11926 ac_ext=c
11927 ac_cpp='$CPP $CPPFLAGS'
11928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11931
11932 CC="$lt_save_CC"
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948 ac_config_commands="$ac_config_commands libtool"
11949
11950
11951
11952
11953 # Only expand once:
11954
11955
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
11957 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
11958 if ${libltdl_cv_shlibext+:} false; then :
11959 $as_echo_n "(cached) " >&6
11960 else
11961
11962 module=yes
11963 eval libltdl_cv_shlibext=$shrext_cmds
11964 module=no
11965 eval libltdl_cv_shrext=$shrext_cmds
11966
11967 fi
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
11969 $as_echo "$libltdl_cv_shlibext" >&6; }
11970 if test -n "$libltdl_cv_shlibext"; then
11971
11972 cat >>confdefs.h <<_ACEOF
11973 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
11974 _ACEOF
11975
11976 fi
11977 if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
11978
11979 cat >>confdefs.h <<_ACEOF
11980 #define LT_SHARED_EXT "$libltdl_cv_shrext"
11981 _ACEOF
11982
11983 fi
11984
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
11986 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
11987 if ${lt_cv_module_path_var+:} false; then :
11988 $as_echo_n "(cached) " >&6
11989 else
11990 lt_cv_module_path_var="$shlibpath_var"
11991 fi
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
11993 $as_echo "$lt_cv_module_path_var" >&6; }
11994 if test -n "$lt_cv_module_path_var"; then
11995
11996 cat >>confdefs.h <<_ACEOF
11997 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
11998 _ACEOF
11999
12000 fi
12001
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
12003 $as_echo_n "checking for the default library search path... " >&6; }
12004 if ${lt_cv_sys_dlsearch_path+:} false; then :
12005 $as_echo_n "(cached) " >&6
12006 else
12007 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
12008 fi
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
12010 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
12011 if test -n "$lt_cv_sys_dlsearch_path"; then
12012 sys_dlsearch_path=
12013 for dir in $lt_cv_sys_dlsearch_path; do
12014 if test -z "$sys_dlsearch_path"; then
12015 sys_dlsearch_path="$dir"
12016 else
12017 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
12018 fi
12019 done
12020
12021 cat >>confdefs.h <<_ACEOF
12022 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
12023 _ACEOF
12024
12025 fi
12026
12027
12028 LT_DLLOADERS=
12029
12030
12031 ac_ext=c
12032 ac_cpp='$CPP $CPPFLAGS'
12033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12036
12037
12038 LIBADD_DLOPEN=
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12040 $as_echo_n "checking for library containing dlopen... " >&6; }
12041 if ${ac_cv_search_dlopen+:} false; then :
12042 $as_echo_n "(cached) " >&6
12043 else
12044 ac_func_search_save_LIBS=$LIBS
12045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12046 /* end confdefs.h. */
12047
12048 /* Override any GCC internal prototype to avoid an error.
12049 Use char because int might match the return type of a GCC
12050 builtin and then its argument prototype would still apply. */
12051 #ifdef __cplusplus
12052 extern "C"
12053 #endif
12054 char dlopen ();
12055 int
12056 main ()
12057 {
12058 return dlopen ();
12059 ;
12060 return 0;
12061 }
12062 _ACEOF
12063 for ac_lib in '' dl; do
12064 if test -z "$ac_lib"; then
12065 ac_res="none required"
12066 else
12067 ac_res=-l$ac_lib
12068 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12069 fi
12070 if ac_fn_c_try_link "$LINENO"; then :
12071 ac_cv_search_dlopen=$ac_res
12072 fi
12073 rm -f core conftest.err conftest.$ac_objext \
12074 conftest$ac_exeext
12075 if ${ac_cv_search_dlopen+:} false; then :
12076 break
12077 fi
12078 done
12079 if ${ac_cv_search_dlopen+:} false; then :
12080
12081 else
12082 ac_cv_search_dlopen=no
12083 fi
12084 rm conftest.$ac_ext
12085 LIBS=$ac_func_search_save_LIBS
12086 fi
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12088 $as_echo "$ac_cv_search_dlopen" >&6; }
12089 ac_res=$ac_cv_search_dlopen
12090 if test "$ac_res" != no; then :
12091 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12092
12093 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12094
12095 if test "$ac_cv_search_dlopen" != "none required" ; then
12096 LIBADD_DLOPEN="-ldl"
12097 fi
12098 libltdl_cv_lib_dl_dlopen="yes"
12099 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12100 else
12101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12102 /* end confdefs.h. */
12103 #if HAVE_DLFCN_H
12104 # include <dlfcn.h>
12105 #endif
12106
12107 int
12108 main ()
12109 {
12110 dlopen(0, 0);
12111 ;
12112 return 0;
12113 }
12114 _ACEOF
12115 if ac_fn_c_try_link "$LINENO"; then :
12116
12117 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12118
12119 libltdl_cv_func_dlopen="yes"
12120 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12121 else
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12123 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12124 if ${ac_cv_lib_svld_dlopen+:} false; then :
12125 $as_echo_n "(cached) " >&6
12126 else
12127 ac_check_lib_save_LIBS=$LIBS
12128 LIBS="-lsvld $LIBS"
12129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12130 /* end confdefs.h. */
12131
12132 /* Override any GCC internal prototype to avoid an error.
12133 Use char because int might match the return type of a GCC
12134 builtin and then its argument prototype would still apply. */
12135 #ifdef __cplusplus
12136 extern "C"
12137 #endif
12138 char dlopen ();
12139 int
12140 main ()
12141 {
12142 return dlopen ();
12143 ;
12144 return 0;
12145 }
12146 _ACEOF
12147 if ac_fn_c_try_link "$LINENO"; then :
12148 ac_cv_lib_svld_dlopen=yes
12149 else
12150 ac_cv_lib_svld_dlopen=no
12151 fi
12152 rm -f core conftest.err conftest.$ac_objext \
12153 conftest$ac_exeext conftest.$ac_ext
12154 LIBS=$ac_check_lib_save_LIBS
12155 fi
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12157 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12158 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12159
12160 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12161
12162 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
12163 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12164 fi
12165
12166 fi
12167 rm -f core conftest.err conftest.$ac_objext \
12168 conftest$ac_exeext conftest.$ac_ext
12169 fi
12170
12171 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
12172 then
12173 lt_save_LIBS="$LIBS"
12174 LIBS="$LIBS $LIBADD_DLOPEN"
12175 for ac_func in dlerror
12176 do :
12177 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
12178 if test "x$ac_cv_func_dlerror" = xyes; then :
12179 cat >>confdefs.h <<_ACEOF
12180 #define HAVE_DLERROR 1
12181 _ACEOF
12182
12183 fi
12184 done
12185
12186 LIBS="$lt_save_LIBS"
12187 fi
12188
12189
12190 LIBADD_SHL_LOAD=
12191 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12192 if test "x$ac_cv_func_shl_load" = xyes; then :
12193
12194 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12195
12196 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12197 else
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12199 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12200 if ${ac_cv_lib_dld_shl_load+:} false; then :
12201 $as_echo_n "(cached) " >&6
12202 else
12203 ac_check_lib_save_LIBS=$LIBS
12204 LIBS="-ldld $LIBS"
12205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12206 /* end confdefs.h. */
12207
12208 /* Override any GCC internal prototype to avoid an error.
12209 Use char because int might match the return type of a GCC
12210 builtin and then its argument prototype would still apply. */
12211 #ifdef __cplusplus
12212 extern "C"
12213 #endif
12214 char shl_load ();
12215 int
12216 main ()
12217 {
12218 return shl_load ();
12219 ;
12220 return 0;
12221 }
12222 _ACEOF
12223 if ac_fn_c_try_link "$LINENO"; then :
12224 ac_cv_lib_dld_shl_load=yes
12225 else
12226 ac_cv_lib_dld_shl_load=no
12227 fi
12228 rm -f core conftest.err conftest.$ac_objext \
12229 conftest$ac_exeext conftest.$ac_ext
12230 LIBS=$ac_check_lib_save_LIBS
12231 fi
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12233 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12234 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12235
12236 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12237
12238 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12239 LIBADD_SHL_LOAD="-ldld"
12240 fi
12241
12242 fi
12243
12244
12245
12246 case $host_os in
12247 darwin[1567].*)
12248 # We only want this for pre-Mac OS X 10.4.
12249 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
12250 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
12251
12252 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
12253
12254 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
12255 fi
12256
12257 ;;
12258 beos*)
12259 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
12260 ;;
12261 cygwin* | mingw* | os2* | pw32*)
12262 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
12263 "
12264 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
12265 ac_have_decl=1
12266 else
12267 ac_have_decl=0
12268 fi
12269
12270 cat >>confdefs.h <<_ACEOF
12271 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
12272 _ACEOF
12273
12274 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
12275 ;;
12276 esac
12277
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12279 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12280 if ${ac_cv_lib_dld_dld_link+:} false; then :
12281 $as_echo_n "(cached) " >&6
12282 else
12283 ac_check_lib_save_LIBS=$LIBS
12284 LIBS="-ldld $LIBS"
12285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12286 /* end confdefs.h. */
12287
12288 /* Override any GCC internal prototype to avoid an error.
12289 Use char because int might match the return type of a GCC
12290 builtin and then its argument prototype would still apply. */
12291 #ifdef __cplusplus
12292 extern "C"
12293 #endif
12294 char dld_link ();
12295 int
12296 main ()
12297 {
12298 return dld_link ();
12299 ;
12300 return 0;
12301 }
12302 _ACEOF
12303 if ac_fn_c_try_link "$LINENO"; then :
12304 ac_cv_lib_dld_dld_link=yes
12305 else
12306 ac_cv_lib_dld_dld_link=no
12307 fi
12308 rm -f core conftest.err conftest.$ac_objext \
12309 conftest$ac_exeext conftest.$ac_ext
12310 LIBS=$ac_check_lib_save_LIBS
12311 fi
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12313 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12314 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12315
12316 $as_echo "#define HAVE_DLD 1" >>confdefs.h
12317
12318 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
12319 fi
12320
12321
12322
12323
12324 LT_DLPREOPEN=
12325 if test -n "$LT_DLLOADERS"
12326 then
12327 for lt_loader in $LT_DLLOADERS; do
12328 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
12329 done
12330
12331 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
12332
12333 fi
12334
12335
12336 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
12337
12338
12339 ac_ext=c
12340 ac_cpp='$CPP $CPPFLAGS'
12341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12344
12345
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
12347 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
12348 if ${lt_cv_sys_symbol_underscore+:} false; then :
12349 $as_echo_n "(cached) " >&6
12350 else
12351 lt_cv_sys_symbol_underscore=no
12352 cat > conftest.$ac_ext <<_LT_EOF
12353 void nm_test_func(){}
12354 int main(){nm_test_func;return 0;}
12355 _LT_EOF
12356 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12357 (eval $ac_compile) 2>&5
12358 ac_status=$?
12359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12360 test $ac_status = 0; }; then
12361 # Now try to grab the symbols.
12362 ac_nlist=conftest.nm
12363 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
12364 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
12365 ac_status=$?
12366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12367 test $ac_status = 0; } && test -s "$ac_nlist"; then
12368 # See whether the symbols have a leading underscore.
12369 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
12370 lt_cv_sys_symbol_underscore=yes
12371 else
12372 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
12373 :
12374 else
12375 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
12376 fi
12377 fi
12378 else
12379 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
12380 fi
12381 else
12382 echo "configure: failed program was:" >&5
12383 cat conftest.c >&5
12384 fi
12385 rm -rf conftest*
12386
12387 fi
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
12389 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
12390 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
12391
12392
12393 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
12394 if test x"$libltdl_cv_func_dlopen" = xyes ||
12395 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12397 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
12398 if ${libltdl_cv_need_uscore+:} false; then :
12399 $as_echo_n "(cached) " >&6
12400 else
12401 libltdl_cv_need_uscore=unknown
12402 save_LIBS="$LIBS"
12403 LIBS="$LIBS $LIBADD_DLOPEN"
12404 if test "$cross_compiling" = yes; then :
12405 libltdl_cv_need_uscore=cross
12406 else
12407 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12408 lt_status=$lt_dlunknown
12409 cat > conftest.$ac_ext <<_LT_EOF
12410 #line $LINENO "configure"
12411 #include "confdefs.h"
12412
12413 #if HAVE_DLFCN_H
12414 #include <dlfcn.h>
12415 #endif
12416
12417 #include <stdio.h>
12418
12419 #ifdef RTLD_GLOBAL
12420 # define LT_DLGLOBAL RTLD_GLOBAL
12421 #else
12422 # ifdef DL_GLOBAL
12423 # define LT_DLGLOBAL DL_GLOBAL
12424 # else
12425 # define LT_DLGLOBAL 0
12426 # endif
12427 #endif
12428
12429 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12430 find out it does not work in some platform. */
12431 #ifndef LT_DLLAZY_OR_NOW
12432 # ifdef RTLD_LAZY
12433 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12434 # else
12435 # ifdef DL_LAZY
12436 # define LT_DLLAZY_OR_NOW DL_LAZY
12437 # else
12438 # ifdef RTLD_NOW
12439 # define LT_DLLAZY_OR_NOW RTLD_NOW
12440 # else
12441 # ifdef DL_NOW
12442 # define LT_DLLAZY_OR_NOW DL_NOW
12443 # else
12444 # define LT_DLLAZY_OR_NOW 0
12445 # endif
12446 # endif
12447 # endif
12448 # endif
12449 #endif
12450
12451 /* When -fvisbility=hidden is used, assume the code has been annotated
12452 correspondingly for the symbols needed. */
12453 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12454 int fnord () __attribute__((visibility("default")));
12455 #endif
12456
12457 int fnord () { return 42; }
12458 int main ()
12459 {
12460 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12461 int status = $lt_dlunknown;
12462
12463 if (self)
12464 {
12465 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12466 else
12467 {
12468 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12469 else puts (dlerror ());
12470 }
12471 /* dlclose (self); */
12472 }
12473 else
12474 puts (dlerror ());
12475
12476 return status;
12477 }
12478 _LT_EOF
12479 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12480 (eval $ac_link) 2>&5
12481 ac_status=$?
12482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12483 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12484 (./conftest; exit; ) >&5 2>/dev/null
12485 lt_status=$?
12486 case x$lt_status in
12487 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
12488 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
12489 x$lt_dlunknown|x*) ;;
12490 esac
12491 else :
12492 # compilation failed
12493
12494 fi
12495 fi
12496 rm -fr conftest*
12497
12498 LIBS="$save_LIBS"
12499
12500 fi
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
12502 $as_echo "$libltdl_cv_need_uscore" >&6; }
12503 fi
12504 fi
12505
12506 if test x"$libltdl_cv_need_uscore" = xyes; then
12507
12508 $as_echo "#define NEED_USCORE 1" >>confdefs.h
12509
12510 fi
12511
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
12513 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
12514 if ${lt_cv_sys_dlopen_deplibs+:} false; then :
12515 $as_echo_n "(cached) " >&6
12516 else
12517 # PORTME does your system automatically load deplibs for dlopen?
12518 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
12519 # For now, we just catch OSes we know something about -- in the
12520 # future, we'll try test this programmatically.
12521 lt_cv_sys_dlopen_deplibs=unknown
12522 case $host_os in
12523 aix3*|aix4.1.*|aix4.2.*)
12524 # Unknown whether this is true for these versions of AIX, but
12525 # we want this `case' here to explicitly catch those versions.
12526 lt_cv_sys_dlopen_deplibs=unknown
12527 ;;
12528 aix[4-9]*)
12529 lt_cv_sys_dlopen_deplibs=yes
12530 ;;
12531 amigaos*)
12532 case $host_cpu in
12533 powerpc)
12534 lt_cv_sys_dlopen_deplibs=no
12535 ;;
12536 esac
12537 ;;
12538 darwin*)
12539 # Assuming the user has installed a libdl from somewhere, this is true
12540 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
12541 lt_cv_sys_dlopen_deplibs=yes
12542 ;;
12543 freebsd* | dragonfly*)
12544 lt_cv_sys_dlopen_deplibs=yes
12545 ;;
12546 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
12547 # GNU and its variants, using gnu ld.so (Glibc)
12548 lt_cv_sys_dlopen_deplibs=yes
12549 ;;
12550 hpux10*|hpux11*)
12551 lt_cv_sys_dlopen_deplibs=yes
12552 ;;
12553 interix*)
12554 lt_cv_sys_dlopen_deplibs=yes
12555 ;;
12556 irix[12345]*|irix6.[01]*)
12557 # Catch all versions of IRIX before 6.2, and indicate that we don't
12558 # know how it worked for any of those versions.
12559 lt_cv_sys_dlopen_deplibs=unknown
12560 ;;
12561 irix*)
12562 # The case above catches anything before 6.2, and it's known that
12563 # at 6.2 and later dlopen does load deplibs.
12564 lt_cv_sys_dlopen_deplibs=yes
12565 ;;
12566 netbsd*)
12567 lt_cv_sys_dlopen_deplibs=yes
12568 ;;
12569 openbsd*)
12570 lt_cv_sys_dlopen_deplibs=yes
12571 ;;
12572 osf[1234]*)
12573 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
12574 # it did *not* use an RPATH in a shared library to find objects the
12575 # library depends on, so we explicitly say `no'.
12576 lt_cv_sys_dlopen_deplibs=no
12577 ;;
12578 osf5.0|osf5.0a|osf5.1)
12579 # dlopen *does* load deplibs and with the right loader patch applied
12580 # it even uses RPATH in a shared library to search for shared objects
12581 # that the library depends on, but there's no easy way to know if that
12582 # patch is installed. Since this is the case, all we can really
12583 # say is unknown -- it depends on the patch being installed. If
12584 # it is, this changes to `yes'. Without it, it would be `no'.
12585 lt_cv_sys_dlopen_deplibs=unknown
12586 ;;
12587 osf*)
12588 # the two cases above should catch all versions of osf <= 5.1. Read
12589 # the comments above for what we know about them.
12590 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
12591 # is used to find them so we can finally say `yes'.
12592 lt_cv_sys_dlopen_deplibs=yes
12593 ;;
12594 qnx*)
12595 lt_cv_sys_dlopen_deplibs=yes
12596 ;;
12597 solaris*)
12598 lt_cv_sys_dlopen_deplibs=yes
12599 ;;
12600 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12601 libltdl_cv_sys_dlopen_deplibs=yes
12602 ;;
12603 esac
12604
12605 fi
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
12607 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
12608 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
12609
12610 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
12611
12612 fi
12613
12614 :
12615
12616 for ac_header in argz.h
12617 do :
12618 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
12619 "
12620 if test "x$ac_cv_header_argz_h" = xyes; then :
12621 cat >>confdefs.h <<_ACEOF
12622 #define HAVE_ARGZ_H 1
12623 _ACEOF
12624
12625 fi
12626
12627 done
12628
12629
12630 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
12631 # include <argz.h>
12632 #endif
12633 "
12634 if test "x$ac_cv_type_error_t" = xyes; then :
12635
12636 cat >>confdefs.h <<_ACEOF
12637 #define HAVE_ERROR_T 1
12638 _ACEOF
12639
12640
12641 else
12642
12643 $as_echo "#define error_t int" >>confdefs.h
12644
12645
12646 $as_echo "#define __error_t_defined 1" >>confdefs.h
12647
12648 fi
12649
12650
12651 ARGZ_H=
12652 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
12653 argz_next argz_stringify
12654 do :
12655 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12656 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12657 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12658 cat >>confdefs.h <<_ACEOF
12659 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12660 _ACEOF
12661
12662 else
12663 ARGZ_H=argz.h;
12664
12665 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12666
12667 fi
12668 done
12669
12670
12671 if test -z "$ARGZ_H"; then :
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
12673 $as_echo_n "checking if argz actually works... " >&6; }
12674 if ${lt_cv_sys_argz_works+:} false; then :
12675 $as_echo_n "(cached) " >&6
12676 else
12677 case $host_os in #(
12678 *cygwin*)
12679 lt_cv_sys_argz_works=no
12680 if test "$cross_compiling" != no; then
12681 lt_cv_sys_argz_works="guessing no"
12682 else
12683 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
12684 save_IFS=$IFS
12685 IFS=-.
12686 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
12687 IFS=$save_IFS
12688 lt_os_major=${2-0}
12689 lt_os_minor=${3-0}
12690 lt_os_micro=${4-0}
12691 if test "$lt_os_major" -gt 1 \
12692 || { test "$lt_os_major" -eq 1 \
12693 && { test "$lt_os_minor" -gt 5 \
12694 || { test "$lt_os_minor" -eq 5 \
12695 && test "$lt_os_micro" -gt 24; }; }; }; then
12696 lt_cv_sys_argz_works=yes
12697 fi
12698 fi
12699 ;; #(
12700 *) lt_cv_sys_argz_works=yes ;;
12701 esac
12702 fi
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
12704 $as_echo "$lt_cv_sys_argz_works" >&6; }
12705 if test "$lt_cv_sys_argz_works" = yes; then :
12706
12707 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
12708
12709 else
12710 ARGZ_H=argz.h
12711
12712
12713 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12714
12715 fi
12716 fi
12717
12718
12719
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
12721 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
12722 if ${libltdl_cv_preloaded_symbols+:} false; then :
12723 $as_echo_n "(cached) " >&6
12724 else
12725 if test -n "$lt_cv_sys_global_symbol_pipe"; then
12726 libltdl_cv_preloaded_symbols=yes
12727 else
12728 libltdl_cv_preloaded_symbols=no
12729 fi
12730
12731 fi
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
12733 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
12734 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
12735
12736 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
12737
12738 fi
12739
12740 # Set options
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752 # Check whether --with-included_ltdl was given.
12753 if test "${with_included_ltdl+set}" = set; then :
12754 withval=$with_included_ltdl;
12755 fi
12756
12757
12758 if test "x$with_included_ltdl" != xyes; then
12759 # We are not being forced to use the included libltdl sources, so
12760 # decide whether there is a useful installed version we can use.
12761 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
12762
12763 "
12764 if test "x$ac_cv_header_ltdl_h" = xyes; then :
12765 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
12766 #include <ltdl.h>
12767 "
12768 if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
12770 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
12771 if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
12772 $as_echo_n "(cached) " >&6
12773 else
12774 ac_check_lib_save_LIBS=$LIBS
12775 LIBS="-lltdl $LIBS"
12776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12777 /* end confdefs.h. */
12778
12779 /* Override any GCC internal prototype to avoid an error.
12780 Use char because int might match the return type of a GCC
12781 builtin and then its argument prototype would still apply. */
12782 #ifdef __cplusplus
12783 extern "C"
12784 #endif
12785 char lt_dladvise_preload ();
12786 int
12787 main ()
12788 {
12789 return lt_dladvise_preload ();
12790 ;
12791 return 0;
12792 }
12793 _ACEOF
12794 if ac_fn_c_try_link "$LINENO"; then :
12795 ac_cv_lib_ltdl_lt_dladvise_preload=yes
12796 else
12797 ac_cv_lib_ltdl_lt_dladvise_preload=no
12798 fi
12799 rm -f core conftest.err conftest.$ac_objext \
12800 conftest$ac_exeext conftest.$ac_ext
12801 LIBS=$ac_check_lib_save_LIBS
12802 fi
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
12804 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
12805 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
12806 with_included_ltdl=no
12807 else
12808 with_included_ltdl=yes
12809 fi
12810
12811 else
12812 with_included_ltdl=yes
12813 fi
12814
12815 else
12816 with_included_ltdl=yes
12817 fi
12818
12819
12820 fi
12821
12822
12823
12824
12825 # Check whether --with-ltdl_include was given.
12826 if test "${with_ltdl_include+set}" = set; then :
12827 withval=$with_ltdl_include;
12828 fi
12829
12830
12831 if test -n "$with_ltdl_include"; then
12832 if test -f "$with_ltdl_include/ltdl.h"; then :
12833 else
12834 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
12835 fi
12836 else
12837 with_ltdl_include=no
12838 fi
12839
12840
12841 # Check whether --with-ltdl_lib was given.
12842 if test "${with_ltdl_lib+set}" = set; then :
12843 withval=$with_ltdl_lib;
12844 fi
12845
12846
12847 if test -n "$with_ltdl_lib"; then
12848 if test -f "$with_ltdl_lib/libltdl.la"; then :
12849 else
12850 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
12851 fi
12852 else
12853 with_ltdl_lib=no
12854 fi
12855
12856 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
12857 ,yes,no,no,)
12858 case $enable_ltdl_convenience in
12859 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
12860 "") enable_ltdl_convenience=yes
12861 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
12862 esac
12863 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
12864 LTDLDEPS=$LIBLTDL
12865 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
12866
12867
12868
12869
12870
12871 # For backwards non-gettext consistent compatibility...
12872 INCLTDL="$LTDLINCL"
12873
12874
12875 ;;
12876 ,no,no,no,)
12877 # If the included ltdl is not to be used, then use the
12878 # preinstalled libltdl we found.
12879
12880 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
12881
12882 LIBLTDL=-lltdl
12883 LTDLDEPS=
12884 LTDLINCL=
12885 ;;
12886 ,no*,no,*)
12887 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
12888 ;;
12889 *) with_included_ltdl=no
12890 LIBLTDL="-L$with_ltdl_lib -lltdl"
12891 LTDLDEPS=
12892 LTDLINCL="-I$with_ltdl_include"
12893 ;;
12894 esac
12895 INCLTDL="$LTDLINCL"
12896
12897 # Report our decision...
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
12899 $as_echo_n "checking where to find libltdl headers... " >&6; }
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
12901 $as_echo "$LTDLINCL" >&6; }
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
12903 $as_echo_n "checking where to find libltdl library... " >&6; }
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
12905 $as_echo "$LIBLTDL" >&6; }
12906
12907
12908
12909 # Check whether --enable-ltdl-install was given.
12910 if test "${enable_ltdl_install+set}" = set; then :
12911 enableval=$enable_ltdl_install;
12912 fi
12913
12914
12915 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
12916 *yes*) ;;
12917 *) enable_ltdl_convenience=yes ;;
12918 esac
12919
12920 if test x"${enable_ltdl_install-no}" != xno; then
12921 INSTALL_LTDL_TRUE=
12922 INSTALL_LTDL_FALSE='#'
12923 else
12924 INSTALL_LTDL_TRUE='#'
12925 INSTALL_LTDL_FALSE=
12926 fi
12927
12928 if test x"${enable_ltdl_convenience-no}" != xno; then
12929 CONVENIENCE_LTDL_TRUE=
12930 CONVENIENCE_LTDL_FALSE='#'
12931 else
12932 CONVENIENCE_LTDL_TRUE='#'
12933 CONVENIENCE_LTDL_FALSE=
12934 fi
12935
12936
12937
12938
12939
12940
12941 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
12942 # the user used. This is so that ltdl.h can pick up the parent projects
12943 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
12944 # definitions required by ltdl.c.
12945 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
12946
12947
12948
12949 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
12950 do :
12951 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12952 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12953 "
12954 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12955 cat >>confdefs.h <<_ACEOF
12956 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12957 _ACEOF
12958
12959 fi
12960
12961 done
12962
12963
12964 for ac_func in closedir opendir readdir
12965 do :
12966 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12967 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12968 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12969 cat >>confdefs.h <<_ACEOF
12970 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12971 _ACEOF
12972
12973 else
12974
12975
12976 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
12977
12978 fi
12979 done
12980
12981 for ac_func in strlcat strlcpy
12982 do :
12983 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12984 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12985 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12986 cat >>confdefs.h <<_ACEOF
12987 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12988 _ACEOF
12989
12990 else
12991
12992
12993 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
12994
12995 fi
12996 done
12997
12998
12999
13000 cat >>confdefs.h <<_ACEOF
13001 #define LT_LIBEXT "$libext"
13002 _ACEOF
13003
13004
13005 name=
13006 eval "lt_libprefix=\"$libname_spec\""
13007
13008 cat >>confdefs.h <<_ACEOF
13009 #define LT_LIBPREFIX "$lt_libprefix"
13010 _ACEOF
13011
13012
13013 name=ltdl
13014 eval "LTDLOPEN=\"$libname_spec\""
13015
13016
13017
13018
13019
13020
13021
13022
13023 # Only expand once:
13024
13025
13026 LIBTOOL="$LIBTOOL --silent"
13027
13028 # Checks for libraries.
13029
13030 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
13031 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
13032
13033 else
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
13035 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
13036 if ${ac_cv_search_getaddrinfo+:} false; then :
13037 $as_echo_n "(cached) " >&6
13038 else
13039 ac_func_search_save_LIBS=$LIBS
13040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13041 /* end confdefs.h. */
13042
13043 /* Override any GCC internal prototype to avoid an error.
13044 Use char because int might match the return type of a GCC
13045 builtin and then its argument prototype would still apply. */
13046 #ifdef __cplusplus
13047 extern "C"
13048 #endif
13049 char getaddrinfo ();
13050 int
13051 main ()
13052 {
13053 return getaddrinfo ();
13054 ;
13055 return 0;
13056 }
13057 _ACEOF
13058 for ac_lib in '' nsl; do
13059 if test -z "$ac_lib"; then
13060 ac_res="none required"
13061 else
13062 ac_res=-l$ac_lib
13063 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13064 fi
13065 if ac_fn_c_try_link "$LINENO"; then :
13066 ac_cv_search_getaddrinfo=$ac_res
13067 fi
13068 rm -f core conftest.err conftest.$ac_objext \
13069 conftest$ac_exeext
13070 if ${ac_cv_search_getaddrinfo+:} false; then :
13071 break
13072 fi
13073 done
13074 if ${ac_cv_search_getaddrinfo+:} false; then :
13075
13076 else
13077 ac_cv_search_getaddrinfo=no
13078 fi
13079 rm conftest.$ac_ext
13080 LIBS=$ac_func_search_save_LIBS
13081 fi
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
13083 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
13084 ac_res=$ac_cv_search_getaddrinfo
13085 if test "$ac_res" != no; then :
13086 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13087
13088 fi
13089
13090 fi
13091
13092 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
13093 if test "x$ac_cv_func_getnameinfo" = xyes; then :
13094
13095 else
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
13097 $as_echo_n "checking for library containing getnameinfo... " >&6; }
13098 if ${ac_cv_search_getnameinfo+:} false; then :
13099 $as_echo_n "(cached) " >&6
13100 else
13101 ac_func_search_save_LIBS=$LIBS
13102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13103 /* end confdefs.h. */
13104
13105 /* Override any GCC internal prototype to avoid an error.
13106 Use char because int might match the return type of a GCC
13107 builtin and then its argument prototype would still apply. */
13108 #ifdef __cplusplus
13109 extern "C"
13110 #endif
13111 char getnameinfo ();
13112 int
13113 main ()
13114 {
13115 return getnameinfo ();
13116 ;
13117 return 0;
13118 }
13119 _ACEOF
13120 for ac_lib in '' nsl; do
13121 if test -z "$ac_lib"; then
13122 ac_res="none required"
13123 else
13124 ac_res=-l$ac_lib
13125 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13126 fi
13127 if ac_fn_c_try_link "$LINENO"; then :
13128 ac_cv_search_getnameinfo=$ac_res
13129 fi
13130 rm -f core conftest.err conftest.$ac_objext \
13131 conftest$ac_exeext
13132 if ${ac_cv_search_getnameinfo+:} false; then :
13133 break
13134 fi
13135 done
13136 if ${ac_cv_search_getnameinfo+:} false; then :
13137
13138 else
13139 ac_cv_search_getnameinfo=no
13140 fi
13141 rm conftest.$ac_ext
13142 LIBS=$ac_func_search_save_LIBS
13143 fi
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
13145 $as_echo "$ac_cv_search_getnameinfo" >&6; }
13146 ac_res=$ac_cv_search_getnameinfo
13147 if test "$ac_res" != no; then :
13148 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13149
13150 fi
13151
13152 fi
13153
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13155 $as_echo_n "checking for library containing socket... " >&6; }
13156 if ${ac_cv_search_socket+:} false; then :
13157 $as_echo_n "(cached) " >&6
13158 else
13159 ac_func_search_save_LIBS=$LIBS
13160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13161 /* end confdefs.h. */
13162
13163 /* Override any GCC internal prototype to avoid an error.
13164 Use char because int might match the return type of a GCC
13165 builtin and then its argument prototype would still apply. */
13166 #ifdef __cplusplus
13167 extern "C"
13168 #endif
13169 char socket ();
13170 int
13171 main ()
13172 {
13173 return socket ();
13174 ;
13175 return 0;
13176 }
13177 _ACEOF
13178 for ac_lib in '' socket; do
13179 if test -z "$ac_lib"; then
13180 ac_res="none required"
13181 else
13182 ac_res=-l$ac_lib
13183 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13184 fi
13185 if ac_fn_c_try_link "$LINENO"; then :
13186 ac_cv_search_socket=$ac_res
13187 fi
13188 rm -f core conftest.err conftest.$ac_objext \
13189 conftest$ac_exeext
13190 if ${ac_cv_search_socket+:} false; then :
13191 break
13192 fi
13193 done
13194 if ${ac_cv_search_socket+:} false; then :
13195
13196 else
13197 ac_cv_search_socket=no
13198 fi
13199 rm conftest.$ac_ext
13200 LIBS=$ac_func_search_save_LIBS
13201 fi
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13203 $as_echo "$ac_cv_search_socket" >&6; }
13204 ac_res=$ac_cv_search_socket
13205 if test "$ac_res" != no; then :
13206 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13207
13208 else
13209 as_fn_error $? "socket library not found" "$LINENO" 5
13210 fi
13211
13212 ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h>
13213 #include <sys/socket.h>
13214 #include <netdb.h>
13215
13216 "
13217 if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then :
13218
13219 cat >>confdefs.h <<_ACEOF
13220 #define HAVE_STRUCT_SOCKADDR_IN 1
13221 _ACEOF
13222
13223
13224 fi
13225 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
13226 #include <sys/socket.h>
13227 #include <netdb.h>
13228
13229 "
13230 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
13231
13232 cat >>confdefs.h <<_ACEOF
13233 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13234 _ACEOF
13235
13236
13237 fi
13238 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
13239 #include <sys/socket.h>
13240 #include <netdb.h>
13241
13242 "
13243 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
13244
13245 cat >>confdefs.h <<_ACEOF
13246 #define HAVE_STRUCT_ADDRINFO 1
13247 _ACEOF
13248
13249
13250 fi
13251
13252 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
13253 <sys/socket.h>
13254 "
13255 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
13256
13257 cat >>confdefs.h <<_ACEOF
13258 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
13259 _ACEOF
13260
13261
13262 fi
13263
13264
13265
13266 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#include <netinet/in.h>
13267 "
13268 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
13269
13270 $as_echo "#define IPV6 1" >>confdefs.h
13271
13272 fi
13273
13274
13275
13276 # Checks for typedefs, structures, and compiler characteristics.
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13278 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13279 if ${ac_cv_c_bigendian+:} false; then :
13280 $as_echo_n "(cached) " >&6
13281 else
13282 ac_cv_c_bigendian=unknown
13283 # See if we're dealing with a universal compiler.
13284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13285 /* end confdefs.h. */
13286 #ifndef __APPLE_CC__
13287 not a universal capable compiler
13288 #endif
13289 typedef int dummy;
13290
13291 _ACEOF
13292 if ac_fn_c_try_compile "$LINENO"; then :
13293
13294 # Check for potential -arch flags. It is not universal unless
13295 # there are at least two -arch flags with different values.
13296 ac_arch=
13297 ac_prev=
13298 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13299 if test -n "$ac_prev"; then
13300 case $ac_word in
13301 i?86 | x86_64 | ppc | ppc64)
13302 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13303 ac_arch=$ac_word
13304 else
13305 ac_cv_c_bigendian=universal
13306 break
13307 fi
13308 ;;
13309 esac
13310 ac_prev=
13311 elif test "x$ac_word" = "x-arch"; then
13312 ac_prev=arch
13313 fi
13314 done
13315 fi
13316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13317 if test $ac_cv_c_bigendian = unknown; then
13318 # See if sys/param.h defines the BYTE_ORDER macro.
13319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13320 /* end confdefs.h. */
13321 #include <sys/types.h>
13322 #include <sys/param.h>
13323
13324 int
13325 main ()
13326 {
13327 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13328 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13329 && LITTLE_ENDIAN)
13330 bogus endian macros
13331 #endif
13332
13333 ;
13334 return 0;
13335 }
13336 _ACEOF
13337 if ac_fn_c_try_compile "$LINENO"; then :
13338 # It does; now see whether it defined to BIG_ENDIAN or not.
13339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13340 /* end confdefs.h. */
13341 #include <sys/types.h>
13342 #include <sys/param.h>
13343
13344 int
13345 main ()
13346 {
13347 #if BYTE_ORDER != BIG_ENDIAN
13348 not big endian
13349 #endif
13350
13351 ;
13352 return 0;
13353 }
13354 _ACEOF
13355 if ac_fn_c_try_compile "$LINENO"; then :
13356 ac_cv_c_bigendian=yes
13357 else
13358 ac_cv_c_bigendian=no
13359 fi
13360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13361 fi
13362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13363 fi
13364 if test $ac_cv_c_bigendian = unknown; then
13365 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13367 /* end confdefs.h. */
13368 #include <limits.h>
13369
13370 int
13371 main ()
13372 {
13373 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13374 bogus endian macros
13375 #endif
13376
13377 ;
13378 return 0;
13379 }
13380 _ACEOF
13381 if ac_fn_c_try_compile "$LINENO"; then :
13382 # It does; now see whether it defined to _BIG_ENDIAN or not.
13383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13384 /* end confdefs.h. */
13385 #include <limits.h>
13386
13387 int
13388 main ()
13389 {
13390 #ifndef _BIG_ENDIAN
13391 not big endian
13392 #endif
13393
13394 ;
13395 return 0;
13396 }
13397 _ACEOF
13398 if ac_fn_c_try_compile "$LINENO"; then :
13399 ac_cv_c_bigendian=yes
13400 else
13401 ac_cv_c_bigendian=no
13402 fi
13403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13404 fi
13405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13406 fi
13407 if test $ac_cv_c_bigendian = unknown; then
13408 # Compile a test program.
13409 if test "$cross_compiling" = yes; then :
13410 # Try to guess by grepping values from an object file.
13411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13412 /* end confdefs.h. */
13413 short int ascii_mm[] =
13414 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13415 short int ascii_ii[] =
13416 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13417 int use_ascii (int i) {
13418 return ascii_mm[i] + ascii_ii[i];
13419 }
13420 short int ebcdic_ii[] =
13421 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13422 short int ebcdic_mm[] =
13423 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13424 int use_ebcdic (int i) {
13425 return ebcdic_mm[i] + ebcdic_ii[i];
13426 }
13427 extern int foo;
13428
13429 int
13430 main ()
13431 {
13432 return use_ascii (foo) == use_ebcdic (foo);
13433 ;
13434 return 0;
13435 }
13436 _ACEOF
13437 if ac_fn_c_try_compile "$LINENO"; then :
13438 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13439 ac_cv_c_bigendian=yes
13440 fi
13441 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13442 if test "$ac_cv_c_bigendian" = unknown; then
13443 ac_cv_c_bigendian=no
13444 else
13445 # finding both strings is unlikely to happen, but who knows?
13446 ac_cv_c_bigendian=unknown
13447 fi
13448 fi
13449 fi
13450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13451 else
13452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13453 /* end confdefs.h. */
13454 $ac_includes_default
13455 int
13456 main ()
13457 {
13458
13459 /* Are we little or big endian? From Harbison&Steele. */
13460 union
13461 {
13462 long int l;
13463 char c[sizeof (long int)];
13464 } u;
13465 u.l = 1;
13466 return u.c[sizeof (long int) - 1] == 1;
13467
13468 ;
13469 return 0;
13470 }
13471 _ACEOF
13472 if ac_fn_c_try_run "$LINENO"; then :
13473 ac_cv_c_bigendian=no
13474 else
13475 ac_cv_c_bigendian=yes
13476 fi
13477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13478 conftest.$ac_objext conftest.beam conftest.$ac_ext
13479 fi
13480
13481 fi
13482 fi
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13484 $as_echo "$ac_cv_c_bigendian" >&6; }
13485 case $ac_cv_c_bigendian in #(
13486 yes)
13487 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13488 ;; #(
13489 no)
13490 ;; #(
13491 universal)
13492
13493 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13494
13495 ;; #(
13496 *)
13497 as_fn_error $? "unknown endianness
13498 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13499 esac
13500
13501
13502 # Checks for library functions.
13503
13504
13505
13506 for ac_func in $ac_func_list
13507 do :
13508 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13509 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13510 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13511 cat >>confdefs.h <<_ACEOF
13512 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13513 _ACEOF
13514
13515 fi
13516 done
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528 # Checks for header files.
13529
13530
13531
13532 for ac_header in $ac_header_list
13533 do :
13534 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13535 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13536 "
13537 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13538 cat >>confdefs.h <<_ACEOF
13539 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13540 _ACEOF
13541
13542 fi
13543
13544 done
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
13563 $as_echo_n "checking for library containing crypt... " >&6; }
13564 if ${ac_cv_search_crypt+:} false; then :
13565 $as_echo_n "(cached) " >&6
13566 else
13567 ac_func_search_save_LIBS=$LIBS
13568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13569 /* end confdefs.h. */
13570
13571 /* Override any GCC internal prototype to avoid an error.
13572 Use char because int might match the return type of a GCC
13573 builtin and then its argument prototype would still apply. */
13574 #ifdef __cplusplus
13575 extern "C"
13576 #endif
13577 char crypt ();
13578 int
13579 main ()
13580 {
13581 return crypt ();
13582 ;
13583 return 0;
13584 }
13585 _ACEOF
13586 for ac_lib in '' crypt; do
13587 if test -z "$ac_lib"; then
13588 ac_res="none required"
13589 else
13590 ac_res=-l$ac_lib
13591 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13592 fi
13593 if ac_fn_c_try_link "$LINENO"; then :
13594 ac_cv_search_crypt=$ac_res
13595 fi
13596 rm -f core conftest.err conftest.$ac_objext \
13597 conftest$ac_exeext
13598 if ${ac_cv_search_crypt+:} false; then :
13599 break
13600 fi
13601 done
13602 if ${ac_cv_search_crypt+:} false; then :
13603
13604 else
13605 ac_cv_search_crypt=no
13606 fi
13607 rm conftest.$ac_ext
13608 LIBS=$ac_func_search_save_LIBS
13609 fi
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
13611 $as_echo "$ac_cv_search_crypt" >&6; }
13612 ac_res=$ac_cv_search_crypt
13613 if test "$ac_res" != no; then :
13614 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13615
13616 fi
13617
13618
13619 # Check whether --enable-libpcre was given.
13620 if test "${enable_libpcre+set}" = set; then :
13621 enableval=$enable_libpcre;
13622 else
13623 ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default"
13624 if test "x$ac_cv_header_pcre_h" = xyes; then :
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pcre_study" >&5
13626 $as_echo_n "checking for library containing pcre_study... " >&6; }
13627 if ${ac_cv_search_pcre_study+:} false; then :
13628 $as_echo_n "(cached) " >&6
13629 else
13630 ac_func_search_save_LIBS=$LIBS
13631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13632 /* end confdefs.h. */
13633
13634 /* Override any GCC internal prototype to avoid an error.
13635 Use char because int might match the return type of a GCC
13636 builtin and then its argument prototype would still apply. */
13637 #ifdef __cplusplus
13638 extern "C"
13639 #endif
13640 char pcre_study ();
13641 int
13642 main ()
13643 {
13644 return pcre_study ();
13645 ;
13646 return 0;
13647 }
13648 _ACEOF
13649 for ac_lib in '' pcre; do
13650 if test -z "$ac_lib"; then
13651 ac_res="none required"
13652 else
13653 ac_res=-l$ac_lib
13654 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13655 fi
13656 if ac_fn_c_try_link "$LINENO"; then :
13657 ac_cv_search_pcre_study=$ac_res
13658 fi
13659 rm -f core conftest.err conftest.$ac_objext \
13660 conftest$ac_exeext
13661 if ${ac_cv_search_pcre_study+:} false; then :
13662 break
13663 fi
13664 done
13665 if ${ac_cv_search_pcre_study+:} false; then :
13666
13667 else
13668 ac_cv_search_pcre_study=no
13669 fi
13670 rm conftest.$ac_ext
13671 LIBS=$ac_func_search_save_LIBS
13672 fi
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pcre_study" >&5
13674 $as_echo "$ac_cv_search_pcre_study" >&6; }
13675 ac_res=$ac_cv_search_pcre_study
13676 if test "$ac_res" != no; then :
13677 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13678
13679 $as_echo "#define HAVE_LIBPCRE 1" >>confdefs.h
13680
13681 fi
13682
13683 fi
13684
13685
13686 fi
13687
13688
13689 # Check whether --enable-openssl was given.
13690 if test "${enable_openssl+set}" = set; then :
13691 enableval=$enable_openssl; cf_enable_openssl=$enableval
13692 else
13693 cf_enable_openssl="auto"
13694 fi
13695
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
13697 $as_echo_n "checking for OpenSSL... " >&6; }
13698 if test "$cf_enable_openssl" != "no"; then
13699 cf_openssl_basedir=""
13700 if test "$cf_enable_openssl" != "auto" &&
13701 test "$cf_enable_openssl" != "yes"; then
13702 cf_openssl_basedir="${cf_enable_openssl}"
13703 else
13704 for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
13705 /opt /opt/openssl /usr/local/openssl; do
13706 if test -f "${dirs}/include/openssl/opensslv.h"; then
13707 cf_openssl_basedir="${dirs}"
13708 break
13709 fi
13710 done
13711 unset dirs
13712 fi
13713
13714 if test ! -z "$cf_openssl_basedir"; then
13715 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
13716 CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
13717 LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
13718 else
13719 cf_openssl_basedir=""
13720 fi
13721 else
13722 if test -f "/usr/include/openssl/opensslv.h"; then
13723 cf_openssl_basedir="/usr"
13724 fi
13725 fi
13726
13727 if test ! -z "$cf_openssl_basedir"; then
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
13729 $as_echo "$cf_openssl_basedir" >&6; }
13730 cf_enable_openssl="yes"
13731 else
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
13733 $as_echo "not found. Please check your path." >&6; }
13734 cf_enable_openssl="no"
13735 fi
13736 unset cf_openssl_basedir
13737 else
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13739 $as_echo "disabled" >&6; }
13740 fi
13741
13742 if test "$cf_enable_openssl" != "no"; then :
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.8 or above" >&5
13744 $as_echo_n "checking for OpenSSL 0.9.8 or above... " >&6; }
13745 if test "$cross_compiling" = yes; then :
13746 cf_openssl_version_ok=no
13747 else
13748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13749 /* end confdefs.h. */
13750
13751
13752 #include <openssl/opensslv.h>
13753 #include <stdlib.h>
13754 int
13755 main ()
13756 {
13757 exit(!(OPENSSL_VERSION_NUMBER >= 0x00908000));
13758 ;
13759 return 0;
13760 }
13761 _ACEOF
13762 if ac_fn_c_try_run "$LINENO"; then :
13763 cf_openssl_version_ok=yes
13764 else
13765 cf_openssl_version_ok=no
13766 fi
13767 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13768 conftest.$ac_objext conftest.beam conftest.$ac_ext
13769 fi
13770
13771
13772 if test "$cf_openssl_version_ok" = "yes"; then :
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13774 $as_echo "found" >&6; }
13775
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
13777 $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
13778 if ${ac_cv_lib_crypto_RSA_free+:} false; then :
13779 $as_echo_n "(cached) " >&6
13780 else
13781 ac_check_lib_save_LIBS=$LIBS
13782 LIBS="-lcrypto $LIBS"
13783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13784 /* end confdefs.h. */
13785
13786 /* Override any GCC internal prototype to avoid an error.
13787 Use char because int might match the return type of a GCC
13788 builtin and then its argument prototype would still apply. */
13789 #ifdef __cplusplus
13790 extern "C"
13791 #endif
13792 char RSA_free ();
13793 int
13794 main ()
13795 {
13796 return RSA_free ();
13797 ;
13798 return 0;
13799 }
13800 _ACEOF
13801 if ac_fn_c_try_link "$LINENO"; then :
13802 ac_cv_lib_crypto_RSA_free=yes
13803 else
13804 ac_cv_lib_crypto_RSA_free=no
13805 fi
13806 rm -f core conftest.err conftest.$ac_objext \
13807 conftest$ac_exeext conftest.$ac_ext
13808 LIBS=$ac_check_lib_save_LIBS
13809 fi
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
13811 $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
13812 if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
13813 cat >>confdefs.h <<_ACEOF
13814 #define HAVE_LIBCRYPTO 1
13815 _ACEOF
13816
13817 LIBS="-lcrypto $LIBS"
13818
13819 fi
13820
13821 if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
13823 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
13824 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
13825 $as_echo_n "(cached) " >&6
13826 else
13827 ac_check_lib_save_LIBS=$LIBS
13828 LIBS="-lssl $LIBS"
13829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13830 /* end confdefs.h. */
13831
13832 /* Override any GCC internal prototype to avoid an error.
13833 Use char because int might match the return type of a GCC
13834 builtin and then its argument prototype would still apply. */
13835 #ifdef __cplusplus
13836 extern "C"
13837 #endif
13838 char SSL_connect ();
13839 int
13840 main ()
13841 {
13842 return SSL_connect ();
13843 ;
13844 return 0;
13845 }
13846 _ACEOF
13847 if ac_fn_c_try_link "$LINENO"; then :
13848 ac_cv_lib_ssl_SSL_connect=yes
13849 else
13850 ac_cv_lib_ssl_SSL_connect=no
13851 fi
13852 rm -f core conftest.err conftest.$ac_objext \
13853 conftest$ac_exeext conftest.$ac_ext
13854 LIBS=$ac_check_lib_save_LIBS
13855 fi
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
13857 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
13858 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
13859 cat >>confdefs.h <<_ACEOF
13860 #define HAVE_LIBSSL 1
13861 _ACEOF
13862
13863 LIBS="-lssl $LIBS"
13864
13865 fi
13866
13867 fi
13868
13869 else
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
13871 $as_echo "no - OpenSSL support disabled" >&6; }
13872 cf_enable_openssl="no"
13873 fi
13874 fi
13875
13876 if test "$ac_cv_lib_ssl_SSL_connect" = yes; then
13877 ENABLE_SSL_TRUE=
13878 ENABLE_SSL_FALSE='#'
13879 else
13880 ENABLE_SSL_TRUE='#'
13881 ENABLE_SSL_FALSE=
13882 fi
13883
13884
13885
13886 # Check whether --enable-assert was given.
13887 if test "${enable_assert+set}" = set; then :
13888 enableval=$enable_assert; assert=$enableval
13889 else
13890 assert=no
13891 fi
13892
13893
13894 if test "$assert" = "no"; then :
13895
13896 $as_echo "#define NDEBUG 1" >>confdefs.h
13897
13898 fi
13899
13900
13901
13902 $as_echo "#define NICKNAMEHISTORYLENGTH 16384" >>confdefs.h
13903
13904
13905 $as_echo "#define MP_CHUNK_SIZE_CHANNEL 64*1024" >>confdefs.h
13906
13907
13908 $as_echo "#define MP_CHUNK_SIZE_MEMBER 32*1024" >>confdefs.h
13909
13910
13911 $as_echo "#define MP_CHUNK_SIZE_BAN 16*1024" >>confdefs.h
13912
13913
13914 $as_echo "#define MP_CHUNK_SIZE_CLIENT 256*1024" >>confdefs.h
13915
13916
13917 $as_echo "#define MP_CHUNK_SIZE_LCLIENT 128*1024" >>confdefs.h
13918
13919
13920 $as_echo "#define MP_CHUNK_SIZE_DNODE 8*1024" >>confdefs.h
13921
13922
13923 $as_echo "#define MP_CHUNK_SIZE_DBUF 512*1024" >>confdefs.h
13924
13925
13926 $as_echo "#define MP_CHUNK_SIZE_AUTH 32*1024" >>confdefs.h
13927
13928
13929 $as_echo "#define MP_CHUNK_SIZE_DNS 16*1024" >>confdefs.h
13930
13931
13932 $as_echo "#define MP_CHUNK_SIZE_WATCH 4*1024" >>confdefs.h
13933
13934
13935 # Argument processing.
13936
13937 desired_iopoll_mechanism="none"
13938 # Check whether --enable-kqueue was given.
13939 if test "${enable_kqueue+set}" = set; then :
13940 enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
13941 fi
13942
13943 # Check whether --enable-epoll was given.
13944 if test "${enable_epoll+set}" = set; then :
13945 enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
13946 fi
13947
13948 # Check whether --enable-devpoll was given.
13949 if test "${enable_devpoll+set}" = set; then :
13950 enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
13951 fi
13952
13953 # Check whether --enable-rtsigio was given.
13954 if test "${enable_rtsigio+set}" = set; then :
13955 enableval=$enable_rtsigio; desired_iopoll_mechanism="rtsigio"
13956 fi
13957
13958 # Check whether --enable-poll was given.
13959 if test "${enable_poll+set}" = set; then :
13960 enableval=$enable_poll; desired_iopoll_mechanism="poll"
13961 fi
13962
13963 # Check whether --enable-select was given.
13964 if test "${enable_select+set}" = set; then :
13965 enableval=$enable_select; desired_iopoll_mechanism="select"
13966 fi
13967
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
13969 $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
13970 iopoll_mechanism_none=0
13971
13972 cat >>confdefs.h <<_ACEOF
13973 #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
13974 _ACEOF
13975
13976 iopoll_mechanism_kqueue=1
13977
13978 cat >>confdefs.h <<_ACEOF
13979 #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
13980 _ACEOF
13981
13982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13983 /* end confdefs.h. */
13984 /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
13985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13986 #define kevent innocuous_kevent
13987
13988 /* System header to define __stub macros and hopefully few prototypes,
13989 which can conflict with char kevent (); below.
13990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13991 <limits.h> exists even on freestanding compilers. */
13992
13993 #ifdef __STDC__
13994 # include <limits.h>
13995 #else
13996 # include <assert.h>
13997 #endif
13998
13999 #undef kevent
14000
14001 /* Override any GCC internal prototype to avoid an error.
14002 Use char because int might match the return type of a GCC
14003 builtin and then its argument prototype would still apply. */
14004 #ifdef __cplusplus
14005 extern "C"
14006 #endif
14007 char kevent ();
14008 /* The GNU C library defines this for functions which it implements
14009 to always fail with ENOSYS. Some functions are actually named
14010 something starting with __ and the normal name is an alias. */
14011 #if defined __stub_kevent || defined __stub___kevent
14012 choke me
14013 #endif
14014
14015 int
14016 main ()
14017 {
14018 return kevent ();
14019 ;
14020 return 0;
14021 }
14022 _ACEOF
14023 if ac_fn_c_try_link "$LINENO"; then :
14024 is_kqueue_mechanism_available="yes"
14025 else
14026 is_kqueue_mechanism_available="no"
14027 fi
14028 rm -f core conftest.err conftest.$ac_objext \
14029 conftest$ac_exeext conftest.$ac_ext
14030 iopoll_mechanism_epoll=2
14031
14032 cat >>confdefs.h <<_ACEOF
14033 #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
14034 _ACEOF
14035
14036 if test "$cross_compiling" = yes; then :
14037 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14039 as_fn_error $? "cannot run test program while cross compiling
14040 See \`config.log' for more details" "$LINENO" 5; }
14041 else
14042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14043 /* end confdefs.h. */
14044
14045 #include <sys/epoll.h>
14046 #include <sys/syscall.h>
14047 #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
14048 #if !defined(__NR_epoll_create)
14049 #if defined(__ia64__)
14050 #define __NR_epoll_create 1243
14051 #elif defined(__x86_64__)
14052 #define __NR_epoll_create 214
14053 #elif defined(__sparc64__) || defined(__sparc__)
14054 #define __NR_epoll_create 193
14055 #elif defined(__s390__) || defined(__m68k__)
14056 #define __NR_epoll_create 249
14057 #elif defined(__ppc64__) || defined(__ppc__)
14058 #define __NR_epoll_create 236
14059 #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
14060 #define __NR_epoll_create 224
14061 #elif defined(__alpha__)
14062 #define __NR_epoll_create 407
14063 #elif defined(__sh64__)
14064 #define __NR_epoll_create 282
14065 #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
14066 #define __NR_epoll_create 254
14067 #else
14068 #error No system call numbers defined for epoll family.
14069 #endif
14070 #endif
14071 _syscall1(int, epoll_create, int, size)
14072 #endif
14073
14074 int
14075 main ()
14076 {
14077 return epoll_create(256) == -1 ? 1 : 0
14078 ;
14079 return 0;
14080 }
14081 _ACEOF
14082 if ac_fn_c_try_run "$LINENO"; then :
14083 is_epoll_mechanism_available="yes"
14084 else
14085 is_epoll_mechanism_available="no"
14086 fi
14087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14088 conftest.$ac_objext conftest.beam conftest.$ac_ext
14089 fi
14090
14091 iopoll_mechanism_devpoll=3
14092
14093 cat >>confdefs.h <<_ACEOF
14094 #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
14095 _ACEOF
14096
14097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14098 /* end confdefs.h. */
14099 #include <devpoll.h>
14100 int
14101 main ()
14102 {
14103
14104 ;
14105 return 0;
14106 }
14107 _ACEOF
14108 if ac_fn_c_try_compile "$LINENO"; then :
14109 is_devpoll_mechanism_available="yes"
14110 else
14111 is_devpoll_mechanism_available="no"
14112 fi
14113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14114 if test "$is_devpoll_mechanism_available" = "yes" ; then
14115
14116 $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
14117
14118 fi
14119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14120 /* end confdefs.h. */
14121 #include <sys/devpoll.h>
14122 int
14123 main ()
14124 {
14125
14126 ;
14127 return 0;
14128 }
14129 _ACEOF
14130 if ac_fn_c_try_compile "$LINENO"; then :
14131 is_devpoll_mechanism_available="yes"
14132 else
14133 is_devpoll_mechanism_available="no"
14134 fi
14135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14136 if test "$is_devpoll_mechanism_available" = "yes" ; then
14137
14138 $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
14139
14140 fi
14141 iopoll_mechanism_rtsigio=4
14142
14143 cat >>confdefs.h <<_ACEOF
14144 #define __IOPOLL_MECHANISM_RTSIGIO $iopoll_mechanism_rtsigio
14145 _ACEOF
14146
14147 if test "$cross_compiling" = yes; then :
14148 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14149 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14150 as_fn_error $? "cannot run test program while cross compiling
14151 See \`config.log' for more details" "$LINENO" 5; }
14152 else
14153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14154 /* end confdefs.h. */
14155
14156 #define _GNU_SOURCE
14157 #include <fcntl.h>
14158 static unsigned int have_f_setsig = 0;
14159
14160 int
14161 main ()
14162 {
14163
14164 #ifdef F_SETSIG
14165 have_f_setsig = 1;
14166 #endif
14167 return have_f_setsig == 0;
14168
14169 ;
14170 return 0;
14171 }
14172 _ACEOF
14173 if ac_fn_c_try_run "$LINENO"; then :
14174 is_rtsigio_mechanism_available="yes"
14175 else
14176 is_rtsigio_mechanism_available="no"
14177 fi
14178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14179 conftest.$ac_objext conftest.beam conftest.$ac_ext
14180 fi
14181
14182 iopoll_mechanism_poll=5
14183
14184 cat >>confdefs.h <<_ACEOF
14185 #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
14186 _ACEOF
14187
14188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14189 /* end confdefs.h. */
14190 /* Define poll to an innocuous variant, in case <limits.h> declares poll.
14191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14192 #define poll innocuous_poll
14193
14194 /* System header to define __stub macros and hopefully few prototypes,
14195 which can conflict with char poll (); below.
14196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14197 <limits.h> exists even on freestanding compilers. */
14198
14199 #ifdef __STDC__
14200 # include <limits.h>
14201 #else
14202 # include <assert.h>
14203 #endif
14204
14205 #undef poll
14206
14207 /* Override any GCC internal prototype to avoid an error.
14208 Use char because int might match the return type of a GCC
14209 builtin and then its argument prototype would still apply. */
14210 #ifdef __cplusplus
14211 extern "C"
14212 #endif
14213 char poll ();
14214 /* The GNU C library defines this for functions which it implements
14215 to always fail with ENOSYS. Some functions are actually named
14216 something starting with __ and the normal name is an alias. */
14217 #if defined __stub_poll || defined __stub___poll
14218 choke me
14219 #endif
14220
14221 int
14222 main ()
14223 {
14224 return poll ();
14225 ;
14226 return 0;
14227 }
14228 _ACEOF
14229 if ac_fn_c_try_link "$LINENO"; then :
14230 is_poll_mechanism_available="yes"
14231 else
14232 is_poll_mechanism_available="no"
14233 fi
14234 rm -f core conftest.err conftest.$ac_objext \
14235 conftest$ac_exeext conftest.$ac_ext
14236 iopoll_mechanism_select=6
14237
14238 cat >>confdefs.h <<_ACEOF
14239 #define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select
14240 _ACEOF
14241
14242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14243 /* end confdefs.h. */
14244 /* Define select to an innocuous variant, in case <limits.h> declares select.
14245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14246 #define select innocuous_select
14247
14248 /* System header to define __stub macros and hopefully few prototypes,
14249 which can conflict with char select (); below.
14250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14251 <limits.h> exists even on freestanding compilers. */
14252
14253 #ifdef __STDC__
14254 # include <limits.h>
14255 #else
14256 # include <assert.h>
14257 #endif
14258
14259 #undef select
14260
14261 /* Override any GCC internal prototype to avoid an error.
14262 Use char because int might match the return type of a GCC
14263 builtin and then its argument prototype would still apply. */
14264 #ifdef __cplusplus
14265 extern "C"
14266 #endif
14267 char select ();
14268 /* The GNU C library defines this for functions which it implements
14269 to always fail with ENOSYS. Some functions are actually named
14270 something starting with __ and the normal name is an alias. */
14271 #if defined __stub_select || defined __stub___select
14272 choke me
14273 #endif
14274
14275 int
14276 main ()
14277 {
14278 return select ();
14279 ;
14280 return 0;
14281 }
14282 _ACEOF
14283 if ac_fn_c_try_link "$LINENO"; then :
14284 is_select_mechanism_available="yes"
14285 else
14286 is_select_mechanism_available="no"
14287 fi
14288 rm -f core conftest.err conftest.$ac_objext \
14289 conftest$ac_exeext conftest.$ac_ext
14290 optimal_iopoll_mechanism="none"
14291 for mechanism in "kqueue" "epoll" "devpoll" "rtsigio" "poll" "select" ; do # order is important
14292 eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
14293 if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
14294 optimal_iopoll_mechanism="$mechanism"
14295 break
14296 fi
14297 done
14298 if test "$desired_iopoll_mechanism" = "none" ; then
14299 if test "$optimal_iopoll_mechanism" = "none" ; then
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14301 $as_echo "none" >&6; }
14302 as_fn_error $? "no iopoll mechanism found!" "$LINENO" 5
14303 else
14304 selected_iopoll_mechanism=$optimal_iopoll_mechanism
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14306 $as_echo "$selected_iopoll_mechanism" >&6; }
14307 fi
14308 else
14309 eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
14310 if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
14311 selected_iopoll_mechanism=$desired_iopoll_mechanism
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14313 $as_echo "$selected_iopoll_mechanism" >&6; }
14314 else
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14316 $as_echo "none" >&6; }
14317 as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
14318 fi
14319 fi
14320 eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
14321
14322 cat >>confdefs.h <<_ACEOF
14323 #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
14324 _ACEOF
14325
14326
14327
14328
14329 # Check whether --with-nicklen was given.
14330 if test "${with_nicklen+set}" = set; then :
14331 withval=$with_nicklen; nicklen="$withval"
14332 else
14333 nicklen="9"
14334 fi
14335
14336
14337 cat >>confdefs.h <<_ACEOF
14338 #define NICKLEN ($nicklen)
14339 _ACEOF
14340
14341
14342
14343
14344 # Check whether --with-topiclen was given.
14345 if test "${with_topiclen+set}" = set; then :
14346 withval=$with_topiclen; topiclen="$withval"
14347 else
14348 topiclen="160"
14349 fi
14350
14351
14352 cat >>confdefs.h <<_ACEOF
14353 #define TOPICLEN ($topiclen)
14354 _ACEOF
14355
14356
14357
14358 # Check whether --enable-halfops was given.
14359 if test "${enable_halfops+set}" = set; then :
14360 enableval=$enable_halfops; halfops="$enableval"
14361 else
14362 halfops="no"
14363 fi
14364
14365 if test "$halfops" = "yes" ; then
14366
14367 $as_echo "#define HALFOPS 1" >>confdefs.h
14368
14369 fi
14370
14371
14372 # Check whether --enable-debugging was given.
14373 if test "${enable_debugging+set}" = set; then :
14374 enableval=$enable_debugging; debugging="$enableval"
14375 else
14376 debugging="no"
14377 fi
14378
14379 if test "$debugging" = "yes" ; then
14380 CFLAGS="-Wall -g -O0"
14381 fi
14382
14383
14384 # Check whether --enable-warnings was given.
14385 if test "${enable_warnings+set}" = set; then :
14386 enableval=$enable_warnings; warnings="$enableval"
14387 else
14388 warnings="no"
14389 fi
14390
14391 if test "$warnings" = "yes" ; then
14392 CFLAGS="-Wall -Wextra -Wno-unused -Wcast-qual -Wcast-align -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wundef"
14393 fi
14394
14395
14396
14397 prefix_NONE=
14398 exec_prefix_NONE=
14399 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14400 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14401 eval ac_define_dir="\"$prefix\""
14402 eval ac_define_dir="\"$ac_define_dir\""
14403 PREFIX="$ac_define_dir"
14404
14405
14406 cat >>confdefs.h <<_ACEOF
14407 #define PREFIX "$ac_define_dir"
14408 _ACEOF
14409
14410 test "$prefix_NONE" && prefix=NONE
14411 test "$exec_prefix_NONE" && exec_prefix=NONE
14412
14413
14414 prefix_NONE=
14415 exec_prefix_NONE=
14416 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14417 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14418 eval ac_define_dir="\"$sysconfdir\""
14419 eval ac_define_dir="\"$ac_define_dir\""
14420 SYSCONFDIR="$ac_define_dir"
14421
14422
14423 cat >>confdefs.h <<_ACEOF
14424 #define SYSCONFDIR "$ac_define_dir"
14425 _ACEOF
14426
14427 test "$prefix_NONE" && prefix=NONE
14428 test "$exec_prefix_NONE" && exec_prefix=NONE
14429
14430
14431 prefix_NONE=
14432 exec_prefix_NONE=
14433 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14434 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14435 eval ac_define_dir="\"$libdir\""
14436 eval ac_define_dir="\"$ac_define_dir\""
14437 LIBDIR="$ac_define_dir"
14438
14439
14440 cat >>confdefs.h <<_ACEOF
14441 #define LIBDIR "$ac_define_dir"
14442 _ACEOF
14443
14444 test "$prefix_NONE" && prefix=NONE
14445 test "$exec_prefix_NONE" && exec_prefix=NONE
14446
14447
14448 prefix_NONE=
14449 exec_prefix_NONE=
14450 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14451 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14452 eval ac_define_dir="\"$datadir\""
14453 eval ac_define_dir="\"$ac_define_dir\""
14454 DATADIR="$ac_define_dir"
14455
14456
14457 cat >>confdefs.h <<_ACEOF
14458 #define DATADIR "$ac_define_dir"
14459 _ACEOF
14460
14461 test "$prefix_NONE" && prefix=NONE
14462 test "$exec_prefix_NONE" && exec_prefix=NONE
14463
14464
14465 prefix_NONE=
14466 exec_prefix_NONE=
14467 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14468 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14469 eval ac_define_dir="\"$localstatedir\""
14470 eval ac_define_dir="\"$ac_define_dir\""
14471 LOCALSTATEDIR="$ac_define_dir"
14472
14473
14474 cat >>confdefs.h <<_ACEOF
14475 #define LOCALSTATEDIR "$ac_define_dir"
14476 _ACEOF
14477
14478 test "$prefix_NONE" && prefix=NONE
14479 test "$exec_prefix_NONE" && exec_prefix=NONE
14480
14481
14482 ac_config_files="$ac_config_files Makefile src/Makefile libltdl/Makefile messages/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile help/opers/Makefile help/users/Makefile tools/Makefile"
14483
14484
14485 cat >confcache <<\_ACEOF
14486 # This file is a shell script that caches the results of configure
14487 # tests run on this system so they can be shared between configure
14488 # scripts and configure runs, see configure's option --config-cache.
14489 # It is not useful on other systems. If it contains results you don't
14490 # want to keep, you may remove or edit it.
14491 #
14492 # config.status only pays attention to the cache file if you give it
14493 # the --recheck option to rerun configure.
14494 #
14495 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14496 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14497 # following values.
14498
14499 _ACEOF
14500
14501 # The following way of writing the cache mishandles newlines in values,
14502 # but we know of no workaround that is simple, portable, and efficient.
14503 # So, we kill variables containing newlines.
14504 # Ultrix sh set writes to stderr and can't be redirected directly,
14505 # and sets the high bit in the cache file unless we assign to the vars.
14506 (
14507 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14508 eval ac_val=\$$ac_var
14509 case $ac_val in #(
14510 *${as_nl}*)
14511 case $ac_var in #(
14512 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14513 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14514 esac
14515 case $ac_var in #(
14516 _ | IFS | as_nl) ;; #(
14517 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14518 *) { eval $ac_var=; unset $ac_var;} ;;
14519 esac ;;
14520 esac
14521 done
14522
14523 (set) 2>&1 |
14524 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14525 *${as_nl}ac_space=\ *)
14526 # `set' does not quote correctly, so add quotes: double-quote
14527 # substitution turns \\\\ into \\, and sed turns \\ into \.
14528 sed -n \
14529 "s/'/'\\\\''/g;
14530 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14531 ;; #(
14532 *)
14533 # `set' quotes correctly as required by POSIX, so do not add quotes.
14534 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14535 ;;
14536 esac |
14537 sort
14538 ) |
14539 sed '
14540 /^ac_cv_env_/b end
14541 t clear
14542 :clear
14543 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14544 t end
14545 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14546 :end' >>confcache
14547 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14548 if test -w "$cache_file"; then
14549 if test "x$cache_file" != "x/dev/null"; then
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14551 $as_echo "$as_me: updating cache $cache_file" >&6;}
14552 if test ! -f "$cache_file" || test -h "$cache_file"; then
14553 cat confcache >"$cache_file"
14554 else
14555 case $cache_file in #(
14556 */* | ?:*)
14557 mv -f confcache "$cache_file"$$ &&
14558 mv -f "$cache_file"$$ "$cache_file" ;; #(
14559 *)
14560 mv -f confcache "$cache_file" ;;
14561 esac
14562 fi
14563 fi
14564 else
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14566 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14567 fi
14568 fi
14569 rm -f confcache
14570
14571 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14572 # Let make expand exec_prefix.
14573 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14574
14575 DEFS=-DHAVE_CONFIG_H
14576
14577 ac_libobjs=
14578 ac_ltlibobjs=
14579 U=
14580 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14581 # 1. Remove the extension, and $U if already installed.
14582 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14583 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14584 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14585 # will be set to the directory where LIBOBJS objects are built.
14586 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14587 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14588 done
14589 LIBOBJS=$ac_libobjs
14590
14591 LTLIBOBJS=$ac_ltlibobjs
14592
14593
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14595 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14596 if test -n "$am_sleep_pid"; then
14597 # Hide warnings about reused PIDs.
14598 wait $am_sleep_pid 2>/dev/null
14599 fi
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14601 $as_echo "done" >&6; }
14602 if test -n "$EXEEXT"; then
14603 am__EXEEXT_TRUE=
14604 am__EXEEXT_FALSE='#'
14605 else
14606 am__EXEEXT_TRUE='#'
14607 am__EXEEXT_FALSE=
14608 fi
14609
14610 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14611 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14612 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14613 fi
14614 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14615 as_fn_error $? "conditional \"AMDEP\" was never defined.
14616 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14617 fi
14618 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14619 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14620 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14621 fi
14622 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
14623 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
14624 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14625 fi
14626 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
14627 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
14628 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14629 fi
14630 LT_CONFIG_H=config.h
14631
14632 _ltdl_libobjs=
14633 _ltdl_ltlibobjs=
14634 if test -n "$_LT_LIBOBJS"; then
14635 # Remove the extension.
14636 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
14637 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
14638 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
14639 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
14640 done
14641 fi
14642 ltdl_LIBOBJS=$_ltdl_libobjs
14643
14644 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
14645
14646
14647
14648 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
14649 as_fn_error $? "conditional \"ENABLE_SSL\" was never defined.
14650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14651 fi
14652
14653 : "${CONFIG_STATUS=./config.status}"
14654 ac_write_fail=0
14655 ac_clean_files_save=$ac_clean_files
14656 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14658 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14659 as_write_fail=0
14660 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14661 #! $SHELL
14662 # Generated by $as_me.
14663 # Run this file to recreate the current configuration.
14664 # Compiler output produced by configure, useful for debugging
14665 # configure, is in config.log if it exists.
14666
14667 debug=false
14668 ac_cs_recheck=false
14669 ac_cs_silent=false
14670
14671 SHELL=\${CONFIG_SHELL-$SHELL}
14672 export SHELL
14673 _ASEOF
14674 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14675 ## -------------------- ##
14676 ## M4sh Initialization. ##
14677 ## -------------------- ##
14678
14679 # Be more Bourne compatible
14680 DUALCASE=1; export DUALCASE # for MKS sh
14681 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14682 emulate sh
14683 NULLCMD=:
14684 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14685 # is contrary to our usage. Disable this feature.
14686 alias -g '${1+"$@"}'='"$@"'
14687 setopt NO_GLOB_SUBST
14688 else
14689 case `(set -o) 2>/dev/null` in #(
14690 *posix*) :
14691 set -o posix ;; #(
14692 *) :
14693 ;;
14694 esac
14695 fi
14696
14697
14698 as_nl='
14699 '
14700 export as_nl
14701 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14702 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14703 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14704 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14705 # Prefer a ksh shell builtin over an external printf program on Solaris,
14706 # but without wasting forks for bash or zsh.
14707 if test -z "$BASH_VERSION$ZSH_VERSION" \
14708 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14709 as_echo='print -r --'
14710 as_echo_n='print -rn --'
14711 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14712 as_echo='printf %s\n'
14713 as_echo_n='printf %s'
14714 else
14715 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14716 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14717 as_echo_n='/usr/ucb/echo -n'
14718 else
14719 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14720 as_echo_n_body='eval
14721 arg=$1;
14722 case $arg in #(
14723 *"$as_nl"*)
14724 expr "X$arg" : "X\\(.*\\)$as_nl";
14725 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14726 esac;
14727 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14728 '
14729 export as_echo_n_body
14730 as_echo_n='sh -c $as_echo_n_body as_echo'
14731 fi
14732 export as_echo_body
14733 as_echo='sh -c $as_echo_body as_echo'
14734 fi
14735
14736 # The user is always right.
14737 if test "${PATH_SEPARATOR+set}" != set; then
14738 PATH_SEPARATOR=:
14739 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14740 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14741 PATH_SEPARATOR=';'
14742 }
14743 fi
14744
14745
14746 # IFS
14747 # We need space, tab and new line, in precisely that order. Quoting is
14748 # there to prevent editors from complaining about space-tab.
14749 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14750 # splitting by setting IFS to empty value.)
14751 IFS=" "" $as_nl"
14752
14753 # Find who we are. Look in the path if we contain no directory separator.
14754 as_myself=
14755 case $0 in #((
14756 *[\\/]* ) as_myself=$0 ;;
14757 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14758 for as_dir in $PATH
14759 do
14760 IFS=$as_save_IFS
14761 test -z "$as_dir" && as_dir=.
14762 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14763 done
14764 IFS=$as_save_IFS
14765
14766 ;;
14767 esac
14768 # We did not find ourselves, most probably we were run as `sh COMMAND'
14769 # in which case we are not to be found in the path.
14770 if test "x$as_myself" = x; then
14771 as_myself=$0
14772 fi
14773 if test ! -f "$as_myself"; then
14774 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14775 exit 1
14776 fi
14777
14778 # Unset variables that we do not need and which cause bugs (e.g. in
14779 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14780 # suppresses any "Segmentation fault" message there. '((' could
14781 # trigger a bug in pdksh 5.2.14.
14782 for as_var in BASH_ENV ENV MAIL MAILPATH
14783 do eval test x\${$as_var+set} = xset \
14784 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14785 done
14786 PS1='$ '
14787 PS2='> '
14788 PS4='+ '
14789
14790 # NLS nuisances.
14791 LC_ALL=C
14792 export LC_ALL
14793 LANGUAGE=C
14794 export LANGUAGE
14795
14796 # CDPATH.
14797 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14798
14799
14800 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14801 # ----------------------------------------
14802 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14803 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14804 # script with STATUS, using 1 if that was 0.
14805 as_fn_error ()
14806 {
14807 as_status=$1; test $as_status -eq 0 && as_status=1
14808 if test "$4"; then
14809 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14810 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14811 fi
14812 $as_echo "$as_me: error: $2" >&2
14813 as_fn_exit $as_status
14814 } # as_fn_error
14815
14816
14817 # as_fn_set_status STATUS
14818 # -----------------------
14819 # Set $? to STATUS, without forking.
14820 as_fn_set_status ()
14821 {
14822 return $1
14823 } # as_fn_set_status
14824
14825 # as_fn_exit STATUS
14826 # -----------------
14827 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14828 as_fn_exit ()
14829 {
14830 set +e
14831 as_fn_set_status $1
14832 exit $1
14833 } # as_fn_exit
14834
14835 # as_fn_unset VAR
14836 # ---------------
14837 # Portably unset VAR.
14838 as_fn_unset ()
14839 {
14840 { eval $1=; unset $1;}
14841 }
14842 as_unset=as_fn_unset
14843 # as_fn_append VAR VALUE
14844 # ----------------------
14845 # Append the text in VALUE to the end of the definition contained in VAR. Take
14846 # advantage of any shell optimizations that allow amortized linear growth over
14847 # repeated appends, instead of the typical quadratic growth present in naive
14848 # implementations.
14849 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14850 eval 'as_fn_append ()
14851 {
14852 eval $1+=\$2
14853 }'
14854 else
14855 as_fn_append ()
14856 {
14857 eval $1=\$$1\$2
14858 }
14859 fi # as_fn_append
14860
14861 # as_fn_arith ARG...
14862 # ------------------
14863 # Perform arithmetic evaluation on the ARGs, and store the result in the
14864 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14865 # must be portable across $(()) and expr.
14866 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14867 eval 'as_fn_arith ()
14868 {
14869 as_val=$(( $* ))
14870 }'
14871 else
14872 as_fn_arith ()
14873 {
14874 as_val=`expr "$@" || test $? -eq 1`
14875 }
14876 fi # as_fn_arith
14877
14878
14879 if expr a : '\(a\)' >/dev/null 2>&1 &&
14880 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14881 as_expr=expr
14882 else
14883 as_expr=false
14884 fi
14885
14886 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14887 as_basename=basename
14888 else
14889 as_basename=false
14890 fi
14891
14892 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14893 as_dirname=dirname
14894 else
14895 as_dirname=false
14896 fi
14897
14898 as_me=`$as_basename -- "$0" ||
14899 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14900 X"$0" : 'X\(//\)$' \| \
14901 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14902 $as_echo X/"$0" |
14903 sed '/^.*\/\([^/][^/]*\)\/*$/{
14904 s//\1/
14905 q
14906 }
14907 /^X\/\(\/\/\)$/{
14908 s//\1/
14909 q
14910 }
14911 /^X\/\(\/\).*/{
14912 s//\1/
14913 q
14914 }
14915 s/.*/./; q'`
14916
14917 # Avoid depending upon Character Ranges.
14918 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14919 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14920 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14921 as_cr_digits='0123456789'
14922 as_cr_alnum=$as_cr_Letters$as_cr_digits
14923
14924 ECHO_C= ECHO_N= ECHO_T=
14925 case `echo -n x` in #(((((
14926 -n*)
14927 case `echo 'xy\c'` in
14928 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14929 xy) ECHO_C='\c';;
14930 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14931 ECHO_T=' ';;
14932 esac;;
14933 *)
14934 ECHO_N='-n';;
14935 esac
14936
14937 rm -f conf$$ conf$$.exe conf$$.file
14938 if test -d conf$$.dir; then
14939 rm -f conf$$.dir/conf$$.file
14940 else
14941 rm -f conf$$.dir
14942 mkdir conf$$.dir 2>/dev/null
14943 fi
14944 if (echo >conf$$.file) 2>/dev/null; then
14945 if ln -s conf$$.file conf$$ 2>/dev/null; then
14946 as_ln_s='ln -s'
14947 # ... but there are two gotchas:
14948 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14949 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14950 # In both cases, we have to default to `cp -pR'.
14951 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14952 as_ln_s='cp -pR'
14953 elif ln conf$$.file conf$$ 2>/dev/null; then
14954 as_ln_s=ln
14955 else
14956 as_ln_s='cp -pR'
14957 fi
14958 else
14959 as_ln_s='cp -pR'
14960 fi
14961 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14962 rmdir conf$$.dir 2>/dev/null
14963
14964
14965 # as_fn_mkdir_p
14966 # -------------
14967 # Create "$as_dir" as a directory, including parents if necessary.
14968 as_fn_mkdir_p ()
14969 {
14970
14971 case $as_dir in #(
14972 -*) as_dir=./$as_dir;;
14973 esac
14974 test -d "$as_dir" || eval $as_mkdir_p || {
14975 as_dirs=
14976 while :; do
14977 case $as_dir in #(
14978 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14979 *) as_qdir=$as_dir;;
14980 esac
14981 as_dirs="'$as_qdir' $as_dirs"
14982 as_dir=`$as_dirname -- "$as_dir" ||
14983 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14984 X"$as_dir" : 'X\(//\)[^/]' \| \
14985 X"$as_dir" : 'X\(//\)$' \| \
14986 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14987 $as_echo X"$as_dir" |
14988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14989 s//\1/
14990 q
14991 }
14992 /^X\(\/\/\)[^/].*/{
14993 s//\1/
14994 q
14995 }
14996 /^X\(\/\/\)$/{
14997 s//\1/
14998 q
14999 }
15000 /^X\(\/\).*/{
15001 s//\1/
15002 q
15003 }
15004 s/.*/./; q'`
15005 test -d "$as_dir" && break
15006 done
15007 test -z "$as_dirs" || eval "mkdir $as_dirs"
15008 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15009
15010
15011 } # as_fn_mkdir_p
15012 if mkdir -p . 2>/dev/null; then
15013 as_mkdir_p='mkdir -p "$as_dir"'
15014 else
15015 test -d ./-p && rmdir ./-p
15016 as_mkdir_p=false
15017 fi
15018
15019
15020 # as_fn_executable_p FILE
15021 # -----------------------
15022 # Test if FILE is an executable regular file.
15023 as_fn_executable_p ()
15024 {
15025 test -f "$1" && test -x "$1"
15026 } # as_fn_executable_p
15027 as_test_x='test -x'
15028 as_executable_p=as_fn_executable_p
15029
15030 # Sed expression to map a string onto a valid CPP name.
15031 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15032
15033 # Sed expression to map a string onto a valid variable name.
15034 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15035
15036
15037 exec 6>&1
15038 ## ----------------------------------- ##
15039 ## Main body of $CONFIG_STATUS script. ##
15040 ## ----------------------------------- ##
15041 _ASEOF
15042 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15043
15044 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15045 # Save the log message, to keep $0 and so on meaningful, and to
15046 # report actual input values of CONFIG_FILES etc. instead of their
15047 # values after options handling.
15048 ac_log="
15049 This file was extended by ircd-hybrid $as_me 8.0.0, which was
15050 generated by GNU Autoconf 2.69. Invocation command line was
15051
15052 CONFIG_FILES = $CONFIG_FILES
15053 CONFIG_HEADERS = $CONFIG_HEADERS
15054 CONFIG_LINKS = $CONFIG_LINKS
15055 CONFIG_COMMANDS = $CONFIG_COMMANDS
15056 $ $0 $@
15057
15058 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15059 "
15060
15061 _ACEOF
15062
15063 case $ac_config_files in *"
15064 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15065 esac
15066
15067 case $ac_config_headers in *"
15068 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15069 esac
15070
15071
15072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15073 # Files that config.status was made for.
15074 config_files="$ac_config_files"
15075 config_headers="$ac_config_headers"
15076 config_commands="$ac_config_commands"
15077
15078 _ACEOF
15079
15080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15081 ac_cs_usage="\
15082 \`$as_me' instantiates files and other configuration actions
15083 from templates according to the current configuration. Unless the files
15084 and actions are specified as TAGs, all are instantiated by default.
15085
15086 Usage: $0 [OPTION]... [TAG]...
15087
15088 -h, --help print this help, then exit
15089 -V, --version print version number and configuration settings, then exit
15090 --config print configuration, then exit
15091 -q, --quiet, --silent
15092 do not print progress messages
15093 -d, --debug don't remove temporary files
15094 --recheck update $as_me by reconfiguring in the same conditions
15095 --file=FILE[:TEMPLATE]
15096 instantiate the configuration file FILE
15097 --header=FILE[:TEMPLATE]
15098 instantiate the configuration header FILE
15099
15100 Configuration files:
15101 $config_files
15102
15103 Configuration headers:
15104 $config_headers
15105
15106 Configuration commands:
15107 $config_commands
15108
15109 Report bugs to <bugs@ircd-hybrid.org>."
15110
15111 _ACEOF
15112 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15113 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15114 ac_cs_version="\\
15115 ircd-hybrid config.status 8.0.0
15116 configured by $0, generated by GNU Autoconf 2.69,
15117 with options \\"\$ac_cs_config\\"
15118
15119 Copyright (C) 2012 Free Software Foundation, Inc.
15120 This config.status script is free software; the Free Software Foundation
15121 gives unlimited permission to copy, distribute and modify it."
15122
15123 ac_pwd='$ac_pwd'
15124 srcdir='$srcdir'
15125 INSTALL='$INSTALL'
15126 MKDIR_P='$MKDIR_P'
15127 AWK='$AWK'
15128 test -n "\$AWK" || AWK=awk
15129 _ACEOF
15130
15131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15132 # The default lists apply if the user does not specify any file.
15133 ac_need_defaults=:
15134 while test $# != 0
15135 do
15136 case $1 in
15137 --*=?*)
15138 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15139 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15140 ac_shift=:
15141 ;;
15142 --*=)
15143 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15144 ac_optarg=
15145 ac_shift=:
15146 ;;
15147 *)
15148 ac_option=$1
15149 ac_optarg=$2
15150 ac_shift=shift
15151 ;;
15152 esac
15153
15154 case $ac_option in
15155 # Handling of the options.
15156 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15157 ac_cs_recheck=: ;;
15158 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15159 $as_echo "$ac_cs_version"; exit ;;
15160 --config | --confi | --conf | --con | --co | --c )
15161 $as_echo "$ac_cs_config"; exit ;;
15162 --debug | --debu | --deb | --de | --d | -d )
15163 debug=: ;;
15164 --file | --fil | --fi | --f )
15165 $ac_shift
15166 case $ac_optarg in
15167 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15168 '') as_fn_error $? "missing file argument" ;;
15169 esac
15170 as_fn_append CONFIG_FILES " '$ac_optarg'"
15171 ac_need_defaults=false;;
15172 --header | --heade | --head | --hea )
15173 $ac_shift
15174 case $ac_optarg in
15175 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15176 esac
15177 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15178 ac_need_defaults=false;;
15179 --he | --h)
15180 # Conflict between --help and --header
15181 as_fn_error $? "ambiguous option: \`$1'
15182 Try \`$0 --help' for more information.";;
15183 --help | --hel | -h )
15184 $as_echo "$ac_cs_usage"; exit ;;
15185 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15186 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15187 ac_cs_silent=: ;;
15188
15189 # This is an error.
15190 -*) as_fn_error $? "unrecognized option: \`$1'
15191 Try \`$0 --help' for more information." ;;
15192
15193 *) as_fn_append ac_config_targets " $1"
15194 ac_need_defaults=false ;;
15195
15196 esac
15197 shift
15198 done
15199
15200 ac_configure_extra_args=
15201
15202 if $ac_cs_silent; then
15203 exec 6>/dev/null
15204 ac_configure_extra_args="$ac_configure_extra_args --silent"
15205 fi
15206
15207 _ACEOF
15208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15209 if \$ac_cs_recheck; then
15210 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15211 shift
15212 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15213 CONFIG_SHELL='$SHELL'
15214 export CONFIG_SHELL
15215 exec "\$@"
15216 fi
15217
15218 _ACEOF
15219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15220 exec 5>>config.log
15221 {
15222 echo
15223 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15224 ## Running $as_me. ##
15225 _ASBOX
15226 $as_echo "$ac_log"
15227 } >&5
15228
15229 _ACEOF
15230 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15231 #
15232 # INIT-COMMANDS
15233 #
15234 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15235
15236
15237 # The HP-UX ksh and POSIX shell print the target directory to stdout
15238 # if CDPATH is set.
15239 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15240
15241 sed_quote_subst='$sed_quote_subst'
15242 double_quote_subst='$double_quote_subst'
15243 delay_variable_subst='$delay_variable_subst'
15244 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15245 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15246 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15247 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15248 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15249 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15250 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15251 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15252 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15253 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15254 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15255 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15256 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15257 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15258 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15259 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15260 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15261 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15262 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15263 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15264 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15265 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15266 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15267 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15268 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15269 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15270 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15271 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15272 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15273 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15274 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15275 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15276 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15277 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15278 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15279 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15280 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15281 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15282 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15283 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15284 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15285 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15286 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15287 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15288 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15289 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15290 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15291 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15292 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15293 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15294 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15295 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15296 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15297 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15298 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15299 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15300 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"`'
15301 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15302 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15303 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15304 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15305 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15306 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15307 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15308 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15309 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15310 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15311 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15312 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15313 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15314 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15315 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15316 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15317 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15318 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15319 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15320 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15321 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15322 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15323 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15324 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15325 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15326 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15327 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15328 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15329 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15330 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15331 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15332 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15333 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15334 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15335 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15336 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15337 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15338 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15339 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15340 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15341 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15342 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15343 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15344 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15345 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15346 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15347 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15348 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15349 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15350 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15351 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15352 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15353 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15354 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15355 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15356 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15357 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15358 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15359 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15360 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15361 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15362 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15363 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15364 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15365 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15366 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15367 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15368 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15369 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15370 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15371 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15372 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15373 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15374
15375 LTCC='$LTCC'
15376 LTCFLAGS='$LTCFLAGS'
15377 compiler='$compiler_DEFAULT'
15378
15379 # A function that is used when there is no print builtin or printf.
15380 func_fallback_echo ()
15381 {
15382 eval 'cat <<_LTECHO_EOF
15383 \$1
15384 _LTECHO_EOF'
15385 }
15386
15387 # Quote evaled strings.
15388 for var in SHELL \
15389 ECHO \
15390 PATH_SEPARATOR \
15391 SED \
15392 GREP \
15393 EGREP \
15394 FGREP \
15395 LD \
15396 NM \
15397 LN_S \
15398 lt_SP2NL \
15399 lt_NL2SP \
15400 reload_flag \
15401 OBJDUMP \
15402 deplibs_check_method \
15403 file_magic_cmd \
15404 file_magic_glob \
15405 want_nocaseglob \
15406 DLLTOOL \
15407 sharedlib_from_linklib_cmd \
15408 AR \
15409 AR_FLAGS \
15410 archiver_list_spec \
15411 STRIP \
15412 RANLIB \
15413 CC \
15414 CFLAGS \
15415 compiler \
15416 lt_cv_sys_global_symbol_pipe \
15417 lt_cv_sys_global_symbol_to_cdecl \
15418 lt_cv_sys_global_symbol_to_c_name_address \
15419 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15420 nm_file_list_spec \
15421 lt_prog_compiler_no_builtin_flag \
15422 lt_prog_compiler_pic \
15423 lt_prog_compiler_wl \
15424 lt_prog_compiler_static \
15425 lt_cv_prog_compiler_c_o \
15426 need_locks \
15427 MANIFEST_TOOL \
15428 DSYMUTIL \
15429 NMEDIT \
15430 LIPO \
15431 OTOOL \
15432 OTOOL64 \
15433 shrext_cmds \
15434 export_dynamic_flag_spec \
15435 whole_archive_flag_spec \
15436 compiler_needs_object \
15437 with_gnu_ld \
15438 allow_undefined_flag \
15439 no_undefined_flag \
15440 hardcode_libdir_flag_spec \
15441 hardcode_libdir_separator \
15442 exclude_expsyms \
15443 include_expsyms \
15444 file_list_spec \
15445 variables_saved_for_relink \
15446 libname_spec \
15447 library_names_spec \
15448 soname_spec \
15449 install_override_mode \
15450 finish_eval \
15451 old_striplib \
15452 striplib; do
15453 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15454 *[\\\\\\\`\\"\\\$]*)
15455 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15456 ;;
15457 *)
15458 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15459 ;;
15460 esac
15461 done
15462
15463 # Double-quote double-evaled strings.
15464 for var in reload_cmds \
15465 old_postinstall_cmds \
15466 old_postuninstall_cmds \
15467 old_archive_cmds \
15468 extract_expsyms_cmds \
15469 old_archive_from_new_cmds \
15470 old_archive_from_expsyms_cmds \
15471 archive_cmds \
15472 archive_expsym_cmds \
15473 module_cmds \
15474 module_expsym_cmds \
15475 export_symbols_cmds \
15476 prelink_cmds \
15477 postlink_cmds \
15478 postinstall_cmds \
15479 postuninstall_cmds \
15480 finish_cmds \
15481 sys_lib_search_path_spec \
15482 sys_lib_dlsearch_path_spec; do
15483 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15484 *[\\\\\\\`\\"\\\$]*)
15485 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15486 ;;
15487 *)
15488 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15489 ;;
15490 esac
15491 done
15492
15493 ac_aux_dir='$ac_aux_dir'
15494 xsi_shell='$xsi_shell'
15495 lt_shell_append='$lt_shell_append'
15496
15497 # See if we are running on zsh, and set the options which allow our
15498 # commands through without removal of \ escapes INIT.
15499 if test -n "\${ZSH_VERSION+set}" ; then
15500 setopt NO_GLOB_SUBST
15501 fi
15502
15503
15504 PACKAGE='$PACKAGE'
15505 VERSION='$VERSION'
15506 TIMESTAMP='$TIMESTAMP'
15507 RM='$RM'
15508 ofile='$ofile'
15509
15510
15511
15512
15513 _ACEOF
15514
15515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15516
15517 # Handling of arguments.
15518 for ac_config_target in $ac_config_targets
15519 do
15520 case $ac_config_target in
15521 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15522 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15523 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15524 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15525 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15526 "libltdl/Makefile") CONFIG_FILES="$CONFIG_FILES libltdl/Makefile" ;;
15527 "messages/Makefile") CONFIG_FILES="$CONFIG_FILES messages/Makefile" ;;
15528 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
15529 "modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;;
15530 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15531 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
15532 "help/opers/Makefile") CONFIG_FILES="$CONFIG_FILES help/opers/Makefile" ;;
15533 "help/users/Makefile") CONFIG_FILES="$CONFIG_FILES help/users/Makefile" ;;
15534 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
15535
15536 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15537 esac
15538 done
15539
15540
15541 # If the user did not use the arguments to specify the items to instantiate,
15542 # then the envvar interface is used. Set only those that are not.
15543 # We use the long form for the default assignment because of an extremely
15544 # bizarre bug on SunOS 4.1.3.
15545 if $ac_need_defaults; then
15546 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15547 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15548 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15549 fi
15550
15551 # Have a temporary directory for convenience. Make it in the build tree
15552 # simply because there is no reason against having it here, and in addition,
15553 # creating and moving files from /tmp can sometimes cause problems.
15554 # Hook for its removal unless debugging.
15555 # Note that there is a small window in which the directory will not be cleaned:
15556 # after its creation but before its name has been assigned to `$tmp'.
15557 $debug ||
15558 {
15559 tmp= ac_tmp=
15560 trap 'exit_status=$?
15561 : "${ac_tmp:=$tmp}"
15562 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15563 ' 0
15564 trap 'as_fn_exit 1' 1 2 13 15
15565 }
15566 # Create a (secure) tmp directory for tmp files.
15567
15568 {
15569 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15570 test -d "$tmp"
15571 } ||
15572 {
15573 tmp=./conf$$-$RANDOM
15574 (umask 077 && mkdir "$tmp")
15575 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15576 ac_tmp=$tmp
15577
15578 # Set up the scripts for CONFIG_FILES section.
15579 # No need to generate them if there are no CONFIG_FILES.
15580 # This happens for instance with `./config.status config.h'.
15581 if test -n "$CONFIG_FILES"; then
15582
15583
15584 ac_cr=`echo X | tr X '\015'`
15585 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15586 # But we know of no other shell where ac_cr would be empty at this
15587 # point, so we can use a bashism as a fallback.
15588 if test "x$ac_cr" = x; then
15589 eval ac_cr=\$\'\\r\'
15590 fi
15591 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15592 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15593 ac_cs_awk_cr='\\r'
15594 else
15595 ac_cs_awk_cr=$ac_cr
15596 fi
15597
15598 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15599 _ACEOF
15600
15601
15602 {
15603 echo "cat >conf$$subs.awk <<_ACEOF" &&
15604 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15605 echo "_ACEOF"
15606 } >conf$$subs.sh ||
15607 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15608 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15609 ac_delim='%!_!# '
15610 for ac_last_try in false false false false false :; do
15611 . ./conf$$subs.sh ||
15612 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15613
15614 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15615 if test $ac_delim_n = $ac_delim_num; then
15616 break
15617 elif $ac_last_try; then
15618 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15619 else
15620 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15621 fi
15622 done
15623 rm -f conf$$subs.sh
15624
15625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15626 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15627 _ACEOF
15628 sed -n '
15629 h
15630 s/^/S["/; s/!.*/"]=/
15631 p
15632 g
15633 s/^[^!]*!//
15634 :repl
15635 t repl
15636 s/'"$ac_delim"'$//
15637 t delim
15638 :nl
15639 h
15640 s/\(.\{148\}\)..*/\1/
15641 t more1
15642 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15643 p
15644 n
15645 b repl
15646 :more1
15647 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15648 p
15649 g
15650 s/.\{148\}//
15651 t nl
15652 :delim
15653 h
15654 s/\(.\{148\}\)..*/\1/
15655 t more2
15656 s/["\\]/\\&/g; s/^/"/; s/$/"/
15657 p
15658 b
15659 :more2
15660 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15661 p
15662 g
15663 s/.\{148\}//
15664 t delim
15665 ' <conf$$subs.awk | sed '
15666 /^[^""]/{
15667 N
15668 s/\n//
15669 }
15670 ' >>$CONFIG_STATUS || ac_write_fail=1
15671 rm -f conf$$subs.awk
15672 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15673 _ACAWK
15674 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15675 for (key in S) S_is_set[key] = 1
15676 FS = ""
15677
15678 }
15679 {
15680 line = $ 0
15681 nfields = split(line, field, "@")
15682 substed = 0
15683 len = length(field[1])
15684 for (i = 2; i < nfields; i++) {
15685 key = field[i]
15686 keylen = length(key)
15687 if (S_is_set[key]) {
15688 value = S[key]
15689 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15690 len += length(value) + length(field[++i])
15691 substed = 1
15692 } else
15693 len += 1 + keylen
15694 }
15695
15696 print line
15697 }
15698
15699 _ACAWK
15700 _ACEOF
15701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15702 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15703 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15704 else
15705 cat
15706 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15707 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15708 _ACEOF
15709
15710 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15711 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15712 # trailing colons and then remove the whole line if VPATH becomes empty
15713 # (actually we leave an empty line to preserve line numbers).
15714 if test "x$srcdir" = x.; then
15715 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15716 h
15717 s///
15718 s/^/:/
15719 s/[ ]*$/:/
15720 s/:\$(srcdir):/:/g
15721 s/:\${srcdir}:/:/g
15722 s/:@srcdir@:/:/g
15723 s/^:*//
15724 s/:*$//
15725 x
15726 s/\(=[ ]*\).*/\1/
15727 G
15728 s/\n//
15729 s/^[^=]*=[ ]*$//
15730 }'
15731 fi
15732
15733 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15734 fi # test -n "$CONFIG_FILES"
15735
15736 # Set up the scripts for CONFIG_HEADERS section.
15737 # No need to generate them if there are no CONFIG_HEADERS.
15738 # This happens for instance with `./config.status Makefile'.
15739 if test -n "$CONFIG_HEADERS"; then
15740 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15741 BEGIN {
15742 _ACEOF
15743
15744 # Transform confdefs.h into an awk script `defines.awk', embedded as
15745 # here-document in config.status, that substitutes the proper values into
15746 # config.h.in to produce config.h.
15747
15748 # Create a delimiter string that does not exist in confdefs.h, to ease
15749 # handling of long lines.
15750 ac_delim='%!_!# '
15751 for ac_last_try in false false :; do
15752 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15753 if test -z "$ac_tt"; then
15754 break
15755 elif $ac_last_try; then
15756 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15757 else
15758 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15759 fi
15760 done
15761
15762 # For the awk script, D is an array of macro values keyed by name,
15763 # likewise P contains macro parameters if any. Preserve backslash
15764 # newline sequences.
15765
15766 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15767 sed -n '
15768 s/.\{148\}/&'"$ac_delim"'/g
15769 t rset
15770 :rset
15771 s/^[ ]*#[ ]*define[ ][ ]*/ /
15772 t def
15773 d
15774 :def
15775 s/\\$//
15776 t bsnl
15777 s/["\\]/\\&/g
15778 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15779 D["\1"]=" \3"/p
15780 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15781 d
15782 :bsnl
15783 s/["\\]/\\&/g
15784 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15785 D["\1"]=" \3\\\\\\n"\\/p
15786 t cont
15787 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15788 t cont
15789 d
15790 :cont
15791 n
15792 s/.\{148\}/&'"$ac_delim"'/g
15793 t clear
15794 :clear
15795 s/\\$//
15796 t bsnlc
15797 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15798 d
15799 :bsnlc
15800 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15801 b cont
15802 ' <confdefs.h | sed '
15803 s/'"$ac_delim"'/"\\\
15804 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15805
15806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15807 for (key in D) D_is_set[key] = 1
15808 FS = ""
15809 }
15810 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15811 line = \$ 0
15812 split(line, arg, " ")
15813 if (arg[1] == "#") {
15814 defundef = arg[2]
15815 mac1 = arg[3]
15816 } else {
15817 defundef = substr(arg[1], 2)
15818 mac1 = arg[2]
15819 }
15820 split(mac1, mac2, "(") #)
15821 macro = mac2[1]
15822 prefix = substr(line, 1, index(line, defundef) - 1)
15823 if (D_is_set[macro]) {
15824 # Preserve the white space surrounding the "#".
15825 print prefix "define", macro P[macro] D[macro]
15826 next
15827 } else {
15828 # Replace #undef with comments. This is necessary, for example,
15829 # in the case of _POSIX_SOURCE, which is predefined and required
15830 # on some systems where configure will not decide to define it.
15831 if (defundef == "undef") {
15832 print "/*", prefix defundef, macro, "*/"
15833 next
15834 }
15835 }
15836 }
15837 { print }
15838 _ACAWK
15839 _ACEOF
15840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15841 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15842 fi # test -n "$CONFIG_HEADERS"
15843
15844
15845 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15846 shift
15847 for ac_tag
15848 do
15849 case $ac_tag in
15850 :[FHLC]) ac_mode=$ac_tag; continue;;
15851 esac
15852 case $ac_mode$ac_tag in
15853 :[FHL]*:*);;
15854 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15855 :[FH]-) ac_tag=-:-;;
15856 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15857 esac
15858 ac_save_IFS=$IFS
15859 IFS=:
15860 set x $ac_tag
15861 IFS=$ac_save_IFS
15862 shift
15863 ac_file=$1
15864 shift
15865
15866 case $ac_mode in
15867 :L) ac_source=$1;;
15868 :[FH])
15869 ac_file_inputs=
15870 for ac_f
15871 do
15872 case $ac_f in
15873 -) ac_f="$ac_tmp/stdin";;
15874 *) # Look for the file first in the build tree, then in the source tree
15875 # (if the path is not absolute). The absolute path cannot be DOS-style,
15876 # because $ac_f cannot contain `:'.
15877 test -f "$ac_f" ||
15878 case $ac_f in
15879 [\\/$]*) false;;
15880 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15881 esac ||
15882 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15883 esac
15884 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15885 as_fn_append ac_file_inputs " '$ac_f'"
15886 done
15887
15888 # Let's still pretend it is `configure' which instantiates (i.e., don't
15889 # use $as_me), people would be surprised to read:
15890 # /* config.h. Generated by config.status. */
15891 configure_input='Generated from '`
15892 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15893 `' by configure.'
15894 if test x"$ac_file" != x-; then
15895 configure_input="$ac_file. $configure_input"
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15897 $as_echo "$as_me: creating $ac_file" >&6;}
15898 fi
15899 # Neutralize special characters interpreted by sed in replacement strings.
15900 case $configure_input in #(
15901 *\&* | *\|* | *\\* )
15902 ac_sed_conf_input=`$as_echo "$configure_input" |
15903 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15904 *) ac_sed_conf_input=$configure_input;;
15905 esac
15906
15907 case $ac_tag in
15908 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15909 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15910 esac
15911 ;;
15912 esac
15913
15914 ac_dir=`$as_dirname -- "$ac_file" ||
15915 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15916 X"$ac_file" : 'X\(//\)[^/]' \| \
15917 X"$ac_file" : 'X\(//\)$' \| \
15918 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15919 $as_echo X"$ac_file" |
15920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15921 s//\1/
15922 q
15923 }
15924 /^X\(\/\/\)[^/].*/{
15925 s//\1/
15926 q
15927 }
15928 /^X\(\/\/\)$/{
15929 s//\1/
15930 q
15931 }
15932 /^X\(\/\).*/{
15933 s//\1/
15934 q
15935 }
15936 s/.*/./; q'`
15937 as_dir="$ac_dir"; as_fn_mkdir_p
15938 ac_builddir=.
15939
15940 case "$ac_dir" in
15941 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15942 *)
15943 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15944 # A ".." for each directory in $ac_dir_suffix.
15945 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15946 case $ac_top_builddir_sub in
15947 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15948 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15949 esac ;;
15950 esac
15951 ac_abs_top_builddir=$ac_pwd
15952 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15953 # for backward compatibility:
15954 ac_top_builddir=$ac_top_build_prefix
15955
15956 case $srcdir in
15957 .) # We are building in place.
15958 ac_srcdir=.
15959 ac_top_srcdir=$ac_top_builddir_sub
15960 ac_abs_top_srcdir=$ac_pwd ;;
15961 [\\/]* | ?:[\\/]* ) # Absolute name.
15962 ac_srcdir=$srcdir$ac_dir_suffix;
15963 ac_top_srcdir=$srcdir
15964 ac_abs_top_srcdir=$srcdir ;;
15965 *) # Relative name.
15966 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15967 ac_top_srcdir=$ac_top_build_prefix$srcdir
15968 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15969 esac
15970 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15971
15972
15973 case $ac_mode in
15974 :F)
15975 #
15976 # CONFIG_FILE
15977 #
15978
15979 case $INSTALL in
15980 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15981 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15982 esac
15983 ac_MKDIR_P=$MKDIR_P
15984 case $MKDIR_P in
15985 [\\/$]* | ?:[\\/]* ) ;;
15986 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15987 esac
15988 _ACEOF
15989
15990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15991 # If the template does not know about datarootdir, expand it.
15992 # FIXME: This hack should be removed a few years after 2.60.
15993 ac_datarootdir_hack=; ac_datarootdir_seen=
15994 ac_sed_dataroot='
15995 /datarootdir/ {
15996 p
15997 q
15998 }
15999 /@datadir@/p
16000 /@docdir@/p
16001 /@infodir@/p
16002 /@localedir@/p
16003 /@mandir@/p'
16004 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16005 *datarootdir*) ac_datarootdir_seen=yes;;
16006 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16008 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16009 _ACEOF
16010 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16011 ac_datarootdir_hack='
16012 s&@datadir@&$datadir&g
16013 s&@docdir@&$docdir&g
16014 s&@infodir@&$infodir&g
16015 s&@localedir@&$localedir&g
16016 s&@mandir@&$mandir&g
16017 s&\\\${datarootdir}&$datarootdir&g' ;;
16018 esac
16019 _ACEOF
16020
16021 # Neutralize VPATH when `$srcdir' = `.'.
16022 # Shell code in configure.ac might set extrasub.
16023 # FIXME: do we really want to maintain this feature?
16024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16025 ac_sed_extra="$ac_vpsub
16026 $extrasub
16027 _ACEOF
16028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16029 :t
16030 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16031 s|@configure_input@|$ac_sed_conf_input|;t t
16032 s&@top_builddir@&$ac_top_builddir_sub&;t t
16033 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16034 s&@srcdir@&$ac_srcdir&;t t
16035 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16036 s&@top_srcdir@&$ac_top_srcdir&;t t
16037 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16038 s&@builddir@&$ac_builddir&;t t
16039 s&@abs_builddir@&$ac_abs_builddir&;t t
16040 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16041 s&@INSTALL@&$ac_INSTALL&;t t
16042 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16043 $ac_datarootdir_hack
16044 "
16045 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16046 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16047
16048 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16049 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16050 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16051 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16053 which seems to be undefined. Please make sure it is defined" >&5
16054 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16055 which seems to be undefined. Please make sure it is defined" >&2;}
16056
16057 rm -f "$ac_tmp/stdin"
16058 case $ac_file in
16059 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16060 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16061 esac \
16062 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16063 ;;
16064 :H)
16065 #
16066 # CONFIG_HEADER
16067 #
16068 if test x"$ac_file" != x-; then
16069 {
16070 $as_echo "/* $configure_input */" \
16071 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16072 } >"$ac_tmp/config.h" \
16073 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16074 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16075 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16076 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16077 else
16078 rm -f "$ac_file"
16079 mv "$ac_tmp/config.h" "$ac_file" \
16080 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16081 fi
16082 else
16083 $as_echo "/* $configure_input */" \
16084 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16085 || as_fn_error $? "could not create -" "$LINENO" 5
16086 fi
16087 # Compute "$ac_file"'s index in $config_headers.
16088 _am_arg="$ac_file"
16089 _am_stamp_count=1
16090 for _am_header in $config_headers :; do
16091 case $_am_header in
16092 $_am_arg | $_am_arg:* )
16093 break ;;
16094 * )
16095 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16096 esac
16097 done
16098 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16099 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16100 X"$_am_arg" : 'X\(//\)[^/]' \| \
16101 X"$_am_arg" : 'X\(//\)$' \| \
16102 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16103 $as_echo X"$_am_arg" |
16104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16105 s//\1/
16106 q
16107 }
16108 /^X\(\/\/\)[^/].*/{
16109 s//\1/
16110 q
16111 }
16112 /^X\(\/\/\)$/{
16113 s//\1/
16114 q
16115 }
16116 /^X\(\/\).*/{
16117 s//\1/
16118 q
16119 }
16120 s/.*/./; q'`/stamp-h$_am_stamp_count
16121 ;;
16122
16123 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16124 $as_echo "$as_me: executing $ac_file commands" >&6;}
16125 ;;
16126 esac
16127
16128
16129 case $ac_file$ac_mode in
16130 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16131 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16132 # are listed without --file. Let's play safe and only enable the eval
16133 # if we detect the quoting.
16134 case $CONFIG_FILES in
16135 *\'*) eval set x "$CONFIG_FILES" ;;
16136 *) set x $CONFIG_FILES ;;
16137 esac
16138 shift
16139 for mf
16140 do
16141 # Strip MF so we end up with the name of the file.
16142 mf=`echo "$mf" | sed -e 's/:.*$//'`
16143 # Check whether this is an Automake generated Makefile or not.
16144 # We used to match only the files named 'Makefile.in', but
16145 # some people rename them; so instead we look at the file content.
16146 # Grep'ing the first line is not enough: some people post-process
16147 # each Makefile.in and add a new line on top of each file to say so.
16148 # Grep'ing the whole file is not good either: AIX grep has a line
16149 # limit of 2048, but all sed's we know have understand at least 4000.
16150 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16151 dirpart=`$as_dirname -- "$mf" ||
16152 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16153 X"$mf" : 'X\(//\)[^/]' \| \
16154 X"$mf" : 'X\(//\)$' \| \
16155 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16156 $as_echo X"$mf" |
16157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16158 s//\1/
16159 q
16160 }
16161 /^X\(\/\/\)[^/].*/{
16162 s//\1/
16163 q
16164 }
16165 /^X\(\/\/\)$/{
16166 s//\1/
16167 q
16168 }
16169 /^X\(\/\).*/{
16170 s//\1/
16171 q
16172 }
16173 s/.*/./; q'`
16174 else
16175 continue
16176 fi
16177 # Extract the definition of DEPDIR, am__include, and am__quote
16178 # from the Makefile without running 'make'.
16179 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16180 test -z "$DEPDIR" && continue
16181 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16182 test -z "am__include" && continue
16183 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16184 # Find all dependency output files, they are included files with
16185 # $(DEPDIR) in their names. We invoke sed twice because it is the
16186 # simplest approach to changing $(DEPDIR) to its actual value in the
16187 # expansion.
16188 for file in `sed -n "
16189 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16190 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16191 # Make sure the directory exists.
16192 test -f "$dirpart/$file" && continue
16193 fdir=`$as_dirname -- "$file" ||
16194 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16195 X"$file" : 'X\(//\)[^/]' \| \
16196 X"$file" : 'X\(//\)$' \| \
16197 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16198 $as_echo X"$file" |
16199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16200 s//\1/
16201 q
16202 }
16203 /^X\(\/\/\)[^/].*/{
16204 s//\1/
16205 q
16206 }
16207 /^X\(\/\/\)$/{
16208 s//\1/
16209 q
16210 }
16211 /^X\(\/\).*/{
16212 s//\1/
16213 q
16214 }
16215 s/.*/./; q'`
16216 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16217 # echo "creating $dirpart/$file"
16218 echo '# dummy' > "$dirpart/$file"
16219 done
16220 done
16221 }
16222 ;;
16223 "libtool":C)
16224
16225 # See if we are running on zsh, and set the options which allow our
16226 # commands through without removal of \ escapes.
16227 if test -n "${ZSH_VERSION+set}" ; then
16228 setopt NO_GLOB_SUBST
16229 fi
16230
16231 cfgfile="${ofile}T"
16232 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16233 $RM "$cfgfile"
16234
16235 cat <<_LT_EOF >> "$cfgfile"
16236 #! $SHELL
16237
16238 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16239 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16240 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16241 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16242 #
16243 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16244 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16245 # Foundation, Inc.
16246 # Written by Gordon Matzigkeit, 1996
16247 #
16248 # This file is part of GNU Libtool.
16249 #
16250 # GNU Libtool is free software; you can redistribute it and/or
16251 # modify it under the terms of the GNU General Public License as
16252 # published by the Free Software Foundation; either version 2 of
16253 # the License, or (at your option) any later version.
16254 #
16255 # As a special exception to the GNU General Public License,
16256 # if you distribute this file as part of a program or library that
16257 # is built using GNU Libtool, you may include this file under the
16258 # same distribution terms that you use for the rest of that program.
16259 #
16260 # GNU Libtool is distributed in the hope that it will be useful,
16261 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16262 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16263 # GNU General Public License for more details.
16264 #
16265 # You should have received a copy of the GNU General Public License
16266 # along with GNU Libtool; see the file COPYING. If not, a copy
16267 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16268 # obtained by writing to the Free Software Foundation, Inc.,
16269 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16270
16271
16272 # The names of the tagged configurations supported by this script.
16273 available_tags=""
16274
16275 # ### BEGIN LIBTOOL CONFIG
16276
16277 # Which release of libtool.m4 was used?
16278 macro_version=$macro_version
16279 macro_revision=$macro_revision
16280
16281 # Whether or not to build static libraries.
16282 build_old_libs=$enable_static
16283
16284 # Whether or not to build shared libraries.
16285 build_libtool_libs=$enable_shared
16286
16287 # What type of objects to build.
16288 pic_mode=$pic_mode
16289
16290 # Whether or not to optimize for fast installation.
16291 fast_install=$enable_fast_install
16292
16293 # Shell to use when invoking shell scripts.
16294 SHELL=$lt_SHELL
16295
16296 # An echo program that protects backslashes.
16297 ECHO=$lt_ECHO
16298
16299 # The PATH separator for the build system.
16300 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16301
16302 # The host system.
16303 host_alias=$host_alias
16304 host=$host
16305 host_os=$host_os
16306
16307 # The build system.
16308 build_alias=$build_alias
16309 build=$build
16310 build_os=$build_os
16311
16312 # A sed program that does not truncate output.
16313 SED=$lt_SED
16314
16315 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16316 Xsed="\$SED -e 1s/^X//"
16317
16318 # A grep program that handles long lines.
16319 GREP=$lt_GREP
16320
16321 # An ERE matcher.
16322 EGREP=$lt_EGREP
16323
16324 # A literal string matcher.
16325 FGREP=$lt_FGREP
16326
16327 # A BSD- or MS-compatible name lister.
16328 NM=$lt_NM
16329
16330 # Whether we need soft or hard links.
16331 LN_S=$lt_LN_S
16332
16333 # What is the maximum length of a command?
16334 max_cmd_len=$max_cmd_len
16335
16336 # Object file suffix (normally "o").
16337 objext=$ac_objext
16338
16339 # Executable file suffix (normally "").
16340 exeext=$exeext
16341
16342 # whether the shell understands "unset".
16343 lt_unset=$lt_unset
16344
16345 # turn spaces into newlines.
16346 SP2NL=$lt_lt_SP2NL
16347
16348 # turn newlines into spaces.
16349 NL2SP=$lt_lt_NL2SP
16350
16351 # convert \$build file names to \$host format.
16352 to_host_file_cmd=$lt_cv_to_host_file_cmd
16353
16354 # convert \$build files to toolchain format.
16355 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16356
16357 # An object symbol dumper.
16358 OBJDUMP=$lt_OBJDUMP
16359
16360 # Method to check whether dependent libraries are shared objects.
16361 deplibs_check_method=$lt_deplibs_check_method
16362
16363 # Command to use when deplibs_check_method = "file_magic".
16364 file_magic_cmd=$lt_file_magic_cmd
16365
16366 # How to find potential files when deplibs_check_method = "file_magic".
16367 file_magic_glob=$lt_file_magic_glob
16368
16369 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16370 want_nocaseglob=$lt_want_nocaseglob
16371
16372 # DLL creation program.
16373 DLLTOOL=$lt_DLLTOOL
16374
16375 # Command to associate shared and link libraries.
16376 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16377
16378 # The archiver.
16379 AR=$lt_AR
16380
16381 # Flags to create an archive.
16382 AR_FLAGS=$lt_AR_FLAGS
16383
16384 # How to feed a file listing to the archiver.
16385 archiver_list_spec=$lt_archiver_list_spec
16386
16387 # A symbol stripping program.
16388 STRIP=$lt_STRIP
16389
16390 # Commands used to install an old-style archive.
16391 RANLIB=$lt_RANLIB
16392 old_postinstall_cmds=$lt_old_postinstall_cmds
16393 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16394
16395 # Whether to use a lock for old archive extraction.
16396 lock_old_archive_extraction=$lock_old_archive_extraction
16397
16398 # A C compiler.
16399 LTCC=$lt_CC
16400
16401 # LTCC compiler flags.
16402 LTCFLAGS=$lt_CFLAGS
16403
16404 # Take the output of nm and produce a listing of raw symbols and C names.
16405 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16406
16407 # Transform the output of nm in a proper C declaration.
16408 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16409
16410 # Transform the output of nm in a C name address pair.
16411 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16412
16413 # Transform the output of nm in a C name address pair when lib prefix is needed.
16414 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16415
16416 # Specify filename containing input files for \$NM.
16417 nm_file_list_spec=$lt_nm_file_list_spec
16418
16419 # The root where to search for dependent libraries,and in which our libraries should be installed.
16420 lt_sysroot=$lt_sysroot
16421
16422 # The name of the directory that contains temporary libtool files.
16423 objdir=$objdir
16424
16425 # Used to examine libraries when file_magic_cmd begins with "file".
16426 MAGIC_CMD=$MAGIC_CMD
16427
16428 # Must we lock files when doing compilation?
16429 need_locks=$lt_need_locks
16430
16431 # Manifest tool.
16432 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16433
16434 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16435 DSYMUTIL=$lt_DSYMUTIL
16436
16437 # Tool to change global to local symbols on Mac OS X.
16438 NMEDIT=$lt_NMEDIT
16439
16440 # Tool to manipulate fat objects and archives on Mac OS X.
16441 LIPO=$lt_LIPO
16442
16443 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16444 OTOOL=$lt_OTOOL
16445
16446 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16447 OTOOL64=$lt_OTOOL64
16448
16449 # Old archive suffix (normally "a").
16450 libext=$libext
16451
16452 # Shared library suffix (normally ".so").
16453 shrext_cmds=$lt_shrext_cmds
16454
16455 # The commands to extract the exported symbol list from a shared archive.
16456 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16457
16458 # Variables whose values should be saved in libtool wrapper scripts and
16459 # restored at link time.
16460 variables_saved_for_relink=$lt_variables_saved_for_relink
16461
16462 # Do we need the "lib" prefix for modules?
16463 need_lib_prefix=$need_lib_prefix
16464
16465 # Do we need a version for libraries?
16466 need_version=$need_version
16467
16468 # Library versioning type.
16469 version_type=$version_type
16470
16471 # Shared library runtime path variable.
16472 runpath_var=$runpath_var
16473
16474 # Shared library path variable.
16475 shlibpath_var=$shlibpath_var
16476
16477 # Is shlibpath searched before the hard-coded library search path?
16478 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16479
16480 # Format of library name prefix.
16481 libname_spec=$lt_libname_spec
16482
16483 # List of archive names. First name is the real one, the rest are links.
16484 # The last name is the one that the linker finds with -lNAME
16485 library_names_spec=$lt_library_names_spec
16486
16487 # The coded name of the library, if different from the real name.
16488 soname_spec=$lt_soname_spec
16489
16490 # Permission mode override for installation of shared libraries.
16491 install_override_mode=$lt_install_override_mode
16492
16493 # Command to use after installation of a shared archive.
16494 postinstall_cmds=$lt_postinstall_cmds
16495
16496 # Command to use after uninstallation of a shared archive.
16497 postuninstall_cmds=$lt_postuninstall_cmds
16498
16499 # Commands used to finish a libtool library installation in a directory.
16500 finish_cmds=$lt_finish_cmds
16501
16502 # As "finish_cmds", except a single script fragment to be evaled but
16503 # not shown.
16504 finish_eval=$lt_finish_eval
16505
16506 # Whether we should hardcode library paths into libraries.
16507 hardcode_into_libs=$hardcode_into_libs
16508
16509 # Compile-time system search path for libraries.
16510 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16511
16512 # Run-time system search path for libraries.
16513 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16514
16515 # Whether dlopen is supported.
16516 dlopen_support=$enable_dlopen
16517
16518 # Whether dlopen of programs is supported.
16519 dlopen_self=$enable_dlopen_self
16520
16521 # Whether dlopen of statically linked programs is supported.
16522 dlopen_self_static=$enable_dlopen_self_static
16523
16524 # Commands to strip libraries.
16525 old_striplib=$lt_old_striplib
16526 striplib=$lt_striplib
16527
16528
16529 # The linker used to build libraries.
16530 LD=$lt_LD
16531
16532 # How to create reloadable object files.
16533 reload_flag=$lt_reload_flag
16534 reload_cmds=$lt_reload_cmds
16535
16536 # Commands used to build an old-style archive.
16537 old_archive_cmds=$lt_old_archive_cmds
16538
16539 # A language specific compiler.
16540 CC=$lt_compiler
16541
16542 # Is the compiler the GNU compiler?
16543 with_gcc=$GCC
16544
16545 # Compiler flag to turn off builtin functions.
16546 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16547
16548 # Additional compiler flags for building library objects.
16549 pic_flag=$lt_lt_prog_compiler_pic
16550
16551 # How to pass a linker flag through the compiler.
16552 wl=$lt_lt_prog_compiler_wl
16553
16554 # Compiler flag to prevent dynamic linking.
16555 link_static_flag=$lt_lt_prog_compiler_static
16556
16557 # Does compiler simultaneously support -c and -o options?
16558 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16559
16560 # Whether or not to add -lc for building shared libraries.
16561 build_libtool_need_lc=$archive_cmds_need_lc
16562
16563 # Whether or not to disallow shared libs when runtime libs are static.
16564 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16565
16566 # Compiler flag to allow reflexive dlopens.
16567 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16568
16569 # Compiler flag to generate shared objects directly from archives.
16570 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16571
16572 # Whether the compiler copes with passing no objects directly.
16573 compiler_needs_object=$lt_compiler_needs_object
16574
16575 # Create an old-style archive from a shared archive.
16576 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16577
16578 # Create a temporary old-style archive to link instead of a shared archive.
16579 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16580
16581 # Commands used to build a shared archive.
16582 archive_cmds=$lt_archive_cmds
16583 archive_expsym_cmds=$lt_archive_expsym_cmds
16584
16585 # Commands used to build a loadable module if different from building
16586 # a shared archive.
16587 module_cmds=$lt_module_cmds
16588 module_expsym_cmds=$lt_module_expsym_cmds
16589
16590 # Whether we are building with GNU ld or not.
16591 with_gnu_ld=$lt_with_gnu_ld
16592
16593 # Flag that allows shared libraries with undefined symbols to be built.
16594 allow_undefined_flag=$lt_allow_undefined_flag
16595
16596 # Flag that enforces no undefined symbols.
16597 no_undefined_flag=$lt_no_undefined_flag
16598
16599 # Flag to hardcode \$libdir into a binary during linking.
16600 # This must work even if \$libdir does not exist
16601 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16602
16603 # Whether we need a single "-rpath" flag with a separated argument.
16604 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16605
16606 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16607 # DIR into the resulting binary.
16608 hardcode_direct=$hardcode_direct
16609
16610 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16611 # DIR into the resulting binary and the resulting library dependency is
16612 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16613 # library is relocated.
16614 hardcode_direct_absolute=$hardcode_direct_absolute
16615
16616 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16617 # into the resulting binary.
16618 hardcode_minus_L=$hardcode_minus_L
16619
16620 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16621 # into the resulting binary.
16622 hardcode_shlibpath_var=$hardcode_shlibpath_var
16623
16624 # Set to "yes" if building a shared library automatically hardcodes DIR
16625 # into the library and all subsequent libraries and executables linked
16626 # against it.
16627 hardcode_automatic=$hardcode_automatic
16628
16629 # Set to yes if linker adds runtime paths of dependent libraries
16630 # to runtime path list.
16631 inherit_rpath=$inherit_rpath
16632
16633 # Whether libtool must link a program against all its dependency libraries.
16634 link_all_deplibs=$link_all_deplibs
16635
16636 # Set to "yes" if exported symbols are required.
16637 always_export_symbols=$always_export_symbols
16638
16639 # The commands to list exported symbols.
16640 export_symbols_cmds=$lt_export_symbols_cmds
16641
16642 # Symbols that should not be listed in the preloaded symbols.
16643 exclude_expsyms=$lt_exclude_expsyms
16644
16645 # Symbols that must always be exported.
16646 include_expsyms=$lt_include_expsyms
16647
16648 # Commands necessary for linking programs (against libraries) with templates.
16649 prelink_cmds=$lt_prelink_cmds
16650
16651 # Commands necessary for finishing linking programs.
16652 postlink_cmds=$lt_postlink_cmds
16653
16654 # Specify filename containing input files.
16655 file_list_spec=$lt_file_list_spec
16656
16657 # How to hardcode a shared library path into an executable.
16658 hardcode_action=$hardcode_action
16659
16660 # ### END LIBTOOL CONFIG
16661
16662 _LT_EOF
16663
16664 case $host_os in
16665 aix3*)
16666 cat <<\_LT_EOF >> "$cfgfile"
16667 # AIX sometimes has problems with the GCC collect2 program. For some
16668 # reason, if we set the COLLECT_NAMES environment variable, the problems
16669 # vanish in a puff of smoke.
16670 if test "X${COLLECT_NAMES+set}" != Xset; then
16671 COLLECT_NAMES=
16672 export COLLECT_NAMES
16673 fi
16674 _LT_EOF
16675 ;;
16676 esac
16677
16678
16679 ltmain="$ac_aux_dir/ltmain.sh"
16680
16681
16682 # We use sed instead of cat because bash on DJGPP gets confused if
16683 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16684 # text mode, it properly converts lines to CR/LF. This bash problem
16685 # is reportedly fixed, but why not run on old versions too?
16686 sed '$q' "$ltmain" >> "$cfgfile" \
16687 || (rm -f "$cfgfile"; exit 1)
16688
16689 if test x"$xsi_shell" = xyes; then
16690 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16691 func_dirname ()\
16692 {\
16693 \ case ${1} in\
16694 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16695 \ * ) func_dirname_result="${3}" ;;\
16696 \ esac\
16697 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16698 && mv -f "$cfgfile.tmp" "$cfgfile" \
16699 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16700 test 0 -eq $? || _lt_function_replace_fail=:
16701
16702
16703 sed -e '/^func_basename ()$/,/^} # func_basename /c\
16704 func_basename ()\
16705 {\
16706 \ func_basename_result="${1##*/}"\
16707 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16708 && mv -f "$cfgfile.tmp" "$cfgfile" \
16709 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16710 test 0 -eq $? || _lt_function_replace_fail=:
16711
16712
16713 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16714 func_dirname_and_basename ()\
16715 {\
16716 \ case ${1} in\
16717 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16718 \ * ) func_dirname_result="${3}" ;;\
16719 \ esac\
16720 \ func_basename_result="${1##*/}"\
16721 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16722 && mv -f "$cfgfile.tmp" "$cfgfile" \
16723 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16724 test 0 -eq $? || _lt_function_replace_fail=:
16725
16726
16727 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16728 func_stripname ()\
16729 {\
16730 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16731 \ # positional parameters, so assign one to ordinary parameter first.\
16732 \ func_stripname_result=${3}\
16733 \ func_stripname_result=${func_stripname_result#"${1}"}\
16734 \ func_stripname_result=${func_stripname_result%"${2}"}\
16735 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16736 && mv -f "$cfgfile.tmp" "$cfgfile" \
16737 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16738 test 0 -eq $? || _lt_function_replace_fail=:
16739
16740
16741 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16742 func_split_long_opt ()\
16743 {\
16744 \ func_split_long_opt_name=${1%%=*}\
16745 \ func_split_long_opt_arg=${1#*=}\
16746 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16747 && mv -f "$cfgfile.tmp" "$cfgfile" \
16748 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16749 test 0 -eq $? || _lt_function_replace_fail=:
16750
16751
16752 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16753 func_split_short_opt ()\
16754 {\
16755 \ func_split_short_opt_arg=${1#??}\
16756 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16757 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16758 && mv -f "$cfgfile.tmp" "$cfgfile" \
16759 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16760 test 0 -eq $? || _lt_function_replace_fail=:
16761
16762
16763 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16764 func_lo2o ()\
16765 {\
16766 \ case ${1} in\
16767 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16768 \ *) func_lo2o_result=${1} ;;\
16769 \ esac\
16770 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16771 && mv -f "$cfgfile.tmp" "$cfgfile" \
16772 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16773 test 0 -eq $? || _lt_function_replace_fail=:
16774
16775
16776 sed -e '/^func_xform ()$/,/^} # func_xform /c\
16777 func_xform ()\
16778 {\
16779 func_xform_result=${1%.*}.lo\
16780 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16781 && mv -f "$cfgfile.tmp" "$cfgfile" \
16782 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16783 test 0 -eq $? || _lt_function_replace_fail=:
16784
16785
16786 sed -e '/^func_arith ()$/,/^} # func_arith /c\
16787 func_arith ()\
16788 {\
16789 func_arith_result=$(( $* ))\
16790 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16791 && mv -f "$cfgfile.tmp" "$cfgfile" \
16792 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16793 test 0 -eq $? || _lt_function_replace_fail=:
16794
16795
16796 sed -e '/^func_len ()$/,/^} # func_len /c\
16797 func_len ()\
16798 {\
16799 func_len_result=${#1}\
16800 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16801 && mv -f "$cfgfile.tmp" "$cfgfile" \
16802 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16803 test 0 -eq $? || _lt_function_replace_fail=:
16804
16805 fi
16806
16807 if test x"$lt_shell_append" = xyes; then
16808 sed -e '/^func_append ()$/,/^} # func_append /c\
16809 func_append ()\
16810 {\
16811 eval "${1}+=\\${2}"\
16812 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16813 && mv -f "$cfgfile.tmp" "$cfgfile" \
16814 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16815 test 0 -eq $? || _lt_function_replace_fail=:
16816
16817
16818 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16819 func_append_quoted ()\
16820 {\
16821 \ func_quote_for_eval "${2}"\
16822 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16823 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16824 && mv -f "$cfgfile.tmp" "$cfgfile" \
16825 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16826 test 0 -eq $? || _lt_function_replace_fail=:
16827
16828
16829 # Save a `func_append' function call where possible by direct use of '+='
16830 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16831 && mv -f "$cfgfile.tmp" "$cfgfile" \
16832 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16833 test 0 -eq $? || _lt_function_replace_fail=:
16834 else
16835 # Save a `func_append' function call even when '+=' is not available
16836 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16837 && mv -f "$cfgfile.tmp" "$cfgfile" \
16838 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16839 test 0 -eq $? || _lt_function_replace_fail=:
16840 fi
16841
16842 if test x"$_lt_function_replace_fail" = x":"; then
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16844 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16845 fi
16846
16847
16848 mv -f "$cfgfile" "$ofile" ||
16849 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16850 chmod +x "$ofile"
16851
16852 ;;
16853
16854 esac
16855 done # for ac_tag
16856
16857
16858 as_fn_exit 0
16859 _ACEOF
16860 ac_clean_files=$ac_clean_files_save
16861
16862 test $ac_write_fail = 0 ||
16863 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16864
16865
16866 # configure is writing to config.log, and then calls config.status.
16867 # config.status does its own redirection, appending to config.log.
16868 # Unfortunately, on DOS this fails, as config.log is still kept open
16869 # by configure, so config.status won't be able to write to it; its
16870 # output is simply discarded. So we exec the FD to /dev/null,
16871 # effectively closing config.log, so it can be properly (re)opened and
16872 # appended to by config.status. When coming back to configure, we
16873 # need to make the FD available again.
16874 if test "$no_create" != yes; then
16875 ac_cs_success=:
16876 ac_config_status_args=
16877 test "$silent" = yes &&
16878 ac_config_status_args="$ac_config_status_args --quiet"
16879 exec 5>/dev/null
16880 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16881 exec 5>>config.log
16882 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16883 # would make configure fail if this is the last instruction.
16884 $ac_cs_success || as_fn_exit 1
16885 fi
16886 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16888 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16889 fi
16890

Properties

Name Value
svn:eol-style native
svn:executable *