ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.1.x/configure
Revision: 1736
Committed: Sun Jan 13 09:31:46 2013 UTC (13 years, 6 months ago) by michael
Original Path: ircd-hybrid/trunk/configure
File size: 489923 byte(s)
Log Message:
- Forward-port -r1732 [Dropped support for linux rt signals]

File Contents

# Content
1 #! /bin/sh
2 # From configure.ac Id: configure.ac 1720 2012-12-28 21:06:21Z michael .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for ircd-hybrid TRUNK.
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='TRUNK'
597 PACKAGE_STRING='ircd-hybrid TRUNK'
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_BACKSLASH
727 AM_DEFAULT_VERBOSITY
728 AM_DEFAULT_V
729 AM_V
730 am__untar
731 am__tar
732 AMTAR
733 am__leading_dot
734 SET_MAKE
735 AWK
736 mkdir_p
737 MKDIR_P
738 INSTALL_STRIP_PROGRAM
739 STRIP
740 install_sh
741 MAKEINFO
742 AUTOHEADER
743 AUTOMAKE
744 AUTOCONF
745 ACLOCAL
746 VERSION
747 PACKAGE
748 CYGPATH_W
749 am__isrc
750 INSTALL_DATA
751 INSTALL_SCRIPT
752 INSTALL_PROGRAM
753 target_alias
754 host_alias
755 build_alias
756 LIBS
757 ECHO_T
758 ECHO_N
759 ECHO_C
760 DEFS
761 mandir
762 localedir
763 libdir
764 psdir
765 pdfdir
766 dvidir
767 htmldir
768 infodir
769 docdir
770 oldincludedir
771 includedir
772 localstatedir
773 sharedstatedir
774 sysconfdir
775 datadir
776 datarootdir
777 libexecdir
778 sbindir
779 bindir
780 program_transform_name
781 prefix
782 exec_prefix
783 PACKAGE_URL
784 PACKAGE_BUGREPORT
785 PACKAGE_STRING
786 PACKAGE_VERSION
787 PACKAGE_TARNAME
788 PACKAGE_NAME
789 PATH_SEPARATOR
790 SHELL'
791 ac_subst_files=''
792 ac_user_opts='
793 enable_option_checking
794 enable_silent_rules
795 enable_maintainer_mode
796 enable_dependency_tracking
797 enable_static
798 enable_shared
799 with_pic
800 enable_fast_install
801 with_gnu_ld
802 with_sysroot
803 enable_libtool_lock
804 with_included_ltdl
805 with_ltdl_include
806 with_ltdl_lib
807 enable_ltdl_install
808 enable_libpcre
809 enable_openssl
810 enable_assert
811 enable_kqueue
812 enable_epoll
813 enable_devpoll
814 enable_poll
815 enable_select
816 with_nicklen
817 with_topiclen
818 enable_halfops
819 enable_debugging
820 enable_warnings
821 '
822 ac_precious_vars='build_alias
823 host_alias
824 target_alias
825 CC
826 CFLAGS
827 LDFLAGS
828 LIBS
829 CPPFLAGS
830 YACC
831 YFLAGS
832 CPP'
833
834
835 # Initialize some variables set by options.
836 ac_init_help=
837 ac_init_version=false
838 ac_unrecognized_opts=
839 ac_unrecognized_sep=
840 # The variables have the same names as the options, with
841 # dashes changed to underlines.
842 cache_file=/dev/null
843 exec_prefix=NONE
844 no_create=
845 no_recursion=
846 prefix=NONE
847 program_prefix=NONE
848 program_suffix=NONE
849 program_transform_name=s,x,x,
850 silent=
851 site=
852 srcdir=
853 verbose=
854 x_includes=NONE
855 x_libraries=NONE
856
857 # Installation directory options.
858 # These are left unexpanded so users can "make install exec_prefix=/foo"
859 # and all the variables that are supposed to be based on exec_prefix
860 # by default will actually change.
861 # Use braces instead of parens because sh, perl, etc. also accept them.
862 # (The list follows the same order as the GNU Coding Standards.)
863 bindir='${exec_prefix}/bin'
864 sbindir='${exec_prefix}/sbin'
865 libexecdir='${exec_prefix}/libexec'
866 datarootdir='${prefix}/share'
867 datadir='${datarootdir}'
868 sysconfdir='${prefix}/etc'
869 sharedstatedir='${prefix}/com'
870 localstatedir='${prefix}/var'
871 includedir='${prefix}/include'
872 oldincludedir='/usr/include'
873 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
874 infodir='${datarootdir}/info'
875 htmldir='${docdir}'
876 dvidir='${docdir}'
877 pdfdir='${docdir}'
878 psdir='${docdir}'
879 libdir='${exec_prefix}/lib'
880 localedir='${datarootdir}/locale'
881 mandir='${datarootdir}/man'
882
883 ac_prev=
884 ac_dashdash=
885 for ac_option
886 do
887 # If the previous option needs an argument, assign it.
888 if test -n "$ac_prev"; then
889 eval $ac_prev=\$ac_option
890 ac_prev=
891 continue
892 fi
893
894 case $ac_option in
895 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
896 *=) ac_optarg= ;;
897 *) ac_optarg=yes ;;
898 esac
899
900 # Accept the important Cygnus configure options, so we can diagnose typos.
901
902 case $ac_dashdash$ac_option in
903 --)
904 ac_dashdash=yes ;;
905
906 -bindir | --bindir | --bindi | --bind | --bin | --bi)
907 ac_prev=bindir ;;
908 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
909 bindir=$ac_optarg ;;
910
911 -build | --build | --buil | --bui | --bu)
912 ac_prev=build_alias ;;
913 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
914 build_alias=$ac_optarg ;;
915
916 -cache-file | --cache-file | --cache-fil | --cache-fi \
917 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
918 ac_prev=cache_file ;;
919 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
920 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
921 cache_file=$ac_optarg ;;
922
923 --config-cache | -C)
924 cache_file=config.cache ;;
925
926 -datadir | --datadir | --datadi | --datad)
927 ac_prev=datadir ;;
928 -datadir=* | --datadir=* | --datadi=* | --datad=*)
929 datadir=$ac_optarg ;;
930
931 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
932 | --dataroo | --dataro | --datar)
933 ac_prev=datarootdir ;;
934 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
935 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
936 datarootdir=$ac_optarg ;;
937
938 -disable-* | --disable-*)
939 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942 as_fn_error $? "invalid feature name: $ac_useropt"
943 ac_useropt_orig=$ac_useropt
944 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945 case $ac_user_opts in
946 *"
947 "enable_$ac_useropt"
948 "*) ;;
949 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
950 ac_unrecognized_sep=', ';;
951 esac
952 eval enable_$ac_useropt=no ;;
953
954 -docdir | --docdir | --docdi | --doc | --do)
955 ac_prev=docdir ;;
956 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
957 docdir=$ac_optarg ;;
958
959 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
960 ac_prev=dvidir ;;
961 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
962 dvidir=$ac_optarg ;;
963
964 -enable-* | --enable-*)
965 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
966 # Reject names that are not valid shell variable names.
967 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
968 as_fn_error $? "invalid feature name: $ac_useropt"
969 ac_useropt_orig=$ac_useropt
970 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
971 case $ac_user_opts in
972 *"
973 "enable_$ac_useropt"
974 "*) ;;
975 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
976 ac_unrecognized_sep=', ';;
977 esac
978 eval enable_$ac_useropt=\$ac_optarg ;;
979
980 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
981 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
982 | --exec | --exe | --ex)
983 ac_prev=exec_prefix ;;
984 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
985 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
986 | --exec=* | --exe=* | --ex=*)
987 exec_prefix=$ac_optarg ;;
988
989 -gas | --gas | --ga | --g)
990 # Obsolete; use --with-gas.
991 with_gas=yes ;;
992
993 -help | --help | --hel | --he | -h)
994 ac_init_help=long ;;
995 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
996 ac_init_help=recursive ;;
997 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
998 ac_init_help=short ;;
999
1000 -host | --host | --hos | --ho)
1001 ac_prev=host_alias ;;
1002 -host=* | --host=* | --hos=* | --ho=*)
1003 host_alias=$ac_optarg ;;
1004
1005 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1006 ac_prev=htmldir ;;
1007 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1008 | --ht=*)
1009 htmldir=$ac_optarg ;;
1010
1011 -includedir | --includedir | --includedi | --included | --include \
1012 | --includ | --inclu | --incl | --inc)
1013 ac_prev=includedir ;;
1014 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1015 | --includ=* | --inclu=* | --incl=* | --inc=*)
1016 includedir=$ac_optarg ;;
1017
1018 -infodir | --infodir | --infodi | --infod | --info | --inf)
1019 ac_prev=infodir ;;
1020 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1021 infodir=$ac_optarg ;;
1022
1023 -libdir | --libdir | --libdi | --libd)
1024 ac_prev=libdir ;;
1025 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1026 libdir=$ac_optarg ;;
1027
1028 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1029 | --libexe | --libex | --libe)
1030 ac_prev=libexecdir ;;
1031 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1032 | --libexe=* | --libex=* | --libe=*)
1033 libexecdir=$ac_optarg ;;
1034
1035 -localedir | --localedir | --localedi | --localed | --locale)
1036 ac_prev=localedir ;;
1037 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1038 localedir=$ac_optarg ;;
1039
1040 -localstatedir | --localstatedir | --localstatedi | --localstated \
1041 | --localstate | --localstat | --localsta | --localst | --locals)
1042 ac_prev=localstatedir ;;
1043 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1044 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1045 localstatedir=$ac_optarg ;;
1046
1047 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1048 ac_prev=mandir ;;
1049 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1050 mandir=$ac_optarg ;;
1051
1052 -nfp | --nfp | --nf)
1053 # Obsolete; use --without-fp.
1054 with_fp=no ;;
1055
1056 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1057 | --no-cr | --no-c | -n)
1058 no_create=yes ;;
1059
1060 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1061 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1062 no_recursion=yes ;;
1063
1064 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1065 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1066 | --oldin | --oldi | --old | --ol | --o)
1067 ac_prev=oldincludedir ;;
1068 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1069 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1070 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1071 oldincludedir=$ac_optarg ;;
1072
1073 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1074 ac_prev=prefix ;;
1075 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1076 prefix=$ac_optarg ;;
1077
1078 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1079 | --program-pre | --program-pr | --program-p)
1080 ac_prev=program_prefix ;;
1081 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1082 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1083 program_prefix=$ac_optarg ;;
1084
1085 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1086 | --program-suf | --program-su | --program-s)
1087 ac_prev=program_suffix ;;
1088 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1089 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1090 program_suffix=$ac_optarg ;;
1091
1092 -program-transform-name | --program-transform-name \
1093 | --program-transform-nam | --program-transform-na \
1094 | --program-transform-n | --program-transform- \
1095 | --program-transform | --program-transfor \
1096 | --program-transfo | --program-transf \
1097 | --program-trans | --program-tran \
1098 | --progr-tra | --program-tr | --program-t)
1099 ac_prev=program_transform_name ;;
1100 -program-transform-name=* | --program-transform-name=* \
1101 | --program-transform-nam=* | --program-transform-na=* \
1102 | --program-transform-n=* | --program-transform-=* \
1103 | --program-transform=* | --program-transfor=* \
1104 | --program-transfo=* | --program-transf=* \
1105 | --program-trans=* | --program-tran=* \
1106 | --progr-tra=* | --program-tr=* | --program-t=*)
1107 program_transform_name=$ac_optarg ;;
1108
1109 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1110 ac_prev=pdfdir ;;
1111 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1112 pdfdir=$ac_optarg ;;
1113
1114 -psdir | --psdir | --psdi | --psd | --ps)
1115 ac_prev=psdir ;;
1116 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1117 psdir=$ac_optarg ;;
1118
1119 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1120 | -silent | --silent | --silen | --sile | --sil)
1121 silent=yes ;;
1122
1123 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1124 ac_prev=sbindir ;;
1125 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1126 | --sbi=* | --sb=*)
1127 sbindir=$ac_optarg ;;
1128
1129 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1130 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1131 | --sharedst | --shareds | --shared | --share | --shar \
1132 | --sha | --sh)
1133 ac_prev=sharedstatedir ;;
1134 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1135 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1136 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1137 | --sha=* | --sh=*)
1138 sharedstatedir=$ac_optarg ;;
1139
1140 -site | --site | --sit)
1141 ac_prev=site ;;
1142 -site=* | --site=* | --sit=*)
1143 site=$ac_optarg ;;
1144
1145 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1146 ac_prev=srcdir ;;
1147 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1148 srcdir=$ac_optarg ;;
1149
1150 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1151 | --syscon | --sysco | --sysc | --sys | --sy)
1152 ac_prev=sysconfdir ;;
1153 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1154 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1155 sysconfdir=$ac_optarg ;;
1156
1157 -target | --target | --targe | --targ | --tar | --ta | --t)
1158 ac_prev=target_alias ;;
1159 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1160 target_alias=$ac_optarg ;;
1161
1162 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1163 verbose=yes ;;
1164
1165 -version | --version | --versio | --versi | --vers | -V)
1166 ac_init_version=: ;;
1167
1168 -with-* | --with-*)
1169 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1170 # Reject names that are not valid shell variable names.
1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172 as_fn_error $? "invalid package name: $ac_useropt"
1173 ac_useropt_orig=$ac_useropt
1174 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175 case $ac_user_opts in
1176 *"
1177 "with_$ac_useropt"
1178 "*) ;;
1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1180 ac_unrecognized_sep=', ';;
1181 esac
1182 eval with_$ac_useropt=\$ac_optarg ;;
1183
1184 -without-* | --without-*)
1185 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188 as_fn_error $? "invalid package name: $ac_useropt"
1189 ac_useropt_orig=$ac_useropt
1190 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1191 case $ac_user_opts in
1192 *"
1193 "with_$ac_useropt"
1194 "*) ;;
1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1196 ac_unrecognized_sep=', ';;
1197 esac
1198 eval with_$ac_useropt=no ;;
1199
1200 --x)
1201 # Obsolete; use --with-x.
1202 with_x=yes ;;
1203
1204 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1205 | --x-incl | --x-inc | --x-in | --x-i)
1206 ac_prev=x_includes ;;
1207 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1208 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1209 x_includes=$ac_optarg ;;
1210
1211 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1212 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1213 ac_prev=x_libraries ;;
1214 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1215 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1216 x_libraries=$ac_optarg ;;
1217
1218 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1219 Try \`$0 --help' for more information"
1220 ;;
1221
1222 *=*)
1223 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1224 # Reject names that are not valid shell variable names.
1225 case $ac_envvar in #(
1226 '' | [0-9]* | *[!_$as_cr_alnum]* )
1227 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1228 esac
1229 eval $ac_envvar=\$ac_optarg
1230 export $ac_envvar ;;
1231
1232 *)
1233 # FIXME: should be removed in autoconf 3.0.
1234 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1235 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1236 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1237 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1238 ;;
1239
1240 esac
1241 done
1242
1243 if test -n "$ac_prev"; then
1244 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1245 as_fn_error $? "missing argument to $ac_option"
1246 fi
1247
1248 if test -n "$ac_unrecognized_opts"; then
1249 case $enable_option_checking in
1250 no) ;;
1251 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1252 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1253 esac
1254 fi
1255
1256 # Check all directory arguments for consistency.
1257 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1258 datadir sysconfdir sharedstatedir localstatedir includedir \
1259 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1260 libdir localedir mandir
1261 do
1262 eval ac_val=\$$ac_var
1263 # Remove trailing slashes.
1264 case $ac_val in
1265 */ )
1266 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1267 eval $ac_var=\$ac_val;;
1268 esac
1269 # Be sure to have absolute directory names.
1270 case $ac_val in
1271 [\\/$]* | ?:[\\/]* ) continue;;
1272 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1273 esac
1274 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1275 done
1276
1277 # There might be people who depend on the old broken behavior: `$host'
1278 # used to hold the argument of --host etc.
1279 # FIXME: To remove some day.
1280 build=$build_alias
1281 host=$host_alias
1282 target=$target_alias
1283
1284 # FIXME: To remove some day.
1285 if test "x$host_alias" != x; then
1286 if test "x$build_alias" = x; then
1287 cross_compiling=maybe
1288 elif test "x$build_alias" != "x$host_alias"; then
1289 cross_compiling=yes
1290 fi
1291 fi
1292
1293 ac_tool_prefix=
1294 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1295
1296 test "$silent" = yes && exec 6>/dev/null
1297
1298
1299 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1300 ac_ls_di=`ls -di .` &&
1301 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1302 as_fn_error $? "working directory cannot be determined"
1303 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1304 as_fn_error $? "pwd does not report name of working directory"
1305
1306
1307 # Find the source files, if location was not specified.
1308 if test -z "$srcdir"; then
1309 ac_srcdir_defaulted=yes
1310 # Try the directory containing this script, then the parent directory.
1311 ac_confdir=`$as_dirname -- "$as_myself" ||
1312 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1313 X"$as_myself" : 'X\(//\)[^/]' \| \
1314 X"$as_myself" : 'X\(//\)$' \| \
1315 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1316 $as_echo X"$as_myself" |
1317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1318 s//\1/
1319 q
1320 }
1321 /^X\(\/\/\)[^/].*/{
1322 s//\1/
1323 q
1324 }
1325 /^X\(\/\/\)$/{
1326 s//\1/
1327 q
1328 }
1329 /^X\(\/\).*/{
1330 s//\1/
1331 q
1332 }
1333 s/.*/./; q'`
1334 srcdir=$ac_confdir
1335 if test ! -r "$srcdir/$ac_unique_file"; then
1336 srcdir=..
1337 fi
1338 else
1339 ac_srcdir_defaulted=no
1340 fi
1341 if test ! -r "$srcdir/$ac_unique_file"; then
1342 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1343 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1344 fi
1345 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1346 ac_abs_confdir=`(
1347 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1348 pwd)`
1349 # When building in place, set srcdir=.
1350 if test "$ac_abs_confdir" = "$ac_pwd"; then
1351 srcdir=.
1352 fi
1353 # Remove unnecessary trailing slashes from srcdir.
1354 # Double slashes in file names in object file debugging info
1355 # mess up M-x gdb in Emacs.
1356 case $srcdir in
1357 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1358 esac
1359 for ac_var in $ac_precious_vars; do
1360 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_env_${ac_var}_value=\$${ac_var}
1362 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1363 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1364 done
1365
1366 #
1367 # Report the --help message.
1368 #
1369 if test "$ac_init_help" = "long"; then
1370 # Omit some internal or obsolete options to make the list less imposing.
1371 # This message is too long to be a string in the A/UX 3.1 sh.
1372 cat <<_ACEOF
1373 \`configure' configures ircd-hybrid TRUNK to adapt to many kinds of systems.
1374
1375 Usage: $0 [OPTION]... [VAR=VALUE]...
1376
1377 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1378 VAR=VALUE. See below for descriptions of some of the useful variables.
1379
1380 Defaults for the options are specified in brackets.
1381
1382 Configuration:
1383 -h, --help display this help and exit
1384 --help=short display options specific to this package
1385 --help=recursive display the short help of all the included packages
1386 -V, --version display version information and exit
1387 -q, --quiet, --silent do not print \`checking ...' messages
1388 --cache-file=FILE cache test results in FILE [disabled]
1389 -C, --config-cache alias for \`--cache-file=config.cache'
1390 -n, --no-create do not create output files
1391 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1392
1393 Installation directories:
1394 --prefix=PREFIX install architecture-independent files in PREFIX
1395 [$ac_default_prefix]
1396 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1397 [PREFIX]
1398
1399 By default, \`make install' will install all the files in
1400 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1401 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1402 for instance \`--prefix=\$HOME'.
1403
1404 For better control, use the options below.
1405
1406 Fine tuning of the installation directories:
1407 --bindir=DIR user executables [EPREFIX/bin]
1408 --sbindir=DIR system admin executables [EPREFIX/sbin]
1409 --libexecdir=DIR program executables [EPREFIX/libexec]
1410 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1411 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1412 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1413 --libdir=DIR object code libraries [EPREFIX/lib]
1414 --includedir=DIR C header files [PREFIX/include]
1415 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1416 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1417 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1418 --infodir=DIR info documentation [DATAROOTDIR/info]
1419 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1420 --mandir=DIR man documentation [DATAROOTDIR/man]
1421 --docdir=DIR documentation root [DATAROOTDIR/doc/ircd-hybrid]
1422 --htmldir=DIR html documentation [DOCDIR]
1423 --dvidir=DIR dvi documentation [DOCDIR]
1424 --pdfdir=DIR pdf documentation [DOCDIR]
1425 --psdir=DIR ps documentation [DOCDIR]
1426 _ACEOF
1427
1428 cat <<\_ACEOF
1429
1430 Program names:
1431 --program-prefix=PREFIX prepend PREFIX to installed program names
1432 --program-suffix=SUFFIX append SUFFIX to installed program names
1433 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1434
1435 System types:
1436 --build=BUILD configure for building on BUILD [guessed]
1437 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1438 _ACEOF
1439 fi
1440
1441 if test -n "$ac_init_help"; then
1442 case $ac_init_help in
1443 short | recursive ) echo "Configuration of ircd-hybrid TRUNK:";;
1444 esac
1445 cat <<\_ACEOF
1446
1447 Optional Features:
1448 --disable-option-checking ignore unrecognized --enable/--with options
1449 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1450 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1451 --enable-silent-rules less verbose build output (undo: "make V=1")
1452 --disable-silent-rules verbose build output (undo: "make V=0")
1453 --enable-maintainer-mode
1454 enable make rules and dependencies not useful (and
1455 sometimes confusing) to the casual installer
1456 --enable-dependency-tracking
1457 do not reject slow dependency extractors
1458 --disable-dependency-tracking
1459 speeds up one-time build
1460 --enable-static[=PKGS] build static libraries [default=no]
1461 --enable-shared[=PKGS] build shared libraries [default=yes]
1462 --enable-fast-install[=PKGS]
1463 optimize for fast installation [default=yes]
1464 --disable-libtool-lock avoid locking (might break parallel builds)
1465 --enable-ltdl-install install libltdl
1466 --disable-libpcre Disable PCRE support
1467 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1468 --disable-openssl Disable OpenSSL support.
1469 --enable-assert Enable assert() statements
1470 --enable-kqueue Force kqueue usage.
1471 --enable-epoll Force epoll usage.
1472 --enable-devpoll Force devpoll usage.
1473 --enable-poll Force poll usage.
1474 --enable-select Force select usage.
1475 --enable-halfops Enable halfops support.
1476 --enable-debugging Enable debugging.
1477 --enable-warnings Enable compiler warnings.
1478
1479 Optional Packages:
1480 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1481 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1482 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1483 both]
1484 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1485 --with-sysroot=DIR Search for dependent libraries within DIR
1486 (or the compiler's sysroot if not specified).
1487 --with-included-ltdl use the GNU ltdl sources included here
1488 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1489 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1490 --with-nicklen=<value> Set nickname length (default 9).
1491 --with-topiclen=<value> Set topic length (default 160).
1492
1493 Some influential environment variables:
1494 CC C compiler command
1495 CFLAGS C compiler flags
1496 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1497 nonstandard directory <lib dir>
1498 LIBS libraries to pass to the linker, e.g. -l<library>
1499 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1500 you have headers in a nonstandard directory <include dir>
1501 YACC The `Yet Another Compiler Compiler' implementation to use.
1502 Defaults to the first program found out of: `bison -y', `byacc',
1503 `yacc'.
1504 YFLAGS The list of arguments that will be passed by default to $YACC.
1505 This script will default YFLAGS to the empty string to avoid a
1506 default value of `-d' given by some make applications.
1507 CPP C preprocessor
1508
1509 Use these variables to override the choices made by `configure' or to help
1510 it to find libraries and programs with nonstandard names/locations.
1511
1512 Report bugs to <bugs@ircd-hybrid.org>.
1513 _ACEOF
1514 ac_status=$?
1515 fi
1516
1517 if test "$ac_init_help" = "recursive"; then
1518 # If there are subdirs, report their specific --help.
1519 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1520 test -d "$ac_dir" ||
1521 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1522 continue
1523 ac_builddir=.
1524
1525 case "$ac_dir" in
1526 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527 *)
1528 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1529 # A ".." for each directory in $ac_dir_suffix.
1530 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1531 case $ac_top_builddir_sub in
1532 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1534 esac ;;
1535 esac
1536 ac_abs_top_builddir=$ac_pwd
1537 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1538 # for backward compatibility:
1539 ac_top_builddir=$ac_top_build_prefix
1540
1541 case $srcdir in
1542 .) # We are building in place.
1543 ac_srcdir=.
1544 ac_top_srcdir=$ac_top_builddir_sub
1545 ac_abs_top_srcdir=$ac_pwd ;;
1546 [\\/]* | ?:[\\/]* ) # Absolute name.
1547 ac_srcdir=$srcdir$ac_dir_suffix;
1548 ac_top_srcdir=$srcdir
1549 ac_abs_top_srcdir=$srcdir ;;
1550 *) # Relative name.
1551 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1552 ac_top_srcdir=$ac_top_build_prefix$srcdir
1553 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1554 esac
1555 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1556
1557 cd "$ac_dir" || { ac_status=$?; continue; }
1558 # Check for guested configure.
1559 if test -f "$ac_srcdir/configure.gnu"; then
1560 echo &&
1561 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1562 elif test -f "$ac_srcdir/configure"; then
1563 echo &&
1564 $SHELL "$ac_srcdir/configure" --help=recursive
1565 else
1566 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1567 fi || ac_status=$?
1568 cd "$ac_pwd" || { ac_status=$?; break; }
1569 done
1570 fi
1571
1572 test -n "$ac_init_help" && exit $ac_status
1573 if $ac_init_version; then
1574 cat <<\_ACEOF
1575 ircd-hybrid configure TRUNK
1576 generated by GNU Autoconf 2.69
1577
1578 Copyright (C) 2012 Free Software Foundation, Inc.
1579 This configure script is free software; the Free Software Foundation
1580 gives unlimited permission to copy, distribute and modify it.
1581 _ACEOF
1582 exit
1583 fi
1584
1585 ## ------------------------ ##
1586 ## Autoconf initialization. ##
1587 ## ------------------------ ##
1588
1589 # ac_fn_c_try_compile LINENO
1590 # --------------------------
1591 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1592 ac_fn_c_try_compile ()
1593 {
1594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595 rm -f conftest.$ac_objext
1596 if { { ac_try="$ac_compile"
1597 case "(($ac_try" in
1598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1599 *) ac_try_echo=$ac_try;;
1600 esac
1601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1602 $as_echo "$ac_try_echo"; } >&5
1603 (eval "$ac_compile") 2>conftest.err
1604 ac_status=$?
1605 if test -s conftest.err; then
1606 grep -v '^ *+' conftest.err >conftest.er1
1607 cat conftest.er1 >&5
1608 mv -f conftest.er1 conftest.err
1609 fi
1610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611 test $ac_status = 0; } && {
1612 test -z "$ac_c_werror_flag" ||
1613 test ! -s conftest.err
1614 } && test -s conftest.$ac_objext; then :
1615 ac_retval=0
1616 else
1617 $as_echo "$as_me: failed program was:" >&5
1618 sed 's/^/| /' conftest.$ac_ext >&5
1619
1620 ac_retval=1
1621 fi
1622 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1623 as_fn_set_status $ac_retval
1624
1625 } # ac_fn_c_try_compile
1626
1627 # ac_fn_c_try_link LINENO
1628 # -----------------------
1629 # Try to link conftest.$ac_ext, and return whether this succeeded.
1630 ac_fn_c_try_link ()
1631 {
1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633 rm -f conftest.$ac_objext conftest$ac_exeext
1634 if { { ac_try="$ac_link"
1635 case "(($ac_try" in
1636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637 *) ac_try_echo=$ac_try;;
1638 esac
1639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640 $as_echo "$ac_try_echo"; } >&5
1641 (eval "$ac_link") 2>conftest.err
1642 ac_status=$?
1643 if test -s conftest.err; then
1644 grep -v '^ *+' conftest.err >conftest.er1
1645 cat conftest.er1 >&5
1646 mv -f conftest.er1 conftest.err
1647 fi
1648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649 test $ac_status = 0; } && {
1650 test -z "$ac_c_werror_flag" ||
1651 test ! -s conftest.err
1652 } && test -s conftest$ac_exeext && {
1653 test "$cross_compiling" = yes ||
1654 test -x conftest$ac_exeext
1655 }; then :
1656 ac_retval=0
1657 else
1658 $as_echo "$as_me: failed program was:" >&5
1659 sed 's/^/| /' conftest.$ac_ext >&5
1660
1661 ac_retval=1
1662 fi
1663 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1664 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1665 # interfere with the next link command; also delete a directory that is
1666 # left behind by Apple's compiler. We do this before executing the actions.
1667 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669 as_fn_set_status $ac_retval
1670
1671 } # ac_fn_c_try_link
1672
1673 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1674 # -------------------------------------------------------
1675 # Tests whether HEADER exists and can be compiled using the include files in
1676 # INCLUDES, setting the cache variable VAR accordingly.
1677 ac_fn_c_check_header_compile ()
1678 {
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1681 $as_echo_n "checking for $2... " >&6; }
1682 if eval \${$3+:} false; then :
1683 $as_echo_n "(cached) " >&6
1684 else
1685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1686 /* end confdefs.h. */
1687 $4
1688 #include <$2>
1689 _ACEOF
1690 if ac_fn_c_try_compile "$LINENO"; then :
1691 eval "$3=yes"
1692 else
1693 eval "$3=no"
1694 fi
1695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1696 fi
1697 eval ac_res=\$$3
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1699 $as_echo "$ac_res" >&6; }
1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701
1702 } # ac_fn_c_check_header_compile
1703
1704 # ac_fn_c_try_cpp LINENO
1705 # ----------------------
1706 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1707 ac_fn_c_try_cpp ()
1708 {
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 if { { ac_try="$ac_cpp conftest.$ac_ext"
1711 case "(($ac_try" in
1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713 *) ac_try_echo=$ac_try;;
1714 esac
1715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716 $as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1718 ac_status=$?
1719 if test -s conftest.err; then
1720 grep -v '^ *+' conftest.err >conftest.er1
1721 cat conftest.er1 >&5
1722 mv -f conftest.er1 conftest.err
1723 fi
1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725 test $ac_status = 0; } > conftest.i && {
1726 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1727 test ! -s conftest.err
1728 }; then :
1729 ac_retval=0
1730 else
1731 $as_echo "$as_me: failed program was:" >&5
1732 sed 's/^/| /' conftest.$ac_ext >&5
1733
1734 ac_retval=1
1735 fi
1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737 as_fn_set_status $ac_retval
1738
1739 } # ac_fn_c_try_cpp
1740
1741 # ac_fn_c_try_run LINENO
1742 # ----------------------
1743 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1744 # that executables *can* be run.
1745 ac_fn_c_try_run ()
1746 {
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 if { { ac_try="$ac_link"
1749 case "(($ac_try" in
1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1752 esac
1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 $as_echo "$ac_try_echo"; } >&5
1755 (eval "$ac_link") 2>&5
1756 ac_status=$?
1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1759 { { case "(($ac_try" in
1760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761 *) ac_try_echo=$ac_try;;
1762 esac
1763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764 $as_echo "$ac_try_echo"; } >&5
1765 (eval "$ac_try") 2>&5
1766 ac_status=$?
1767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768 test $ac_status = 0; }; }; then :
1769 ac_retval=0
1770 else
1771 $as_echo "$as_me: program exited with status $ac_status" >&5
1772 $as_echo "$as_me: failed program was:" >&5
1773 sed 's/^/| /' conftest.$ac_ext >&5
1774
1775 ac_retval=$ac_status
1776 fi
1777 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779 as_fn_set_status $ac_retval
1780
1781 } # ac_fn_c_try_run
1782
1783 # ac_fn_c_check_func LINENO FUNC VAR
1784 # ----------------------------------
1785 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1786 ac_fn_c_check_func ()
1787 {
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1790 $as_echo_n "checking for $2... " >&6; }
1791 if eval \${$3+:} false; then :
1792 $as_echo_n "(cached) " >&6
1793 else
1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795 /* end confdefs.h. */
1796 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1798 #define $2 innocuous_$2
1799
1800 /* System header to define __stub macros and hopefully few prototypes,
1801 which can conflict with char $2 (); below.
1802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1803 <limits.h> exists even on freestanding compilers. */
1804
1805 #ifdef __STDC__
1806 # include <limits.h>
1807 #else
1808 # include <assert.h>
1809 #endif
1810
1811 #undef $2
1812
1813 /* Override any GCC internal prototype to avoid an error.
1814 Use char because int might match the return type of a GCC
1815 builtin and then its argument prototype would still apply. */
1816 #ifdef __cplusplus
1817 extern "C"
1818 #endif
1819 char $2 ();
1820 /* The GNU C library defines this for functions which it implements
1821 to always fail with ENOSYS. Some functions are actually named
1822 something starting with __ and the normal name is an alias. */
1823 #if defined __stub_$2 || defined __stub___$2
1824 choke me
1825 #endif
1826
1827 int
1828 main ()
1829 {
1830 return $2 ();
1831 ;
1832 return 0;
1833 }
1834 _ACEOF
1835 if ac_fn_c_try_link "$LINENO"; then :
1836 eval "$3=yes"
1837 else
1838 eval "$3=no"
1839 fi
1840 rm -f core conftest.err conftest.$ac_objext \
1841 conftest$ac_exeext conftest.$ac_ext
1842 fi
1843 eval ac_res=\$$3
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1845 $as_echo "$ac_res" >&6; }
1846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847
1848 } # ac_fn_c_check_func
1849
1850 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1851 # ---------------------------------------------
1852 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1853 # accordingly.
1854 ac_fn_c_check_decl ()
1855 {
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 as_decl_name=`echo $2|sed 's/ *(.*//'`
1858 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1860 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1861 if eval \${$3+:} false; then :
1862 $as_echo_n "(cached) " >&6
1863 else
1864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865 /* end confdefs.h. */
1866 $4
1867 int
1868 main ()
1869 {
1870 #ifndef $as_decl_name
1871 #ifdef __cplusplus
1872 (void) $as_decl_use;
1873 #else
1874 (void) $as_decl_name;
1875 #endif
1876 #endif
1877
1878 ;
1879 return 0;
1880 }
1881 _ACEOF
1882 if ac_fn_c_try_compile "$LINENO"; then :
1883 eval "$3=yes"
1884 else
1885 eval "$3=no"
1886 fi
1887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1888 fi
1889 eval ac_res=\$$3
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 $as_echo "$ac_res" >&6; }
1892 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1893
1894 } # ac_fn_c_check_decl
1895
1896 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1897 # -------------------------------------------
1898 # Tests whether TYPE exists after having included INCLUDES, setting cache
1899 # variable VAR accordingly.
1900 ac_fn_c_check_type ()
1901 {
1902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1904 $as_echo_n "checking for $2... " >&6; }
1905 if eval \${$3+:} false; then :
1906 $as_echo_n "(cached) " >&6
1907 else
1908 eval "$3=no"
1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910 /* end confdefs.h. */
1911 $4
1912 int
1913 main ()
1914 {
1915 if (sizeof ($2))
1916 return 0;
1917 ;
1918 return 0;
1919 }
1920 _ACEOF
1921 if ac_fn_c_try_compile "$LINENO"; then :
1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923 /* end confdefs.h. */
1924 $4
1925 int
1926 main ()
1927 {
1928 if (sizeof (($2)))
1929 return 0;
1930 ;
1931 return 0;
1932 }
1933 _ACEOF
1934 if ac_fn_c_try_compile "$LINENO"; then :
1935
1936 else
1937 eval "$3=yes"
1938 fi
1939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940 fi
1941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1942 fi
1943 eval ac_res=\$$3
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1945 $as_echo "$ac_res" >&6; }
1946 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947
1948 } # ac_fn_c_check_type
1949
1950 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1951 # ----------------------------------------------------
1952 # Tries to find if the field MEMBER exists in type AGGR, after including
1953 # INCLUDES, setting cache variable VAR accordingly.
1954 ac_fn_c_check_member ()
1955 {
1956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1958 $as_echo_n "checking for $2.$3... " >&6; }
1959 if eval \${$4+:} false; then :
1960 $as_echo_n "(cached) " >&6
1961 else
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h. */
1964 $5
1965 int
1966 main ()
1967 {
1968 static $2 ac_aggr;
1969 if (ac_aggr.$3)
1970 return 0;
1971 ;
1972 return 0;
1973 }
1974 _ACEOF
1975 if ac_fn_c_try_compile "$LINENO"; then :
1976 eval "$4=yes"
1977 else
1978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h. */
1980 $5
1981 int
1982 main ()
1983 {
1984 static $2 ac_aggr;
1985 if (sizeof ac_aggr.$3)
1986 return 0;
1987 ;
1988 return 0;
1989 }
1990 _ACEOF
1991 if ac_fn_c_try_compile "$LINENO"; then :
1992 eval "$4=yes"
1993 else
1994 eval "$4=no"
1995 fi
1996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997 fi
1998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999 fi
2000 eval ac_res=\$$4
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2002 $as_echo "$ac_res" >&6; }
2003 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004
2005 } # ac_fn_c_check_member
2006
2007 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2008 # -------------------------------------------------------
2009 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2010 # the include files in INCLUDES and setting the cache variable VAR
2011 # accordingly.
2012 ac_fn_c_check_header_mongrel ()
2013 {
2014 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015 if eval \${$3+:} false; then :
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2017 $as_echo_n "checking for $2... " >&6; }
2018 if eval \${$3+:} false; then :
2019 $as_echo_n "(cached) " >&6
2020 fi
2021 eval ac_res=\$$3
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2023 $as_echo "$ac_res" >&6; }
2024 else
2025 # Is the header compilable?
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2027 $as_echo_n "checking $2 usability... " >&6; }
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2030 $4
2031 #include <$2>
2032 _ACEOF
2033 if ac_fn_c_try_compile "$LINENO"; then :
2034 ac_header_compiler=yes
2035 else
2036 ac_header_compiler=no
2037 fi
2038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2040 $as_echo "$ac_header_compiler" >&6; }
2041
2042 # Is the header present?
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2044 $as_echo_n "checking $2 presence... " >&6; }
2045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046 /* end confdefs.h. */
2047 #include <$2>
2048 _ACEOF
2049 if ac_fn_c_try_cpp "$LINENO"; then :
2050 ac_header_preproc=yes
2051 else
2052 ac_header_preproc=no
2053 fi
2054 rm -f conftest.err conftest.i conftest.$ac_ext
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2056 $as_echo "$ac_header_preproc" >&6; }
2057
2058 # So? What about this header?
2059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2060 yes:no: )
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2062 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2064 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2065 ;;
2066 no:yes:* )
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2068 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2070 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2072 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2074 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2076 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2077 ( $as_echo "## ----------------------------------- ##
2078 ## Report this to bugs@ircd-hybrid.org ##
2079 ## ----------------------------------- ##"
2080 ) | sed "s/^/$as_me: WARNING: /" >&2
2081 ;;
2082 esac
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2084 $as_echo_n "checking for $2... " >&6; }
2085 if eval \${$3+:} false; then :
2086 $as_echo_n "(cached) " >&6
2087 else
2088 eval "$3=\$ac_header_compiler"
2089 fi
2090 eval ac_res=\$$3
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2092 $as_echo "$ac_res" >&6; }
2093 fi
2094 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2095
2096 } # ac_fn_c_check_header_mongrel
2097 cat >config.log <<_ACEOF
2098 This file contains any messages produced by compilers while
2099 running configure, to aid debugging if configure makes a mistake.
2100
2101 It was created by ircd-hybrid $as_me TRUNK, which was
2102 generated by GNU Autoconf 2.69. Invocation command line was
2103
2104 $ $0 $@
2105
2106 _ACEOF
2107 exec 5>>config.log
2108 {
2109 cat <<_ASUNAME
2110 ## --------- ##
2111 ## Platform. ##
2112 ## --------- ##
2113
2114 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2115 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2116 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2117 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2118 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2119
2120 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2121 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2122
2123 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2124 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2125 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2126 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2127 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2128 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2129 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2130
2131 _ASUNAME
2132
2133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134 for as_dir in $PATH
2135 do
2136 IFS=$as_save_IFS
2137 test -z "$as_dir" && as_dir=.
2138 $as_echo "PATH: $as_dir"
2139 done
2140 IFS=$as_save_IFS
2141
2142 } >&5
2143
2144 cat >&5 <<_ACEOF
2145
2146
2147 ## ----------- ##
2148 ## Core tests. ##
2149 ## ----------- ##
2150
2151 _ACEOF
2152
2153
2154 # Keep a trace of the command line.
2155 # Strip out --no-create and --no-recursion so they do not pile up.
2156 # Strip out --silent because we don't want to record it for future runs.
2157 # Also quote any args containing shell meta-characters.
2158 # Make two passes to allow for proper duplicate-argument suppression.
2159 ac_configure_args=
2160 ac_configure_args0=
2161 ac_configure_args1=
2162 ac_must_keep_next=false
2163 for ac_pass in 1 2
2164 do
2165 for ac_arg
2166 do
2167 case $ac_arg in
2168 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2169 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2170 | -silent | --silent | --silen | --sile | --sil)
2171 continue ;;
2172 *\'*)
2173 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2174 esac
2175 case $ac_pass in
2176 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2177 2)
2178 as_fn_append ac_configure_args1 " '$ac_arg'"
2179 if test $ac_must_keep_next = true; then
2180 ac_must_keep_next=false # Got value, back to normal.
2181 else
2182 case $ac_arg in
2183 *=* | --config-cache | -C | -disable-* | --disable-* \
2184 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2185 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2186 | -with-* | --with-* | -without-* | --without-* | --x)
2187 case "$ac_configure_args0 " in
2188 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2189 esac
2190 ;;
2191 -* ) ac_must_keep_next=true ;;
2192 esac
2193 fi
2194 as_fn_append ac_configure_args " '$ac_arg'"
2195 ;;
2196 esac
2197 done
2198 done
2199 { ac_configure_args0=; unset ac_configure_args0;}
2200 { ac_configure_args1=; unset ac_configure_args1;}
2201
2202 # When interrupted or exit'd, cleanup temporary files, and complete
2203 # config.log. We remove comments because anyway the quotes in there
2204 # would cause problems or look ugly.
2205 # WARNING: Use '\'' to represent an apostrophe within the trap.
2206 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2207 trap 'exit_status=$?
2208 # Save into config.log some information that might help in debugging.
2209 {
2210 echo
2211
2212 $as_echo "## ---------------- ##
2213 ## Cache variables. ##
2214 ## ---------------- ##"
2215 echo
2216 # The following way of writing the cache mishandles newlines in values,
2217 (
2218 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2219 eval ac_val=\$$ac_var
2220 case $ac_val in #(
2221 *${as_nl}*)
2222 case $ac_var in #(
2223 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2224 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2225 esac
2226 case $ac_var in #(
2227 _ | IFS | as_nl) ;; #(
2228 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2229 *) { eval $ac_var=; unset $ac_var;} ;;
2230 esac ;;
2231 esac
2232 done
2233 (set) 2>&1 |
2234 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2235 *${as_nl}ac_space=\ *)
2236 sed -n \
2237 "s/'\''/'\''\\\\'\'''\''/g;
2238 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2239 ;; #(
2240 *)
2241 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2242 ;;
2243 esac |
2244 sort
2245 )
2246 echo
2247
2248 $as_echo "## ----------------- ##
2249 ## Output variables. ##
2250 ## ----------------- ##"
2251 echo
2252 for ac_var in $ac_subst_vars
2253 do
2254 eval ac_val=\$$ac_var
2255 case $ac_val in
2256 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2257 esac
2258 $as_echo "$ac_var='\''$ac_val'\''"
2259 done | sort
2260 echo
2261
2262 if test -n "$ac_subst_files"; then
2263 $as_echo "## ------------------- ##
2264 ## File substitutions. ##
2265 ## ------------------- ##"
2266 echo
2267 for ac_var in $ac_subst_files
2268 do
2269 eval ac_val=\$$ac_var
2270 case $ac_val in
2271 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2272 esac
2273 $as_echo "$ac_var='\''$ac_val'\''"
2274 done | sort
2275 echo
2276 fi
2277
2278 if test -s confdefs.h; then
2279 $as_echo "## ----------- ##
2280 ## confdefs.h. ##
2281 ## ----------- ##"
2282 echo
2283 cat confdefs.h
2284 echo
2285 fi
2286 test "$ac_signal" != 0 &&
2287 $as_echo "$as_me: caught signal $ac_signal"
2288 $as_echo "$as_me: exit $exit_status"
2289 } >&5
2290 rm -f core *.core core.conftest.* &&
2291 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2292 exit $exit_status
2293 ' 0
2294 for ac_signal in 1 2 13 15; do
2295 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2296 done
2297 ac_signal=0
2298
2299 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2300 rm -f -r conftest* confdefs.h
2301
2302 $as_echo "/* confdefs.h */" > confdefs.h
2303
2304 # Predefined preprocessor variables.
2305
2306 cat >>confdefs.h <<_ACEOF
2307 #define PACKAGE_NAME "$PACKAGE_NAME"
2308 _ACEOF
2309
2310 cat >>confdefs.h <<_ACEOF
2311 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2312 _ACEOF
2313
2314 cat >>confdefs.h <<_ACEOF
2315 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2316 _ACEOF
2317
2318 cat >>confdefs.h <<_ACEOF
2319 #define PACKAGE_STRING "$PACKAGE_STRING"
2320 _ACEOF
2321
2322 cat >>confdefs.h <<_ACEOF
2323 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2324 _ACEOF
2325
2326 cat >>confdefs.h <<_ACEOF
2327 #define PACKAGE_URL "$PACKAGE_URL"
2328 _ACEOF
2329
2330
2331 # Let the site file select an alternate cache file if it wants to.
2332 # Prefer an explicitly selected file to automatically selected ones.
2333 ac_site_file1=NONE
2334 ac_site_file2=NONE
2335 if test -n "$CONFIG_SITE"; then
2336 # We do not want a PATH search for config.site.
2337 case $CONFIG_SITE in #((
2338 -*) ac_site_file1=./$CONFIG_SITE;;
2339 */*) ac_site_file1=$CONFIG_SITE;;
2340 *) ac_site_file1=./$CONFIG_SITE;;
2341 esac
2342 elif test "x$prefix" != xNONE; then
2343 ac_site_file1=$prefix/share/config.site
2344 ac_site_file2=$prefix/etc/config.site
2345 else
2346 ac_site_file1=$ac_default_prefix/share/config.site
2347 ac_site_file2=$ac_default_prefix/etc/config.site
2348 fi
2349 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2350 do
2351 test "x$ac_site_file" = xNONE && continue
2352 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2354 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2355 sed 's/^/| /' "$ac_site_file" >&5
2356 . "$ac_site_file" \
2357 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2359 as_fn_error $? "failed to load site script $ac_site_file
2360 See \`config.log' for more details" "$LINENO" 5; }
2361 fi
2362 done
2363
2364 if test -r "$cache_file"; then
2365 # Some versions of bash will fail to source /dev/null (special files
2366 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2367 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2369 $as_echo "$as_me: loading cache $cache_file" >&6;}
2370 case $cache_file in
2371 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2372 *) . "./$cache_file";;
2373 esac
2374 fi
2375 else
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2377 $as_echo "$as_me: creating cache $cache_file" >&6;}
2378 >$cache_file
2379 fi
2380
2381 as_fn_append ac_func_list " strtok_r"
2382 as_fn_append ac_func_list " usleep"
2383 as_fn_append ac_func_list " strlcat"
2384 as_fn_append ac_func_list " strlcpy"
2385 as_fn_append ac_header_list " crypt.h"
2386 as_fn_append ac_header_list " sys/resource.h"
2387 as_fn_append ac_header_list " sys/param.h"
2388 as_fn_append ac_header_list " types.h"
2389 as_fn_append ac_header_list " socket.h"
2390 as_fn_append ac_header_list " sys/wait.h"
2391 as_fn_append ac_header_list " wait.h"
2392 # Check that the precious variables saved in the cache have kept the same
2393 # value.
2394 ac_cache_corrupted=false
2395 for ac_var in $ac_precious_vars; do
2396 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2397 eval ac_new_set=\$ac_env_${ac_var}_set
2398 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2399 eval ac_new_val=\$ac_env_${ac_var}_value
2400 case $ac_old_set,$ac_new_set in
2401 set,)
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2403 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2404 ac_cache_corrupted=: ;;
2405 ,set)
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2407 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2408 ac_cache_corrupted=: ;;
2409 ,);;
2410 *)
2411 if test "x$ac_old_val" != "x$ac_new_val"; then
2412 # differences in whitespace do not lead to failure.
2413 ac_old_val_w=`echo x $ac_old_val`
2414 ac_new_val_w=`echo x $ac_new_val`
2415 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2417 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2418 ac_cache_corrupted=:
2419 else
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2421 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2422 eval $ac_var=\$ac_old_val
2423 fi
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2425 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2427 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2428 fi;;
2429 esac
2430 # Pass precious variables to config.status.
2431 if test "$ac_new_set" = set; then
2432 case $ac_new_val in
2433 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2434 *) ac_arg=$ac_var=$ac_new_val ;;
2435 esac
2436 case " $ac_configure_args " in
2437 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2438 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2439 esac
2440 fi
2441 done
2442 if $ac_cache_corrupted; then
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2444 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2446 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2447 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2448 fi
2449 ## -------------------- ##
2450 ## Main body of script. ##
2451 ## -------------------- ##
2452
2453 ac_ext=c
2454 ac_cpp='$CPP $CPPFLAGS'
2455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2458
2459
2460 am__api_version='1.13'
2461
2462 ac_aux_dir=
2463 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2464 if test -f "$ac_dir/install-sh"; then
2465 ac_aux_dir=$ac_dir
2466 ac_install_sh="$ac_aux_dir/install-sh -c"
2467 break
2468 elif test -f "$ac_dir/install.sh"; then
2469 ac_aux_dir=$ac_dir
2470 ac_install_sh="$ac_aux_dir/install.sh -c"
2471 break
2472 elif test -f "$ac_dir/shtool"; then
2473 ac_aux_dir=$ac_dir
2474 ac_install_sh="$ac_aux_dir/shtool install -c"
2475 break
2476 fi
2477 done
2478 if test -z "$ac_aux_dir"; then
2479 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2480 fi
2481
2482 # These three variables are undocumented and unsupported,
2483 # and are intended to be withdrawn in a future Autoconf release.
2484 # They can cause serious problems if a builder's source tree is in a directory
2485 # whose full name contains unusual characters.
2486 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2487 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2488 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2489
2490
2491 # Find a good install program. We prefer a C program (faster),
2492 # so one script is as good as another. But avoid the broken or
2493 # incompatible versions:
2494 # SysV /etc/install, /usr/sbin/install
2495 # SunOS /usr/etc/install
2496 # IRIX /sbin/install
2497 # AIX /bin/install
2498 # AmigaOS /C/install, which installs bootblocks on floppy discs
2499 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2500 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2501 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2502 # OS/2's system install, which has a completely different semantic
2503 # ./install, which can be erroneously created by make from ./install.sh.
2504 # Reject install programs that cannot install multiple files.
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2506 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2507 if test -z "$INSTALL"; then
2508 if ${ac_cv_path_install+:} false; then :
2509 $as_echo_n "(cached) " >&6
2510 else
2511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512 for as_dir in $PATH
2513 do
2514 IFS=$as_save_IFS
2515 test -z "$as_dir" && as_dir=.
2516 # Account for people who put trailing slashes in PATH elements.
2517 case $as_dir/ in #((
2518 ./ | .// | /[cC]/* | \
2519 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2520 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2521 /usr/ucb/* ) ;;
2522 *)
2523 # OSF1 and SCO ODT 3.0 have their own names for install.
2524 # Don't use installbsd from OSF since it installs stuff as root
2525 # by default.
2526 for ac_prog in ginstall scoinst install; do
2527 for ac_exec_ext in '' $ac_executable_extensions; do
2528 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2529 if test $ac_prog = install &&
2530 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2531 # AIX install. It has an incompatible calling convention.
2532 :
2533 elif test $ac_prog = install &&
2534 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2535 # program-specific install script used by HP pwplus--don't use.
2536 :
2537 else
2538 rm -rf conftest.one conftest.two conftest.dir
2539 echo one > conftest.one
2540 echo two > conftest.two
2541 mkdir conftest.dir
2542 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2543 test -s conftest.one && test -s conftest.two &&
2544 test -s conftest.dir/conftest.one &&
2545 test -s conftest.dir/conftest.two
2546 then
2547 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2548 break 3
2549 fi
2550 fi
2551 fi
2552 done
2553 done
2554 ;;
2555 esac
2556
2557 done
2558 IFS=$as_save_IFS
2559
2560 rm -rf conftest.one conftest.two conftest.dir
2561
2562 fi
2563 if test "${ac_cv_path_install+set}" = set; then
2564 INSTALL=$ac_cv_path_install
2565 else
2566 # As a last resort, use the slow shell script. Don't cache a
2567 # value for INSTALL within a source directory, because that will
2568 # break other packages using the cache if that directory is
2569 # removed, or if the value is a relative name.
2570 INSTALL=$ac_install_sh
2571 fi
2572 fi
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2574 $as_echo "$INSTALL" >&6; }
2575
2576 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2577 # It thinks the first close brace ends the variable substitution.
2578 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2579
2580 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2581
2582 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2583
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2585 $as_echo_n "checking whether build environment is sane... " >&6; }
2586 # Reject unsafe characters in $srcdir or the absolute working directory
2587 # name. Accept space and tab only in the latter.
2588 am_lf='
2589 '
2590 case `pwd` in
2591 *[\\\"\#\$\&\'\`$am_lf]*)
2592 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2593 esac
2594 case $srcdir in
2595 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2596 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2597 esac
2598
2599 # Do 'set' in a subshell so we don't clobber the current shell's
2600 # arguments. Must try -L first in case configure is actually a
2601 # symlink; some systems play weird games with the mod time of symlinks
2602 # (eg FreeBSD returns the mod time of the symlink's containing
2603 # directory).
2604 if (
2605 am_has_slept=no
2606 for am_try in 1 2; do
2607 echo "timestamp, slept: $am_has_slept" > conftest.file
2608 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2609 if test "$*" = "X"; then
2610 # -L didn't work.
2611 set X `ls -t "$srcdir/configure" conftest.file`
2612 fi
2613 if test "$*" != "X $srcdir/configure conftest.file" \
2614 && test "$*" != "X conftest.file $srcdir/configure"; then
2615
2616 # If neither matched, then we have a broken ls. This can happen
2617 # if, for instance, CONFIG_SHELL is bash and it inherits a
2618 # broken ls alias from the environment. This has actually
2619 # happened. Such a system could not be considered "sane".
2620 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2621 alias in your environment" "$LINENO" 5
2622 fi
2623 if test "$2" = conftest.file || test $am_try -eq 2; then
2624 break
2625 fi
2626 # Just in case.
2627 sleep 1
2628 am_has_slept=yes
2629 done
2630 test "$2" = conftest.file
2631 )
2632 then
2633 # Ok.
2634 :
2635 else
2636 as_fn_error $? "newly created file is older than distributed files!
2637 Check your system clock" "$LINENO" 5
2638 fi
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2640 $as_echo "yes" >&6; }
2641 # If we didn't sleep, we still need to ensure time stamps of config.status and
2642 # generated files are strictly newer.
2643 am_sleep_pid=
2644 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2645 ( sleep 1 ) &
2646 am_sleep_pid=$!
2647 fi
2648
2649 rm -f conftest.file
2650
2651 test "$program_prefix" != NONE &&
2652 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2653 # Use a double $ so make ignores it.
2654 test "$program_suffix" != NONE &&
2655 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2656 # Double any \ or $.
2657 # By default was `s,x,x', remove it if useless.
2658 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2659 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2660
2661 # expand $ac_aux_dir to an absolute path
2662 am_aux_dir=`cd $ac_aux_dir && pwd`
2663
2664 if test x"${MISSING+set}" != xset; then
2665 case $am_aux_dir in
2666 *\ * | *\ *)
2667 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2668 *)
2669 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2670 esac
2671 fi
2672 # Use eval to expand $SHELL
2673 if eval "$MISSING --is-lightweight"; then
2674 am_missing_run="$MISSING "
2675 else
2676 am_missing_run=
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2678 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2679 fi
2680
2681 if test x"${install_sh}" != xset; then
2682 case $am_aux_dir in
2683 *\ * | *\ *)
2684 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2685 *)
2686 install_sh="\${SHELL} $am_aux_dir/install-sh"
2687 esac
2688 fi
2689
2690 # Installed binaries are usually stripped using 'strip' when the user
2691 # run "make install-strip". However 'strip' might not be the right
2692 # tool to use in cross-compilation environments, therefore Automake
2693 # will honor the 'STRIP' environment variable to overrule this program.
2694 if test "$cross_compiling" != no; then
2695 if test -n "$ac_tool_prefix"; then
2696 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2697 set dummy ${ac_tool_prefix}strip; ac_word=$2
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2699 $as_echo_n "checking for $ac_word... " >&6; }
2700 if ${ac_cv_prog_STRIP+:} false; then :
2701 $as_echo_n "(cached) " >&6
2702 else
2703 if test -n "$STRIP"; then
2704 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2705 else
2706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707 for as_dir in $PATH
2708 do
2709 IFS=$as_save_IFS
2710 test -z "$as_dir" && as_dir=.
2711 for ac_exec_ext in '' $ac_executable_extensions; do
2712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2713 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2715 break 2
2716 fi
2717 done
2718 done
2719 IFS=$as_save_IFS
2720
2721 fi
2722 fi
2723 STRIP=$ac_cv_prog_STRIP
2724 if test -n "$STRIP"; then
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2726 $as_echo "$STRIP" >&6; }
2727 else
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2729 $as_echo "no" >&6; }
2730 fi
2731
2732
2733 fi
2734 if test -z "$ac_cv_prog_STRIP"; then
2735 ac_ct_STRIP=$STRIP
2736 # Extract the first word of "strip", so it can be a program name with args.
2737 set dummy strip; ac_word=$2
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2739 $as_echo_n "checking for $ac_word... " >&6; }
2740 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2741 $as_echo_n "(cached) " >&6
2742 else
2743 if test -n "$ac_ct_STRIP"; then
2744 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2745 else
2746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747 for as_dir in $PATH
2748 do
2749 IFS=$as_save_IFS
2750 test -z "$as_dir" && as_dir=.
2751 for ac_exec_ext in '' $ac_executable_extensions; do
2752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2753 ac_cv_prog_ac_ct_STRIP="strip"
2754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2755 break 2
2756 fi
2757 done
2758 done
2759 IFS=$as_save_IFS
2760
2761 fi
2762 fi
2763 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2764 if test -n "$ac_ct_STRIP"; then
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2766 $as_echo "$ac_ct_STRIP" >&6; }
2767 else
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2769 $as_echo "no" >&6; }
2770 fi
2771
2772 if test "x$ac_ct_STRIP" = x; then
2773 STRIP=":"
2774 else
2775 case $cross_compiling:$ac_tool_warned in
2776 yes:)
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2779 ac_tool_warned=yes ;;
2780 esac
2781 STRIP=$ac_ct_STRIP
2782 fi
2783 else
2784 STRIP="$ac_cv_prog_STRIP"
2785 fi
2786
2787 fi
2788 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2789
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2791 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2792 if test -z "$MKDIR_P"; then
2793 if ${ac_cv_path_mkdir+:} false; then :
2794 $as_echo_n "(cached) " >&6
2795 else
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2798 do
2799 IFS=$as_save_IFS
2800 test -z "$as_dir" && as_dir=.
2801 for ac_prog in mkdir gmkdir; do
2802 for ac_exec_ext in '' $ac_executable_extensions; do
2803 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2804 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2805 'mkdir (GNU coreutils) '* | \
2806 'mkdir (coreutils) '* | \
2807 'mkdir (fileutils) '4.1*)
2808 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2809 break 3;;
2810 esac
2811 done
2812 done
2813 done
2814 IFS=$as_save_IFS
2815
2816 fi
2817
2818 test -d ./--version && rmdir ./--version
2819 if test "${ac_cv_path_mkdir+set}" = set; then
2820 MKDIR_P="$ac_cv_path_mkdir -p"
2821 else
2822 # As a last resort, use the slow shell script. Don't cache a
2823 # value for MKDIR_P within a source directory, because that will
2824 # break other packages using the cache if that directory is
2825 # removed, or if the value is a relative name.
2826 MKDIR_P="$ac_install_sh -d"
2827 fi
2828 fi
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2830 $as_echo "$MKDIR_P" >&6; }
2831
2832 for ac_prog in gawk mawk nawk awk
2833 do
2834 # Extract the first word of "$ac_prog", so it can be a program name with args.
2835 set dummy $ac_prog; ac_word=$2
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2837 $as_echo_n "checking for $ac_word... " >&6; }
2838 if ${ac_cv_prog_AWK+:} false; then :
2839 $as_echo_n "(cached) " >&6
2840 else
2841 if test -n "$AWK"; then
2842 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2843 else
2844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845 for as_dir in $PATH
2846 do
2847 IFS=$as_save_IFS
2848 test -z "$as_dir" && as_dir=.
2849 for ac_exec_ext in '' $ac_executable_extensions; do
2850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2851 ac_cv_prog_AWK="$ac_prog"
2852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2853 break 2
2854 fi
2855 done
2856 done
2857 IFS=$as_save_IFS
2858
2859 fi
2860 fi
2861 AWK=$ac_cv_prog_AWK
2862 if test -n "$AWK"; then
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2864 $as_echo "$AWK" >&6; }
2865 else
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2867 $as_echo "no" >&6; }
2868 fi
2869
2870
2871 test -n "$AWK" && break
2872 done
2873
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2875 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2876 set x ${MAKE-make}
2877 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2878 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2879 $as_echo_n "(cached) " >&6
2880 else
2881 cat >conftest.make <<\_ACEOF
2882 SHELL = /bin/sh
2883 all:
2884 @echo '@@@%%%=$(MAKE)=@@@%%%'
2885 _ACEOF
2886 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2887 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2888 *@@@%%%=?*=@@@%%%*)
2889 eval ac_cv_prog_make_${ac_make}_set=yes;;
2890 *)
2891 eval ac_cv_prog_make_${ac_make}_set=no;;
2892 esac
2893 rm -f conftest.make
2894 fi
2895 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2897 $as_echo "yes" >&6; }
2898 SET_MAKE=
2899 else
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2901 $as_echo "no" >&6; }
2902 SET_MAKE="MAKE=${MAKE-make}"
2903 fi
2904
2905 rm -rf .tst 2>/dev/null
2906 mkdir .tst 2>/dev/null
2907 if test -d .tst; then
2908 am__leading_dot=.
2909 else
2910 am__leading_dot=_
2911 fi
2912 rmdir .tst 2>/dev/null
2913
2914 # Check whether --enable-silent-rules was given.
2915 if test "${enable_silent_rules+set}" = set; then :
2916 enableval=$enable_silent_rules;
2917 fi
2918
2919 case $enable_silent_rules in # (((
2920 yes) AM_DEFAULT_VERBOSITY=0;;
2921 no) AM_DEFAULT_VERBOSITY=1;;
2922 *) AM_DEFAULT_VERBOSITY=1;;
2923 esac
2924 am_make=${MAKE-make}
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2926 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2927 if ${am_cv_make_support_nested_variables+:} false; then :
2928 $as_echo_n "(cached) " >&6
2929 else
2930 if $as_echo 'TRUE=$(BAR$(V))
2931 BAR0=false
2932 BAR1=true
2933 V=1
2934 am__doit:
2935 @$(TRUE)
2936 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2937 am_cv_make_support_nested_variables=yes
2938 else
2939 am_cv_make_support_nested_variables=no
2940 fi
2941 fi
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2943 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2944 if test $am_cv_make_support_nested_variables = yes; then
2945 AM_V='$(V)'
2946 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2947 else
2948 AM_V=$AM_DEFAULT_VERBOSITY
2949 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2950 fi
2951 AM_BACKSLASH='\'
2952
2953 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2954 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2955 # is not polluted with repeated "-I."
2956 am__isrc=' -I$(srcdir)'
2957 # test to see if srcdir already configured
2958 if test -f $srcdir/config.status; then
2959 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2960 fi
2961 fi
2962
2963 # test whether we have cygpath
2964 if test -z "$CYGPATH_W"; then
2965 if (cygpath --version) >/dev/null 2>/dev/null; then
2966 CYGPATH_W='cygpath -w'
2967 else
2968 CYGPATH_W=echo
2969 fi
2970 fi
2971
2972
2973 # Define the identity of the package.
2974 PACKAGE='ircd-hybrid'
2975 VERSION='TRUNK'
2976
2977
2978 cat >>confdefs.h <<_ACEOF
2979 #define PACKAGE "$PACKAGE"
2980 _ACEOF
2981
2982
2983 cat >>confdefs.h <<_ACEOF
2984 #define VERSION "$VERSION"
2985 _ACEOF
2986
2987 # Some tools Automake needs.
2988
2989 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2990
2991
2992 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2993
2994
2995 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2996
2997
2998 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2999
3000
3001 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3002
3003 # For better backward compatibility. To be removed once Automake 1.9.x
3004 # dies out for good. For more background, see:
3005 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3006 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3007 mkdir_p='$(MKDIR_P)'
3008
3009 # We need awk for the "check" target. The system "awk" is bad on
3010 # some platforms.
3011 # Always define AMTAR for backward compatibility. Yes, it's still used
3012 # in the wild :-( We should find a proper way to deprecate it ...
3013 AMTAR='$${TAR-tar}'
3014
3015 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3016
3017
3018
3019
3020
3021
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3023 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3024 # Check whether --enable-maintainer-mode was given.
3025 if test "${enable_maintainer_mode+set}" = set; then :
3026 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3027 else
3028 USE_MAINTAINER_MODE=no
3029 fi
3030
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3032 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3033 if test $USE_MAINTAINER_MODE = yes; then
3034 MAINTAINER_MODE_TRUE=
3035 MAINTAINER_MODE_FALSE='#'
3036 else
3037 MAINTAINER_MODE_TRUE='#'
3038 MAINTAINER_MODE_FALSE=
3039 fi
3040
3041 MAINT=$MAINTAINER_MODE_TRUE
3042
3043
3044 ac_config_headers="$ac_config_headers config.h"
3045
3046
3047
3048 # Checks for programs.
3049 DEPDIR="${am__leading_dot}deps"
3050
3051 ac_config_commands="$ac_config_commands depfiles"
3052
3053
3054 am_make=${MAKE-make}
3055 cat > confinc << 'END'
3056 am__doit:
3057 @echo this is the am__doit target
3058 .PHONY: am__doit
3059 END
3060 # If we don't find an include directive, just comment out the code.
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3062 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3063 am__include="#"
3064 am__quote=
3065 _am_result=none
3066 # First try GNU make style include.
3067 echo "include confinc" > confmf
3068 # Ignore all kinds of additional output from 'make'.
3069 case `$am_make -s -f confmf 2> /dev/null` in #(
3070 *the\ am__doit\ target*)
3071 am__include=include
3072 am__quote=
3073 _am_result=GNU
3074 ;;
3075 esac
3076 # Now try BSD make style include.
3077 if test "$am__include" = "#"; then
3078 echo '.include "confinc"' > confmf
3079 case `$am_make -s -f confmf 2> /dev/null` in #(
3080 *the\ am__doit\ target*)
3081 am__include=.include
3082 am__quote="\""
3083 _am_result=BSD
3084 ;;
3085 esac
3086 fi
3087
3088
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3090 $as_echo "$_am_result" >&6; }
3091 rm -f confinc confmf
3092
3093 # Check whether --enable-dependency-tracking was given.
3094 if test "${enable_dependency_tracking+set}" = set; then :
3095 enableval=$enable_dependency_tracking;
3096 fi
3097
3098 if test "x$enable_dependency_tracking" != xno; then
3099 am_depcomp="$ac_aux_dir/depcomp"
3100 AMDEPBACKSLASH='\'
3101 am__nodep='_no'
3102 fi
3103 if test "x$enable_dependency_tracking" != xno; then
3104 AMDEP_TRUE=
3105 AMDEP_FALSE='#'
3106 else
3107 AMDEP_TRUE='#'
3108 AMDEP_FALSE=
3109 fi
3110
3111
3112 ac_ext=c
3113 ac_cpp='$CPP $CPPFLAGS'
3114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3117 if test -n "$ac_tool_prefix"; then
3118 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3119 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3121 $as_echo_n "checking for $ac_word... " >&6; }
3122 if ${ac_cv_prog_CC+:} false; then :
3123 $as_echo_n "(cached) " >&6
3124 else
3125 if test -n "$CC"; then
3126 ac_cv_prog_CC="$CC" # Let the user override the test.
3127 else
3128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129 for as_dir in $PATH
3130 do
3131 IFS=$as_save_IFS
3132 test -z "$as_dir" && as_dir=.
3133 for ac_exec_ext in '' $ac_executable_extensions; do
3134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3135 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3137 break 2
3138 fi
3139 done
3140 done
3141 IFS=$as_save_IFS
3142
3143 fi
3144 fi
3145 CC=$ac_cv_prog_CC
3146 if test -n "$CC"; then
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3148 $as_echo "$CC" >&6; }
3149 else
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151 $as_echo "no" >&6; }
3152 fi
3153
3154
3155 fi
3156 if test -z "$ac_cv_prog_CC"; then
3157 ac_ct_CC=$CC
3158 # Extract the first word of "gcc", so it can be a program name with args.
3159 set dummy gcc; ac_word=$2
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3161 $as_echo_n "checking for $ac_word... " >&6; }
3162 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3163 $as_echo_n "(cached) " >&6
3164 else
3165 if test -n "$ac_ct_CC"; then
3166 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3167 else
3168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169 for as_dir in $PATH
3170 do
3171 IFS=$as_save_IFS
3172 test -z "$as_dir" && as_dir=.
3173 for ac_exec_ext in '' $ac_executable_extensions; do
3174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3175 ac_cv_prog_ac_ct_CC="gcc"
3176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3177 break 2
3178 fi
3179 done
3180 done
3181 IFS=$as_save_IFS
3182
3183 fi
3184 fi
3185 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3186 if test -n "$ac_ct_CC"; then
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3188 $as_echo "$ac_ct_CC" >&6; }
3189 else
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3191 $as_echo "no" >&6; }
3192 fi
3193
3194 if test "x$ac_ct_CC" = x; then
3195 CC=""
3196 else
3197 case $cross_compiling:$ac_tool_warned in
3198 yes:)
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3201 ac_tool_warned=yes ;;
3202 esac
3203 CC=$ac_ct_CC
3204 fi
3205 else
3206 CC="$ac_cv_prog_CC"
3207 fi
3208
3209 if test -z "$CC"; then
3210 if test -n "$ac_tool_prefix"; then
3211 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3212 set dummy ${ac_tool_prefix}cc; ac_word=$2
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3214 $as_echo_n "checking for $ac_word... " >&6; }
3215 if ${ac_cv_prog_CC+:} false; then :
3216 $as_echo_n "(cached) " >&6
3217 else
3218 if test -n "$CC"; then
3219 ac_cv_prog_CC="$CC" # Let the user override the test.
3220 else
3221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222 for as_dir in $PATH
3223 do
3224 IFS=$as_save_IFS
3225 test -z "$as_dir" && as_dir=.
3226 for ac_exec_ext in '' $ac_executable_extensions; do
3227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3228 ac_cv_prog_CC="${ac_tool_prefix}cc"
3229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3230 break 2
3231 fi
3232 done
3233 done
3234 IFS=$as_save_IFS
3235
3236 fi
3237 fi
3238 CC=$ac_cv_prog_CC
3239 if test -n "$CC"; then
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3241 $as_echo "$CC" >&6; }
3242 else
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244 $as_echo "no" >&6; }
3245 fi
3246
3247
3248 fi
3249 fi
3250 if test -z "$CC"; then
3251 # Extract the first word of "cc", so it can be a program name with args.
3252 set dummy cc; ac_word=$2
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3254 $as_echo_n "checking for $ac_word... " >&6; }
3255 if ${ac_cv_prog_CC+:} false; then :
3256 $as_echo_n "(cached) " >&6
3257 else
3258 if test -n "$CC"; then
3259 ac_cv_prog_CC="$CC" # Let the user override the test.
3260 else
3261 ac_prog_rejected=no
3262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263 for as_dir in $PATH
3264 do
3265 IFS=$as_save_IFS
3266 test -z "$as_dir" && as_dir=.
3267 for ac_exec_ext in '' $ac_executable_extensions; do
3268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3269 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3270 ac_prog_rejected=yes
3271 continue
3272 fi
3273 ac_cv_prog_CC="cc"
3274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3275 break 2
3276 fi
3277 done
3278 done
3279 IFS=$as_save_IFS
3280
3281 if test $ac_prog_rejected = yes; then
3282 # We found a bogon in the path, so make sure we never use it.
3283 set dummy $ac_cv_prog_CC
3284 shift
3285 if test $# != 0; then
3286 # We chose a different compiler from the bogus one.
3287 # However, it has the same basename, so the bogon will be chosen
3288 # first if we set CC to just the basename; use the full file name.
3289 shift
3290 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3291 fi
3292 fi
3293 fi
3294 fi
3295 CC=$ac_cv_prog_CC
3296 if test -n "$CC"; then
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3298 $as_echo "$CC" >&6; }
3299 else
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3301 $as_echo "no" >&6; }
3302 fi
3303
3304
3305 fi
3306 if test -z "$CC"; then
3307 if test -n "$ac_tool_prefix"; then
3308 for ac_prog in cl.exe
3309 do
3310 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3311 set dummy $ac_tool_prefix$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_CC+:} false; then :
3315 $as_echo_n "(cached) " >&6
3316 else
3317 if test -n "$CC"; then
3318 ac_cv_prog_CC="$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_CC="$ac_tool_prefix$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 CC=$ac_cv_prog_CC
3338 if test -n "$CC"; then
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3340 $as_echo "$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 "$CC" && break
3348 done
3349 fi
3350 if test -z "$CC"; then
3351 ac_ct_CC=$CC
3352 for ac_prog in cl.exe
3353 do
3354 # Extract the first word of "$ac_prog", so it can be a program name with args.
3355 set dummy $ac_prog; ac_word=$2
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3357 $as_echo_n "checking for $ac_word... " >&6; }
3358 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3359 $as_echo_n "(cached) " >&6
3360 else
3361 if test -n "$ac_ct_CC"; then
3362 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3363 else
3364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365 for as_dir in $PATH
3366 do
3367 IFS=$as_save_IFS
3368 test -z "$as_dir" && as_dir=.
3369 for ac_exec_ext in '' $ac_executable_extensions; do
3370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3371 ac_cv_prog_ac_ct_CC="$ac_prog"
3372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3373 break 2
3374 fi
3375 done
3376 done
3377 IFS=$as_save_IFS
3378
3379 fi
3380 fi
3381 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3382 if test -n "$ac_ct_CC"; then
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3384 $as_echo "$ac_ct_CC" >&6; }
3385 else
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3387 $as_echo "no" >&6; }
3388 fi
3389
3390
3391 test -n "$ac_ct_CC" && break
3392 done
3393
3394 if test "x$ac_ct_CC" = x; then
3395 CC=""
3396 else
3397 case $cross_compiling:$ac_tool_warned in
3398 yes:)
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3401 ac_tool_warned=yes ;;
3402 esac
3403 CC=$ac_ct_CC
3404 fi
3405 fi
3406
3407 fi
3408
3409
3410 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3412 as_fn_error $? "no acceptable C compiler found in \$PATH
3413 See \`config.log' for more details" "$LINENO" 5; }
3414
3415 # Provide some information about the compiler.
3416 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3417 set X $ac_compile
3418 ac_compiler=$2
3419 for ac_option in --version -v -V -qversion; do
3420 { { ac_try="$ac_compiler $ac_option >&5"
3421 case "(($ac_try" in
3422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423 *) ac_try_echo=$ac_try;;
3424 esac
3425 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3426 $as_echo "$ac_try_echo"; } >&5
3427 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3428 ac_status=$?
3429 if test -s conftest.err; then
3430 sed '10a\
3431 ... rest of stderr output deleted ...
3432 10q' conftest.err >conftest.er1
3433 cat conftest.er1 >&5
3434 fi
3435 rm -f conftest.er1 conftest.err
3436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3437 test $ac_status = 0; }
3438 done
3439
3440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3441 /* end confdefs.h. */
3442
3443 int
3444 main ()
3445 {
3446
3447 ;
3448 return 0;
3449 }
3450 _ACEOF
3451 ac_clean_files_save=$ac_clean_files
3452 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3453 # Try to create an executable without -o first, disregard a.out.
3454 # It will help us diagnose broken compilers, and finding out an intuition
3455 # of exeext.
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3457 $as_echo_n "checking whether the C compiler works... " >&6; }
3458 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3459
3460 # The possible output files:
3461 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3462
3463 ac_rmfiles=
3464 for ac_file in $ac_files
3465 do
3466 case $ac_file in
3467 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3468 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3469 esac
3470 done
3471 rm -f $ac_rmfiles
3472
3473 if { { ac_try="$ac_link_default"
3474 case "(($ac_try" in
3475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476 *) ac_try_echo=$ac_try;;
3477 esac
3478 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3479 $as_echo "$ac_try_echo"; } >&5
3480 (eval "$ac_link_default") 2>&5
3481 ac_status=$?
3482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3483 test $ac_status = 0; }; then :
3484 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3485 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3486 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3487 # so that the user can short-circuit this test for compilers unknown to
3488 # Autoconf.
3489 for ac_file in $ac_files ''
3490 do
3491 test -f "$ac_file" || continue
3492 case $ac_file in
3493 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3494 ;;
3495 [ab].out )
3496 # We found the default executable, but exeext='' is most
3497 # certainly right.
3498 break;;
3499 *.* )
3500 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3501 then :; else
3502 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3503 fi
3504 # We set ac_cv_exeext here because the later test for it is not
3505 # safe: cross compilers may not add the suffix if given an `-o'
3506 # argument, so we may need to know it at that point already.
3507 # Even if this section looks crufty: it has the advantage of
3508 # actually working.
3509 break;;
3510 * )
3511 break;;
3512 esac
3513 done
3514 test "$ac_cv_exeext" = no && ac_cv_exeext=
3515
3516 else
3517 ac_file=''
3518 fi
3519 if test -z "$ac_file"; then :
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3521 $as_echo "no" >&6; }
3522 $as_echo "$as_me: failed program was:" >&5
3523 sed 's/^/| /' conftest.$ac_ext >&5
3524
3525 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3527 as_fn_error 77 "C compiler cannot create executables
3528 See \`config.log' for more details" "$LINENO" 5; }
3529 else
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3531 $as_echo "yes" >&6; }
3532 fi
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3534 $as_echo_n "checking for C compiler default output file name... " >&6; }
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3536 $as_echo "$ac_file" >&6; }
3537 ac_exeext=$ac_cv_exeext
3538
3539 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3540 ac_clean_files=$ac_clean_files_save
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3542 $as_echo_n "checking for suffix of executables... " >&6; }
3543 if { { ac_try="$ac_link"
3544 case "(($ac_try" in
3545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546 *) ac_try_echo=$ac_try;;
3547 esac
3548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3549 $as_echo "$ac_try_echo"; } >&5
3550 (eval "$ac_link") 2>&5
3551 ac_status=$?
3552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3553 test $ac_status = 0; }; then :
3554 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3555 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3556 # work properly (i.e., refer to `conftest.exe'), while it won't with
3557 # `rm'.
3558 for ac_file in conftest.exe conftest conftest.*; do
3559 test -f "$ac_file" || continue
3560 case $ac_file in
3561 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3562 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3563 break;;
3564 * ) break;;
3565 esac
3566 done
3567 else
3568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3570 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3571 See \`config.log' for more details" "$LINENO" 5; }
3572 fi
3573 rm -f conftest conftest$ac_cv_exeext
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3575 $as_echo "$ac_cv_exeext" >&6; }
3576
3577 rm -f conftest.$ac_ext
3578 EXEEXT=$ac_cv_exeext
3579 ac_exeext=$EXEEXT
3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581 /* end confdefs.h. */
3582 #include <stdio.h>
3583 int
3584 main ()
3585 {
3586 FILE *f = fopen ("conftest.out", "w");
3587 return ferror (f) || fclose (f) != 0;
3588
3589 ;
3590 return 0;
3591 }
3592 _ACEOF
3593 ac_clean_files="$ac_clean_files conftest.out"
3594 # Check that the compiler produces executables we can run. If not, either
3595 # the compiler is broken, or we cross compile.
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3597 $as_echo_n "checking whether we are cross compiling... " >&6; }
3598 if test "$cross_compiling" != yes; then
3599 { { ac_try="$ac_link"
3600 case "(($ac_try" in
3601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602 *) ac_try_echo=$ac_try;;
3603 esac
3604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3605 $as_echo "$ac_try_echo"; } >&5
3606 (eval "$ac_link") 2>&5
3607 ac_status=$?
3608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3609 test $ac_status = 0; }
3610 if { ac_try='./conftest$ac_cv_exeext'
3611 { { case "(($ac_try" in
3612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613 *) ac_try_echo=$ac_try;;
3614 esac
3615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3616 $as_echo "$ac_try_echo"; } >&5
3617 (eval "$ac_try") 2>&5
3618 ac_status=$?
3619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3620 test $ac_status = 0; }; }; then
3621 cross_compiling=no
3622 else
3623 if test "$cross_compiling" = maybe; then
3624 cross_compiling=yes
3625 else
3626 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3628 as_fn_error $? "cannot run C compiled programs.
3629 If you meant to cross compile, use \`--host'.
3630 See \`config.log' for more details" "$LINENO" 5; }
3631 fi
3632 fi
3633 fi
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3635 $as_echo "$cross_compiling" >&6; }
3636
3637 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3638 ac_clean_files=$ac_clean_files_save
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3640 $as_echo_n "checking for suffix of object files... " >&6; }
3641 if ${ac_cv_objext+:} false; then :
3642 $as_echo_n "(cached) " >&6
3643 else
3644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3645 /* end confdefs.h. */
3646
3647 int
3648 main ()
3649 {
3650
3651 ;
3652 return 0;
3653 }
3654 _ACEOF
3655 rm -f conftest.o conftest.obj
3656 if { { ac_try="$ac_compile"
3657 case "(($ac_try" in
3658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659 *) ac_try_echo=$ac_try;;
3660 esac
3661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3662 $as_echo "$ac_try_echo"; } >&5
3663 (eval "$ac_compile") 2>&5
3664 ac_status=$?
3665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3666 test $ac_status = 0; }; then :
3667 for ac_file in conftest.o conftest.obj conftest.*; do
3668 test -f "$ac_file" || continue;
3669 case $ac_file in
3670 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3671 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3672 break;;
3673 esac
3674 done
3675 else
3676 $as_echo "$as_me: failed program was:" >&5
3677 sed 's/^/| /' conftest.$ac_ext >&5
3678
3679 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3680 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3681 as_fn_error $? "cannot compute suffix of object files: cannot compile
3682 See \`config.log' for more details" "$LINENO" 5; }
3683 fi
3684 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3685 fi
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3687 $as_echo "$ac_cv_objext" >&6; }
3688 OBJEXT=$ac_cv_objext
3689 ac_objext=$OBJEXT
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3691 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3692 if ${ac_cv_c_compiler_gnu+:} false; then :
3693 $as_echo_n "(cached) " >&6
3694 else
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696 /* end confdefs.h. */
3697
3698 int
3699 main ()
3700 {
3701 #ifndef __GNUC__
3702 choke me
3703 #endif
3704
3705 ;
3706 return 0;
3707 }
3708 _ACEOF
3709 if ac_fn_c_try_compile "$LINENO"; then :
3710 ac_compiler_gnu=yes
3711 else
3712 ac_compiler_gnu=no
3713 fi
3714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3715 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3716
3717 fi
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3719 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3720 if test $ac_compiler_gnu = yes; then
3721 GCC=yes
3722 else
3723 GCC=
3724 fi
3725 ac_test_CFLAGS=${CFLAGS+set}
3726 ac_save_CFLAGS=$CFLAGS
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3728 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3729 if ${ac_cv_prog_cc_g+:} false; then :
3730 $as_echo_n "(cached) " >&6
3731 else
3732 ac_save_c_werror_flag=$ac_c_werror_flag
3733 ac_c_werror_flag=yes
3734 ac_cv_prog_cc_g=no
3735 CFLAGS="-g"
3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737 /* end confdefs.h. */
3738
3739 int
3740 main ()
3741 {
3742
3743 ;
3744 return 0;
3745 }
3746 _ACEOF
3747 if ac_fn_c_try_compile "$LINENO"; then :
3748 ac_cv_prog_cc_g=yes
3749 else
3750 CFLAGS=""
3751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3752 /* end confdefs.h. */
3753
3754 int
3755 main ()
3756 {
3757
3758 ;
3759 return 0;
3760 }
3761 _ACEOF
3762 if ac_fn_c_try_compile "$LINENO"; then :
3763
3764 else
3765 ac_c_werror_flag=$ac_save_c_werror_flag
3766 CFLAGS="-g"
3767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768 /* end confdefs.h. */
3769
3770 int
3771 main ()
3772 {
3773
3774 ;
3775 return 0;
3776 }
3777 _ACEOF
3778 if ac_fn_c_try_compile "$LINENO"; then :
3779 ac_cv_prog_cc_g=yes
3780 fi
3781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3782 fi
3783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3784 fi
3785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3786 ac_c_werror_flag=$ac_save_c_werror_flag
3787 fi
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3789 $as_echo "$ac_cv_prog_cc_g" >&6; }
3790 if test "$ac_test_CFLAGS" = set; then
3791 CFLAGS=$ac_save_CFLAGS
3792 elif test $ac_cv_prog_cc_g = yes; then
3793 if test "$GCC" = yes; then
3794 CFLAGS="-g -O2"
3795 else
3796 CFLAGS="-g"
3797 fi
3798 else
3799 if test "$GCC" = yes; then
3800 CFLAGS="-O2"
3801 else
3802 CFLAGS=
3803 fi
3804 fi
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3806 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3807 if ${ac_cv_prog_cc_c89+:} false; then :
3808 $as_echo_n "(cached) " >&6
3809 else
3810 ac_cv_prog_cc_c89=no
3811 ac_save_CC=$CC
3812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813 /* end confdefs.h. */
3814 #include <stdarg.h>
3815 #include <stdio.h>
3816 struct stat;
3817 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3818 struct buf { int x; };
3819 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3820 static char *e (p, i)
3821 char **p;
3822 int i;
3823 {
3824 return p[i];
3825 }
3826 static char *f (char * (*g) (char **, int), char **p, ...)
3827 {
3828 char *s;
3829 va_list v;
3830 va_start (v,p);
3831 s = g (p, va_arg (v,int));
3832 va_end (v);
3833 return s;
3834 }
3835
3836 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3837 function prototypes and stuff, but not '\xHH' hex character constants.
3838 These don't provoke an error unfortunately, instead are silently treated
3839 as 'x'. The following induces an error, until -std is added to get
3840 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3841 array size at least. It's necessary to write '\x00'==0 to get something
3842 that's true only with -std. */
3843 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3844
3845 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3846 inside strings and character constants. */
3847 #define FOO(x) 'x'
3848 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3849
3850 int test (int i, double x);
3851 struct s1 {int (*f) (int a);};
3852 struct s2 {int (*f) (double a);};
3853 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3854 int argc;
3855 char **argv;
3856 int
3857 main ()
3858 {
3859 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3860 ;
3861 return 0;
3862 }
3863 _ACEOF
3864 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3865 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3866 do
3867 CC="$ac_save_CC $ac_arg"
3868 if ac_fn_c_try_compile "$LINENO"; then :
3869 ac_cv_prog_cc_c89=$ac_arg
3870 fi
3871 rm -f core conftest.err conftest.$ac_objext
3872 test "x$ac_cv_prog_cc_c89" != "xno" && break
3873 done
3874 rm -f conftest.$ac_ext
3875 CC=$ac_save_CC
3876
3877 fi
3878 # AC_CACHE_VAL
3879 case "x$ac_cv_prog_cc_c89" in
3880 x)
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3882 $as_echo "none needed" >&6; } ;;
3883 xno)
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3885 $as_echo "unsupported" >&6; } ;;
3886 *)
3887 CC="$CC $ac_cv_prog_cc_c89"
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3889 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3890 esac
3891 if test "x$ac_cv_prog_cc_c89" != xno; then :
3892
3893 fi
3894
3895 ac_ext=c
3896 ac_cpp='$CPP $CPPFLAGS'
3897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3900
3901 depcc="$CC" am_compiler_list=
3902
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3904 $as_echo_n "checking dependency style of $depcc... " >&6; }
3905 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3906 $as_echo_n "(cached) " >&6
3907 else
3908 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3909 # We make a subdir and do the tests there. Otherwise we can end up
3910 # making bogus files that we don't know about and never remove. For
3911 # instance it was reported that on HP-UX the gcc test will end up
3912 # making a dummy file named 'D' -- because '-MD' means "put the output
3913 # in D".
3914 rm -rf conftest.dir
3915 mkdir conftest.dir
3916 # Copy depcomp to subdir because otherwise we won't find it if we're
3917 # using a relative directory.
3918 cp "$am_depcomp" conftest.dir
3919 cd conftest.dir
3920 # We will build objects and dependencies in a subdirectory because
3921 # it helps to detect inapplicable dependency modes. For instance
3922 # both Tru64's cc and ICC support -MD to output dependencies as a
3923 # side effect of compilation, but ICC will put the dependencies in
3924 # the current directory while Tru64 will put them in the object
3925 # directory.
3926 mkdir sub
3927
3928 am_cv_CC_dependencies_compiler_type=none
3929 if test "$am_compiler_list" = ""; then
3930 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3931 fi
3932 am__universal=false
3933 case " $depcc " in #(
3934 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3935 esac
3936
3937 for depmode in $am_compiler_list; do
3938 # Setup a source with many dependencies, because some compilers
3939 # like to wrap large dependency lists on column 80 (with \), and
3940 # we should not choose a depcomp mode which is confused by this.
3941 #
3942 # We need to recreate these files for each test, as the compiler may
3943 # overwrite some of them when testing with obscure command lines.
3944 # This happens at least with the AIX C compiler.
3945 : > sub/conftest.c
3946 for i in 1 2 3 4 5 6; do
3947 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3948 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3949 # Solaris 10 /bin/sh.
3950 echo '/* dummy */' > sub/conftst$i.h
3951 done
3952 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3953
3954 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3955 # mode. It turns out that the SunPro C++ compiler does not properly
3956 # handle '-M -o', and we need to detect this. Also, some Intel
3957 # versions had trouble with output in subdirs.
3958 am__obj=sub/conftest.${OBJEXT-o}
3959 am__minus_obj="-o $am__obj"
3960 case $depmode in
3961 gcc)
3962 # This depmode causes a compiler race in universal mode.
3963 test "$am__universal" = false || continue
3964 ;;
3965 nosideeffect)
3966 # After this tag, mechanisms are not by side-effect, so they'll
3967 # only be used when explicitly requested.
3968 if test "x$enable_dependency_tracking" = xyes; then
3969 continue
3970 else
3971 break
3972 fi
3973 ;;
3974 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3975 # This compiler won't grok '-c -o', but also, the minuso test has
3976 # not run yet. These depmodes are late enough in the game, and
3977 # so weak that their functioning should not be impacted.
3978 am__obj=conftest.${OBJEXT-o}
3979 am__minus_obj=
3980 ;;
3981 none) break ;;
3982 esac
3983 if depmode=$depmode \
3984 source=sub/conftest.c object=$am__obj \
3985 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3986 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3987 >/dev/null 2>conftest.err &&
3988 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3989 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3990 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3991 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3992 # icc doesn't choke on unknown options, it will just issue warnings
3993 # or remarks (even with -Werror). So we grep stderr for any message
3994 # that says an option was ignored or not supported.
3995 # When given -MP, icc 7.0 and 7.1 complain thusly:
3996 # icc: Command line warning: ignoring option '-M'; no argument required
3997 # The diagnosis changed in icc 8.0:
3998 # icc: Command line remark: option '-MP' not supported
3999 if (grep 'ignoring option' conftest.err ||
4000 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4001 am_cv_CC_dependencies_compiler_type=$depmode
4002 break
4003 fi
4004 fi
4005 done
4006
4007 cd ..
4008 rm -rf conftest.dir
4009 else
4010 am_cv_CC_dependencies_compiler_type=none
4011 fi
4012
4013 fi
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4015 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4016 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4017
4018 if
4019 test "x$enable_dependency_tracking" != xno \
4020 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4021 am__fastdepCC_TRUE=
4022 am__fastdepCC_FALSE='#'
4023 else
4024 am__fastdepCC_TRUE='#'
4025 am__fastdepCC_FALSE=
4026 fi
4027
4028
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4030 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4031 if ${ac_cv_prog_cc_c99+:} false; then :
4032 $as_echo_n "(cached) " >&6
4033 else
4034 ac_cv_prog_cc_c99=no
4035 ac_save_CC=$CC
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4038 #include <stdarg.h>
4039 #include <stdbool.h>
4040 #include <stdlib.h>
4041 #include <wchar.h>
4042 #include <stdio.h>
4043
4044 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4045 #define debug(...) fprintf (stderr, __VA_ARGS__)
4046 #define showlist(...) puts (#__VA_ARGS__)
4047 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4048 static void
4049 test_varargs_macros (void)
4050 {
4051 int x = 1234;
4052 int y = 5678;
4053 debug ("Flag");
4054 debug ("X = %d\n", x);
4055 showlist (The first, second, and third items.);
4056 report (x>y, "x is %d but y is %d", x, y);
4057 }
4058
4059 // Check long long types.
4060 #define BIG64 18446744073709551615ull
4061 #define BIG32 4294967295ul
4062 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4063 #if !BIG_OK
4064 your preprocessor is broken;
4065 #endif
4066 #if BIG_OK
4067 #else
4068 your preprocessor is broken;
4069 #endif
4070 static long long int bignum = -9223372036854775807LL;
4071 static unsigned long long int ubignum = BIG64;
4072
4073 struct incomplete_array
4074 {
4075 int datasize;
4076 double data[];
4077 };
4078
4079 struct named_init {
4080 int number;
4081 const wchar_t *name;
4082 double average;
4083 };
4084
4085 typedef const char *ccp;
4086
4087 static inline int
4088 test_restrict (ccp restrict text)
4089 {
4090 // See if C++-style comments work.
4091 // Iterate through items via the restricted pointer.
4092 // Also check for declarations in for loops.
4093 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4094 continue;
4095 return 0;
4096 }
4097
4098 // Check varargs and va_copy.
4099 static void
4100 test_varargs (const char *format, ...)
4101 {
4102 va_list args;
4103 va_start (args, format);
4104 va_list args_copy;
4105 va_copy (args_copy, args);
4106
4107 const char *str;
4108 int number;
4109 float fnumber;
4110
4111 while (*format)
4112 {
4113 switch (*format++)
4114 {
4115 case 's': // string
4116 str = va_arg (args_copy, const char *);
4117 break;
4118 case 'd': // int
4119 number = va_arg (args_copy, int);
4120 break;
4121 case 'f': // float
4122 fnumber = va_arg (args_copy, double);
4123 break;
4124 default:
4125 break;
4126 }
4127 }
4128 va_end (args_copy);
4129 va_end (args);
4130 }
4131
4132 int
4133 main ()
4134 {
4135
4136 // Check bool.
4137 _Bool success = false;
4138
4139 // Check restrict.
4140 if (test_restrict ("String literal") == 0)
4141 success = true;
4142 char *restrict newvar = "Another string";
4143
4144 // Check varargs.
4145 test_varargs ("s, d' f .", "string", 65, 34.234);
4146 test_varargs_macros ();
4147
4148 // Check flexible array members.
4149 struct incomplete_array *ia =
4150 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4151 ia->datasize = 10;
4152 for (int i = 0; i < ia->datasize; ++i)
4153 ia->data[i] = i * 1.234;
4154
4155 // Check named initializers.
4156 struct named_init ni = {
4157 .number = 34,
4158 .name = L"Test wide string",
4159 .average = 543.34343,
4160 };
4161
4162 ni.number = 58;
4163
4164 int dynamic_array[ni.number];
4165 dynamic_array[ni.number - 1] = 543;
4166
4167 // work around unused variable warnings
4168 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4169 || dynamic_array[ni.number - 1] != 543);
4170
4171 ;
4172 return 0;
4173 }
4174 _ACEOF
4175 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4176 do
4177 CC="$ac_save_CC $ac_arg"
4178 if ac_fn_c_try_compile "$LINENO"; then :
4179 ac_cv_prog_cc_c99=$ac_arg
4180 fi
4181 rm -f core conftest.err conftest.$ac_objext
4182 test "x$ac_cv_prog_cc_c99" != "xno" && break
4183 done
4184 rm -f conftest.$ac_ext
4185 CC=$ac_save_CC
4186
4187 fi
4188 # AC_CACHE_VAL
4189 case "x$ac_cv_prog_cc_c99" in
4190 x)
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4192 $as_echo "none needed" >&6; } ;;
4193 xno)
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4195 $as_echo "unsupported" >&6; } ;;
4196 *)
4197 CC="$CC $ac_cv_prog_cc_c99"
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4199 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4200 esac
4201 if test "x$ac_cv_prog_cc_c99" != xno; then :
4202
4203 fi
4204
4205
4206 if test "$ac_cv_prog_cc_c99" = "no"; then :
4207 as_fn_error $? "no suitable C99 compiler found. Aborting." "$LINENO" 5
4208 fi
4209 for ac_prog in 'bison -y' byacc
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_YACC+:} false; then :
4216 $as_echo_n "(cached) " >&6
4217 else
4218 if test -n "$YACC"; then
4219 ac_cv_prog_YACC="$YACC" # 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_YACC="$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 YACC=$ac_cv_prog_YACC
4239 if test -n "$YACC"; then
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4241 $as_echo "$YACC" >&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 "$YACC" && break
4249 done
4250 test -n "$YACC" || YACC="yacc"
4251
4252
4253 for ac_prog in flex lex
4254 do
4255 # Extract the first word of "$ac_prog", so it can be a program name with args.
4256 set dummy $ac_prog; ac_word=$2
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4258 $as_echo_n "checking for $ac_word... " >&6; }
4259 if ${ac_cv_prog_LEX+:} false; then :
4260 $as_echo_n "(cached) " >&6
4261 else
4262 if test -n "$LEX"; then
4263 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4264 else
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266 for as_dir in $PATH
4267 do
4268 IFS=$as_save_IFS
4269 test -z "$as_dir" && as_dir=.
4270 for ac_exec_ext in '' $ac_executable_extensions; do
4271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4272 ac_cv_prog_LEX="$ac_prog"
4273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4274 break 2
4275 fi
4276 done
4277 done
4278 IFS=$as_save_IFS
4279
4280 fi
4281 fi
4282 LEX=$ac_cv_prog_LEX
4283 if test -n "$LEX"; then
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4285 $as_echo "$LEX" >&6; }
4286 else
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4288 $as_echo "no" >&6; }
4289 fi
4290
4291
4292 test -n "$LEX" && break
4293 done
4294 test -n "$LEX" || LEX=":"
4295
4296 if test "x$LEX" != "x:"; then
4297 cat >conftest.l <<_ACEOF
4298 %%
4299 a { ECHO; }
4300 b { REJECT; }
4301 c { yymore (); }
4302 d { yyless (1); }
4303 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
4304 yyless ((input () != 0)); }
4305 f { unput (yytext[0]); }
4306 . { BEGIN INITIAL; }
4307 %%
4308 #ifdef YYTEXT_POINTER
4309 extern char *yytext;
4310 #endif
4311 int
4312 main (void)
4313 {
4314 return ! yylex () + ! yywrap ();
4315 }
4316 _ACEOF
4317 { { ac_try="$LEX conftest.l"
4318 case "(($ac_try" in
4319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4321 esac
4322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4323 $as_echo "$ac_try_echo"; } >&5
4324 (eval "$LEX conftest.l") 2>&5
4325 ac_status=$?
4326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4327 test $ac_status = 0; }
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4329 $as_echo_n "checking lex output file root... " >&6; }
4330 if ${ac_cv_prog_lex_root+:} false; then :
4331 $as_echo_n "(cached) " >&6
4332 else
4333
4334 if test -f lex.yy.c; then
4335 ac_cv_prog_lex_root=lex.yy
4336 elif test -f lexyy.c; then
4337 ac_cv_prog_lex_root=lexyy
4338 else
4339 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4340 fi
4341 fi
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4343 $as_echo "$ac_cv_prog_lex_root" >&6; }
4344 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4345
4346 if test -z "${LEXLIB+set}"; then
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4348 $as_echo_n "checking lex library... " >&6; }
4349 if ${ac_cv_lib_lex+:} false; then :
4350 $as_echo_n "(cached) " >&6
4351 else
4352
4353 ac_save_LIBS=$LIBS
4354 ac_cv_lib_lex='none needed'
4355 for ac_lib in '' -lfl -ll; do
4356 LIBS="$ac_lib $ac_save_LIBS"
4357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4358 /* end confdefs.h. */
4359 `cat $LEX_OUTPUT_ROOT.c`
4360 _ACEOF
4361 if ac_fn_c_try_link "$LINENO"; then :
4362 ac_cv_lib_lex=$ac_lib
4363 fi
4364 rm -f core conftest.err conftest.$ac_objext \
4365 conftest$ac_exeext conftest.$ac_ext
4366 test "$ac_cv_lib_lex" != 'none needed' && break
4367 done
4368 LIBS=$ac_save_LIBS
4369
4370 fi
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4372 $as_echo "$ac_cv_lib_lex" >&6; }
4373 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4374 fi
4375
4376
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4378 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4379 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4380 $as_echo_n "(cached) " >&6
4381 else
4382 # POSIX says lex can declare yytext either as a pointer or an array; the
4383 # default is implementation-dependent. Figure out which it is, since
4384 # not all implementations provide the %pointer and %array declarations.
4385 ac_cv_prog_lex_yytext_pointer=no
4386 ac_save_LIBS=$LIBS
4387 LIBS="$LEXLIB $ac_save_LIBS"
4388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4389 /* end confdefs.h. */
4390
4391 #define YYTEXT_POINTER 1
4392 `cat $LEX_OUTPUT_ROOT.c`
4393 _ACEOF
4394 if ac_fn_c_try_link "$LINENO"; then :
4395 ac_cv_prog_lex_yytext_pointer=yes
4396 fi
4397 rm -f core conftest.err conftest.$ac_objext \
4398 conftest$ac_exeext conftest.$ac_ext
4399 LIBS=$ac_save_LIBS
4400
4401 fi
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4403 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4404 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4405
4406 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4407
4408 fi
4409 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4410
4411 fi
4412 if test "$LEX" = :; then
4413 LEX=${am_missing_run}flex
4414 fi
4415
4416
4417 # Initializing libtool.
4418
4419
4420
4421
4422
4423
4424
4425 case `pwd` in
4426 *\ * | *\ *)
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4428 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4429 esac
4430
4431
4432
4433 macro_version='2.4.2'
4434 macro_revision='1.3337'
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448 ltmain="$ac_aux_dir/ltmain.sh"
4449
4450 # Make sure we can run config.sub.
4451 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4452 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4453
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4455 $as_echo_n "checking build system type... " >&6; }
4456 if ${ac_cv_build+:} false; then :
4457 $as_echo_n "(cached) " >&6
4458 else
4459 ac_build_alias=$build_alias
4460 test "x$ac_build_alias" = x &&
4461 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4462 test "x$ac_build_alias" = x &&
4463 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4464 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4465 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4466
4467 fi
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4469 $as_echo "$ac_cv_build" >&6; }
4470 case $ac_cv_build in
4471 *-*-*) ;;
4472 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4473 esac
4474 build=$ac_cv_build
4475 ac_save_IFS=$IFS; IFS='-'
4476 set x $ac_cv_build
4477 shift
4478 build_cpu=$1
4479 build_vendor=$2
4480 shift; shift
4481 # Remember, the first character of IFS is used to create $*,
4482 # except with old shells:
4483 build_os=$*
4484 IFS=$ac_save_IFS
4485 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4486
4487
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4489 $as_echo_n "checking host system type... " >&6; }
4490 if ${ac_cv_host+:} false; then :
4491 $as_echo_n "(cached) " >&6
4492 else
4493 if test "x$host_alias" = x; then
4494 ac_cv_host=$ac_cv_build
4495 else
4496 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4497 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4498 fi
4499
4500 fi
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4502 $as_echo "$ac_cv_host" >&6; }
4503 case $ac_cv_host in
4504 *-*-*) ;;
4505 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4506 esac
4507 host=$ac_cv_host
4508 ac_save_IFS=$IFS; IFS='-'
4509 set x $ac_cv_host
4510 shift
4511 host_cpu=$1
4512 host_vendor=$2
4513 shift; shift
4514 # Remember, the first character of IFS is used to create $*,
4515 # except with old shells:
4516 host_os=$*
4517 IFS=$ac_save_IFS
4518 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4519
4520
4521 # Backslashify metacharacters that are still active within
4522 # double-quoted strings.
4523 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4524
4525 # Same as above, but do not quote variable references.
4526 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4527
4528 # Sed substitution to delay expansion of an escaped shell variable in a
4529 # double_quote_subst'ed string.
4530 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4531
4532 # Sed substitution to delay expansion of an escaped single quote.
4533 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4534
4535 # Sed substitution to avoid accidental globbing in evaled expressions
4536 no_glob_subst='s/\*/\\\*/g'
4537
4538 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4539 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4540 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4541
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4543 $as_echo_n "checking how to print strings... " >&6; }
4544 # Test print first, because it will be a builtin if present.
4545 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4546 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4547 ECHO='print -r --'
4548 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4549 ECHO='printf %s\n'
4550 else
4551 # Use this function as a fallback that always works.
4552 func_fallback_echo ()
4553 {
4554 eval 'cat <<_LTECHO_EOF
4555 $1
4556 _LTECHO_EOF'
4557 }
4558 ECHO='func_fallback_echo'
4559 fi
4560
4561 # func_echo_all arg...
4562 # Invoke $ECHO with all args, space-separated.
4563 func_echo_all ()
4564 {
4565 $ECHO ""
4566 }
4567
4568 case "$ECHO" in
4569 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4570 $as_echo "printf" >&6; } ;;
4571 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4572 $as_echo "print -r" >&6; } ;;
4573 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4574 $as_echo "cat" >&6; } ;;
4575 esac
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4591 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4592 if ${ac_cv_path_SED+:} false; then :
4593 $as_echo_n "(cached) " >&6
4594 else
4595 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4596 for ac_i in 1 2 3 4 5 6 7; do
4597 ac_script="$ac_script$as_nl$ac_script"
4598 done
4599 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4600 { ac_script=; unset ac_script;}
4601 if test -z "$SED"; then
4602 ac_path_SED_found=false
4603 # Loop through the user's path and test for each of PROGNAME-LIST
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH
4606 do
4607 IFS=$as_save_IFS
4608 test -z "$as_dir" && as_dir=.
4609 for ac_prog in sed gsed; do
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4612 as_fn_executable_p "$ac_path_SED" || continue
4613 # Check for GNU ac_path_SED and select it if it is found.
4614 # Check for GNU $ac_path_SED
4615 case `"$ac_path_SED" --version 2>&1` in
4616 *GNU*)
4617 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4618 *)
4619 ac_count=0
4620 $as_echo_n 0123456789 >"conftest.in"
4621 while :
4622 do
4623 cat "conftest.in" "conftest.in" >"conftest.tmp"
4624 mv "conftest.tmp" "conftest.in"
4625 cp "conftest.in" "conftest.nl"
4626 $as_echo '' >> "conftest.nl"
4627 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4628 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4629 as_fn_arith $ac_count + 1 && ac_count=$as_val
4630 if test $ac_count -gt ${ac_path_SED_max-0}; then
4631 # Best one so far, save it but keep looking for a better one
4632 ac_cv_path_SED="$ac_path_SED"
4633 ac_path_SED_max=$ac_count
4634 fi
4635 # 10*(2^10) chars as input seems more than enough
4636 test $ac_count -gt 10 && break
4637 done
4638 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4639 esac
4640
4641 $ac_path_SED_found && break 3
4642 done
4643 done
4644 done
4645 IFS=$as_save_IFS
4646 if test -z "$ac_cv_path_SED"; then
4647 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4648 fi
4649 else
4650 ac_cv_path_SED=$SED
4651 fi
4652
4653 fi
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4655 $as_echo "$ac_cv_path_SED" >&6; }
4656 SED="$ac_cv_path_SED"
4657 rm -f conftest.sed
4658
4659 test -z "$SED" && SED=sed
4660 Xsed="$SED -e 1s/^X//"
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4673 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4674 if ${ac_cv_path_GREP+:} false; then :
4675 $as_echo_n "(cached) " >&6
4676 else
4677 if test -z "$GREP"; then
4678 ac_path_GREP_found=false
4679 # Loop through the user's path and test for each of PROGNAME-LIST
4680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4682 do
4683 IFS=$as_save_IFS
4684 test -z "$as_dir" && as_dir=.
4685 for ac_prog in grep ggrep; do
4686 for ac_exec_ext in '' $ac_executable_extensions; do
4687 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4688 as_fn_executable_p "$ac_path_GREP" || continue
4689 # Check for GNU ac_path_GREP and select it if it is found.
4690 # Check for GNU $ac_path_GREP
4691 case `"$ac_path_GREP" --version 2>&1` in
4692 *GNU*)
4693 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4694 *)
4695 ac_count=0
4696 $as_echo_n 0123456789 >"conftest.in"
4697 while :
4698 do
4699 cat "conftest.in" "conftest.in" >"conftest.tmp"
4700 mv "conftest.tmp" "conftest.in"
4701 cp "conftest.in" "conftest.nl"
4702 $as_echo 'GREP' >> "conftest.nl"
4703 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4704 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4705 as_fn_arith $ac_count + 1 && ac_count=$as_val
4706 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4707 # Best one so far, save it but keep looking for a better one
4708 ac_cv_path_GREP="$ac_path_GREP"
4709 ac_path_GREP_max=$ac_count
4710 fi
4711 # 10*(2^10) chars as input seems more than enough
4712 test $ac_count -gt 10 && break
4713 done
4714 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4715 esac
4716
4717 $ac_path_GREP_found && break 3
4718 done
4719 done
4720 done
4721 IFS=$as_save_IFS
4722 if test -z "$ac_cv_path_GREP"; then
4723 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4724 fi
4725 else
4726 ac_cv_path_GREP=$GREP
4727 fi
4728
4729 fi
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4731 $as_echo "$ac_cv_path_GREP" >&6; }
4732 GREP="$ac_cv_path_GREP"
4733
4734
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4736 $as_echo_n "checking for egrep... " >&6; }
4737 if ${ac_cv_path_EGREP+:} false; then :
4738 $as_echo_n "(cached) " >&6
4739 else
4740 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4741 then ac_cv_path_EGREP="$GREP -E"
4742 else
4743 if test -z "$EGREP"; then
4744 ac_path_EGREP_found=false
4745 # Loop through the user's path and test for each of PROGNAME-LIST
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4748 do
4749 IFS=$as_save_IFS
4750 test -z "$as_dir" && as_dir=.
4751 for ac_prog in egrep; do
4752 for ac_exec_ext in '' $ac_executable_extensions; do
4753 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4754 as_fn_executable_p "$ac_path_EGREP" || continue
4755 # Check for GNU ac_path_EGREP and select it if it is found.
4756 # Check for GNU $ac_path_EGREP
4757 case `"$ac_path_EGREP" --version 2>&1` in
4758 *GNU*)
4759 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4760 *)
4761 ac_count=0
4762 $as_echo_n 0123456789 >"conftest.in"
4763 while :
4764 do
4765 cat "conftest.in" "conftest.in" >"conftest.tmp"
4766 mv "conftest.tmp" "conftest.in"
4767 cp "conftest.in" "conftest.nl"
4768 $as_echo 'EGREP' >> "conftest.nl"
4769 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4770 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4771 as_fn_arith $ac_count + 1 && ac_count=$as_val
4772 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4773 # Best one so far, save it but keep looking for a better one
4774 ac_cv_path_EGREP="$ac_path_EGREP"
4775 ac_path_EGREP_max=$ac_count
4776 fi
4777 # 10*(2^10) chars as input seems more than enough
4778 test $ac_count -gt 10 && break
4779 done
4780 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4781 esac
4782
4783 $ac_path_EGREP_found && break 3
4784 done
4785 done
4786 done
4787 IFS=$as_save_IFS
4788 if test -z "$ac_cv_path_EGREP"; then
4789 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4790 fi
4791 else
4792 ac_cv_path_EGREP=$EGREP
4793 fi
4794
4795 fi
4796 fi
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4798 $as_echo "$ac_cv_path_EGREP" >&6; }
4799 EGREP="$ac_cv_path_EGREP"
4800
4801
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4803 $as_echo_n "checking for fgrep... " >&6; }
4804 if ${ac_cv_path_FGREP+:} false; then :
4805 $as_echo_n "(cached) " >&6
4806 else
4807 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4808 then ac_cv_path_FGREP="$GREP -F"
4809 else
4810 if test -z "$FGREP"; then
4811 ac_path_FGREP_found=false
4812 # Loop through the user's path and test for each of PROGNAME-LIST
4813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4815 do
4816 IFS=$as_save_IFS
4817 test -z "$as_dir" && as_dir=.
4818 for ac_prog in fgrep; do
4819 for ac_exec_ext in '' $ac_executable_extensions; do
4820 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4821 as_fn_executable_p "$ac_path_FGREP" || continue
4822 # Check for GNU ac_path_FGREP and select it if it is found.
4823 # Check for GNU $ac_path_FGREP
4824 case `"$ac_path_FGREP" --version 2>&1` in
4825 *GNU*)
4826 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4827 *)
4828 ac_count=0
4829 $as_echo_n 0123456789 >"conftest.in"
4830 while :
4831 do
4832 cat "conftest.in" "conftest.in" >"conftest.tmp"
4833 mv "conftest.tmp" "conftest.in"
4834 cp "conftest.in" "conftest.nl"
4835 $as_echo 'FGREP' >> "conftest.nl"
4836 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4837 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4838 as_fn_arith $ac_count + 1 && ac_count=$as_val
4839 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4840 # Best one so far, save it but keep looking for a better one
4841 ac_cv_path_FGREP="$ac_path_FGREP"
4842 ac_path_FGREP_max=$ac_count
4843 fi
4844 # 10*(2^10) chars as input seems more than enough
4845 test $ac_count -gt 10 && break
4846 done
4847 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4848 esac
4849
4850 $ac_path_FGREP_found && break 3
4851 done
4852 done
4853 done
4854 IFS=$as_save_IFS
4855 if test -z "$ac_cv_path_FGREP"; then
4856 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4857 fi
4858 else
4859 ac_cv_path_FGREP=$FGREP
4860 fi
4861
4862 fi
4863 fi
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4865 $as_echo "$ac_cv_path_FGREP" >&6; }
4866 FGREP="$ac_cv_path_FGREP"
4867
4868
4869 test -z "$GREP" && GREP=grep
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889 # Check whether --with-gnu-ld was given.
4890 if test "${with_gnu_ld+set}" = set; then :
4891 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4892 else
4893 with_gnu_ld=no
4894 fi
4895
4896 ac_prog=ld
4897 if test "$GCC" = yes; then
4898 # Check if gcc -print-prog-name=ld gives a path.
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4900 $as_echo_n "checking for ld used by $CC... " >&6; }
4901 case $host in
4902 *-*-mingw*)
4903 # gcc leaves a trailing carriage return which upsets mingw
4904 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4905 *)
4906 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4907 esac
4908 case $ac_prog in
4909 # Accept absolute paths.
4910 [\\/]* | ?:[\\/]*)
4911 re_direlt='/[^/][^/]*/\.\./'
4912 # Canonicalize the pathname of ld
4913 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4914 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4915 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4916 done
4917 test -z "$LD" && LD="$ac_prog"
4918 ;;
4919 "")
4920 # If it fails, then pretend we aren't using GCC.
4921 ac_prog=ld
4922 ;;
4923 *)
4924 # If it is relative, then search for the first ld in PATH.
4925 with_gnu_ld=unknown
4926 ;;
4927 esac
4928 elif test "$with_gnu_ld" = yes; then
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4930 $as_echo_n "checking for GNU ld... " >&6; }
4931 else
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4933 $as_echo_n "checking for non-GNU ld... " >&6; }
4934 fi
4935 if ${lt_cv_path_LD+:} false; then :
4936 $as_echo_n "(cached) " >&6
4937 else
4938 if test -z "$LD"; then
4939 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4940 for ac_dir in $PATH; do
4941 IFS="$lt_save_ifs"
4942 test -z "$ac_dir" && ac_dir=.
4943 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4944 lt_cv_path_LD="$ac_dir/$ac_prog"
4945 # Check to see if the program is GNU ld. I'd rather use --version,
4946 # but apparently some variants of GNU ld only accept -v.
4947 # Break only if it was the GNU/non-GNU ld that we prefer.
4948 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4949 *GNU* | *'with BFD'*)
4950 test "$with_gnu_ld" != no && break
4951 ;;
4952 *)
4953 test "$with_gnu_ld" != yes && break
4954 ;;
4955 esac
4956 fi
4957 done
4958 IFS="$lt_save_ifs"
4959 else
4960 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4961 fi
4962 fi
4963
4964 LD="$lt_cv_path_LD"
4965 if test -n "$LD"; then
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4967 $as_echo "$LD" >&6; }
4968 else
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4970 $as_echo "no" >&6; }
4971 fi
4972 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4974 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4975 if ${lt_cv_prog_gnu_ld+:} false; then :
4976 $as_echo_n "(cached) " >&6
4977 else
4978 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4979 case `$LD -v 2>&1 </dev/null` in
4980 *GNU* | *'with BFD'*)
4981 lt_cv_prog_gnu_ld=yes
4982 ;;
4983 *)
4984 lt_cv_prog_gnu_ld=no
4985 ;;
4986 esac
4987 fi
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4989 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4990 with_gnu_ld=$lt_cv_prog_gnu_ld
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5001 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5002 if ${lt_cv_path_NM+:} false; then :
5003 $as_echo_n "(cached) " >&6
5004 else
5005 if test -n "$NM"; then
5006 # Let the user override the test.
5007 lt_cv_path_NM="$NM"
5008 else
5009 lt_nm_to_check="${ac_tool_prefix}nm"
5010 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5011 lt_nm_to_check="$lt_nm_to_check nm"
5012 fi
5013 for lt_tmp_nm in $lt_nm_to_check; do
5014 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5015 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5016 IFS="$lt_save_ifs"
5017 test -z "$ac_dir" && ac_dir=.
5018 tmp_nm="$ac_dir/$lt_tmp_nm"
5019 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5020 # Check to see if the nm accepts a BSD-compat flag.
5021 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5022 # nm: unknown option "B" ignored
5023 # Tru64's nm complains that /dev/null is an invalid object file
5024 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5025 */dev/null* | *'Invalid file or object type'*)
5026 lt_cv_path_NM="$tmp_nm -B"
5027 break
5028 ;;
5029 *)
5030 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5031 */dev/null*)
5032 lt_cv_path_NM="$tmp_nm -p"
5033 break
5034 ;;
5035 *)
5036 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5037 continue # so that we can try to find one that supports BSD flags
5038 ;;
5039 esac
5040 ;;
5041 esac
5042 fi
5043 done
5044 IFS="$lt_save_ifs"
5045 done
5046 : ${lt_cv_path_NM=no}
5047 fi
5048 fi
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5050 $as_echo "$lt_cv_path_NM" >&6; }
5051 if test "$lt_cv_path_NM" != "no"; then
5052 NM="$lt_cv_path_NM"
5053 else
5054 # Didn't find any BSD compatible name lister, look for dumpbin.
5055 if test -n "$DUMPBIN"; then :
5056 # Let the user override the test.
5057 else
5058 if test -n "$ac_tool_prefix"; then
5059 for ac_prog in dumpbin "link -dump"
5060 do
5061 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5062 set dummy $ac_tool_prefix$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_DUMPBIN+:} false; then :
5066 $as_echo_n "(cached) " >&6
5067 else
5068 if test -n "$DUMPBIN"; then
5069 ac_cv_prog_DUMPBIN="$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_DUMPBIN="$ac_tool_prefix$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 DUMPBIN=$ac_cv_prog_DUMPBIN
5089 if test -n "$DUMPBIN"; then
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5091 $as_echo "$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 "$DUMPBIN" && break
5099 done
5100 fi
5101 if test -z "$DUMPBIN"; then
5102 ac_ct_DUMPBIN=$DUMPBIN
5103 for ac_prog in dumpbin "link -dump"
5104 do
5105 # Extract the first word of "$ac_prog", so it can be a program name with args.
5106 set dummy $ac_prog; ac_word=$2
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5108 $as_echo_n "checking for $ac_word... " >&6; }
5109 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5110 $as_echo_n "(cached) " >&6
5111 else
5112 if test -n "$ac_ct_DUMPBIN"; then
5113 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5114 else
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 for as_dir in $PATH
5117 do
5118 IFS=$as_save_IFS
5119 test -z "$as_dir" && as_dir=.
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5122 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 break 2
5125 fi
5126 done
5127 done
5128 IFS=$as_save_IFS
5129
5130 fi
5131 fi
5132 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5133 if test -n "$ac_ct_DUMPBIN"; then
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5135 $as_echo "$ac_ct_DUMPBIN" >&6; }
5136 else
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5138 $as_echo "no" >&6; }
5139 fi
5140
5141
5142 test -n "$ac_ct_DUMPBIN" && break
5143 done
5144
5145 if test "x$ac_ct_DUMPBIN" = x; then
5146 DUMPBIN=":"
5147 else
5148 case $cross_compiling:$ac_tool_warned in
5149 yes:)
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5152 ac_tool_warned=yes ;;
5153 esac
5154 DUMPBIN=$ac_ct_DUMPBIN
5155 fi
5156 fi
5157
5158 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5159 *COFF*)
5160 DUMPBIN="$DUMPBIN -symbols"
5161 ;;
5162 *)
5163 DUMPBIN=:
5164 ;;
5165 esac
5166 fi
5167
5168 if test "$DUMPBIN" != ":"; then
5169 NM="$DUMPBIN"
5170 fi
5171 fi
5172 test -z "$NM" && NM=nm
5173
5174
5175
5176
5177
5178
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5180 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5181 if ${lt_cv_nm_interface+:} false; then :
5182 $as_echo_n "(cached) " >&6
5183 else
5184 lt_cv_nm_interface="BSD nm"
5185 echo "int some_variable = 0;" > conftest.$ac_ext
5186 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5187 (eval "$ac_compile" 2>conftest.err)
5188 cat conftest.err >&5
5189 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5190 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5191 cat conftest.err >&5
5192 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5193 cat conftest.out >&5
5194 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5195 lt_cv_nm_interface="MS dumpbin"
5196 fi
5197 rm -f conftest*
5198 fi
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5200 $as_echo "$lt_cv_nm_interface" >&6; }
5201
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5203 $as_echo_n "checking whether ln -s works... " >&6; }
5204 LN_S=$as_ln_s
5205 if test "$LN_S" = "ln -s"; then
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5207 $as_echo "yes" >&6; }
5208 else
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5210 $as_echo "no, using $LN_S" >&6; }
5211 fi
5212
5213 # find the maximum length of command line arguments
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5215 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5216 if ${lt_cv_sys_max_cmd_len+:} false; then :
5217 $as_echo_n "(cached) " >&6
5218 else
5219 i=0
5220 teststring="ABCD"
5221
5222 case $build_os in
5223 msdosdjgpp*)
5224 # On DJGPP, this test can blow up pretty badly due to problems in libc
5225 # (any single argument exceeding 2000 bytes causes a buffer overrun
5226 # during glob expansion). Even if it were fixed, the result of this
5227 # check would be larger than it should be.
5228 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5229 ;;
5230
5231 gnu*)
5232 # Under GNU Hurd, this test is not required because there is
5233 # no limit to the length of command line arguments.
5234 # Libtool will interpret -1 as no limit whatsoever
5235 lt_cv_sys_max_cmd_len=-1;
5236 ;;
5237
5238 cygwin* | mingw* | cegcc*)
5239 # On Win9x/ME, this test blows up -- it succeeds, but takes
5240 # about 5 minutes as the teststring grows exponentially.
5241 # Worse, since 9x/ME are not pre-emptively multitasking,
5242 # you end up with a "frozen" computer, even though with patience
5243 # the test eventually succeeds (with a max line length of 256k).
5244 # Instead, let's just punt: use the minimum linelength reported by
5245 # all of the supported platforms: 8192 (on NT/2K/XP).
5246 lt_cv_sys_max_cmd_len=8192;
5247 ;;
5248
5249 mint*)
5250 # On MiNT this can take a long time and run out of memory.
5251 lt_cv_sys_max_cmd_len=8192;
5252 ;;
5253
5254 amigaos*)
5255 # On AmigaOS with pdksh, this test takes hours, literally.
5256 # So we just punt and use a minimum line length of 8192.
5257 lt_cv_sys_max_cmd_len=8192;
5258 ;;
5259
5260 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5261 # This has been around since 386BSD, at least. Likely further.
5262 if test -x /sbin/sysctl; then
5263 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5264 elif test -x /usr/sbin/sysctl; then
5265 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5266 else
5267 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5268 fi
5269 # And add a safety zone
5270 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5271 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5272 ;;
5273
5274 interix*)
5275 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5276 lt_cv_sys_max_cmd_len=196608
5277 ;;
5278
5279 os2*)
5280 # The test takes a long time on OS/2.
5281 lt_cv_sys_max_cmd_len=8192
5282 ;;
5283
5284 osf*)
5285 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5286 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5287 # nice to cause kernel panics so lets avoid the loop below.
5288 # First set a reasonable default.
5289 lt_cv_sys_max_cmd_len=16384
5290 #
5291 if test -x /sbin/sysconfig; then
5292 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5293 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5294 esac
5295 fi
5296 ;;
5297 sco3.2v5*)
5298 lt_cv_sys_max_cmd_len=102400
5299 ;;
5300 sysv5* | sco5v6* | sysv4.2uw2*)
5301 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5302 if test -n "$kargmax"; then
5303 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5304 else
5305 lt_cv_sys_max_cmd_len=32768
5306 fi
5307 ;;
5308 *)
5309 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5310 if test -n "$lt_cv_sys_max_cmd_len"; then
5311 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5312 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5313 else
5314 # Make teststring a little bigger before we do anything with it.
5315 # a 1K string should be a reasonable start.
5316 for i in 1 2 3 4 5 6 7 8 ; do
5317 teststring=$teststring$teststring
5318 done
5319 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5320 # If test is not a shell built-in, we'll probably end up computing a
5321 # maximum length that is only half of the actual maximum length, but
5322 # we can't tell.
5323 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5324 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5325 test $i != 17 # 1/2 MB should be enough
5326 do
5327 i=`expr $i + 1`
5328 teststring=$teststring$teststring
5329 done
5330 # Only check the string length outside the loop.
5331 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5332 teststring=
5333 # Add a significant safety factor because C++ compilers can tack on
5334 # massive amounts of additional arguments before passing them to the
5335 # linker. It appears as though 1/2 is a usable value.
5336 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5337 fi
5338 ;;
5339 esac
5340
5341 fi
5342
5343 if test -n $lt_cv_sys_max_cmd_len ; then
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5345 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5346 else
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5348 $as_echo "none" >&6; }
5349 fi
5350 max_cmd_len=$lt_cv_sys_max_cmd_len
5351
5352
5353
5354
5355
5356
5357 : ${CP="cp -f"}
5358 : ${MV="mv -f"}
5359 : ${RM="rm -f"}
5360
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5362 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5363 # Try some XSI features
5364 xsi_shell=no
5365 ( _lt_dummy="a/b/c"
5366 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5367 = c,a/b,b/c, \
5368 && eval 'test $(( 1 + 1 )) -eq 2 \
5369 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5370 && xsi_shell=yes
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5372 $as_echo "$xsi_shell" >&6; }
5373
5374
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5376 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5377 lt_shell_append=no
5378 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5379 >/dev/null 2>&1 \
5380 && lt_shell_append=yes
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5382 $as_echo "$lt_shell_append" >&6; }
5383
5384
5385 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5386 lt_unset=unset
5387 else
5388 lt_unset=false
5389 fi
5390
5391
5392
5393
5394
5395 # test EBCDIC or ASCII
5396 case `echo X|tr X '\101'` in
5397 A) # ASCII based system
5398 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5399 lt_SP2NL='tr \040 \012'
5400 lt_NL2SP='tr \015\012 \040\040'
5401 ;;
5402 *) # EBCDIC based system
5403 lt_SP2NL='tr \100 \n'
5404 lt_NL2SP='tr \r\n \100\100'
5405 ;;
5406 esac
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5417 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5418 if ${lt_cv_to_host_file_cmd+:} false; then :
5419 $as_echo_n "(cached) " >&6
5420 else
5421 case $host in
5422 *-*-mingw* )
5423 case $build in
5424 *-*-mingw* ) # actually msys
5425 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5426 ;;
5427 *-*-cygwin* )
5428 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5429 ;;
5430 * ) # otherwise, assume *nix
5431 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5432 ;;
5433 esac
5434 ;;
5435 *-*-cygwin* )
5436 case $build in
5437 *-*-mingw* ) # actually msys
5438 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5439 ;;
5440 *-*-cygwin* )
5441 lt_cv_to_host_file_cmd=func_convert_file_noop
5442 ;;
5443 * ) # otherwise, assume *nix
5444 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5445 ;;
5446 esac
5447 ;;
5448 * ) # unhandled hosts (and "normal" native builds)
5449 lt_cv_to_host_file_cmd=func_convert_file_noop
5450 ;;
5451 esac
5452
5453 fi
5454
5455 to_host_file_cmd=$lt_cv_to_host_file_cmd
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5457 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5458
5459
5460
5461
5462
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5464 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5465 if ${lt_cv_to_tool_file_cmd+:} false; then :
5466 $as_echo_n "(cached) " >&6
5467 else
5468 #assume ordinary cross tools, or native build.
5469 lt_cv_to_tool_file_cmd=func_convert_file_noop
5470 case $host in
5471 *-*-mingw* )
5472 case $build in
5473 *-*-mingw* ) # actually msys
5474 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5475 ;;
5476 esac
5477 ;;
5478 esac
5479
5480 fi
5481
5482 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5484 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5485
5486
5487
5488
5489
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5491 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5492 if ${lt_cv_ld_reload_flag+:} false; then :
5493 $as_echo_n "(cached) " >&6
5494 else
5495 lt_cv_ld_reload_flag='-r'
5496 fi
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5498 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5499 reload_flag=$lt_cv_ld_reload_flag
5500 case $reload_flag in
5501 "" | " "*) ;;
5502 *) reload_flag=" $reload_flag" ;;
5503 esac
5504 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5505 case $host_os in
5506 cygwin* | mingw* | pw32* | cegcc*)
5507 if test "$GCC" != yes; then
5508 reload_cmds=false
5509 fi
5510 ;;
5511 darwin*)
5512 if test "$GCC" = yes; then
5513 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5514 else
5515 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5516 fi
5517 ;;
5518 esac
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528 if test -n "$ac_tool_prefix"; then
5529 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5530 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5532 $as_echo_n "checking for $ac_word... " >&6; }
5533 if ${ac_cv_prog_OBJDUMP+:} false; then :
5534 $as_echo_n "(cached) " >&6
5535 else
5536 if test -n "$OBJDUMP"; then
5537 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5538 else
5539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5540 for as_dir in $PATH
5541 do
5542 IFS=$as_save_IFS
5543 test -z "$as_dir" && as_dir=.
5544 for ac_exec_ext in '' $ac_executable_extensions; do
5545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5546 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5548 break 2
5549 fi
5550 done
5551 done
5552 IFS=$as_save_IFS
5553
5554 fi
5555 fi
5556 OBJDUMP=$ac_cv_prog_OBJDUMP
5557 if test -n "$OBJDUMP"; then
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5559 $as_echo "$OBJDUMP" >&6; }
5560 else
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5562 $as_echo "no" >&6; }
5563 fi
5564
5565
5566 fi
5567 if test -z "$ac_cv_prog_OBJDUMP"; then
5568 ac_ct_OBJDUMP=$OBJDUMP
5569 # Extract the first word of "objdump", so it can be a program name with args.
5570 set dummy objdump; ac_word=$2
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5572 $as_echo_n "checking for $ac_word... " >&6; }
5573 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5574 $as_echo_n "(cached) " >&6
5575 else
5576 if test -n "$ac_ct_OBJDUMP"; then
5577 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5578 else
5579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5580 for as_dir in $PATH
5581 do
5582 IFS=$as_save_IFS
5583 test -z "$as_dir" && as_dir=.
5584 for ac_exec_ext in '' $ac_executable_extensions; do
5585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5586 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5588 break 2
5589 fi
5590 done
5591 done
5592 IFS=$as_save_IFS
5593
5594 fi
5595 fi
5596 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5597 if test -n "$ac_ct_OBJDUMP"; then
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5599 $as_echo "$ac_ct_OBJDUMP" >&6; }
5600 else
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5602 $as_echo "no" >&6; }
5603 fi
5604
5605 if test "x$ac_ct_OBJDUMP" = x; then
5606 OBJDUMP="false"
5607 else
5608 case $cross_compiling:$ac_tool_warned in
5609 yes:)
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5612 ac_tool_warned=yes ;;
5613 esac
5614 OBJDUMP=$ac_ct_OBJDUMP
5615 fi
5616 else
5617 OBJDUMP="$ac_cv_prog_OBJDUMP"
5618 fi
5619
5620 test -z "$OBJDUMP" && OBJDUMP=objdump
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5631 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5632 if ${lt_cv_deplibs_check_method+:} false; then :
5633 $as_echo_n "(cached) " >&6
5634 else
5635 lt_cv_file_magic_cmd='$MAGIC_CMD'
5636 lt_cv_file_magic_test_file=
5637 lt_cv_deplibs_check_method='unknown'
5638 # Need to set the preceding variable on all platforms that support
5639 # interlibrary dependencies.
5640 # 'none' -- dependencies not supported.
5641 # `unknown' -- same as none, but documents that we really don't know.
5642 # 'pass_all' -- all dependencies passed with no checks.
5643 # 'test_compile' -- check by making test program.
5644 # 'file_magic [[regex]]' -- check by looking for files in library path
5645 # which responds to the $file_magic_cmd with a given extended regex.
5646 # If you have `file' or equivalent on your system and you're not sure
5647 # whether `pass_all' will *always* work, you probably want this one.
5648
5649 case $host_os in
5650 aix[4-9]*)
5651 lt_cv_deplibs_check_method=pass_all
5652 ;;
5653
5654 beos*)
5655 lt_cv_deplibs_check_method=pass_all
5656 ;;
5657
5658 bsdi[45]*)
5659 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5660 lt_cv_file_magic_cmd='/usr/bin/file -L'
5661 lt_cv_file_magic_test_file=/shlib/libc.so
5662 ;;
5663
5664 cygwin*)
5665 # func_win32_libid is a shell function defined in ltmain.sh
5666 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5667 lt_cv_file_magic_cmd='func_win32_libid'
5668 ;;
5669
5670 mingw* | pw32*)
5671 # Base MSYS/MinGW do not provide the 'file' command needed by
5672 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5673 # unless we find 'file', for example because we are cross-compiling.
5674 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5675 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5676 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5677 lt_cv_file_magic_cmd='func_win32_libid'
5678 else
5679 # Keep this pattern in sync with the one in func_win32_libid.
5680 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5681 lt_cv_file_magic_cmd='$OBJDUMP -f'
5682 fi
5683 ;;
5684
5685 cegcc*)
5686 # use the weaker test based on 'objdump'. See mingw*.
5687 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5688 lt_cv_file_magic_cmd='$OBJDUMP -f'
5689 ;;
5690
5691 darwin* | rhapsody*)
5692 lt_cv_deplibs_check_method=pass_all
5693 ;;
5694
5695 freebsd* | dragonfly*)
5696 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5697 case $host_cpu in
5698 i*86 )
5699 # Not sure whether the presence of OpenBSD here was a mistake.
5700 # Let's accept both of them until this is cleared up.
5701 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5702 lt_cv_file_magic_cmd=/usr/bin/file
5703 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5704 ;;
5705 esac
5706 else
5707 lt_cv_deplibs_check_method=pass_all
5708 fi
5709 ;;
5710
5711 gnu*)
5712 lt_cv_deplibs_check_method=pass_all
5713 ;;
5714
5715 haiku*)
5716 lt_cv_deplibs_check_method=pass_all
5717 ;;
5718
5719 hpux10.20* | hpux11*)
5720 lt_cv_file_magic_cmd=/usr/bin/file
5721 case $host_cpu in
5722 ia64*)
5723 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5724 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5725 ;;
5726 hppa*64*)
5727 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]'
5728 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5729 ;;
5730 *)
5731 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5732 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5733 ;;
5734 esac
5735 ;;
5736
5737 interix[3-9]*)
5738 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5739 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5740 ;;
5741
5742 irix5* | irix6* | nonstopux*)
5743 case $LD in
5744 *-32|*"-32 ") libmagic=32-bit;;
5745 *-n32|*"-n32 ") libmagic=N32;;
5746 *-64|*"-64 ") libmagic=64-bit;;
5747 *) libmagic=never-match;;
5748 esac
5749 lt_cv_deplibs_check_method=pass_all
5750 ;;
5751
5752 # This must be glibc/ELF.
5753 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5754 lt_cv_deplibs_check_method=pass_all
5755 ;;
5756
5757 netbsd*)
5758 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5759 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5760 else
5761 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5762 fi
5763 ;;
5764
5765 newos6*)
5766 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5767 lt_cv_file_magic_cmd=/usr/bin/file
5768 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5769 ;;
5770
5771 *nto* | *qnx*)
5772 lt_cv_deplibs_check_method=pass_all
5773 ;;
5774
5775 openbsd*)
5776 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5777 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5778 else
5779 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5780 fi
5781 ;;
5782
5783 osf3* | osf4* | osf5*)
5784 lt_cv_deplibs_check_method=pass_all
5785 ;;
5786
5787 rdos*)
5788 lt_cv_deplibs_check_method=pass_all
5789 ;;
5790
5791 solaris*)
5792 lt_cv_deplibs_check_method=pass_all
5793 ;;
5794
5795 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5796 lt_cv_deplibs_check_method=pass_all
5797 ;;
5798
5799 sysv4 | sysv4.3*)
5800 case $host_vendor in
5801 motorola)
5802 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]'
5803 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5804 ;;
5805 ncr)
5806 lt_cv_deplibs_check_method=pass_all
5807 ;;
5808 sequent)
5809 lt_cv_file_magic_cmd='/bin/file'
5810 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5811 ;;
5812 sni)
5813 lt_cv_file_magic_cmd='/bin/file'
5814 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5815 lt_cv_file_magic_test_file=/lib/libc.so
5816 ;;
5817 siemens)
5818 lt_cv_deplibs_check_method=pass_all
5819 ;;
5820 pc)
5821 lt_cv_deplibs_check_method=pass_all
5822 ;;
5823 esac
5824 ;;
5825
5826 tpf*)
5827 lt_cv_deplibs_check_method=pass_all
5828 ;;
5829 esac
5830
5831 fi
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5833 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5834
5835 file_magic_glob=
5836 want_nocaseglob=no
5837 if test "$build" = "$host"; then
5838 case $host_os in
5839 mingw* | pw32*)
5840 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5841 want_nocaseglob=yes
5842 else
5843 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5844 fi
5845 ;;
5846 esac
5847 fi
5848
5849 file_magic_cmd=$lt_cv_file_magic_cmd
5850 deplibs_check_method=$lt_cv_deplibs_check_method
5851 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874 if test -n "$ac_tool_prefix"; then
5875 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5876 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5878 $as_echo_n "checking for $ac_word... " >&6; }
5879 if ${ac_cv_prog_DLLTOOL+:} false; then :
5880 $as_echo_n "(cached) " >&6
5881 else
5882 if test -n "$DLLTOOL"; then
5883 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5884 else
5885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5886 for as_dir in $PATH
5887 do
5888 IFS=$as_save_IFS
5889 test -z "$as_dir" && as_dir=.
5890 for ac_exec_ext in '' $ac_executable_extensions; do
5891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5892 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5894 break 2
5895 fi
5896 done
5897 done
5898 IFS=$as_save_IFS
5899
5900 fi
5901 fi
5902 DLLTOOL=$ac_cv_prog_DLLTOOL
5903 if test -n "$DLLTOOL"; then
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5905 $as_echo "$DLLTOOL" >&6; }
5906 else
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5908 $as_echo "no" >&6; }
5909 fi
5910
5911
5912 fi
5913 if test -z "$ac_cv_prog_DLLTOOL"; then
5914 ac_ct_DLLTOOL=$DLLTOOL
5915 # Extract the first word of "dlltool", so it can be a program name with args.
5916 set dummy dlltool; ac_word=$2
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5918 $as_echo_n "checking for $ac_word... " >&6; }
5919 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5920 $as_echo_n "(cached) " >&6
5921 else
5922 if test -n "$ac_ct_DLLTOOL"; then
5923 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5924 else
5925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926 for as_dir in $PATH
5927 do
5928 IFS=$as_save_IFS
5929 test -z "$as_dir" && as_dir=.
5930 for ac_exec_ext in '' $ac_executable_extensions; do
5931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5932 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5934 break 2
5935 fi
5936 done
5937 done
5938 IFS=$as_save_IFS
5939
5940 fi
5941 fi
5942 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5943 if test -n "$ac_ct_DLLTOOL"; then
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5945 $as_echo "$ac_ct_DLLTOOL" >&6; }
5946 else
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5948 $as_echo "no" >&6; }
5949 fi
5950
5951 if test "x$ac_ct_DLLTOOL" = x; then
5952 DLLTOOL="false"
5953 else
5954 case $cross_compiling:$ac_tool_warned in
5955 yes:)
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5958 ac_tool_warned=yes ;;
5959 esac
5960 DLLTOOL=$ac_ct_DLLTOOL
5961 fi
5962 else
5963 DLLTOOL="$ac_cv_prog_DLLTOOL"
5964 fi
5965
5966 test -z "$DLLTOOL" && DLLTOOL=dlltool
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5978 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5979 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5980 $as_echo_n "(cached) " >&6
5981 else
5982 lt_cv_sharedlib_from_linklib_cmd='unknown'
5983
5984 case $host_os in
5985 cygwin* | mingw* | pw32* | cegcc*)
5986 # two different shell functions defined in ltmain.sh
5987 # decide which to use based on capabilities of $DLLTOOL
5988 case `$DLLTOOL --help 2>&1` in
5989 *--identify-strict*)
5990 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5991 ;;
5992 *)
5993 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5994 ;;
5995 esac
5996 ;;
5997 *)
5998 # fallback: assume linklib IS sharedlib
5999 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6000 ;;
6001 esac
6002
6003 fi
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6005 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6006 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6007 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6008
6009
6010
6011
6012
6013
6014
6015 if test -n "$ac_tool_prefix"; then
6016 for ac_prog in ar
6017 do
6018 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6019 set dummy $ac_tool_prefix$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_AR+:} false; then :
6023 $as_echo_n "(cached) " >&6
6024 else
6025 if test -n "$AR"; then
6026 ac_cv_prog_AR="$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_AR="$ac_tool_prefix$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 AR=$ac_cv_prog_AR
6046 if test -n "$AR"; then
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6048 $as_echo "$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 "$AR" && break
6056 done
6057 fi
6058 if test -z "$AR"; then
6059 ac_ct_AR=$AR
6060 for ac_prog in ar
6061 do
6062 # Extract the first word of "$ac_prog", so it can be a program name with args.
6063 set dummy $ac_prog; ac_word=$2
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6065 $as_echo_n "checking for $ac_word... " >&6; }
6066 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6067 $as_echo_n "(cached) " >&6
6068 else
6069 if test -n "$ac_ct_AR"; then
6070 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6071 else
6072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6073 for as_dir in $PATH
6074 do
6075 IFS=$as_save_IFS
6076 test -z "$as_dir" && as_dir=.
6077 for ac_exec_ext in '' $ac_executable_extensions; do
6078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6079 ac_cv_prog_ac_ct_AR="$ac_prog"
6080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6081 break 2
6082 fi
6083 done
6084 done
6085 IFS=$as_save_IFS
6086
6087 fi
6088 fi
6089 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6090 if test -n "$ac_ct_AR"; then
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6092 $as_echo "$ac_ct_AR" >&6; }
6093 else
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6095 $as_echo "no" >&6; }
6096 fi
6097
6098
6099 test -n "$ac_ct_AR" && break
6100 done
6101
6102 if test "x$ac_ct_AR" = x; then
6103 AR="false"
6104 else
6105 case $cross_compiling:$ac_tool_warned in
6106 yes:)
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6109 ac_tool_warned=yes ;;
6110 esac
6111 AR=$ac_ct_AR
6112 fi
6113 fi
6114
6115 : ${AR=ar}
6116 : ${AR_FLAGS=cru}
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6129 $as_echo_n "checking for archiver @FILE support... " >&6; }
6130 if ${lt_cv_ar_at_file+:} false; then :
6131 $as_echo_n "(cached) " >&6
6132 else
6133 lt_cv_ar_at_file=no
6134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6135 /* end confdefs.h. */
6136
6137 int
6138 main ()
6139 {
6140
6141 ;
6142 return 0;
6143 }
6144 _ACEOF
6145 if ac_fn_c_try_compile "$LINENO"; then :
6146 echo conftest.$ac_objext > conftest.lst
6147 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6148 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6149 (eval $lt_ar_try) 2>&5
6150 ac_status=$?
6151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6152 test $ac_status = 0; }
6153 if test "$ac_status" -eq 0; then
6154 # Ensure the archiver fails upon bogus file names.
6155 rm -f conftest.$ac_objext libconftest.a
6156 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6157 (eval $lt_ar_try) 2>&5
6158 ac_status=$?
6159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6160 test $ac_status = 0; }
6161 if test "$ac_status" -ne 0; then
6162 lt_cv_ar_at_file=@
6163 fi
6164 fi
6165 rm -f conftest.* libconftest.a
6166
6167 fi
6168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6169
6170 fi
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6172 $as_echo "$lt_cv_ar_at_file" >&6; }
6173
6174 if test "x$lt_cv_ar_at_file" = xno; then
6175 archiver_list_spec=
6176 else
6177 archiver_list_spec=$lt_cv_ar_at_file
6178 fi
6179
6180
6181
6182
6183
6184
6185
6186 if test -n "$ac_tool_prefix"; then
6187 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6188 set dummy ${ac_tool_prefix}strip; ac_word=$2
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6190 $as_echo_n "checking for $ac_word... " >&6; }
6191 if ${ac_cv_prog_STRIP+:} false; then :
6192 $as_echo_n "(cached) " >&6
6193 else
6194 if test -n "$STRIP"; then
6195 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6196 else
6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198 for as_dir in $PATH
6199 do
6200 IFS=$as_save_IFS
6201 test -z "$as_dir" && as_dir=.
6202 for ac_exec_ext in '' $ac_executable_extensions; do
6203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6204 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6206 break 2
6207 fi
6208 done
6209 done
6210 IFS=$as_save_IFS
6211
6212 fi
6213 fi
6214 STRIP=$ac_cv_prog_STRIP
6215 if test -n "$STRIP"; then
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6217 $as_echo "$STRIP" >&6; }
6218 else
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6220 $as_echo "no" >&6; }
6221 fi
6222
6223
6224 fi
6225 if test -z "$ac_cv_prog_STRIP"; then
6226 ac_ct_STRIP=$STRIP
6227 # Extract the first word of "strip", so it can be a program name with args.
6228 set dummy strip; ac_word=$2
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6230 $as_echo_n "checking for $ac_word... " >&6; }
6231 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6232 $as_echo_n "(cached) " >&6
6233 else
6234 if test -n "$ac_ct_STRIP"; then
6235 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6236 else
6237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238 for as_dir in $PATH
6239 do
6240 IFS=$as_save_IFS
6241 test -z "$as_dir" && as_dir=.
6242 for ac_exec_ext in '' $ac_executable_extensions; do
6243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6244 ac_cv_prog_ac_ct_STRIP="strip"
6245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6246 break 2
6247 fi
6248 done
6249 done
6250 IFS=$as_save_IFS
6251
6252 fi
6253 fi
6254 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6255 if test -n "$ac_ct_STRIP"; then
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6257 $as_echo "$ac_ct_STRIP" >&6; }
6258 else
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6260 $as_echo "no" >&6; }
6261 fi
6262
6263 if test "x$ac_ct_STRIP" = x; then
6264 STRIP=":"
6265 else
6266 case $cross_compiling:$ac_tool_warned in
6267 yes:)
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6270 ac_tool_warned=yes ;;
6271 esac
6272 STRIP=$ac_ct_STRIP
6273 fi
6274 else
6275 STRIP="$ac_cv_prog_STRIP"
6276 fi
6277
6278 test -z "$STRIP" && STRIP=:
6279
6280
6281
6282
6283
6284
6285 if test -n "$ac_tool_prefix"; then
6286 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6287 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6289 $as_echo_n "checking for $ac_word... " >&6; }
6290 if ${ac_cv_prog_RANLIB+:} false; then :
6291 $as_echo_n "(cached) " >&6
6292 else
6293 if test -n "$RANLIB"; then
6294 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6295 else
6296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297 for as_dir in $PATH
6298 do
6299 IFS=$as_save_IFS
6300 test -z "$as_dir" && as_dir=.
6301 for ac_exec_ext in '' $ac_executable_extensions; do
6302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6303 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6305 break 2
6306 fi
6307 done
6308 done
6309 IFS=$as_save_IFS
6310
6311 fi
6312 fi
6313 RANLIB=$ac_cv_prog_RANLIB
6314 if test -n "$RANLIB"; then
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6316 $as_echo "$RANLIB" >&6; }
6317 else
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6319 $as_echo "no" >&6; }
6320 fi
6321
6322
6323 fi
6324 if test -z "$ac_cv_prog_RANLIB"; then
6325 ac_ct_RANLIB=$RANLIB
6326 # Extract the first word of "ranlib", so it can be a program name with args.
6327 set dummy ranlib; ac_word=$2
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6329 $as_echo_n "checking for $ac_word... " >&6; }
6330 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6331 $as_echo_n "(cached) " >&6
6332 else
6333 if test -n "$ac_ct_RANLIB"; then
6334 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6335 else
6336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6337 for as_dir in $PATH
6338 do
6339 IFS=$as_save_IFS
6340 test -z "$as_dir" && as_dir=.
6341 for ac_exec_ext in '' $ac_executable_extensions; do
6342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6343 ac_cv_prog_ac_ct_RANLIB="ranlib"
6344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6345 break 2
6346 fi
6347 done
6348 done
6349 IFS=$as_save_IFS
6350
6351 fi
6352 fi
6353 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6354 if test -n "$ac_ct_RANLIB"; then
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6356 $as_echo "$ac_ct_RANLIB" >&6; }
6357 else
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6359 $as_echo "no" >&6; }
6360 fi
6361
6362 if test "x$ac_ct_RANLIB" = x; then
6363 RANLIB=":"
6364 else
6365 case $cross_compiling:$ac_tool_warned in
6366 yes:)
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6368 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6369 ac_tool_warned=yes ;;
6370 esac
6371 RANLIB=$ac_ct_RANLIB
6372 fi
6373 else
6374 RANLIB="$ac_cv_prog_RANLIB"
6375 fi
6376
6377 test -z "$RANLIB" && RANLIB=:
6378
6379
6380
6381
6382
6383
6384 # Determine commands to create old-style static archives.
6385 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6386 old_postinstall_cmds='chmod 644 $oldlib'
6387 old_postuninstall_cmds=
6388
6389 if test -n "$RANLIB"; then
6390 case $host_os in
6391 openbsd*)
6392 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6393 ;;
6394 *)
6395 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6396 ;;
6397 esac
6398 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6399 fi
6400
6401 case $host_os in
6402 darwin*)
6403 lock_old_archive_extraction=yes ;;
6404 *)
6405 lock_old_archive_extraction=no ;;
6406 esac
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446 # If no C compiler was specified, use CC.
6447 LTCC=${LTCC-"$CC"}
6448
6449 # If no C compiler flags were specified, use CFLAGS.
6450 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6451
6452 # Allow CC to be a program name with arguments.
6453 compiler=$CC
6454
6455
6456 # Check for command to grab the raw symbol name followed by C symbol from nm.
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6458 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6459 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6460 $as_echo_n "(cached) " >&6
6461 else
6462
6463 # These are sane defaults that work on at least a few old systems.
6464 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6465
6466 # Character class describing NM global symbol codes.
6467 symcode='[BCDEGRST]'
6468
6469 # Regexp to match symbols that can be accessed directly from C.
6470 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6471
6472 # Define system-specific variables.
6473 case $host_os in
6474 aix*)
6475 symcode='[BCDT]'
6476 ;;
6477 cygwin* | mingw* | pw32* | cegcc*)
6478 symcode='[ABCDGISTW]'
6479 ;;
6480 hpux*)
6481 if test "$host_cpu" = ia64; then
6482 symcode='[ABCDEGRST]'
6483 fi
6484 ;;
6485 irix* | nonstopux*)
6486 symcode='[BCDEGRST]'
6487 ;;
6488 osf*)
6489 symcode='[BCDEGQRST]'
6490 ;;
6491 solaris*)
6492 symcode='[BDRT]'
6493 ;;
6494 sco3.2v5*)
6495 symcode='[DT]'
6496 ;;
6497 sysv4.2uw2*)
6498 symcode='[DT]'
6499 ;;
6500 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6501 symcode='[ABDT]'
6502 ;;
6503 sysv4)
6504 symcode='[DFNSTU]'
6505 ;;
6506 esac
6507
6508 # If we're using GNU nm, then use its standard symbol codes.
6509 case `$NM -V 2>&1` in
6510 *GNU* | *'with BFD'*)
6511 symcode='[ABCDGIRSTW]' ;;
6512 esac
6513
6514 # Transform an extracted symbol line into a proper C declaration.
6515 # Some systems (esp. on ia64) link data and code symbols differently,
6516 # so use this general approach.
6517 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6518
6519 # Transform an extracted symbol line into symbol name and symbol address
6520 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6521 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'"
6522
6523 # Handle CRLF in mingw tool chain
6524 opt_cr=
6525 case $build_os in
6526 mingw*)
6527 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6528 ;;
6529 esac
6530
6531 # Try without a prefix underscore, then with it.
6532 for ac_symprfx in "" "_"; do
6533
6534 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6535 symxfrm="\\1 $ac_symprfx\\2 \\2"
6536
6537 # Write the raw and C identifiers.
6538 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6539 # Fake it for dumpbin and say T for any non-static function
6540 # and D for any global variable.
6541 # Also find C++ and __fastcall symbols from MSVC++,
6542 # which start with @ or ?.
6543 lt_cv_sys_global_symbol_pipe="$AWK '"\
6544 " {last_section=section; section=\$ 3};"\
6545 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6546 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6547 " \$ 0!~/External *\|/{next};"\
6548 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6549 " {if(hide[section]) next};"\
6550 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6551 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6552 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6553 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6554 " ' prfx=^$ac_symprfx"
6555 else
6556 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6557 fi
6558 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6559
6560 # Check to see that the pipe works correctly.
6561 pipe_works=no
6562
6563 rm -f conftest*
6564 cat > conftest.$ac_ext <<_LT_EOF
6565 #ifdef __cplusplus
6566 extern "C" {
6567 #endif
6568 char nm_test_var;
6569 void nm_test_func(void);
6570 void nm_test_func(void){}
6571 #ifdef __cplusplus
6572 }
6573 #endif
6574 int main(){nm_test_var='a';nm_test_func();return(0);}
6575 _LT_EOF
6576
6577 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6578 (eval $ac_compile) 2>&5
6579 ac_status=$?
6580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6581 test $ac_status = 0; }; then
6582 # Now try to grab the symbols.
6583 nlist=conftest.nm
6584 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6585 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6586 ac_status=$?
6587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6588 test $ac_status = 0; } && test -s "$nlist"; then
6589 # Try sorting and uniquifying the output.
6590 if sort "$nlist" | uniq > "$nlist"T; then
6591 mv -f "$nlist"T "$nlist"
6592 else
6593 rm -f "$nlist"T
6594 fi
6595
6596 # Make sure that we snagged all the symbols we need.
6597 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6598 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6599 cat <<_LT_EOF > conftest.$ac_ext
6600 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6601 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6602 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6603 relocations are performed -- see ld's documentation on pseudo-relocs. */
6604 # define LT_DLSYM_CONST
6605 #elif defined(__osf__)
6606 /* This system does not cope well with relocations in const data. */
6607 # define LT_DLSYM_CONST
6608 #else
6609 # define LT_DLSYM_CONST const
6610 #endif
6611
6612 #ifdef __cplusplus
6613 extern "C" {
6614 #endif
6615
6616 _LT_EOF
6617 # Now generate the symbol file.
6618 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6619
6620 cat <<_LT_EOF >> conftest.$ac_ext
6621
6622 /* The mapping between symbol names and symbols. */
6623 LT_DLSYM_CONST struct {
6624 const char *name;
6625 void *address;
6626 }
6627 lt__PROGRAM__LTX_preloaded_symbols[] =
6628 {
6629 { "@PROGRAM@", (void *) 0 },
6630 _LT_EOF
6631 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6632 cat <<\_LT_EOF >> conftest.$ac_ext
6633 {0, (void *) 0}
6634 };
6635
6636 /* This works around a problem in FreeBSD linker */
6637 #ifdef FREEBSD_WORKAROUND
6638 static const void *lt_preloaded_setup() {
6639 return lt__PROGRAM__LTX_preloaded_symbols;
6640 }
6641 #endif
6642
6643 #ifdef __cplusplus
6644 }
6645 #endif
6646 _LT_EOF
6647 # Now try linking the two files.
6648 mv conftest.$ac_objext conftstm.$ac_objext
6649 lt_globsym_save_LIBS=$LIBS
6650 lt_globsym_save_CFLAGS=$CFLAGS
6651 LIBS="conftstm.$ac_objext"
6652 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6653 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6654 (eval $ac_link) 2>&5
6655 ac_status=$?
6656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6657 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6658 pipe_works=yes
6659 fi
6660 LIBS=$lt_globsym_save_LIBS
6661 CFLAGS=$lt_globsym_save_CFLAGS
6662 else
6663 echo "cannot find nm_test_func in $nlist" >&5
6664 fi
6665 else
6666 echo "cannot find nm_test_var in $nlist" >&5
6667 fi
6668 else
6669 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6670 fi
6671 else
6672 echo "$progname: failed program was:" >&5
6673 cat conftest.$ac_ext >&5
6674 fi
6675 rm -rf conftest* conftst*
6676
6677 # Do not use the global_symbol_pipe unless it works.
6678 if test "$pipe_works" = yes; then
6679 break
6680 else
6681 lt_cv_sys_global_symbol_pipe=
6682 fi
6683 done
6684
6685 fi
6686
6687 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6688 lt_cv_sys_global_symbol_to_cdecl=
6689 fi
6690 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6692 $as_echo "failed" >&6; }
6693 else
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6695 $as_echo "ok" >&6; }
6696 fi
6697
6698 # Response file support.
6699 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6700 nm_file_list_spec='@'
6701 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6702 nm_file_list_spec='@'
6703 fi
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6732 $as_echo_n "checking for sysroot... " >&6; }
6733
6734 # Check whether --with-sysroot was given.
6735 if test "${with_sysroot+set}" = set; then :
6736 withval=$with_sysroot;
6737 else
6738 with_sysroot=no
6739 fi
6740
6741
6742 lt_sysroot=
6743 case ${with_sysroot} in #(
6744 yes)
6745 if test "$GCC" = yes; then
6746 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6747 fi
6748 ;; #(
6749 /*)
6750 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6751 ;; #(
6752 no|'')
6753 ;; #(
6754 *)
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6756 $as_echo "${with_sysroot}" >&6; }
6757 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6758 ;;
6759 esac
6760
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6762 $as_echo "${lt_sysroot:-no}" >&6; }
6763
6764
6765
6766
6767
6768 # Check whether --enable-libtool-lock was given.
6769 if test "${enable_libtool_lock+set}" = set; then :
6770 enableval=$enable_libtool_lock;
6771 fi
6772
6773 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6774
6775 # Some flags need to be propagated to the compiler or linker for good
6776 # libtool support.
6777 case $host in
6778 ia64-*-hpux*)
6779 # Find out which ABI we are using.
6780 echo 'int i;' > conftest.$ac_ext
6781 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6782 (eval $ac_compile) 2>&5
6783 ac_status=$?
6784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6785 test $ac_status = 0; }; then
6786 case `/usr/bin/file conftest.$ac_objext` in
6787 *ELF-32*)
6788 HPUX_IA64_MODE="32"
6789 ;;
6790 *ELF-64*)
6791 HPUX_IA64_MODE="64"
6792 ;;
6793 esac
6794 fi
6795 rm -rf conftest*
6796 ;;
6797 *-*-irix6*)
6798 # Find out which ABI we are using.
6799 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6800 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6801 (eval $ac_compile) 2>&5
6802 ac_status=$?
6803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6804 test $ac_status = 0; }; then
6805 if test "$lt_cv_prog_gnu_ld" = yes; then
6806 case `/usr/bin/file conftest.$ac_objext` in
6807 *32-bit*)
6808 LD="${LD-ld} -melf32bsmip"
6809 ;;
6810 *N32*)
6811 LD="${LD-ld} -melf32bmipn32"
6812 ;;
6813 *64-bit*)
6814 LD="${LD-ld} -melf64bmip"
6815 ;;
6816 esac
6817 else
6818 case `/usr/bin/file conftest.$ac_objext` in
6819 *32-bit*)
6820 LD="${LD-ld} -32"
6821 ;;
6822 *N32*)
6823 LD="${LD-ld} -n32"
6824 ;;
6825 *64-bit*)
6826 LD="${LD-ld} -64"
6827 ;;
6828 esac
6829 fi
6830 fi
6831 rm -rf conftest*
6832 ;;
6833
6834 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6835 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6836 # Find out which ABI we are using.
6837 echo 'int i;' > conftest.$ac_ext
6838 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6839 (eval $ac_compile) 2>&5
6840 ac_status=$?
6841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6842 test $ac_status = 0; }; then
6843 case `/usr/bin/file conftest.o` in
6844 *32-bit*)
6845 case $host in
6846 x86_64-*kfreebsd*-gnu)
6847 LD="${LD-ld} -m elf_i386_fbsd"
6848 ;;
6849 x86_64-*linux*)
6850 LD="${LD-ld} -m elf_i386"
6851 ;;
6852 ppc64-*linux*|powerpc64-*linux*)
6853 LD="${LD-ld} -m elf32ppclinux"
6854 ;;
6855 s390x-*linux*)
6856 LD="${LD-ld} -m elf_s390"
6857 ;;
6858 sparc64-*linux*)
6859 LD="${LD-ld} -m elf32_sparc"
6860 ;;
6861 esac
6862 ;;
6863 *64-bit*)
6864 case $host in
6865 x86_64-*kfreebsd*-gnu)
6866 LD="${LD-ld} -m elf_x86_64_fbsd"
6867 ;;
6868 x86_64-*linux*)
6869 LD="${LD-ld} -m elf_x86_64"
6870 ;;
6871 ppc*-*linux*|powerpc*-*linux*)
6872 LD="${LD-ld} -m elf64ppc"
6873 ;;
6874 s390*-*linux*|s390*-*tpf*)
6875 LD="${LD-ld} -m elf64_s390"
6876 ;;
6877 sparc*-*linux*)
6878 LD="${LD-ld} -m elf64_sparc"
6879 ;;
6880 esac
6881 ;;
6882 esac
6883 fi
6884 rm -rf conftest*
6885 ;;
6886
6887 *-*-sco3.2v5*)
6888 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6889 SAVE_CFLAGS="$CFLAGS"
6890 CFLAGS="$CFLAGS -belf"
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6892 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6893 if ${lt_cv_cc_needs_belf+:} false; then :
6894 $as_echo_n "(cached) " >&6
6895 else
6896 ac_ext=c
6897 ac_cpp='$CPP $CPPFLAGS'
6898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6901
6902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6903 /* end confdefs.h. */
6904
6905 int
6906 main ()
6907 {
6908
6909 ;
6910 return 0;
6911 }
6912 _ACEOF
6913 if ac_fn_c_try_link "$LINENO"; then :
6914 lt_cv_cc_needs_belf=yes
6915 else
6916 lt_cv_cc_needs_belf=no
6917 fi
6918 rm -f core conftest.err conftest.$ac_objext \
6919 conftest$ac_exeext conftest.$ac_ext
6920 ac_ext=c
6921 ac_cpp='$CPP $CPPFLAGS'
6922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6925
6926 fi
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6928 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6929 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6930 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6931 CFLAGS="$SAVE_CFLAGS"
6932 fi
6933 ;;
6934 *-*solaris*)
6935 # Find out which ABI we are using.
6936 echo 'int i;' > conftest.$ac_ext
6937 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6938 (eval $ac_compile) 2>&5
6939 ac_status=$?
6940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6941 test $ac_status = 0; }; then
6942 case `/usr/bin/file conftest.o` in
6943 *64-bit*)
6944 case $lt_cv_prog_gnu_ld in
6945 yes*)
6946 case $host in
6947 i?86-*-solaris*)
6948 LD="${LD-ld} -m elf_x86_64"
6949 ;;
6950 sparc*-*-solaris*)
6951 LD="${LD-ld} -m elf64_sparc"
6952 ;;
6953 esac
6954 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6955 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6956 LD="${LD-ld}_sol2"
6957 fi
6958 ;;
6959 *)
6960 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6961 LD="${LD-ld} -64"
6962 fi
6963 ;;
6964 esac
6965 ;;
6966 esac
6967 fi
6968 rm -rf conftest*
6969 ;;
6970 esac
6971
6972 need_locks="$enable_libtool_lock"
6973
6974 if test -n "$ac_tool_prefix"; then
6975 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6976 set dummy ${ac_tool_prefix}mt; ac_word=$2
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6978 $as_echo_n "checking for $ac_word... " >&6; }
6979 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6980 $as_echo_n "(cached) " >&6
6981 else
6982 if test -n "$MANIFEST_TOOL"; then
6983 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6984 else
6985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986 for as_dir in $PATH
6987 do
6988 IFS=$as_save_IFS
6989 test -z "$as_dir" && as_dir=.
6990 for ac_exec_ext in '' $ac_executable_extensions; do
6991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6992 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6994 break 2
6995 fi
6996 done
6997 done
6998 IFS=$as_save_IFS
6999
7000 fi
7001 fi
7002 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7003 if test -n "$MANIFEST_TOOL"; then
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7005 $as_echo "$MANIFEST_TOOL" >&6; }
7006 else
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7008 $as_echo "no" >&6; }
7009 fi
7010
7011
7012 fi
7013 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7014 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7015 # Extract the first word of "mt", so it can be a program name with args.
7016 set dummy mt; ac_word=$2
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7018 $as_echo_n "checking for $ac_word... " >&6; }
7019 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7020 $as_echo_n "(cached) " >&6
7021 else
7022 if test -n "$ac_ct_MANIFEST_TOOL"; then
7023 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7024 else
7025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026 for as_dir in $PATH
7027 do
7028 IFS=$as_save_IFS
7029 test -z "$as_dir" && as_dir=.
7030 for ac_exec_ext in '' $ac_executable_extensions; do
7031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7032 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7034 break 2
7035 fi
7036 done
7037 done
7038 IFS=$as_save_IFS
7039
7040 fi
7041 fi
7042 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7043 if test -n "$ac_ct_MANIFEST_TOOL"; then
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7045 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7046 else
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7048 $as_echo "no" >&6; }
7049 fi
7050
7051 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7052 MANIFEST_TOOL=":"
7053 else
7054 case $cross_compiling:$ac_tool_warned in
7055 yes:)
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7057 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7058 ac_tool_warned=yes ;;
7059 esac
7060 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7061 fi
7062 else
7063 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7064 fi
7065
7066 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7068 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7069 if ${lt_cv_path_mainfest_tool+:} false; then :
7070 $as_echo_n "(cached) " >&6
7071 else
7072 lt_cv_path_mainfest_tool=no
7073 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7074 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7075 cat conftest.err >&5
7076 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7077 lt_cv_path_mainfest_tool=yes
7078 fi
7079 rm -f conftest*
7080 fi
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7082 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7083 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7084 MANIFEST_TOOL=:
7085 fi
7086
7087
7088
7089
7090
7091
7092 case $host_os in
7093 rhapsody* | darwin*)
7094 if test -n "$ac_tool_prefix"; then
7095 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7096 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7098 $as_echo_n "checking for $ac_word... " >&6; }
7099 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7100 $as_echo_n "(cached) " >&6
7101 else
7102 if test -n "$DSYMUTIL"; then
7103 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7104 else
7105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106 for as_dir in $PATH
7107 do
7108 IFS=$as_save_IFS
7109 test -z "$as_dir" && as_dir=.
7110 for ac_exec_ext in '' $ac_executable_extensions; do
7111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7112 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7114 break 2
7115 fi
7116 done
7117 done
7118 IFS=$as_save_IFS
7119
7120 fi
7121 fi
7122 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7123 if test -n "$DSYMUTIL"; then
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7125 $as_echo "$DSYMUTIL" >&6; }
7126 else
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7128 $as_echo "no" >&6; }
7129 fi
7130
7131
7132 fi
7133 if test -z "$ac_cv_prog_DSYMUTIL"; then
7134 ac_ct_DSYMUTIL=$DSYMUTIL
7135 # Extract the first word of "dsymutil", so it can be a program name with args.
7136 set dummy dsymutil; ac_word=$2
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7138 $as_echo_n "checking for $ac_word... " >&6; }
7139 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7140 $as_echo_n "(cached) " >&6
7141 else
7142 if test -n "$ac_ct_DSYMUTIL"; then
7143 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7144 else
7145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146 for as_dir in $PATH
7147 do
7148 IFS=$as_save_IFS
7149 test -z "$as_dir" && as_dir=.
7150 for ac_exec_ext in '' $ac_executable_extensions; do
7151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7152 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7154 break 2
7155 fi
7156 done
7157 done
7158 IFS=$as_save_IFS
7159
7160 fi
7161 fi
7162 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7163 if test -n "$ac_ct_DSYMUTIL"; then
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7165 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7166 else
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168 $as_echo "no" >&6; }
7169 fi
7170
7171 if test "x$ac_ct_DSYMUTIL" = x; then
7172 DSYMUTIL=":"
7173 else
7174 case $cross_compiling:$ac_tool_warned in
7175 yes:)
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7178 ac_tool_warned=yes ;;
7179 esac
7180 DSYMUTIL=$ac_ct_DSYMUTIL
7181 fi
7182 else
7183 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7184 fi
7185
7186 if test -n "$ac_tool_prefix"; then
7187 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7188 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7190 $as_echo_n "checking for $ac_word... " >&6; }
7191 if ${ac_cv_prog_NMEDIT+:} false; then :
7192 $as_echo_n "(cached) " >&6
7193 else
7194 if test -n "$NMEDIT"; then
7195 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7196 else
7197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198 for as_dir in $PATH
7199 do
7200 IFS=$as_save_IFS
7201 test -z "$as_dir" && as_dir=.
7202 for ac_exec_ext in '' $ac_executable_extensions; do
7203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7204 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7206 break 2
7207 fi
7208 done
7209 done
7210 IFS=$as_save_IFS
7211
7212 fi
7213 fi
7214 NMEDIT=$ac_cv_prog_NMEDIT
7215 if test -n "$NMEDIT"; then
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7217 $as_echo "$NMEDIT" >&6; }
7218 else
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7220 $as_echo "no" >&6; }
7221 fi
7222
7223
7224 fi
7225 if test -z "$ac_cv_prog_NMEDIT"; then
7226 ac_ct_NMEDIT=$NMEDIT
7227 # Extract the first word of "nmedit", so it can be a program name with args.
7228 set dummy nmedit; ac_word=$2
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7230 $as_echo_n "checking for $ac_word... " >&6; }
7231 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7232 $as_echo_n "(cached) " >&6
7233 else
7234 if test -n "$ac_ct_NMEDIT"; then
7235 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7236 else
7237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238 for as_dir in $PATH
7239 do
7240 IFS=$as_save_IFS
7241 test -z "$as_dir" && as_dir=.
7242 for ac_exec_ext in '' $ac_executable_extensions; do
7243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7244 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7246 break 2
7247 fi
7248 done
7249 done
7250 IFS=$as_save_IFS
7251
7252 fi
7253 fi
7254 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7255 if test -n "$ac_ct_NMEDIT"; then
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7257 $as_echo "$ac_ct_NMEDIT" >&6; }
7258 else
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7260 $as_echo "no" >&6; }
7261 fi
7262
7263 if test "x$ac_ct_NMEDIT" = x; then
7264 NMEDIT=":"
7265 else
7266 case $cross_compiling:$ac_tool_warned in
7267 yes:)
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7270 ac_tool_warned=yes ;;
7271 esac
7272 NMEDIT=$ac_ct_NMEDIT
7273 fi
7274 else
7275 NMEDIT="$ac_cv_prog_NMEDIT"
7276 fi
7277
7278 if test -n "$ac_tool_prefix"; then
7279 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7280 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7282 $as_echo_n "checking for $ac_word... " >&6; }
7283 if ${ac_cv_prog_LIPO+:} false; then :
7284 $as_echo_n "(cached) " >&6
7285 else
7286 if test -n "$LIPO"; then
7287 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7288 else
7289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7290 for as_dir in $PATH
7291 do
7292 IFS=$as_save_IFS
7293 test -z "$as_dir" && as_dir=.
7294 for ac_exec_ext in '' $ac_executable_extensions; do
7295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7296 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7298 break 2
7299 fi
7300 done
7301 done
7302 IFS=$as_save_IFS
7303
7304 fi
7305 fi
7306 LIPO=$ac_cv_prog_LIPO
7307 if test -n "$LIPO"; then
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7309 $as_echo "$LIPO" >&6; }
7310 else
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7312 $as_echo "no" >&6; }
7313 fi
7314
7315
7316 fi
7317 if test -z "$ac_cv_prog_LIPO"; then
7318 ac_ct_LIPO=$LIPO
7319 # Extract the first word of "lipo", so it can be a program name with args.
7320 set dummy lipo; ac_word=$2
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7322 $as_echo_n "checking for $ac_word... " >&6; }
7323 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7324 $as_echo_n "(cached) " >&6
7325 else
7326 if test -n "$ac_ct_LIPO"; then
7327 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7328 else
7329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7330 for as_dir in $PATH
7331 do
7332 IFS=$as_save_IFS
7333 test -z "$as_dir" && as_dir=.
7334 for ac_exec_ext in '' $ac_executable_extensions; do
7335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7336 ac_cv_prog_ac_ct_LIPO="lipo"
7337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7338 break 2
7339 fi
7340 done
7341 done
7342 IFS=$as_save_IFS
7343
7344 fi
7345 fi
7346 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7347 if test -n "$ac_ct_LIPO"; then
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7349 $as_echo "$ac_ct_LIPO" >&6; }
7350 else
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7352 $as_echo "no" >&6; }
7353 fi
7354
7355 if test "x$ac_ct_LIPO" = x; then
7356 LIPO=":"
7357 else
7358 case $cross_compiling:$ac_tool_warned in
7359 yes:)
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7361 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7362 ac_tool_warned=yes ;;
7363 esac
7364 LIPO=$ac_ct_LIPO
7365 fi
7366 else
7367 LIPO="$ac_cv_prog_LIPO"
7368 fi
7369
7370 if test -n "$ac_tool_prefix"; then
7371 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7372 set dummy ${ac_tool_prefix}otool; ac_word=$2
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7374 $as_echo_n "checking for $ac_word... " >&6; }
7375 if ${ac_cv_prog_OTOOL+:} false; then :
7376 $as_echo_n "(cached) " >&6
7377 else
7378 if test -n "$OTOOL"; then
7379 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7380 else
7381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7382 for as_dir in $PATH
7383 do
7384 IFS=$as_save_IFS
7385 test -z "$as_dir" && as_dir=.
7386 for ac_exec_ext in '' $ac_executable_extensions; do
7387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7388 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7390 break 2
7391 fi
7392 done
7393 done
7394 IFS=$as_save_IFS
7395
7396 fi
7397 fi
7398 OTOOL=$ac_cv_prog_OTOOL
7399 if test -n "$OTOOL"; then
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7401 $as_echo "$OTOOL" >&6; }
7402 else
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7404 $as_echo "no" >&6; }
7405 fi
7406
7407
7408 fi
7409 if test -z "$ac_cv_prog_OTOOL"; then
7410 ac_ct_OTOOL=$OTOOL
7411 # Extract the first word of "otool", so it can be a program name with args.
7412 set dummy otool; ac_word=$2
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7414 $as_echo_n "checking for $ac_word... " >&6; }
7415 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7416 $as_echo_n "(cached) " >&6
7417 else
7418 if test -n "$ac_ct_OTOOL"; then
7419 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7420 else
7421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7422 for as_dir in $PATH
7423 do
7424 IFS=$as_save_IFS
7425 test -z "$as_dir" && as_dir=.
7426 for ac_exec_ext in '' $ac_executable_extensions; do
7427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7428 ac_cv_prog_ac_ct_OTOOL="otool"
7429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7430 break 2
7431 fi
7432 done
7433 done
7434 IFS=$as_save_IFS
7435
7436 fi
7437 fi
7438 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7439 if test -n "$ac_ct_OTOOL"; then
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7441 $as_echo "$ac_ct_OTOOL" >&6; }
7442 else
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7444 $as_echo "no" >&6; }
7445 fi
7446
7447 if test "x$ac_ct_OTOOL" = x; then
7448 OTOOL=":"
7449 else
7450 case $cross_compiling:$ac_tool_warned in
7451 yes:)
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7453 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7454 ac_tool_warned=yes ;;
7455 esac
7456 OTOOL=$ac_ct_OTOOL
7457 fi
7458 else
7459 OTOOL="$ac_cv_prog_OTOOL"
7460 fi
7461
7462 if test -n "$ac_tool_prefix"; then
7463 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7464 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7466 $as_echo_n "checking for $ac_word... " >&6; }
7467 if ${ac_cv_prog_OTOOL64+:} false; then :
7468 $as_echo_n "(cached) " >&6
7469 else
7470 if test -n "$OTOOL64"; then
7471 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7472 else
7473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7474 for as_dir in $PATH
7475 do
7476 IFS=$as_save_IFS
7477 test -z "$as_dir" && as_dir=.
7478 for ac_exec_ext in '' $ac_executable_extensions; do
7479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7480 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7482 break 2
7483 fi
7484 done
7485 done
7486 IFS=$as_save_IFS
7487
7488 fi
7489 fi
7490 OTOOL64=$ac_cv_prog_OTOOL64
7491 if test -n "$OTOOL64"; then
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7493 $as_echo "$OTOOL64" >&6; }
7494 else
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7496 $as_echo "no" >&6; }
7497 fi
7498
7499
7500 fi
7501 if test -z "$ac_cv_prog_OTOOL64"; then
7502 ac_ct_OTOOL64=$OTOOL64
7503 # Extract the first word of "otool64", so it can be a program name with args.
7504 set dummy otool64; ac_word=$2
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7506 $as_echo_n "checking for $ac_word... " >&6; }
7507 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7508 $as_echo_n "(cached) " >&6
7509 else
7510 if test -n "$ac_ct_OTOOL64"; then
7511 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7512 else
7513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7514 for as_dir in $PATH
7515 do
7516 IFS=$as_save_IFS
7517 test -z "$as_dir" && as_dir=.
7518 for ac_exec_ext in '' $ac_executable_extensions; do
7519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7520 ac_cv_prog_ac_ct_OTOOL64="otool64"
7521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7522 break 2
7523 fi
7524 done
7525 done
7526 IFS=$as_save_IFS
7527
7528 fi
7529 fi
7530 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7531 if test -n "$ac_ct_OTOOL64"; then
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7533 $as_echo "$ac_ct_OTOOL64" >&6; }
7534 else
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7536 $as_echo "no" >&6; }
7537 fi
7538
7539 if test "x$ac_ct_OTOOL64" = x; then
7540 OTOOL64=":"
7541 else
7542 case $cross_compiling:$ac_tool_warned in
7543 yes:)
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7546 ac_tool_warned=yes ;;
7547 esac
7548 OTOOL64=$ac_ct_OTOOL64
7549 fi
7550 else
7551 OTOOL64="$ac_cv_prog_OTOOL64"
7552 fi
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7581 $as_echo_n "checking for -single_module linker flag... " >&6; }
7582 if ${lt_cv_apple_cc_single_mod+:} false; then :
7583 $as_echo_n "(cached) " >&6
7584 else
7585 lt_cv_apple_cc_single_mod=no
7586 if test -z "${LT_MULTI_MODULE}"; then
7587 # By default we will add the -single_module flag. You can override
7588 # by either setting the environment variable LT_MULTI_MODULE
7589 # non-empty at configure time, or by adding -multi_module to the
7590 # link flags.
7591 rm -rf libconftest.dylib*
7592 echo "int foo(void){return 1;}" > conftest.c
7593 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7594 -dynamiclib -Wl,-single_module conftest.c" >&5
7595 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7596 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7597 _lt_result=$?
7598 # If there is a non-empty error log, and "single_module"
7599 # appears in it, assume the flag caused a linker warning
7600 if test -s conftest.err && $GREP single_module conftest.err; then
7601 cat conftest.err >&5
7602 # Otherwise, if the output was created with a 0 exit code from
7603 # the compiler, it worked.
7604 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7605 lt_cv_apple_cc_single_mod=yes
7606 else
7607 cat conftest.err >&5
7608 fi
7609 rm -rf libconftest.dylib*
7610 rm -f conftest.*
7611 fi
7612 fi
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7614 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7615
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7617 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7618 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7619 $as_echo_n "(cached) " >&6
7620 else
7621 lt_cv_ld_exported_symbols_list=no
7622 save_LDFLAGS=$LDFLAGS
7623 echo "_main" > conftest.sym
7624 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7626 /* end confdefs.h. */
7627
7628 int
7629 main ()
7630 {
7631
7632 ;
7633 return 0;
7634 }
7635 _ACEOF
7636 if ac_fn_c_try_link "$LINENO"; then :
7637 lt_cv_ld_exported_symbols_list=yes
7638 else
7639 lt_cv_ld_exported_symbols_list=no
7640 fi
7641 rm -f core conftest.err conftest.$ac_objext \
7642 conftest$ac_exeext conftest.$ac_ext
7643 LDFLAGS="$save_LDFLAGS"
7644
7645 fi
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7647 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7648
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7650 $as_echo_n "checking for -force_load linker flag... " >&6; }
7651 if ${lt_cv_ld_force_load+:} false; then :
7652 $as_echo_n "(cached) " >&6
7653 else
7654 lt_cv_ld_force_load=no
7655 cat > conftest.c << _LT_EOF
7656 int forced_loaded() { return 2;}
7657 _LT_EOF
7658 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7659 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7660 echo "$AR cru libconftest.a conftest.o" >&5
7661 $AR cru libconftest.a conftest.o 2>&5
7662 echo "$RANLIB libconftest.a" >&5
7663 $RANLIB libconftest.a 2>&5
7664 cat > conftest.c << _LT_EOF
7665 int main() { return 0;}
7666 _LT_EOF
7667 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7668 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7669 _lt_result=$?
7670 if test -s conftest.err && $GREP force_load conftest.err; then
7671 cat conftest.err >&5
7672 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7673 lt_cv_ld_force_load=yes
7674 else
7675 cat conftest.err >&5
7676 fi
7677 rm -f conftest.err libconftest.a conftest conftest.c
7678 rm -rf conftest.dSYM
7679
7680 fi
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7682 $as_echo "$lt_cv_ld_force_load" >&6; }
7683 case $host_os in
7684 rhapsody* | darwin1.[012])
7685 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7686 darwin1.*)
7687 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7688 darwin*) # darwin 5.x on
7689 # if running on 10.5 or later, the deployment target defaults
7690 # to the OS version, if on x86, and 10.4, the deployment
7691 # target defaults to 10.4. Don't you love it?
7692 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7693 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7694 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7695 10.[012]*)
7696 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7697 10.*)
7698 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7699 esac
7700 ;;
7701 esac
7702 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7703 _lt_dar_single_mod='$single_module'
7704 fi
7705 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7706 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7707 else
7708 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7709 fi
7710 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7711 _lt_dsymutil='~$DSYMUTIL $lib || :'
7712 else
7713 _lt_dsymutil=
7714 fi
7715 ;;
7716 esac
7717
7718 ac_ext=c
7719 ac_cpp='$CPP $CPPFLAGS'
7720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7724 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7725 # On Suns, sometimes $CPP names a directory.
7726 if test -n "$CPP" && test -d "$CPP"; then
7727 CPP=
7728 fi
7729 if test -z "$CPP"; then
7730 if ${ac_cv_prog_CPP+:} false; then :
7731 $as_echo_n "(cached) " >&6
7732 else
7733 # Double quotes because CPP needs to be expanded
7734 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7735 do
7736 ac_preproc_ok=false
7737 for ac_c_preproc_warn_flag in '' yes
7738 do
7739 # Use a header file that comes with gcc, so configuring glibc
7740 # with a fresh cross-compiler works.
7741 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7742 # <limits.h> exists even on freestanding compilers.
7743 # On the NeXT, cc -E runs the code through the compiler's parser,
7744 # not just through cpp. "Syntax error" is here to catch this case.
7745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7746 /* end confdefs.h. */
7747 #ifdef __STDC__
7748 # include <limits.h>
7749 #else
7750 # include <assert.h>
7751 #endif
7752 Syntax error
7753 _ACEOF
7754 if ac_fn_c_try_cpp "$LINENO"; then :
7755
7756 else
7757 # Broken: fails on valid input.
7758 continue
7759 fi
7760 rm -f conftest.err conftest.i conftest.$ac_ext
7761
7762 # OK, works on sane cases. Now check whether nonexistent headers
7763 # can be detected and how.
7764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7765 /* end confdefs.h. */
7766 #include <ac_nonexistent.h>
7767 _ACEOF
7768 if ac_fn_c_try_cpp "$LINENO"; then :
7769 # Broken: success on invalid input.
7770 continue
7771 else
7772 # Passes both tests.
7773 ac_preproc_ok=:
7774 break
7775 fi
7776 rm -f conftest.err conftest.i conftest.$ac_ext
7777
7778 done
7779 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7780 rm -f conftest.i conftest.err conftest.$ac_ext
7781 if $ac_preproc_ok; then :
7782 break
7783 fi
7784
7785 done
7786 ac_cv_prog_CPP=$CPP
7787
7788 fi
7789 CPP=$ac_cv_prog_CPP
7790 else
7791 ac_cv_prog_CPP=$CPP
7792 fi
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7794 $as_echo "$CPP" >&6; }
7795 ac_preproc_ok=false
7796 for ac_c_preproc_warn_flag in '' yes
7797 do
7798 # Use a header file that comes with gcc, so configuring glibc
7799 # with a fresh cross-compiler works.
7800 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7801 # <limits.h> exists even on freestanding compilers.
7802 # On the NeXT, cc -E runs the code through the compiler's parser,
7803 # not just through cpp. "Syntax error" is here to catch this case.
7804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7805 /* end confdefs.h. */
7806 #ifdef __STDC__
7807 # include <limits.h>
7808 #else
7809 # include <assert.h>
7810 #endif
7811 Syntax error
7812 _ACEOF
7813 if ac_fn_c_try_cpp "$LINENO"; then :
7814
7815 else
7816 # Broken: fails on valid input.
7817 continue
7818 fi
7819 rm -f conftest.err conftest.i conftest.$ac_ext
7820
7821 # OK, works on sane cases. Now check whether nonexistent headers
7822 # can be detected and how.
7823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7824 /* end confdefs.h. */
7825 #include <ac_nonexistent.h>
7826 _ACEOF
7827 if ac_fn_c_try_cpp "$LINENO"; then :
7828 # Broken: success on invalid input.
7829 continue
7830 else
7831 # Passes both tests.
7832 ac_preproc_ok=:
7833 break
7834 fi
7835 rm -f conftest.err conftest.i conftest.$ac_ext
7836
7837 done
7838 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7839 rm -f conftest.i conftest.err conftest.$ac_ext
7840 if $ac_preproc_ok; then :
7841
7842 else
7843 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7844 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7845 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7846 See \`config.log' for more details" "$LINENO" 5; }
7847 fi
7848
7849 ac_ext=c
7850 ac_cpp='$CPP $CPPFLAGS'
7851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7854
7855
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7857 $as_echo_n "checking for ANSI C header files... " >&6; }
7858 if ${ac_cv_header_stdc+:} false; then :
7859 $as_echo_n "(cached) " >&6
7860 else
7861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7862 /* end confdefs.h. */
7863 #include <stdlib.h>
7864 #include <stdarg.h>
7865 #include <string.h>
7866 #include <float.h>
7867
7868 int
7869 main ()
7870 {
7871
7872 ;
7873 return 0;
7874 }
7875 _ACEOF
7876 if ac_fn_c_try_compile "$LINENO"; then :
7877 ac_cv_header_stdc=yes
7878 else
7879 ac_cv_header_stdc=no
7880 fi
7881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7882
7883 if test $ac_cv_header_stdc = yes; then
7884 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7886 /* end confdefs.h. */
7887 #include <string.h>
7888
7889 _ACEOF
7890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7891 $EGREP "memchr" >/dev/null 2>&1; then :
7892
7893 else
7894 ac_cv_header_stdc=no
7895 fi
7896 rm -f conftest*
7897
7898 fi
7899
7900 if test $ac_cv_header_stdc = yes; then
7901 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7903 /* end confdefs.h. */
7904 #include <stdlib.h>
7905
7906 _ACEOF
7907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7908 $EGREP "free" >/dev/null 2>&1; then :
7909
7910 else
7911 ac_cv_header_stdc=no
7912 fi
7913 rm -f conftest*
7914
7915 fi
7916
7917 if test $ac_cv_header_stdc = yes; then
7918 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7919 if test "$cross_compiling" = yes; then :
7920 :
7921 else
7922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7923 /* end confdefs.h. */
7924 #include <ctype.h>
7925 #include <stdlib.h>
7926 #if ((' ' & 0x0FF) == 0x020)
7927 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7928 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7929 #else
7930 # define ISLOWER(c) \
7931 (('a' <= (c) && (c) <= 'i') \
7932 || ('j' <= (c) && (c) <= 'r') \
7933 || ('s' <= (c) && (c) <= 'z'))
7934 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7935 #endif
7936
7937 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7938 int
7939 main ()
7940 {
7941 int i;
7942 for (i = 0; i < 256; i++)
7943 if (XOR (islower (i), ISLOWER (i))
7944 || toupper (i) != TOUPPER (i))
7945 return 2;
7946 return 0;
7947 }
7948 _ACEOF
7949 if ac_fn_c_try_run "$LINENO"; then :
7950
7951 else
7952 ac_cv_header_stdc=no
7953 fi
7954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7955 conftest.$ac_objext conftest.beam conftest.$ac_ext
7956 fi
7957
7958 fi
7959 fi
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7961 $as_echo "$ac_cv_header_stdc" >&6; }
7962 if test $ac_cv_header_stdc = yes; then
7963
7964 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7965
7966 fi
7967
7968 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7969 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7970 inttypes.h stdint.h unistd.h
7971 do :
7972 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7973 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7974 "
7975 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7976 cat >>confdefs.h <<_ACEOF
7977 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7978 _ACEOF
7979
7980 fi
7981
7982 done
7983
7984
7985 for ac_header in dlfcn.h
7986 do :
7987 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7988 "
7989 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7990 cat >>confdefs.h <<_ACEOF
7991 #define HAVE_DLFCN_H 1
7992 _ACEOF
7993
7994 fi
7995
7996 done
7997
7998
7999
8000
8001
8002 # Set options
8003 enable_dlopen=yes
8004 # Check whether --enable-static was given.
8005 if test "${enable_static+set}" = set; then :
8006 enableval=$enable_static; p=${PACKAGE-default}
8007 case $enableval in
8008 yes) enable_static=yes ;;
8009 no) enable_static=no ;;
8010 *)
8011 enable_static=no
8012 # Look at the argument we got. We use all the common list separators.
8013 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8014 for pkg in $enableval; do
8015 IFS="$lt_save_ifs"
8016 if test "X$pkg" = "X$p"; then
8017 enable_static=yes
8018 fi
8019 done
8020 IFS="$lt_save_ifs"
8021 ;;
8022 esac
8023 else
8024 enable_static=no
8025 fi
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037 enable_win32_dll=no
8038
8039
8040 # Check whether --enable-shared was given.
8041 if test "${enable_shared+set}" = set; then :
8042 enableval=$enable_shared; p=${PACKAGE-default}
8043 case $enableval in
8044 yes) enable_shared=yes ;;
8045 no) enable_shared=no ;;
8046 *)
8047 enable_shared=no
8048 # Look at the argument we got. We use all the common list separators.
8049 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8050 for pkg in $enableval; do
8051 IFS="$lt_save_ifs"
8052 if test "X$pkg" = "X$p"; then
8053 enable_shared=yes
8054 fi
8055 done
8056 IFS="$lt_save_ifs"
8057 ;;
8058 esac
8059 else
8060 enable_shared=yes
8061 fi
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073 # Check whether --with-pic was given.
8074 if test "${with_pic+set}" = set; then :
8075 withval=$with_pic; lt_p=${PACKAGE-default}
8076 case $withval in
8077 yes|no) pic_mode=$withval ;;
8078 *)
8079 pic_mode=default
8080 # Look at the argument we got. We use all the common list separators.
8081 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8082 for lt_pkg in $withval; do
8083 IFS="$lt_save_ifs"
8084 if test "X$lt_pkg" = "X$lt_p"; then
8085 pic_mode=yes
8086 fi
8087 done
8088 IFS="$lt_save_ifs"
8089 ;;
8090 esac
8091 else
8092 pic_mode=default
8093 fi
8094
8095
8096 test -z "$pic_mode" && pic_mode=default
8097
8098
8099
8100
8101
8102
8103
8104 # Check whether --enable-fast-install was given.
8105 if test "${enable_fast_install+set}" = set; then :
8106 enableval=$enable_fast_install; p=${PACKAGE-default}
8107 case $enableval in
8108 yes) enable_fast_install=yes ;;
8109 no) enable_fast_install=no ;;
8110 *)
8111 enable_fast_install=no
8112 # Look at the argument we got. We use all the common list separators.
8113 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8114 for pkg in $enableval; do
8115 IFS="$lt_save_ifs"
8116 if test "X$pkg" = "X$p"; then
8117 enable_fast_install=yes
8118 fi
8119 done
8120 IFS="$lt_save_ifs"
8121 ;;
8122 esac
8123 else
8124 enable_fast_install=yes
8125 fi
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137 # This can be used to rebuild libtool when needed
8138 LIBTOOL_DEPS="$ltmain"
8139
8140 # Always use our own libtool.
8141 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172 test -z "$LN_S" && LN_S="ln -s"
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187 if test -n "${ZSH_VERSION+set}" ; then
8188 setopt NO_GLOB_SUBST
8189 fi
8190
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8192 $as_echo_n "checking for objdir... " >&6; }
8193 if ${lt_cv_objdir+:} false; then :
8194 $as_echo_n "(cached) " >&6
8195 else
8196 rm -f .libs 2>/dev/null
8197 mkdir .libs 2>/dev/null
8198 if test -d .libs; then
8199 lt_cv_objdir=.libs
8200 else
8201 # MS-DOS does not allow filenames that begin with a dot.
8202 lt_cv_objdir=_libs
8203 fi
8204 rmdir .libs 2>/dev/null
8205 fi
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8207 $as_echo "$lt_cv_objdir" >&6; }
8208 objdir=$lt_cv_objdir
8209
8210
8211
8212
8213
8214 cat >>confdefs.h <<_ACEOF
8215 #define LT_OBJDIR "$lt_cv_objdir/"
8216 _ACEOF
8217
8218
8219
8220
8221 case $host_os in
8222 aix3*)
8223 # AIX sometimes has problems with the GCC collect2 program. For some
8224 # reason, if we set the COLLECT_NAMES environment variable, the problems
8225 # vanish in a puff of smoke.
8226 if test "X${COLLECT_NAMES+set}" != Xset; then
8227 COLLECT_NAMES=
8228 export COLLECT_NAMES
8229 fi
8230 ;;
8231 esac
8232
8233 # Global variables:
8234 ofile=libtool
8235 can_build_shared=yes
8236
8237 # All known linkers require a `.a' archive for static linking (except MSVC,
8238 # which needs '.lib').
8239 libext=a
8240
8241 with_gnu_ld="$lt_cv_prog_gnu_ld"
8242
8243 old_CC="$CC"
8244 old_CFLAGS="$CFLAGS"
8245
8246 # Set sane defaults for various variables
8247 test -z "$CC" && CC=cc
8248 test -z "$LTCC" && LTCC=$CC
8249 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8250 test -z "$LD" && LD=ld
8251 test -z "$ac_objext" && ac_objext=o
8252
8253 for cc_temp in $compiler""; do
8254 case $cc_temp in
8255 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8256 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8257 \-*) ;;
8258 *) break;;
8259 esac
8260 done
8261 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8262
8263
8264 # Only perform the check for file, if the check method requires it
8265 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8266 case $deplibs_check_method in
8267 file_magic*)
8268 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8270 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8271 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8272 $as_echo_n "(cached) " >&6
8273 else
8274 case $MAGIC_CMD in
8275 [\\/*] | ?:[\\/]*)
8276 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8277 ;;
8278 *)
8279 lt_save_MAGIC_CMD="$MAGIC_CMD"
8280 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8281 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8282 for ac_dir in $ac_dummy; do
8283 IFS="$lt_save_ifs"
8284 test -z "$ac_dir" && ac_dir=.
8285 if test -f $ac_dir/${ac_tool_prefix}file; then
8286 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8287 if test -n "$file_magic_test_file"; then
8288 case $deplibs_check_method in
8289 "file_magic "*)
8290 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8291 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8292 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8293 $EGREP "$file_magic_regex" > /dev/null; then
8294 :
8295 else
8296 cat <<_LT_EOF 1>&2
8297
8298 *** Warning: the command libtool uses to detect shared libraries,
8299 *** $file_magic_cmd, produces output that libtool cannot recognize.
8300 *** The result is that libtool may fail to recognize shared libraries
8301 *** as such. This will affect the creation of libtool libraries that
8302 *** depend on shared libraries, but programs linked with such libtool
8303 *** libraries will work regardless of this problem. Nevertheless, you
8304 *** may want to report the problem to your system manager and/or to
8305 *** bug-libtool@gnu.org
8306
8307 _LT_EOF
8308 fi ;;
8309 esac
8310 fi
8311 break
8312 fi
8313 done
8314 IFS="$lt_save_ifs"
8315 MAGIC_CMD="$lt_save_MAGIC_CMD"
8316 ;;
8317 esac
8318 fi
8319
8320 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8321 if test -n "$MAGIC_CMD"; then
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8323 $as_echo "$MAGIC_CMD" >&6; }
8324 else
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8326 $as_echo "no" >&6; }
8327 fi
8328
8329
8330
8331
8332
8333 if test -z "$lt_cv_path_MAGIC_CMD"; then
8334 if test -n "$ac_tool_prefix"; then
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8336 $as_echo_n "checking for file... " >&6; }
8337 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8338 $as_echo_n "(cached) " >&6
8339 else
8340 case $MAGIC_CMD in
8341 [\\/*] | ?:[\\/]*)
8342 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8343 ;;
8344 *)
8345 lt_save_MAGIC_CMD="$MAGIC_CMD"
8346 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8347 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8348 for ac_dir in $ac_dummy; do
8349 IFS="$lt_save_ifs"
8350 test -z "$ac_dir" && ac_dir=.
8351 if test -f $ac_dir/file; then
8352 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8353 if test -n "$file_magic_test_file"; then
8354 case $deplibs_check_method in
8355 "file_magic "*)
8356 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8357 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8358 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8359 $EGREP "$file_magic_regex" > /dev/null; then
8360 :
8361 else
8362 cat <<_LT_EOF 1>&2
8363
8364 *** Warning: the command libtool uses to detect shared libraries,
8365 *** $file_magic_cmd, produces output that libtool cannot recognize.
8366 *** The result is that libtool may fail to recognize shared libraries
8367 *** as such. This will affect the creation of libtool libraries that
8368 *** depend on shared libraries, but programs linked with such libtool
8369 *** libraries will work regardless of this problem. Nevertheless, you
8370 *** may want to report the problem to your system manager and/or to
8371 *** bug-libtool@gnu.org
8372
8373 _LT_EOF
8374 fi ;;
8375 esac
8376 fi
8377 break
8378 fi
8379 done
8380 IFS="$lt_save_ifs"
8381 MAGIC_CMD="$lt_save_MAGIC_CMD"
8382 ;;
8383 esac
8384 fi
8385
8386 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8387 if test -n "$MAGIC_CMD"; then
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8389 $as_echo "$MAGIC_CMD" >&6; }
8390 else
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8392 $as_echo "no" >&6; }
8393 fi
8394
8395
8396 else
8397 MAGIC_CMD=:
8398 fi
8399 fi
8400
8401 fi
8402 ;;
8403 esac
8404
8405 # Use C for the default configuration in the libtool script
8406
8407 lt_save_CC="$CC"
8408 ac_ext=c
8409 ac_cpp='$CPP $CPPFLAGS'
8410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8413
8414
8415 # Source file extension for C test sources.
8416 ac_ext=c
8417
8418 # Object file extension for compiled C test sources.
8419 objext=o
8420 objext=$objext
8421
8422 # Code to be used in simple compile tests
8423 lt_simple_compile_test_code="int some_variable = 0;"
8424
8425 # Code to be used in simple link tests
8426 lt_simple_link_test_code='int main(){return(0);}'
8427
8428
8429
8430
8431
8432
8433
8434 # If no C compiler was specified, use CC.
8435 LTCC=${LTCC-"$CC"}
8436
8437 # If no C compiler flags were specified, use CFLAGS.
8438 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8439
8440 # Allow CC to be a program name with arguments.
8441 compiler=$CC
8442
8443 # Save the default compiler, since it gets overwritten when the other
8444 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8445 compiler_DEFAULT=$CC
8446
8447 # save warnings/boilerplate of simple test code
8448 ac_outfile=conftest.$ac_objext
8449 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8450 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8451 _lt_compiler_boilerplate=`cat conftest.err`
8452 $RM conftest*
8453
8454 ac_outfile=conftest.$ac_objext
8455 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8456 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8457 _lt_linker_boilerplate=`cat conftest.err`
8458 $RM -r conftest*
8459
8460
8461 if test -n "$compiler"; then
8462
8463 lt_prog_compiler_no_builtin_flag=
8464
8465 if test "$GCC" = yes; then
8466 case $cc_basename in
8467 nvcc*)
8468 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8469 *)
8470 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8471 esac
8472
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8474 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8475 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8476 $as_echo_n "(cached) " >&6
8477 else
8478 lt_cv_prog_compiler_rtti_exceptions=no
8479 ac_outfile=conftest.$ac_objext
8480 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8481 lt_compiler_flag="-fno-rtti -fno-exceptions"
8482 # Insert the option either (1) after the last *FLAGS variable, or
8483 # (2) before a word containing "conftest.", or (3) at the end.
8484 # Note that $ac_compile itself does not contain backslashes and begins
8485 # with a dollar sign (not a hyphen), so the echo should work correctly.
8486 # The option is referenced via a variable to avoid confusing sed.
8487 lt_compile=`echo "$ac_compile" | $SED \
8488 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8489 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8490 -e 's:$: $lt_compiler_flag:'`
8491 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8492 (eval "$lt_compile" 2>conftest.err)
8493 ac_status=$?
8494 cat conftest.err >&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 if (exit $ac_status) && test -s "$ac_outfile"; then
8497 # The compiler can only warn and ignore the option if not recognized
8498 # So say no if there are warnings other than the usual output.
8499 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8500 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8501 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8502 lt_cv_prog_compiler_rtti_exceptions=yes
8503 fi
8504 fi
8505 $RM conftest*
8506
8507 fi
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8509 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8510
8511 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8512 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8513 else
8514 :
8515 fi
8516
8517 fi
8518
8519
8520
8521
8522
8523
8524 lt_prog_compiler_wl=
8525 lt_prog_compiler_pic=
8526 lt_prog_compiler_static=
8527
8528
8529 if test "$GCC" = yes; then
8530 lt_prog_compiler_wl='-Wl,'
8531 lt_prog_compiler_static='-static'
8532
8533 case $host_os in
8534 aix*)
8535 # All AIX code is PIC.
8536 if test "$host_cpu" = ia64; then
8537 # AIX 5 now supports IA64 processor
8538 lt_prog_compiler_static='-Bstatic'
8539 fi
8540 ;;
8541
8542 amigaos*)
8543 case $host_cpu in
8544 powerpc)
8545 # see comment about AmigaOS4 .so support
8546 lt_prog_compiler_pic='-fPIC'
8547 ;;
8548 m68k)
8549 # FIXME: we need at least 68020 code to build shared libraries, but
8550 # adding the `-m68020' flag to GCC prevents building anything better,
8551 # like `-m68040'.
8552 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8553 ;;
8554 esac
8555 ;;
8556
8557 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8558 # PIC is the default for these OSes.
8559 ;;
8560
8561 mingw* | cygwin* | pw32* | os2* | cegcc*)
8562 # This hack is so that the source file can tell whether it is being
8563 # built for inclusion in a dll (and should export symbols for example).
8564 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8565 # (--disable-auto-import) libraries
8566 lt_prog_compiler_pic='-DDLL_EXPORT'
8567 ;;
8568
8569 darwin* | rhapsody*)
8570 # PIC is the default on this platform
8571 # Common symbols not allowed in MH_DYLIB files
8572 lt_prog_compiler_pic='-fno-common'
8573 ;;
8574
8575 haiku*)
8576 # PIC is the default for Haiku.
8577 # The "-static" flag exists, but is broken.
8578 lt_prog_compiler_static=
8579 ;;
8580
8581 hpux*)
8582 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8583 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8584 # sets the default TLS model and affects inlining.
8585 case $host_cpu in
8586 hppa*64*)
8587 # +Z the default
8588 ;;
8589 *)
8590 lt_prog_compiler_pic='-fPIC'
8591 ;;
8592 esac
8593 ;;
8594
8595 interix[3-9]*)
8596 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8597 # Instead, we relocate shared libraries at runtime.
8598 ;;
8599
8600 msdosdjgpp*)
8601 # Just because we use GCC doesn't mean we suddenly get shared libraries
8602 # on systems that don't support them.
8603 lt_prog_compiler_can_build_shared=no
8604 enable_shared=no
8605 ;;
8606
8607 *nto* | *qnx*)
8608 # QNX uses GNU C++, but need to define -shared option too, otherwise
8609 # it will coredump.
8610 lt_prog_compiler_pic='-fPIC -shared'
8611 ;;
8612
8613 sysv4*MP*)
8614 if test -d /usr/nec; then
8615 lt_prog_compiler_pic=-Kconform_pic
8616 fi
8617 ;;
8618
8619 *)
8620 lt_prog_compiler_pic='-fPIC'
8621 ;;
8622 esac
8623
8624 case $cc_basename in
8625 nvcc*) # Cuda Compiler Driver 2.2
8626 lt_prog_compiler_wl='-Xlinker '
8627 if test -n "$lt_prog_compiler_pic"; then
8628 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8629 fi
8630 ;;
8631 esac
8632 else
8633 # PORTME Check for flag to pass linker flags through the system compiler.
8634 case $host_os in
8635 aix*)
8636 lt_prog_compiler_wl='-Wl,'
8637 if test "$host_cpu" = ia64; then
8638 # AIX 5 now supports IA64 processor
8639 lt_prog_compiler_static='-Bstatic'
8640 else
8641 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8642 fi
8643 ;;
8644
8645 mingw* | cygwin* | pw32* | os2* | cegcc*)
8646 # This hack is so that the source file can tell whether it is being
8647 # built for inclusion in a dll (and should export symbols for example).
8648 lt_prog_compiler_pic='-DDLL_EXPORT'
8649 ;;
8650
8651 hpux9* | hpux10* | hpux11*)
8652 lt_prog_compiler_wl='-Wl,'
8653 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8654 # not for PA HP-UX.
8655 case $host_cpu in
8656 hppa*64*|ia64*)
8657 # +Z the default
8658 ;;
8659 *)
8660 lt_prog_compiler_pic='+Z'
8661 ;;
8662 esac
8663 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8664 lt_prog_compiler_static='${wl}-a ${wl}archive'
8665 ;;
8666
8667 irix5* | irix6* | nonstopux*)
8668 lt_prog_compiler_wl='-Wl,'
8669 # PIC (with -KPIC) is the default.
8670 lt_prog_compiler_static='-non_shared'
8671 ;;
8672
8673 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8674 case $cc_basename in
8675 # old Intel for x86_64 which still supported -KPIC.
8676 ecc*)
8677 lt_prog_compiler_wl='-Wl,'
8678 lt_prog_compiler_pic='-KPIC'
8679 lt_prog_compiler_static='-static'
8680 ;;
8681 # icc used to be incompatible with GCC.
8682 # ICC 10 doesn't accept -KPIC any more.
8683 icc* | ifort*)
8684 lt_prog_compiler_wl='-Wl,'
8685 lt_prog_compiler_pic='-fPIC'
8686 lt_prog_compiler_static='-static'
8687 ;;
8688 # Lahey Fortran 8.1.
8689 lf95*)
8690 lt_prog_compiler_wl='-Wl,'
8691 lt_prog_compiler_pic='--shared'
8692 lt_prog_compiler_static='--static'
8693 ;;
8694 nagfor*)
8695 # NAG Fortran compiler
8696 lt_prog_compiler_wl='-Wl,-Wl,,'
8697 lt_prog_compiler_pic='-PIC'
8698 lt_prog_compiler_static='-Bstatic'
8699 ;;
8700 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8701 # Portland Group compilers (*not* the Pentium gcc compiler,
8702 # which looks to be a dead project)
8703 lt_prog_compiler_wl='-Wl,'
8704 lt_prog_compiler_pic='-fpic'
8705 lt_prog_compiler_static='-Bstatic'
8706 ;;
8707 ccc*)
8708 lt_prog_compiler_wl='-Wl,'
8709 # All Alpha code is PIC.
8710 lt_prog_compiler_static='-non_shared'
8711 ;;
8712 xl* | bgxl* | bgf* | mpixl*)
8713 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8714 lt_prog_compiler_wl='-Wl,'
8715 lt_prog_compiler_pic='-qpic'
8716 lt_prog_compiler_static='-qstaticlink'
8717 ;;
8718 *)
8719 case `$CC -V 2>&1 | sed 5q` in
8720 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8721 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8722 lt_prog_compiler_pic='-KPIC'
8723 lt_prog_compiler_static='-Bstatic'
8724 lt_prog_compiler_wl=''
8725 ;;
8726 *Sun\ F* | *Sun*Fortran*)
8727 lt_prog_compiler_pic='-KPIC'
8728 lt_prog_compiler_static='-Bstatic'
8729 lt_prog_compiler_wl='-Qoption ld '
8730 ;;
8731 *Sun\ C*)
8732 # Sun C 5.9
8733 lt_prog_compiler_pic='-KPIC'
8734 lt_prog_compiler_static='-Bstatic'
8735 lt_prog_compiler_wl='-Wl,'
8736 ;;
8737 *Intel*\ [CF]*Compiler*)
8738 lt_prog_compiler_wl='-Wl,'
8739 lt_prog_compiler_pic='-fPIC'
8740 lt_prog_compiler_static='-static'
8741 ;;
8742 *Portland\ Group*)
8743 lt_prog_compiler_wl='-Wl,'
8744 lt_prog_compiler_pic='-fpic'
8745 lt_prog_compiler_static='-Bstatic'
8746 ;;
8747 esac
8748 ;;
8749 esac
8750 ;;
8751
8752 newsos6)
8753 lt_prog_compiler_pic='-KPIC'
8754 lt_prog_compiler_static='-Bstatic'
8755 ;;
8756
8757 *nto* | *qnx*)
8758 # QNX uses GNU C++, but need to define -shared option too, otherwise
8759 # it will coredump.
8760 lt_prog_compiler_pic='-fPIC -shared'
8761 ;;
8762
8763 osf3* | osf4* | osf5*)
8764 lt_prog_compiler_wl='-Wl,'
8765 # All OSF/1 code is PIC.
8766 lt_prog_compiler_static='-non_shared'
8767 ;;
8768
8769 rdos*)
8770 lt_prog_compiler_static='-non_shared'
8771 ;;
8772
8773 solaris*)
8774 lt_prog_compiler_pic='-KPIC'
8775 lt_prog_compiler_static='-Bstatic'
8776 case $cc_basename in
8777 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8778 lt_prog_compiler_wl='-Qoption ld ';;
8779 *)
8780 lt_prog_compiler_wl='-Wl,';;
8781 esac
8782 ;;
8783
8784 sunos4*)
8785 lt_prog_compiler_wl='-Qoption ld '
8786 lt_prog_compiler_pic='-PIC'
8787 lt_prog_compiler_static='-Bstatic'
8788 ;;
8789
8790 sysv4 | sysv4.2uw2* | sysv4.3*)
8791 lt_prog_compiler_wl='-Wl,'
8792 lt_prog_compiler_pic='-KPIC'
8793 lt_prog_compiler_static='-Bstatic'
8794 ;;
8795
8796 sysv4*MP*)
8797 if test -d /usr/nec ;then
8798 lt_prog_compiler_pic='-Kconform_pic'
8799 lt_prog_compiler_static='-Bstatic'
8800 fi
8801 ;;
8802
8803 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8804 lt_prog_compiler_wl='-Wl,'
8805 lt_prog_compiler_pic='-KPIC'
8806 lt_prog_compiler_static='-Bstatic'
8807 ;;
8808
8809 unicos*)
8810 lt_prog_compiler_wl='-Wl,'
8811 lt_prog_compiler_can_build_shared=no
8812 ;;
8813
8814 uts4*)
8815 lt_prog_compiler_pic='-pic'
8816 lt_prog_compiler_static='-Bstatic'
8817 ;;
8818
8819 *)
8820 lt_prog_compiler_can_build_shared=no
8821 ;;
8822 esac
8823 fi
8824
8825 case $host_os in
8826 # For platforms which do not support PIC, -DPIC is meaningless:
8827 *djgpp*)
8828 lt_prog_compiler_pic=
8829 ;;
8830 *)
8831 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8832 ;;
8833 esac
8834
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8836 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8837 if ${lt_cv_prog_compiler_pic+:} false; then :
8838 $as_echo_n "(cached) " >&6
8839 else
8840 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8841 fi
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8843 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8844 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8845
8846 #
8847 # Check to make sure the PIC flag actually works.
8848 #
8849 if test -n "$lt_prog_compiler_pic"; then
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8851 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8852 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8853 $as_echo_n "(cached) " >&6
8854 else
8855 lt_cv_prog_compiler_pic_works=no
8856 ac_outfile=conftest.$ac_objext
8857 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8858 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8859 # Insert the option either (1) after the last *FLAGS variable, or
8860 # (2) before a word containing "conftest.", or (3) at the end.
8861 # Note that $ac_compile itself does not contain backslashes and begins
8862 # with a dollar sign (not a hyphen), so the echo should work correctly.
8863 # The option is referenced via a variable to avoid confusing sed.
8864 lt_compile=`echo "$ac_compile" | $SED \
8865 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8866 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8867 -e 's:$: $lt_compiler_flag:'`
8868 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8869 (eval "$lt_compile" 2>conftest.err)
8870 ac_status=$?
8871 cat conftest.err >&5
8872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873 if (exit $ac_status) && test -s "$ac_outfile"; then
8874 # The compiler can only warn and ignore the option if not recognized
8875 # So say no if there are warnings other than the usual output.
8876 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8877 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8878 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8879 lt_cv_prog_compiler_pic_works=yes
8880 fi
8881 fi
8882 $RM conftest*
8883
8884 fi
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8886 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8887
8888 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8889 case $lt_prog_compiler_pic in
8890 "" | " "*) ;;
8891 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8892 esac
8893 else
8894 lt_prog_compiler_pic=
8895 lt_prog_compiler_can_build_shared=no
8896 fi
8897
8898 fi
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910 #
8911 # Check to make sure the static flag actually works.
8912 #
8913 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8915 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8916 if ${lt_cv_prog_compiler_static_works+:} false; then :
8917 $as_echo_n "(cached) " >&6
8918 else
8919 lt_cv_prog_compiler_static_works=no
8920 save_LDFLAGS="$LDFLAGS"
8921 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8922 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8923 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8924 # The linker can only warn and ignore the option if not recognized
8925 # So say no if there are warnings
8926 if test -s conftest.err; then
8927 # Append any errors to the config.log.
8928 cat conftest.err 1>&5
8929 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8930 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8931 if diff conftest.exp conftest.er2 >/dev/null; then
8932 lt_cv_prog_compiler_static_works=yes
8933 fi
8934 else
8935 lt_cv_prog_compiler_static_works=yes
8936 fi
8937 fi
8938 $RM -r conftest*
8939 LDFLAGS="$save_LDFLAGS"
8940
8941 fi
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8943 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8944
8945 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8946 :
8947 else
8948 lt_prog_compiler_static=
8949 fi
8950
8951
8952
8953
8954
8955
8956
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8958 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8959 if ${lt_cv_prog_compiler_c_o+:} false; then :
8960 $as_echo_n "(cached) " >&6
8961 else
8962 lt_cv_prog_compiler_c_o=no
8963 $RM -r conftest 2>/dev/null
8964 mkdir conftest
8965 cd conftest
8966 mkdir out
8967 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8968
8969 lt_compiler_flag="-o out/conftest2.$ac_objext"
8970 # Insert the option either (1) after the last *FLAGS variable, or
8971 # (2) before a word containing "conftest.", or (3) at the end.
8972 # Note that $ac_compile itself does not contain backslashes and begins
8973 # with a dollar sign (not a hyphen), so the echo should work correctly.
8974 lt_compile=`echo "$ac_compile" | $SED \
8975 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8976 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8977 -e 's:$: $lt_compiler_flag:'`
8978 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8979 (eval "$lt_compile" 2>out/conftest.err)
8980 ac_status=$?
8981 cat out/conftest.err >&5
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8984 then
8985 # The compiler can only warn and ignore the option if not recognized
8986 # So say no if there are warnings
8987 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8988 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8989 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8990 lt_cv_prog_compiler_c_o=yes
8991 fi
8992 fi
8993 chmod u+w . 2>&5
8994 $RM conftest*
8995 # SGI C++ compiler will create directory out/ii_files/ for
8996 # template instantiation
8997 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8998 $RM out/* && rmdir out
8999 cd ..
9000 $RM -r conftest
9001 $RM conftest*
9002
9003 fi
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9005 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9006
9007
9008
9009
9010
9011
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9013 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9014 if ${lt_cv_prog_compiler_c_o+:} false; then :
9015 $as_echo_n "(cached) " >&6
9016 else
9017 lt_cv_prog_compiler_c_o=no
9018 $RM -r conftest 2>/dev/null
9019 mkdir conftest
9020 cd conftest
9021 mkdir out
9022 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9023
9024 lt_compiler_flag="-o out/conftest2.$ac_objext"
9025 # Insert the option either (1) after the last *FLAGS variable, or
9026 # (2) before a word containing "conftest.", or (3) at the end.
9027 # Note that $ac_compile itself does not contain backslashes and begins
9028 # with a dollar sign (not a hyphen), so the echo should work correctly.
9029 lt_compile=`echo "$ac_compile" | $SED \
9030 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9031 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9032 -e 's:$: $lt_compiler_flag:'`
9033 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9034 (eval "$lt_compile" 2>out/conftest.err)
9035 ac_status=$?
9036 cat out/conftest.err >&5
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9039 then
9040 # The compiler can only warn and ignore the option if not recognized
9041 # So say no if there are warnings
9042 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9043 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9044 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9045 lt_cv_prog_compiler_c_o=yes
9046 fi
9047 fi
9048 chmod u+w . 2>&5
9049 $RM conftest*
9050 # SGI C++ compiler will create directory out/ii_files/ for
9051 # template instantiation
9052 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9053 $RM out/* && rmdir out
9054 cd ..
9055 $RM -r conftest
9056 $RM conftest*
9057
9058 fi
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9060 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9061
9062
9063
9064
9065 hard_links="nottested"
9066 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9067 # do not overwrite the value of need_locks provided by the user
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9069 $as_echo_n "checking if we can lock with hard links... " >&6; }
9070 hard_links=yes
9071 $RM conftest*
9072 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9073 touch conftest.a
9074 ln conftest.a conftest.b 2>&5 || hard_links=no
9075 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9077 $as_echo "$hard_links" >&6; }
9078 if test "$hard_links" = no; then
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9080 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9081 need_locks=warn
9082 fi
9083 else
9084 need_locks=no
9085 fi
9086
9087
9088
9089
9090
9091
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9093 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9094
9095 runpath_var=
9096 allow_undefined_flag=
9097 always_export_symbols=no
9098 archive_cmds=
9099 archive_expsym_cmds=
9100 compiler_needs_object=no
9101 enable_shared_with_static_runtimes=no
9102 export_dynamic_flag_spec=
9103 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9104 hardcode_automatic=no
9105 hardcode_direct=no
9106 hardcode_direct_absolute=no
9107 hardcode_libdir_flag_spec=
9108 hardcode_libdir_separator=
9109 hardcode_minus_L=no
9110 hardcode_shlibpath_var=unsupported
9111 inherit_rpath=no
9112 link_all_deplibs=unknown
9113 module_cmds=
9114 module_expsym_cmds=
9115 old_archive_from_new_cmds=
9116 old_archive_from_expsyms_cmds=
9117 thread_safe_flag_spec=
9118 whole_archive_flag_spec=
9119 # include_expsyms should be a list of space-separated symbols to be *always*
9120 # included in the symbol list
9121 include_expsyms=
9122 # exclude_expsyms can be an extended regexp of symbols to exclude
9123 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9124 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9125 # as well as any symbol that contains `d'.
9126 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9127 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9128 # platforms (ab)use it in PIC code, but their linkers get confused if
9129 # the symbol is explicitly referenced. Since portable code cannot
9130 # rely on this symbol name, it's probably fine to never include it in
9131 # preloaded symbol tables.
9132 # Exclude shared library initialization/finalization symbols.
9133 extract_expsyms_cmds=
9134
9135 case $host_os in
9136 cygwin* | mingw* | pw32* | cegcc*)
9137 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9138 # When not using gcc, we currently assume that we are using
9139 # Microsoft Visual C++.
9140 if test "$GCC" != yes; then
9141 with_gnu_ld=no
9142 fi
9143 ;;
9144 interix*)
9145 # we just hope/assume this is gcc and not c89 (= MSVC++)
9146 with_gnu_ld=yes
9147 ;;
9148 openbsd*)
9149 with_gnu_ld=no
9150 ;;
9151 esac
9152
9153 ld_shlibs=yes
9154
9155 # On some targets, GNU ld is compatible enough with the native linker
9156 # that we're better off using the native interface for both.
9157 lt_use_gnu_ld_interface=no
9158 if test "$with_gnu_ld" = yes; then
9159 case $host_os in
9160 aix*)
9161 # The AIX port of GNU ld has always aspired to compatibility
9162 # with the native linker. However, as the warning in the GNU ld
9163 # block says, versions before 2.19.5* couldn't really create working
9164 # shared libraries, regardless of the interface used.
9165 case `$LD -v 2>&1` in
9166 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9167 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9168 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9169 *)
9170 lt_use_gnu_ld_interface=yes
9171 ;;
9172 esac
9173 ;;
9174 *)
9175 lt_use_gnu_ld_interface=yes
9176 ;;
9177 esac
9178 fi
9179
9180 if test "$lt_use_gnu_ld_interface" = yes; then
9181 # If archive_cmds runs LD, not CC, wlarc should be empty
9182 wlarc='${wl}'
9183
9184 # Set some defaults for GNU ld with shared library support. These
9185 # are reset later if shared libraries are not supported. Putting them
9186 # here allows them to be overridden if necessary.
9187 runpath_var=LD_RUN_PATH
9188 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9189 export_dynamic_flag_spec='${wl}--export-dynamic'
9190 # ancient GNU ld didn't support --whole-archive et. al.
9191 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9192 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9193 else
9194 whole_archive_flag_spec=
9195 fi
9196 supports_anon_versioning=no
9197 case `$LD -v 2>&1` in
9198 *GNU\ gold*) supports_anon_versioning=yes ;;
9199 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9200 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9201 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9202 *\ 2.11.*) ;; # other 2.11 versions
9203 *) supports_anon_versioning=yes ;;
9204 esac
9205
9206 # See if GNU ld supports shared libraries.
9207 case $host_os in
9208 aix[3-9]*)
9209 # On AIX/PPC, the GNU linker is very broken
9210 if test "$host_cpu" != ia64; then
9211 ld_shlibs=no
9212 cat <<_LT_EOF 1>&2
9213
9214 *** Warning: the GNU linker, at least up to release 2.19, is reported
9215 *** to be unable to reliably create shared libraries on AIX.
9216 *** Therefore, libtool is disabling shared libraries support. If you
9217 *** really care for shared libraries, you may want to install binutils
9218 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9219 *** You will then need to restart the configuration process.
9220
9221 _LT_EOF
9222 fi
9223 ;;
9224
9225 amigaos*)
9226 case $host_cpu in
9227 powerpc)
9228 # see comment about AmigaOS4 .so support
9229 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9230 archive_expsym_cmds=''
9231 ;;
9232 m68k)
9233 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)'
9234 hardcode_libdir_flag_spec='-L$libdir'
9235 hardcode_minus_L=yes
9236 ;;
9237 esac
9238 ;;
9239
9240 beos*)
9241 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9242 allow_undefined_flag=unsupported
9243 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9244 # support --undefined. This deserves some investigation. FIXME
9245 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9246 else
9247 ld_shlibs=no
9248 fi
9249 ;;
9250
9251 cygwin* | mingw* | pw32* | cegcc*)
9252 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9253 # as there is no search path for DLLs.
9254 hardcode_libdir_flag_spec='-L$libdir'
9255 export_dynamic_flag_spec='${wl}--export-all-symbols'
9256 allow_undefined_flag=unsupported
9257 always_export_symbols=no
9258 enable_shared_with_static_runtimes=yes
9259 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'
9260 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9261
9262 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9263 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9264 # If the export-symbols file already is a .def file (1st line
9265 # is EXPORTS), use it as is; otherwise, prepend...
9266 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9267 cp $export_symbols $output_objdir/$soname.def;
9268 else
9269 echo EXPORTS > $output_objdir/$soname.def;
9270 cat $export_symbols >> $output_objdir/$soname.def;
9271 fi~
9272 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9273 else
9274 ld_shlibs=no
9275 fi
9276 ;;
9277
9278 haiku*)
9279 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9280 link_all_deplibs=yes
9281 ;;
9282
9283 interix[3-9]*)
9284 hardcode_direct=no
9285 hardcode_shlibpath_var=no
9286 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9287 export_dynamic_flag_spec='${wl}-E'
9288 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9289 # Instead, shared libraries are loaded at an image base (0x10000000 by
9290 # default) and relocated if they conflict, which is a slow very memory
9291 # consuming and fragmenting process. To avoid this, we pick a random,
9292 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9293 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9294 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9295 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'
9296 ;;
9297
9298 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9299 tmp_diet=no
9300 if test "$host_os" = linux-dietlibc; then
9301 case $cc_basename in
9302 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9303 esac
9304 fi
9305 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9306 && test "$tmp_diet" = no
9307 then
9308 tmp_addflag=' $pic_flag'
9309 tmp_sharedflag='-shared'
9310 case $cc_basename,$host_cpu in
9311 pgcc*) # Portland Group C compiler
9312 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'
9313 tmp_addflag=' $pic_flag'
9314 ;;
9315 pgf77* | pgf90* | pgf95* | pgfortran*)
9316 # Portland Group f77 and f90 compilers
9317 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'
9318 tmp_addflag=' $pic_flag -Mnomain' ;;
9319 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9320 tmp_addflag=' -i_dynamic' ;;
9321 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9322 tmp_addflag=' -i_dynamic -nofor_main' ;;
9323 ifc* | ifort*) # Intel Fortran compiler
9324 tmp_addflag=' -nofor_main' ;;
9325 lf95*) # Lahey Fortran 8.1
9326 whole_archive_flag_spec=
9327 tmp_sharedflag='--shared' ;;
9328 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9329 tmp_sharedflag='-qmkshrobj'
9330 tmp_addflag= ;;
9331 nvcc*) # Cuda Compiler Driver 2.2
9332 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'
9333 compiler_needs_object=yes
9334 ;;
9335 esac
9336 case `$CC -V 2>&1 | sed 5q` in
9337 *Sun\ C*) # Sun C 5.9
9338 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'
9339 compiler_needs_object=yes
9340 tmp_sharedflag='-G' ;;
9341 *Sun\ F*) # Sun Fortran 8.3
9342 tmp_sharedflag='-G' ;;
9343 esac
9344 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9345
9346 if test "x$supports_anon_versioning" = xyes; then
9347 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9348 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9349 echo "local: *; };" >> $output_objdir/$libname.ver~
9350 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9351 fi
9352
9353 case $cc_basename in
9354 xlf* | bgf* | bgxlf* | mpixlf*)
9355 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9356 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9357 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9358 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9359 if test "x$supports_anon_versioning" = xyes; then
9360 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9361 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9362 echo "local: *; };" >> $output_objdir/$libname.ver~
9363 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9364 fi
9365 ;;
9366 esac
9367 else
9368 ld_shlibs=no
9369 fi
9370 ;;
9371
9372 netbsd*)
9373 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9374 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9375 wlarc=
9376 else
9377 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9378 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9379 fi
9380 ;;
9381
9382 solaris*)
9383 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9384 ld_shlibs=no
9385 cat <<_LT_EOF 1>&2
9386
9387 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9388 *** create shared libraries on Solaris systems. Therefore, libtool
9389 *** is disabling shared libraries support. We urge you to upgrade GNU
9390 *** binutils to release 2.9.1 or newer. Another option is to modify
9391 *** your PATH or compiler configuration so that the native linker is
9392 *** used, and then restart.
9393
9394 _LT_EOF
9395 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9396 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9397 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9398 else
9399 ld_shlibs=no
9400 fi
9401 ;;
9402
9403 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9404 case `$LD -v 2>&1` in
9405 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9406 ld_shlibs=no
9407 cat <<_LT_EOF 1>&2
9408
9409 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9410 *** reliably create shared libraries on SCO systems. Therefore, libtool
9411 *** is disabling shared libraries support. We urge you to upgrade GNU
9412 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9413 *** your PATH or compiler configuration so that the native linker is
9414 *** used, and then restart.
9415
9416 _LT_EOF
9417 ;;
9418 *)
9419 # For security reasons, it is highly recommended that you always
9420 # use absolute paths for naming shared libraries, and exclude the
9421 # DT_RUNPATH tag from executables and libraries. But doing so
9422 # requires that you compile everything twice, which is a pain.
9423 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9424 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9425 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9426 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9427 else
9428 ld_shlibs=no
9429 fi
9430 ;;
9431 esac
9432 ;;
9433
9434 sunos4*)
9435 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9436 wlarc=
9437 hardcode_direct=yes
9438 hardcode_shlibpath_var=no
9439 ;;
9440
9441 *)
9442 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9443 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9444 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9445 else
9446 ld_shlibs=no
9447 fi
9448 ;;
9449 esac
9450
9451 if test "$ld_shlibs" = no; then
9452 runpath_var=
9453 hardcode_libdir_flag_spec=
9454 export_dynamic_flag_spec=
9455 whole_archive_flag_spec=
9456 fi
9457 else
9458 # PORTME fill in a description of your system's linker (not GNU ld)
9459 case $host_os in
9460 aix3*)
9461 allow_undefined_flag=unsupported
9462 always_export_symbols=yes
9463 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'
9464 # Note: this linker hardcodes the directories in LIBPATH if there
9465 # are no directories specified by -L.
9466 hardcode_minus_L=yes
9467 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9468 # Neither direct hardcoding nor static linking is supported with a
9469 # broken collect2.
9470 hardcode_direct=unsupported
9471 fi
9472 ;;
9473
9474 aix[4-9]*)
9475 if test "$host_cpu" = ia64; then
9476 # On IA64, the linker does run time linking by default, so we don't
9477 # have to do anything special.
9478 aix_use_runtimelinking=no
9479 exp_sym_flag='-Bexport'
9480 no_entry_flag=""
9481 else
9482 # If we're using GNU nm, then we don't want the "-C" option.
9483 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9484 # Also, AIX nm treats weak defined symbols like other global
9485 # defined symbols, whereas GNU nm marks them as "W".
9486 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9487 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'
9488 else
9489 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'
9490 fi
9491 aix_use_runtimelinking=no
9492
9493 # Test if we are trying to use run time linking or normal
9494 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9495 # need to do runtime linking.
9496 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9497 for ld_flag in $LDFLAGS; do
9498 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9499 aix_use_runtimelinking=yes
9500 break
9501 fi
9502 done
9503 ;;
9504 esac
9505
9506 exp_sym_flag='-bexport'
9507 no_entry_flag='-bnoentry'
9508 fi
9509
9510 # When large executables or shared objects are built, AIX ld can
9511 # have problems creating the table of contents. If linking a library
9512 # or program results in "error TOC overflow" add -mminimal-toc to
9513 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9514 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9515
9516 archive_cmds=''
9517 hardcode_direct=yes
9518 hardcode_direct_absolute=yes
9519 hardcode_libdir_separator=':'
9520 link_all_deplibs=yes
9521 file_list_spec='${wl}-f,'
9522
9523 if test "$GCC" = yes; then
9524 case $host_os in aix4.[012]|aix4.[012].*)
9525 # We only want to do this on AIX 4.2 and lower, the check
9526 # below for broken collect2 doesn't work under 4.3+
9527 collect2name=`${CC} -print-prog-name=collect2`
9528 if test -f "$collect2name" &&
9529 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9530 then
9531 # We have reworked collect2
9532 :
9533 else
9534 # We have old collect2
9535 hardcode_direct=unsupported
9536 # It fails to find uninstalled libraries when the uninstalled
9537 # path is not listed in the libpath. Setting hardcode_minus_L
9538 # to unsupported forces relinking
9539 hardcode_minus_L=yes
9540 hardcode_libdir_flag_spec='-L$libdir'
9541 hardcode_libdir_separator=
9542 fi
9543 ;;
9544 esac
9545 shared_flag='-shared'
9546 if test "$aix_use_runtimelinking" = yes; then
9547 shared_flag="$shared_flag "'${wl}-G'
9548 fi
9549 else
9550 # not using gcc
9551 if test "$host_cpu" = ia64; then
9552 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9553 # chokes on -Wl,-G. The following line is correct:
9554 shared_flag='-G'
9555 else
9556 if test "$aix_use_runtimelinking" = yes; then
9557 shared_flag='${wl}-G'
9558 else
9559 shared_flag='${wl}-bM:SRE'
9560 fi
9561 fi
9562 fi
9563
9564 export_dynamic_flag_spec='${wl}-bexpall'
9565 # It seems that -bexpall does not export symbols beginning with
9566 # underscore (_), so it is better to generate a list of symbols to export.
9567 always_export_symbols=yes
9568 if test "$aix_use_runtimelinking" = yes; then
9569 # Warning - without using the other runtime loading flags (-brtl),
9570 # -berok will link without error, but may produce a broken library.
9571 allow_undefined_flag='-berok'
9572 # Determine the default libpath from the value encoded in an
9573 # empty executable.
9574 if test "${lt_cv_aix_libpath+set}" = set; then
9575 aix_libpath=$lt_cv_aix_libpath
9576 else
9577 if ${lt_cv_aix_libpath_+:} false; then :
9578 $as_echo_n "(cached) " >&6
9579 else
9580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9581 /* end confdefs.h. */
9582
9583 int
9584 main ()
9585 {
9586
9587 ;
9588 return 0;
9589 }
9590 _ACEOF
9591 if ac_fn_c_try_link "$LINENO"; then :
9592
9593 lt_aix_libpath_sed='
9594 /Import File Strings/,/^$/ {
9595 /^0/ {
9596 s/^0 *\([^ ]*\) *$/\1/
9597 p
9598 }
9599 }'
9600 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9601 # Check for a 64-bit object if we didn't find anything.
9602 if test -z "$lt_cv_aix_libpath_"; then
9603 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9604 fi
9605 fi
9606 rm -f core conftest.err conftest.$ac_objext \
9607 conftest$ac_exeext conftest.$ac_ext
9608 if test -z "$lt_cv_aix_libpath_"; then
9609 lt_cv_aix_libpath_="/usr/lib:/lib"
9610 fi
9611
9612 fi
9613
9614 aix_libpath=$lt_cv_aix_libpath_
9615 fi
9616
9617 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9618 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"
9619 else
9620 if test "$host_cpu" = ia64; then
9621 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9622 allow_undefined_flag="-z nodefs"
9623 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"
9624 else
9625 # Determine the default libpath from the value encoded in an
9626 # empty executable.
9627 if test "${lt_cv_aix_libpath+set}" = set; then
9628 aix_libpath=$lt_cv_aix_libpath
9629 else
9630 if ${lt_cv_aix_libpath_+:} false; then :
9631 $as_echo_n "(cached) " >&6
9632 else
9633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9634 /* end confdefs.h. */
9635
9636 int
9637 main ()
9638 {
9639
9640 ;
9641 return 0;
9642 }
9643 _ACEOF
9644 if ac_fn_c_try_link "$LINENO"; then :
9645
9646 lt_aix_libpath_sed='
9647 /Import File Strings/,/^$/ {
9648 /^0/ {
9649 s/^0 *\([^ ]*\) *$/\1/
9650 p
9651 }
9652 }'
9653 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9654 # Check for a 64-bit object if we didn't find anything.
9655 if test -z "$lt_cv_aix_libpath_"; then
9656 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9657 fi
9658 fi
9659 rm -f core conftest.err conftest.$ac_objext \
9660 conftest$ac_exeext conftest.$ac_ext
9661 if test -z "$lt_cv_aix_libpath_"; then
9662 lt_cv_aix_libpath_="/usr/lib:/lib"
9663 fi
9664
9665 fi
9666
9667 aix_libpath=$lt_cv_aix_libpath_
9668 fi
9669
9670 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9671 # Warning - without using the other run time loading flags,
9672 # -berok will link without error, but may produce a broken library.
9673 no_undefined_flag=' ${wl}-bernotok'
9674 allow_undefined_flag=' ${wl}-berok'
9675 if test "$with_gnu_ld" = yes; then
9676 # We only use this code for GNU lds that support --whole-archive.
9677 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9678 else
9679 # Exported symbols can be pulled into shared objects from archives
9680 whole_archive_flag_spec='$convenience'
9681 fi
9682 archive_cmds_need_lc=yes
9683 # This is similar to how AIX traditionally builds its shared libraries.
9684 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'
9685 fi
9686 fi
9687 ;;
9688
9689 amigaos*)
9690 case $host_cpu in
9691 powerpc)
9692 # see comment about AmigaOS4 .so support
9693 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9694 archive_expsym_cmds=''
9695 ;;
9696 m68k)
9697 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)'
9698 hardcode_libdir_flag_spec='-L$libdir'
9699 hardcode_minus_L=yes
9700 ;;
9701 esac
9702 ;;
9703
9704 bsdi[45]*)
9705 export_dynamic_flag_spec=-rdynamic
9706 ;;
9707
9708 cygwin* | mingw* | pw32* | cegcc*)
9709 # When not using gcc, we currently assume that we are using
9710 # Microsoft Visual C++.
9711 # hardcode_libdir_flag_spec is actually meaningless, as there is
9712 # no search path for DLLs.
9713 case $cc_basename in
9714 cl*)
9715 # Native MSVC
9716 hardcode_libdir_flag_spec=' '
9717 allow_undefined_flag=unsupported
9718 always_export_symbols=yes
9719 file_list_spec='@'
9720 # Tell ltmain to make .lib files, not .a files.
9721 libext=lib
9722 # Tell ltmain to make .dll files, not .so files.
9723 shrext_cmds=".dll"
9724 # FIXME: Setting linknames here is a bad hack.
9725 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9726 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9727 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9728 else
9729 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9730 fi~
9731 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9732 linknames='
9733 # The linker will not automatically build a static lib if we build a DLL.
9734 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9735 enable_shared_with_static_runtimes=yes
9736 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9737 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9738 # Don't use ranlib
9739 old_postinstall_cmds='chmod 644 $oldlib'
9740 postlink_cmds='lt_outputfile="@OUTPUT@"~
9741 lt_tool_outputfile="@TOOL_OUTPUT@"~
9742 case $lt_outputfile in
9743 *.exe|*.EXE) ;;
9744 *)
9745 lt_outputfile="$lt_outputfile.exe"
9746 lt_tool_outputfile="$lt_tool_outputfile.exe"
9747 ;;
9748 esac~
9749 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9750 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9751 $RM "$lt_outputfile.manifest";
9752 fi'
9753 ;;
9754 *)
9755 # Assume MSVC wrapper
9756 hardcode_libdir_flag_spec=' '
9757 allow_undefined_flag=unsupported
9758 # Tell ltmain to make .lib files, not .a files.
9759 libext=lib
9760 # Tell ltmain to make .dll files, not .so files.
9761 shrext_cmds=".dll"
9762 # FIXME: Setting linknames here is a bad hack.
9763 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9764 # The linker will automatically build a .lib file if we build a DLL.
9765 old_archive_from_new_cmds='true'
9766 # FIXME: Should let the user specify the lib program.
9767 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9768 enable_shared_with_static_runtimes=yes
9769 ;;
9770 esac
9771 ;;
9772
9773 darwin* | rhapsody*)
9774
9775
9776 archive_cmds_need_lc=no
9777 hardcode_direct=no
9778 hardcode_automatic=yes
9779 hardcode_shlibpath_var=unsupported
9780 if test "$lt_cv_ld_force_load" = "yes"; then
9781 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\"`'
9782
9783 else
9784 whole_archive_flag_spec=''
9785 fi
9786 link_all_deplibs=yes
9787 allow_undefined_flag="$_lt_dar_allow_undefined"
9788 case $cc_basename in
9789 ifort*) _lt_dar_can_shared=yes ;;
9790 *) _lt_dar_can_shared=$GCC ;;
9791 esac
9792 if test "$_lt_dar_can_shared" = "yes"; then
9793 output_verbose_link_cmd=func_echo_all
9794 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9795 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9796 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}"
9797 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}"
9798
9799 else
9800 ld_shlibs=no
9801 fi
9802
9803 ;;
9804
9805 dgux*)
9806 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9807 hardcode_libdir_flag_spec='-L$libdir'
9808 hardcode_shlibpath_var=no
9809 ;;
9810
9811 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9812 # support. Future versions do this automatically, but an explicit c++rt0.o
9813 # does not break anything, and helps significantly (at the cost of a little
9814 # extra space).
9815 freebsd2.2*)
9816 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9817 hardcode_libdir_flag_spec='-R$libdir'
9818 hardcode_direct=yes
9819 hardcode_shlibpath_var=no
9820 ;;
9821
9822 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9823 freebsd2.*)
9824 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9825 hardcode_direct=yes
9826 hardcode_minus_L=yes
9827 hardcode_shlibpath_var=no
9828 ;;
9829
9830 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9831 freebsd* | dragonfly*)
9832 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9833 hardcode_libdir_flag_spec='-R$libdir'
9834 hardcode_direct=yes
9835 hardcode_shlibpath_var=no
9836 ;;
9837
9838 hpux9*)
9839 if test "$GCC" = yes; then
9840 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'
9841 else
9842 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'
9843 fi
9844 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9845 hardcode_libdir_separator=:
9846 hardcode_direct=yes
9847
9848 # hardcode_minus_L: Not really in the search PATH,
9849 # but as the default location of the library.
9850 hardcode_minus_L=yes
9851 export_dynamic_flag_spec='${wl}-E'
9852 ;;
9853
9854 hpux10*)
9855 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9856 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9857 else
9858 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9859 fi
9860 if test "$with_gnu_ld" = no; then
9861 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9862 hardcode_libdir_separator=:
9863 hardcode_direct=yes
9864 hardcode_direct_absolute=yes
9865 export_dynamic_flag_spec='${wl}-E'
9866 # hardcode_minus_L: Not really in the search PATH,
9867 # but as the default location of the library.
9868 hardcode_minus_L=yes
9869 fi
9870 ;;
9871
9872 hpux11*)
9873 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9874 case $host_cpu in
9875 hppa*64*)
9876 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9877 ;;
9878 ia64*)
9879 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9880 ;;
9881 *)
9882 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9883 ;;
9884 esac
9885 else
9886 case $host_cpu in
9887 hppa*64*)
9888 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9889 ;;
9890 ia64*)
9891 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9892 ;;
9893 *)
9894
9895 # Older versions of the 11.00 compiler do not understand -b yet
9896 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9898 $as_echo_n "checking if $CC understands -b... " >&6; }
9899 if ${lt_cv_prog_compiler__b+:} false; then :
9900 $as_echo_n "(cached) " >&6
9901 else
9902 lt_cv_prog_compiler__b=no
9903 save_LDFLAGS="$LDFLAGS"
9904 LDFLAGS="$LDFLAGS -b"
9905 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9906 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9907 # The linker can only warn and ignore the option if not recognized
9908 # So say no if there are warnings
9909 if test -s conftest.err; then
9910 # Append any errors to the config.log.
9911 cat conftest.err 1>&5
9912 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9913 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9914 if diff conftest.exp conftest.er2 >/dev/null; then
9915 lt_cv_prog_compiler__b=yes
9916 fi
9917 else
9918 lt_cv_prog_compiler__b=yes
9919 fi
9920 fi
9921 $RM -r conftest*
9922 LDFLAGS="$save_LDFLAGS"
9923
9924 fi
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9926 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9927
9928 if test x"$lt_cv_prog_compiler__b" = xyes; then
9929 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9930 else
9931 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9932 fi
9933
9934 ;;
9935 esac
9936 fi
9937 if test "$with_gnu_ld" = no; then
9938 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9939 hardcode_libdir_separator=:
9940
9941 case $host_cpu in
9942 hppa*64*|ia64*)
9943 hardcode_direct=no
9944 hardcode_shlibpath_var=no
9945 ;;
9946 *)
9947 hardcode_direct=yes
9948 hardcode_direct_absolute=yes
9949 export_dynamic_flag_spec='${wl}-E'
9950
9951 # hardcode_minus_L: Not really in the search PATH,
9952 # but as the default location of the library.
9953 hardcode_minus_L=yes
9954 ;;
9955 esac
9956 fi
9957 ;;
9958
9959 irix5* | irix6* | nonstopux*)
9960 if test "$GCC" = yes; then
9961 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'
9962 # Try to use the -exported_symbol ld option, if it does not
9963 # work, assume that -exports_file does not work either and
9964 # implicitly export all symbols.
9965 # This should be the same for all languages, so no per-tag cache variable.
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9967 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9968 if ${lt_cv_irix_exported_symbol+:} false; then :
9969 $as_echo_n "(cached) " >&6
9970 else
9971 save_LDFLAGS="$LDFLAGS"
9972 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9974 /* end confdefs.h. */
9975 int foo (void) { return 0; }
9976 _ACEOF
9977 if ac_fn_c_try_link "$LINENO"; then :
9978 lt_cv_irix_exported_symbol=yes
9979 else
9980 lt_cv_irix_exported_symbol=no
9981 fi
9982 rm -f core conftest.err conftest.$ac_objext \
9983 conftest$ac_exeext conftest.$ac_ext
9984 LDFLAGS="$save_LDFLAGS"
9985 fi
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9987 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9988 if test "$lt_cv_irix_exported_symbol" = yes; then
9989 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'
9990 fi
9991 else
9992 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'
9993 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'
9994 fi
9995 archive_cmds_need_lc='no'
9996 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9997 hardcode_libdir_separator=:
9998 inherit_rpath=yes
9999 link_all_deplibs=yes
10000 ;;
10001
10002 netbsd*)
10003 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10004 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10005 else
10006 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10007 fi
10008 hardcode_libdir_flag_spec='-R$libdir'
10009 hardcode_direct=yes
10010 hardcode_shlibpath_var=no
10011 ;;
10012
10013 newsos6)
10014 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10015 hardcode_direct=yes
10016 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10017 hardcode_libdir_separator=:
10018 hardcode_shlibpath_var=no
10019 ;;
10020
10021 *nto* | *qnx*)
10022 ;;
10023
10024 openbsd*)
10025 if test -f /usr/libexec/ld.so; then
10026 hardcode_direct=yes
10027 hardcode_shlibpath_var=no
10028 hardcode_direct_absolute=yes
10029 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10030 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10031 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10032 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10033 export_dynamic_flag_spec='${wl}-E'
10034 else
10035 case $host_os in
10036 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10037 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10038 hardcode_libdir_flag_spec='-R$libdir'
10039 ;;
10040 *)
10041 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10042 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10043 ;;
10044 esac
10045 fi
10046 else
10047 ld_shlibs=no
10048 fi
10049 ;;
10050
10051 os2*)
10052 hardcode_libdir_flag_spec='-L$libdir'
10053 hardcode_minus_L=yes
10054 allow_undefined_flag=unsupported
10055 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'
10056 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10057 ;;
10058
10059 osf3*)
10060 if test "$GCC" = yes; then
10061 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10062 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'
10063 else
10064 allow_undefined_flag=' -expect_unresolved \*'
10065 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'
10066 fi
10067 archive_cmds_need_lc='no'
10068 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10069 hardcode_libdir_separator=:
10070 ;;
10071
10072 osf4* | osf5*) # as osf3* with the addition of -msym flag
10073 if test "$GCC" = yes; then
10074 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10075 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'
10076 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10077 else
10078 allow_undefined_flag=' -expect_unresolved \*'
10079 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'
10080 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~
10081 $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'
10082
10083 # Both c and cxx compiler support -rpath directly
10084 hardcode_libdir_flag_spec='-rpath $libdir'
10085 fi
10086 archive_cmds_need_lc='no'
10087 hardcode_libdir_separator=:
10088 ;;
10089
10090 solaris*)
10091 no_undefined_flag=' -z defs'
10092 if test "$GCC" = yes; then
10093 wlarc='${wl}'
10094 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10095 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10096 $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'
10097 else
10098 case `$CC -V 2>&1` in
10099 *"Compilers 5.0"*)
10100 wlarc=''
10101 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10102 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10103 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10104 ;;
10105 *)
10106 wlarc='${wl}'
10107 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10108 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10109 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10110 ;;
10111 esac
10112 fi
10113 hardcode_libdir_flag_spec='-R$libdir'
10114 hardcode_shlibpath_var=no
10115 case $host_os in
10116 solaris2.[0-5] | solaris2.[0-5].*) ;;
10117 *)
10118 # The compiler driver will combine and reorder linker options,
10119 # but understands `-z linker_flag'. GCC discards it without `$wl',
10120 # but is careful enough not to reorder.
10121 # Supported since Solaris 2.6 (maybe 2.5.1?)
10122 if test "$GCC" = yes; then
10123 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10124 else
10125 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10126 fi
10127 ;;
10128 esac
10129 link_all_deplibs=yes
10130 ;;
10131
10132 sunos4*)
10133 if test "x$host_vendor" = xsequent; then
10134 # Use $CC to link under sequent, because it throws in some extra .o
10135 # files that make .init and .fini sections work.
10136 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10137 else
10138 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10139 fi
10140 hardcode_libdir_flag_spec='-L$libdir'
10141 hardcode_direct=yes
10142 hardcode_minus_L=yes
10143 hardcode_shlibpath_var=no
10144 ;;
10145
10146 sysv4)
10147 case $host_vendor in
10148 sni)
10149 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10150 hardcode_direct=yes # is this really true???
10151 ;;
10152 siemens)
10153 ## LD is ld it makes a PLAMLIB
10154 ## CC just makes a GrossModule.
10155 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10156 reload_cmds='$CC -r -o $output$reload_objs'
10157 hardcode_direct=no
10158 ;;
10159 motorola)
10160 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10161 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10162 ;;
10163 esac
10164 runpath_var='LD_RUN_PATH'
10165 hardcode_shlibpath_var=no
10166 ;;
10167
10168 sysv4.3*)
10169 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10170 hardcode_shlibpath_var=no
10171 export_dynamic_flag_spec='-Bexport'
10172 ;;
10173
10174 sysv4*MP*)
10175 if test -d /usr/nec; then
10176 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10177 hardcode_shlibpath_var=no
10178 runpath_var=LD_RUN_PATH
10179 hardcode_runpath_var=yes
10180 ld_shlibs=yes
10181 fi
10182 ;;
10183
10184 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10185 no_undefined_flag='${wl}-z,text'
10186 archive_cmds_need_lc=no
10187 hardcode_shlibpath_var=no
10188 runpath_var='LD_RUN_PATH'
10189
10190 if test "$GCC" = yes; then
10191 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10192 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10193 else
10194 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10195 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10196 fi
10197 ;;
10198
10199 sysv5* | sco3.2v5* | sco5v6*)
10200 # Note: We can NOT use -z defs as we might desire, because we do not
10201 # link with -lc, and that would cause any symbols used from libc to
10202 # always be unresolved, which means just about no library would
10203 # ever link correctly. If we're not using GNU ld we use -z text
10204 # though, which does catch some bad symbols but isn't as heavy-handed
10205 # as -z defs.
10206 no_undefined_flag='${wl}-z,text'
10207 allow_undefined_flag='${wl}-z,nodefs'
10208 archive_cmds_need_lc=no
10209 hardcode_shlibpath_var=no
10210 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10211 hardcode_libdir_separator=':'
10212 link_all_deplibs=yes
10213 export_dynamic_flag_spec='${wl}-Bexport'
10214 runpath_var='LD_RUN_PATH'
10215
10216 if test "$GCC" = yes; then
10217 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10218 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10219 else
10220 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10221 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10222 fi
10223 ;;
10224
10225 uts4*)
10226 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10227 hardcode_libdir_flag_spec='-L$libdir'
10228 hardcode_shlibpath_var=no
10229 ;;
10230
10231 *)
10232 ld_shlibs=no
10233 ;;
10234 esac
10235
10236 if test x$host_vendor = xsni; then
10237 case $host in
10238 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10239 export_dynamic_flag_spec='${wl}-Blargedynsym'
10240 ;;
10241 esac
10242 fi
10243 fi
10244
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10246 $as_echo "$ld_shlibs" >&6; }
10247 test "$ld_shlibs" = no && can_build_shared=no
10248
10249 with_gnu_ld=$with_gnu_ld
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265 #
10266 # Do we need to explicitly link libc?
10267 #
10268 case "x$archive_cmds_need_lc" in
10269 x|xyes)
10270 # Assume -lc should be added
10271 archive_cmds_need_lc=yes
10272
10273 if test "$enable_shared" = yes && test "$GCC" = yes; then
10274 case $archive_cmds in
10275 *'~'*)
10276 # FIXME: we may have to deal with multi-command sequences.
10277 ;;
10278 '$CC '*)
10279 # Test whether the compiler implicitly links with -lc since on some
10280 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10281 # to ld, don't add -lc before -lgcc.
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10283 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10284 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10285 $as_echo_n "(cached) " >&6
10286 else
10287 $RM conftest*
10288 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10289
10290 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10291 (eval $ac_compile) 2>&5
10292 ac_status=$?
10293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10294 test $ac_status = 0; } 2>conftest.err; then
10295 soname=conftest
10296 lib=conftest
10297 libobjs=conftest.$ac_objext
10298 deplibs=
10299 wl=$lt_prog_compiler_wl
10300 pic_flag=$lt_prog_compiler_pic
10301 compiler_flags=-v
10302 linker_flags=-v
10303 verstring=
10304 output_objdir=.
10305 libname=conftest
10306 lt_save_allow_undefined_flag=$allow_undefined_flag
10307 allow_undefined_flag=
10308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10309 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10310 ac_status=$?
10311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10312 test $ac_status = 0; }
10313 then
10314 lt_cv_archive_cmds_need_lc=no
10315 else
10316 lt_cv_archive_cmds_need_lc=yes
10317 fi
10318 allow_undefined_flag=$lt_save_allow_undefined_flag
10319 else
10320 cat conftest.err 1>&5
10321 fi
10322 $RM conftest*
10323
10324 fi
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10326 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10327 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10328 ;;
10329 esac
10330 fi
10331 ;;
10332 esac
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
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10486 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10487
10488 if test "$GCC" = yes; then
10489 case $host_os in
10490 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10491 *) lt_awk_arg="/^libraries:/" ;;
10492 esac
10493 case $host_os in
10494 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10495 *) lt_sed_strip_eq="s,=/,/,g" ;;
10496 esac
10497 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10498 case $lt_search_path_spec in
10499 *\;*)
10500 # if the path contains ";" then we assume it to be the separator
10501 # otherwise default to the standard path separator (i.e. ":") - it is
10502 # assumed that no part of a normal pathname contains ";" but that should
10503 # okay in the real world where ";" in dirpaths is itself problematic.
10504 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10505 ;;
10506 *)
10507 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10508 ;;
10509 esac
10510 # Ok, now we have the path, separated by spaces, we can step through it
10511 # and add multilib dir if necessary.
10512 lt_tmp_lt_search_path_spec=
10513 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10514 for lt_sys_path in $lt_search_path_spec; do
10515 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10516 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10517 else
10518 test -d "$lt_sys_path" && \
10519 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10520 fi
10521 done
10522 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10523 BEGIN {RS=" "; FS="/|\n";} {
10524 lt_foo="";
10525 lt_count=0;
10526 for (lt_i = NF; lt_i > 0; lt_i--) {
10527 if ($lt_i != "" && $lt_i != ".") {
10528 if ($lt_i == "..") {
10529 lt_count++;
10530 } else {
10531 if (lt_count == 0) {
10532 lt_foo="/" $lt_i lt_foo;
10533 } else {
10534 lt_count--;
10535 }
10536 }
10537 }
10538 }
10539 if (lt_foo != "") { lt_freq[lt_foo]++; }
10540 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10541 }'`
10542 # AWK program above erroneously prepends '/' to C:/dos/paths
10543 # for these hosts.
10544 case $host_os in
10545 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10546 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10547 esac
10548 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10549 else
10550 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10551 fi
10552 library_names_spec=
10553 libname_spec='lib$name'
10554 soname_spec=
10555 shrext_cmds=".so"
10556 postinstall_cmds=
10557 postuninstall_cmds=
10558 finish_cmds=
10559 finish_eval=
10560 shlibpath_var=
10561 shlibpath_overrides_runpath=unknown
10562 version_type=none
10563 dynamic_linker="$host_os ld.so"
10564 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10565 need_lib_prefix=unknown
10566 hardcode_into_libs=no
10567
10568 # when you set need_version to no, make sure it does not cause -set_version
10569 # flags to be left without arguments
10570 need_version=unknown
10571
10572 case $host_os in
10573 aix3*)
10574 version_type=linux # correct to gnu/linux during the next big refactor
10575 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10576 shlibpath_var=LIBPATH
10577
10578 # AIX 3 has no versioning support, so we append a major version to the name.
10579 soname_spec='${libname}${release}${shared_ext}$major'
10580 ;;
10581
10582 aix[4-9]*)
10583 version_type=linux # correct to gnu/linux during the next big refactor
10584 need_lib_prefix=no
10585 need_version=no
10586 hardcode_into_libs=yes
10587 if test "$host_cpu" = ia64; then
10588 # AIX 5 supports IA64
10589 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10590 shlibpath_var=LD_LIBRARY_PATH
10591 else
10592 # With GCC up to 2.95.x, collect2 would create an import file
10593 # for dependence libraries. The import file would start with
10594 # the line `#! .'. This would cause the generated library to
10595 # depend on `.', always an invalid library. This was fixed in
10596 # development snapshots of GCC prior to 3.0.
10597 case $host_os in
10598 aix4 | aix4.[01] | aix4.[01].*)
10599 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10600 echo ' yes '
10601 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10602 :
10603 else
10604 can_build_shared=no
10605 fi
10606 ;;
10607 esac
10608 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10609 # soname into executable. Probably we can add versioning support to
10610 # collect2, so additional links can be useful in future.
10611 if test "$aix_use_runtimelinking" = yes; then
10612 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10613 # instead of lib<name>.a to let people know that these are not
10614 # typical AIX shared libraries.
10615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10616 else
10617 # We preserve .a as extension for shared libraries through AIX4.2
10618 # and later when we are not doing run time linking.
10619 library_names_spec='${libname}${release}.a $libname.a'
10620 soname_spec='${libname}${release}${shared_ext}$major'
10621 fi
10622 shlibpath_var=LIBPATH
10623 fi
10624 ;;
10625
10626 amigaos*)
10627 case $host_cpu in
10628 powerpc)
10629 # Since July 2007 AmigaOS4 officially supports .so libraries.
10630 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10632 ;;
10633 m68k)
10634 library_names_spec='$libname.ixlibrary $libname.a'
10635 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10636 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'
10637 ;;
10638 esac
10639 ;;
10640
10641 beos*)
10642 library_names_spec='${libname}${shared_ext}'
10643 dynamic_linker="$host_os ld.so"
10644 shlibpath_var=LIBRARY_PATH
10645 ;;
10646
10647 bsdi[45]*)
10648 version_type=linux # correct to gnu/linux during the next big refactor
10649 need_version=no
10650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10651 soname_spec='${libname}${release}${shared_ext}$major'
10652 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10653 shlibpath_var=LD_LIBRARY_PATH
10654 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10655 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10656 # the default ld.so.conf also contains /usr/contrib/lib and
10657 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10658 # libtool to hard-code these into programs
10659 ;;
10660
10661 cygwin* | mingw* | pw32* | cegcc*)
10662 version_type=windows
10663 shrext_cmds=".dll"
10664 need_version=no
10665 need_lib_prefix=no
10666
10667 case $GCC,$cc_basename in
10668 yes,*)
10669 # gcc
10670 library_names_spec='$libname.dll.a'
10671 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10672 postinstall_cmds='base_file=`basename \${file}`~
10673 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10674 dldir=$destdir/`dirname \$dlpath`~
10675 test -d \$dldir || mkdir -p \$dldir~
10676 $install_prog $dir/$dlname \$dldir/$dlname~
10677 chmod a+x \$dldir/$dlname~
10678 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10679 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10680 fi'
10681 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10682 dlpath=$dir/\$dldll~
10683 $RM \$dlpath'
10684 shlibpath_overrides_runpath=yes
10685
10686 case $host_os in
10687 cygwin*)
10688 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10689 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10690
10691 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10692 ;;
10693 mingw* | cegcc*)
10694 # MinGW DLLs use traditional 'lib' prefix
10695 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10696 ;;
10697 pw32*)
10698 # pw32 DLLs use 'pw' prefix rather than 'lib'
10699 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10700 ;;
10701 esac
10702 dynamic_linker='Win32 ld.exe'
10703 ;;
10704
10705 *,cl*)
10706 # Native MSVC
10707 libname_spec='$name'
10708 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10709 library_names_spec='${libname}.dll.lib'
10710
10711 case $build_os in
10712 mingw*)
10713 sys_lib_search_path_spec=
10714 lt_save_ifs=$IFS
10715 IFS=';'
10716 for lt_path in $LIB
10717 do
10718 IFS=$lt_save_ifs
10719 # Let DOS variable expansion print the short 8.3 style file name.
10720 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10721 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10722 done
10723 IFS=$lt_save_ifs
10724 # Convert to MSYS style.
10725 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10726 ;;
10727 cygwin*)
10728 # Convert to unix form, then to dos form, then back to unix form
10729 # but this time dos style (no spaces!) so that the unix form looks
10730 # like /cygdrive/c/PROGRA~1:/cygdr...
10731 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10732 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10733 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10734 ;;
10735 *)
10736 sys_lib_search_path_spec="$LIB"
10737 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10738 # It is most probably a Windows format PATH.
10739 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10740 else
10741 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10742 fi
10743 # FIXME: find the short name or the path components, as spaces are
10744 # common. (e.g. "Program Files" -> "PROGRA~1")
10745 ;;
10746 esac
10747
10748 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10749 postinstall_cmds='base_file=`basename \${file}`~
10750 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10751 dldir=$destdir/`dirname \$dlpath`~
10752 test -d \$dldir || mkdir -p \$dldir~
10753 $install_prog $dir/$dlname \$dldir/$dlname'
10754 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10755 dlpath=$dir/\$dldll~
10756 $RM \$dlpath'
10757 shlibpath_overrides_runpath=yes
10758 dynamic_linker='Win32 link.exe'
10759 ;;
10760
10761 *)
10762 # Assume MSVC wrapper
10763 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10764 dynamic_linker='Win32 ld.exe'
10765 ;;
10766 esac
10767 # FIXME: first we should search . and the directory the executable is in
10768 shlibpath_var=PATH
10769 ;;
10770
10771 darwin* | rhapsody*)
10772 dynamic_linker="$host_os dyld"
10773 version_type=darwin
10774 need_lib_prefix=no
10775 need_version=no
10776 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10777 soname_spec='${libname}${release}${major}$shared_ext'
10778 shlibpath_overrides_runpath=yes
10779 shlibpath_var=DYLD_LIBRARY_PATH
10780 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10781
10782 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10783 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10784 ;;
10785
10786 dgux*)
10787 version_type=linux # correct to gnu/linux during the next big refactor
10788 need_lib_prefix=no
10789 need_version=no
10790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10791 soname_spec='${libname}${release}${shared_ext}$major'
10792 shlibpath_var=LD_LIBRARY_PATH
10793 ;;
10794
10795 freebsd* | dragonfly*)
10796 # DragonFly does not have aout. When/if they implement a new
10797 # versioning mechanism, adjust this.
10798 if test -x /usr/bin/objformat; then
10799 objformat=`/usr/bin/objformat`
10800 else
10801 case $host_os in
10802 freebsd[23].*) objformat=aout ;;
10803 *) objformat=elf ;;
10804 esac
10805 fi
10806 version_type=freebsd-$objformat
10807 case $version_type in
10808 freebsd-elf*)
10809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10810 need_version=no
10811 need_lib_prefix=no
10812 ;;
10813 freebsd-*)
10814 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10815 need_version=yes
10816 ;;
10817 esac
10818 shlibpath_var=LD_LIBRARY_PATH
10819 case $host_os in
10820 freebsd2.*)
10821 shlibpath_overrides_runpath=yes
10822 ;;
10823 freebsd3.[01]* | freebsdelf3.[01]*)
10824 shlibpath_overrides_runpath=yes
10825 hardcode_into_libs=yes
10826 ;;
10827 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10828 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10829 shlibpath_overrides_runpath=no
10830 hardcode_into_libs=yes
10831 ;;
10832 *) # from 4.6 on, and DragonFly
10833 shlibpath_overrides_runpath=yes
10834 hardcode_into_libs=yes
10835 ;;
10836 esac
10837 ;;
10838
10839 gnu*)
10840 version_type=linux # correct to gnu/linux during the next big refactor
10841 need_lib_prefix=no
10842 need_version=no
10843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10844 soname_spec='${libname}${release}${shared_ext}$major'
10845 shlibpath_var=LD_LIBRARY_PATH
10846 shlibpath_overrides_runpath=no
10847 hardcode_into_libs=yes
10848 ;;
10849
10850 haiku*)
10851 version_type=linux # correct to gnu/linux during the next big refactor
10852 need_lib_prefix=no
10853 need_version=no
10854 dynamic_linker="$host_os runtime_loader"
10855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10856 soname_spec='${libname}${release}${shared_ext}$major'
10857 shlibpath_var=LIBRARY_PATH
10858 shlibpath_overrides_runpath=yes
10859 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10860 hardcode_into_libs=yes
10861 ;;
10862
10863 hpux9* | hpux10* | hpux11*)
10864 # Give a soname corresponding to the major version so that dld.sl refuses to
10865 # link against other versions.
10866 version_type=sunos
10867 need_lib_prefix=no
10868 need_version=no
10869 case $host_cpu in
10870 ia64*)
10871 shrext_cmds='.so'
10872 hardcode_into_libs=yes
10873 dynamic_linker="$host_os dld.so"
10874 shlibpath_var=LD_LIBRARY_PATH
10875 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10877 soname_spec='${libname}${release}${shared_ext}$major'
10878 if test "X$HPUX_IA64_MODE" = X32; then
10879 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10880 else
10881 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10882 fi
10883 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10884 ;;
10885 hppa*64*)
10886 shrext_cmds='.sl'
10887 hardcode_into_libs=yes
10888 dynamic_linker="$host_os dld.sl"
10889 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10890 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10892 soname_spec='${libname}${release}${shared_ext}$major'
10893 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10894 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10895 ;;
10896 *)
10897 shrext_cmds='.sl'
10898 dynamic_linker="$host_os dld.sl"
10899 shlibpath_var=SHLIB_PATH
10900 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10902 soname_spec='${libname}${release}${shared_ext}$major'
10903 ;;
10904 esac
10905 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10906 postinstall_cmds='chmod 555 $lib'
10907 # or fails outright, so override atomically:
10908 install_override_mode=555
10909 ;;
10910
10911 interix[3-9]*)
10912 version_type=linux # correct to gnu/linux during the next big refactor
10913 need_lib_prefix=no
10914 need_version=no
10915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10916 soname_spec='${libname}${release}${shared_ext}$major'
10917 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10918 shlibpath_var=LD_LIBRARY_PATH
10919 shlibpath_overrides_runpath=no
10920 hardcode_into_libs=yes
10921 ;;
10922
10923 irix5* | irix6* | nonstopux*)
10924 case $host_os in
10925 nonstopux*) version_type=nonstopux ;;
10926 *)
10927 if test "$lt_cv_prog_gnu_ld" = yes; then
10928 version_type=linux # correct to gnu/linux during the next big refactor
10929 else
10930 version_type=irix
10931 fi ;;
10932 esac
10933 need_lib_prefix=no
10934 need_version=no
10935 soname_spec='${libname}${release}${shared_ext}$major'
10936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10937 case $host_os in
10938 irix5* | nonstopux*)
10939 libsuff= shlibsuff=
10940 ;;
10941 *)
10942 case $LD in # libtool.m4 will add one of these switches to LD
10943 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10944 libsuff= shlibsuff= libmagic=32-bit;;
10945 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10946 libsuff=32 shlibsuff=N32 libmagic=N32;;
10947 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10948 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10949 *) libsuff= shlibsuff= libmagic=never-match;;
10950 esac
10951 ;;
10952 esac
10953 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10954 shlibpath_overrides_runpath=no
10955 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10956 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10957 hardcode_into_libs=yes
10958 ;;
10959
10960 # No shared lib support for Linux oldld, aout, or coff.
10961 linux*oldld* | linux*aout* | linux*coff*)
10962 dynamic_linker=no
10963 ;;
10964
10965 # This must be glibc/ELF.
10966 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10967 version_type=linux # correct to gnu/linux during the next big refactor
10968 need_lib_prefix=no
10969 need_version=no
10970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10971 soname_spec='${libname}${release}${shared_ext}$major'
10972 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10973 shlibpath_var=LD_LIBRARY_PATH
10974 shlibpath_overrides_runpath=no
10975
10976 # Some binutils ld are patched to set DT_RUNPATH
10977 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10978 $as_echo_n "(cached) " >&6
10979 else
10980 lt_cv_shlibpath_overrides_runpath=no
10981 save_LDFLAGS=$LDFLAGS
10982 save_libdir=$libdir
10983 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10984 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10986 /* end confdefs.h. */
10987
10988 int
10989 main ()
10990 {
10991
10992 ;
10993 return 0;
10994 }
10995 _ACEOF
10996 if ac_fn_c_try_link "$LINENO"; then :
10997 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10998 lt_cv_shlibpath_overrides_runpath=yes
10999 fi
11000 fi
11001 rm -f core conftest.err conftest.$ac_objext \
11002 conftest$ac_exeext conftest.$ac_ext
11003 LDFLAGS=$save_LDFLAGS
11004 libdir=$save_libdir
11005
11006 fi
11007
11008 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11009
11010 # This implies no fast_install, which is unacceptable.
11011 # Some rework will be needed to allow for fast_install
11012 # before this can be enabled.
11013 hardcode_into_libs=yes
11014
11015 # Append ld.so.conf contents to the search path
11016 if test -f /etc/ld.so.conf; then
11017 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' ' '`
11018 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11019 fi
11020
11021 # We used to test for /lib/ld.so.1 and disable shared libraries on
11022 # powerpc, because MkLinux only supported shared libraries with the
11023 # GNU dynamic linker. Since this was broken with cross compilers,
11024 # most powerpc-linux boxes support dynamic linking these days and
11025 # people can always --disable-shared, the test was removed, and we
11026 # assume the GNU/Linux dynamic linker is in use.
11027 dynamic_linker='GNU/Linux ld.so'
11028 ;;
11029
11030 netbsd*)
11031 version_type=sunos
11032 need_lib_prefix=no
11033 need_version=no
11034 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11036 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11037 dynamic_linker='NetBSD (a.out) ld.so'
11038 else
11039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11040 soname_spec='${libname}${release}${shared_ext}$major'
11041 dynamic_linker='NetBSD ld.elf_so'
11042 fi
11043 shlibpath_var=LD_LIBRARY_PATH
11044 shlibpath_overrides_runpath=yes
11045 hardcode_into_libs=yes
11046 ;;
11047
11048 newsos6)
11049 version_type=linux # correct to gnu/linux during the next big refactor
11050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11051 shlibpath_var=LD_LIBRARY_PATH
11052 shlibpath_overrides_runpath=yes
11053 ;;
11054
11055 *nto* | *qnx*)
11056 version_type=qnx
11057 need_lib_prefix=no
11058 need_version=no
11059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11060 soname_spec='${libname}${release}${shared_ext}$major'
11061 shlibpath_var=LD_LIBRARY_PATH
11062 shlibpath_overrides_runpath=no
11063 hardcode_into_libs=yes
11064 dynamic_linker='ldqnx.so'
11065 ;;
11066
11067 openbsd*)
11068 version_type=sunos
11069 sys_lib_dlsearch_path_spec="/usr/lib"
11070 need_lib_prefix=no
11071 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11072 case $host_os in
11073 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11074 *) need_version=no ;;
11075 esac
11076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11077 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11078 shlibpath_var=LD_LIBRARY_PATH
11079 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11080 case $host_os in
11081 openbsd2.[89] | openbsd2.[89].*)
11082 shlibpath_overrides_runpath=no
11083 ;;
11084 *)
11085 shlibpath_overrides_runpath=yes
11086 ;;
11087 esac
11088 else
11089 shlibpath_overrides_runpath=yes
11090 fi
11091 ;;
11092
11093 os2*)
11094 libname_spec='$name'
11095 shrext_cmds=".dll"
11096 need_lib_prefix=no
11097 library_names_spec='$libname${shared_ext} $libname.a'
11098 dynamic_linker='OS/2 ld.exe'
11099 shlibpath_var=LIBPATH
11100 ;;
11101
11102 osf3* | osf4* | osf5*)
11103 version_type=osf
11104 need_lib_prefix=no
11105 need_version=no
11106 soname_spec='${libname}${release}${shared_ext}$major'
11107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11108 shlibpath_var=LD_LIBRARY_PATH
11109 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11110 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11111 ;;
11112
11113 rdos*)
11114 dynamic_linker=no
11115 ;;
11116
11117 solaris*)
11118 version_type=linux # correct to gnu/linux during the next big refactor
11119 need_lib_prefix=no
11120 need_version=no
11121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11122 soname_spec='${libname}${release}${shared_ext}$major'
11123 shlibpath_var=LD_LIBRARY_PATH
11124 shlibpath_overrides_runpath=yes
11125 hardcode_into_libs=yes
11126 # ldd complains unless libraries are executable
11127 postinstall_cmds='chmod +x $lib'
11128 ;;
11129
11130 sunos4*)
11131 version_type=sunos
11132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11133 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11134 shlibpath_var=LD_LIBRARY_PATH
11135 shlibpath_overrides_runpath=yes
11136 if test "$with_gnu_ld" = yes; then
11137 need_lib_prefix=no
11138 fi
11139 need_version=yes
11140 ;;
11141
11142 sysv4 | sysv4.3*)
11143 version_type=linux # correct to gnu/linux during the next big refactor
11144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11145 soname_spec='${libname}${release}${shared_ext}$major'
11146 shlibpath_var=LD_LIBRARY_PATH
11147 case $host_vendor in
11148 sni)
11149 shlibpath_overrides_runpath=no
11150 need_lib_prefix=no
11151 runpath_var=LD_RUN_PATH
11152 ;;
11153 siemens)
11154 need_lib_prefix=no
11155 ;;
11156 motorola)
11157 need_lib_prefix=no
11158 need_version=no
11159 shlibpath_overrides_runpath=no
11160 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11161 ;;
11162 esac
11163 ;;
11164
11165 sysv4*MP*)
11166 if test -d /usr/nec ;then
11167 version_type=linux # correct to gnu/linux during the next big refactor
11168 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11169 soname_spec='$libname${shared_ext}.$major'
11170 shlibpath_var=LD_LIBRARY_PATH
11171 fi
11172 ;;
11173
11174 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11175 version_type=freebsd-elf
11176 need_lib_prefix=no
11177 need_version=no
11178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11179 soname_spec='${libname}${release}${shared_ext}$major'
11180 shlibpath_var=LD_LIBRARY_PATH
11181 shlibpath_overrides_runpath=yes
11182 hardcode_into_libs=yes
11183 if test "$with_gnu_ld" = yes; then
11184 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11185 else
11186 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11187 case $host_os in
11188 sco3.2v5*)
11189 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11190 ;;
11191 esac
11192 fi
11193 sys_lib_dlsearch_path_spec='/usr/lib'
11194 ;;
11195
11196 tpf*)
11197 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11198 version_type=linux # correct to gnu/linux during the next big refactor
11199 need_lib_prefix=no
11200 need_version=no
11201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11202 shlibpath_var=LD_LIBRARY_PATH
11203 shlibpath_overrides_runpath=no
11204 hardcode_into_libs=yes
11205 ;;
11206
11207 uts4*)
11208 version_type=linux # correct to gnu/linux during the next big refactor
11209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11210 soname_spec='${libname}${release}${shared_ext}$major'
11211 shlibpath_var=LD_LIBRARY_PATH
11212 ;;
11213
11214 *)
11215 dynamic_linker=no
11216 ;;
11217 esac
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11219 $as_echo "$dynamic_linker" >&6; }
11220 test "$dynamic_linker" = no && can_build_shared=no
11221
11222 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11223 if test "$GCC" = yes; then
11224 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11225 fi
11226
11227 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11228 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11229 fi
11230 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11231 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11232 fi
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
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11326 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11327 hardcode_action=
11328 if test -n "$hardcode_libdir_flag_spec" ||
11329 test -n "$runpath_var" ||
11330 test "X$hardcode_automatic" = "Xyes" ; then
11331
11332 # We can hardcode non-existent directories.
11333 if test "$hardcode_direct" != no &&
11334 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11335 # have to relink, otherwise we might link with an installed library
11336 # when we should be linking with a yet-to-be-installed one
11337 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11338 test "$hardcode_minus_L" != no; then
11339 # Linking always hardcodes the temporary library directory.
11340 hardcode_action=relink
11341 else
11342 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11343 hardcode_action=immediate
11344 fi
11345 else
11346 # We cannot hardcode anything, or else we can only hardcode existing
11347 # directories.
11348 hardcode_action=unsupported
11349 fi
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11351 $as_echo "$hardcode_action" >&6; }
11352
11353 if test "$hardcode_action" = relink ||
11354 test "$inherit_rpath" = yes; then
11355 # Fast installation is not supported
11356 enable_fast_install=no
11357 elif test "$shlibpath_overrides_runpath" = yes ||
11358 test "$enable_shared" = no; then
11359 # Fast installation is not necessary
11360 enable_fast_install=needless
11361 fi
11362
11363
11364
11365
11366
11367
11368 if test "x$enable_dlopen" != xyes; then
11369 enable_dlopen=unknown
11370 enable_dlopen_self=unknown
11371 enable_dlopen_self_static=unknown
11372 else
11373 lt_cv_dlopen=no
11374 lt_cv_dlopen_libs=
11375
11376 case $host_os in
11377 beos*)
11378 lt_cv_dlopen="load_add_on"
11379 lt_cv_dlopen_libs=
11380 lt_cv_dlopen_self=yes
11381 ;;
11382
11383 mingw* | pw32* | cegcc*)
11384 lt_cv_dlopen="LoadLibrary"
11385 lt_cv_dlopen_libs=
11386 ;;
11387
11388 cygwin*)
11389 lt_cv_dlopen="dlopen"
11390 lt_cv_dlopen_libs=
11391 ;;
11392
11393 darwin*)
11394 # if libdl is installed we need to link against it
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11396 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11397 if ${ac_cv_lib_dl_dlopen+:} false; then :
11398 $as_echo_n "(cached) " >&6
11399 else
11400 ac_check_lib_save_LIBS=$LIBS
11401 LIBS="-ldl $LIBS"
11402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11403 /* end confdefs.h. */
11404
11405 /* Override any GCC internal prototype to avoid an error.
11406 Use char because int might match the return type of a GCC
11407 builtin and then its argument prototype would still apply. */
11408 #ifdef __cplusplus
11409 extern "C"
11410 #endif
11411 char dlopen ();
11412 int
11413 main ()
11414 {
11415 return dlopen ();
11416 ;
11417 return 0;
11418 }
11419 _ACEOF
11420 if ac_fn_c_try_link "$LINENO"; then :
11421 ac_cv_lib_dl_dlopen=yes
11422 else
11423 ac_cv_lib_dl_dlopen=no
11424 fi
11425 rm -f core conftest.err conftest.$ac_objext \
11426 conftest$ac_exeext conftest.$ac_ext
11427 LIBS=$ac_check_lib_save_LIBS
11428 fi
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11430 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11431 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11432 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11433 else
11434
11435 lt_cv_dlopen="dyld"
11436 lt_cv_dlopen_libs=
11437 lt_cv_dlopen_self=yes
11438
11439 fi
11440
11441 ;;
11442
11443 *)
11444 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11445 if test "x$ac_cv_func_shl_load" = xyes; then :
11446 lt_cv_dlopen="shl_load"
11447 else
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11449 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11450 if ${ac_cv_lib_dld_shl_load+:} false; then :
11451 $as_echo_n "(cached) " >&6
11452 else
11453 ac_check_lib_save_LIBS=$LIBS
11454 LIBS="-ldld $LIBS"
11455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11456 /* end confdefs.h. */
11457
11458 /* Override any GCC internal prototype to avoid an error.
11459 Use char because int might match the return type of a GCC
11460 builtin and then its argument prototype would still apply. */
11461 #ifdef __cplusplus
11462 extern "C"
11463 #endif
11464 char shl_load ();
11465 int
11466 main ()
11467 {
11468 return shl_load ();
11469 ;
11470 return 0;
11471 }
11472 _ACEOF
11473 if ac_fn_c_try_link "$LINENO"; then :
11474 ac_cv_lib_dld_shl_load=yes
11475 else
11476 ac_cv_lib_dld_shl_load=no
11477 fi
11478 rm -f core conftest.err conftest.$ac_objext \
11479 conftest$ac_exeext conftest.$ac_ext
11480 LIBS=$ac_check_lib_save_LIBS
11481 fi
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11483 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11484 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11485 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11486 else
11487 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11488 if test "x$ac_cv_func_dlopen" = xyes; then :
11489 lt_cv_dlopen="dlopen"
11490 else
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11492 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11493 if ${ac_cv_lib_dl_dlopen+:} false; then :
11494 $as_echo_n "(cached) " >&6
11495 else
11496 ac_check_lib_save_LIBS=$LIBS
11497 LIBS="-ldl $LIBS"
11498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11499 /* end confdefs.h. */
11500
11501 /* Override any GCC internal prototype to avoid an error.
11502 Use char because int might match the return type of a GCC
11503 builtin and then its argument prototype would still apply. */
11504 #ifdef __cplusplus
11505 extern "C"
11506 #endif
11507 char dlopen ();
11508 int
11509 main ()
11510 {
11511 return dlopen ();
11512 ;
11513 return 0;
11514 }
11515 _ACEOF
11516 if ac_fn_c_try_link "$LINENO"; then :
11517 ac_cv_lib_dl_dlopen=yes
11518 else
11519 ac_cv_lib_dl_dlopen=no
11520 fi
11521 rm -f core conftest.err conftest.$ac_objext \
11522 conftest$ac_exeext conftest.$ac_ext
11523 LIBS=$ac_check_lib_save_LIBS
11524 fi
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11526 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11527 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11528 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11529 else
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11531 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11532 if ${ac_cv_lib_svld_dlopen+:} false; then :
11533 $as_echo_n "(cached) " >&6
11534 else
11535 ac_check_lib_save_LIBS=$LIBS
11536 LIBS="-lsvld $LIBS"
11537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11538 /* end confdefs.h. */
11539
11540 /* Override any GCC internal prototype to avoid an error.
11541 Use char because int might match the return type of a GCC
11542 builtin and then its argument prototype would still apply. */
11543 #ifdef __cplusplus
11544 extern "C"
11545 #endif
11546 char dlopen ();
11547 int
11548 main ()
11549 {
11550 return dlopen ();
11551 ;
11552 return 0;
11553 }
11554 _ACEOF
11555 if ac_fn_c_try_link "$LINENO"; then :
11556 ac_cv_lib_svld_dlopen=yes
11557 else
11558 ac_cv_lib_svld_dlopen=no
11559 fi
11560 rm -f core conftest.err conftest.$ac_objext \
11561 conftest$ac_exeext conftest.$ac_ext
11562 LIBS=$ac_check_lib_save_LIBS
11563 fi
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11565 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11566 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11567 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11568 else
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11570 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11571 if ${ac_cv_lib_dld_dld_link+:} false; then :
11572 $as_echo_n "(cached) " >&6
11573 else
11574 ac_check_lib_save_LIBS=$LIBS
11575 LIBS="-ldld $LIBS"
11576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11577 /* end confdefs.h. */
11578
11579 /* Override any GCC internal prototype to avoid an error.
11580 Use char because int might match the return type of a GCC
11581 builtin and then its argument prototype would still apply. */
11582 #ifdef __cplusplus
11583 extern "C"
11584 #endif
11585 char dld_link ();
11586 int
11587 main ()
11588 {
11589 return dld_link ();
11590 ;
11591 return 0;
11592 }
11593 _ACEOF
11594 if ac_fn_c_try_link "$LINENO"; then :
11595 ac_cv_lib_dld_dld_link=yes
11596 else
11597 ac_cv_lib_dld_dld_link=no
11598 fi
11599 rm -f core conftest.err conftest.$ac_objext \
11600 conftest$ac_exeext conftest.$ac_ext
11601 LIBS=$ac_check_lib_save_LIBS
11602 fi
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11604 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11605 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11606 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11607 fi
11608
11609
11610 fi
11611
11612
11613 fi
11614
11615
11616 fi
11617
11618
11619 fi
11620
11621
11622 fi
11623
11624 ;;
11625 esac
11626
11627 if test "x$lt_cv_dlopen" != xno; then
11628 enable_dlopen=yes
11629 else
11630 enable_dlopen=no
11631 fi
11632
11633 case $lt_cv_dlopen in
11634 dlopen)
11635 save_CPPFLAGS="$CPPFLAGS"
11636 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11637
11638 save_LDFLAGS="$LDFLAGS"
11639 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11640
11641 save_LIBS="$LIBS"
11642 LIBS="$lt_cv_dlopen_libs $LIBS"
11643
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11645 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11646 if ${lt_cv_dlopen_self+:} false; then :
11647 $as_echo_n "(cached) " >&6
11648 else
11649 if test "$cross_compiling" = yes; then :
11650 lt_cv_dlopen_self=cross
11651 else
11652 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11653 lt_status=$lt_dlunknown
11654 cat > conftest.$ac_ext <<_LT_EOF
11655 #line $LINENO "configure"
11656 #include "confdefs.h"
11657
11658 #if HAVE_DLFCN_H
11659 #include <dlfcn.h>
11660 #endif
11661
11662 #include <stdio.h>
11663
11664 #ifdef RTLD_GLOBAL
11665 # define LT_DLGLOBAL RTLD_GLOBAL
11666 #else
11667 # ifdef DL_GLOBAL
11668 # define LT_DLGLOBAL DL_GLOBAL
11669 # else
11670 # define LT_DLGLOBAL 0
11671 # endif
11672 #endif
11673
11674 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11675 find out it does not work in some platform. */
11676 #ifndef LT_DLLAZY_OR_NOW
11677 # ifdef RTLD_LAZY
11678 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11679 # else
11680 # ifdef DL_LAZY
11681 # define LT_DLLAZY_OR_NOW DL_LAZY
11682 # else
11683 # ifdef RTLD_NOW
11684 # define LT_DLLAZY_OR_NOW RTLD_NOW
11685 # else
11686 # ifdef DL_NOW
11687 # define LT_DLLAZY_OR_NOW DL_NOW
11688 # else
11689 # define LT_DLLAZY_OR_NOW 0
11690 # endif
11691 # endif
11692 # endif
11693 # endif
11694 #endif
11695
11696 /* When -fvisbility=hidden is used, assume the code has been annotated
11697 correspondingly for the symbols needed. */
11698 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11699 int fnord () __attribute__((visibility("default")));
11700 #endif
11701
11702 int fnord () { return 42; }
11703 int main ()
11704 {
11705 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11706 int status = $lt_dlunknown;
11707
11708 if (self)
11709 {
11710 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11711 else
11712 {
11713 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11714 else puts (dlerror ());
11715 }
11716 /* dlclose (self); */
11717 }
11718 else
11719 puts (dlerror ());
11720
11721 return status;
11722 }
11723 _LT_EOF
11724 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11725 (eval $ac_link) 2>&5
11726 ac_status=$?
11727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11728 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11729 (./conftest; exit; ) >&5 2>/dev/null
11730 lt_status=$?
11731 case x$lt_status in
11732 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11733 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11734 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11735 esac
11736 else :
11737 # compilation failed
11738 lt_cv_dlopen_self=no
11739 fi
11740 fi
11741 rm -fr conftest*
11742
11743
11744 fi
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11746 $as_echo "$lt_cv_dlopen_self" >&6; }
11747
11748 if test "x$lt_cv_dlopen_self" = xyes; then
11749 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11751 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11752 if ${lt_cv_dlopen_self_static+:} false; then :
11753 $as_echo_n "(cached) " >&6
11754 else
11755 if test "$cross_compiling" = yes; then :
11756 lt_cv_dlopen_self_static=cross
11757 else
11758 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11759 lt_status=$lt_dlunknown
11760 cat > conftest.$ac_ext <<_LT_EOF
11761 #line $LINENO "configure"
11762 #include "confdefs.h"
11763
11764 #if HAVE_DLFCN_H
11765 #include <dlfcn.h>
11766 #endif
11767
11768 #include <stdio.h>
11769
11770 #ifdef RTLD_GLOBAL
11771 # define LT_DLGLOBAL RTLD_GLOBAL
11772 #else
11773 # ifdef DL_GLOBAL
11774 # define LT_DLGLOBAL DL_GLOBAL
11775 # else
11776 # define LT_DLGLOBAL 0
11777 # endif
11778 #endif
11779
11780 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11781 find out it does not work in some platform. */
11782 #ifndef LT_DLLAZY_OR_NOW
11783 # ifdef RTLD_LAZY
11784 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11785 # else
11786 # ifdef DL_LAZY
11787 # define LT_DLLAZY_OR_NOW DL_LAZY
11788 # else
11789 # ifdef RTLD_NOW
11790 # define LT_DLLAZY_OR_NOW RTLD_NOW
11791 # else
11792 # ifdef DL_NOW
11793 # define LT_DLLAZY_OR_NOW DL_NOW
11794 # else
11795 # define LT_DLLAZY_OR_NOW 0
11796 # endif
11797 # endif
11798 # endif
11799 # endif
11800 #endif
11801
11802 /* When -fvisbility=hidden is used, assume the code has been annotated
11803 correspondingly for the symbols needed. */
11804 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11805 int fnord () __attribute__((visibility("default")));
11806 #endif
11807
11808 int fnord () { return 42; }
11809 int main ()
11810 {
11811 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11812 int status = $lt_dlunknown;
11813
11814 if (self)
11815 {
11816 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11817 else
11818 {
11819 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11820 else puts (dlerror ());
11821 }
11822 /* dlclose (self); */
11823 }
11824 else
11825 puts (dlerror ());
11826
11827 return status;
11828 }
11829 _LT_EOF
11830 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11831 (eval $ac_link) 2>&5
11832 ac_status=$?
11833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11834 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11835 (./conftest; exit; ) >&5 2>/dev/null
11836 lt_status=$?
11837 case x$lt_status in
11838 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11839 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11840 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11841 esac
11842 else :
11843 # compilation failed
11844 lt_cv_dlopen_self_static=no
11845 fi
11846 fi
11847 rm -fr conftest*
11848
11849
11850 fi
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11852 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11853 fi
11854
11855 CPPFLAGS="$save_CPPFLAGS"
11856 LDFLAGS="$save_LDFLAGS"
11857 LIBS="$save_LIBS"
11858 ;;
11859 esac
11860
11861 case $lt_cv_dlopen_self in
11862 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11863 *) enable_dlopen_self=unknown ;;
11864 esac
11865
11866 case $lt_cv_dlopen_self_static in
11867 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11868 *) enable_dlopen_self_static=unknown ;;
11869 esac
11870 fi
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888 striplib=
11889 old_striplib=
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11891 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11892 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11893 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11894 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11896 $as_echo "yes" >&6; }
11897 else
11898 # FIXME - insert some real tests, host_os isn't really good enough
11899 case $host_os in
11900 darwin*)
11901 if test -n "$STRIP" ; then
11902 striplib="$STRIP -x"
11903 old_striplib="$STRIP -S"
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11905 $as_echo "yes" >&6; }
11906 else
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11908 $as_echo "no" >&6; }
11909 fi
11910 ;;
11911 *)
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11913 $as_echo "no" >&6; }
11914 ;;
11915 esac
11916 fi
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929 # Report which library types will actually be built
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11931 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11933 $as_echo "$can_build_shared" >&6; }
11934
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11936 $as_echo_n "checking whether to build shared libraries... " >&6; }
11937 test "$can_build_shared" = "no" && enable_shared=no
11938
11939 # On AIX, shared libraries and static libraries use the same namespace, and
11940 # are all built from PIC.
11941 case $host_os in
11942 aix3*)
11943 test "$enable_shared" = yes && enable_static=no
11944 if test -n "$RANLIB"; then
11945 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11946 postinstall_cmds='$RANLIB $lib'
11947 fi
11948 ;;
11949
11950 aix[4-9]*)
11951 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11952 test "$enable_shared" = yes && enable_static=no
11953 fi
11954 ;;
11955 esac
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11957 $as_echo "$enable_shared" >&6; }
11958
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11960 $as_echo_n "checking whether to build static libraries... " >&6; }
11961 # Make sure either enable_shared or enable_static is yes.
11962 test "$enable_shared" = yes || enable_static=yes
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11964 $as_echo "$enable_static" >&6; }
11965
11966
11967
11968
11969 fi
11970 ac_ext=c
11971 ac_cpp='$CPP $CPPFLAGS'
11972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11975
11976 CC="$lt_save_CC"
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992 ac_config_commands="$ac_config_commands libtool"
11993
11994
11995
11996
11997 # Only expand once:
11998
11999
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
12001 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
12002 if ${libltdl_cv_shlibext+:} false; then :
12003 $as_echo_n "(cached) " >&6
12004 else
12005
12006 module=yes
12007 eval libltdl_cv_shlibext=$shrext_cmds
12008 module=no
12009 eval libltdl_cv_shrext=$shrext_cmds
12010
12011 fi
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
12013 $as_echo "$libltdl_cv_shlibext" >&6; }
12014 if test -n "$libltdl_cv_shlibext"; then
12015
12016 cat >>confdefs.h <<_ACEOF
12017 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
12018 _ACEOF
12019
12020 fi
12021 if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
12022
12023 cat >>confdefs.h <<_ACEOF
12024 #define LT_SHARED_EXT "$libltdl_cv_shrext"
12025 _ACEOF
12026
12027 fi
12028
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
12030 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
12031 if ${lt_cv_module_path_var+:} false; then :
12032 $as_echo_n "(cached) " >&6
12033 else
12034 lt_cv_module_path_var="$shlibpath_var"
12035 fi
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
12037 $as_echo "$lt_cv_module_path_var" >&6; }
12038 if test -n "$lt_cv_module_path_var"; then
12039
12040 cat >>confdefs.h <<_ACEOF
12041 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
12042 _ACEOF
12043
12044 fi
12045
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
12047 $as_echo_n "checking for the default library search path... " >&6; }
12048 if ${lt_cv_sys_dlsearch_path+:} false; then :
12049 $as_echo_n "(cached) " >&6
12050 else
12051 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
12052 fi
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
12054 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
12055 if test -n "$lt_cv_sys_dlsearch_path"; then
12056 sys_dlsearch_path=
12057 for dir in $lt_cv_sys_dlsearch_path; do
12058 if test -z "$sys_dlsearch_path"; then
12059 sys_dlsearch_path="$dir"
12060 else
12061 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
12062 fi
12063 done
12064
12065 cat >>confdefs.h <<_ACEOF
12066 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
12067 _ACEOF
12068
12069 fi
12070
12071
12072 LT_DLLOADERS=
12073
12074
12075 ac_ext=c
12076 ac_cpp='$CPP $CPPFLAGS'
12077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12080
12081
12082 LIBADD_DLOPEN=
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12084 $as_echo_n "checking for library containing dlopen... " >&6; }
12085 if ${ac_cv_search_dlopen+:} false; then :
12086 $as_echo_n "(cached) " >&6
12087 else
12088 ac_func_search_save_LIBS=$LIBS
12089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12090 /* end confdefs.h. */
12091
12092 /* Override any GCC internal prototype to avoid an error.
12093 Use char because int might match the return type of a GCC
12094 builtin and then its argument prototype would still apply. */
12095 #ifdef __cplusplus
12096 extern "C"
12097 #endif
12098 char dlopen ();
12099 int
12100 main ()
12101 {
12102 return dlopen ();
12103 ;
12104 return 0;
12105 }
12106 _ACEOF
12107 for ac_lib in '' dl; do
12108 if test -z "$ac_lib"; then
12109 ac_res="none required"
12110 else
12111 ac_res=-l$ac_lib
12112 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12113 fi
12114 if ac_fn_c_try_link "$LINENO"; then :
12115 ac_cv_search_dlopen=$ac_res
12116 fi
12117 rm -f core conftest.err conftest.$ac_objext \
12118 conftest$ac_exeext
12119 if ${ac_cv_search_dlopen+:} false; then :
12120 break
12121 fi
12122 done
12123 if ${ac_cv_search_dlopen+:} false; then :
12124
12125 else
12126 ac_cv_search_dlopen=no
12127 fi
12128 rm conftest.$ac_ext
12129 LIBS=$ac_func_search_save_LIBS
12130 fi
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12132 $as_echo "$ac_cv_search_dlopen" >&6; }
12133 ac_res=$ac_cv_search_dlopen
12134 if test "$ac_res" != no; then :
12135 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12136
12137 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12138
12139 if test "$ac_cv_search_dlopen" != "none required" ; then
12140 LIBADD_DLOPEN="-ldl"
12141 fi
12142 libltdl_cv_lib_dl_dlopen="yes"
12143 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12144 else
12145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12146 /* end confdefs.h. */
12147 #if HAVE_DLFCN_H
12148 # include <dlfcn.h>
12149 #endif
12150
12151 int
12152 main ()
12153 {
12154 dlopen(0, 0);
12155 ;
12156 return 0;
12157 }
12158 _ACEOF
12159 if ac_fn_c_try_link "$LINENO"; then :
12160
12161 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12162
12163 libltdl_cv_func_dlopen="yes"
12164 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12165 else
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12167 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12168 if ${ac_cv_lib_svld_dlopen+:} false; then :
12169 $as_echo_n "(cached) " >&6
12170 else
12171 ac_check_lib_save_LIBS=$LIBS
12172 LIBS="-lsvld $LIBS"
12173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12174 /* end confdefs.h. */
12175
12176 /* Override any GCC internal prototype to avoid an error.
12177 Use char because int might match the return type of a GCC
12178 builtin and then its argument prototype would still apply. */
12179 #ifdef __cplusplus
12180 extern "C"
12181 #endif
12182 char dlopen ();
12183 int
12184 main ()
12185 {
12186 return dlopen ();
12187 ;
12188 return 0;
12189 }
12190 _ACEOF
12191 if ac_fn_c_try_link "$LINENO"; then :
12192 ac_cv_lib_svld_dlopen=yes
12193 else
12194 ac_cv_lib_svld_dlopen=no
12195 fi
12196 rm -f core conftest.err conftest.$ac_objext \
12197 conftest$ac_exeext conftest.$ac_ext
12198 LIBS=$ac_check_lib_save_LIBS
12199 fi
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12201 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12202 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12203
12204 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12205
12206 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
12207 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12208 fi
12209
12210 fi
12211 rm -f core conftest.err conftest.$ac_objext \
12212 conftest$ac_exeext conftest.$ac_ext
12213 fi
12214
12215 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
12216 then
12217 lt_save_LIBS="$LIBS"
12218 LIBS="$LIBS $LIBADD_DLOPEN"
12219 for ac_func in dlerror
12220 do :
12221 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
12222 if test "x$ac_cv_func_dlerror" = xyes; then :
12223 cat >>confdefs.h <<_ACEOF
12224 #define HAVE_DLERROR 1
12225 _ACEOF
12226
12227 fi
12228 done
12229
12230 LIBS="$lt_save_LIBS"
12231 fi
12232
12233
12234 LIBADD_SHL_LOAD=
12235 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12236 if test "x$ac_cv_func_shl_load" = xyes; then :
12237
12238 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12239
12240 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12241 else
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12243 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12244 if ${ac_cv_lib_dld_shl_load+:} false; then :
12245 $as_echo_n "(cached) " >&6
12246 else
12247 ac_check_lib_save_LIBS=$LIBS
12248 LIBS="-ldld $LIBS"
12249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12250 /* end confdefs.h. */
12251
12252 /* Override any GCC internal prototype to avoid an error.
12253 Use char because int might match the return type of a GCC
12254 builtin and then its argument prototype would still apply. */
12255 #ifdef __cplusplus
12256 extern "C"
12257 #endif
12258 char shl_load ();
12259 int
12260 main ()
12261 {
12262 return shl_load ();
12263 ;
12264 return 0;
12265 }
12266 _ACEOF
12267 if ac_fn_c_try_link "$LINENO"; then :
12268 ac_cv_lib_dld_shl_load=yes
12269 else
12270 ac_cv_lib_dld_shl_load=no
12271 fi
12272 rm -f core conftest.err conftest.$ac_objext \
12273 conftest$ac_exeext conftest.$ac_ext
12274 LIBS=$ac_check_lib_save_LIBS
12275 fi
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12277 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12278 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12279
12280 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12281
12282 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12283 LIBADD_SHL_LOAD="-ldld"
12284 fi
12285
12286 fi
12287
12288
12289
12290 case $host_os in
12291 darwin[1567].*)
12292 # We only want this for pre-Mac OS X 10.4.
12293 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
12294 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
12295
12296 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
12297
12298 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
12299 fi
12300
12301 ;;
12302 beos*)
12303 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
12304 ;;
12305 cygwin* | mingw* | os2* | pw32*)
12306 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
12307 "
12308 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
12309 ac_have_decl=1
12310 else
12311 ac_have_decl=0
12312 fi
12313
12314 cat >>confdefs.h <<_ACEOF
12315 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
12316 _ACEOF
12317
12318 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
12319 ;;
12320 esac
12321
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12323 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12324 if ${ac_cv_lib_dld_dld_link+:} false; then :
12325 $as_echo_n "(cached) " >&6
12326 else
12327 ac_check_lib_save_LIBS=$LIBS
12328 LIBS="-ldld $LIBS"
12329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12330 /* end confdefs.h. */
12331
12332 /* Override any GCC internal prototype to avoid an error.
12333 Use char because int might match the return type of a GCC
12334 builtin and then its argument prototype would still apply. */
12335 #ifdef __cplusplus
12336 extern "C"
12337 #endif
12338 char dld_link ();
12339 int
12340 main ()
12341 {
12342 return dld_link ();
12343 ;
12344 return 0;
12345 }
12346 _ACEOF
12347 if ac_fn_c_try_link "$LINENO"; then :
12348 ac_cv_lib_dld_dld_link=yes
12349 else
12350 ac_cv_lib_dld_dld_link=no
12351 fi
12352 rm -f core conftest.err conftest.$ac_objext \
12353 conftest$ac_exeext conftest.$ac_ext
12354 LIBS=$ac_check_lib_save_LIBS
12355 fi
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12357 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12358 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12359
12360 $as_echo "#define HAVE_DLD 1" >>confdefs.h
12361
12362 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
12363 fi
12364
12365
12366
12367
12368 LT_DLPREOPEN=
12369 if test -n "$LT_DLLOADERS"
12370 then
12371 for lt_loader in $LT_DLLOADERS; do
12372 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
12373 done
12374
12375 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
12376
12377 fi
12378
12379
12380 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
12381
12382
12383 ac_ext=c
12384 ac_cpp='$CPP $CPPFLAGS'
12385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12388
12389
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
12391 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
12392 if ${lt_cv_sys_symbol_underscore+:} false; then :
12393 $as_echo_n "(cached) " >&6
12394 else
12395 lt_cv_sys_symbol_underscore=no
12396 cat > conftest.$ac_ext <<_LT_EOF
12397 void nm_test_func(){}
12398 int main(){nm_test_func;return 0;}
12399 _LT_EOF
12400 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12401 (eval $ac_compile) 2>&5
12402 ac_status=$?
12403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12404 test $ac_status = 0; }; then
12405 # Now try to grab the symbols.
12406 ac_nlist=conftest.nm
12407 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
12408 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
12409 ac_status=$?
12410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12411 test $ac_status = 0; } && test -s "$ac_nlist"; then
12412 # See whether the symbols have a leading underscore.
12413 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
12414 lt_cv_sys_symbol_underscore=yes
12415 else
12416 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
12417 :
12418 else
12419 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
12420 fi
12421 fi
12422 else
12423 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
12424 fi
12425 else
12426 echo "configure: failed program was:" >&5
12427 cat conftest.c >&5
12428 fi
12429 rm -rf conftest*
12430
12431 fi
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
12433 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
12434 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
12435
12436
12437 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
12438 if test x"$libltdl_cv_func_dlopen" = xyes ||
12439 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12441 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
12442 if ${libltdl_cv_need_uscore+:} false; then :
12443 $as_echo_n "(cached) " >&6
12444 else
12445 libltdl_cv_need_uscore=unknown
12446 save_LIBS="$LIBS"
12447 LIBS="$LIBS $LIBADD_DLOPEN"
12448 if test "$cross_compiling" = yes; then :
12449 libltdl_cv_need_uscore=cross
12450 else
12451 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12452 lt_status=$lt_dlunknown
12453 cat > conftest.$ac_ext <<_LT_EOF
12454 #line $LINENO "configure"
12455 #include "confdefs.h"
12456
12457 #if HAVE_DLFCN_H
12458 #include <dlfcn.h>
12459 #endif
12460
12461 #include <stdio.h>
12462
12463 #ifdef RTLD_GLOBAL
12464 # define LT_DLGLOBAL RTLD_GLOBAL
12465 #else
12466 # ifdef DL_GLOBAL
12467 # define LT_DLGLOBAL DL_GLOBAL
12468 # else
12469 # define LT_DLGLOBAL 0
12470 # endif
12471 #endif
12472
12473 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12474 find out it does not work in some platform. */
12475 #ifndef LT_DLLAZY_OR_NOW
12476 # ifdef RTLD_LAZY
12477 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12478 # else
12479 # ifdef DL_LAZY
12480 # define LT_DLLAZY_OR_NOW DL_LAZY
12481 # else
12482 # ifdef RTLD_NOW
12483 # define LT_DLLAZY_OR_NOW RTLD_NOW
12484 # else
12485 # ifdef DL_NOW
12486 # define LT_DLLAZY_OR_NOW DL_NOW
12487 # else
12488 # define LT_DLLAZY_OR_NOW 0
12489 # endif
12490 # endif
12491 # endif
12492 # endif
12493 #endif
12494
12495 /* When -fvisbility=hidden is used, assume the code has been annotated
12496 correspondingly for the symbols needed. */
12497 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12498 int fnord () __attribute__((visibility("default")));
12499 #endif
12500
12501 int fnord () { return 42; }
12502 int main ()
12503 {
12504 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12505 int status = $lt_dlunknown;
12506
12507 if (self)
12508 {
12509 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12510 else
12511 {
12512 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12513 else puts (dlerror ());
12514 }
12515 /* dlclose (self); */
12516 }
12517 else
12518 puts (dlerror ());
12519
12520 return status;
12521 }
12522 _LT_EOF
12523 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12524 (eval $ac_link) 2>&5
12525 ac_status=$?
12526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12527 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12528 (./conftest; exit; ) >&5 2>/dev/null
12529 lt_status=$?
12530 case x$lt_status in
12531 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
12532 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
12533 x$lt_dlunknown|x*) ;;
12534 esac
12535 else :
12536 # compilation failed
12537
12538 fi
12539 fi
12540 rm -fr conftest*
12541
12542 LIBS="$save_LIBS"
12543
12544 fi
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
12546 $as_echo "$libltdl_cv_need_uscore" >&6; }
12547 fi
12548 fi
12549
12550 if test x"$libltdl_cv_need_uscore" = xyes; then
12551
12552 $as_echo "#define NEED_USCORE 1" >>confdefs.h
12553
12554 fi
12555
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
12557 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
12558 if ${lt_cv_sys_dlopen_deplibs+:} false; then :
12559 $as_echo_n "(cached) " >&6
12560 else
12561 # PORTME does your system automatically load deplibs for dlopen?
12562 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
12563 # For now, we just catch OSes we know something about -- in the
12564 # future, we'll try test this programmatically.
12565 lt_cv_sys_dlopen_deplibs=unknown
12566 case $host_os in
12567 aix3*|aix4.1.*|aix4.2.*)
12568 # Unknown whether this is true for these versions of AIX, but
12569 # we want this `case' here to explicitly catch those versions.
12570 lt_cv_sys_dlopen_deplibs=unknown
12571 ;;
12572 aix[4-9]*)
12573 lt_cv_sys_dlopen_deplibs=yes
12574 ;;
12575 amigaos*)
12576 case $host_cpu in
12577 powerpc)
12578 lt_cv_sys_dlopen_deplibs=no
12579 ;;
12580 esac
12581 ;;
12582 darwin*)
12583 # Assuming the user has installed a libdl from somewhere, this is true
12584 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
12585 lt_cv_sys_dlopen_deplibs=yes
12586 ;;
12587 freebsd* | dragonfly*)
12588 lt_cv_sys_dlopen_deplibs=yes
12589 ;;
12590 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
12591 # GNU and its variants, using gnu ld.so (Glibc)
12592 lt_cv_sys_dlopen_deplibs=yes
12593 ;;
12594 hpux10*|hpux11*)
12595 lt_cv_sys_dlopen_deplibs=yes
12596 ;;
12597 interix*)
12598 lt_cv_sys_dlopen_deplibs=yes
12599 ;;
12600 irix[12345]*|irix6.[01]*)
12601 # Catch all versions of IRIX before 6.2, and indicate that we don't
12602 # know how it worked for any of those versions.
12603 lt_cv_sys_dlopen_deplibs=unknown
12604 ;;
12605 irix*)
12606 # The case above catches anything before 6.2, and it's known that
12607 # at 6.2 and later dlopen does load deplibs.
12608 lt_cv_sys_dlopen_deplibs=yes
12609 ;;
12610 netbsd*)
12611 lt_cv_sys_dlopen_deplibs=yes
12612 ;;
12613 openbsd*)
12614 lt_cv_sys_dlopen_deplibs=yes
12615 ;;
12616 osf[1234]*)
12617 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
12618 # it did *not* use an RPATH in a shared library to find objects the
12619 # library depends on, so we explicitly say `no'.
12620 lt_cv_sys_dlopen_deplibs=no
12621 ;;
12622 osf5.0|osf5.0a|osf5.1)
12623 # dlopen *does* load deplibs and with the right loader patch applied
12624 # it even uses RPATH in a shared library to search for shared objects
12625 # that the library depends on, but there's no easy way to know if that
12626 # patch is installed. Since this is the case, all we can really
12627 # say is unknown -- it depends on the patch being installed. If
12628 # it is, this changes to `yes'. Without it, it would be `no'.
12629 lt_cv_sys_dlopen_deplibs=unknown
12630 ;;
12631 osf*)
12632 # the two cases above should catch all versions of osf <= 5.1. Read
12633 # the comments above for what we know about them.
12634 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
12635 # is used to find them so we can finally say `yes'.
12636 lt_cv_sys_dlopen_deplibs=yes
12637 ;;
12638 qnx*)
12639 lt_cv_sys_dlopen_deplibs=yes
12640 ;;
12641 solaris*)
12642 lt_cv_sys_dlopen_deplibs=yes
12643 ;;
12644 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12645 libltdl_cv_sys_dlopen_deplibs=yes
12646 ;;
12647 esac
12648
12649 fi
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
12651 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
12652 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
12653
12654 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
12655
12656 fi
12657
12658 :
12659
12660 for ac_header in argz.h
12661 do :
12662 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
12663 "
12664 if test "x$ac_cv_header_argz_h" = xyes; then :
12665 cat >>confdefs.h <<_ACEOF
12666 #define HAVE_ARGZ_H 1
12667 _ACEOF
12668
12669 fi
12670
12671 done
12672
12673
12674 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
12675 # include <argz.h>
12676 #endif
12677 "
12678 if test "x$ac_cv_type_error_t" = xyes; then :
12679
12680 cat >>confdefs.h <<_ACEOF
12681 #define HAVE_ERROR_T 1
12682 _ACEOF
12683
12684
12685 else
12686
12687 $as_echo "#define error_t int" >>confdefs.h
12688
12689
12690 $as_echo "#define __error_t_defined 1" >>confdefs.h
12691
12692 fi
12693
12694
12695 ARGZ_H=
12696 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
12697 argz_next argz_stringify
12698 do :
12699 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12700 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12701 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12702 cat >>confdefs.h <<_ACEOF
12703 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12704 _ACEOF
12705
12706 else
12707 ARGZ_H=argz.h;
12708
12709 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12710
12711 fi
12712 done
12713
12714
12715 if test -z "$ARGZ_H"; then :
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
12717 $as_echo_n "checking if argz actually works... " >&6; }
12718 if ${lt_cv_sys_argz_works+:} false; then :
12719 $as_echo_n "(cached) " >&6
12720 else
12721 case $host_os in #(
12722 *cygwin*)
12723 lt_cv_sys_argz_works=no
12724 if test "$cross_compiling" != no; then
12725 lt_cv_sys_argz_works="guessing no"
12726 else
12727 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
12728 save_IFS=$IFS
12729 IFS=-.
12730 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
12731 IFS=$save_IFS
12732 lt_os_major=${2-0}
12733 lt_os_minor=${3-0}
12734 lt_os_micro=${4-0}
12735 if test "$lt_os_major" -gt 1 \
12736 || { test "$lt_os_major" -eq 1 \
12737 && { test "$lt_os_minor" -gt 5 \
12738 || { test "$lt_os_minor" -eq 5 \
12739 && test "$lt_os_micro" -gt 24; }; }; }; then
12740 lt_cv_sys_argz_works=yes
12741 fi
12742 fi
12743 ;; #(
12744 *) lt_cv_sys_argz_works=yes ;;
12745 esac
12746 fi
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
12748 $as_echo "$lt_cv_sys_argz_works" >&6; }
12749 if test "$lt_cv_sys_argz_works" = yes; then :
12750
12751 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
12752
12753 else
12754 ARGZ_H=argz.h
12755
12756
12757 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12758
12759 fi
12760 fi
12761
12762
12763
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
12765 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
12766 if ${libltdl_cv_preloaded_symbols+:} false; then :
12767 $as_echo_n "(cached) " >&6
12768 else
12769 if test -n "$lt_cv_sys_global_symbol_pipe"; then
12770 libltdl_cv_preloaded_symbols=yes
12771 else
12772 libltdl_cv_preloaded_symbols=no
12773 fi
12774
12775 fi
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
12777 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
12778 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
12779
12780 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
12781
12782 fi
12783
12784 # Set options
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796 # Check whether --with-included_ltdl was given.
12797 if test "${with_included_ltdl+set}" = set; then :
12798 withval=$with_included_ltdl;
12799 fi
12800
12801
12802 if test "x$with_included_ltdl" != xyes; then
12803 # We are not being forced to use the included libltdl sources, so
12804 # decide whether there is a useful installed version we can use.
12805 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
12806
12807 "
12808 if test "x$ac_cv_header_ltdl_h" = xyes; then :
12809 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
12810 #include <ltdl.h>
12811 "
12812 if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
12814 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
12815 if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
12816 $as_echo_n "(cached) " >&6
12817 else
12818 ac_check_lib_save_LIBS=$LIBS
12819 LIBS="-lltdl $LIBS"
12820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12821 /* end confdefs.h. */
12822
12823 /* Override any GCC internal prototype to avoid an error.
12824 Use char because int might match the return type of a GCC
12825 builtin and then its argument prototype would still apply. */
12826 #ifdef __cplusplus
12827 extern "C"
12828 #endif
12829 char lt_dladvise_preload ();
12830 int
12831 main ()
12832 {
12833 return lt_dladvise_preload ();
12834 ;
12835 return 0;
12836 }
12837 _ACEOF
12838 if ac_fn_c_try_link "$LINENO"; then :
12839 ac_cv_lib_ltdl_lt_dladvise_preload=yes
12840 else
12841 ac_cv_lib_ltdl_lt_dladvise_preload=no
12842 fi
12843 rm -f core conftest.err conftest.$ac_objext \
12844 conftest$ac_exeext conftest.$ac_ext
12845 LIBS=$ac_check_lib_save_LIBS
12846 fi
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
12848 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
12849 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
12850 with_included_ltdl=no
12851 else
12852 with_included_ltdl=yes
12853 fi
12854
12855 else
12856 with_included_ltdl=yes
12857 fi
12858
12859 else
12860 with_included_ltdl=yes
12861 fi
12862
12863
12864 fi
12865
12866
12867
12868
12869 # Check whether --with-ltdl_include was given.
12870 if test "${with_ltdl_include+set}" = set; then :
12871 withval=$with_ltdl_include;
12872 fi
12873
12874
12875 if test -n "$with_ltdl_include"; then
12876 if test -f "$with_ltdl_include/ltdl.h"; then :
12877 else
12878 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
12879 fi
12880 else
12881 with_ltdl_include=no
12882 fi
12883
12884
12885 # Check whether --with-ltdl_lib was given.
12886 if test "${with_ltdl_lib+set}" = set; then :
12887 withval=$with_ltdl_lib;
12888 fi
12889
12890
12891 if test -n "$with_ltdl_lib"; then
12892 if test -f "$with_ltdl_lib/libltdl.la"; then :
12893 else
12894 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
12895 fi
12896 else
12897 with_ltdl_lib=no
12898 fi
12899
12900 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
12901 ,yes,no,no,)
12902 case $enable_ltdl_convenience in
12903 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
12904 "") enable_ltdl_convenience=yes
12905 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
12906 esac
12907 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
12908 LTDLDEPS=$LIBLTDL
12909 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
12910
12911
12912
12913
12914
12915 # For backwards non-gettext consistent compatibility...
12916 INCLTDL="$LTDLINCL"
12917
12918
12919 ;;
12920 ,no,no,no,)
12921 # If the included ltdl is not to be used, then use the
12922 # preinstalled libltdl we found.
12923
12924 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
12925
12926 LIBLTDL=-lltdl
12927 LTDLDEPS=
12928 LTDLINCL=
12929 ;;
12930 ,no*,no,*)
12931 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
12932 ;;
12933 *) with_included_ltdl=no
12934 LIBLTDL="-L$with_ltdl_lib -lltdl"
12935 LTDLDEPS=
12936 LTDLINCL="-I$with_ltdl_include"
12937 ;;
12938 esac
12939 INCLTDL="$LTDLINCL"
12940
12941 # Report our decision...
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
12943 $as_echo_n "checking where to find libltdl headers... " >&6; }
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
12945 $as_echo "$LTDLINCL" >&6; }
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
12947 $as_echo_n "checking where to find libltdl library... " >&6; }
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
12949 $as_echo "$LIBLTDL" >&6; }
12950
12951
12952
12953 # Check whether --enable-ltdl-install was given.
12954 if test "${enable_ltdl_install+set}" = set; then :
12955 enableval=$enable_ltdl_install;
12956 fi
12957
12958
12959 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
12960 *yes*) ;;
12961 *) enable_ltdl_convenience=yes ;;
12962 esac
12963
12964 if test x"${enable_ltdl_install-no}" != xno; then
12965 INSTALL_LTDL_TRUE=
12966 INSTALL_LTDL_FALSE='#'
12967 else
12968 INSTALL_LTDL_TRUE='#'
12969 INSTALL_LTDL_FALSE=
12970 fi
12971
12972 if test x"${enable_ltdl_convenience-no}" != xno; then
12973 CONVENIENCE_LTDL_TRUE=
12974 CONVENIENCE_LTDL_FALSE='#'
12975 else
12976 CONVENIENCE_LTDL_TRUE='#'
12977 CONVENIENCE_LTDL_FALSE=
12978 fi
12979
12980
12981
12982
12983
12984
12985 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
12986 # the user used. This is so that ltdl.h can pick up the parent projects
12987 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
12988 # definitions required by ltdl.c.
12989 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
12990
12991
12992
12993 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
12994 do :
12995 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12996 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12997 "
12998 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12999 cat >>confdefs.h <<_ACEOF
13000 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13001 _ACEOF
13002
13003 fi
13004
13005 done
13006
13007
13008 for ac_func in closedir opendir readdir
13009 do :
13010 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13011 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13012 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13013 cat >>confdefs.h <<_ACEOF
13014 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13015 _ACEOF
13016
13017 else
13018
13019
13020 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
13021
13022 fi
13023 done
13024
13025 for ac_func in strlcat strlcpy
13026 do :
13027 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13028 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13029 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13030 cat >>confdefs.h <<_ACEOF
13031 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13032 _ACEOF
13033
13034 else
13035
13036
13037 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
13038
13039 fi
13040 done
13041
13042
13043
13044 cat >>confdefs.h <<_ACEOF
13045 #define LT_LIBEXT "$libext"
13046 _ACEOF
13047
13048
13049 name=
13050 eval "lt_libprefix=\"$libname_spec\""
13051
13052 cat >>confdefs.h <<_ACEOF
13053 #define LT_LIBPREFIX "$lt_libprefix"
13054 _ACEOF
13055
13056
13057 name=ltdl
13058 eval "LTDLOPEN=\"$libname_spec\""
13059
13060
13061
13062
13063
13064
13065
13066
13067 # Only expand once:
13068
13069
13070 LIBTOOL="$LIBTOOL --silent"
13071
13072 # Checks for libraries.
13073
13074 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
13075 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
13076
13077 else
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
13079 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
13080 if ${ac_cv_search_getaddrinfo+:} false; then :
13081 $as_echo_n "(cached) " >&6
13082 else
13083 ac_func_search_save_LIBS=$LIBS
13084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13085 /* end confdefs.h. */
13086
13087 /* Override any GCC internal prototype to avoid an error.
13088 Use char because int might match the return type of a GCC
13089 builtin and then its argument prototype would still apply. */
13090 #ifdef __cplusplus
13091 extern "C"
13092 #endif
13093 char getaddrinfo ();
13094 int
13095 main ()
13096 {
13097 return getaddrinfo ();
13098 ;
13099 return 0;
13100 }
13101 _ACEOF
13102 for ac_lib in '' nsl; do
13103 if test -z "$ac_lib"; then
13104 ac_res="none required"
13105 else
13106 ac_res=-l$ac_lib
13107 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13108 fi
13109 if ac_fn_c_try_link "$LINENO"; then :
13110 ac_cv_search_getaddrinfo=$ac_res
13111 fi
13112 rm -f core conftest.err conftest.$ac_objext \
13113 conftest$ac_exeext
13114 if ${ac_cv_search_getaddrinfo+:} false; then :
13115 break
13116 fi
13117 done
13118 if ${ac_cv_search_getaddrinfo+:} false; then :
13119
13120 else
13121 ac_cv_search_getaddrinfo=no
13122 fi
13123 rm conftest.$ac_ext
13124 LIBS=$ac_func_search_save_LIBS
13125 fi
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
13127 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
13128 ac_res=$ac_cv_search_getaddrinfo
13129 if test "$ac_res" != no; then :
13130 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13131
13132 fi
13133
13134 fi
13135
13136 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
13137 if test "x$ac_cv_func_getnameinfo" = xyes; then :
13138
13139 else
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
13141 $as_echo_n "checking for library containing getnameinfo... " >&6; }
13142 if ${ac_cv_search_getnameinfo+:} false; then :
13143 $as_echo_n "(cached) " >&6
13144 else
13145 ac_func_search_save_LIBS=$LIBS
13146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13147 /* end confdefs.h. */
13148
13149 /* Override any GCC internal prototype to avoid an error.
13150 Use char because int might match the return type of a GCC
13151 builtin and then its argument prototype would still apply. */
13152 #ifdef __cplusplus
13153 extern "C"
13154 #endif
13155 char getnameinfo ();
13156 int
13157 main ()
13158 {
13159 return getnameinfo ();
13160 ;
13161 return 0;
13162 }
13163 _ACEOF
13164 for ac_lib in '' nsl; do
13165 if test -z "$ac_lib"; then
13166 ac_res="none required"
13167 else
13168 ac_res=-l$ac_lib
13169 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13170 fi
13171 if ac_fn_c_try_link "$LINENO"; then :
13172 ac_cv_search_getnameinfo=$ac_res
13173 fi
13174 rm -f core conftest.err conftest.$ac_objext \
13175 conftest$ac_exeext
13176 if ${ac_cv_search_getnameinfo+:} false; then :
13177 break
13178 fi
13179 done
13180 if ${ac_cv_search_getnameinfo+:} false; then :
13181
13182 else
13183 ac_cv_search_getnameinfo=no
13184 fi
13185 rm conftest.$ac_ext
13186 LIBS=$ac_func_search_save_LIBS
13187 fi
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
13189 $as_echo "$ac_cv_search_getnameinfo" >&6; }
13190 ac_res=$ac_cv_search_getnameinfo
13191 if test "$ac_res" != no; then :
13192 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13193
13194 fi
13195
13196 fi
13197
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13199 $as_echo_n "checking for library containing socket... " >&6; }
13200 if ${ac_cv_search_socket+:} false; then :
13201 $as_echo_n "(cached) " >&6
13202 else
13203 ac_func_search_save_LIBS=$LIBS
13204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13205 /* end confdefs.h. */
13206
13207 /* Override any GCC internal prototype to avoid an error.
13208 Use char because int might match the return type of a GCC
13209 builtin and then its argument prototype would still apply. */
13210 #ifdef __cplusplus
13211 extern "C"
13212 #endif
13213 char socket ();
13214 int
13215 main ()
13216 {
13217 return socket ();
13218 ;
13219 return 0;
13220 }
13221 _ACEOF
13222 for ac_lib in '' socket; do
13223 if test -z "$ac_lib"; then
13224 ac_res="none required"
13225 else
13226 ac_res=-l$ac_lib
13227 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13228 fi
13229 if ac_fn_c_try_link "$LINENO"; then :
13230 ac_cv_search_socket=$ac_res
13231 fi
13232 rm -f core conftest.err conftest.$ac_objext \
13233 conftest$ac_exeext
13234 if ${ac_cv_search_socket+:} false; then :
13235 break
13236 fi
13237 done
13238 if ${ac_cv_search_socket+:} false; then :
13239
13240 else
13241 ac_cv_search_socket=no
13242 fi
13243 rm conftest.$ac_ext
13244 LIBS=$ac_func_search_save_LIBS
13245 fi
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13247 $as_echo "$ac_cv_search_socket" >&6; }
13248 ac_res=$ac_cv_search_socket
13249 if test "$ac_res" != no; then :
13250 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13251
13252 else
13253 as_fn_error $? "socket library not found" "$LINENO" 5
13254 fi
13255
13256 ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h>
13257 #include <sys/socket.h>
13258 #include <netdb.h>
13259
13260 "
13261 if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then :
13262
13263 cat >>confdefs.h <<_ACEOF
13264 #define HAVE_STRUCT_SOCKADDR_IN 1
13265 _ACEOF
13266
13267
13268 fi
13269 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
13270 #include <sys/socket.h>
13271 #include <netdb.h>
13272
13273 "
13274 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
13275
13276 cat >>confdefs.h <<_ACEOF
13277 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13278 _ACEOF
13279
13280
13281 fi
13282 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
13283 #include <sys/socket.h>
13284 #include <netdb.h>
13285
13286 "
13287 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
13288
13289 cat >>confdefs.h <<_ACEOF
13290 #define HAVE_STRUCT_ADDRINFO 1
13291 _ACEOF
13292
13293
13294 fi
13295
13296 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
13297 <sys/socket.h>
13298 "
13299 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
13300
13301 cat >>confdefs.h <<_ACEOF
13302 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
13303 _ACEOF
13304
13305
13306 fi
13307
13308
13309
13310 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#include <netinet/in.h>
13311 "
13312 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
13313
13314 $as_echo "#define IPV6 1" >>confdefs.h
13315
13316 fi
13317
13318
13319
13320 # Checks for typedefs, structures, and compiler characteristics.
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13322 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13323 if ${ac_cv_c_bigendian+:} false; then :
13324 $as_echo_n "(cached) " >&6
13325 else
13326 ac_cv_c_bigendian=unknown
13327 # See if we're dealing with a universal compiler.
13328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13329 /* end confdefs.h. */
13330 #ifndef __APPLE_CC__
13331 not a universal capable compiler
13332 #endif
13333 typedef int dummy;
13334
13335 _ACEOF
13336 if ac_fn_c_try_compile "$LINENO"; then :
13337
13338 # Check for potential -arch flags. It is not universal unless
13339 # there are at least two -arch flags with different values.
13340 ac_arch=
13341 ac_prev=
13342 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13343 if test -n "$ac_prev"; then
13344 case $ac_word in
13345 i?86 | x86_64 | ppc | ppc64)
13346 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13347 ac_arch=$ac_word
13348 else
13349 ac_cv_c_bigendian=universal
13350 break
13351 fi
13352 ;;
13353 esac
13354 ac_prev=
13355 elif test "x$ac_word" = "x-arch"; then
13356 ac_prev=arch
13357 fi
13358 done
13359 fi
13360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13361 if test $ac_cv_c_bigendian = unknown; then
13362 # See if sys/param.h defines the BYTE_ORDER macro.
13363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13364 /* end confdefs.h. */
13365 #include <sys/types.h>
13366 #include <sys/param.h>
13367
13368 int
13369 main ()
13370 {
13371 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13372 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13373 && LITTLE_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 <sys/types.h>
13386 #include <sys/param.h>
13387
13388 int
13389 main ()
13390 {
13391 #if BYTE_ORDER != BIG_ENDIAN
13392 not big endian
13393 #endif
13394
13395 ;
13396 return 0;
13397 }
13398 _ACEOF
13399 if ac_fn_c_try_compile "$LINENO"; then :
13400 ac_cv_c_bigendian=yes
13401 else
13402 ac_cv_c_bigendian=no
13403 fi
13404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13405 fi
13406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13407 fi
13408 if test $ac_cv_c_bigendian = unknown; then
13409 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13411 /* end confdefs.h. */
13412 #include <limits.h>
13413
13414 int
13415 main ()
13416 {
13417 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13418 bogus endian macros
13419 #endif
13420
13421 ;
13422 return 0;
13423 }
13424 _ACEOF
13425 if ac_fn_c_try_compile "$LINENO"; then :
13426 # It does; now see whether it defined to _BIG_ENDIAN or not.
13427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13428 /* end confdefs.h. */
13429 #include <limits.h>
13430
13431 int
13432 main ()
13433 {
13434 #ifndef _BIG_ENDIAN
13435 not big endian
13436 #endif
13437
13438 ;
13439 return 0;
13440 }
13441 _ACEOF
13442 if ac_fn_c_try_compile "$LINENO"; then :
13443 ac_cv_c_bigendian=yes
13444 else
13445 ac_cv_c_bigendian=no
13446 fi
13447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13448 fi
13449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13450 fi
13451 if test $ac_cv_c_bigendian = unknown; then
13452 # Compile a test program.
13453 if test "$cross_compiling" = yes; then :
13454 # Try to guess by grepping values from an object file.
13455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13456 /* end confdefs.h. */
13457 short int ascii_mm[] =
13458 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13459 short int ascii_ii[] =
13460 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13461 int use_ascii (int i) {
13462 return ascii_mm[i] + ascii_ii[i];
13463 }
13464 short int ebcdic_ii[] =
13465 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13466 short int ebcdic_mm[] =
13467 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13468 int use_ebcdic (int i) {
13469 return ebcdic_mm[i] + ebcdic_ii[i];
13470 }
13471 extern int foo;
13472
13473 int
13474 main ()
13475 {
13476 return use_ascii (foo) == use_ebcdic (foo);
13477 ;
13478 return 0;
13479 }
13480 _ACEOF
13481 if ac_fn_c_try_compile "$LINENO"; then :
13482 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13483 ac_cv_c_bigendian=yes
13484 fi
13485 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13486 if test "$ac_cv_c_bigendian" = unknown; then
13487 ac_cv_c_bigendian=no
13488 else
13489 # finding both strings is unlikely to happen, but who knows?
13490 ac_cv_c_bigendian=unknown
13491 fi
13492 fi
13493 fi
13494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13495 else
13496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13497 /* end confdefs.h. */
13498 $ac_includes_default
13499 int
13500 main ()
13501 {
13502
13503 /* Are we little or big endian? From Harbison&Steele. */
13504 union
13505 {
13506 long int l;
13507 char c[sizeof (long int)];
13508 } u;
13509 u.l = 1;
13510 return u.c[sizeof (long int) - 1] == 1;
13511
13512 ;
13513 return 0;
13514 }
13515 _ACEOF
13516 if ac_fn_c_try_run "$LINENO"; then :
13517 ac_cv_c_bigendian=no
13518 else
13519 ac_cv_c_bigendian=yes
13520 fi
13521 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13522 conftest.$ac_objext conftest.beam conftest.$ac_ext
13523 fi
13524
13525 fi
13526 fi
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13528 $as_echo "$ac_cv_c_bigendian" >&6; }
13529 case $ac_cv_c_bigendian in #(
13530 yes)
13531 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13532 ;; #(
13533 no)
13534 ;; #(
13535 universal)
13536
13537 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13538
13539 ;; #(
13540 *)
13541 as_fn_error $? "unknown endianness
13542 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13543 esac
13544
13545
13546 # Checks for library functions.
13547
13548
13549
13550 for ac_func in $ac_func_list
13551 do :
13552 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13553 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13554 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13555 cat >>confdefs.h <<_ACEOF
13556 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13557 _ACEOF
13558
13559 fi
13560 done
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572 # Checks for header files.
13573
13574
13575
13576 for ac_header in $ac_header_list
13577 do :
13578 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13579 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13580 "
13581 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13582 cat >>confdefs.h <<_ACEOF
13583 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13584 _ACEOF
13585
13586 fi
13587
13588 done
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
13607 $as_echo_n "checking for library containing crypt... " >&6; }
13608 if ${ac_cv_search_crypt+:} false; then :
13609 $as_echo_n "(cached) " >&6
13610 else
13611 ac_func_search_save_LIBS=$LIBS
13612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13613 /* end confdefs.h. */
13614
13615 /* Override any GCC internal prototype to avoid an error.
13616 Use char because int might match the return type of a GCC
13617 builtin and then its argument prototype would still apply. */
13618 #ifdef __cplusplus
13619 extern "C"
13620 #endif
13621 char crypt ();
13622 int
13623 main ()
13624 {
13625 return crypt ();
13626 ;
13627 return 0;
13628 }
13629 _ACEOF
13630 for ac_lib in '' crypt; do
13631 if test -z "$ac_lib"; then
13632 ac_res="none required"
13633 else
13634 ac_res=-l$ac_lib
13635 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13636 fi
13637 if ac_fn_c_try_link "$LINENO"; then :
13638 ac_cv_search_crypt=$ac_res
13639 fi
13640 rm -f core conftest.err conftest.$ac_objext \
13641 conftest$ac_exeext
13642 if ${ac_cv_search_crypt+:} false; then :
13643 break
13644 fi
13645 done
13646 if ${ac_cv_search_crypt+:} false; then :
13647
13648 else
13649 ac_cv_search_crypt=no
13650 fi
13651 rm conftest.$ac_ext
13652 LIBS=$ac_func_search_save_LIBS
13653 fi
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
13655 $as_echo "$ac_cv_search_crypt" >&6; }
13656 ac_res=$ac_cv_search_crypt
13657 if test "$ac_res" != no; then :
13658 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13659
13660 fi
13661
13662
13663 # Check whether --enable-libpcre was given.
13664 if test "${enable_libpcre+set}" = set; then :
13665 enableval=$enable_libpcre;
13666 else
13667 ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default"
13668 if test "x$ac_cv_header_pcre_h" = xyes; then :
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pcre_study" >&5
13670 $as_echo_n "checking for library containing pcre_study... " >&6; }
13671 if ${ac_cv_search_pcre_study+:} false; then :
13672 $as_echo_n "(cached) " >&6
13673 else
13674 ac_func_search_save_LIBS=$LIBS
13675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13676 /* end confdefs.h. */
13677
13678 /* Override any GCC internal prototype to avoid an error.
13679 Use char because int might match the return type of a GCC
13680 builtin and then its argument prototype would still apply. */
13681 #ifdef __cplusplus
13682 extern "C"
13683 #endif
13684 char pcre_study ();
13685 int
13686 main ()
13687 {
13688 return pcre_study ();
13689 ;
13690 return 0;
13691 }
13692 _ACEOF
13693 for ac_lib in '' pcre; do
13694 if test -z "$ac_lib"; then
13695 ac_res="none required"
13696 else
13697 ac_res=-l$ac_lib
13698 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13699 fi
13700 if ac_fn_c_try_link "$LINENO"; then :
13701 ac_cv_search_pcre_study=$ac_res
13702 fi
13703 rm -f core conftest.err conftest.$ac_objext \
13704 conftest$ac_exeext
13705 if ${ac_cv_search_pcre_study+:} false; then :
13706 break
13707 fi
13708 done
13709 if ${ac_cv_search_pcre_study+:} false; then :
13710
13711 else
13712 ac_cv_search_pcre_study=no
13713 fi
13714 rm conftest.$ac_ext
13715 LIBS=$ac_func_search_save_LIBS
13716 fi
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pcre_study" >&5
13718 $as_echo "$ac_cv_search_pcre_study" >&6; }
13719 ac_res=$ac_cv_search_pcre_study
13720 if test "$ac_res" != no; then :
13721 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13722
13723 $as_echo "#define HAVE_LIBPCRE 1" >>confdefs.h
13724
13725 fi
13726
13727 fi
13728
13729
13730 fi
13731
13732
13733 # Check whether --enable-openssl was given.
13734 if test "${enable_openssl+set}" = set; then :
13735 enableval=$enable_openssl; cf_enable_openssl=$enableval
13736 else
13737 cf_enable_openssl="auto"
13738 fi
13739
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
13741 $as_echo_n "checking for OpenSSL... " >&6; }
13742 if test "$cf_enable_openssl" != "no"; then
13743 cf_openssl_basedir=""
13744 if test "$cf_enable_openssl" != "auto" &&
13745 test "$cf_enable_openssl" != "yes"; then
13746 cf_openssl_basedir="${cf_enable_openssl}"
13747 else
13748 for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
13749 /opt /opt/openssl /usr/local/openssl; do
13750 if test -f "${dirs}/include/openssl/opensslv.h"; then
13751 cf_openssl_basedir="${dirs}"
13752 break
13753 fi
13754 done
13755 unset dirs
13756 fi
13757
13758 if test ! -z "$cf_openssl_basedir"; then
13759 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
13760 CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
13761 LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
13762 else
13763 cf_openssl_basedir=""
13764 fi
13765 else
13766 if test -f "/usr/include/openssl/opensslv.h"; then
13767 cf_openssl_basedir="/usr"
13768 fi
13769 fi
13770
13771 if test ! -z "$cf_openssl_basedir"; then
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
13773 $as_echo "$cf_openssl_basedir" >&6; }
13774 cf_enable_openssl="yes"
13775 else
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
13777 $as_echo "not found. Please check your path." >&6; }
13778 cf_enable_openssl="no"
13779 fi
13780 unset cf_openssl_basedir
13781 else
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13783 $as_echo "disabled" >&6; }
13784 fi
13785
13786 if test "$cf_enable_openssl" != "no"; then :
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.8 or above" >&5
13788 $as_echo_n "checking for OpenSSL 0.9.8 or above... " >&6; }
13789 if test "$cross_compiling" = yes; then :
13790 cf_openssl_version_ok=no
13791 else
13792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13793 /* end confdefs.h. */
13794
13795
13796 #include <openssl/opensslv.h>
13797 #include <stdlib.h>
13798 int
13799 main ()
13800 {
13801 exit(!(OPENSSL_VERSION_NUMBER >= 0x00908000));
13802 ;
13803 return 0;
13804 }
13805 _ACEOF
13806 if ac_fn_c_try_run "$LINENO"; then :
13807 cf_openssl_version_ok=yes
13808 else
13809 cf_openssl_version_ok=no
13810 fi
13811 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13812 conftest.$ac_objext conftest.beam conftest.$ac_ext
13813 fi
13814
13815
13816 if test "$cf_openssl_version_ok" = "yes"; then :
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13818 $as_echo "found" >&6; }
13819
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
13821 $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
13822 if ${ac_cv_lib_crypto_RSA_free+:} false; then :
13823 $as_echo_n "(cached) " >&6
13824 else
13825 ac_check_lib_save_LIBS=$LIBS
13826 LIBS="-lcrypto $LIBS"
13827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13828 /* end confdefs.h. */
13829
13830 /* Override any GCC internal prototype to avoid an error.
13831 Use char because int might match the return type of a GCC
13832 builtin and then its argument prototype would still apply. */
13833 #ifdef __cplusplus
13834 extern "C"
13835 #endif
13836 char RSA_free ();
13837 int
13838 main ()
13839 {
13840 return RSA_free ();
13841 ;
13842 return 0;
13843 }
13844 _ACEOF
13845 if ac_fn_c_try_link "$LINENO"; then :
13846 ac_cv_lib_crypto_RSA_free=yes
13847 else
13848 ac_cv_lib_crypto_RSA_free=no
13849 fi
13850 rm -f core conftest.err conftest.$ac_objext \
13851 conftest$ac_exeext conftest.$ac_ext
13852 LIBS=$ac_check_lib_save_LIBS
13853 fi
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
13855 $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
13856 if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
13857 cat >>confdefs.h <<_ACEOF
13858 #define HAVE_LIBCRYPTO 1
13859 _ACEOF
13860
13861 LIBS="-lcrypto $LIBS"
13862
13863 fi
13864
13865 if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
13867 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
13868 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
13869 $as_echo_n "(cached) " >&6
13870 else
13871 ac_check_lib_save_LIBS=$LIBS
13872 LIBS="-lssl $LIBS"
13873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13874 /* end confdefs.h. */
13875
13876 /* Override any GCC internal prototype to avoid an error.
13877 Use char because int might match the return type of a GCC
13878 builtin and then its argument prototype would still apply. */
13879 #ifdef __cplusplus
13880 extern "C"
13881 #endif
13882 char SSL_connect ();
13883 int
13884 main ()
13885 {
13886 return SSL_connect ();
13887 ;
13888 return 0;
13889 }
13890 _ACEOF
13891 if ac_fn_c_try_link "$LINENO"; then :
13892 ac_cv_lib_ssl_SSL_connect=yes
13893 else
13894 ac_cv_lib_ssl_SSL_connect=no
13895 fi
13896 rm -f core conftest.err conftest.$ac_objext \
13897 conftest$ac_exeext conftest.$ac_ext
13898 LIBS=$ac_check_lib_save_LIBS
13899 fi
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
13901 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
13902 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
13903 cat >>confdefs.h <<_ACEOF
13904 #define HAVE_LIBSSL 1
13905 _ACEOF
13906
13907 LIBS="-lssl $LIBS"
13908
13909 fi
13910
13911 fi
13912
13913 else
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
13915 $as_echo "no - OpenSSL support disabled" >&6; }
13916 cf_enable_openssl="no"
13917 fi
13918 fi
13919
13920 if test "$ac_cv_lib_ssl_SSL_connect" = yes; then
13921 ENABLE_SSL_TRUE=
13922 ENABLE_SSL_FALSE='#'
13923 else
13924 ENABLE_SSL_TRUE='#'
13925 ENABLE_SSL_FALSE=
13926 fi
13927
13928
13929
13930 # Check whether --enable-assert was given.
13931 if test "${enable_assert+set}" = set; then :
13932 enableval=$enable_assert; assert=$enableval
13933 else
13934 assert=no
13935 fi
13936
13937
13938 if test "$assert" = "no"; then :
13939
13940 $as_echo "#define NDEBUG 1" >>confdefs.h
13941
13942 fi
13943
13944
13945
13946 $as_echo "#define NICKNAMEHISTORYLENGTH 16384" >>confdefs.h
13947
13948
13949 $as_echo "#define MP_CHUNK_SIZE_CHANNEL 64*1024" >>confdefs.h
13950
13951
13952 $as_echo "#define MP_CHUNK_SIZE_MEMBER 32*1024" >>confdefs.h
13953
13954
13955 $as_echo "#define MP_CHUNK_SIZE_BAN 16*1024" >>confdefs.h
13956
13957
13958 $as_echo "#define MP_CHUNK_SIZE_CLIENT 256*1024" >>confdefs.h
13959
13960
13961 $as_echo "#define MP_CHUNK_SIZE_LCLIENT 128*1024" >>confdefs.h
13962
13963
13964 $as_echo "#define MP_CHUNK_SIZE_DNODE 8*1024" >>confdefs.h
13965
13966
13967 $as_echo "#define MP_CHUNK_SIZE_DBUF 512*1024" >>confdefs.h
13968
13969
13970 $as_echo "#define MP_CHUNK_SIZE_AUTH 32*1024" >>confdefs.h
13971
13972
13973 $as_echo "#define MP_CHUNK_SIZE_DNS 16*1024" >>confdefs.h
13974
13975
13976 $as_echo "#define MP_CHUNK_SIZE_WATCH 4*1024" >>confdefs.h
13977
13978
13979 # Argument processing.
13980
13981 desired_iopoll_mechanism="none"
13982 # Check whether --enable-kqueue was given.
13983 if test "${enable_kqueue+set}" = set; then :
13984 enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
13985 fi
13986
13987 # Check whether --enable-epoll was given.
13988 if test "${enable_epoll+set}" = set; then :
13989 enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
13990 fi
13991
13992 # Check whether --enable-devpoll was given.
13993 if test "${enable_devpoll+set}" = set; then :
13994 enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
13995 fi
13996
13997 # Check whether --enable-poll was given.
13998 if test "${enable_poll+set}" = set; then :
13999 enableval=$enable_poll; desired_iopoll_mechanism="poll"
14000 fi
14001
14002 # Check whether --enable-select was given.
14003 if test "${enable_select+set}" = set; then :
14004 enableval=$enable_select; desired_iopoll_mechanism="select"
14005 fi
14006
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
14008 $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
14009 iopoll_mechanism_none=0
14010
14011 cat >>confdefs.h <<_ACEOF
14012 #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
14013 _ACEOF
14014
14015 iopoll_mechanism_kqueue=1
14016
14017 cat >>confdefs.h <<_ACEOF
14018 #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
14019 _ACEOF
14020
14021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14022 /* end confdefs.h. */
14023 /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
14024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14025 #define kevent innocuous_kevent
14026
14027 /* System header to define __stub macros and hopefully few prototypes,
14028 which can conflict with char kevent (); below.
14029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14030 <limits.h> exists even on freestanding compilers. */
14031
14032 #ifdef __STDC__
14033 # include <limits.h>
14034 #else
14035 # include <assert.h>
14036 #endif
14037
14038 #undef kevent
14039
14040 /* Override any GCC internal prototype to avoid an error.
14041 Use char because int might match the return type of a GCC
14042 builtin and then its argument prototype would still apply. */
14043 #ifdef __cplusplus
14044 extern "C"
14045 #endif
14046 char kevent ();
14047 /* The GNU C library defines this for functions which it implements
14048 to always fail with ENOSYS. Some functions are actually named
14049 something starting with __ and the normal name is an alias. */
14050 #if defined __stub_kevent || defined __stub___kevent
14051 choke me
14052 #endif
14053
14054 int
14055 main ()
14056 {
14057 return kevent ();
14058 ;
14059 return 0;
14060 }
14061 _ACEOF
14062 if ac_fn_c_try_link "$LINENO"; then :
14063 is_kqueue_mechanism_available="yes"
14064 else
14065 is_kqueue_mechanism_available="no"
14066 fi
14067 rm -f core conftest.err conftest.$ac_objext \
14068 conftest$ac_exeext conftest.$ac_ext
14069 iopoll_mechanism_epoll=2
14070
14071 cat >>confdefs.h <<_ACEOF
14072 #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
14073 _ACEOF
14074
14075 if test "$cross_compiling" = yes; then :
14076 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14077 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14078 as_fn_error $? "cannot run test program while cross compiling
14079 See \`config.log' for more details" "$LINENO" 5; }
14080 else
14081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14082 /* end confdefs.h. */
14083
14084 #include <sys/epoll.h>
14085 #include <sys/syscall.h>
14086 #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
14087 #if !defined(__NR_epoll_create)
14088 #if defined(__ia64__)
14089 #define __NR_epoll_create 1243
14090 #elif defined(__x86_64__)
14091 #define __NR_epoll_create 214
14092 #elif defined(__sparc64__) || defined(__sparc__)
14093 #define __NR_epoll_create 193
14094 #elif defined(__s390__) || defined(__m68k__)
14095 #define __NR_epoll_create 249
14096 #elif defined(__ppc64__) || defined(__ppc__)
14097 #define __NR_epoll_create 236
14098 #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
14099 #define __NR_epoll_create 224
14100 #elif defined(__alpha__)
14101 #define __NR_epoll_create 407
14102 #elif defined(__sh64__)
14103 #define __NR_epoll_create 282
14104 #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
14105 #define __NR_epoll_create 254
14106 #else
14107 #error No system call numbers defined for epoll family.
14108 #endif
14109 #endif
14110 _syscall1(int, epoll_create, int, size)
14111 #endif
14112
14113 int
14114 main ()
14115 {
14116 return epoll_create(256) == -1 ? 1 : 0
14117 ;
14118 return 0;
14119 }
14120 _ACEOF
14121 if ac_fn_c_try_run "$LINENO"; then :
14122 is_epoll_mechanism_available="yes"
14123 else
14124 is_epoll_mechanism_available="no"
14125 fi
14126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14127 conftest.$ac_objext conftest.beam conftest.$ac_ext
14128 fi
14129
14130 iopoll_mechanism_devpoll=3
14131
14132 cat >>confdefs.h <<_ACEOF
14133 #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
14134 _ACEOF
14135
14136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14137 /* end confdefs.h. */
14138 #include <devpoll.h>
14139 int
14140 main ()
14141 {
14142
14143 ;
14144 return 0;
14145 }
14146 _ACEOF
14147 if ac_fn_c_try_compile "$LINENO"; then :
14148 is_devpoll_mechanism_available="yes"
14149 else
14150 is_devpoll_mechanism_available="no"
14151 fi
14152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14153 if test "$is_devpoll_mechanism_available" = "yes" ; then
14154
14155 $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
14156
14157 fi
14158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14159 /* end confdefs.h. */
14160 #include <sys/devpoll.h>
14161 int
14162 main ()
14163 {
14164
14165 ;
14166 return 0;
14167 }
14168 _ACEOF
14169 if ac_fn_c_try_compile "$LINENO"; then :
14170 is_devpoll_mechanism_available="yes"
14171 else
14172 is_devpoll_mechanism_available="no"
14173 fi
14174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14175 if test "$is_devpoll_mechanism_available" = "yes" ; then
14176
14177 $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
14178
14179 fi
14180 iopoll_mechanism_poll=4
14181
14182 cat >>confdefs.h <<_ACEOF
14183 #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
14184 _ACEOF
14185
14186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14187 /* end confdefs.h. */
14188 /* Define poll to an innocuous variant, in case <limits.h> declares poll.
14189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14190 #define poll innocuous_poll
14191
14192 /* System header to define __stub macros and hopefully few prototypes,
14193 which can conflict with char poll (); below.
14194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14195 <limits.h> exists even on freestanding compilers. */
14196
14197 #ifdef __STDC__
14198 # include <limits.h>
14199 #else
14200 # include <assert.h>
14201 #endif
14202
14203 #undef poll
14204
14205 /* Override any GCC internal prototype to avoid an error.
14206 Use char because int might match the return type of a GCC
14207 builtin and then its argument prototype would still apply. */
14208 #ifdef __cplusplus
14209 extern "C"
14210 #endif
14211 char poll ();
14212 /* The GNU C library defines this for functions which it implements
14213 to always fail with ENOSYS. Some functions are actually named
14214 something starting with __ and the normal name is an alias. */
14215 #if defined __stub_poll || defined __stub___poll
14216 choke me
14217 #endif
14218
14219 int
14220 main ()
14221 {
14222 return poll ();
14223 ;
14224 return 0;
14225 }
14226 _ACEOF
14227 if ac_fn_c_try_link "$LINENO"; then :
14228 is_poll_mechanism_available="yes"
14229 else
14230 is_poll_mechanism_available="no"
14231 fi
14232 rm -f core conftest.err conftest.$ac_objext \
14233 conftest$ac_exeext conftest.$ac_ext
14234 iopoll_mechanism_select=5
14235
14236 cat >>confdefs.h <<_ACEOF
14237 #define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select
14238 _ACEOF
14239
14240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14241 /* end confdefs.h. */
14242 /* Define select to an innocuous variant, in case <limits.h> declares select.
14243 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14244 #define select innocuous_select
14245
14246 /* System header to define __stub macros and hopefully few prototypes,
14247 which can conflict with char select (); below.
14248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14249 <limits.h> exists even on freestanding compilers. */
14250
14251 #ifdef __STDC__
14252 # include <limits.h>
14253 #else
14254 # include <assert.h>
14255 #endif
14256
14257 #undef select
14258
14259 /* Override any GCC internal prototype to avoid an error.
14260 Use char because int might match the return type of a GCC
14261 builtin and then its argument prototype would still apply. */
14262 #ifdef __cplusplus
14263 extern "C"
14264 #endif
14265 char select ();
14266 /* The GNU C library defines this for functions which it implements
14267 to always fail with ENOSYS. Some functions are actually named
14268 something starting with __ and the normal name is an alias. */
14269 #if defined __stub_select || defined __stub___select
14270 choke me
14271 #endif
14272
14273 int
14274 main ()
14275 {
14276 return select ();
14277 ;
14278 return 0;
14279 }
14280 _ACEOF
14281 if ac_fn_c_try_link "$LINENO"; then :
14282 is_select_mechanism_available="yes"
14283 else
14284 is_select_mechanism_available="no"
14285 fi
14286 rm -f core conftest.err conftest.$ac_objext \
14287 conftest$ac_exeext conftest.$ac_ext
14288 optimal_iopoll_mechanism="none"
14289 for mechanism in "kqueue" "epoll" "devpoll" "poll" "select" ; do # order is important
14290 eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
14291 if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
14292 optimal_iopoll_mechanism="$mechanism"
14293 break
14294 fi
14295 done
14296 if test "$desired_iopoll_mechanism" = "none" ; then
14297 if test "$optimal_iopoll_mechanism" = "none" ; then
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14299 $as_echo "none" >&6; }
14300 as_fn_error $? "no iopoll mechanism found!" "$LINENO" 5
14301 else
14302 selected_iopoll_mechanism=$optimal_iopoll_mechanism
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14304 $as_echo "$selected_iopoll_mechanism" >&6; }
14305 fi
14306 else
14307 eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
14308 if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
14309 selected_iopoll_mechanism=$desired_iopoll_mechanism
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14311 $as_echo "$selected_iopoll_mechanism" >&6; }
14312 else
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14314 $as_echo "none" >&6; }
14315 as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
14316 fi
14317 fi
14318 eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
14319
14320 cat >>confdefs.h <<_ACEOF
14321 #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
14322 _ACEOF
14323
14324
14325
14326
14327 # Check whether --with-nicklen was given.
14328 if test "${with_nicklen+set}" = set; then :
14329 withval=$with_nicklen; nicklen="$withval"
14330 else
14331 nicklen="9"
14332 fi
14333
14334
14335 cat >>confdefs.h <<_ACEOF
14336 #define NICKLEN ($nicklen)
14337 _ACEOF
14338
14339
14340
14341
14342 # Check whether --with-topiclen was given.
14343 if test "${with_topiclen+set}" = set; then :
14344 withval=$with_topiclen; topiclen="$withval"
14345 else
14346 topiclen="160"
14347 fi
14348
14349
14350 cat >>confdefs.h <<_ACEOF
14351 #define TOPICLEN ($topiclen)
14352 _ACEOF
14353
14354
14355
14356 # Check whether --enable-halfops was given.
14357 if test "${enable_halfops+set}" = set; then :
14358 enableval=$enable_halfops; halfops="$enableval"
14359 else
14360 halfops="no"
14361 fi
14362
14363 if test "$halfops" = "yes" ; then
14364
14365 $as_echo "#define HALFOPS 1" >>confdefs.h
14366
14367 fi
14368
14369
14370 # Check whether --enable-debugging was given.
14371 if test "${enable_debugging+set}" = set; then :
14372 enableval=$enable_debugging; debugging="$enableval"
14373 else
14374 debugging="no"
14375 fi
14376
14377 if test "$debugging" = "yes" ; then
14378 CFLAGS="-Wall -g -O0"
14379 fi
14380
14381
14382 # Check whether --enable-warnings was given.
14383 if test "${enable_warnings+set}" = set; then :
14384 enableval=$enable_warnings; warnings="$enableval"
14385 else
14386 warnings="no"
14387 fi
14388
14389 if test "$warnings" = "yes" ; then
14390 CFLAGS="-Wall -Wextra -Wno-unused -Wcast-qual -Wcast-align -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wundef"
14391 fi
14392
14393
14394
14395 prefix_NONE=
14396 exec_prefix_NONE=
14397 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14398 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14399 eval ac_define_dir="\"$prefix\""
14400 eval ac_define_dir="\"$ac_define_dir\""
14401 PREFIX="$ac_define_dir"
14402
14403
14404 cat >>confdefs.h <<_ACEOF
14405 #define PREFIX "$ac_define_dir"
14406 _ACEOF
14407
14408 test "$prefix_NONE" && prefix=NONE
14409 test "$exec_prefix_NONE" && exec_prefix=NONE
14410
14411
14412 prefix_NONE=
14413 exec_prefix_NONE=
14414 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14415 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14416 eval ac_define_dir="\"$sysconfdir\""
14417 eval ac_define_dir="\"$ac_define_dir\""
14418 SYSCONFDIR="$ac_define_dir"
14419
14420
14421 cat >>confdefs.h <<_ACEOF
14422 #define SYSCONFDIR "$ac_define_dir"
14423 _ACEOF
14424
14425 test "$prefix_NONE" && prefix=NONE
14426 test "$exec_prefix_NONE" && exec_prefix=NONE
14427
14428
14429 prefix_NONE=
14430 exec_prefix_NONE=
14431 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14432 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14433 eval ac_define_dir="\"$libdir\""
14434 eval ac_define_dir="\"$ac_define_dir\""
14435 LIBDIR="$ac_define_dir"
14436
14437
14438 cat >>confdefs.h <<_ACEOF
14439 #define LIBDIR "$ac_define_dir"
14440 _ACEOF
14441
14442 test "$prefix_NONE" && prefix=NONE
14443 test "$exec_prefix_NONE" && exec_prefix=NONE
14444
14445
14446 prefix_NONE=
14447 exec_prefix_NONE=
14448 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14449 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14450 eval ac_define_dir="\"$datadir\""
14451 eval ac_define_dir="\"$ac_define_dir\""
14452 DATADIR="$ac_define_dir"
14453
14454
14455 cat >>confdefs.h <<_ACEOF
14456 #define DATADIR "$ac_define_dir"
14457 _ACEOF
14458
14459 test "$prefix_NONE" && prefix=NONE
14460 test "$exec_prefix_NONE" && exec_prefix=NONE
14461
14462
14463 prefix_NONE=
14464 exec_prefix_NONE=
14465 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14466 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14467 eval ac_define_dir="\"$localstatedir\""
14468 eval ac_define_dir="\"$ac_define_dir\""
14469 LOCALSTATEDIR="$ac_define_dir"
14470
14471
14472 cat >>confdefs.h <<_ACEOF
14473 #define LOCALSTATEDIR "$ac_define_dir"
14474 _ACEOF
14475
14476 test "$prefix_NONE" && prefix=NONE
14477 test "$exec_prefix_NONE" && exec_prefix=NONE
14478
14479
14480 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"
14481
14482
14483 cat >confcache <<\_ACEOF
14484 # This file is a shell script that caches the results of configure
14485 # tests run on this system so they can be shared between configure
14486 # scripts and configure runs, see configure's option --config-cache.
14487 # It is not useful on other systems. If it contains results you don't
14488 # want to keep, you may remove or edit it.
14489 #
14490 # config.status only pays attention to the cache file if you give it
14491 # the --recheck option to rerun configure.
14492 #
14493 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14494 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14495 # following values.
14496
14497 _ACEOF
14498
14499 # The following way of writing the cache mishandles newlines in values,
14500 # but we know of no workaround that is simple, portable, and efficient.
14501 # So, we kill variables containing newlines.
14502 # Ultrix sh set writes to stderr and can't be redirected directly,
14503 # and sets the high bit in the cache file unless we assign to the vars.
14504 (
14505 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14506 eval ac_val=\$$ac_var
14507 case $ac_val in #(
14508 *${as_nl}*)
14509 case $ac_var in #(
14510 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14511 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14512 esac
14513 case $ac_var in #(
14514 _ | IFS | as_nl) ;; #(
14515 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14516 *) { eval $ac_var=; unset $ac_var;} ;;
14517 esac ;;
14518 esac
14519 done
14520
14521 (set) 2>&1 |
14522 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14523 *${as_nl}ac_space=\ *)
14524 # `set' does not quote correctly, so add quotes: double-quote
14525 # substitution turns \\\\ into \\, and sed turns \\ into \.
14526 sed -n \
14527 "s/'/'\\\\''/g;
14528 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14529 ;; #(
14530 *)
14531 # `set' quotes correctly as required by POSIX, so do not add quotes.
14532 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14533 ;;
14534 esac |
14535 sort
14536 ) |
14537 sed '
14538 /^ac_cv_env_/b end
14539 t clear
14540 :clear
14541 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14542 t end
14543 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14544 :end' >>confcache
14545 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14546 if test -w "$cache_file"; then
14547 if test "x$cache_file" != "x/dev/null"; then
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14549 $as_echo "$as_me: updating cache $cache_file" >&6;}
14550 if test ! -f "$cache_file" || test -h "$cache_file"; then
14551 cat confcache >"$cache_file"
14552 else
14553 case $cache_file in #(
14554 */* | ?:*)
14555 mv -f confcache "$cache_file"$$ &&
14556 mv -f "$cache_file"$$ "$cache_file" ;; #(
14557 *)
14558 mv -f confcache "$cache_file" ;;
14559 esac
14560 fi
14561 fi
14562 else
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14564 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14565 fi
14566 fi
14567 rm -f confcache
14568
14569 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14570 # Let make expand exec_prefix.
14571 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14572
14573 DEFS=-DHAVE_CONFIG_H
14574
14575 ac_libobjs=
14576 ac_ltlibobjs=
14577 U=
14578 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14579 # 1. Remove the extension, and $U if already installed.
14580 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14581 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14582 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14583 # will be set to the directory where LIBOBJS objects are built.
14584 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14585 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14586 done
14587 LIBOBJS=$ac_libobjs
14588
14589 LTLIBOBJS=$ac_ltlibobjs
14590
14591
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14593 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14594 if test -n "$am_sleep_pid"; then
14595 # Hide warnings about reused PIDs.
14596 wait $am_sleep_pid 2>/dev/null
14597 fi
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14599 $as_echo "done" >&6; }
14600 if test -n "$EXEEXT"; then
14601 am__EXEEXT_TRUE=
14602 am__EXEEXT_FALSE='#'
14603 else
14604 am__EXEEXT_TRUE='#'
14605 am__EXEEXT_FALSE=
14606 fi
14607
14608 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14609 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14610 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14611 fi
14612 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14613 as_fn_error $? "conditional \"AMDEP\" was never defined.
14614 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14615 fi
14616 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14617 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14618 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14619 fi
14620 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
14621 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
14622 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14623 fi
14624 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
14625 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
14626 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14627 fi
14628 LT_CONFIG_H=config.h
14629
14630 _ltdl_libobjs=
14631 _ltdl_ltlibobjs=
14632 if test -n "$_LT_LIBOBJS"; then
14633 # Remove the extension.
14634 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
14635 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
14636 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
14637 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
14638 done
14639 fi
14640 ltdl_LIBOBJS=$_ltdl_libobjs
14641
14642 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
14643
14644
14645
14646 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
14647 as_fn_error $? "conditional \"ENABLE_SSL\" was never defined.
14648 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14649 fi
14650
14651 : "${CONFIG_STATUS=./config.status}"
14652 ac_write_fail=0
14653 ac_clean_files_save=$ac_clean_files
14654 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14656 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14657 as_write_fail=0
14658 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14659 #! $SHELL
14660 # Generated by $as_me.
14661 # Run this file to recreate the current configuration.
14662 # Compiler output produced by configure, useful for debugging
14663 # configure, is in config.log if it exists.
14664
14665 debug=false
14666 ac_cs_recheck=false
14667 ac_cs_silent=false
14668
14669 SHELL=\${CONFIG_SHELL-$SHELL}
14670 export SHELL
14671 _ASEOF
14672 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14673 ## -------------------- ##
14674 ## M4sh Initialization. ##
14675 ## -------------------- ##
14676
14677 # Be more Bourne compatible
14678 DUALCASE=1; export DUALCASE # for MKS sh
14679 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14680 emulate sh
14681 NULLCMD=:
14682 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14683 # is contrary to our usage. Disable this feature.
14684 alias -g '${1+"$@"}'='"$@"'
14685 setopt NO_GLOB_SUBST
14686 else
14687 case `(set -o) 2>/dev/null` in #(
14688 *posix*) :
14689 set -o posix ;; #(
14690 *) :
14691 ;;
14692 esac
14693 fi
14694
14695
14696 as_nl='
14697 '
14698 export as_nl
14699 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14700 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14701 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14702 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14703 # Prefer a ksh shell builtin over an external printf program on Solaris,
14704 # but without wasting forks for bash or zsh.
14705 if test -z "$BASH_VERSION$ZSH_VERSION" \
14706 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14707 as_echo='print -r --'
14708 as_echo_n='print -rn --'
14709 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14710 as_echo='printf %s\n'
14711 as_echo_n='printf %s'
14712 else
14713 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14714 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14715 as_echo_n='/usr/ucb/echo -n'
14716 else
14717 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14718 as_echo_n_body='eval
14719 arg=$1;
14720 case $arg in #(
14721 *"$as_nl"*)
14722 expr "X$arg" : "X\\(.*\\)$as_nl";
14723 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14724 esac;
14725 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14726 '
14727 export as_echo_n_body
14728 as_echo_n='sh -c $as_echo_n_body as_echo'
14729 fi
14730 export as_echo_body
14731 as_echo='sh -c $as_echo_body as_echo'
14732 fi
14733
14734 # The user is always right.
14735 if test "${PATH_SEPARATOR+set}" != set; then
14736 PATH_SEPARATOR=:
14737 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14738 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14739 PATH_SEPARATOR=';'
14740 }
14741 fi
14742
14743
14744 # IFS
14745 # We need space, tab and new line, in precisely that order. Quoting is
14746 # there to prevent editors from complaining about space-tab.
14747 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14748 # splitting by setting IFS to empty value.)
14749 IFS=" "" $as_nl"
14750
14751 # Find who we are. Look in the path if we contain no directory separator.
14752 as_myself=
14753 case $0 in #((
14754 *[\\/]* ) as_myself=$0 ;;
14755 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14756 for as_dir in $PATH
14757 do
14758 IFS=$as_save_IFS
14759 test -z "$as_dir" && as_dir=.
14760 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14761 done
14762 IFS=$as_save_IFS
14763
14764 ;;
14765 esac
14766 # We did not find ourselves, most probably we were run as `sh COMMAND'
14767 # in which case we are not to be found in the path.
14768 if test "x$as_myself" = x; then
14769 as_myself=$0
14770 fi
14771 if test ! -f "$as_myself"; then
14772 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14773 exit 1
14774 fi
14775
14776 # Unset variables that we do not need and which cause bugs (e.g. in
14777 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14778 # suppresses any "Segmentation fault" message there. '((' could
14779 # trigger a bug in pdksh 5.2.14.
14780 for as_var in BASH_ENV ENV MAIL MAILPATH
14781 do eval test x\${$as_var+set} = xset \
14782 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14783 done
14784 PS1='$ '
14785 PS2='> '
14786 PS4='+ '
14787
14788 # NLS nuisances.
14789 LC_ALL=C
14790 export LC_ALL
14791 LANGUAGE=C
14792 export LANGUAGE
14793
14794 # CDPATH.
14795 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14796
14797
14798 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14799 # ----------------------------------------
14800 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14801 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14802 # script with STATUS, using 1 if that was 0.
14803 as_fn_error ()
14804 {
14805 as_status=$1; test $as_status -eq 0 && as_status=1
14806 if test "$4"; then
14807 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14808 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14809 fi
14810 $as_echo "$as_me: error: $2" >&2
14811 as_fn_exit $as_status
14812 } # as_fn_error
14813
14814
14815 # as_fn_set_status STATUS
14816 # -----------------------
14817 # Set $? to STATUS, without forking.
14818 as_fn_set_status ()
14819 {
14820 return $1
14821 } # as_fn_set_status
14822
14823 # as_fn_exit STATUS
14824 # -----------------
14825 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14826 as_fn_exit ()
14827 {
14828 set +e
14829 as_fn_set_status $1
14830 exit $1
14831 } # as_fn_exit
14832
14833 # as_fn_unset VAR
14834 # ---------------
14835 # Portably unset VAR.
14836 as_fn_unset ()
14837 {
14838 { eval $1=; unset $1;}
14839 }
14840 as_unset=as_fn_unset
14841 # as_fn_append VAR VALUE
14842 # ----------------------
14843 # Append the text in VALUE to the end of the definition contained in VAR. Take
14844 # advantage of any shell optimizations that allow amortized linear growth over
14845 # repeated appends, instead of the typical quadratic growth present in naive
14846 # implementations.
14847 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14848 eval 'as_fn_append ()
14849 {
14850 eval $1+=\$2
14851 }'
14852 else
14853 as_fn_append ()
14854 {
14855 eval $1=\$$1\$2
14856 }
14857 fi # as_fn_append
14858
14859 # as_fn_arith ARG...
14860 # ------------------
14861 # Perform arithmetic evaluation on the ARGs, and store the result in the
14862 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14863 # must be portable across $(()) and expr.
14864 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14865 eval 'as_fn_arith ()
14866 {
14867 as_val=$(( $* ))
14868 }'
14869 else
14870 as_fn_arith ()
14871 {
14872 as_val=`expr "$@" || test $? -eq 1`
14873 }
14874 fi # as_fn_arith
14875
14876
14877 if expr a : '\(a\)' >/dev/null 2>&1 &&
14878 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14879 as_expr=expr
14880 else
14881 as_expr=false
14882 fi
14883
14884 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14885 as_basename=basename
14886 else
14887 as_basename=false
14888 fi
14889
14890 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14891 as_dirname=dirname
14892 else
14893 as_dirname=false
14894 fi
14895
14896 as_me=`$as_basename -- "$0" ||
14897 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14898 X"$0" : 'X\(//\)$' \| \
14899 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14900 $as_echo X/"$0" |
14901 sed '/^.*\/\([^/][^/]*\)\/*$/{
14902 s//\1/
14903 q
14904 }
14905 /^X\/\(\/\/\)$/{
14906 s//\1/
14907 q
14908 }
14909 /^X\/\(\/\).*/{
14910 s//\1/
14911 q
14912 }
14913 s/.*/./; q'`
14914
14915 # Avoid depending upon Character Ranges.
14916 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14917 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14918 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14919 as_cr_digits='0123456789'
14920 as_cr_alnum=$as_cr_Letters$as_cr_digits
14921
14922 ECHO_C= ECHO_N= ECHO_T=
14923 case `echo -n x` in #(((((
14924 -n*)
14925 case `echo 'xy\c'` in
14926 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14927 xy) ECHO_C='\c';;
14928 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14929 ECHO_T=' ';;
14930 esac;;
14931 *)
14932 ECHO_N='-n';;
14933 esac
14934
14935 rm -f conf$$ conf$$.exe conf$$.file
14936 if test -d conf$$.dir; then
14937 rm -f conf$$.dir/conf$$.file
14938 else
14939 rm -f conf$$.dir
14940 mkdir conf$$.dir 2>/dev/null
14941 fi
14942 if (echo >conf$$.file) 2>/dev/null; then
14943 if ln -s conf$$.file conf$$ 2>/dev/null; then
14944 as_ln_s='ln -s'
14945 # ... but there are two gotchas:
14946 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14947 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14948 # In both cases, we have to default to `cp -pR'.
14949 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14950 as_ln_s='cp -pR'
14951 elif ln conf$$.file conf$$ 2>/dev/null; then
14952 as_ln_s=ln
14953 else
14954 as_ln_s='cp -pR'
14955 fi
14956 else
14957 as_ln_s='cp -pR'
14958 fi
14959 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14960 rmdir conf$$.dir 2>/dev/null
14961
14962
14963 # as_fn_mkdir_p
14964 # -------------
14965 # Create "$as_dir" as a directory, including parents if necessary.
14966 as_fn_mkdir_p ()
14967 {
14968
14969 case $as_dir in #(
14970 -*) as_dir=./$as_dir;;
14971 esac
14972 test -d "$as_dir" || eval $as_mkdir_p || {
14973 as_dirs=
14974 while :; do
14975 case $as_dir in #(
14976 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14977 *) as_qdir=$as_dir;;
14978 esac
14979 as_dirs="'$as_qdir' $as_dirs"
14980 as_dir=`$as_dirname -- "$as_dir" ||
14981 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14982 X"$as_dir" : 'X\(//\)[^/]' \| \
14983 X"$as_dir" : 'X\(//\)$' \| \
14984 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14985 $as_echo X"$as_dir" |
14986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14987 s//\1/
14988 q
14989 }
14990 /^X\(\/\/\)[^/].*/{
14991 s//\1/
14992 q
14993 }
14994 /^X\(\/\/\)$/{
14995 s//\1/
14996 q
14997 }
14998 /^X\(\/\).*/{
14999 s//\1/
15000 q
15001 }
15002 s/.*/./; q'`
15003 test -d "$as_dir" && break
15004 done
15005 test -z "$as_dirs" || eval "mkdir $as_dirs"
15006 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15007
15008
15009 } # as_fn_mkdir_p
15010 if mkdir -p . 2>/dev/null; then
15011 as_mkdir_p='mkdir -p "$as_dir"'
15012 else
15013 test -d ./-p && rmdir ./-p
15014 as_mkdir_p=false
15015 fi
15016
15017
15018 # as_fn_executable_p FILE
15019 # -----------------------
15020 # Test if FILE is an executable regular file.
15021 as_fn_executable_p ()
15022 {
15023 test -f "$1" && test -x "$1"
15024 } # as_fn_executable_p
15025 as_test_x='test -x'
15026 as_executable_p=as_fn_executable_p
15027
15028 # Sed expression to map a string onto a valid CPP name.
15029 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15030
15031 # Sed expression to map a string onto a valid variable name.
15032 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15033
15034
15035 exec 6>&1
15036 ## ----------------------------------- ##
15037 ## Main body of $CONFIG_STATUS script. ##
15038 ## ----------------------------------- ##
15039 _ASEOF
15040 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15041
15042 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15043 # Save the log message, to keep $0 and so on meaningful, and to
15044 # report actual input values of CONFIG_FILES etc. instead of their
15045 # values after options handling.
15046 ac_log="
15047 This file was extended by ircd-hybrid $as_me TRUNK, which was
15048 generated by GNU Autoconf 2.69. Invocation command line was
15049
15050 CONFIG_FILES = $CONFIG_FILES
15051 CONFIG_HEADERS = $CONFIG_HEADERS
15052 CONFIG_LINKS = $CONFIG_LINKS
15053 CONFIG_COMMANDS = $CONFIG_COMMANDS
15054 $ $0 $@
15055
15056 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15057 "
15058
15059 _ACEOF
15060
15061 case $ac_config_files in *"
15062 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15063 esac
15064
15065 case $ac_config_headers in *"
15066 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15067 esac
15068
15069
15070 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15071 # Files that config.status was made for.
15072 config_files="$ac_config_files"
15073 config_headers="$ac_config_headers"
15074 config_commands="$ac_config_commands"
15075
15076 _ACEOF
15077
15078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15079 ac_cs_usage="\
15080 \`$as_me' instantiates files and other configuration actions
15081 from templates according to the current configuration. Unless the files
15082 and actions are specified as TAGs, all are instantiated by default.
15083
15084 Usage: $0 [OPTION]... [TAG]...
15085
15086 -h, --help print this help, then exit
15087 -V, --version print version number and configuration settings, then exit
15088 --config print configuration, then exit
15089 -q, --quiet, --silent
15090 do not print progress messages
15091 -d, --debug don't remove temporary files
15092 --recheck update $as_me by reconfiguring in the same conditions
15093 --file=FILE[:TEMPLATE]
15094 instantiate the configuration file FILE
15095 --header=FILE[:TEMPLATE]
15096 instantiate the configuration header FILE
15097
15098 Configuration files:
15099 $config_files
15100
15101 Configuration headers:
15102 $config_headers
15103
15104 Configuration commands:
15105 $config_commands
15106
15107 Report bugs to <bugs@ircd-hybrid.org>."
15108
15109 _ACEOF
15110 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15111 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15112 ac_cs_version="\\
15113 ircd-hybrid config.status TRUNK
15114 configured by $0, generated by GNU Autoconf 2.69,
15115 with options \\"\$ac_cs_config\\"
15116
15117 Copyright (C) 2012 Free Software Foundation, Inc.
15118 This config.status script is free software; the Free Software Foundation
15119 gives unlimited permission to copy, distribute and modify it."
15120
15121 ac_pwd='$ac_pwd'
15122 srcdir='$srcdir'
15123 INSTALL='$INSTALL'
15124 MKDIR_P='$MKDIR_P'
15125 AWK='$AWK'
15126 test -n "\$AWK" || AWK=awk
15127 _ACEOF
15128
15129 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15130 # The default lists apply if the user does not specify any file.
15131 ac_need_defaults=:
15132 while test $# != 0
15133 do
15134 case $1 in
15135 --*=?*)
15136 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15137 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15138 ac_shift=:
15139 ;;
15140 --*=)
15141 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15142 ac_optarg=
15143 ac_shift=:
15144 ;;
15145 *)
15146 ac_option=$1
15147 ac_optarg=$2
15148 ac_shift=shift
15149 ;;
15150 esac
15151
15152 case $ac_option in
15153 # Handling of the options.
15154 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15155 ac_cs_recheck=: ;;
15156 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15157 $as_echo "$ac_cs_version"; exit ;;
15158 --config | --confi | --conf | --con | --co | --c )
15159 $as_echo "$ac_cs_config"; exit ;;
15160 --debug | --debu | --deb | --de | --d | -d )
15161 debug=: ;;
15162 --file | --fil | --fi | --f )
15163 $ac_shift
15164 case $ac_optarg in
15165 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15166 '') as_fn_error $? "missing file argument" ;;
15167 esac
15168 as_fn_append CONFIG_FILES " '$ac_optarg'"
15169 ac_need_defaults=false;;
15170 --header | --heade | --head | --hea )
15171 $ac_shift
15172 case $ac_optarg in
15173 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15174 esac
15175 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15176 ac_need_defaults=false;;
15177 --he | --h)
15178 # Conflict between --help and --header
15179 as_fn_error $? "ambiguous option: \`$1'
15180 Try \`$0 --help' for more information.";;
15181 --help | --hel | -h )
15182 $as_echo "$ac_cs_usage"; exit ;;
15183 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15184 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15185 ac_cs_silent=: ;;
15186
15187 # This is an error.
15188 -*) as_fn_error $? "unrecognized option: \`$1'
15189 Try \`$0 --help' for more information." ;;
15190
15191 *) as_fn_append ac_config_targets " $1"
15192 ac_need_defaults=false ;;
15193
15194 esac
15195 shift
15196 done
15197
15198 ac_configure_extra_args=
15199
15200 if $ac_cs_silent; then
15201 exec 6>/dev/null
15202 ac_configure_extra_args="$ac_configure_extra_args --silent"
15203 fi
15204
15205 _ACEOF
15206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15207 if \$ac_cs_recheck; then
15208 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15209 shift
15210 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15211 CONFIG_SHELL='$SHELL'
15212 export CONFIG_SHELL
15213 exec "\$@"
15214 fi
15215
15216 _ACEOF
15217 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15218 exec 5>>config.log
15219 {
15220 echo
15221 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15222 ## Running $as_me. ##
15223 _ASBOX
15224 $as_echo "$ac_log"
15225 } >&5
15226
15227 _ACEOF
15228 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15229 #
15230 # INIT-COMMANDS
15231 #
15232 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15233
15234
15235 # The HP-UX ksh and POSIX shell print the target directory to stdout
15236 # if CDPATH is set.
15237 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15238
15239 sed_quote_subst='$sed_quote_subst'
15240 double_quote_subst='$double_quote_subst'
15241 delay_variable_subst='$delay_variable_subst'
15242 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15243 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15244 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15245 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15246 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15247 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15248 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15249 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15250 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15251 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15252 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15253 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15254 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15255 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15256 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15257 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15258 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15259 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15260 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15261 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15262 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15263 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15264 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15265 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15266 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15267 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15268 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15269 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15270 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15271 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15272 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15273 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15274 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15275 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15276 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15277 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15278 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15279 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15280 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15281 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15282 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15283 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15284 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15285 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15286 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15287 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15288 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15289 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15290 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15291 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15292 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15293 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15294 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15295 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15296 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15297 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15298 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"`'
15299 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15300 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15301 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15302 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15303 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15304 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15305 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15306 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15307 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15308 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15309 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15310 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15311 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15312 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15313 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15314 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15315 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15316 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15317 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15318 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15319 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15320 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15321 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15322 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15323 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15324 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15325 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15326 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15327 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15328 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15329 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15330 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15331 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15332 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15333 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15334 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15335 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15336 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15337 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15338 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15339 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15340 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15341 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15342 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15343 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15344 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15345 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15346 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15347 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15348 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15349 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15350 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15351 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15352 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15353 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15354 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15355 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15356 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15357 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15358 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15359 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15360 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15361 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15362 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15363 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15364 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15365 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15366 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15367 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15368 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15369 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15370 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15371 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15372
15373 LTCC='$LTCC'
15374 LTCFLAGS='$LTCFLAGS'
15375 compiler='$compiler_DEFAULT'
15376
15377 # A function that is used when there is no print builtin or printf.
15378 func_fallback_echo ()
15379 {
15380 eval 'cat <<_LTECHO_EOF
15381 \$1
15382 _LTECHO_EOF'
15383 }
15384
15385 # Quote evaled strings.
15386 for var in SHELL \
15387 ECHO \
15388 PATH_SEPARATOR \
15389 SED \
15390 GREP \
15391 EGREP \
15392 FGREP \
15393 LD \
15394 NM \
15395 LN_S \
15396 lt_SP2NL \
15397 lt_NL2SP \
15398 reload_flag \
15399 OBJDUMP \
15400 deplibs_check_method \
15401 file_magic_cmd \
15402 file_magic_glob \
15403 want_nocaseglob \
15404 DLLTOOL \
15405 sharedlib_from_linklib_cmd \
15406 AR \
15407 AR_FLAGS \
15408 archiver_list_spec \
15409 STRIP \
15410 RANLIB \
15411 CC \
15412 CFLAGS \
15413 compiler \
15414 lt_cv_sys_global_symbol_pipe \
15415 lt_cv_sys_global_symbol_to_cdecl \
15416 lt_cv_sys_global_symbol_to_c_name_address \
15417 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15418 nm_file_list_spec \
15419 lt_prog_compiler_no_builtin_flag \
15420 lt_prog_compiler_pic \
15421 lt_prog_compiler_wl \
15422 lt_prog_compiler_static \
15423 lt_cv_prog_compiler_c_o \
15424 need_locks \
15425 MANIFEST_TOOL \
15426 DSYMUTIL \
15427 NMEDIT \
15428 LIPO \
15429 OTOOL \
15430 OTOOL64 \
15431 shrext_cmds \
15432 export_dynamic_flag_spec \
15433 whole_archive_flag_spec \
15434 compiler_needs_object \
15435 with_gnu_ld \
15436 allow_undefined_flag \
15437 no_undefined_flag \
15438 hardcode_libdir_flag_spec \
15439 hardcode_libdir_separator \
15440 exclude_expsyms \
15441 include_expsyms \
15442 file_list_spec \
15443 variables_saved_for_relink \
15444 libname_spec \
15445 library_names_spec \
15446 soname_spec \
15447 install_override_mode \
15448 finish_eval \
15449 old_striplib \
15450 striplib; do
15451 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15452 *[\\\\\\\`\\"\\\$]*)
15453 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15454 ;;
15455 *)
15456 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15457 ;;
15458 esac
15459 done
15460
15461 # Double-quote double-evaled strings.
15462 for var in reload_cmds \
15463 old_postinstall_cmds \
15464 old_postuninstall_cmds \
15465 old_archive_cmds \
15466 extract_expsyms_cmds \
15467 old_archive_from_new_cmds \
15468 old_archive_from_expsyms_cmds \
15469 archive_cmds \
15470 archive_expsym_cmds \
15471 module_cmds \
15472 module_expsym_cmds \
15473 export_symbols_cmds \
15474 prelink_cmds \
15475 postlink_cmds \
15476 postinstall_cmds \
15477 postuninstall_cmds \
15478 finish_cmds \
15479 sys_lib_search_path_spec \
15480 sys_lib_dlsearch_path_spec; do
15481 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15482 *[\\\\\\\`\\"\\\$]*)
15483 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15484 ;;
15485 *)
15486 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15487 ;;
15488 esac
15489 done
15490
15491 ac_aux_dir='$ac_aux_dir'
15492 xsi_shell='$xsi_shell'
15493 lt_shell_append='$lt_shell_append'
15494
15495 # See if we are running on zsh, and set the options which allow our
15496 # commands through without removal of \ escapes INIT.
15497 if test -n "\${ZSH_VERSION+set}" ; then
15498 setopt NO_GLOB_SUBST
15499 fi
15500
15501
15502 PACKAGE='$PACKAGE'
15503 VERSION='$VERSION'
15504 TIMESTAMP='$TIMESTAMP'
15505 RM='$RM'
15506 ofile='$ofile'
15507
15508
15509
15510
15511 _ACEOF
15512
15513 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15514
15515 # Handling of arguments.
15516 for ac_config_target in $ac_config_targets
15517 do
15518 case $ac_config_target in
15519 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15520 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15521 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15522 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15523 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15524 "libltdl/Makefile") CONFIG_FILES="$CONFIG_FILES libltdl/Makefile" ;;
15525 "messages/Makefile") CONFIG_FILES="$CONFIG_FILES messages/Makefile" ;;
15526 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
15527 "modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;;
15528 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15529 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
15530 "help/opers/Makefile") CONFIG_FILES="$CONFIG_FILES help/opers/Makefile" ;;
15531 "help/users/Makefile") CONFIG_FILES="$CONFIG_FILES help/users/Makefile" ;;
15532 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
15533
15534 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15535 esac
15536 done
15537
15538
15539 # If the user did not use the arguments to specify the items to instantiate,
15540 # then the envvar interface is used. Set only those that are not.
15541 # We use the long form for the default assignment because of an extremely
15542 # bizarre bug on SunOS 4.1.3.
15543 if $ac_need_defaults; then
15544 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15545 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15546 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15547 fi
15548
15549 # Have a temporary directory for convenience. Make it in the build tree
15550 # simply because there is no reason against having it here, and in addition,
15551 # creating and moving files from /tmp can sometimes cause problems.
15552 # Hook for its removal unless debugging.
15553 # Note that there is a small window in which the directory will not be cleaned:
15554 # after its creation but before its name has been assigned to `$tmp'.
15555 $debug ||
15556 {
15557 tmp= ac_tmp=
15558 trap 'exit_status=$?
15559 : "${ac_tmp:=$tmp}"
15560 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15561 ' 0
15562 trap 'as_fn_exit 1' 1 2 13 15
15563 }
15564 # Create a (secure) tmp directory for tmp files.
15565
15566 {
15567 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15568 test -d "$tmp"
15569 } ||
15570 {
15571 tmp=./conf$$-$RANDOM
15572 (umask 077 && mkdir "$tmp")
15573 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15574 ac_tmp=$tmp
15575
15576 # Set up the scripts for CONFIG_FILES section.
15577 # No need to generate them if there are no CONFIG_FILES.
15578 # This happens for instance with `./config.status config.h'.
15579 if test -n "$CONFIG_FILES"; then
15580
15581
15582 ac_cr=`echo X | tr X '\015'`
15583 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15584 # But we know of no other shell where ac_cr would be empty at this
15585 # point, so we can use a bashism as a fallback.
15586 if test "x$ac_cr" = x; then
15587 eval ac_cr=\$\'\\r\'
15588 fi
15589 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15590 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15591 ac_cs_awk_cr='\\r'
15592 else
15593 ac_cs_awk_cr=$ac_cr
15594 fi
15595
15596 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15597 _ACEOF
15598
15599
15600 {
15601 echo "cat >conf$$subs.awk <<_ACEOF" &&
15602 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15603 echo "_ACEOF"
15604 } >conf$$subs.sh ||
15605 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15606 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15607 ac_delim='%!_!# '
15608 for ac_last_try in false false false false false :; do
15609 . ./conf$$subs.sh ||
15610 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15611
15612 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15613 if test $ac_delim_n = $ac_delim_num; then
15614 break
15615 elif $ac_last_try; then
15616 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15617 else
15618 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15619 fi
15620 done
15621 rm -f conf$$subs.sh
15622
15623 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15624 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15625 _ACEOF
15626 sed -n '
15627 h
15628 s/^/S["/; s/!.*/"]=/
15629 p
15630 g
15631 s/^[^!]*!//
15632 :repl
15633 t repl
15634 s/'"$ac_delim"'$//
15635 t delim
15636 :nl
15637 h
15638 s/\(.\{148\}\)..*/\1/
15639 t more1
15640 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15641 p
15642 n
15643 b repl
15644 :more1
15645 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15646 p
15647 g
15648 s/.\{148\}//
15649 t nl
15650 :delim
15651 h
15652 s/\(.\{148\}\)..*/\1/
15653 t more2
15654 s/["\\]/\\&/g; s/^/"/; s/$/"/
15655 p
15656 b
15657 :more2
15658 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15659 p
15660 g
15661 s/.\{148\}//
15662 t delim
15663 ' <conf$$subs.awk | sed '
15664 /^[^""]/{
15665 N
15666 s/\n//
15667 }
15668 ' >>$CONFIG_STATUS || ac_write_fail=1
15669 rm -f conf$$subs.awk
15670 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15671 _ACAWK
15672 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15673 for (key in S) S_is_set[key] = 1
15674 FS = ""
15675
15676 }
15677 {
15678 line = $ 0
15679 nfields = split(line, field, "@")
15680 substed = 0
15681 len = length(field[1])
15682 for (i = 2; i < nfields; i++) {
15683 key = field[i]
15684 keylen = length(key)
15685 if (S_is_set[key]) {
15686 value = S[key]
15687 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15688 len += length(value) + length(field[++i])
15689 substed = 1
15690 } else
15691 len += 1 + keylen
15692 }
15693
15694 print line
15695 }
15696
15697 _ACAWK
15698 _ACEOF
15699 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15700 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15701 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15702 else
15703 cat
15704 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15705 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15706 _ACEOF
15707
15708 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15709 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15710 # trailing colons and then remove the whole line if VPATH becomes empty
15711 # (actually we leave an empty line to preserve line numbers).
15712 if test "x$srcdir" = x.; then
15713 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15714 h
15715 s///
15716 s/^/:/
15717 s/[ ]*$/:/
15718 s/:\$(srcdir):/:/g
15719 s/:\${srcdir}:/:/g
15720 s/:@srcdir@:/:/g
15721 s/^:*//
15722 s/:*$//
15723 x
15724 s/\(=[ ]*\).*/\1/
15725 G
15726 s/\n//
15727 s/^[^=]*=[ ]*$//
15728 }'
15729 fi
15730
15731 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15732 fi # test -n "$CONFIG_FILES"
15733
15734 # Set up the scripts for CONFIG_HEADERS section.
15735 # No need to generate them if there are no CONFIG_HEADERS.
15736 # This happens for instance with `./config.status Makefile'.
15737 if test -n "$CONFIG_HEADERS"; then
15738 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15739 BEGIN {
15740 _ACEOF
15741
15742 # Transform confdefs.h into an awk script `defines.awk', embedded as
15743 # here-document in config.status, that substitutes the proper values into
15744 # config.h.in to produce config.h.
15745
15746 # Create a delimiter string that does not exist in confdefs.h, to ease
15747 # handling of long lines.
15748 ac_delim='%!_!# '
15749 for ac_last_try in false false :; do
15750 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15751 if test -z "$ac_tt"; then
15752 break
15753 elif $ac_last_try; then
15754 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15755 else
15756 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15757 fi
15758 done
15759
15760 # For the awk script, D is an array of macro values keyed by name,
15761 # likewise P contains macro parameters if any. Preserve backslash
15762 # newline sequences.
15763
15764 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15765 sed -n '
15766 s/.\{148\}/&'"$ac_delim"'/g
15767 t rset
15768 :rset
15769 s/^[ ]*#[ ]*define[ ][ ]*/ /
15770 t def
15771 d
15772 :def
15773 s/\\$//
15774 t bsnl
15775 s/["\\]/\\&/g
15776 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15777 D["\1"]=" \3"/p
15778 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15779 d
15780 :bsnl
15781 s/["\\]/\\&/g
15782 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15783 D["\1"]=" \3\\\\\\n"\\/p
15784 t cont
15785 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15786 t cont
15787 d
15788 :cont
15789 n
15790 s/.\{148\}/&'"$ac_delim"'/g
15791 t clear
15792 :clear
15793 s/\\$//
15794 t bsnlc
15795 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15796 d
15797 :bsnlc
15798 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15799 b cont
15800 ' <confdefs.h | sed '
15801 s/'"$ac_delim"'/"\\\
15802 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15803
15804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15805 for (key in D) D_is_set[key] = 1
15806 FS = ""
15807 }
15808 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15809 line = \$ 0
15810 split(line, arg, " ")
15811 if (arg[1] == "#") {
15812 defundef = arg[2]
15813 mac1 = arg[3]
15814 } else {
15815 defundef = substr(arg[1], 2)
15816 mac1 = arg[2]
15817 }
15818 split(mac1, mac2, "(") #)
15819 macro = mac2[1]
15820 prefix = substr(line, 1, index(line, defundef) - 1)
15821 if (D_is_set[macro]) {
15822 # Preserve the white space surrounding the "#".
15823 print prefix "define", macro P[macro] D[macro]
15824 next
15825 } else {
15826 # Replace #undef with comments. This is necessary, for example,
15827 # in the case of _POSIX_SOURCE, which is predefined and required
15828 # on some systems where configure will not decide to define it.
15829 if (defundef == "undef") {
15830 print "/*", prefix defundef, macro, "*/"
15831 next
15832 }
15833 }
15834 }
15835 { print }
15836 _ACAWK
15837 _ACEOF
15838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15839 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15840 fi # test -n "$CONFIG_HEADERS"
15841
15842
15843 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15844 shift
15845 for ac_tag
15846 do
15847 case $ac_tag in
15848 :[FHLC]) ac_mode=$ac_tag; continue;;
15849 esac
15850 case $ac_mode$ac_tag in
15851 :[FHL]*:*);;
15852 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15853 :[FH]-) ac_tag=-:-;;
15854 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15855 esac
15856 ac_save_IFS=$IFS
15857 IFS=:
15858 set x $ac_tag
15859 IFS=$ac_save_IFS
15860 shift
15861 ac_file=$1
15862 shift
15863
15864 case $ac_mode in
15865 :L) ac_source=$1;;
15866 :[FH])
15867 ac_file_inputs=
15868 for ac_f
15869 do
15870 case $ac_f in
15871 -) ac_f="$ac_tmp/stdin";;
15872 *) # Look for the file first in the build tree, then in the source tree
15873 # (if the path is not absolute). The absolute path cannot be DOS-style,
15874 # because $ac_f cannot contain `:'.
15875 test -f "$ac_f" ||
15876 case $ac_f in
15877 [\\/$]*) false;;
15878 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15879 esac ||
15880 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15881 esac
15882 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15883 as_fn_append ac_file_inputs " '$ac_f'"
15884 done
15885
15886 # Let's still pretend it is `configure' which instantiates (i.e., don't
15887 # use $as_me), people would be surprised to read:
15888 # /* config.h. Generated by config.status. */
15889 configure_input='Generated from '`
15890 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15891 `' by configure.'
15892 if test x"$ac_file" != x-; then
15893 configure_input="$ac_file. $configure_input"
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15895 $as_echo "$as_me: creating $ac_file" >&6;}
15896 fi
15897 # Neutralize special characters interpreted by sed in replacement strings.
15898 case $configure_input in #(
15899 *\&* | *\|* | *\\* )
15900 ac_sed_conf_input=`$as_echo "$configure_input" |
15901 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15902 *) ac_sed_conf_input=$configure_input;;
15903 esac
15904
15905 case $ac_tag in
15906 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15907 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15908 esac
15909 ;;
15910 esac
15911
15912 ac_dir=`$as_dirname -- "$ac_file" ||
15913 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15914 X"$ac_file" : 'X\(//\)[^/]' \| \
15915 X"$ac_file" : 'X\(//\)$' \| \
15916 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15917 $as_echo X"$ac_file" |
15918 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15919 s//\1/
15920 q
15921 }
15922 /^X\(\/\/\)[^/].*/{
15923 s//\1/
15924 q
15925 }
15926 /^X\(\/\/\)$/{
15927 s//\1/
15928 q
15929 }
15930 /^X\(\/\).*/{
15931 s//\1/
15932 q
15933 }
15934 s/.*/./; q'`
15935 as_dir="$ac_dir"; as_fn_mkdir_p
15936 ac_builddir=.
15937
15938 case "$ac_dir" in
15939 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15940 *)
15941 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15942 # A ".." for each directory in $ac_dir_suffix.
15943 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15944 case $ac_top_builddir_sub in
15945 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15946 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15947 esac ;;
15948 esac
15949 ac_abs_top_builddir=$ac_pwd
15950 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15951 # for backward compatibility:
15952 ac_top_builddir=$ac_top_build_prefix
15953
15954 case $srcdir in
15955 .) # We are building in place.
15956 ac_srcdir=.
15957 ac_top_srcdir=$ac_top_builddir_sub
15958 ac_abs_top_srcdir=$ac_pwd ;;
15959 [\\/]* | ?:[\\/]* ) # Absolute name.
15960 ac_srcdir=$srcdir$ac_dir_suffix;
15961 ac_top_srcdir=$srcdir
15962 ac_abs_top_srcdir=$srcdir ;;
15963 *) # Relative name.
15964 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15965 ac_top_srcdir=$ac_top_build_prefix$srcdir
15966 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15967 esac
15968 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15969
15970
15971 case $ac_mode in
15972 :F)
15973 #
15974 # CONFIG_FILE
15975 #
15976
15977 case $INSTALL in
15978 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15979 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15980 esac
15981 ac_MKDIR_P=$MKDIR_P
15982 case $MKDIR_P in
15983 [\\/$]* | ?:[\\/]* ) ;;
15984 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15985 esac
15986 _ACEOF
15987
15988 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15989 # If the template does not know about datarootdir, expand it.
15990 # FIXME: This hack should be removed a few years after 2.60.
15991 ac_datarootdir_hack=; ac_datarootdir_seen=
15992 ac_sed_dataroot='
15993 /datarootdir/ {
15994 p
15995 q
15996 }
15997 /@datadir@/p
15998 /@docdir@/p
15999 /@infodir@/p
16000 /@localedir@/p
16001 /@mandir@/p'
16002 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16003 *datarootdir*) ac_datarootdir_seen=yes;;
16004 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16006 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16007 _ACEOF
16008 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16009 ac_datarootdir_hack='
16010 s&@datadir@&$datadir&g
16011 s&@docdir@&$docdir&g
16012 s&@infodir@&$infodir&g
16013 s&@localedir@&$localedir&g
16014 s&@mandir@&$mandir&g
16015 s&\\\${datarootdir}&$datarootdir&g' ;;
16016 esac
16017 _ACEOF
16018
16019 # Neutralize VPATH when `$srcdir' = `.'.
16020 # Shell code in configure.ac might set extrasub.
16021 # FIXME: do we really want to maintain this feature?
16022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16023 ac_sed_extra="$ac_vpsub
16024 $extrasub
16025 _ACEOF
16026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16027 :t
16028 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16029 s|@configure_input@|$ac_sed_conf_input|;t t
16030 s&@top_builddir@&$ac_top_builddir_sub&;t t
16031 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16032 s&@srcdir@&$ac_srcdir&;t t
16033 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16034 s&@top_srcdir@&$ac_top_srcdir&;t t
16035 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16036 s&@builddir@&$ac_builddir&;t t
16037 s&@abs_builddir@&$ac_abs_builddir&;t t
16038 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16039 s&@INSTALL@&$ac_INSTALL&;t t
16040 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16041 $ac_datarootdir_hack
16042 "
16043 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16044 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16045
16046 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16047 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16048 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16049 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16051 which seems to be undefined. Please make sure it is defined" >&5
16052 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16053 which seems to be undefined. Please make sure it is defined" >&2;}
16054
16055 rm -f "$ac_tmp/stdin"
16056 case $ac_file in
16057 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16058 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16059 esac \
16060 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16061 ;;
16062 :H)
16063 #
16064 # CONFIG_HEADER
16065 #
16066 if test x"$ac_file" != x-; then
16067 {
16068 $as_echo "/* $configure_input */" \
16069 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16070 } >"$ac_tmp/config.h" \
16071 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16072 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16074 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16075 else
16076 rm -f "$ac_file"
16077 mv "$ac_tmp/config.h" "$ac_file" \
16078 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16079 fi
16080 else
16081 $as_echo "/* $configure_input */" \
16082 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16083 || as_fn_error $? "could not create -" "$LINENO" 5
16084 fi
16085 # Compute "$ac_file"'s index in $config_headers.
16086 _am_arg="$ac_file"
16087 _am_stamp_count=1
16088 for _am_header in $config_headers :; do
16089 case $_am_header in
16090 $_am_arg | $_am_arg:* )
16091 break ;;
16092 * )
16093 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16094 esac
16095 done
16096 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16097 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16098 X"$_am_arg" : 'X\(//\)[^/]' \| \
16099 X"$_am_arg" : 'X\(//\)$' \| \
16100 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16101 $as_echo X"$_am_arg" |
16102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16103 s//\1/
16104 q
16105 }
16106 /^X\(\/\/\)[^/].*/{
16107 s//\1/
16108 q
16109 }
16110 /^X\(\/\/\)$/{
16111 s//\1/
16112 q
16113 }
16114 /^X\(\/\).*/{
16115 s//\1/
16116 q
16117 }
16118 s/.*/./; q'`/stamp-h$_am_stamp_count
16119 ;;
16120
16121 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16122 $as_echo "$as_me: executing $ac_file commands" >&6;}
16123 ;;
16124 esac
16125
16126
16127 case $ac_file$ac_mode in
16128 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16129 # Older Autoconf quotes --file arguments for eval, but not when files
16130 # are listed without --file. Let's play safe and only enable the eval
16131 # if we detect the quoting.
16132 case $CONFIG_FILES in
16133 *\'*) eval set x "$CONFIG_FILES" ;;
16134 *) set x $CONFIG_FILES ;;
16135 esac
16136 shift
16137 for mf
16138 do
16139 # Strip MF so we end up with the name of the file.
16140 mf=`echo "$mf" | sed -e 's/:.*$//'`
16141 # Check whether this is an Automake generated Makefile or not.
16142 # We used to match only the files named 'Makefile.in', but
16143 # some people rename them; so instead we look at the file content.
16144 # Grep'ing the first line is not enough: some people post-process
16145 # each Makefile.in and add a new line on top of each file to say so.
16146 # Grep'ing the whole file is not good either: AIX grep has a line
16147 # limit of 2048, but all sed's we know have understand at least 4000.
16148 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16149 dirpart=`$as_dirname -- "$mf" ||
16150 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16151 X"$mf" : 'X\(//\)[^/]' \| \
16152 X"$mf" : 'X\(//\)$' \| \
16153 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16154 $as_echo X"$mf" |
16155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16156 s//\1/
16157 q
16158 }
16159 /^X\(\/\/\)[^/].*/{
16160 s//\1/
16161 q
16162 }
16163 /^X\(\/\/\)$/{
16164 s//\1/
16165 q
16166 }
16167 /^X\(\/\).*/{
16168 s//\1/
16169 q
16170 }
16171 s/.*/./; q'`
16172 else
16173 continue
16174 fi
16175 # Extract the definition of DEPDIR, am__include, and am__quote
16176 # from the Makefile without running 'make'.
16177 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16178 test -z "$DEPDIR" && continue
16179 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16180 test -z "am__include" && continue
16181 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16182 # Find all dependency output files, they are included files with
16183 # $(DEPDIR) in their names. We invoke sed twice because it is the
16184 # simplest approach to changing $(DEPDIR) to its actual value in the
16185 # expansion.
16186 for file in `sed -n "
16187 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16188 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16189 # Make sure the directory exists.
16190 test -f "$dirpart/$file" && continue
16191 fdir=`$as_dirname -- "$file" ||
16192 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16193 X"$file" : 'X\(//\)[^/]' \| \
16194 X"$file" : 'X\(//\)$' \| \
16195 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16196 $as_echo X"$file" |
16197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16198 s//\1/
16199 q
16200 }
16201 /^X\(\/\/\)[^/].*/{
16202 s//\1/
16203 q
16204 }
16205 /^X\(\/\/\)$/{
16206 s//\1/
16207 q
16208 }
16209 /^X\(\/\).*/{
16210 s//\1/
16211 q
16212 }
16213 s/.*/./; q'`
16214 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16215 # echo "creating $dirpart/$file"
16216 echo '# dummy' > "$dirpart/$file"
16217 done
16218 done
16219 }
16220 ;;
16221 "libtool":C)
16222
16223 # See if we are running on zsh, and set the options which allow our
16224 # commands through without removal of \ escapes.
16225 if test -n "${ZSH_VERSION+set}" ; then
16226 setopt NO_GLOB_SUBST
16227 fi
16228
16229 cfgfile="${ofile}T"
16230 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16231 $RM "$cfgfile"
16232
16233 cat <<_LT_EOF >> "$cfgfile"
16234 #! $SHELL
16235
16236 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16237 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16238 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16239 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16240 #
16241 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16242 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16243 # Foundation, Inc.
16244 # Written by Gordon Matzigkeit, 1996
16245 #
16246 # This file is part of GNU Libtool.
16247 #
16248 # GNU Libtool is free software; you can redistribute it and/or
16249 # modify it under the terms of the GNU General Public License as
16250 # published by the Free Software Foundation; either version 2 of
16251 # the License, or (at your option) any later version.
16252 #
16253 # As a special exception to the GNU General Public License,
16254 # if you distribute this file as part of a program or library that
16255 # is built using GNU Libtool, you may include this file under the
16256 # same distribution terms that you use for the rest of that program.
16257 #
16258 # GNU Libtool is distributed in the hope that it will be useful,
16259 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16260 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16261 # GNU General Public License for more details.
16262 #
16263 # You should have received a copy of the GNU General Public License
16264 # along with GNU Libtool; see the file COPYING. If not, a copy
16265 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16266 # obtained by writing to the Free Software Foundation, Inc.,
16267 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16268
16269
16270 # The names of the tagged configurations supported by this script.
16271 available_tags=""
16272
16273 # ### BEGIN LIBTOOL CONFIG
16274
16275 # Which release of libtool.m4 was used?
16276 macro_version=$macro_version
16277 macro_revision=$macro_revision
16278
16279 # Whether or not to build static libraries.
16280 build_old_libs=$enable_static
16281
16282 # Whether or not to build shared libraries.
16283 build_libtool_libs=$enable_shared
16284
16285 # What type of objects to build.
16286 pic_mode=$pic_mode
16287
16288 # Whether or not to optimize for fast installation.
16289 fast_install=$enable_fast_install
16290
16291 # Shell to use when invoking shell scripts.
16292 SHELL=$lt_SHELL
16293
16294 # An echo program that protects backslashes.
16295 ECHO=$lt_ECHO
16296
16297 # The PATH separator for the build system.
16298 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16299
16300 # The host system.
16301 host_alias=$host_alias
16302 host=$host
16303 host_os=$host_os
16304
16305 # The build system.
16306 build_alias=$build_alias
16307 build=$build
16308 build_os=$build_os
16309
16310 # A sed program that does not truncate output.
16311 SED=$lt_SED
16312
16313 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16314 Xsed="\$SED -e 1s/^X//"
16315
16316 # A grep program that handles long lines.
16317 GREP=$lt_GREP
16318
16319 # An ERE matcher.
16320 EGREP=$lt_EGREP
16321
16322 # A literal string matcher.
16323 FGREP=$lt_FGREP
16324
16325 # A BSD- or MS-compatible name lister.
16326 NM=$lt_NM
16327
16328 # Whether we need soft or hard links.
16329 LN_S=$lt_LN_S
16330
16331 # What is the maximum length of a command?
16332 max_cmd_len=$max_cmd_len
16333
16334 # Object file suffix (normally "o").
16335 objext=$ac_objext
16336
16337 # Executable file suffix (normally "").
16338 exeext=$exeext
16339
16340 # whether the shell understands "unset".
16341 lt_unset=$lt_unset
16342
16343 # turn spaces into newlines.
16344 SP2NL=$lt_lt_SP2NL
16345
16346 # turn newlines into spaces.
16347 NL2SP=$lt_lt_NL2SP
16348
16349 # convert \$build file names to \$host format.
16350 to_host_file_cmd=$lt_cv_to_host_file_cmd
16351
16352 # convert \$build files to toolchain format.
16353 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16354
16355 # An object symbol dumper.
16356 OBJDUMP=$lt_OBJDUMP
16357
16358 # Method to check whether dependent libraries are shared objects.
16359 deplibs_check_method=$lt_deplibs_check_method
16360
16361 # Command to use when deplibs_check_method = "file_magic".
16362 file_magic_cmd=$lt_file_magic_cmd
16363
16364 # How to find potential files when deplibs_check_method = "file_magic".
16365 file_magic_glob=$lt_file_magic_glob
16366
16367 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16368 want_nocaseglob=$lt_want_nocaseglob
16369
16370 # DLL creation program.
16371 DLLTOOL=$lt_DLLTOOL
16372
16373 # Command to associate shared and link libraries.
16374 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16375
16376 # The archiver.
16377 AR=$lt_AR
16378
16379 # Flags to create an archive.
16380 AR_FLAGS=$lt_AR_FLAGS
16381
16382 # How to feed a file listing to the archiver.
16383 archiver_list_spec=$lt_archiver_list_spec
16384
16385 # A symbol stripping program.
16386 STRIP=$lt_STRIP
16387
16388 # Commands used to install an old-style archive.
16389 RANLIB=$lt_RANLIB
16390 old_postinstall_cmds=$lt_old_postinstall_cmds
16391 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16392
16393 # Whether to use a lock for old archive extraction.
16394 lock_old_archive_extraction=$lock_old_archive_extraction
16395
16396 # A C compiler.
16397 LTCC=$lt_CC
16398
16399 # LTCC compiler flags.
16400 LTCFLAGS=$lt_CFLAGS
16401
16402 # Take the output of nm and produce a listing of raw symbols and C names.
16403 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16404
16405 # Transform the output of nm in a proper C declaration.
16406 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16407
16408 # Transform the output of nm in a C name address pair.
16409 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16410
16411 # Transform the output of nm in a C name address pair when lib prefix is needed.
16412 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16413
16414 # Specify filename containing input files for \$NM.
16415 nm_file_list_spec=$lt_nm_file_list_spec
16416
16417 # The root where to search for dependent libraries,and in which our libraries should be installed.
16418 lt_sysroot=$lt_sysroot
16419
16420 # The name of the directory that contains temporary libtool files.
16421 objdir=$objdir
16422
16423 # Used to examine libraries when file_magic_cmd begins with "file".
16424 MAGIC_CMD=$MAGIC_CMD
16425
16426 # Must we lock files when doing compilation?
16427 need_locks=$lt_need_locks
16428
16429 # Manifest tool.
16430 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16431
16432 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16433 DSYMUTIL=$lt_DSYMUTIL
16434
16435 # Tool to change global to local symbols on Mac OS X.
16436 NMEDIT=$lt_NMEDIT
16437
16438 # Tool to manipulate fat objects and archives on Mac OS X.
16439 LIPO=$lt_LIPO
16440
16441 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16442 OTOOL=$lt_OTOOL
16443
16444 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16445 OTOOL64=$lt_OTOOL64
16446
16447 # Old archive suffix (normally "a").
16448 libext=$libext
16449
16450 # Shared library suffix (normally ".so").
16451 shrext_cmds=$lt_shrext_cmds
16452
16453 # The commands to extract the exported symbol list from a shared archive.
16454 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16455
16456 # Variables whose values should be saved in libtool wrapper scripts and
16457 # restored at link time.
16458 variables_saved_for_relink=$lt_variables_saved_for_relink
16459
16460 # Do we need the "lib" prefix for modules?
16461 need_lib_prefix=$need_lib_prefix
16462
16463 # Do we need a version for libraries?
16464 need_version=$need_version
16465
16466 # Library versioning type.
16467 version_type=$version_type
16468
16469 # Shared library runtime path variable.
16470 runpath_var=$runpath_var
16471
16472 # Shared library path variable.
16473 shlibpath_var=$shlibpath_var
16474
16475 # Is shlibpath searched before the hard-coded library search path?
16476 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16477
16478 # Format of library name prefix.
16479 libname_spec=$lt_libname_spec
16480
16481 # List of archive names. First name is the real one, the rest are links.
16482 # The last name is the one that the linker finds with -lNAME
16483 library_names_spec=$lt_library_names_spec
16484
16485 # The coded name of the library, if different from the real name.
16486 soname_spec=$lt_soname_spec
16487
16488 # Permission mode override for installation of shared libraries.
16489 install_override_mode=$lt_install_override_mode
16490
16491 # Command to use after installation of a shared archive.
16492 postinstall_cmds=$lt_postinstall_cmds
16493
16494 # Command to use after uninstallation of a shared archive.
16495 postuninstall_cmds=$lt_postuninstall_cmds
16496
16497 # Commands used to finish a libtool library installation in a directory.
16498 finish_cmds=$lt_finish_cmds
16499
16500 # As "finish_cmds", except a single script fragment to be evaled but
16501 # not shown.
16502 finish_eval=$lt_finish_eval
16503
16504 # Whether we should hardcode library paths into libraries.
16505 hardcode_into_libs=$hardcode_into_libs
16506
16507 # Compile-time system search path for libraries.
16508 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16509
16510 # Run-time system search path for libraries.
16511 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16512
16513 # Whether dlopen is supported.
16514 dlopen_support=$enable_dlopen
16515
16516 # Whether dlopen of programs is supported.
16517 dlopen_self=$enable_dlopen_self
16518
16519 # Whether dlopen of statically linked programs is supported.
16520 dlopen_self_static=$enable_dlopen_self_static
16521
16522 # Commands to strip libraries.
16523 old_striplib=$lt_old_striplib
16524 striplib=$lt_striplib
16525
16526
16527 # The linker used to build libraries.
16528 LD=$lt_LD
16529
16530 # How to create reloadable object files.
16531 reload_flag=$lt_reload_flag
16532 reload_cmds=$lt_reload_cmds
16533
16534 # Commands used to build an old-style archive.
16535 old_archive_cmds=$lt_old_archive_cmds
16536
16537 # A language specific compiler.
16538 CC=$lt_compiler
16539
16540 # Is the compiler the GNU compiler?
16541 with_gcc=$GCC
16542
16543 # Compiler flag to turn off builtin functions.
16544 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16545
16546 # Additional compiler flags for building library objects.
16547 pic_flag=$lt_lt_prog_compiler_pic
16548
16549 # How to pass a linker flag through the compiler.
16550 wl=$lt_lt_prog_compiler_wl
16551
16552 # Compiler flag to prevent dynamic linking.
16553 link_static_flag=$lt_lt_prog_compiler_static
16554
16555 # Does compiler simultaneously support -c and -o options?
16556 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16557
16558 # Whether or not to add -lc for building shared libraries.
16559 build_libtool_need_lc=$archive_cmds_need_lc
16560
16561 # Whether or not to disallow shared libs when runtime libs are static.
16562 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16563
16564 # Compiler flag to allow reflexive dlopens.
16565 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16566
16567 # Compiler flag to generate shared objects directly from archives.
16568 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16569
16570 # Whether the compiler copes with passing no objects directly.
16571 compiler_needs_object=$lt_compiler_needs_object
16572
16573 # Create an old-style archive from a shared archive.
16574 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16575
16576 # Create a temporary old-style archive to link instead of a shared archive.
16577 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16578
16579 # Commands used to build a shared archive.
16580 archive_cmds=$lt_archive_cmds
16581 archive_expsym_cmds=$lt_archive_expsym_cmds
16582
16583 # Commands used to build a loadable module if different from building
16584 # a shared archive.
16585 module_cmds=$lt_module_cmds
16586 module_expsym_cmds=$lt_module_expsym_cmds
16587
16588 # Whether we are building with GNU ld or not.
16589 with_gnu_ld=$lt_with_gnu_ld
16590
16591 # Flag that allows shared libraries with undefined symbols to be built.
16592 allow_undefined_flag=$lt_allow_undefined_flag
16593
16594 # Flag that enforces no undefined symbols.
16595 no_undefined_flag=$lt_no_undefined_flag
16596
16597 # Flag to hardcode \$libdir into a binary during linking.
16598 # This must work even if \$libdir does not exist
16599 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16600
16601 # Whether we need a single "-rpath" flag with a separated argument.
16602 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16603
16604 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16605 # DIR into the resulting binary.
16606 hardcode_direct=$hardcode_direct
16607
16608 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16609 # DIR into the resulting binary and the resulting library dependency is
16610 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16611 # library is relocated.
16612 hardcode_direct_absolute=$hardcode_direct_absolute
16613
16614 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16615 # into the resulting binary.
16616 hardcode_minus_L=$hardcode_minus_L
16617
16618 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16619 # into the resulting binary.
16620 hardcode_shlibpath_var=$hardcode_shlibpath_var
16621
16622 # Set to "yes" if building a shared library automatically hardcodes DIR
16623 # into the library and all subsequent libraries and executables linked
16624 # against it.
16625 hardcode_automatic=$hardcode_automatic
16626
16627 # Set to yes if linker adds runtime paths of dependent libraries
16628 # to runtime path list.
16629 inherit_rpath=$inherit_rpath
16630
16631 # Whether libtool must link a program against all its dependency libraries.
16632 link_all_deplibs=$link_all_deplibs
16633
16634 # Set to "yes" if exported symbols are required.
16635 always_export_symbols=$always_export_symbols
16636
16637 # The commands to list exported symbols.
16638 export_symbols_cmds=$lt_export_symbols_cmds
16639
16640 # Symbols that should not be listed in the preloaded symbols.
16641 exclude_expsyms=$lt_exclude_expsyms
16642
16643 # Symbols that must always be exported.
16644 include_expsyms=$lt_include_expsyms
16645
16646 # Commands necessary for linking programs (against libraries) with templates.
16647 prelink_cmds=$lt_prelink_cmds
16648
16649 # Commands necessary for finishing linking programs.
16650 postlink_cmds=$lt_postlink_cmds
16651
16652 # Specify filename containing input files.
16653 file_list_spec=$lt_file_list_spec
16654
16655 # How to hardcode a shared library path into an executable.
16656 hardcode_action=$hardcode_action
16657
16658 # ### END LIBTOOL CONFIG
16659
16660 _LT_EOF
16661
16662 case $host_os in
16663 aix3*)
16664 cat <<\_LT_EOF >> "$cfgfile"
16665 # AIX sometimes has problems with the GCC collect2 program. For some
16666 # reason, if we set the COLLECT_NAMES environment variable, the problems
16667 # vanish in a puff of smoke.
16668 if test "X${COLLECT_NAMES+set}" != Xset; then
16669 COLLECT_NAMES=
16670 export COLLECT_NAMES
16671 fi
16672 _LT_EOF
16673 ;;
16674 esac
16675
16676
16677 ltmain="$ac_aux_dir/ltmain.sh"
16678
16679
16680 # We use sed instead of cat because bash on DJGPP gets confused if
16681 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16682 # text mode, it properly converts lines to CR/LF. This bash problem
16683 # is reportedly fixed, but why not run on old versions too?
16684 sed '$q' "$ltmain" >> "$cfgfile" \
16685 || (rm -f "$cfgfile"; exit 1)
16686
16687 if test x"$xsi_shell" = xyes; then
16688 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16689 func_dirname ()\
16690 {\
16691 \ case ${1} in\
16692 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16693 \ * ) func_dirname_result="${3}" ;;\
16694 \ esac\
16695 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16696 && mv -f "$cfgfile.tmp" "$cfgfile" \
16697 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16698 test 0 -eq $? || _lt_function_replace_fail=:
16699
16700
16701 sed -e '/^func_basename ()$/,/^} # func_basename /c\
16702 func_basename ()\
16703 {\
16704 \ func_basename_result="${1##*/}"\
16705 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16706 && mv -f "$cfgfile.tmp" "$cfgfile" \
16707 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16708 test 0 -eq $? || _lt_function_replace_fail=:
16709
16710
16711 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16712 func_dirname_and_basename ()\
16713 {\
16714 \ case ${1} in\
16715 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16716 \ * ) func_dirname_result="${3}" ;;\
16717 \ esac\
16718 \ func_basename_result="${1##*/}"\
16719 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16720 && mv -f "$cfgfile.tmp" "$cfgfile" \
16721 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16722 test 0 -eq $? || _lt_function_replace_fail=:
16723
16724
16725 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16726 func_stripname ()\
16727 {\
16728 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16729 \ # positional parameters, so assign one to ordinary parameter first.\
16730 \ func_stripname_result=${3}\
16731 \ func_stripname_result=${func_stripname_result#"${1}"}\
16732 \ func_stripname_result=${func_stripname_result%"${2}"}\
16733 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16734 && mv -f "$cfgfile.tmp" "$cfgfile" \
16735 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16736 test 0 -eq $? || _lt_function_replace_fail=:
16737
16738
16739 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16740 func_split_long_opt ()\
16741 {\
16742 \ func_split_long_opt_name=${1%%=*}\
16743 \ func_split_long_opt_arg=${1#*=}\
16744 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16745 && mv -f "$cfgfile.tmp" "$cfgfile" \
16746 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16747 test 0 -eq $? || _lt_function_replace_fail=:
16748
16749
16750 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16751 func_split_short_opt ()\
16752 {\
16753 \ func_split_short_opt_arg=${1#??}\
16754 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16755 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16756 && mv -f "$cfgfile.tmp" "$cfgfile" \
16757 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16758 test 0 -eq $? || _lt_function_replace_fail=:
16759
16760
16761 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16762 func_lo2o ()\
16763 {\
16764 \ case ${1} in\
16765 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16766 \ *) func_lo2o_result=${1} ;;\
16767 \ esac\
16768 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16769 && mv -f "$cfgfile.tmp" "$cfgfile" \
16770 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16771 test 0 -eq $? || _lt_function_replace_fail=:
16772
16773
16774 sed -e '/^func_xform ()$/,/^} # func_xform /c\
16775 func_xform ()\
16776 {\
16777 func_xform_result=${1%.*}.lo\
16778 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16779 && mv -f "$cfgfile.tmp" "$cfgfile" \
16780 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16781 test 0 -eq $? || _lt_function_replace_fail=:
16782
16783
16784 sed -e '/^func_arith ()$/,/^} # func_arith /c\
16785 func_arith ()\
16786 {\
16787 func_arith_result=$(( $* ))\
16788 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16789 && mv -f "$cfgfile.tmp" "$cfgfile" \
16790 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16791 test 0 -eq $? || _lt_function_replace_fail=:
16792
16793
16794 sed -e '/^func_len ()$/,/^} # func_len /c\
16795 func_len ()\
16796 {\
16797 func_len_result=${#1}\
16798 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16799 && mv -f "$cfgfile.tmp" "$cfgfile" \
16800 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16801 test 0 -eq $? || _lt_function_replace_fail=:
16802
16803 fi
16804
16805 if test x"$lt_shell_append" = xyes; then
16806 sed -e '/^func_append ()$/,/^} # func_append /c\
16807 func_append ()\
16808 {\
16809 eval "${1}+=\\${2}"\
16810 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16811 && mv -f "$cfgfile.tmp" "$cfgfile" \
16812 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16813 test 0 -eq $? || _lt_function_replace_fail=:
16814
16815
16816 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16817 func_append_quoted ()\
16818 {\
16819 \ func_quote_for_eval "${2}"\
16820 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16821 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16822 && mv -f "$cfgfile.tmp" "$cfgfile" \
16823 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16824 test 0 -eq $? || _lt_function_replace_fail=:
16825
16826
16827 # Save a `func_append' function call where possible by direct use of '+='
16828 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16829 && mv -f "$cfgfile.tmp" "$cfgfile" \
16830 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16831 test 0 -eq $? || _lt_function_replace_fail=:
16832 else
16833 # Save a `func_append' function call even when '+=' is not available
16834 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16835 && mv -f "$cfgfile.tmp" "$cfgfile" \
16836 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16837 test 0 -eq $? || _lt_function_replace_fail=:
16838 fi
16839
16840 if test x"$_lt_function_replace_fail" = x":"; then
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16842 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16843 fi
16844
16845
16846 mv -f "$cfgfile" "$ofile" ||
16847 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16848 chmod +x "$ofile"
16849
16850 ;;
16851
16852 esac
16853 done # for ac_tag
16854
16855
16856 as_fn_exit 0
16857 _ACEOF
16858 ac_clean_files=$ac_clean_files_save
16859
16860 test $ac_write_fail = 0 ||
16861 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16862
16863
16864 # configure is writing to config.log, and then calls config.status.
16865 # config.status does its own redirection, appending to config.log.
16866 # Unfortunately, on DOS this fails, as config.log is still kept open
16867 # by configure, so config.status won't be able to write to it; its
16868 # output is simply discarded. So we exec the FD to /dev/null,
16869 # effectively closing config.log, so it can be properly (re)opened and
16870 # appended to by config.status. When coming back to configure, we
16871 # need to make the FD available again.
16872 if test "$no_create" != yes; then
16873 ac_cs_success=:
16874 ac_config_status_args=
16875 test "$silent" = yes &&
16876 ac_config_status_args="$ac_config_status_args --quiet"
16877 exec 5>/dev/null
16878 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16879 exec 5>>config.log
16880 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16881 # would make configure fail if this is the last instruction.
16882 $ac_cs_success || as_fn_exit 1
16883 fi
16884 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16886 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16887 fi
16888

Properties

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