ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/releases/8.0.5/configure
Revision: 1781
Committed: Thu Jan 24 17:56:37 2013 UTC (11 years, 2 months ago) by michael
File size: 489380 byte(s)
Log Message:
RELEASE TAG 8.0.5

File Contents

# Content
1 #! /bin/sh
2 # From configure.ac Id: configure.ac 1750 2013-01-16 14:07:08Z michael .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for ircd-hybrid 8.0.5.
5 #
6 # Report bugs to <bugs@ircd-hybrid.org>.
7 #
8 #
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
33 esac
34 fi
35
36
37 as_nl='
38 '
39 export as_nl
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='print -r --'
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='printf %s\n'
52 as_echo_n='printf %s'
53 else
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
57 else
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 as_echo_n_body='eval
60 arg=$1;
61 case $arg in #(
62 *"$as_nl"*)
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 esac;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 '
68 export as_echo_n_body
69 as_echo_n='sh -c $as_echo_n_body as_echo'
70 fi
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
73 fi
74
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # IFS
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
90 IFS=" "" $as_nl"
91
92 # Find who we are. Look in the path if we contain no directory separator.
93 as_myself=
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
104
105 ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 # Use a proper internal environment variable to ensure we don't fall
139 # into an infinite loop, continuously re-executing ourselves.
140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141 _as_can_reexec=no; export _as_can_reexec;
142 # We cannot yet assume a decent shell, so we have to provide a
143 # neutralization value for shells without unset; and this also
144 # works around shells that cannot unset nonexistent variables.
145 # Preserve -v and -x to the replacement shell.
146 BASH_ENV=/dev/null
147 ENV=/dev/null
148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 case $- in # ((((
150 *v*x* | *x*v* ) as_opts=-vx ;;
151 *v* ) as_opts=-v ;;
152 *x* ) as_opts=-x ;;
153 * ) as_opts= ;;
154 esac
155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 # Admittedly, this is quite paranoid, since all the known shells bail
157 # out after a failed `exec'.
158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159 as_fn_exit 255
160 fi
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec=; unset _as_can_reexec;}
163 if test "x$CONFIG_SHELL" = x; then
164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165 emulate sh
166 NULLCMD=:
167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168 # is contrary to our usage. Disable this feature.
169 alias -g '\${1+\"\$@\"}'='\"\$@\"'
170 setopt NO_GLOB_SUBST
171 else
172 case \`(set -o) 2>/dev/null\` in #(
173 *posix*) :
174 set -o posix ;; #(
175 *) :
176 ;;
177 esac
178 fi
179 "
180 as_required="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
185
186 exitcode=0
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192
193 else
194 exitcode=1; echo positional parameters were not saved.
195 fi
196 test x\$exitcode = x0 || exit 1
197 test -x / || exit 1"
198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
210 test \$(( 1 + 1 )) = 2 || exit 1"
211 if (eval "$as_required") 2>/dev/null; then :
212 as_have_required=yes
213 else
214 as_have_required=no
215 fi
216 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217
218 else
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 as_found=false
221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 do
223 IFS=$as_save_IFS
224 test -z "$as_dir" && as_dir=.
225 as_found=:
226 case $as_dir in #(
227 /*)
228 for as_base in sh bash ksh sh5; do
229 # Try only shells that exist, to save several forks.
230 as_shell=$as_dir/$as_base
231 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 CONFIG_SHELL=$as_shell as_have_required=yes
234 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
235 break 2
236 fi
237 fi
238 done;;
239 esac
240 as_found=false
241 done
242 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi; }
246 IFS=$as_save_IFS
247
248
249 if test "x$CONFIG_SHELL" != x; then :
250 export CONFIG_SHELL
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
255 BASH_ENV=/dev/null
256 ENV=/dev/null
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 case $- in # ((((
259 *v*x* | *x*v* ) as_opts=-vx ;;
260 *v* ) as_opts=-v ;;
261 *x* ) as_opts=-x ;;
262 * ) as_opts= ;;
263 esac
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed `exec'.
267 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
269 fi
270
271 if test x$as_have_required = xno; then :
272 $as_echo "$0: This script requires a shell more modern than all"
273 $as_echo "$0: the shells that I found on your system."
274 if test x${ZSH_VERSION+set} = xset ; then
275 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 $as_echo "$0: Please tell bug-autoconf@gnu.org and
279 $0: bugs@ircd-hybrid.org about your system, including any
280 $0: error possibly output before this message. Then install
281 $0: a modern shell, or manually run the script under such a
282 $0: shell if you do have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 lt_ltdl_dir='libltdl'
569
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572
573 test -n "$DJDIR" || exec 7<&0 </dev/null
574 exec 6>&1
575
576 # Name of the host.
577 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
581 #
582 # Initializations.
583 #
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592
593 # Identity of this package.
594 PACKAGE_NAME='ircd-hybrid'
595 PACKAGE_TARNAME='ircd-hybrid'
596 PACKAGE_VERSION='8.0.5'
597 PACKAGE_STRING='ircd-hybrid 8.0.5'
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 enable_halfops
817 enable_debugging
818 enable_warnings
819 '
820 ac_precious_vars='build_alias
821 host_alias
822 target_alias
823 CC
824 CFLAGS
825 LDFLAGS
826 LIBS
827 CPPFLAGS
828 YACC
829 YFLAGS
830 CPP'
831
832
833 # Initialize some variables set by options.
834 ac_init_help=
835 ac_init_version=false
836 ac_unrecognized_opts=
837 ac_unrecognized_sep=
838 # The variables have the same names as the options, with
839 # dashes changed to underlines.
840 cache_file=/dev/null
841 exec_prefix=NONE
842 no_create=
843 no_recursion=
844 prefix=NONE
845 program_prefix=NONE
846 program_suffix=NONE
847 program_transform_name=s,x,x,
848 silent=
849 site=
850 srcdir=
851 verbose=
852 x_includes=NONE
853 x_libraries=NONE
854
855 # Installation directory options.
856 # These are left unexpanded so users can "make install exec_prefix=/foo"
857 # and all the variables that are supposed to be based on exec_prefix
858 # by default will actually change.
859 # Use braces instead of parens because sh, perl, etc. also accept them.
860 # (The list follows the same order as the GNU Coding Standards.)
861 bindir='${exec_prefix}/bin'
862 sbindir='${exec_prefix}/sbin'
863 libexecdir='${exec_prefix}/libexec'
864 datarootdir='${prefix}/share'
865 datadir='${datarootdir}'
866 sysconfdir='${prefix}/etc'
867 sharedstatedir='${prefix}/com'
868 localstatedir='${prefix}/var'
869 includedir='${prefix}/include'
870 oldincludedir='/usr/include'
871 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
872 infodir='${datarootdir}/info'
873 htmldir='${docdir}'
874 dvidir='${docdir}'
875 pdfdir='${docdir}'
876 psdir='${docdir}'
877 libdir='${exec_prefix}/lib'
878 localedir='${datarootdir}/locale'
879 mandir='${datarootdir}/man'
880
881 ac_prev=
882 ac_dashdash=
883 for ac_option
884 do
885 # If the previous option needs an argument, assign it.
886 if test -n "$ac_prev"; then
887 eval $ac_prev=\$ac_option
888 ac_prev=
889 continue
890 fi
891
892 case $ac_option in
893 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894 *=) ac_optarg= ;;
895 *) ac_optarg=yes ;;
896 esac
897
898 # Accept the important Cygnus configure options, so we can diagnose typos.
899
900 case $ac_dashdash$ac_option in
901 --)
902 ac_dashdash=yes ;;
903
904 -bindir | --bindir | --bindi | --bind | --bin | --bi)
905 ac_prev=bindir ;;
906 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
907 bindir=$ac_optarg ;;
908
909 -build | --build | --buil | --bui | --bu)
910 ac_prev=build_alias ;;
911 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
912 build_alias=$ac_optarg ;;
913
914 -cache-file | --cache-file | --cache-fil | --cache-fi \
915 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
916 ac_prev=cache_file ;;
917 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
918 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
919 cache_file=$ac_optarg ;;
920
921 --config-cache | -C)
922 cache_file=config.cache ;;
923
924 -datadir | --datadir | --datadi | --datad)
925 ac_prev=datadir ;;
926 -datadir=* | --datadir=* | --datadi=* | --datad=*)
927 datadir=$ac_optarg ;;
928
929 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
930 | --dataroo | --dataro | --datar)
931 ac_prev=datarootdir ;;
932 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
933 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
934 datarootdir=$ac_optarg ;;
935
936 -disable-* | --disable-*)
937 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
938 # Reject names that are not valid shell variable names.
939 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940 as_fn_error $? "invalid feature name: $ac_useropt"
941 ac_useropt_orig=$ac_useropt
942 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943 case $ac_user_opts in
944 *"
945 "enable_$ac_useropt"
946 "*) ;;
947 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
948 ac_unrecognized_sep=', ';;
949 esac
950 eval enable_$ac_useropt=no ;;
951
952 -docdir | --docdir | --docdi | --doc | --do)
953 ac_prev=docdir ;;
954 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
955 docdir=$ac_optarg ;;
956
957 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
958 ac_prev=dvidir ;;
959 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
960 dvidir=$ac_optarg ;;
961
962 -enable-* | --enable-*)
963 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
964 # Reject names that are not valid shell variable names.
965 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
966 as_fn_error $? "invalid feature name: $ac_useropt"
967 ac_useropt_orig=$ac_useropt
968 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
969 case $ac_user_opts in
970 *"
971 "enable_$ac_useropt"
972 "*) ;;
973 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
974 ac_unrecognized_sep=', ';;
975 esac
976 eval enable_$ac_useropt=\$ac_optarg ;;
977
978 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
979 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
980 | --exec | --exe | --ex)
981 ac_prev=exec_prefix ;;
982 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
983 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
984 | --exec=* | --exe=* | --ex=*)
985 exec_prefix=$ac_optarg ;;
986
987 -gas | --gas | --ga | --g)
988 # Obsolete; use --with-gas.
989 with_gas=yes ;;
990
991 -help | --help | --hel | --he | -h)
992 ac_init_help=long ;;
993 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
994 ac_init_help=recursive ;;
995 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
996 ac_init_help=short ;;
997
998 -host | --host | --hos | --ho)
999 ac_prev=host_alias ;;
1000 -host=* | --host=* | --hos=* | --ho=*)
1001 host_alias=$ac_optarg ;;
1002
1003 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1004 ac_prev=htmldir ;;
1005 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1006 | --ht=*)
1007 htmldir=$ac_optarg ;;
1008
1009 -includedir | --includedir | --includedi | --included | --include \
1010 | --includ | --inclu | --incl | --inc)
1011 ac_prev=includedir ;;
1012 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1013 | --includ=* | --inclu=* | --incl=* | --inc=*)
1014 includedir=$ac_optarg ;;
1015
1016 -infodir | --infodir | --infodi | --infod | --info | --inf)
1017 ac_prev=infodir ;;
1018 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1019 infodir=$ac_optarg ;;
1020
1021 -libdir | --libdir | --libdi | --libd)
1022 ac_prev=libdir ;;
1023 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1024 libdir=$ac_optarg ;;
1025
1026 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1027 | --libexe | --libex | --libe)
1028 ac_prev=libexecdir ;;
1029 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1030 | --libexe=* | --libex=* | --libe=*)
1031 libexecdir=$ac_optarg ;;
1032
1033 -localedir | --localedir | --localedi | --localed | --locale)
1034 ac_prev=localedir ;;
1035 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1036 localedir=$ac_optarg ;;
1037
1038 -localstatedir | --localstatedir | --localstatedi | --localstated \
1039 | --localstate | --localstat | --localsta | --localst | --locals)
1040 ac_prev=localstatedir ;;
1041 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1042 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1043 localstatedir=$ac_optarg ;;
1044
1045 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1046 ac_prev=mandir ;;
1047 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1048 mandir=$ac_optarg ;;
1049
1050 -nfp | --nfp | --nf)
1051 # Obsolete; use --without-fp.
1052 with_fp=no ;;
1053
1054 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1055 | --no-cr | --no-c | -n)
1056 no_create=yes ;;
1057
1058 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1059 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1060 no_recursion=yes ;;
1061
1062 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1063 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1064 | --oldin | --oldi | --old | --ol | --o)
1065 ac_prev=oldincludedir ;;
1066 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1067 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1068 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1069 oldincludedir=$ac_optarg ;;
1070
1071 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1072 ac_prev=prefix ;;
1073 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1074 prefix=$ac_optarg ;;
1075
1076 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1077 | --program-pre | --program-pr | --program-p)
1078 ac_prev=program_prefix ;;
1079 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1080 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1081 program_prefix=$ac_optarg ;;
1082
1083 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1084 | --program-suf | --program-su | --program-s)
1085 ac_prev=program_suffix ;;
1086 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1087 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1088 program_suffix=$ac_optarg ;;
1089
1090 -program-transform-name | --program-transform-name \
1091 | --program-transform-nam | --program-transform-na \
1092 | --program-transform-n | --program-transform- \
1093 | --program-transform | --program-transfor \
1094 | --program-transfo | --program-transf \
1095 | --program-trans | --program-tran \
1096 | --progr-tra | --program-tr | --program-t)
1097 ac_prev=program_transform_name ;;
1098 -program-transform-name=* | --program-transform-name=* \
1099 | --program-transform-nam=* | --program-transform-na=* \
1100 | --program-transform-n=* | --program-transform-=* \
1101 | --program-transform=* | --program-transfor=* \
1102 | --program-transfo=* | --program-transf=* \
1103 | --program-trans=* | --program-tran=* \
1104 | --progr-tra=* | --program-tr=* | --program-t=*)
1105 program_transform_name=$ac_optarg ;;
1106
1107 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1108 ac_prev=pdfdir ;;
1109 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1110 pdfdir=$ac_optarg ;;
1111
1112 -psdir | --psdir | --psdi | --psd | --ps)
1113 ac_prev=psdir ;;
1114 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1115 psdir=$ac_optarg ;;
1116
1117 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1118 | -silent | --silent | --silen | --sile | --sil)
1119 silent=yes ;;
1120
1121 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1122 ac_prev=sbindir ;;
1123 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1124 | --sbi=* | --sb=*)
1125 sbindir=$ac_optarg ;;
1126
1127 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1128 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1129 | --sharedst | --shareds | --shared | --share | --shar \
1130 | --sha | --sh)
1131 ac_prev=sharedstatedir ;;
1132 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1133 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1134 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1135 | --sha=* | --sh=*)
1136 sharedstatedir=$ac_optarg ;;
1137
1138 -site | --site | --sit)
1139 ac_prev=site ;;
1140 -site=* | --site=* | --sit=*)
1141 site=$ac_optarg ;;
1142
1143 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1144 ac_prev=srcdir ;;
1145 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1146 srcdir=$ac_optarg ;;
1147
1148 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1149 | --syscon | --sysco | --sysc | --sys | --sy)
1150 ac_prev=sysconfdir ;;
1151 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1152 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1153 sysconfdir=$ac_optarg ;;
1154
1155 -target | --target | --targe | --targ | --tar | --ta | --t)
1156 ac_prev=target_alias ;;
1157 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1158 target_alias=$ac_optarg ;;
1159
1160 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1161 verbose=yes ;;
1162
1163 -version | --version | --versio | --versi | --vers | -V)
1164 ac_init_version=: ;;
1165
1166 -with-* | --with-*)
1167 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1168 # Reject names that are not valid shell variable names.
1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170 as_fn_error $? "invalid package name: $ac_useropt"
1171 ac_useropt_orig=$ac_useropt
1172 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173 case $ac_user_opts in
1174 *"
1175 "with_$ac_useropt"
1176 "*) ;;
1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1178 ac_unrecognized_sep=', ';;
1179 esac
1180 eval with_$ac_useropt=\$ac_optarg ;;
1181
1182 -without-* | --without-*)
1183 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186 as_fn_error $? "invalid package name: $ac_useropt"
1187 ac_useropt_orig=$ac_useropt
1188 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189 case $ac_user_opts in
1190 *"
1191 "with_$ac_useropt"
1192 "*) ;;
1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1194 ac_unrecognized_sep=', ';;
1195 esac
1196 eval with_$ac_useropt=no ;;
1197
1198 --x)
1199 # Obsolete; use --with-x.
1200 with_x=yes ;;
1201
1202 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1203 | --x-incl | --x-inc | --x-in | --x-i)
1204 ac_prev=x_includes ;;
1205 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1206 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1207 x_includes=$ac_optarg ;;
1208
1209 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1210 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1211 ac_prev=x_libraries ;;
1212 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1213 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1214 x_libraries=$ac_optarg ;;
1215
1216 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1217 Try \`$0 --help' for more information"
1218 ;;
1219
1220 *=*)
1221 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1222 # Reject names that are not valid shell variable names.
1223 case $ac_envvar in #(
1224 '' | [0-9]* | *[!_$as_cr_alnum]* )
1225 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1226 esac
1227 eval $ac_envvar=\$ac_optarg
1228 export $ac_envvar ;;
1229
1230 *)
1231 # FIXME: should be removed in autoconf 3.0.
1232 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1233 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1234 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1235 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1236 ;;
1237
1238 esac
1239 done
1240
1241 if test -n "$ac_prev"; then
1242 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1243 as_fn_error $? "missing argument to $ac_option"
1244 fi
1245
1246 if test -n "$ac_unrecognized_opts"; then
1247 case $enable_option_checking in
1248 no) ;;
1249 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1250 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1251 esac
1252 fi
1253
1254 # Check all directory arguments for consistency.
1255 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1256 datadir sysconfdir sharedstatedir localstatedir includedir \
1257 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1258 libdir localedir mandir
1259 do
1260 eval ac_val=\$$ac_var
1261 # Remove trailing slashes.
1262 case $ac_val in
1263 */ )
1264 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1265 eval $ac_var=\$ac_val;;
1266 esac
1267 # Be sure to have absolute directory names.
1268 case $ac_val in
1269 [\\/$]* | ?:[\\/]* ) continue;;
1270 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1271 esac
1272 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1273 done
1274
1275 # There might be people who depend on the old broken behavior: `$host'
1276 # used to hold the argument of --host etc.
1277 # FIXME: To remove some day.
1278 build=$build_alias
1279 host=$host_alias
1280 target=$target_alias
1281
1282 # FIXME: To remove some day.
1283 if test "x$host_alias" != x; then
1284 if test "x$build_alias" = x; then
1285 cross_compiling=maybe
1286 elif test "x$build_alias" != "x$host_alias"; then
1287 cross_compiling=yes
1288 fi
1289 fi
1290
1291 ac_tool_prefix=
1292 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1293
1294 test "$silent" = yes && exec 6>/dev/null
1295
1296
1297 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1298 ac_ls_di=`ls -di .` &&
1299 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1300 as_fn_error $? "working directory cannot be determined"
1301 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1302 as_fn_error $? "pwd does not report name of working directory"
1303
1304
1305 # Find the source files, if location was not specified.
1306 if test -z "$srcdir"; then
1307 ac_srcdir_defaulted=yes
1308 # Try the directory containing this script, then the parent directory.
1309 ac_confdir=`$as_dirname -- "$as_myself" ||
1310 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1311 X"$as_myself" : 'X\(//\)[^/]' \| \
1312 X"$as_myself" : 'X\(//\)$' \| \
1313 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1314 $as_echo X"$as_myself" |
1315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1316 s//\1/
1317 q
1318 }
1319 /^X\(\/\/\)[^/].*/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\/\)$/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\).*/{
1328 s//\1/
1329 q
1330 }
1331 s/.*/./; q'`
1332 srcdir=$ac_confdir
1333 if test ! -r "$srcdir/$ac_unique_file"; then
1334 srcdir=..
1335 fi
1336 else
1337 ac_srcdir_defaulted=no
1338 fi
1339 if test ! -r "$srcdir/$ac_unique_file"; then
1340 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1341 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1342 fi
1343 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1344 ac_abs_confdir=`(
1345 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1346 pwd)`
1347 # When building in place, set srcdir=.
1348 if test "$ac_abs_confdir" = "$ac_pwd"; then
1349 srcdir=.
1350 fi
1351 # Remove unnecessary trailing slashes from srcdir.
1352 # Double slashes in file names in object file debugging info
1353 # mess up M-x gdb in Emacs.
1354 case $srcdir in
1355 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1356 esac
1357 for ac_var in $ac_precious_vars; do
1358 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_env_${ac_var}_value=\$${ac_var}
1360 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1362 done
1363
1364 #
1365 # Report the --help message.
1366 #
1367 if test "$ac_init_help" = "long"; then
1368 # Omit some internal or obsolete options to make the list less imposing.
1369 # This message is too long to be a string in the A/UX 3.1 sh.
1370 cat <<_ACEOF
1371 \`configure' configures ircd-hybrid 8.0.5 to adapt to many kinds of systems.
1372
1373 Usage: $0 [OPTION]... [VAR=VALUE]...
1374
1375 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1376 VAR=VALUE. See below for descriptions of some of the useful variables.
1377
1378 Defaults for the options are specified in brackets.
1379
1380 Configuration:
1381 -h, --help display this help and exit
1382 --help=short display options specific to this package
1383 --help=recursive display the short help of all the included packages
1384 -V, --version display version information and exit
1385 -q, --quiet, --silent do not print \`checking ...' messages
1386 --cache-file=FILE cache test results in FILE [disabled]
1387 -C, --config-cache alias for \`--cache-file=config.cache'
1388 -n, --no-create do not create output files
1389 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1390
1391 Installation directories:
1392 --prefix=PREFIX install architecture-independent files in PREFIX
1393 [$ac_default_prefix]
1394 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1395 [PREFIX]
1396
1397 By default, \`make install' will install all the files in
1398 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1399 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1400 for instance \`--prefix=\$HOME'.
1401
1402 For better control, use the options below.
1403
1404 Fine tuning of the installation directories:
1405 --bindir=DIR user executables [EPREFIX/bin]
1406 --sbindir=DIR system admin executables [EPREFIX/sbin]
1407 --libexecdir=DIR program executables [EPREFIX/libexec]
1408 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1409 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1410 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1411 --libdir=DIR object code libraries [EPREFIX/lib]
1412 --includedir=DIR C header files [PREFIX/include]
1413 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1414 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1415 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1416 --infodir=DIR info documentation [DATAROOTDIR/info]
1417 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1418 --mandir=DIR man documentation [DATAROOTDIR/man]
1419 --docdir=DIR documentation root [DATAROOTDIR/doc/ircd-hybrid]
1420 --htmldir=DIR html documentation [DOCDIR]
1421 --dvidir=DIR dvi documentation [DOCDIR]
1422 --pdfdir=DIR pdf documentation [DOCDIR]
1423 --psdir=DIR ps documentation [DOCDIR]
1424 _ACEOF
1425
1426 cat <<\_ACEOF
1427
1428 Program names:
1429 --program-prefix=PREFIX prepend PREFIX to installed program names
1430 --program-suffix=SUFFIX append SUFFIX to installed program names
1431 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1432
1433 System types:
1434 --build=BUILD configure for building on BUILD [guessed]
1435 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1436 _ACEOF
1437 fi
1438
1439 if test -n "$ac_init_help"; then
1440 case $ac_init_help in
1441 short | recursive ) echo "Configuration of ircd-hybrid 8.0.5:";;
1442 esac
1443 cat <<\_ACEOF
1444
1445 Optional Features:
1446 --disable-option-checking ignore unrecognized --enable/--with options
1447 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1448 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1449 --enable-silent-rules less verbose build output (undo: "make V=1")
1450 --disable-silent-rules verbose build output (undo: "make V=0")
1451 --enable-maintainer-mode
1452 enable make rules and dependencies not useful (and
1453 sometimes confusing) to the casual installer
1454 --enable-dependency-tracking
1455 do not reject slow dependency extractors
1456 --disable-dependency-tracking
1457 speeds up one-time build
1458 --enable-static[=PKGS] build static libraries [default=no]
1459 --enable-shared[=PKGS] build shared libraries [default=yes]
1460 --enable-fast-install[=PKGS]
1461 optimize for fast installation [default=yes]
1462 --disable-libtool-lock avoid locking (might break parallel builds)
1463 --enable-ltdl-install install libltdl
1464 --disable-libpcre Disable PCRE support
1465 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1466 --disable-openssl Disable OpenSSL support.
1467 --enable-assert Enable assert() statements
1468 --enable-kqueue Force kqueue usage.
1469 --enable-epoll Force epoll usage.
1470 --enable-devpoll Force devpoll usage.
1471 --enable-poll Force poll usage.
1472 --enable-select Force select usage.
1473 --enable-halfops Enable halfops support.
1474 --enable-debugging Enable debugging.
1475 --enable-warnings Enable compiler warnings.
1476
1477 Optional Packages:
1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1480 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1481 both]
1482 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1483 --with-sysroot=DIR Search for dependent libraries within DIR
1484 (or the compiler's sysroot if not specified).
1485 --with-included-ltdl use the GNU ltdl sources included here
1486 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1487 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1488
1489 Some influential environment variables:
1490 CC C compiler command
1491 CFLAGS C compiler flags
1492 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1493 nonstandard directory <lib dir>
1494 LIBS libraries to pass to the linker, e.g. -l<library>
1495 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1496 you have headers in a nonstandard directory <include dir>
1497 YACC The `Yet Another Compiler Compiler' implementation to use.
1498 Defaults to the first program found out of: `bison -y', `byacc',
1499 `yacc'.
1500 YFLAGS The list of arguments that will be passed by default to $YACC.
1501 This script will default YFLAGS to the empty string to avoid a
1502 default value of `-d' given by some make applications.
1503 CPP C preprocessor
1504
1505 Use these variables to override the choices made by `configure' or to help
1506 it to find libraries and programs with nonstandard names/locations.
1507
1508 Report bugs to <bugs@ircd-hybrid.org>.
1509 _ACEOF
1510 ac_status=$?
1511 fi
1512
1513 if test "$ac_init_help" = "recursive"; then
1514 # If there are subdirs, report their specific --help.
1515 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1516 test -d "$ac_dir" ||
1517 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1518 continue
1519 ac_builddir=.
1520
1521 case "$ac_dir" in
1522 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523 *)
1524 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1525 # A ".." for each directory in $ac_dir_suffix.
1526 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1527 case $ac_top_builddir_sub in
1528 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1530 esac ;;
1531 esac
1532 ac_abs_top_builddir=$ac_pwd
1533 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1534 # for backward compatibility:
1535 ac_top_builddir=$ac_top_build_prefix
1536
1537 case $srcdir in
1538 .) # We are building in place.
1539 ac_srcdir=.
1540 ac_top_srcdir=$ac_top_builddir_sub
1541 ac_abs_top_srcdir=$ac_pwd ;;
1542 [\\/]* | ?:[\\/]* ) # Absolute name.
1543 ac_srcdir=$srcdir$ac_dir_suffix;
1544 ac_top_srcdir=$srcdir
1545 ac_abs_top_srcdir=$srcdir ;;
1546 *) # Relative name.
1547 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1548 ac_top_srcdir=$ac_top_build_prefix$srcdir
1549 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1550 esac
1551 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1552
1553 cd "$ac_dir" || { ac_status=$?; continue; }
1554 # Check for guested configure.
1555 if test -f "$ac_srcdir/configure.gnu"; then
1556 echo &&
1557 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1558 elif test -f "$ac_srcdir/configure"; then
1559 echo &&
1560 $SHELL "$ac_srcdir/configure" --help=recursive
1561 else
1562 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1563 fi || ac_status=$?
1564 cd "$ac_pwd" || { ac_status=$?; break; }
1565 done
1566 fi
1567
1568 test -n "$ac_init_help" && exit $ac_status
1569 if $ac_init_version; then
1570 cat <<\_ACEOF
1571 ircd-hybrid configure 8.0.5
1572 generated by GNU Autoconf 2.69
1573
1574 Copyright (C) 2012 Free Software Foundation, Inc.
1575 This configure script is free software; the Free Software Foundation
1576 gives unlimited permission to copy, distribute and modify it.
1577 _ACEOF
1578 exit
1579 fi
1580
1581 ## ------------------------ ##
1582 ## Autoconf initialization. ##
1583 ## ------------------------ ##
1584
1585 # ac_fn_c_try_compile LINENO
1586 # --------------------------
1587 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1588 ac_fn_c_try_compile ()
1589 {
1590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591 rm -f conftest.$ac_objext
1592 if { { ac_try="$ac_compile"
1593 case "(($ac_try" in
1594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1595 *) ac_try_echo=$ac_try;;
1596 esac
1597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1598 $as_echo "$ac_try_echo"; } >&5
1599 (eval "$ac_compile") 2>conftest.err
1600 ac_status=$?
1601 if test -s conftest.err; then
1602 grep -v '^ *+' conftest.err >conftest.er1
1603 cat conftest.er1 >&5
1604 mv -f conftest.er1 conftest.err
1605 fi
1606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1607 test $ac_status = 0; } && {
1608 test -z "$ac_c_werror_flag" ||
1609 test ! -s conftest.err
1610 } && test -s conftest.$ac_objext; then :
1611 ac_retval=0
1612 else
1613 $as_echo "$as_me: failed program was:" >&5
1614 sed 's/^/| /' conftest.$ac_ext >&5
1615
1616 ac_retval=1
1617 fi
1618 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1619 as_fn_set_status $ac_retval
1620
1621 } # ac_fn_c_try_compile
1622
1623 # ac_fn_c_try_link LINENO
1624 # -----------------------
1625 # Try to link conftest.$ac_ext, and return whether this succeeded.
1626 ac_fn_c_try_link ()
1627 {
1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629 rm -f conftest.$ac_objext conftest$ac_exeext
1630 if { { ac_try="$ac_link"
1631 case "(($ac_try" in
1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633 *) ac_try_echo=$ac_try;;
1634 esac
1635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636 $as_echo "$ac_try_echo"; } >&5
1637 (eval "$ac_link") 2>conftest.err
1638 ac_status=$?
1639 if test -s conftest.err; then
1640 grep -v '^ *+' conftest.err >conftest.er1
1641 cat conftest.er1 >&5
1642 mv -f conftest.er1 conftest.err
1643 fi
1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645 test $ac_status = 0; } && {
1646 test -z "$ac_c_werror_flag" ||
1647 test ! -s conftest.err
1648 } && test -s conftest$ac_exeext && {
1649 test "$cross_compiling" = yes ||
1650 test -x conftest$ac_exeext
1651 }; then :
1652 ac_retval=0
1653 else
1654 $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1656
1657 ac_retval=1
1658 fi
1659 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1660 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1661 # interfere with the next link command; also delete a directory that is
1662 # left behind by Apple's compiler. We do this before executing the actions.
1663 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1664 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1665 as_fn_set_status $ac_retval
1666
1667 } # ac_fn_c_try_link
1668
1669 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1670 # -------------------------------------------------------
1671 # Tests whether HEADER exists and can be compiled using the include files in
1672 # INCLUDES, setting the cache variable VAR accordingly.
1673 ac_fn_c_check_header_compile ()
1674 {
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1677 $as_echo_n "checking for $2... " >&6; }
1678 if eval \${$3+:} false; then :
1679 $as_echo_n "(cached) " >&6
1680 else
1681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1682 /* end confdefs.h. */
1683 $4
1684 #include <$2>
1685 _ACEOF
1686 if ac_fn_c_try_compile "$LINENO"; then :
1687 eval "$3=yes"
1688 else
1689 eval "$3=no"
1690 fi
1691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1692 fi
1693 eval ac_res=\$$3
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1695 $as_echo "$ac_res" >&6; }
1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697
1698 } # ac_fn_c_check_header_compile
1699
1700 # ac_fn_c_try_cpp LINENO
1701 # ----------------------
1702 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1703 ac_fn_c_try_cpp ()
1704 {
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 if { { ac_try="$ac_cpp conftest.$ac_ext"
1707 case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1710 esac
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1714 ac_status=$?
1715 if test -s conftest.err; then
1716 grep -v '^ *+' conftest.err >conftest.er1
1717 cat conftest.er1 >&5
1718 mv -f conftest.er1 conftest.err
1719 fi
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; } > conftest.i && {
1722 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1723 test ! -s conftest.err
1724 }; then :
1725 ac_retval=0
1726 else
1727 $as_echo "$as_me: failed program was:" >&5
1728 sed 's/^/| /' conftest.$ac_ext >&5
1729
1730 ac_retval=1
1731 fi
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733 as_fn_set_status $ac_retval
1734
1735 } # ac_fn_c_try_cpp
1736
1737 # ac_fn_c_try_run LINENO
1738 # ----------------------
1739 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1740 # that executables *can* be run.
1741 ac_fn_c_try_run ()
1742 {
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 if { { ac_try="$ac_link"
1745 case "(($ac_try" in
1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747 *) ac_try_echo=$ac_try;;
1748 esac
1749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750 $as_echo "$ac_try_echo"; } >&5
1751 (eval "$ac_link") 2>&5
1752 ac_status=$?
1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1755 { { case "(($ac_try" in
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1758 esac
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_try") 2>&5
1762 ac_status=$?
1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764 test $ac_status = 0; }; }; then :
1765 ac_retval=0
1766 else
1767 $as_echo "$as_me: program exited with status $ac_status" >&5
1768 $as_echo "$as_me: failed program was:" >&5
1769 sed 's/^/| /' conftest.$ac_ext >&5
1770
1771 ac_retval=$ac_status
1772 fi
1773 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775 as_fn_set_status $ac_retval
1776
1777 } # ac_fn_c_try_run
1778
1779 # ac_fn_c_check_func LINENO FUNC VAR
1780 # ----------------------------------
1781 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1782 ac_fn_c_check_func ()
1783 {
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1786 $as_echo_n "checking for $2... " >&6; }
1787 if eval \${$3+:} false; then :
1788 $as_echo_n "(cached) " >&6
1789 else
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791 /* end confdefs.h. */
1792 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1794 #define $2 innocuous_$2
1795
1796 /* System header to define __stub macros and hopefully few prototypes,
1797 which can conflict with char $2 (); below.
1798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1799 <limits.h> exists even on freestanding compilers. */
1800
1801 #ifdef __STDC__
1802 # include <limits.h>
1803 #else
1804 # include <assert.h>
1805 #endif
1806
1807 #undef $2
1808
1809 /* Override any GCC internal prototype to avoid an error.
1810 Use char because int might match the return type of a GCC
1811 builtin and then its argument prototype would still apply. */
1812 #ifdef __cplusplus
1813 extern "C"
1814 #endif
1815 char $2 ();
1816 /* The GNU C library defines this for functions which it implements
1817 to always fail with ENOSYS. Some functions are actually named
1818 something starting with __ and the normal name is an alias. */
1819 #if defined __stub_$2 || defined __stub___$2
1820 choke me
1821 #endif
1822
1823 int
1824 main ()
1825 {
1826 return $2 ();
1827 ;
1828 return 0;
1829 }
1830 _ACEOF
1831 if ac_fn_c_try_link "$LINENO"; then :
1832 eval "$3=yes"
1833 else
1834 eval "$3=no"
1835 fi
1836 rm -f core conftest.err conftest.$ac_objext \
1837 conftest$ac_exeext conftest.$ac_ext
1838 fi
1839 eval ac_res=\$$3
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841 $as_echo "$ac_res" >&6; }
1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843
1844 } # ac_fn_c_check_func
1845
1846 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1847 # ---------------------------------------------
1848 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1849 # accordingly.
1850 ac_fn_c_check_decl ()
1851 {
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 as_decl_name=`echo $2|sed 's/ *(.*//'`
1854 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1856 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1857 if eval \${$3+:} false; then :
1858 $as_echo_n "(cached) " >&6
1859 else
1860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1861 /* end confdefs.h. */
1862 $4
1863 int
1864 main ()
1865 {
1866 #ifndef $as_decl_name
1867 #ifdef __cplusplus
1868 (void) $as_decl_use;
1869 #else
1870 (void) $as_decl_name;
1871 #endif
1872 #endif
1873
1874 ;
1875 return 0;
1876 }
1877 _ACEOF
1878 if ac_fn_c_try_compile "$LINENO"; then :
1879 eval "$3=yes"
1880 else
1881 eval "$3=no"
1882 fi
1883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1884 fi
1885 eval ac_res=\$$3
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887 $as_echo "$ac_res" >&6; }
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889
1890 } # ac_fn_c_check_decl
1891
1892 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1893 # -------------------------------------------
1894 # Tests whether TYPE exists after having included INCLUDES, setting cache
1895 # variable VAR accordingly.
1896 ac_fn_c_check_type ()
1897 {
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1900 $as_echo_n "checking for $2... " >&6; }
1901 if eval \${$3+:} false; then :
1902 $as_echo_n "(cached) " >&6
1903 else
1904 eval "$3=no"
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h. */
1907 $4
1908 int
1909 main ()
1910 {
1911 if (sizeof ($2))
1912 return 0;
1913 ;
1914 return 0;
1915 }
1916 _ACEOF
1917 if ac_fn_c_try_compile "$LINENO"; then :
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h. */
1920 $4
1921 int
1922 main ()
1923 {
1924 if (sizeof (($2)))
1925 return 0;
1926 ;
1927 return 0;
1928 }
1929 _ACEOF
1930 if ac_fn_c_try_compile "$LINENO"; then :
1931
1932 else
1933 eval "$3=yes"
1934 fi
1935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936 fi
1937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1938 fi
1939 eval ac_res=\$$3
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941 $as_echo "$ac_res" >&6; }
1942 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943
1944 } # ac_fn_c_check_type
1945
1946 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1947 # ----------------------------------------------------
1948 # Tries to find if the field MEMBER exists in type AGGR, after including
1949 # INCLUDES, setting cache variable VAR accordingly.
1950 ac_fn_c_check_member ()
1951 {
1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1954 $as_echo_n "checking for $2.$3... " >&6; }
1955 if eval \${$4+:} false; then :
1956 $as_echo_n "(cached) " >&6
1957 else
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h. */
1960 $5
1961 int
1962 main ()
1963 {
1964 static $2 ac_aggr;
1965 if (ac_aggr.$3)
1966 return 0;
1967 ;
1968 return 0;
1969 }
1970 _ACEOF
1971 if ac_fn_c_try_compile "$LINENO"; then :
1972 eval "$4=yes"
1973 else
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1976 $5
1977 int
1978 main ()
1979 {
1980 static $2 ac_aggr;
1981 if (sizeof ac_aggr.$3)
1982 return 0;
1983 ;
1984 return 0;
1985 }
1986 _ACEOF
1987 if ac_fn_c_try_compile "$LINENO"; then :
1988 eval "$4=yes"
1989 else
1990 eval "$4=no"
1991 fi
1992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993 fi
1994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995 fi
1996 eval ac_res=\$$4
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998 $as_echo "$ac_res" >&6; }
1999 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2000
2001 } # ac_fn_c_check_member
2002
2003 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2004 # -------------------------------------------------------
2005 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2006 # the include files in INCLUDES and setting the cache variable VAR
2007 # accordingly.
2008 ac_fn_c_check_header_mongrel ()
2009 {
2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011 if eval \${$3+:} false; then :
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2013 $as_echo_n "checking for $2... " >&6; }
2014 if eval \${$3+:} false; then :
2015 $as_echo_n "(cached) " >&6
2016 fi
2017 eval ac_res=\$$3
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2019 $as_echo "$ac_res" >&6; }
2020 else
2021 # Is the header compilable?
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2023 $as_echo_n "checking $2 usability... " >&6; }
2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h. */
2026 $4
2027 #include <$2>
2028 _ACEOF
2029 if ac_fn_c_try_compile "$LINENO"; then :
2030 ac_header_compiler=yes
2031 else
2032 ac_header_compiler=no
2033 fi
2034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2036 $as_echo "$ac_header_compiler" >&6; }
2037
2038 # Is the header present?
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2040 $as_echo_n "checking $2 presence... " >&6; }
2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h. */
2043 #include <$2>
2044 _ACEOF
2045 if ac_fn_c_try_cpp "$LINENO"; then :
2046 ac_header_preproc=yes
2047 else
2048 ac_header_preproc=no
2049 fi
2050 rm -f conftest.err conftest.i conftest.$ac_ext
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2052 $as_echo "$ac_header_preproc" >&6; }
2053
2054 # So? What about this header?
2055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2056 yes:no: )
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2058 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2060 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2061 ;;
2062 no:yes:* )
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2064 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2066 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2068 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2070 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2072 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2073 ( $as_echo "## ----------------------------------- ##
2074 ## Report this to bugs@ircd-hybrid.org ##
2075 ## ----------------------------------- ##"
2076 ) | sed "s/^/$as_me: WARNING: /" >&2
2077 ;;
2078 esac
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2080 $as_echo_n "checking for $2... " >&6; }
2081 if eval \${$3+:} false; then :
2082 $as_echo_n "(cached) " >&6
2083 else
2084 eval "$3=\$ac_header_compiler"
2085 fi
2086 eval ac_res=\$$3
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2088 $as_echo "$ac_res" >&6; }
2089 fi
2090 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2091
2092 } # ac_fn_c_check_header_mongrel
2093 cat >config.log <<_ACEOF
2094 This file contains any messages produced by compilers while
2095 running configure, to aid debugging if configure makes a mistake.
2096
2097 It was created by ircd-hybrid $as_me 8.0.5, which was
2098 generated by GNU Autoconf 2.69. Invocation command line was
2099
2100 $ $0 $@
2101
2102 _ACEOF
2103 exec 5>>config.log
2104 {
2105 cat <<_ASUNAME
2106 ## --------- ##
2107 ## Platform. ##
2108 ## --------- ##
2109
2110 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2111 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2112 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2113 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2114 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2115
2116 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2117 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2118
2119 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2120 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2121 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2122 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2123 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2124 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2125 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2126
2127 _ASUNAME
2128
2129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2130 for as_dir in $PATH
2131 do
2132 IFS=$as_save_IFS
2133 test -z "$as_dir" && as_dir=.
2134 $as_echo "PATH: $as_dir"
2135 done
2136 IFS=$as_save_IFS
2137
2138 } >&5
2139
2140 cat >&5 <<_ACEOF
2141
2142
2143 ## ----------- ##
2144 ## Core tests. ##
2145 ## ----------- ##
2146
2147 _ACEOF
2148
2149
2150 # Keep a trace of the command line.
2151 # Strip out --no-create and --no-recursion so they do not pile up.
2152 # Strip out --silent because we don't want to record it for future runs.
2153 # Also quote any args containing shell meta-characters.
2154 # Make two passes to allow for proper duplicate-argument suppression.
2155 ac_configure_args=
2156 ac_configure_args0=
2157 ac_configure_args1=
2158 ac_must_keep_next=false
2159 for ac_pass in 1 2
2160 do
2161 for ac_arg
2162 do
2163 case $ac_arg in
2164 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2165 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2166 | -silent | --silent | --silen | --sile | --sil)
2167 continue ;;
2168 *\'*)
2169 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2170 esac
2171 case $ac_pass in
2172 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2173 2)
2174 as_fn_append ac_configure_args1 " '$ac_arg'"
2175 if test $ac_must_keep_next = true; then
2176 ac_must_keep_next=false # Got value, back to normal.
2177 else
2178 case $ac_arg in
2179 *=* | --config-cache | -C | -disable-* | --disable-* \
2180 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2181 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2182 | -with-* | --with-* | -without-* | --without-* | --x)
2183 case "$ac_configure_args0 " in
2184 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2185 esac
2186 ;;
2187 -* ) ac_must_keep_next=true ;;
2188 esac
2189 fi
2190 as_fn_append ac_configure_args " '$ac_arg'"
2191 ;;
2192 esac
2193 done
2194 done
2195 { ac_configure_args0=; unset ac_configure_args0;}
2196 { ac_configure_args1=; unset ac_configure_args1;}
2197
2198 # When interrupted or exit'd, cleanup temporary files, and complete
2199 # config.log. We remove comments because anyway the quotes in there
2200 # would cause problems or look ugly.
2201 # WARNING: Use '\'' to represent an apostrophe within the trap.
2202 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2203 trap 'exit_status=$?
2204 # Save into config.log some information that might help in debugging.
2205 {
2206 echo
2207
2208 $as_echo "## ---------------- ##
2209 ## Cache variables. ##
2210 ## ---------------- ##"
2211 echo
2212 # The following way of writing the cache mishandles newlines in values,
2213 (
2214 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2215 eval ac_val=\$$ac_var
2216 case $ac_val in #(
2217 *${as_nl}*)
2218 case $ac_var in #(
2219 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2220 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2221 esac
2222 case $ac_var in #(
2223 _ | IFS | as_nl) ;; #(
2224 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2225 *) { eval $ac_var=; unset $ac_var;} ;;
2226 esac ;;
2227 esac
2228 done
2229 (set) 2>&1 |
2230 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2231 *${as_nl}ac_space=\ *)
2232 sed -n \
2233 "s/'\''/'\''\\\\'\'''\''/g;
2234 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2235 ;; #(
2236 *)
2237 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2238 ;;
2239 esac |
2240 sort
2241 )
2242 echo
2243
2244 $as_echo "## ----------------- ##
2245 ## Output variables. ##
2246 ## ----------------- ##"
2247 echo
2248 for ac_var in $ac_subst_vars
2249 do
2250 eval ac_val=\$$ac_var
2251 case $ac_val in
2252 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2253 esac
2254 $as_echo "$ac_var='\''$ac_val'\''"
2255 done | sort
2256 echo
2257
2258 if test -n "$ac_subst_files"; then
2259 $as_echo "## ------------------- ##
2260 ## File substitutions. ##
2261 ## ------------------- ##"
2262 echo
2263 for ac_var in $ac_subst_files
2264 do
2265 eval ac_val=\$$ac_var
2266 case $ac_val in
2267 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2268 esac
2269 $as_echo "$ac_var='\''$ac_val'\''"
2270 done | sort
2271 echo
2272 fi
2273
2274 if test -s confdefs.h; then
2275 $as_echo "## ----------- ##
2276 ## confdefs.h. ##
2277 ## ----------- ##"
2278 echo
2279 cat confdefs.h
2280 echo
2281 fi
2282 test "$ac_signal" != 0 &&
2283 $as_echo "$as_me: caught signal $ac_signal"
2284 $as_echo "$as_me: exit $exit_status"
2285 } >&5
2286 rm -f core *.core core.conftest.* &&
2287 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2288 exit $exit_status
2289 ' 0
2290 for ac_signal in 1 2 13 15; do
2291 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2292 done
2293 ac_signal=0
2294
2295 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2296 rm -f -r conftest* confdefs.h
2297
2298 $as_echo "/* confdefs.h */" > confdefs.h
2299
2300 # Predefined preprocessor variables.
2301
2302 cat >>confdefs.h <<_ACEOF
2303 #define PACKAGE_NAME "$PACKAGE_NAME"
2304 _ACEOF
2305
2306 cat >>confdefs.h <<_ACEOF
2307 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2308 _ACEOF
2309
2310 cat >>confdefs.h <<_ACEOF
2311 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2312 _ACEOF
2313
2314 cat >>confdefs.h <<_ACEOF
2315 #define PACKAGE_STRING "$PACKAGE_STRING"
2316 _ACEOF
2317
2318 cat >>confdefs.h <<_ACEOF
2319 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2320 _ACEOF
2321
2322 cat >>confdefs.h <<_ACEOF
2323 #define PACKAGE_URL "$PACKAGE_URL"
2324 _ACEOF
2325
2326
2327 # Let the site file select an alternate cache file if it wants to.
2328 # Prefer an explicitly selected file to automatically selected ones.
2329 ac_site_file1=NONE
2330 ac_site_file2=NONE
2331 if test -n "$CONFIG_SITE"; then
2332 # We do not want a PATH search for config.site.
2333 case $CONFIG_SITE in #((
2334 -*) ac_site_file1=./$CONFIG_SITE;;
2335 */*) ac_site_file1=$CONFIG_SITE;;
2336 *) ac_site_file1=./$CONFIG_SITE;;
2337 esac
2338 elif test "x$prefix" != xNONE; then
2339 ac_site_file1=$prefix/share/config.site
2340 ac_site_file2=$prefix/etc/config.site
2341 else
2342 ac_site_file1=$ac_default_prefix/share/config.site
2343 ac_site_file2=$ac_default_prefix/etc/config.site
2344 fi
2345 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2346 do
2347 test "x$ac_site_file" = xNONE && continue
2348 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2350 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2351 sed 's/^/| /' "$ac_site_file" >&5
2352 . "$ac_site_file" \
2353 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2355 as_fn_error $? "failed to load site script $ac_site_file
2356 See \`config.log' for more details" "$LINENO" 5; }
2357 fi
2358 done
2359
2360 if test -r "$cache_file"; then
2361 # Some versions of bash will fail to source /dev/null (special files
2362 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2363 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2365 $as_echo "$as_me: loading cache $cache_file" >&6;}
2366 case $cache_file in
2367 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2368 *) . "./$cache_file";;
2369 esac
2370 fi
2371 else
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2373 $as_echo "$as_me: creating cache $cache_file" >&6;}
2374 >$cache_file
2375 fi
2376
2377 as_fn_append ac_func_list " mmap"
2378 as_fn_append ac_func_list " strtok_r"
2379 as_fn_append ac_func_list " usleep"
2380 as_fn_append ac_func_list " strlcat"
2381 as_fn_append ac_func_list " strlcpy"
2382 as_fn_append ac_header_list " crypt.h"
2383 as_fn_append ac_header_list " sys/resource.h"
2384 as_fn_append ac_header_list " sys/param.h"
2385 as_fn_append ac_header_list " types.h"
2386 as_fn_append ac_header_list " socket.h"
2387 as_fn_append ac_header_list " sys/wait.h"
2388 as_fn_append ac_header_list " wait.h"
2389 # Check that the precious variables saved in the cache have kept the same
2390 # value.
2391 ac_cache_corrupted=false
2392 for ac_var in $ac_precious_vars; do
2393 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2394 eval ac_new_set=\$ac_env_${ac_var}_set
2395 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2396 eval ac_new_val=\$ac_env_${ac_var}_value
2397 case $ac_old_set,$ac_new_set in
2398 set,)
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2400 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2401 ac_cache_corrupted=: ;;
2402 ,set)
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2404 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2405 ac_cache_corrupted=: ;;
2406 ,);;
2407 *)
2408 if test "x$ac_old_val" != "x$ac_new_val"; then
2409 # differences in whitespace do not lead to failure.
2410 ac_old_val_w=`echo x $ac_old_val`
2411 ac_new_val_w=`echo x $ac_new_val`
2412 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2414 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2415 ac_cache_corrupted=:
2416 else
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2418 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2419 eval $ac_var=\$ac_old_val
2420 fi
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2422 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2424 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2425 fi;;
2426 esac
2427 # Pass precious variables to config.status.
2428 if test "$ac_new_set" = set; then
2429 case $ac_new_val in
2430 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2431 *) ac_arg=$ac_var=$ac_new_val ;;
2432 esac
2433 case " $ac_configure_args " in
2434 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2435 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2436 esac
2437 fi
2438 done
2439 if $ac_cache_corrupted; then
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2443 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2444 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2445 fi
2446 ## -------------------- ##
2447 ## Main body of script. ##
2448 ## -------------------- ##
2449
2450 ac_ext=c
2451 ac_cpp='$CPP $CPPFLAGS'
2452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2455
2456
2457 am__api_version='1.13'
2458
2459 ac_aux_dir=
2460 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2461 if test -f "$ac_dir/install-sh"; then
2462 ac_aux_dir=$ac_dir
2463 ac_install_sh="$ac_aux_dir/install-sh -c"
2464 break
2465 elif test -f "$ac_dir/install.sh"; then
2466 ac_aux_dir=$ac_dir
2467 ac_install_sh="$ac_aux_dir/install.sh -c"
2468 break
2469 elif test -f "$ac_dir/shtool"; then
2470 ac_aux_dir=$ac_dir
2471 ac_install_sh="$ac_aux_dir/shtool install -c"
2472 break
2473 fi
2474 done
2475 if test -z "$ac_aux_dir"; then
2476 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2477 fi
2478
2479 # These three variables are undocumented and unsupported,
2480 # and are intended to be withdrawn in a future Autoconf release.
2481 # They can cause serious problems if a builder's source tree is in a directory
2482 # whose full name contains unusual characters.
2483 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2484 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2485 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2486
2487
2488 # Find a good install program. We prefer a C program (faster),
2489 # so one script is as good as another. But avoid the broken or
2490 # incompatible versions:
2491 # SysV /etc/install, /usr/sbin/install
2492 # SunOS /usr/etc/install
2493 # IRIX /sbin/install
2494 # AIX /bin/install
2495 # AmigaOS /C/install, which installs bootblocks on floppy discs
2496 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2497 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2498 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2499 # OS/2's system install, which has a completely different semantic
2500 # ./install, which can be erroneously created by make from ./install.sh.
2501 # Reject install programs that cannot install multiple files.
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2503 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2504 if test -z "$INSTALL"; then
2505 if ${ac_cv_path_install+:} false; then :
2506 $as_echo_n "(cached) " >&6
2507 else
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 for as_dir in $PATH
2510 do
2511 IFS=$as_save_IFS
2512 test -z "$as_dir" && as_dir=.
2513 # Account for people who put trailing slashes in PATH elements.
2514 case $as_dir/ in #((
2515 ./ | .// | /[cC]/* | \
2516 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2517 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2518 /usr/ucb/* ) ;;
2519 *)
2520 # OSF1 and SCO ODT 3.0 have their own names for install.
2521 # Don't use installbsd from OSF since it installs stuff as root
2522 # by default.
2523 for ac_prog in ginstall scoinst install; do
2524 for ac_exec_ext in '' $ac_executable_extensions; do
2525 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2526 if test $ac_prog = install &&
2527 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2528 # AIX install. It has an incompatible calling convention.
2529 :
2530 elif test $ac_prog = install &&
2531 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2532 # program-specific install script used by HP pwplus--don't use.
2533 :
2534 else
2535 rm -rf conftest.one conftest.two conftest.dir
2536 echo one > conftest.one
2537 echo two > conftest.two
2538 mkdir conftest.dir
2539 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2540 test -s conftest.one && test -s conftest.two &&
2541 test -s conftest.dir/conftest.one &&
2542 test -s conftest.dir/conftest.two
2543 then
2544 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2545 break 3
2546 fi
2547 fi
2548 fi
2549 done
2550 done
2551 ;;
2552 esac
2553
2554 done
2555 IFS=$as_save_IFS
2556
2557 rm -rf conftest.one conftest.two conftest.dir
2558
2559 fi
2560 if test "${ac_cv_path_install+set}" = set; then
2561 INSTALL=$ac_cv_path_install
2562 else
2563 # As a last resort, use the slow shell script. Don't cache a
2564 # value for INSTALL within a source directory, because that will
2565 # break other packages using the cache if that directory is
2566 # removed, or if the value is a relative name.
2567 INSTALL=$ac_install_sh
2568 fi
2569 fi
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2571 $as_echo "$INSTALL" >&6; }
2572
2573 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2574 # It thinks the first close brace ends the variable substitution.
2575 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2576
2577 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2578
2579 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2580
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2582 $as_echo_n "checking whether build environment is sane... " >&6; }
2583 # Reject unsafe characters in $srcdir or the absolute working directory
2584 # name. Accept space and tab only in the latter.
2585 am_lf='
2586 '
2587 case `pwd` in
2588 *[\\\"\#\$\&\'\`$am_lf]*)
2589 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2590 esac
2591 case $srcdir in
2592 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2593 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2594 esac
2595
2596 # Do 'set' in a subshell so we don't clobber the current shell's
2597 # arguments. Must try -L first in case configure is actually a
2598 # symlink; some systems play weird games with the mod time of symlinks
2599 # (eg FreeBSD returns the mod time of the symlink's containing
2600 # directory).
2601 if (
2602 am_has_slept=no
2603 for am_try in 1 2; do
2604 echo "timestamp, slept: $am_has_slept" > conftest.file
2605 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2606 if test "$*" = "X"; then
2607 # -L didn't work.
2608 set X `ls -t "$srcdir/configure" conftest.file`
2609 fi
2610 if test "$*" != "X $srcdir/configure conftest.file" \
2611 && test "$*" != "X conftest.file $srcdir/configure"; then
2612
2613 # If neither matched, then we have a broken ls. This can happen
2614 # if, for instance, CONFIG_SHELL is bash and it inherits a
2615 # broken ls alias from the environment. This has actually
2616 # happened. Such a system could not be considered "sane".
2617 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2618 alias in your environment" "$LINENO" 5
2619 fi
2620 if test "$2" = conftest.file || test $am_try -eq 2; then
2621 break
2622 fi
2623 # Just in case.
2624 sleep 1
2625 am_has_slept=yes
2626 done
2627 test "$2" = conftest.file
2628 )
2629 then
2630 # Ok.
2631 :
2632 else
2633 as_fn_error $? "newly created file is older than distributed files!
2634 Check your system clock" "$LINENO" 5
2635 fi
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2637 $as_echo "yes" >&6; }
2638 # If we didn't sleep, we still need to ensure time stamps of config.status and
2639 # generated files are strictly newer.
2640 am_sleep_pid=
2641 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2642 ( sleep 1 ) &
2643 am_sleep_pid=$!
2644 fi
2645
2646 rm -f conftest.file
2647
2648 test "$program_prefix" != NONE &&
2649 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2650 # Use a double $ so make ignores it.
2651 test "$program_suffix" != NONE &&
2652 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2653 # Double any \ or $.
2654 # By default was `s,x,x', remove it if useless.
2655 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2656 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2657
2658 # expand $ac_aux_dir to an absolute path
2659 am_aux_dir=`cd $ac_aux_dir && pwd`
2660
2661 if test x"${MISSING+set}" != xset; then
2662 case $am_aux_dir in
2663 *\ * | *\ *)
2664 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2665 *)
2666 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2667 esac
2668 fi
2669 # Use eval to expand $SHELL
2670 if eval "$MISSING --is-lightweight"; then
2671 am_missing_run="$MISSING "
2672 else
2673 am_missing_run=
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2675 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2676 fi
2677
2678 if test x"${install_sh}" != xset; then
2679 case $am_aux_dir in
2680 *\ * | *\ *)
2681 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2682 *)
2683 install_sh="\${SHELL} $am_aux_dir/install-sh"
2684 esac
2685 fi
2686
2687 # Installed binaries are usually stripped using 'strip' when the user
2688 # run "make install-strip". However 'strip' might not be the right
2689 # tool to use in cross-compilation environments, therefore Automake
2690 # will honor the 'STRIP' environment variable to overrule this program.
2691 if test "$cross_compiling" != no; then
2692 if test -n "$ac_tool_prefix"; then
2693 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2694 set dummy ${ac_tool_prefix}strip; ac_word=$2
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2696 $as_echo_n "checking for $ac_word... " >&6; }
2697 if ${ac_cv_prog_STRIP+:} false; then :
2698 $as_echo_n "(cached) " >&6
2699 else
2700 if test -n "$STRIP"; then
2701 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2702 else
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 for as_dir in $PATH
2705 do
2706 IFS=$as_save_IFS
2707 test -z "$as_dir" && as_dir=.
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2710 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2712 break 2
2713 fi
2714 done
2715 done
2716 IFS=$as_save_IFS
2717
2718 fi
2719 fi
2720 STRIP=$ac_cv_prog_STRIP
2721 if test -n "$STRIP"; then
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2723 $as_echo "$STRIP" >&6; }
2724 else
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2726 $as_echo "no" >&6; }
2727 fi
2728
2729
2730 fi
2731 if test -z "$ac_cv_prog_STRIP"; then
2732 ac_ct_STRIP=$STRIP
2733 # Extract the first word of "strip", so it can be a program name with args.
2734 set dummy strip; ac_word=$2
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2736 $as_echo_n "checking for $ac_word... " >&6; }
2737 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2738 $as_echo_n "(cached) " >&6
2739 else
2740 if test -n "$ac_ct_STRIP"; then
2741 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2742 else
2743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744 for as_dir in $PATH
2745 do
2746 IFS=$as_save_IFS
2747 test -z "$as_dir" && as_dir=.
2748 for ac_exec_ext in '' $ac_executable_extensions; do
2749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2750 ac_cv_prog_ac_ct_STRIP="strip"
2751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2752 break 2
2753 fi
2754 done
2755 done
2756 IFS=$as_save_IFS
2757
2758 fi
2759 fi
2760 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2761 if test -n "$ac_ct_STRIP"; then
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2763 $as_echo "$ac_ct_STRIP" >&6; }
2764 else
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2766 $as_echo "no" >&6; }
2767 fi
2768
2769 if test "x$ac_ct_STRIP" = x; then
2770 STRIP=":"
2771 else
2772 case $cross_compiling:$ac_tool_warned in
2773 yes:)
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2776 ac_tool_warned=yes ;;
2777 esac
2778 STRIP=$ac_ct_STRIP
2779 fi
2780 else
2781 STRIP="$ac_cv_prog_STRIP"
2782 fi
2783
2784 fi
2785 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2786
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2788 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2789 if test -z "$MKDIR_P"; then
2790 if ${ac_cv_path_mkdir+:} false; then :
2791 $as_echo_n "(cached) " >&6
2792 else
2793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2795 do
2796 IFS=$as_save_IFS
2797 test -z "$as_dir" && as_dir=.
2798 for ac_prog in mkdir gmkdir; do
2799 for ac_exec_ext in '' $ac_executable_extensions; do
2800 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2801 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2802 'mkdir (GNU coreutils) '* | \
2803 'mkdir (coreutils) '* | \
2804 'mkdir (fileutils) '4.1*)
2805 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2806 break 3;;
2807 esac
2808 done
2809 done
2810 done
2811 IFS=$as_save_IFS
2812
2813 fi
2814
2815 test -d ./--version && rmdir ./--version
2816 if test "${ac_cv_path_mkdir+set}" = set; then
2817 MKDIR_P="$ac_cv_path_mkdir -p"
2818 else
2819 # As a last resort, use the slow shell script. Don't cache a
2820 # value for MKDIR_P within a source directory, because that will
2821 # break other packages using the cache if that directory is
2822 # removed, or if the value is a relative name.
2823 MKDIR_P="$ac_install_sh -d"
2824 fi
2825 fi
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2827 $as_echo "$MKDIR_P" >&6; }
2828
2829 for ac_prog in gawk mawk nawk awk
2830 do
2831 # Extract the first word of "$ac_prog", so it can be a program name with args.
2832 set dummy $ac_prog; ac_word=$2
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2834 $as_echo_n "checking for $ac_word... " >&6; }
2835 if ${ac_cv_prog_AWK+:} false; then :
2836 $as_echo_n "(cached) " >&6
2837 else
2838 if test -n "$AWK"; then
2839 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2840 else
2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842 for as_dir in $PATH
2843 do
2844 IFS=$as_save_IFS
2845 test -z "$as_dir" && as_dir=.
2846 for ac_exec_ext in '' $ac_executable_extensions; do
2847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2848 ac_cv_prog_AWK="$ac_prog"
2849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 break 2
2851 fi
2852 done
2853 done
2854 IFS=$as_save_IFS
2855
2856 fi
2857 fi
2858 AWK=$ac_cv_prog_AWK
2859 if test -n "$AWK"; then
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2861 $as_echo "$AWK" >&6; }
2862 else
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2864 $as_echo "no" >&6; }
2865 fi
2866
2867
2868 test -n "$AWK" && break
2869 done
2870
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2872 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2873 set x ${MAKE-make}
2874 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2875 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2876 $as_echo_n "(cached) " >&6
2877 else
2878 cat >conftest.make <<\_ACEOF
2879 SHELL = /bin/sh
2880 all:
2881 @echo '@@@%%%=$(MAKE)=@@@%%%'
2882 _ACEOF
2883 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2884 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2885 *@@@%%%=?*=@@@%%%*)
2886 eval ac_cv_prog_make_${ac_make}_set=yes;;
2887 *)
2888 eval ac_cv_prog_make_${ac_make}_set=no;;
2889 esac
2890 rm -f conftest.make
2891 fi
2892 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2894 $as_echo "yes" >&6; }
2895 SET_MAKE=
2896 else
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2898 $as_echo "no" >&6; }
2899 SET_MAKE="MAKE=${MAKE-make}"
2900 fi
2901
2902 rm -rf .tst 2>/dev/null
2903 mkdir .tst 2>/dev/null
2904 if test -d .tst; then
2905 am__leading_dot=.
2906 else
2907 am__leading_dot=_
2908 fi
2909 rmdir .tst 2>/dev/null
2910
2911 # Check whether --enable-silent-rules was given.
2912 if test "${enable_silent_rules+set}" = set; then :
2913 enableval=$enable_silent_rules;
2914 fi
2915
2916 case $enable_silent_rules in # (((
2917 yes) AM_DEFAULT_VERBOSITY=0;;
2918 no) AM_DEFAULT_VERBOSITY=1;;
2919 *) AM_DEFAULT_VERBOSITY=1;;
2920 esac
2921 am_make=${MAKE-make}
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2923 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2924 if ${am_cv_make_support_nested_variables+:} false; then :
2925 $as_echo_n "(cached) " >&6
2926 else
2927 if $as_echo 'TRUE=$(BAR$(V))
2928 BAR0=false
2929 BAR1=true
2930 V=1
2931 am__doit:
2932 @$(TRUE)
2933 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2934 am_cv_make_support_nested_variables=yes
2935 else
2936 am_cv_make_support_nested_variables=no
2937 fi
2938 fi
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2940 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2941 if test $am_cv_make_support_nested_variables = yes; then
2942 AM_V='$(V)'
2943 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2944 else
2945 AM_V=$AM_DEFAULT_VERBOSITY
2946 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2947 fi
2948 AM_BACKSLASH='\'
2949
2950 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2951 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2952 # is not polluted with repeated "-I."
2953 am__isrc=' -I$(srcdir)'
2954 # test to see if srcdir already configured
2955 if test -f $srcdir/config.status; then
2956 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2957 fi
2958 fi
2959
2960 # test whether we have cygpath
2961 if test -z "$CYGPATH_W"; then
2962 if (cygpath --version) >/dev/null 2>/dev/null; then
2963 CYGPATH_W='cygpath -w'
2964 else
2965 CYGPATH_W=echo
2966 fi
2967 fi
2968
2969
2970 # Define the identity of the package.
2971 PACKAGE='ircd-hybrid'
2972 VERSION='8.0.5'
2973
2974
2975 cat >>confdefs.h <<_ACEOF
2976 #define PACKAGE "$PACKAGE"
2977 _ACEOF
2978
2979
2980 cat >>confdefs.h <<_ACEOF
2981 #define VERSION "$VERSION"
2982 _ACEOF
2983
2984 # Some tools Automake needs.
2985
2986 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2987
2988
2989 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2990
2991
2992 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2993
2994
2995 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2996
2997
2998 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2999
3000 # For better backward compatibility. To be removed once Automake 1.9.x
3001 # dies out for good. For more background, see:
3002 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3003 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3004 mkdir_p='$(MKDIR_P)'
3005
3006 # We need awk for the "check" target. The system "awk" is bad on
3007 # some platforms.
3008 # Always define AMTAR for backward compatibility. Yes, it's still used
3009 # in the wild :-( We should find a proper way to deprecate it ...
3010 AMTAR='$${TAR-tar}'
3011
3012 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3013
3014
3015
3016
3017
3018
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3020 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3021 # Check whether --enable-maintainer-mode was given.
3022 if test "${enable_maintainer_mode+set}" = set; then :
3023 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3024 else
3025 USE_MAINTAINER_MODE=no
3026 fi
3027
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3029 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3030 if test $USE_MAINTAINER_MODE = yes; then
3031 MAINTAINER_MODE_TRUE=
3032 MAINTAINER_MODE_FALSE='#'
3033 else
3034 MAINTAINER_MODE_TRUE='#'
3035 MAINTAINER_MODE_FALSE=
3036 fi
3037
3038 MAINT=$MAINTAINER_MODE_TRUE
3039
3040
3041 ac_config_headers="$ac_config_headers config.h"
3042
3043
3044
3045 # Checks for programs.
3046 DEPDIR="${am__leading_dot}deps"
3047
3048 ac_config_commands="$ac_config_commands depfiles"
3049
3050
3051 am_make=${MAKE-make}
3052 cat > confinc << 'END'
3053 am__doit:
3054 @echo this is the am__doit target
3055 .PHONY: am__doit
3056 END
3057 # If we don't find an include directive, just comment out the code.
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3059 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3060 am__include="#"
3061 am__quote=
3062 _am_result=none
3063 # First try GNU make style include.
3064 echo "include confinc" > confmf
3065 # Ignore all kinds of additional output from 'make'.
3066 case `$am_make -s -f confmf 2> /dev/null` in #(
3067 *the\ am__doit\ target*)
3068 am__include=include
3069 am__quote=
3070 _am_result=GNU
3071 ;;
3072 esac
3073 # Now try BSD make style include.
3074 if test "$am__include" = "#"; then
3075 echo '.include "confinc"' > confmf
3076 case `$am_make -s -f confmf 2> /dev/null` in #(
3077 *the\ am__doit\ target*)
3078 am__include=.include
3079 am__quote="\""
3080 _am_result=BSD
3081 ;;
3082 esac
3083 fi
3084
3085
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3087 $as_echo "$_am_result" >&6; }
3088 rm -f confinc confmf
3089
3090 # Check whether --enable-dependency-tracking was given.
3091 if test "${enable_dependency_tracking+set}" = set; then :
3092 enableval=$enable_dependency_tracking;
3093 fi
3094
3095 if test "x$enable_dependency_tracking" != xno; then
3096 am_depcomp="$ac_aux_dir/depcomp"
3097 AMDEPBACKSLASH='\'
3098 am__nodep='_no'
3099 fi
3100 if test "x$enable_dependency_tracking" != xno; then
3101 AMDEP_TRUE=
3102 AMDEP_FALSE='#'
3103 else
3104 AMDEP_TRUE='#'
3105 AMDEP_FALSE=
3106 fi
3107
3108
3109 ac_ext=c
3110 ac_cpp='$CPP $CPPFLAGS'
3111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3114 if test -n "$ac_tool_prefix"; then
3115 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3116 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3118 $as_echo_n "checking for $ac_word... " >&6; }
3119 if ${ac_cv_prog_CC+:} false; then :
3120 $as_echo_n "(cached) " >&6
3121 else
3122 if test -n "$CC"; then
3123 ac_cv_prog_CC="$CC" # Let the user override the test.
3124 else
3125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126 for as_dir in $PATH
3127 do
3128 IFS=$as_save_IFS
3129 test -z "$as_dir" && as_dir=.
3130 for ac_exec_ext in '' $ac_executable_extensions; do
3131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3132 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3134 break 2
3135 fi
3136 done
3137 done
3138 IFS=$as_save_IFS
3139
3140 fi
3141 fi
3142 CC=$ac_cv_prog_CC
3143 if test -n "$CC"; then
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3145 $as_echo "$CC" >&6; }
3146 else
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3148 $as_echo "no" >&6; }
3149 fi
3150
3151
3152 fi
3153 if test -z "$ac_cv_prog_CC"; then
3154 ac_ct_CC=$CC
3155 # Extract the first word of "gcc", so it can be a program name with args.
3156 set dummy gcc; ac_word=$2
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3158 $as_echo_n "checking for $ac_word... " >&6; }
3159 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3160 $as_echo_n "(cached) " >&6
3161 else
3162 if test -n "$ac_ct_CC"; then
3163 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3164 else
3165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3166 for as_dir in $PATH
3167 do
3168 IFS=$as_save_IFS
3169 test -z "$as_dir" && as_dir=.
3170 for ac_exec_ext in '' $ac_executable_extensions; do
3171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3172 ac_cv_prog_ac_ct_CC="gcc"
3173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3174 break 2
3175 fi
3176 done
3177 done
3178 IFS=$as_save_IFS
3179
3180 fi
3181 fi
3182 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3183 if test -n "$ac_ct_CC"; then
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3185 $as_echo "$ac_ct_CC" >&6; }
3186 else
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188 $as_echo "no" >&6; }
3189 fi
3190
3191 if test "x$ac_ct_CC" = x; then
3192 CC=""
3193 else
3194 case $cross_compiling:$ac_tool_warned in
3195 yes:)
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3197 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3198 ac_tool_warned=yes ;;
3199 esac
3200 CC=$ac_ct_CC
3201 fi
3202 else
3203 CC="$ac_cv_prog_CC"
3204 fi
3205
3206 if test -z "$CC"; then
3207 if test -n "$ac_tool_prefix"; then
3208 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3209 set dummy ${ac_tool_prefix}cc; ac_word=$2
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3211 $as_echo_n "checking for $ac_word... " >&6; }
3212 if ${ac_cv_prog_CC+:} false; then :
3213 $as_echo_n "(cached) " >&6
3214 else
3215 if test -n "$CC"; then
3216 ac_cv_prog_CC="$CC" # Let the user override the test.
3217 else
3218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219 for as_dir in $PATH
3220 do
3221 IFS=$as_save_IFS
3222 test -z "$as_dir" && as_dir=.
3223 for ac_exec_ext in '' $ac_executable_extensions; do
3224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3225 ac_cv_prog_CC="${ac_tool_prefix}cc"
3226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3227 break 2
3228 fi
3229 done
3230 done
3231 IFS=$as_save_IFS
3232
3233 fi
3234 fi
3235 CC=$ac_cv_prog_CC
3236 if test -n "$CC"; then
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3238 $as_echo "$CC" >&6; }
3239 else
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3241 $as_echo "no" >&6; }
3242 fi
3243
3244
3245 fi
3246 fi
3247 if test -z "$CC"; then
3248 # Extract the first word of "cc", so it can be a program name with args.
3249 set dummy cc; ac_word=$2
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3251 $as_echo_n "checking for $ac_word... " >&6; }
3252 if ${ac_cv_prog_CC+:} false; then :
3253 $as_echo_n "(cached) " >&6
3254 else
3255 if test -n "$CC"; then
3256 ac_cv_prog_CC="$CC" # Let the user override the test.
3257 else
3258 ac_prog_rejected=no
3259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260 for as_dir in $PATH
3261 do
3262 IFS=$as_save_IFS
3263 test -z "$as_dir" && as_dir=.
3264 for ac_exec_ext in '' $ac_executable_extensions; do
3265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3266 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3267 ac_prog_rejected=yes
3268 continue
3269 fi
3270 ac_cv_prog_CC="cc"
3271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3272 break 2
3273 fi
3274 done
3275 done
3276 IFS=$as_save_IFS
3277
3278 if test $ac_prog_rejected = yes; then
3279 # We found a bogon in the path, so make sure we never use it.
3280 set dummy $ac_cv_prog_CC
3281 shift
3282 if test $# != 0; then
3283 # We chose a different compiler from the bogus one.
3284 # However, it has the same basename, so the bogon will be chosen
3285 # first if we set CC to just the basename; use the full file name.
3286 shift
3287 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3288 fi
3289 fi
3290 fi
3291 fi
3292 CC=$ac_cv_prog_CC
3293 if test -n "$CC"; then
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3295 $as_echo "$CC" >&6; }
3296 else
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3298 $as_echo "no" >&6; }
3299 fi
3300
3301
3302 fi
3303 if test -z "$CC"; then
3304 if test -n "$ac_tool_prefix"; then
3305 for ac_prog in cl.exe
3306 do
3307 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3308 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3310 $as_echo_n "checking for $ac_word... " >&6; }
3311 if ${ac_cv_prog_CC+:} false; then :
3312 $as_echo_n "(cached) " >&6
3313 else
3314 if test -n "$CC"; then
3315 ac_cv_prog_CC="$CC" # Let the user override the test.
3316 else
3317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3318 for as_dir in $PATH
3319 do
3320 IFS=$as_save_IFS
3321 test -z "$as_dir" && as_dir=.
3322 for ac_exec_ext in '' $ac_executable_extensions; do
3323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3324 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3326 break 2
3327 fi
3328 done
3329 done
3330 IFS=$as_save_IFS
3331
3332 fi
3333 fi
3334 CC=$ac_cv_prog_CC
3335 if test -n "$CC"; then
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3337 $as_echo "$CC" >&6; }
3338 else
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3340 $as_echo "no" >&6; }
3341 fi
3342
3343
3344 test -n "$CC" && break
3345 done
3346 fi
3347 if test -z "$CC"; then
3348 ac_ct_CC=$CC
3349 for ac_prog in cl.exe
3350 do
3351 # Extract the first word of "$ac_prog", so it can be a program name with args.
3352 set dummy $ac_prog; ac_word=$2
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3354 $as_echo_n "checking for $ac_word... " >&6; }
3355 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3356 $as_echo_n "(cached) " >&6
3357 else
3358 if test -n "$ac_ct_CC"; then
3359 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3360 else
3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362 for as_dir in $PATH
3363 do
3364 IFS=$as_save_IFS
3365 test -z "$as_dir" && as_dir=.
3366 for ac_exec_ext in '' $ac_executable_extensions; do
3367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3368 ac_cv_prog_ac_ct_CC="$ac_prog"
3369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3370 break 2
3371 fi
3372 done
3373 done
3374 IFS=$as_save_IFS
3375
3376 fi
3377 fi
3378 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3379 if test -n "$ac_ct_CC"; then
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3381 $as_echo "$ac_ct_CC" >&6; }
3382 else
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3384 $as_echo "no" >&6; }
3385 fi
3386
3387
3388 test -n "$ac_ct_CC" && break
3389 done
3390
3391 if test "x$ac_ct_CC" = x; then
3392 CC=""
3393 else
3394 case $cross_compiling:$ac_tool_warned in
3395 yes:)
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3398 ac_tool_warned=yes ;;
3399 esac
3400 CC=$ac_ct_CC
3401 fi
3402 fi
3403
3404 fi
3405
3406
3407 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3408 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3409 as_fn_error $? "no acceptable C compiler found in \$PATH
3410 See \`config.log' for more details" "$LINENO" 5; }
3411
3412 # Provide some information about the compiler.
3413 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3414 set X $ac_compile
3415 ac_compiler=$2
3416 for ac_option in --version -v -V -qversion; do
3417 { { ac_try="$ac_compiler $ac_option >&5"
3418 case "(($ac_try" in
3419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3420 *) ac_try_echo=$ac_try;;
3421 esac
3422 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3423 $as_echo "$ac_try_echo"; } >&5
3424 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3425 ac_status=$?
3426 if test -s conftest.err; then
3427 sed '10a\
3428 ... rest of stderr output deleted ...
3429 10q' conftest.err >conftest.er1
3430 cat conftest.er1 >&5
3431 fi
3432 rm -f conftest.er1 conftest.err
3433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3434 test $ac_status = 0; }
3435 done
3436
3437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3438 /* end confdefs.h. */
3439
3440 int
3441 main ()
3442 {
3443
3444 ;
3445 return 0;
3446 }
3447 _ACEOF
3448 ac_clean_files_save=$ac_clean_files
3449 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3450 # Try to create an executable without -o first, disregard a.out.
3451 # It will help us diagnose broken compilers, and finding out an intuition
3452 # of exeext.
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3454 $as_echo_n "checking whether the C compiler works... " >&6; }
3455 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3456
3457 # The possible output files:
3458 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3459
3460 ac_rmfiles=
3461 for ac_file in $ac_files
3462 do
3463 case $ac_file in
3464 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3465 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3466 esac
3467 done
3468 rm -f $ac_rmfiles
3469
3470 if { { ac_try="$ac_link_default"
3471 case "(($ac_try" in
3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473 *) ac_try_echo=$ac_try;;
3474 esac
3475 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3476 $as_echo "$ac_try_echo"; } >&5
3477 (eval "$ac_link_default") 2>&5
3478 ac_status=$?
3479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3480 test $ac_status = 0; }; then :
3481 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3482 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3483 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3484 # so that the user can short-circuit this test for compilers unknown to
3485 # Autoconf.
3486 for ac_file in $ac_files ''
3487 do
3488 test -f "$ac_file" || continue
3489 case $ac_file in
3490 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3491 ;;
3492 [ab].out )
3493 # We found the default executable, but exeext='' is most
3494 # certainly right.
3495 break;;
3496 *.* )
3497 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3498 then :; else
3499 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3500 fi
3501 # We set ac_cv_exeext here because the later test for it is not
3502 # safe: cross compilers may not add the suffix if given an `-o'
3503 # argument, so we may need to know it at that point already.
3504 # Even if this section looks crufty: it has the advantage of
3505 # actually working.
3506 break;;
3507 * )
3508 break;;
3509 esac
3510 done
3511 test "$ac_cv_exeext" = no && ac_cv_exeext=
3512
3513 else
3514 ac_file=''
3515 fi
3516 if test -z "$ac_file"; then :
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3518 $as_echo "no" >&6; }
3519 $as_echo "$as_me: failed program was:" >&5
3520 sed 's/^/| /' conftest.$ac_ext >&5
3521
3522 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3523 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3524 as_fn_error 77 "C compiler cannot create executables
3525 See \`config.log' for more details" "$LINENO" 5; }
3526 else
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3528 $as_echo "yes" >&6; }
3529 fi
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3531 $as_echo_n "checking for C compiler default output file name... " >&6; }
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3533 $as_echo "$ac_file" >&6; }
3534 ac_exeext=$ac_cv_exeext
3535
3536 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3537 ac_clean_files=$ac_clean_files_save
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3539 $as_echo_n "checking for suffix of executables... " >&6; }
3540 if { { ac_try="$ac_link"
3541 case "(($ac_try" in
3542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543 *) ac_try_echo=$ac_try;;
3544 esac
3545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3546 $as_echo "$ac_try_echo"; } >&5
3547 (eval "$ac_link") 2>&5
3548 ac_status=$?
3549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3550 test $ac_status = 0; }; then :
3551 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3552 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3553 # work properly (i.e., refer to `conftest.exe'), while it won't with
3554 # `rm'.
3555 for ac_file in conftest.exe conftest conftest.*; do
3556 test -f "$ac_file" || continue
3557 case $ac_file in
3558 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3559 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3560 break;;
3561 * ) break;;
3562 esac
3563 done
3564 else
3565 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3567 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3568 See \`config.log' for more details" "$LINENO" 5; }
3569 fi
3570 rm -f conftest conftest$ac_cv_exeext
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3572 $as_echo "$ac_cv_exeext" >&6; }
3573
3574 rm -f conftest.$ac_ext
3575 EXEEXT=$ac_cv_exeext
3576 ac_exeext=$EXEEXT
3577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578 /* end confdefs.h. */
3579 #include <stdio.h>
3580 int
3581 main ()
3582 {
3583 FILE *f = fopen ("conftest.out", "w");
3584 return ferror (f) || fclose (f) != 0;
3585
3586 ;
3587 return 0;
3588 }
3589 _ACEOF
3590 ac_clean_files="$ac_clean_files conftest.out"
3591 # Check that the compiler produces executables we can run. If not, either
3592 # the compiler is broken, or we cross compile.
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3594 $as_echo_n "checking whether we are cross compiling... " >&6; }
3595 if test "$cross_compiling" != yes; then
3596 { { ac_try="$ac_link"
3597 case "(($ac_try" in
3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599 *) ac_try_echo=$ac_try;;
3600 esac
3601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3602 $as_echo "$ac_try_echo"; } >&5
3603 (eval "$ac_link") 2>&5
3604 ac_status=$?
3605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3606 test $ac_status = 0; }
3607 if { ac_try='./conftest$ac_cv_exeext'
3608 { { case "(($ac_try" in
3609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610 *) ac_try_echo=$ac_try;;
3611 esac
3612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3613 $as_echo "$ac_try_echo"; } >&5
3614 (eval "$ac_try") 2>&5
3615 ac_status=$?
3616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3617 test $ac_status = 0; }; }; then
3618 cross_compiling=no
3619 else
3620 if test "$cross_compiling" = maybe; then
3621 cross_compiling=yes
3622 else
3623 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3625 as_fn_error $? "cannot run C compiled programs.
3626 If you meant to cross compile, use \`--host'.
3627 See \`config.log' for more details" "$LINENO" 5; }
3628 fi
3629 fi
3630 fi
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3632 $as_echo "$cross_compiling" >&6; }
3633
3634 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3635 ac_clean_files=$ac_clean_files_save
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3637 $as_echo_n "checking for suffix of object files... " >&6; }
3638 if ${ac_cv_objext+:} false; then :
3639 $as_echo_n "(cached) " >&6
3640 else
3641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642 /* end confdefs.h. */
3643
3644 int
3645 main ()
3646 {
3647
3648 ;
3649 return 0;
3650 }
3651 _ACEOF
3652 rm -f conftest.o conftest.obj
3653 if { { ac_try="$ac_compile"
3654 case "(($ac_try" in
3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 *) ac_try_echo=$ac_try;;
3657 esac
3658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3659 $as_echo "$ac_try_echo"; } >&5
3660 (eval "$ac_compile") 2>&5
3661 ac_status=$?
3662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3663 test $ac_status = 0; }; then :
3664 for ac_file in conftest.o conftest.obj conftest.*; do
3665 test -f "$ac_file" || continue;
3666 case $ac_file in
3667 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3668 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3669 break;;
3670 esac
3671 done
3672 else
3673 $as_echo "$as_me: failed program was:" >&5
3674 sed 's/^/| /' conftest.$ac_ext >&5
3675
3676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3678 as_fn_error $? "cannot compute suffix of object files: cannot compile
3679 See \`config.log' for more details" "$LINENO" 5; }
3680 fi
3681 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3682 fi
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3684 $as_echo "$ac_cv_objext" >&6; }
3685 OBJEXT=$ac_cv_objext
3686 ac_objext=$OBJEXT
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3688 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3689 if ${ac_cv_c_compiler_gnu+:} false; then :
3690 $as_echo_n "(cached) " >&6
3691 else
3692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3693 /* end confdefs.h. */
3694
3695 int
3696 main ()
3697 {
3698 #ifndef __GNUC__
3699 choke me
3700 #endif
3701
3702 ;
3703 return 0;
3704 }
3705 _ACEOF
3706 if ac_fn_c_try_compile "$LINENO"; then :
3707 ac_compiler_gnu=yes
3708 else
3709 ac_compiler_gnu=no
3710 fi
3711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3712 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3713
3714 fi
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3716 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3717 if test $ac_compiler_gnu = yes; then
3718 GCC=yes
3719 else
3720 GCC=
3721 fi
3722 ac_test_CFLAGS=${CFLAGS+set}
3723 ac_save_CFLAGS=$CFLAGS
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3725 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3726 if ${ac_cv_prog_cc_g+:} false; then :
3727 $as_echo_n "(cached) " >&6
3728 else
3729 ac_save_c_werror_flag=$ac_c_werror_flag
3730 ac_c_werror_flag=yes
3731 ac_cv_prog_cc_g=no
3732 CFLAGS="-g"
3733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734 /* end confdefs.h. */
3735
3736 int
3737 main ()
3738 {
3739
3740 ;
3741 return 0;
3742 }
3743 _ACEOF
3744 if ac_fn_c_try_compile "$LINENO"; then :
3745 ac_cv_prog_cc_g=yes
3746 else
3747 CFLAGS=""
3748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3749 /* end confdefs.h. */
3750
3751 int
3752 main ()
3753 {
3754
3755 ;
3756 return 0;
3757 }
3758 _ACEOF
3759 if ac_fn_c_try_compile "$LINENO"; then :
3760
3761 else
3762 ac_c_werror_flag=$ac_save_c_werror_flag
3763 CFLAGS="-g"
3764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765 /* end confdefs.h. */
3766
3767 int
3768 main ()
3769 {
3770
3771 ;
3772 return 0;
3773 }
3774 _ACEOF
3775 if ac_fn_c_try_compile "$LINENO"; then :
3776 ac_cv_prog_cc_g=yes
3777 fi
3778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3779 fi
3780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3781 fi
3782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3783 ac_c_werror_flag=$ac_save_c_werror_flag
3784 fi
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3786 $as_echo "$ac_cv_prog_cc_g" >&6; }
3787 if test "$ac_test_CFLAGS" = set; then
3788 CFLAGS=$ac_save_CFLAGS
3789 elif test $ac_cv_prog_cc_g = yes; then
3790 if test "$GCC" = yes; then
3791 CFLAGS="-g -O2"
3792 else
3793 CFLAGS="-g"
3794 fi
3795 else
3796 if test "$GCC" = yes; then
3797 CFLAGS="-O2"
3798 else
3799 CFLAGS=
3800 fi
3801 fi
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3803 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3804 if ${ac_cv_prog_cc_c89+:} false; then :
3805 $as_echo_n "(cached) " >&6
3806 else
3807 ac_cv_prog_cc_c89=no
3808 ac_save_CC=$CC
3809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3810 /* end confdefs.h. */
3811 #include <stdarg.h>
3812 #include <stdio.h>
3813 struct stat;
3814 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3815 struct buf { int x; };
3816 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3817 static char *e (p, i)
3818 char **p;
3819 int i;
3820 {
3821 return p[i];
3822 }
3823 static char *f (char * (*g) (char **, int), char **p, ...)
3824 {
3825 char *s;
3826 va_list v;
3827 va_start (v,p);
3828 s = g (p, va_arg (v,int));
3829 va_end (v);
3830 return s;
3831 }
3832
3833 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3834 function prototypes and stuff, but not '\xHH' hex character constants.
3835 These don't provoke an error unfortunately, instead are silently treated
3836 as 'x'. The following induces an error, until -std is added to get
3837 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3838 array size at least. It's necessary to write '\x00'==0 to get something
3839 that's true only with -std. */
3840 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3841
3842 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3843 inside strings and character constants. */
3844 #define FOO(x) 'x'
3845 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3846
3847 int test (int i, double x);
3848 struct s1 {int (*f) (int a);};
3849 struct s2 {int (*f) (double a);};
3850 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3851 int argc;
3852 char **argv;
3853 int
3854 main ()
3855 {
3856 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3857 ;
3858 return 0;
3859 }
3860 _ACEOF
3861 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3862 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3863 do
3864 CC="$ac_save_CC $ac_arg"
3865 if ac_fn_c_try_compile "$LINENO"; then :
3866 ac_cv_prog_cc_c89=$ac_arg
3867 fi
3868 rm -f core conftest.err conftest.$ac_objext
3869 test "x$ac_cv_prog_cc_c89" != "xno" && break
3870 done
3871 rm -f conftest.$ac_ext
3872 CC=$ac_save_CC
3873
3874 fi
3875 # AC_CACHE_VAL
3876 case "x$ac_cv_prog_cc_c89" in
3877 x)
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3879 $as_echo "none needed" >&6; } ;;
3880 xno)
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3882 $as_echo "unsupported" >&6; } ;;
3883 *)
3884 CC="$CC $ac_cv_prog_cc_c89"
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3886 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3887 esac
3888 if test "x$ac_cv_prog_cc_c89" != xno; then :
3889
3890 fi
3891
3892 ac_ext=c
3893 ac_cpp='$CPP $CPPFLAGS'
3894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3897
3898 depcc="$CC" am_compiler_list=
3899
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3901 $as_echo_n "checking dependency style of $depcc... " >&6; }
3902 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3903 $as_echo_n "(cached) " >&6
3904 else
3905 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3906 # We make a subdir and do the tests there. Otherwise we can end up
3907 # making bogus files that we don't know about and never remove. For
3908 # instance it was reported that on HP-UX the gcc test will end up
3909 # making a dummy file named 'D' -- because '-MD' means "put the output
3910 # in D".
3911 rm -rf conftest.dir
3912 mkdir conftest.dir
3913 # Copy depcomp to subdir because otherwise we won't find it if we're
3914 # using a relative directory.
3915 cp "$am_depcomp" conftest.dir
3916 cd conftest.dir
3917 # We will build objects and dependencies in a subdirectory because
3918 # it helps to detect inapplicable dependency modes. For instance
3919 # both Tru64's cc and ICC support -MD to output dependencies as a
3920 # side effect of compilation, but ICC will put the dependencies in
3921 # the current directory while Tru64 will put them in the object
3922 # directory.
3923 mkdir sub
3924
3925 am_cv_CC_dependencies_compiler_type=none
3926 if test "$am_compiler_list" = ""; then
3927 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3928 fi
3929 am__universal=false
3930 case " $depcc " in #(
3931 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3932 esac
3933
3934 for depmode in $am_compiler_list; do
3935 # Setup a source with many dependencies, because some compilers
3936 # like to wrap large dependency lists on column 80 (with \), and
3937 # we should not choose a depcomp mode which is confused by this.
3938 #
3939 # We need to recreate these files for each test, as the compiler may
3940 # overwrite some of them when testing with obscure command lines.
3941 # This happens at least with the AIX C compiler.
3942 : > sub/conftest.c
3943 for i in 1 2 3 4 5 6; do
3944 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3945 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3946 # Solaris 10 /bin/sh.
3947 echo '/* dummy */' > sub/conftst$i.h
3948 done
3949 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3950
3951 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3952 # mode. It turns out that the SunPro C++ compiler does not properly
3953 # handle '-M -o', and we need to detect this. Also, some Intel
3954 # versions had trouble with output in subdirs.
3955 am__obj=sub/conftest.${OBJEXT-o}
3956 am__minus_obj="-o $am__obj"
3957 case $depmode in
3958 gcc)
3959 # This depmode causes a compiler race in universal mode.
3960 test "$am__universal" = false || continue
3961 ;;
3962 nosideeffect)
3963 # After this tag, mechanisms are not by side-effect, so they'll
3964 # only be used when explicitly requested.
3965 if test "x$enable_dependency_tracking" = xyes; then
3966 continue
3967 else
3968 break
3969 fi
3970 ;;
3971 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3972 # This compiler won't grok '-c -o', but also, the minuso test has
3973 # not run yet. These depmodes are late enough in the game, and
3974 # so weak that their functioning should not be impacted.
3975 am__obj=conftest.${OBJEXT-o}
3976 am__minus_obj=
3977 ;;
3978 none) break ;;
3979 esac
3980 if depmode=$depmode \
3981 source=sub/conftest.c object=$am__obj \
3982 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3983 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3984 >/dev/null 2>conftest.err &&
3985 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3986 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3987 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3988 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3989 # icc doesn't choke on unknown options, it will just issue warnings
3990 # or remarks (even with -Werror). So we grep stderr for any message
3991 # that says an option was ignored or not supported.
3992 # When given -MP, icc 7.0 and 7.1 complain thusly:
3993 # icc: Command line warning: ignoring option '-M'; no argument required
3994 # The diagnosis changed in icc 8.0:
3995 # icc: Command line remark: option '-MP' not supported
3996 if (grep 'ignoring option' conftest.err ||
3997 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3998 am_cv_CC_dependencies_compiler_type=$depmode
3999 break
4000 fi
4001 fi
4002 done
4003
4004 cd ..
4005 rm -rf conftest.dir
4006 else
4007 am_cv_CC_dependencies_compiler_type=none
4008 fi
4009
4010 fi
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4012 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4013 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4014
4015 if
4016 test "x$enable_dependency_tracking" != xno \
4017 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4018 am__fastdepCC_TRUE=
4019 am__fastdepCC_FALSE='#'
4020 else
4021 am__fastdepCC_TRUE='#'
4022 am__fastdepCC_FALSE=
4023 fi
4024
4025
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4027 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4028 if ${ac_cv_prog_cc_c99+:} false; then :
4029 $as_echo_n "(cached) " >&6
4030 else
4031 ac_cv_prog_cc_c99=no
4032 ac_save_CC=$CC
4033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034 /* end confdefs.h. */
4035 #include <stdarg.h>
4036 #include <stdbool.h>
4037 #include <stdlib.h>
4038 #include <wchar.h>
4039 #include <stdio.h>
4040
4041 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4042 #define debug(...) fprintf (stderr, __VA_ARGS__)
4043 #define showlist(...) puts (#__VA_ARGS__)
4044 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4045 static void
4046 test_varargs_macros (void)
4047 {
4048 int x = 1234;
4049 int y = 5678;
4050 debug ("Flag");
4051 debug ("X = %d\n", x);
4052 showlist (The first, second, and third items.);
4053 report (x>y, "x is %d but y is %d", x, y);
4054 }
4055
4056 // Check long long types.
4057 #define BIG64 18446744073709551615ull
4058 #define BIG32 4294967295ul
4059 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4060 #if !BIG_OK
4061 your preprocessor is broken;
4062 #endif
4063 #if BIG_OK
4064 #else
4065 your preprocessor is broken;
4066 #endif
4067 static long long int bignum = -9223372036854775807LL;
4068 static unsigned long long int ubignum = BIG64;
4069
4070 struct incomplete_array
4071 {
4072 int datasize;
4073 double data[];
4074 };
4075
4076 struct named_init {
4077 int number;
4078 const wchar_t *name;
4079 double average;
4080 };
4081
4082 typedef const char *ccp;
4083
4084 static inline int
4085 test_restrict (ccp restrict text)
4086 {
4087 // See if C++-style comments work.
4088 // Iterate through items via the restricted pointer.
4089 // Also check for declarations in for loops.
4090 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4091 continue;
4092 return 0;
4093 }
4094
4095 // Check varargs and va_copy.
4096 static void
4097 test_varargs (const char *format, ...)
4098 {
4099 va_list args;
4100 va_start (args, format);
4101 va_list args_copy;
4102 va_copy (args_copy, args);
4103
4104 const char *str;
4105 int number;
4106 float fnumber;
4107
4108 while (*format)
4109 {
4110 switch (*format++)
4111 {
4112 case 's': // string
4113 str = va_arg (args_copy, const char *);
4114 break;
4115 case 'd': // int
4116 number = va_arg (args_copy, int);
4117 break;
4118 case 'f': // float
4119 fnumber = va_arg (args_copy, double);
4120 break;
4121 default:
4122 break;
4123 }
4124 }
4125 va_end (args_copy);
4126 va_end (args);
4127 }
4128
4129 int
4130 main ()
4131 {
4132
4133 // Check bool.
4134 _Bool success = false;
4135
4136 // Check restrict.
4137 if (test_restrict ("String literal") == 0)
4138 success = true;
4139 char *restrict newvar = "Another string";
4140
4141 // Check varargs.
4142 test_varargs ("s, d' f .", "string", 65, 34.234);
4143 test_varargs_macros ();
4144
4145 // Check flexible array members.
4146 struct incomplete_array *ia =
4147 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4148 ia->datasize = 10;
4149 for (int i = 0; i < ia->datasize; ++i)
4150 ia->data[i] = i * 1.234;
4151
4152 // Check named initializers.
4153 struct named_init ni = {
4154 .number = 34,
4155 .name = L"Test wide string",
4156 .average = 543.34343,
4157 };
4158
4159 ni.number = 58;
4160
4161 int dynamic_array[ni.number];
4162 dynamic_array[ni.number - 1] = 543;
4163
4164 // work around unused variable warnings
4165 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4166 || dynamic_array[ni.number - 1] != 543);
4167
4168 ;
4169 return 0;
4170 }
4171 _ACEOF
4172 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4173 do
4174 CC="$ac_save_CC $ac_arg"
4175 if ac_fn_c_try_compile "$LINENO"; then :
4176 ac_cv_prog_cc_c99=$ac_arg
4177 fi
4178 rm -f core conftest.err conftest.$ac_objext
4179 test "x$ac_cv_prog_cc_c99" != "xno" && break
4180 done
4181 rm -f conftest.$ac_ext
4182 CC=$ac_save_CC
4183
4184 fi
4185 # AC_CACHE_VAL
4186 case "x$ac_cv_prog_cc_c99" in
4187 x)
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4189 $as_echo "none needed" >&6; } ;;
4190 xno)
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4192 $as_echo "unsupported" >&6; } ;;
4193 *)
4194 CC="$CC $ac_cv_prog_cc_c99"
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4196 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4197 esac
4198 if test "x$ac_cv_prog_cc_c99" != xno; then :
4199
4200 fi
4201
4202
4203 if test "$ac_cv_prog_cc_c99" = "no"; then :
4204 as_fn_error $? "no suitable C99 compiler found. Aborting." "$LINENO" 5
4205 fi
4206 for ac_prog in 'bison -y' byacc
4207 do
4208 # Extract the first word of "$ac_prog", so it can be a program name with args.
4209 set dummy $ac_prog; ac_word=$2
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4211 $as_echo_n "checking for $ac_word... " >&6; }
4212 if ${ac_cv_prog_YACC+:} false; then :
4213 $as_echo_n "(cached) " >&6
4214 else
4215 if test -n "$YACC"; then
4216 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4217 else
4218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219 for as_dir in $PATH
4220 do
4221 IFS=$as_save_IFS
4222 test -z "$as_dir" && as_dir=.
4223 for ac_exec_ext in '' $ac_executable_extensions; do
4224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4225 ac_cv_prog_YACC="$ac_prog"
4226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4227 break 2
4228 fi
4229 done
4230 done
4231 IFS=$as_save_IFS
4232
4233 fi
4234 fi
4235 YACC=$ac_cv_prog_YACC
4236 if test -n "$YACC"; then
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4238 $as_echo "$YACC" >&6; }
4239 else
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4241 $as_echo "no" >&6; }
4242 fi
4243
4244
4245 test -n "$YACC" && break
4246 done
4247 test -n "$YACC" || YACC="yacc"
4248
4249
4250 for ac_prog in flex lex
4251 do
4252 # Extract the first word of "$ac_prog", so it can be a program name with args.
4253 set dummy $ac_prog; ac_word=$2
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4255 $as_echo_n "checking for $ac_word... " >&6; }
4256 if ${ac_cv_prog_LEX+:} false; then :
4257 $as_echo_n "(cached) " >&6
4258 else
4259 if test -n "$LEX"; then
4260 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4261 else
4262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263 for as_dir in $PATH
4264 do
4265 IFS=$as_save_IFS
4266 test -z "$as_dir" && as_dir=.
4267 for ac_exec_ext in '' $ac_executable_extensions; do
4268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4269 ac_cv_prog_LEX="$ac_prog"
4270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4271 break 2
4272 fi
4273 done
4274 done
4275 IFS=$as_save_IFS
4276
4277 fi
4278 fi
4279 LEX=$ac_cv_prog_LEX
4280 if test -n "$LEX"; then
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4282 $as_echo "$LEX" >&6; }
4283 else
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4285 $as_echo "no" >&6; }
4286 fi
4287
4288
4289 test -n "$LEX" && break
4290 done
4291 test -n "$LEX" || LEX=":"
4292
4293 if test "x$LEX" != "x:"; then
4294 cat >conftest.l <<_ACEOF
4295 %%
4296 a { ECHO; }
4297 b { REJECT; }
4298 c { yymore (); }
4299 d { yyless (1); }
4300 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
4301 yyless ((input () != 0)); }
4302 f { unput (yytext[0]); }
4303 . { BEGIN INITIAL; }
4304 %%
4305 #ifdef YYTEXT_POINTER
4306 extern char *yytext;
4307 #endif
4308 int
4309 main (void)
4310 {
4311 return ! yylex () + ! yywrap ();
4312 }
4313 _ACEOF
4314 { { ac_try="$LEX conftest.l"
4315 case "(($ac_try" in
4316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4317 *) ac_try_echo=$ac_try;;
4318 esac
4319 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4320 $as_echo "$ac_try_echo"; } >&5
4321 (eval "$LEX conftest.l") 2>&5
4322 ac_status=$?
4323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4324 test $ac_status = 0; }
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4326 $as_echo_n "checking lex output file root... " >&6; }
4327 if ${ac_cv_prog_lex_root+:} false; then :
4328 $as_echo_n "(cached) " >&6
4329 else
4330
4331 if test -f lex.yy.c; then
4332 ac_cv_prog_lex_root=lex.yy
4333 elif test -f lexyy.c; then
4334 ac_cv_prog_lex_root=lexyy
4335 else
4336 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4337 fi
4338 fi
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4340 $as_echo "$ac_cv_prog_lex_root" >&6; }
4341 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4342
4343 if test -z "${LEXLIB+set}"; then
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4345 $as_echo_n "checking lex library... " >&6; }
4346 if ${ac_cv_lib_lex+:} false; then :
4347 $as_echo_n "(cached) " >&6
4348 else
4349
4350 ac_save_LIBS=$LIBS
4351 ac_cv_lib_lex='none needed'
4352 for ac_lib in '' -lfl -ll; do
4353 LIBS="$ac_lib $ac_save_LIBS"
4354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355 /* end confdefs.h. */
4356 `cat $LEX_OUTPUT_ROOT.c`
4357 _ACEOF
4358 if ac_fn_c_try_link "$LINENO"; then :
4359 ac_cv_lib_lex=$ac_lib
4360 fi
4361 rm -f core conftest.err conftest.$ac_objext \
4362 conftest$ac_exeext conftest.$ac_ext
4363 test "$ac_cv_lib_lex" != 'none needed' && break
4364 done
4365 LIBS=$ac_save_LIBS
4366
4367 fi
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4369 $as_echo "$ac_cv_lib_lex" >&6; }
4370 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4371 fi
4372
4373
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4375 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4376 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4377 $as_echo_n "(cached) " >&6
4378 else
4379 # POSIX says lex can declare yytext either as a pointer or an array; the
4380 # default is implementation-dependent. Figure out which it is, since
4381 # not all implementations provide the %pointer and %array declarations.
4382 ac_cv_prog_lex_yytext_pointer=no
4383 ac_save_LIBS=$LIBS
4384 LIBS="$LEXLIB $ac_save_LIBS"
4385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386 /* end confdefs.h. */
4387
4388 #define YYTEXT_POINTER 1
4389 `cat $LEX_OUTPUT_ROOT.c`
4390 _ACEOF
4391 if ac_fn_c_try_link "$LINENO"; then :
4392 ac_cv_prog_lex_yytext_pointer=yes
4393 fi
4394 rm -f core conftest.err conftest.$ac_objext \
4395 conftest$ac_exeext conftest.$ac_ext
4396 LIBS=$ac_save_LIBS
4397
4398 fi
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4400 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4401 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4402
4403 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4404
4405 fi
4406 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4407
4408 fi
4409 if test "$LEX" = :; then
4410 LEX=${am_missing_run}flex
4411 fi
4412
4413
4414 # Initializing libtool.
4415
4416
4417
4418
4419
4420
4421
4422 case `pwd` in
4423 *\ * | *\ *)
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4425 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4426 esac
4427
4428
4429
4430 macro_version='2.4.2'
4431 macro_revision='1.3337'
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445 ltmain="$ac_aux_dir/ltmain.sh"
4446
4447 # Make sure we can run config.sub.
4448 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4449 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4450
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4452 $as_echo_n "checking build system type... " >&6; }
4453 if ${ac_cv_build+:} false; then :
4454 $as_echo_n "(cached) " >&6
4455 else
4456 ac_build_alias=$build_alias
4457 test "x$ac_build_alias" = x &&
4458 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4459 test "x$ac_build_alias" = x &&
4460 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4461 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4462 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4463
4464 fi
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4466 $as_echo "$ac_cv_build" >&6; }
4467 case $ac_cv_build in
4468 *-*-*) ;;
4469 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4470 esac
4471 build=$ac_cv_build
4472 ac_save_IFS=$IFS; IFS='-'
4473 set x $ac_cv_build
4474 shift
4475 build_cpu=$1
4476 build_vendor=$2
4477 shift; shift
4478 # Remember, the first character of IFS is used to create $*,
4479 # except with old shells:
4480 build_os=$*
4481 IFS=$ac_save_IFS
4482 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4483
4484
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4486 $as_echo_n "checking host system type... " >&6; }
4487 if ${ac_cv_host+:} false; then :
4488 $as_echo_n "(cached) " >&6
4489 else
4490 if test "x$host_alias" = x; then
4491 ac_cv_host=$ac_cv_build
4492 else
4493 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4494 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4495 fi
4496
4497 fi
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4499 $as_echo "$ac_cv_host" >&6; }
4500 case $ac_cv_host in
4501 *-*-*) ;;
4502 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4503 esac
4504 host=$ac_cv_host
4505 ac_save_IFS=$IFS; IFS='-'
4506 set x $ac_cv_host
4507 shift
4508 host_cpu=$1
4509 host_vendor=$2
4510 shift; shift
4511 # Remember, the first character of IFS is used to create $*,
4512 # except with old shells:
4513 host_os=$*
4514 IFS=$ac_save_IFS
4515 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4516
4517
4518 # Backslashify metacharacters that are still active within
4519 # double-quoted strings.
4520 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4521
4522 # Same as above, but do not quote variable references.
4523 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4524
4525 # Sed substitution to delay expansion of an escaped shell variable in a
4526 # double_quote_subst'ed string.
4527 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4528
4529 # Sed substitution to delay expansion of an escaped single quote.
4530 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4531
4532 # Sed substitution to avoid accidental globbing in evaled expressions
4533 no_glob_subst='s/\*/\\\*/g'
4534
4535 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4536 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4537 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4538
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4540 $as_echo_n "checking how to print strings... " >&6; }
4541 # Test print first, because it will be a builtin if present.
4542 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4543 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4544 ECHO='print -r --'
4545 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4546 ECHO='printf %s\n'
4547 else
4548 # Use this function as a fallback that always works.
4549 func_fallback_echo ()
4550 {
4551 eval 'cat <<_LTECHO_EOF
4552 $1
4553 _LTECHO_EOF'
4554 }
4555 ECHO='func_fallback_echo'
4556 fi
4557
4558 # func_echo_all arg...
4559 # Invoke $ECHO with all args, space-separated.
4560 func_echo_all ()
4561 {
4562 $ECHO ""
4563 }
4564
4565 case "$ECHO" in
4566 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4567 $as_echo "printf" >&6; } ;;
4568 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4569 $as_echo "print -r" >&6; } ;;
4570 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4571 $as_echo "cat" >&6; } ;;
4572 esac
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4588 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4589 if ${ac_cv_path_SED+:} false; then :
4590 $as_echo_n "(cached) " >&6
4591 else
4592 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4593 for ac_i in 1 2 3 4 5 6 7; do
4594 ac_script="$ac_script$as_nl$ac_script"
4595 done
4596 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4597 { ac_script=; unset ac_script;}
4598 if test -z "$SED"; then
4599 ac_path_SED_found=false
4600 # Loop through the user's path and test for each of PROGNAME-LIST
4601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602 for as_dir in $PATH
4603 do
4604 IFS=$as_save_IFS
4605 test -z "$as_dir" && as_dir=.
4606 for ac_prog in sed gsed; do
4607 for ac_exec_ext in '' $ac_executable_extensions; do
4608 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4609 as_fn_executable_p "$ac_path_SED" || continue
4610 # Check for GNU ac_path_SED and select it if it is found.
4611 # Check for GNU $ac_path_SED
4612 case `"$ac_path_SED" --version 2>&1` in
4613 *GNU*)
4614 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4615 *)
4616 ac_count=0
4617 $as_echo_n 0123456789 >"conftest.in"
4618 while :
4619 do
4620 cat "conftest.in" "conftest.in" >"conftest.tmp"
4621 mv "conftest.tmp" "conftest.in"
4622 cp "conftest.in" "conftest.nl"
4623 $as_echo '' >> "conftest.nl"
4624 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4625 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4626 as_fn_arith $ac_count + 1 && ac_count=$as_val
4627 if test $ac_count -gt ${ac_path_SED_max-0}; then
4628 # Best one so far, save it but keep looking for a better one
4629 ac_cv_path_SED="$ac_path_SED"
4630 ac_path_SED_max=$ac_count
4631 fi
4632 # 10*(2^10) chars as input seems more than enough
4633 test $ac_count -gt 10 && break
4634 done
4635 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4636 esac
4637
4638 $ac_path_SED_found && break 3
4639 done
4640 done
4641 done
4642 IFS=$as_save_IFS
4643 if test -z "$ac_cv_path_SED"; then
4644 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4645 fi
4646 else
4647 ac_cv_path_SED=$SED
4648 fi
4649
4650 fi
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4652 $as_echo "$ac_cv_path_SED" >&6; }
4653 SED="$ac_cv_path_SED"
4654 rm -f conftest.sed
4655
4656 test -z "$SED" && SED=sed
4657 Xsed="$SED -e 1s/^X//"
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4670 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4671 if ${ac_cv_path_GREP+:} false; then :
4672 $as_echo_n "(cached) " >&6
4673 else
4674 if test -z "$GREP"; then
4675 ac_path_GREP_found=false
4676 # Loop through the user's path and test for each of PROGNAME-LIST
4677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4679 do
4680 IFS=$as_save_IFS
4681 test -z "$as_dir" && as_dir=.
4682 for ac_prog in grep ggrep; do
4683 for ac_exec_ext in '' $ac_executable_extensions; do
4684 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4685 as_fn_executable_p "$ac_path_GREP" || continue
4686 # Check for GNU ac_path_GREP and select it if it is found.
4687 # Check for GNU $ac_path_GREP
4688 case `"$ac_path_GREP" --version 2>&1` in
4689 *GNU*)
4690 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4691 *)
4692 ac_count=0
4693 $as_echo_n 0123456789 >"conftest.in"
4694 while :
4695 do
4696 cat "conftest.in" "conftest.in" >"conftest.tmp"
4697 mv "conftest.tmp" "conftest.in"
4698 cp "conftest.in" "conftest.nl"
4699 $as_echo 'GREP' >> "conftest.nl"
4700 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4701 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4702 as_fn_arith $ac_count + 1 && ac_count=$as_val
4703 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4704 # Best one so far, save it but keep looking for a better one
4705 ac_cv_path_GREP="$ac_path_GREP"
4706 ac_path_GREP_max=$ac_count
4707 fi
4708 # 10*(2^10) chars as input seems more than enough
4709 test $ac_count -gt 10 && break
4710 done
4711 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4712 esac
4713
4714 $ac_path_GREP_found && break 3
4715 done
4716 done
4717 done
4718 IFS=$as_save_IFS
4719 if test -z "$ac_cv_path_GREP"; then
4720 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4721 fi
4722 else
4723 ac_cv_path_GREP=$GREP
4724 fi
4725
4726 fi
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4728 $as_echo "$ac_cv_path_GREP" >&6; }
4729 GREP="$ac_cv_path_GREP"
4730
4731
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4733 $as_echo_n "checking for egrep... " >&6; }
4734 if ${ac_cv_path_EGREP+:} false; then :
4735 $as_echo_n "(cached) " >&6
4736 else
4737 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4738 then ac_cv_path_EGREP="$GREP -E"
4739 else
4740 if test -z "$EGREP"; then
4741 ac_path_EGREP_found=false
4742 # Loop through the user's path and test for each of PROGNAME-LIST
4743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4745 do
4746 IFS=$as_save_IFS
4747 test -z "$as_dir" && as_dir=.
4748 for ac_prog in egrep; do
4749 for ac_exec_ext in '' $ac_executable_extensions; do
4750 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4751 as_fn_executable_p "$ac_path_EGREP" || continue
4752 # Check for GNU ac_path_EGREP and select it if it is found.
4753 # Check for GNU $ac_path_EGREP
4754 case `"$ac_path_EGREP" --version 2>&1` in
4755 *GNU*)
4756 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4757 *)
4758 ac_count=0
4759 $as_echo_n 0123456789 >"conftest.in"
4760 while :
4761 do
4762 cat "conftest.in" "conftest.in" >"conftest.tmp"
4763 mv "conftest.tmp" "conftest.in"
4764 cp "conftest.in" "conftest.nl"
4765 $as_echo 'EGREP' >> "conftest.nl"
4766 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4767 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4768 as_fn_arith $ac_count + 1 && ac_count=$as_val
4769 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4770 # Best one so far, save it but keep looking for a better one
4771 ac_cv_path_EGREP="$ac_path_EGREP"
4772 ac_path_EGREP_max=$ac_count
4773 fi
4774 # 10*(2^10) chars as input seems more than enough
4775 test $ac_count -gt 10 && break
4776 done
4777 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4778 esac
4779
4780 $ac_path_EGREP_found && break 3
4781 done
4782 done
4783 done
4784 IFS=$as_save_IFS
4785 if test -z "$ac_cv_path_EGREP"; then
4786 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4787 fi
4788 else
4789 ac_cv_path_EGREP=$EGREP
4790 fi
4791
4792 fi
4793 fi
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4795 $as_echo "$ac_cv_path_EGREP" >&6; }
4796 EGREP="$ac_cv_path_EGREP"
4797
4798
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4800 $as_echo_n "checking for fgrep... " >&6; }
4801 if ${ac_cv_path_FGREP+:} false; then :
4802 $as_echo_n "(cached) " >&6
4803 else
4804 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4805 then ac_cv_path_FGREP="$GREP -F"
4806 else
4807 if test -z "$FGREP"; then
4808 ac_path_FGREP_found=false
4809 # Loop through the user's path and test for each of PROGNAME-LIST
4810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4812 do
4813 IFS=$as_save_IFS
4814 test -z "$as_dir" && as_dir=.
4815 for ac_prog in fgrep; do
4816 for ac_exec_ext in '' $ac_executable_extensions; do
4817 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4818 as_fn_executable_p "$ac_path_FGREP" || continue
4819 # Check for GNU ac_path_FGREP and select it if it is found.
4820 # Check for GNU $ac_path_FGREP
4821 case `"$ac_path_FGREP" --version 2>&1` in
4822 *GNU*)
4823 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4824 *)
4825 ac_count=0
4826 $as_echo_n 0123456789 >"conftest.in"
4827 while :
4828 do
4829 cat "conftest.in" "conftest.in" >"conftest.tmp"
4830 mv "conftest.tmp" "conftest.in"
4831 cp "conftest.in" "conftest.nl"
4832 $as_echo 'FGREP' >> "conftest.nl"
4833 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4834 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4835 as_fn_arith $ac_count + 1 && ac_count=$as_val
4836 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4837 # Best one so far, save it but keep looking for a better one
4838 ac_cv_path_FGREP="$ac_path_FGREP"
4839 ac_path_FGREP_max=$ac_count
4840 fi
4841 # 10*(2^10) chars as input seems more than enough
4842 test $ac_count -gt 10 && break
4843 done
4844 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4845 esac
4846
4847 $ac_path_FGREP_found && break 3
4848 done
4849 done
4850 done
4851 IFS=$as_save_IFS
4852 if test -z "$ac_cv_path_FGREP"; then
4853 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4854 fi
4855 else
4856 ac_cv_path_FGREP=$FGREP
4857 fi
4858
4859 fi
4860 fi
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4862 $as_echo "$ac_cv_path_FGREP" >&6; }
4863 FGREP="$ac_cv_path_FGREP"
4864
4865
4866 test -z "$GREP" && GREP=grep
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886 # Check whether --with-gnu-ld was given.
4887 if test "${with_gnu_ld+set}" = set; then :
4888 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4889 else
4890 with_gnu_ld=no
4891 fi
4892
4893 ac_prog=ld
4894 if test "$GCC" = yes; then
4895 # Check if gcc -print-prog-name=ld gives a path.
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4897 $as_echo_n "checking for ld used by $CC... " >&6; }
4898 case $host in
4899 *-*-mingw*)
4900 # gcc leaves a trailing carriage return which upsets mingw
4901 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4902 *)
4903 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4904 esac
4905 case $ac_prog in
4906 # Accept absolute paths.
4907 [\\/]* | ?:[\\/]*)
4908 re_direlt='/[^/][^/]*/\.\./'
4909 # Canonicalize the pathname of ld
4910 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4911 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4912 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4913 done
4914 test -z "$LD" && LD="$ac_prog"
4915 ;;
4916 "")
4917 # If it fails, then pretend we aren't using GCC.
4918 ac_prog=ld
4919 ;;
4920 *)
4921 # If it is relative, then search for the first ld in PATH.
4922 with_gnu_ld=unknown
4923 ;;
4924 esac
4925 elif test "$with_gnu_ld" = yes; then
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4927 $as_echo_n "checking for GNU ld... " >&6; }
4928 else
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4930 $as_echo_n "checking for non-GNU ld... " >&6; }
4931 fi
4932 if ${lt_cv_path_LD+:} false; then :
4933 $as_echo_n "(cached) " >&6
4934 else
4935 if test -z "$LD"; then
4936 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4937 for ac_dir in $PATH; do
4938 IFS="$lt_save_ifs"
4939 test -z "$ac_dir" && ac_dir=.
4940 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4941 lt_cv_path_LD="$ac_dir/$ac_prog"
4942 # Check to see if the program is GNU ld. I'd rather use --version,
4943 # but apparently some variants of GNU ld only accept -v.
4944 # Break only if it was the GNU/non-GNU ld that we prefer.
4945 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4946 *GNU* | *'with BFD'*)
4947 test "$with_gnu_ld" != no && break
4948 ;;
4949 *)
4950 test "$with_gnu_ld" != yes && break
4951 ;;
4952 esac
4953 fi
4954 done
4955 IFS="$lt_save_ifs"
4956 else
4957 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4958 fi
4959 fi
4960
4961 LD="$lt_cv_path_LD"
4962 if test -n "$LD"; then
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4964 $as_echo "$LD" >&6; }
4965 else
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4967 $as_echo "no" >&6; }
4968 fi
4969 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4971 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4972 if ${lt_cv_prog_gnu_ld+:} false; then :
4973 $as_echo_n "(cached) " >&6
4974 else
4975 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4976 case `$LD -v 2>&1 </dev/null` in
4977 *GNU* | *'with BFD'*)
4978 lt_cv_prog_gnu_ld=yes
4979 ;;
4980 *)
4981 lt_cv_prog_gnu_ld=no
4982 ;;
4983 esac
4984 fi
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4986 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4987 with_gnu_ld=$lt_cv_prog_gnu_ld
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4998 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4999 if ${lt_cv_path_NM+:} false; then :
5000 $as_echo_n "(cached) " >&6
5001 else
5002 if test -n "$NM"; then
5003 # Let the user override the test.
5004 lt_cv_path_NM="$NM"
5005 else
5006 lt_nm_to_check="${ac_tool_prefix}nm"
5007 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5008 lt_nm_to_check="$lt_nm_to_check nm"
5009 fi
5010 for lt_tmp_nm in $lt_nm_to_check; do
5011 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5012 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5013 IFS="$lt_save_ifs"
5014 test -z "$ac_dir" && ac_dir=.
5015 tmp_nm="$ac_dir/$lt_tmp_nm"
5016 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5017 # Check to see if the nm accepts a BSD-compat flag.
5018 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5019 # nm: unknown option "B" ignored
5020 # Tru64's nm complains that /dev/null is an invalid object file
5021 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5022 */dev/null* | *'Invalid file or object type'*)
5023 lt_cv_path_NM="$tmp_nm -B"
5024 break
5025 ;;
5026 *)
5027 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5028 */dev/null*)
5029 lt_cv_path_NM="$tmp_nm -p"
5030 break
5031 ;;
5032 *)
5033 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5034 continue # so that we can try to find one that supports BSD flags
5035 ;;
5036 esac
5037 ;;
5038 esac
5039 fi
5040 done
5041 IFS="$lt_save_ifs"
5042 done
5043 : ${lt_cv_path_NM=no}
5044 fi
5045 fi
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5047 $as_echo "$lt_cv_path_NM" >&6; }
5048 if test "$lt_cv_path_NM" != "no"; then
5049 NM="$lt_cv_path_NM"
5050 else
5051 # Didn't find any BSD compatible name lister, look for dumpbin.
5052 if test -n "$DUMPBIN"; then :
5053 # Let the user override the test.
5054 else
5055 if test -n "$ac_tool_prefix"; then
5056 for ac_prog in dumpbin "link -dump"
5057 do
5058 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5059 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5061 $as_echo_n "checking for $ac_word... " >&6; }
5062 if ${ac_cv_prog_DUMPBIN+:} false; then :
5063 $as_echo_n "(cached) " >&6
5064 else
5065 if test -n "$DUMPBIN"; then
5066 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5067 else
5068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069 for as_dir in $PATH
5070 do
5071 IFS=$as_save_IFS
5072 test -z "$as_dir" && as_dir=.
5073 for ac_exec_ext in '' $ac_executable_extensions; do
5074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5075 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5077 break 2
5078 fi
5079 done
5080 done
5081 IFS=$as_save_IFS
5082
5083 fi
5084 fi
5085 DUMPBIN=$ac_cv_prog_DUMPBIN
5086 if test -n "$DUMPBIN"; then
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5088 $as_echo "$DUMPBIN" >&6; }
5089 else
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5091 $as_echo "no" >&6; }
5092 fi
5093
5094
5095 test -n "$DUMPBIN" && break
5096 done
5097 fi
5098 if test -z "$DUMPBIN"; then
5099 ac_ct_DUMPBIN=$DUMPBIN
5100 for ac_prog in dumpbin "link -dump"
5101 do
5102 # Extract the first word of "$ac_prog", so it can be a program name with args.
5103 set dummy $ac_prog; ac_word=$2
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5105 $as_echo_n "checking for $ac_word... " >&6; }
5106 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5107 $as_echo_n "(cached) " >&6
5108 else
5109 if test -n "$ac_ct_DUMPBIN"; then
5110 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5111 else
5112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113 for as_dir in $PATH
5114 do
5115 IFS=$as_save_IFS
5116 test -z "$as_dir" && as_dir=.
5117 for ac_exec_ext in '' $ac_executable_extensions; do
5118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5119 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5121 break 2
5122 fi
5123 done
5124 done
5125 IFS=$as_save_IFS
5126
5127 fi
5128 fi
5129 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5130 if test -n "$ac_ct_DUMPBIN"; then
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5132 $as_echo "$ac_ct_DUMPBIN" >&6; }
5133 else
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5135 $as_echo "no" >&6; }
5136 fi
5137
5138
5139 test -n "$ac_ct_DUMPBIN" && break
5140 done
5141
5142 if test "x$ac_ct_DUMPBIN" = x; then
5143 DUMPBIN=":"
5144 else
5145 case $cross_compiling:$ac_tool_warned in
5146 yes:)
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5148 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5149 ac_tool_warned=yes ;;
5150 esac
5151 DUMPBIN=$ac_ct_DUMPBIN
5152 fi
5153 fi
5154
5155 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5156 *COFF*)
5157 DUMPBIN="$DUMPBIN -symbols"
5158 ;;
5159 *)
5160 DUMPBIN=:
5161 ;;
5162 esac
5163 fi
5164
5165 if test "$DUMPBIN" != ":"; then
5166 NM="$DUMPBIN"
5167 fi
5168 fi
5169 test -z "$NM" && NM=nm
5170
5171
5172
5173
5174
5175
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5177 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5178 if ${lt_cv_nm_interface+:} false; then :
5179 $as_echo_n "(cached) " >&6
5180 else
5181 lt_cv_nm_interface="BSD nm"
5182 echo "int some_variable = 0;" > conftest.$ac_ext
5183 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5184 (eval "$ac_compile" 2>conftest.err)
5185 cat conftest.err >&5
5186 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5187 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5188 cat conftest.err >&5
5189 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5190 cat conftest.out >&5
5191 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5192 lt_cv_nm_interface="MS dumpbin"
5193 fi
5194 rm -f conftest*
5195 fi
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5197 $as_echo "$lt_cv_nm_interface" >&6; }
5198
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5200 $as_echo_n "checking whether ln -s works... " >&6; }
5201 LN_S=$as_ln_s
5202 if test "$LN_S" = "ln -s"; then
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5204 $as_echo "yes" >&6; }
5205 else
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5207 $as_echo "no, using $LN_S" >&6; }
5208 fi
5209
5210 # find the maximum length of command line arguments
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5212 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5213 if ${lt_cv_sys_max_cmd_len+:} false; then :
5214 $as_echo_n "(cached) " >&6
5215 else
5216 i=0
5217 teststring="ABCD"
5218
5219 case $build_os in
5220 msdosdjgpp*)
5221 # On DJGPP, this test can blow up pretty badly due to problems in libc
5222 # (any single argument exceeding 2000 bytes causes a buffer overrun
5223 # during glob expansion). Even if it were fixed, the result of this
5224 # check would be larger than it should be.
5225 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5226 ;;
5227
5228 gnu*)
5229 # Under GNU Hurd, this test is not required because there is
5230 # no limit to the length of command line arguments.
5231 # Libtool will interpret -1 as no limit whatsoever
5232 lt_cv_sys_max_cmd_len=-1;
5233 ;;
5234
5235 cygwin* | mingw* | cegcc*)
5236 # On Win9x/ME, this test blows up -- it succeeds, but takes
5237 # about 5 minutes as the teststring grows exponentially.
5238 # Worse, since 9x/ME are not pre-emptively multitasking,
5239 # you end up with a "frozen" computer, even though with patience
5240 # the test eventually succeeds (with a max line length of 256k).
5241 # Instead, let's just punt: use the minimum linelength reported by
5242 # all of the supported platforms: 8192 (on NT/2K/XP).
5243 lt_cv_sys_max_cmd_len=8192;
5244 ;;
5245
5246 mint*)
5247 # On MiNT this can take a long time and run out of memory.
5248 lt_cv_sys_max_cmd_len=8192;
5249 ;;
5250
5251 amigaos*)
5252 # On AmigaOS with pdksh, this test takes hours, literally.
5253 # So we just punt and use a minimum line length of 8192.
5254 lt_cv_sys_max_cmd_len=8192;
5255 ;;
5256
5257 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5258 # This has been around since 386BSD, at least. Likely further.
5259 if test -x /sbin/sysctl; then
5260 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5261 elif test -x /usr/sbin/sysctl; then
5262 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5263 else
5264 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5265 fi
5266 # And add a safety zone
5267 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5268 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5269 ;;
5270
5271 interix*)
5272 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5273 lt_cv_sys_max_cmd_len=196608
5274 ;;
5275
5276 os2*)
5277 # The test takes a long time on OS/2.
5278 lt_cv_sys_max_cmd_len=8192
5279 ;;
5280
5281 osf*)
5282 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5283 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5284 # nice to cause kernel panics so lets avoid the loop below.
5285 # First set a reasonable default.
5286 lt_cv_sys_max_cmd_len=16384
5287 #
5288 if test -x /sbin/sysconfig; then
5289 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5290 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5291 esac
5292 fi
5293 ;;
5294 sco3.2v5*)
5295 lt_cv_sys_max_cmd_len=102400
5296 ;;
5297 sysv5* | sco5v6* | sysv4.2uw2*)
5298 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5299 if test -n "$kargmax"; then
5300 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5301 else
5302 lt_cv_sys_max_cmd_len=32768
5303 fi
5304 ;;
5305 *)
5306 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5307 if test -n "$lt_cv_sys_max_cmd_len"; then
5308 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5309 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5310 else
5311 # Make teststring a little bigger before we do anything with it.
5312 # a 1K string should be a reasonable start.
5313 for i in 1 2 3 4 5 6 7 8 ; do
5314 teststring=$teststring$teststring
5315 done
5316 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5317 # If test is not a shell built-in, we'll probably end up computing a
5318 # maximum length that is only half of the actual maximum length, but
5319 # we can't tell.
5320 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5321 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5322 test $i != 17 # 1/2 MB should be enough
5323 do
5324 i=`expr $i + 1`
5325 teststring=$teststring$teststring
5326 done
5327 # Only check the string length outside the loop.
5328 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5329 teststring=
5330 # Add a significant safety factor because C++ compilers can tack on
5331 # massive amounts of additional arguments before passing them to the
5332 # linker. It appears as though 1/2 is a usable value.
5333 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5334 fi
5335 ;;
5336 esac
5337
5338 fi
5339
5340 if test -n $lt_cv_sys_max_cmd_len ; then
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5342 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5343 else
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5345 $as_echo "none" >&6; }
5346 fi
5347 max_cmd_len=$lt_cv_sys_max_cmd_len
5348
5349
5350
5351
5352
5353
5354 : ${CP="cp -f"}
5355 : ${MV="mv -f"}
5356 : ${RM="rm -f"}
5357
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5359 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5360 # Try some XSI features
5361 xsi_shell=no
5362 ( _lt_dummy="a/b/c"
5363 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5364 = c,a/b,b/c, \
5365 && eval 'test $(( 1 + 1 )) -eq 2 \
5366 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5367 && xsi_shell=yes
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5369 $as_echo "$xsi_shell" >&6; }
5370
5371
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5373 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5374 lt_shell_append=no
5375 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5376 >/dev/null 2>&1 \
5377 && lt_shell_append=yes
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5379 $as_echo "$lt_shell_append" >&6; }
5380
5381
5382 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5383 lt_unset=unset
5384 else
5385 lt_unset=false
5386 fi
5387
5388
5389
5390
5391
5392 # test EBCDIC or ASCII
5393 case `echo X|tr X '\101'` in
5394 A) # ASCII based system
5395 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5396 lt_SP2NL='tr \040 \012'
5397 lt_NL2SP='tr \015\012 \040\040'
5398 ;;
5399 *) # EBCDIC based system
5400 lt_SP2NL='tr \100 \n'
5401 lt_NL2SP='tr \r\n \100\100'
5402 ;;
5403 esac
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5414 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5415 if ${lt_cv_to_host_file_cmd+:} false; then :
5416 $as_echo_n "(cached) " >&6
5417 else
5418 case $host in
5419 *-*-mingw* )
5420 case $build in
5421 *-*-mingw* ) # actually msys
5422 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5423 ;;
5424 *-*-cygwin* )
5425 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5426 ;;
5427 * ) # otherwise, assume *nix
5428 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5429 ;;
5430 esac
5431 ;;
5432 *-*-cygwin* )
5433 case $build in
5434 *-*-mingw* ) # actually msys
5435 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5436 ;;
5437 *-*-cygwin* )
5438 lt_cv_to_host_file_cmd=func_convert_file_noop
5439 ;;
5440 * ) # otherwise, assume *nix
5441 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5442 ;;
5443 esac
5444 ;;
5445 * ) # unhandled hosts (and "normal" native builds)
5446 lt_cv_to_host_file_cmd=func_convert_file_noop
5447 ;;
5448 esac
5449
5450 fi
5451
5452 to_host_file_cmd=$lt_cv_to_host_file_cmd
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5454 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5455
5456
5457
5458
5459
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5461 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5462 if ${lt_cv_to_tool_file_cmd+:} false; then :
5463 $as_echo_n "(cached) " >&6
5464 else
5465 #assume ordinary cross tools, or native build.
5466 lt_cv_to_tool_file_cmd=func_convert_file_noop
5467 case $host in
5468 *-*-mingw* )
5469 case $build in
5470 *-*-mingw* ) # actually msys
5471 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5472 ;;
5473 esac
5474 ;;
5475 esac
5476
5477 fi
5478
5479 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5481 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5482
5483
5484
5485
5486
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5488 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5489 if ${lt_cv_ld_reload_flag+:} false; then :
5490 $as_echo_n "(cached) " >&6
5491 else
5492 lt_cv_ld_reload_flag='-r'
5493 fi
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5495 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5496 reload_flag=$lt_cv_ld_reload_flag
5497 case $reload_flag in
5498 "" | " "*) ;;
5499 *) reload_flag=" $reload_flag" ;;
5500 esac
5501 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5502 case $host_os in
5503 cygwin* | mingw* | pw32* | cegcc*)
5504 if test "$GCC" != yes; then
5505 reload_cmds=false
5506 fi
5507 ;;
5508 darwin*)
5509 if test "$GCC" = yes; then
5510 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5511 else
5512 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5513 fi
5514 ;;
5515 esac
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525 if test -n "$ac_tool_prefix"; then
5526 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5527 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5529 $as_echo_n "checking for $ac_word... " >&6; }
5530 if ${ac_cv_prog_OBJDUMP+:} false; then :
5531 $as_echo_n "(cached) " >&6
5532 else
5533 if test -n "$OBJDUMP"; then
5534 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5535 else
5536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5537 for as_dir in $PATH
5538 do
5539 IFS=$as_save_IFS
5540 test -z "$as_dir" && as_dir=.
5541 for ac_exec_ext in '' $ac_executable_extensions; do
5542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5543 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5545 break 2
5546 fi
5547 done
5548 done
5549 IFS=$as_save_IFS
5550
5551 fi
5552 fi
5553 OBJDUMP=$ac_cv_prog_OBJDUMP
5554 if test -n "$OBJDUMP"; then
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5556 $as_echo "$OBJDUMP" >&6; }
5557 else
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5559 $as_echo "no" >&6; }
5560 fi
5561
5562
5563 fi
5564 if test -z "$ac_cv_prog_OBJDUMP"; then
5565 ac_ct_OBJDUMP=$OBJDUMP
5566 # Extract the first word of "objdump", so it can be a program name with args.
5567 set dummy objdump; ac_word=$2
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5569 $as_echo_n "checking for $ac_word... " >&6; }
5570 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5571 $as_echo_n "(cached) " >&6
5572 else
5573 if test -n "$ac_ct_OBJDUMP"; then
5574 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5575 else
5576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5577 for as_dir in $PATH
5578 do
5579 IFS=$as_save_IFS
5580 test -z "$as_dir" && as_dir=.
5581 for ac_exec_ext in '' $ac_executable_extensions; do
5582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5583 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5585 break 2
5586 fi
5587 done
5588 done
5589 IFS=$as_save_IFS
5590
5591 fi
5592 fi
5593 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5594 if test -n "$ac_ct_OBJDUMP"; then
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5596 $as_echo "$ac_ct_OBJDUMP" >&6; }
5597 else
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5599 $as_echo "no" >&6; }
5600 fi
5601
5602 if test "x$ac_ct_OBJDUMP" = x; then
5603 OBJDUMP="false"
5604 else
5605 case $cross_compiling:$ac_tool_warned in
5606 yes:)
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5609 ac_tool_warned=yes ;;
5610 esac
5611 OBJDUMP=$ac_ct_OBJDUMP
5612 fi
5613 else
5614 OBJDUMP="$ac_cv_prog_OBJDUMP"
5615 fi
5616
5617 test -z "$OBJDUMP" && OBJDUMP=objdump
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5628 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5629 if ${lt_cv_deplibs_check_method+:} false; then :
5630 $as_echo_n "(cached) " >&6
5631 else
5632 lt_cv_file_magic_cmd='$MAGIC_CMD'
5633 lt_cv_file_magic_test_file=
5634 lt_cv_deplibs_check_method='unknown'
5635 # Need to set the preceding variable on all platforms that support
5636 # interlibrary dependencies.
5637 # 'none' -- dependencies not supported.
5638 # `unknown' -- same as none, but documents that we really don't know.
5639 # 'pass_all' -- all dependencies passed with no checks.
5640 # 'test_compile' -- check by making test program.
5641 # 'file_magic [[regex]]' -- check by looking for files in library path
5642 # which responds to the $file_magic_cmd with a given extended regex.
5643 # If you have `file' or equivalent on your system and you're not sure
5644 # whether `pass_all' will *always* work, you probably want this one.
5645
5646 case $host_os in
5647 aix[4-9]*)
5648 lt_cv_deplibs_check_method=pass_all
5649 ;;
5650
5651 beos*)
5652 lt_cv_deplibs_check_method=pass_all
5653 ;;
5654
5655 bsdi[45]*)
5656 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5657 lt_cv_file_magic_cmd='/usr/bin/file -L'
5658 lt_cv_file_magic_test_file=/shlib/libc.so
5659 ;;
5660
5661 cygwin*)
5662 # func_win32_libid is a shell function defined in ltmain.sh
5663 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5664 lt_cv_file_magic_cmd='func_win32_libid'
5665 ;;
5666
5667 mingw* | pw32*)
5668 # Base MSYS/MinGW do not provide the 'file' command needed by
5669 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5670 # unless we find 'file', for example because we are cross-compiling.
5671 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5672 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5673 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5674 lt_cv_file_magic_cmd='func_win32_libid'
5675 else
5676 # Keep this pattern in sync with the one in func_win32_libid.
5677 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5678 lt_cv_file_magic_cmd='$OBJDUMP -f'
5679 fi
5680 ;;
5681
5682 cegcc*)
5683 # use the weaker test based on 'objdump'. See mingw*.
5684 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5685 lt_cv_file_magic_cmd='$OBJDUMP -f'
5686 ;;
5687
5688 darwin* | rhapsody*)
5689 lt_cv_deplibs_check_method=pass_all
5690 ;;
5691
5692 freebsd* | dragonfly*)
5693 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5694 case $host_cpu in
5695 i*86 )
5696 # Not sure whether the presence of OpenBSD here was a mistake.
5697 # Let's accept both of them until this is cleared up.
5698 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5699 lt_cv_file_magic_cmd=/usr/bin/file
5700 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5701 ;;
5702 esac
5703 else
5704 lt_cv_deplibs_check_method=pass_all
5705 fi
5706 ;;
5707
5708 gnu*)
5709 lt_cv_deplibs_check_method=pass_all
5710 ;;
5711
5712 haiku*)
5713 lt_cv_deplibs_check_method=pass_all
5714 ;;
5715
5716 hpux10.20* | hpux11*)
5717 lt_cv_file_magic_cmd=/usr/bin/file
5718 case $host_cpu in
5719 ia64*)
5720 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5721 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5722 ;;
5723 hppa*64*)
5724 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]'
5725 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5726 ;;
5727 *)
5728 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5729 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5730 ;;
5731 esac
5732 ;;
5733
5734 interix[3-9]*)
5735 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5736 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5737 ;;
5738
5739 irix5* | irix6* | nonstopux*)
5740 case $LD in
5741 *-32|*"-32 ") libmagic=32-bit;;
5742 *-n32|*"-n32 ") libmagic=N32;;
5743 *-64|*"-64 ") libmagic=64-bit;;
5744 *) libmagic=never-match;;
5745 esac
5746 lt_cv_deplibs_check_method=pass_all
5747 ;;
5748
5749 # This must be glibc/ELF.
5750 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5751 lt_cv_deplibs_check_method=pass_all
5752 ;;
5753
5754 netbsd*)
5755 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5756 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5757 else
5758 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5759 fi
5760 ;;
5761
5762 newos6*)
5763 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5764 lt_cv_file_magic_cmd=/usr/bin/file
5765 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5766 ;;
5767
5768 *nto* | *qnx*)
5769 lt_cv_deplibs_check_method=pass_all
5770 ;;
5771
5772 openbsd*)
5773 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5774 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5775 else
5776 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5777 fi
5778 ;;
5779
5780 osf3* | osf4* | osf5*)
5781 lt_cv_deplibs_check_method=pass_all
5782 ;;
5783
5784 rdos*)
5785 lt_cv_deplibs_check_method=pass_all
5786 ;;
5787
5788 solaris*)
5789 lt_cv_deplibs_check_method=pass_all
5790 ;;
5791
5792 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5793 lt_cv_deplibs_check_method=pass_all
5794 ;;
5795
5796 sysv4 | sysv4.3*)
5797 case $host_vendor in
5798 motorola)
5799 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]'
5800 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5801 ;;
5802 ncr)
5803 lt_cv_deplibs_check_method=pass_all
5804 ;;
5805 sequent)
5806 lt_cv_file_magic_cmd='/bin/file'
5807 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5808 ;;
5809 sni)
5810 lt_cv_file_magic_cmd='/bin/file'
5811 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5812 lt_cv_file_magic_test_file=/lib/libc.so
5813 ;;
5814 siemens)
5815 lt_cv_deplibs_check_method=pass_all
5816 ;;
5817 pc)
5818 lt_cv_deplibs_check_method=pass_all
5819 ;;
5820 esac
5821 ;;
5822
5823 tpf*)
5824 lt_cv_deplibs_check_method=pass_all
5825 ;;
5826 esac
5827
5828 fi
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5830 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5831
5832 file_magic_glob=
5833 want_nocaseglob=no
5834 if test "$build" = "$host"; then
5835 case $host_os in
5836 mingw* | pw32*)
5837 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5838 want_nocaseglob=yes
5839 else
5840 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5841 fi
5842 ;;
5843 esac
5844 fi
5845
5846 file_magic_cmd=$lt_cv_file_magic_cmd
5847 deplibs_check_method=$lt_cv_deplibs_check_method
5848 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871 if test -n "$ac_tool_prefix"; then
5872 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5873 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5875 $as_echo_n "checking for $ac_word... " >&6; }
5876 if ${ac_cv_prog_DLLTOOL+:} false; then :
5877 $as_echo_n "(cached) " >&6
5878 else
5879 if test -n "$DLLTOOL"; then
5880 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5881 else
5882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883 for as_dir in $PATH
5884 do
5885 IFS=$as_save_IFS
5886 test -z "$as_dir" && as_dir=.
5887 for ac_exec_ext in '' $ac_executable_extensions; do
5888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5889 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5891 break 2
5892 fi
5893 done
5894 done
5895 IFS=$as_save_IFS
5896
5897 fi
5898 fi
5899 DLLTOOL=$ac_cv_prog_DLLTOOL
5900 if test -n "$DLLTOOL"; then
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5902 $as_echo "$DLLTOOL" >&6; }
5903 else
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5905 $as_echo "no" >&6; }
5906 fi
5907
5908
5909 fi
5910 if test -z "$ac_cv_prog_DLLTOOL"; then
5911 ac_ct_DLLTOOL=$DLLTOOL
5912 # Extract the first word of "dlltool", so it can be a program name with args.
5913 set dummy dlltool; ac_word=$2
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5915 $as_echo_n "checking for $ac_word... " >&6; }
5916 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5917 $as_echo_n "(cached) " >&6
5918 else
5919 if test -n "$ac_ct_DLLTOOL"; then
5920 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5921 else
5922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923 for as_dir in $PATH
5924 do
5925 IFS=$as_save_IFS
5926 test -z "$as_dir" && as_dir=.
5927 for ac_exec_ext in '' $ac_executable_extensions; do
5928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5929 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5931 break 2
5932 fi
5933 done
5934 done
5935 IFS=$as_save_IFS
5936
5937 fi
5938 fi
5939 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5940 if test -n "$ac_ct_DLLTOOL"; then
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5942 $as_echo "$ac_ct_DLLTOOL" >&6; }
5943 else
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5945 $as_echo "no" >&6; }
5946 fi
5947
5948 if test "x$ac_ct_DLLTOOL" = x; then
5949 DLLTOOL="false"
5950 else
5951 case $cross_compiling:$ac_tool_warned in
5952 yes:)
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5955 ac_tool_warned=yes ;;
5956 esac
5957 DLLTOOL=$ac_ct_DLLTOOL
5958 fi
5959 else
5960 DLLTOOL="$ac_cv_prog_DLLTOOL"
5961 fi
5962
5963 test -z "$DLLTOOL" && DLLTOOL=dlltool
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5975 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5976 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5977 $as_echo_n "(cached) " >&6
5978 else
5979 lt_cv_sharedlib_from_linklib_cmd='unknown'
5980
5981 case $host_os in
5982 cygwin* | mingw* | pw32* | cegcc*)
5983 # two different shell functions defined in ltmain.sh
5984 # decide which to use based on capabilities of $DLLTOOL
5985 case `$DLLTOOL --help 2>&1` in
5986 *--identify-strict*)
5987 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5988 ;;
5989 *)
5990 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5991 ;;
5992 esac
5993 ;;
5994 *)
5995 # fallback: assume linklib IS sharedlib
5996 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5997 ;;
5998 esac
5999
6000 fi
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6002 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6003 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6004 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6005
6006
6007
6008
6009
6010
6011
6012 if test -n "$ac_tool_prefix"; then
6013 for ac_prog in ar
6014 do
6015 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6016 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6018 $as_echo_n "checking for $ac_word... " >&6; }
6019 if ${ac_cv_prog_AR+:} false; then :
6020 $as_echo_n "(cached) " >&6
6021 else
6022 if test -n "$AR"; then
6023 ac_cv_prog_AR="$AR" # Let the user override the test.
6024 else
6025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026 for as_dir in $PATH
6027 do
6028 IFS=$as_save_IFS
6029 test -z "$as_dir" && as_dir=.
6030 for ac_exec_ext in '' $ac_executable_extensions; do
6031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6032 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6034 break 2
6035 fi
6036 done
6037 done
6038 IFS=$as_save_IFS
6039
6040 fi
6041 fi
6042 AR=$ac_cv_prog_AR
6043 if test -n "$AR"; then
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6045 $as_echo "$AR" >&6; }
6046 else
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6048 $as_echo "no" >&6; }
6049 fi
6050
6051
6052 test -n "$AR" && break
6053 done
6054 fi
6055 if test -z "$AR"; then
6056 ac_ct_AR=$AR
6057 for ac_prog in ar
6058 do
6059 # Extract the first word of "$ac_prog", so it can be a program name with args.
6060 set dummy $ac_prog; ac_word=$2
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6062 $as_echo_n "checking for $ac_word... " >&6; }
6063 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6064 $as_echo_n "(cached) " >&6
6065 else
6066 if test -n "$ac_ct_AR"; then
6067 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6068 else
6069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6070 for as_dir in $PATH
6071 do
6072 IFS=$as_save_IFS
6073 test -z "$as_dir" && as_dir=.
6074 for ac_exec_ext in '' $ac_executable_extensions; do
6075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6076 ac_cv_prog_ac_ct_AR="$ac_prog"
6077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6078 break 2
6079 fi
6080 done
6081 done
6082 IFS=$as_save_IFS
6083
6084 fi
6085 fi
6086 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6087 if test -n "$ac_ct_AR"; then
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6089 $as_echo "$ac_ct_AR" >&6; }
6090 else
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6092 $as_echo "no" >&6; }
6093 fi
6094
6095
6096 test -n "$ac_ct_AR" && break
6097 done
6098
6099 if test "x$ac_ct_AR" = x; then
6100 AR="false"
6101 else
6102 case $cross_compiling:$ac_tool_warned in
6103 yes:)
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6105 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6106 ac_tool_warned=yes ;;
6107 esac
6108 AR=$ac_ct_AR
6109 fi
6110 fi
6111
6112 : ${AR=ar}
6113 : ${AR_FLAGS=cru}
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6126 $as_echo_n "checking for archiver @FILE support... " >&6; }
6127 if ${lt_cv_ar_at_file+:} false; then :
6128 $as_echo_n "(cached) " >&6
6129 else
6130 lt_cv_ar_at_file=no
6131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6132 /* end confdefs.h. */
6133
6134 int
6135 main ()
6136 {
6137
6138 ;
6139 return 0;
6140 }
6141 _ACEOF
6142 if ac_fn_c_try_compile "$LINENO"; then :
6143 echo conftest.$ac_objext > conftest.lst
6144 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6145 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6146 (eval $lt_ar_try) 2>&5
6147 ac_status=$?
6148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6149 test $ac_status = 0; }
6150 if test "$ac_status" -eq 0; then
6151 # Ensure the archiver fails upon bogus file names.
6152 rm -f conftest.$ac_objext libconftest.a
6153 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6154 (eval $lt_ar_try) 2>&5
6155 ac_status=$?
6156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6157 test $ac_status = 0; }
6158 if test "$ac_status" -ne 0; then
6159 lt_cv_ar_at_file=@
6160 fi
6161 fi
6162 rm -f conftest.* libconftest.a
6163
6164 fi
6165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6166
6167 fi
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6169 $as_echo "$lt_cv_ar_at_file" >&6; }
6170
6171 if test "x$lt_cv_ar_at_file" = xno; then
6172 archiver_list_spec=
6173 else
6174 archiver_list_spec=$lt_cv_ar_at_file
6175 fi
6176
6177
6178
6179
6180
6181
6182
6183 if test -n "$ac_tool_prefix"; then
6184 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6185 set dummy ${ac_tool_prefix}strip; ac_word=$2
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6187 $as_echo_n "checking for $ac_word... " >&6; }
6188 if ${ac_cv_prog_STRIP+:} false; then :
6189 $as_echo_n "(cached) " >&6
6190 else
6191 if test -n "$STRIP"; then
6192 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6193 else
6194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195 for as_dir in $PATH
6196 do
6197 IFS=$as_save_IFS
6198 test -z "$as_dir" && as_dir=.
6199 for ac_exec_ext in '' $ac_executable_extensions; do
6200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6201 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6203 break 2
6204 fi
6205 done
6206 done
6207 IFS=$as_save_IFS
6208
6209 fi
6210 fi
6211 STRIP=$ac_cv_prog_STRIP
6212 if test -n "$STRIP"; then
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6214 $as_echo "$STRIP" >&6; }
6215 else
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6217 $as_echo "no" >&6; }
6218 fi
6219
6220
6221 fi
6222 if test -z "$ac_cv_prog_STRIP"; then
6223 ac_ct_STRIP=$STRIP
6224 # Extract the first word of "strip", so it can be a program name with args.
6225 set dummy strip; ac_word=$2
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6227 $as_echo_n "checking for $ac_word... " >&6; }
6228 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6229 $as_echo_n "(cached) " >&6
6230 else
6231 if test -n "$ac_ct_STRIP"; then
6232 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6233 else
6234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235 for as_dir in $PATH
6236 do
6237 IFS=$as_save_IFS
6238 test -z "$as_dir" && as_dir=.
6239 for ac_exec_ext in '' $ac_executable_extensions; do
6240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6241 ac_cv_prog_ac_ct_STRIP="strip"
6242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6243 break 2
6244 fi
6245 done
6246 done
6247 IFS=$as_save_IFS
6248
6249 fi
6250 fi
6251 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6252 if test -n "$ac_ct_STRIP"; then
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6254 $as_echo "$ac_ct_STRIP" >&6; }
6255 else
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6257 $as_echo "no" >&6; }
6258 fi
6259
6260 if test "x$ac_ct_STRIP" = x; then
6261 STRIP=":"
6262 else
6263 case $cross_compiling:$ac_tool_warned in
6264 yes:)
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6267 ac_tool_warned=yes ;;
6268 esac
6269 STRIP=$ac_ct_STRIP
6270 fi
6271 else
6272 STRIP="$ac_cv_prog_STRIP"
6273 fi
6274
6275 test -z "$STRIP" && STRIP=:
6276
6277
6278
6279
6280
6281
6282 if test -n "$ac_tool_prefix"; then
6283 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6284 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6286 $as_echo_n "checking for $ac_word... " >&6; }
6287 if ${ac_cv_prog_RANLIB+:} false; then :
6288 $as_echo_n "(cached) " >&6
6289 else
6290 if test -n "$RANLIB"; then
6291 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6292 else
6293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294 for as_dir in $PATH
6295 do
6296 IFS=$as_save_IFS
6297 test -z "$as_dir" && as_dir=.
6298 for ac_exec_ext in '' $ac_executable_extensions; do
6299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6300 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6302 break 2
6303 fi
6304 done
6305 done
6306 IFS=$as_save_IFS
6307
6308 fi
6309 fi
6310 RANLIB=$ac_cv_prog_RANLIB
6311 if test -n "$RANLIB"; then
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6313 $as_echo "$RANLIB" >&6; }
6314 else
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6316 $as_echo "no" >&6; }
6317 fi
6318
6319
6320 fi
6321 if test -z "$ac_cv_prog_RANLIB"; then
6322 ac_ct_RANLIB=$RANLIB
6323 # Extract the first word of "ranlib", so it can be a program name with args.
6324 set dummy ranlib; ac_word=$2
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6326 $as_echo_n "checking for $ac_word... " >&6; }
6327 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6328 $as_echo_n "(cached) " >&6
6329 else
6330 if test -n "$ac_ct_RANLIB"; then
6331 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6332 else
6333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334 for as_dir in $PATH
6335 do
6336 IFS=$as_save_IFS
6337 test -z "$as_dir" && as_dir=.
6338 for ac_exec_ext in '' $ac_executable_extensions; do
6339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6340 ac_cv_prog_ac_ct_RANLIB="ranlib"
6341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6342 break 2
6343 fi
6344 done
6345 done
6346 IFS=$as_save_IFS
6347
6348 fi
6349 fi
6350 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6351 if test -n "$ac_ct_RANLIB"; then
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6353 $as_echo "$ac_ct_RANLIB" >&6; }
6354 else
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6356 $as_echo "no" >&6; }
6357 fi
6358
6359 if test "x$ac_ct_RANLIB" = x; then
6360 RANLIB=":"
6361 else
6362 case $cross_compiling:$ac_tool_warned in
6363 yes:)
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6365 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6366 ac_tool_warned=yes ;;
6367 esac
6368 RANLIB=$ac_ct_RANLIB
6369 fi
6370 else
6371 RANLIB="$ac_cv_prog_RANLIB"
6372 fi
6373
6374 test -z "$RANLIB" && RANLIB=:
6375
6376
6377
6378
6379
6380
6381 # Determine commands to create old-style static archives.
6382 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6383 old_postinstall_cmds='chmod 644 $oldlib'
6384 old_postuninstall_cmds=
6385
6386 if test -n "$RANLIB"; then
6387 case $host_os in
6388 openbsd*)
6389 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6390 ;;
6391 *)
6392 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6393 ;;
6394 esac
6395 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6396 fi
6397
6398 case $host_os in
6399 darwin*)
6400 lock_old_archive_extraction=yes ;;
6401 *)
6402 lock_old_archive_extraction=no ;;
6403 esac
6404
6405
6406
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 # If no C compiler was specified, use CC.
6444 LTCC=${LTCC-"$CC"}
6445
6446 # If no C compiler flags were specified, use CFLAGS.
6447 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6448
6449 # Allow CC to be a program name with arguments.
6450 compiler=$CC
6451
6452
6453 # Check for command to grab the raw symbol name followed by C symbol from nm.
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6455 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6456 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6457 $as_echo_n "(cached) " >&6
6458 else
6459
6460 # These are sane defaults that work on at least a few old systems.
6461 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6462
6463 # Character class describing NM global symbol codes.
6464 symcode='[BCDEGRST]'
6465
6466 # Regexp to match symbols that can be accessed directly from C.
6467 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6468
6469 # Define system-specific variables.
6470 case $host_os in
6471 aix*)
6472 symcode='[BCDT]'
6473 ;;
6474 cygwin* | mingw* | pw32* | cegcc*)
6475 symcode='[ABCDGISTW]'
6476 ;;
6477 hpux*)
6478 if test "$host_cpu" = ia64; then
6479 symcode='[ABCDEGRST]'
6480 fi
6481 ;;
6482 irix* | nonstopux*)
6483 symcode='[BCDEGRST]'
6484 ;;
6485 osf*)
6486 symcode='[BCDEGQRST]'
6487 ;;
6488 solaris*)
6489 symcode='[BDRT]'
6490 ;;
6491 sco3.2v5*)
6492 symcode='[DT]'
6493 ;;
6494 sysv4.2uw2*)
6495 symcode='[DT]'
6496 ;;
6497 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6498 symcode='[ABDT]'
6499 ;;
6500 sysv4)
6501 symcode='[DFNSTU]'
6502 ;;
6503 esac
6504
6505 # If we're using GNU nm, then use its standard symbol codes.
6506 case `$NM -V 2>&1` in
6507 *GNU* | *'with BFD'*)
6508 symcode='[ABCDGIRSTW]' ;;
6509 esac
6510
6511 # Transform an extracted symbol line into a proper C declaration.
6512 # Some systems (esp. on ia64) link data and code symbols differently,
6513 # so use this general approach.
6514 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6515
6516 # Transform an extracted symbol line into symbol name and symbol address
6517 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6518 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'"
6519
6520 # Handle CRLF in mingw tool chain
6521 opt_cr=
6522 case $build_os in
6523 mingw*)
6524 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6525 ;;
6526 esac
6527
6528 # Try without a prefix underscore, then with it.
6529 for ac_symprfx in "" "_"; do
6530
6531 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6532 symxfrm="\\1 $ac_symprfx\\2 \\2"
6533
6534 # Write the raw and C identifiers.
6535 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6536 # Fake it for dumpbin and say T for any non-static function
6537 # and D for any global variable.
6538 # Also find C++ and __fastcall symbols from MSVC++,
6539 # which start with @ or ?.
6540 lt_cv_sys_global_symbol_pipe="$AWK '"\
6541 " {last_section=section; section=\$ 3};"\
6542 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6543 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6544 " \$ 0!~/External *\|/{next};"\
6545 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6546 " {if(hide[section]) next};"\
6547 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6548 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6549 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6550 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6551 " ' prfx=^$ac_symprfx"
6552 else
6553 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6554 fi
6555 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6556
6557 # Check to see that the pipe works correctly.
6558 pipe_works=no
6559
6560 rm -f conftest*
6561 cat > conftest.$ac_ext <<_LT_EOF
6562 #ifdef __cplusplus
6563 extern "C" {
6564 #endif
6565 char nm_test_var;
6566 void nm_test_func(void);
6567 void nm_test_func(void){}
6568 #ifdef __cplusplus
6569 }
6570 #endif
6571 int main(){nm_test_var='a';nm_test_func();return(0);}
6572 _LT_EOF
6573
6574 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6575 (eval $ac_compile) 2>&5
6576 ac_status=$?
6577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6578 test $ac_status = 0; }; then
6579 # Now try to grab the symbols.
6580 nlist=conftest.nm
6581 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6582 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6583 ac_status=$?
6584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6585 test $ac_status = 0; } && test -s "$nlist"; then
6586 # Try sorting and uniquifying the output.
6587 if sort "$nlist" | uniq > "$nlist"T; then
6588 mv -f "$nlist"T "$nlist"
6589 else
6590 rm -f "$nlist"T
6591 fi
6592
6593 # Make sure that we snagged all the symbols we need.
6594 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6595 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6596 cat <<_LT_EOF > conftest.$ac_ext
6597 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6598 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6599 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6600 relocations are performed -- see ld's documentation on pseudo-relocs. */
6601 # define LT_DLSYM_CONST
6602 #elif defined(__osf__)
6603 /* This system does not cope well with relocations in const data. */
6604 # define LT_DLSYM_CONST
6605 #else
6606 # define LT_DLSYM_CONST const
6607 #endif
6608
6609 #ifdef __cplusplus
6610 extern "C" {
6611 #endif
6612
6613 _LT_EOF
6614 # Now generate the symbol file.
6615 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6616
6617 cat <<_LT_EOF >> conftest.$ac_ext
6618
6619 /* The mapping between symbol names and symbols. */
6620 LT_DLSYM_CONST struct {
6621 const char *name;
6622 void *address;
6623 }
6624 lt__PROGRAM__LTX_preloaded_symbols[] =
6625 {
6626 { "@PROGRAM@", (void *) 0 },
6627 _LT_EOF
6628 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6629 cat <<\_LT_EOF >> conftest.$ac_ext
6630 {0, (void *) 0}
6631 };
6632
6633 /* This works around a problem in FreeBSD linker */
6634 #ifdef FREEBSD_WORKAROUND
6635 static const void *lt_preloaded_setup() {
6636 return lt__PROGRAM__LTX_preloaded_symbols;
6637 }
6638 #endif
6639
6640 #ifdef __cplusplus
6641 }
6642 #endif
6643 _LT_EOF
6644 # Now try linking the two files.
6645 mv conftest.$ac_objext conftstm.$ac_objext
6646 lt_globsym_save_LIBS=$LIBS
6647 lt_globsym_save_CFLAGS=$CFLAGS
6648 LIBS="conftstm.$ac_objext"
6649 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6650 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6651 (eval $ac_link) 2>&5
6652 ac_status=$?
6653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6654 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6655 pipe_works=yes
6656 fi
6657 LIBS=$lt_globsym_save_LIBS
6658 CFLAGS=$lt_globsym_save_CFLAGS
6659 else
6660 echo "cannot find nm_test_func in $nlist" >&5
6661 fi
6662 else
6663 echo "cannot find nm_test_var in $nlist" >&5
6664 fi
6665 else
6666 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6667 fi
6668 else
6669 echo "$progname: failed program was:" >&5
6670 cat conftest.$ac_ext >&5
6671 fi
6672 rm -rf conftest* conftst*
6673
6674 # Do not use the global_symbol_pipe unless it works.
6675 if test "$pipe_works" = yes; then
6676 break
6677 else
6678 lt_cv_sys_global_symbol_pipe=
6679 fi
6680 done
6681
6682 fi
6683
6684 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6685 lt_cv_sys_global_symbol_to_cdecl=
6686 fi
6687 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6689 $as_echo "failed" >&6; }
6690 else
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6692 $as_echo "ok" >&6; }
6693 fi
6694
6695 # Response file support.
6696 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6697 nm_file_list_spec='@'
6698 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6699 nm_file_list_spec='@'
6700 fi
6701
6702
6703
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6729 $as_echo_n "checking for sysroot... " >&6; }
6730
6731 # Check whether --with-sysroot was given.
6732 if test "${with_sysroot+set}" = set; then :
6733 withval=$with_sysroot;
6734 else
6735 with_sysroot=no
6736 fi
6737
6738
6739 lt_sysroot=
6740 case ${with_sysroot} in #(
6741 yes)
6742 if test "$GCC" = yes; then
6743 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6744 fi
6745 ;; #(
6746 /*)
6747 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6748 ;; #(
6749 no|'')
6750 ;; #(
6751 *)
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6753 $as_echo "${with_sysroot}" >&6; }
6754 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6755 ;;
6756 esac
6757
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6759 $as_echo "${lt_sysroot:-no}" >&6; }
6760
6761
6762
6763
6764
6765 # Check whether --enable-libtool-lock was given.
6766 if test "${enable_libtool_lock+set}" = set; then :
6767 enableval=$enable_libtool_lock;
6768 fi
6769
6770 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6771
6772 # Some flags need to be propagated to the compiler or linker for good
6773 # libtool support.
6774 case $host in
6775 ia64-*-hpux*)
6776 # Find out which ABI we are using.
6777 echo 'int i;' > conftest.$ac_ext
6778 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6779 (eval $ac_compile) 2>&5
6780 ac_status=$?
6781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6782 test $ac_status = 0; }; then
6783 case `/usr/bin/file conftest.$ac_objext` in
6784 *ELF-32*)
6785 HPUX_IA64_MODE="32"
6786 ;;
6787 *ELF-64*)
6788 HPUX_IA64_MODE="64"
6789 ;;
6790 esac
6791 fi
6792 rm -rf conftest*
6793 ;;
6794 *-*-irix6*)
6795 # Find out which ABI we are using.
6796 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6797 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6798 (eval $ac_compile) 2>&5
6799 ac_status=$?
6800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6801 test $ac_status = 0; }; then
6802 if test "$lt_cv_prog_gnu_ld" = yes; then
6803 case `/usr/bin/file conftest.$ac_objext` in
6804 *32-bit*)
6805 LD="${LD-ld} -melf32bsmip"
6806 ;;
6807 *N32*)
6808 LD="${LD-ld} -melf32bmipn32"
6809 ;;
6810 *64-bit*)
6811 LD="${LD-ld} -melf64bmip"
6812 ;;
6813 esac
6814 else
6815 case `/usr/bin/file conftest.$ac_objext` in
6816 *32-bit*)
6817 LD="${LD-ld} -32"
6818 ;;
6819 *N32*)
6820 LD="${LD-ld} -n32"
6821 ;;
6822 *64-bit*)
6823 LD="${LD-ld} -64"
6824 ;;
6825 esac
6826 fi
6827 fi
6828 rm -rf conftest*
6829 ;;
6830
6831 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6832 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6833 # Find out which ABI we are using.
6834 echo 'int i;' > conftest.$ac_ext
6835 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6836 (eval $ac_compile) 2>&5
6837 ac_status=$?
6838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6839 test $ac_status = 0; }; then
6840 case `/usr/bin/file conftest.o` in
6841 *32-bit*)
6842 case $host in
6843 x86_64-*kfreebsd*-gnu)
6844 LD="${LD-ld} -m elf_i386_fbsd"
6845 ;;
6846 x86_64-*linux*)
6847 LD="${LD-ld} -m elf_i386"
6848 ;;
6849 ppc64-*linux*|powerpc64-*linux*)
6850 LD="${LD-ld} -m elf32ppclinux"
6851 ;;
6852 s390x-*linux*)
6853 LD="${LD-ld} -m elf_s390"
6854 ;;
6855 sparc64-*linux*)
6856 LD="${LD-ld} -m elf32_sparc"
6857 ;;
6858 esac
6859 ;;
6860 *64-bit*)
6861 case $host in
6862 x86_64-*kfreebsd*-gnu)
6863 LD="${LD-ld} -m elf_x86_64_fbsd"
6864 ;;
6865 x86_64-*linux*)
6866 LD="${LD-ld} -m elf_x86_64"
6867 ;;
6868 ppc*-*linux*|powerpc*-*linux*)
6869 LD="${LD-ld} -m elf64ppc"
6870 ;;
6871 s390*-*linux*|s390*-*tpf*)
6872 LD="${LD-ld} -m elf64_s390"
6873 ;;
6874 sparc*-*linux*)
6875 LD="${LD-ld} -m elf64_sparc"
6876 ;;
6877 esac
6878 ;;
6879 esac
6880 fi
6881 rm -rf conftest*
6882 ;;
6883
6884 *-*-sco3.2v5*)
6885 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6886 SAVE_CFLAGS="$CFLAGS"
6887 CFLAGS="$CFLAGS -belf"
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6889 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6890 if ${lt_cv_cc_needs_belf+:} false; then :
6891 $as_echo_n "(cached) " >&6
6892 else
6893 ac_ext=c
6894 ac_cpp='$CPP $CPPFLAGS'
6895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6898
6899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6900 /* end confdefs.h. */
6901
6902 int
6903 main ()
6904 {
6905
6906 ;
6907 return 0;
6908 }
6909 _ACEOF
6910 if ac_fn_c_try_link "$LINENO"; then :
6911 lt_cv_cc_needs_belf=yes
6912 else
6913 lt_cv_cc_needs_belf=no
6914 fi
6915 rm -f core conftest.err conftest.$ac_objext \
6916 conftest$ac_exeext conftest.$ac_ext
6917 ac_ext=c
6918 ac_cpp='$CPP $CPPFLAGS'
6919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6922
6923 fi
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6925 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6926 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6927 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6928 CFLAGS="$SAVE_CFLAGS"
6929 fi
6930 ;;
6931 *-*solaris*)
6932 # Find out which ABI we are using.
6933 echo 'int i;' > conftest.$ac_ext
6934 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6935 (eval $ac_compile) 2>&5
6936 ac_status=$?
6937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6938 test $ac_status = 0; }; then
6939 case `/usr/bin/file conftest.o` in
6940 *64-bit*)
6941 case $lt_cv_prog_gnu_ld in
6942 yes*)
6943 case $host in
6944 i?86-*-solaris*)
6945 LD="${LD-ld} -m elf_x86_64"
6946 ;;
6947 sparc*-*-solaris*)
6948 LD="${LD-ld} -m elf64_sparc"
6949 ;;
6950 esac
6951 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6952 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6953 LD="${LD-ld}_sol2"
6954 fi
6955 ;;
6956 *)
6957 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6958 LD="${LD-ld} -64"
6959 fi
6960 ;;
6961 esac
6962 ;;
6963 esac
6964 fi
6965 rm -rf conftest*
6966 ;;
6967 esac
6968
6969 need_locks="$enable_libtool_lock"
6970
6971 if test -n "$ac_tool_prefix"; then
6972 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6973 set dummy ${ac_tool_prefix}mt; ac_word=$2
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6975 $as_echo_n "checking for $ac_word... " >&6; }
6976 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6977 $as_echo_n "(cached) " >&6
6978 else
6979 if test -n "$MANIFEST_TOOL"; then
6980 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6981 else
6982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983 for as_dir in $PATH
6984 do
6985 IFS=$as_save_IFS
6986 test -z "$as_dir" && as_dir=.
6987 for ac_exec_ext in '' $ac_executable_extensions; do
6988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6989 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6991 break 2
6992 fi
6993 done
6994 done
6995 IFS=$as_save_IFS
6996
6997 fi
6998 fi
6999 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7000 if test -n "$MANIFEST_TOOL"; then
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7002 $as_echo "$MANIFEST_TOOL" >&6; }
7003 else
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7005 $as_echo "no" >&6; }
7006 fi
7007
7008
7009 fi
7010 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7011 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7012 # Extract the first word of "mt", so it can be a program name with args.
7013 set dummy mt; ac_word=$2
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7015 $as_echo_n "checking for $ac_word... " >&6; }
7016 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7017 $as_echo_n "(cached) " >&6
7018 else
7019 if test -n "$ac_ct_MANIFEST_TOOL"; then
7020 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7021 else
7022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7023 for as_dir in $PATH
7024 do
7025 IFS=$as_save_IFS
7026 test -z "$as_dir" && as_dir=.
7027 for ac_exec_ext in '' $ac_executable_extensions; do
7028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7029 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7031 break 2
7032 fi
7033 done
7034 done
7035 IFS=$as_save_IFS
7036
7037 fi
7038 fi
7039 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7040 if test -n "$ac_ct_MANIFEST_TOOL"; then
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7042 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7043 else
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7045 $as_echo "no" >&6; }
7046 fi
7047
7048 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7049 MANIFEST_TOOL=":"
7050 else
7051 case $cross_compiling:$ac_tool_warned in
7052 yes:)
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7054 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7055 ac_tool_warned=yes ;;
7056 esac
7057 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7058 fi
7059 else
7060 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7061 fi
7062
7063 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7065 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7066 if ${lt_cv_path_mainfest_tool+:} false; then :
7067 $as_echo_n "(cached) " >&6
7068 else
7069 lt_cv_path_mainfest_tool=no
7070 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7071 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7072 cat conftest.err >&5
7073 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7074 lt_cv_path_mainfest_tool=yes
7075 fi
7076 rm -f conftest*
7077 fi
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7079 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7080 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7081 MANIFEST_TOOL=:
7082 fi
7083
7084
7085
7086
7087
7088
7089 case $host_os in
7090 rhapsody* | darwin*)
7091 if test -n "$ac_tool_prefix"; then
7092 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7093 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7095 $as_echo_n "checking for $ac_word... " >&6; }
7096 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7097 $as_echo_n "(cached) " >&6
7098 else
7099 if test -n "$DSYMUTIL"; then
7100 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7101 else
7102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103 for as_dir in $PATH
7104 do
7105 IFS=$as_save_IFS
7106 test -z "$as_dir" && as_dir=.
7107 for ac_exec_ext in '' $ac_executable_extensions; do
7108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7109 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7111 break 2
7112 fi
7113 done
7114 done
7115 IFS=$as_save_IFS
7116
7117 fi
7118 fi
7119 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7120 if test -n "$DSYMUTIL"; then
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7122 $as_echo "$DSYMUTIL" >&6; }
7123 else
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7125 $as_echo "no" >&6; }
7126 fi
7127
7128
7129 fi
7130 if test -z "$ac_cv_prog_DSYMUTIL"; then
7131 ac_ct_DSYMUTIL=$DSYMUTIL
7132 # Extract the first word of "dsymutil", so it can be a program name with args.
7133 set dummy dsymutil; ac_word=$2
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7135 $as_echo_n "checking for $ac_word... " >&6; }
7136 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7137 $as_echo_n "(cached) " >&6
7138 else
7139 if test -n "$ac_ct_DSYMUTIL"; then
7140 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7141 else
7142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7143 for as_dir in $PATH
7144 do
7145 IFS=$as_save_IFS
7146 test -z "$as_dir" && as_dir=.
7147 for ac_exec_ext in '' $ac_executable_extensions; do
7148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7149 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7151 break 2
7152 fi
7153 done
7154 done
7155 IFS=$as_save_IFS
7156
7157 fi
7158 fi
7159 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7160 if test -n "$ac_ct_DSYMUTIL"; then
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7162 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7163 else
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7165 $as_echo "no" >&6; }
7166 fi
7167
7168 if test "x$ac_ct_DSYMUTIL" = x; then
7169 DSYMUTIL=":"
7170 else
7171 case $cross_compiling:$ac_tool_warned in
7172 yes:)
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7174 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7175 ac_tool_warned=yes ;;
7176 esac
7177 DSYMUTIL=$ac_ct_DSYMUTIL
7178 fi
7179 else
7180 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7181 fi
7182
7183 if test -n "$ac_tool_prefix"; then
7184 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7185 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7187 $as_echo_n "checking for $ac_word... " >&6; }
7188 if ${ac_cv_prog_NMEDIT+:} false; then :
7189 $as_echo_n "(cached) " >&6
7190 else
7191 if test -n "$NMEDIT"; then
7192 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7193 else
7194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195 for as_dir in $PATH
7196 do
7197 IFS=$as_save_IFS
7198 test -z "$as_dir" && as_dir=.
7199 for ac_exec_ext in '' $ac_executable_extensions; do
7200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7201 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7203 break 2
7204 fi
7205 done
7206 done
7207 IFS=$as_save_IFS
7208
7209 fi
7210 fi
7211 NMEDIT=$ac_cv_prog_NMEDIT
7212 if test -n "$NMEDIT"; then
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7214 $as_echo "$NMEDIT" >&6; }
7215 else
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7217 $as_echo "no" >&6; }
7218 fi
7219
7220
7221 fi
7222 if test -z "$ac_cv_prog_NMEDIT"; then
7223 ac_ct_NMEDIT=$NMEDIT
7224 # Extract the first word of "nmedit", so it can be a program name with args.
7225 set dummy nmedit; ac_word=$2
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7227 $as_echo_n "checking for $ac_word... " >&6; }
7228 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7229 $as_echo_n "(cached) " >&6
7230 else
7231 if test -n "$ac_ct_NMEDIT"; then
7232 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7233 else
7234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235 for as_dir in $PATH
7236 do
7237 IFS=$as_save_IFS
7238 test -z "$as_dir" && as_dir=.
7239 for ac_exec_ext in '' $ac_executable_extensions; do
7240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7241 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7243 break 2
7244 fi
7245 done
7246 done
7247 IFS=$as_save_IFS
7248
7249 fi
7250 fi
7251 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7252 if test -n "$ac_ct_NMEDIT"; then
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7254 $as_echo "$ac_ct_NMEDIT" >&6; }
7255 else
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7257 $as_echo "no" >&6; }
7258 fi
7259
7260 if test "x$ac_ct_NMEDIT" = x; then
7261 NMEDIT=":"
7262 else
7263 case $cross_compiling:$ac_tool_warned in
7264 yes:)
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7267 ac_tool_warned=yes ;;
7268 esac
7269 NMEDIT=$ac_ct_NMEDIT
7270 fi
7271 else
7272 NMEDIT="$ac_cv_prog_NMEDIT"
7273 fi
7274
7275 if test -n "$ac_tool_prefix"; then
7276 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7277 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7279 $as_echo_n "checking for $ac_word... " >&6; }
7280 if ${ac_cv_prog_LIPO+:} false; then :
7281 $as_echo_n "(cached) " >&6
7282 else
7283 if test -n "$LIPO"; then
7284 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7285 else
7286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287 for as_dir in $PATH
7288 do
7289 IFS=$as_save_IFS
7290 test -z "$as_dir" && as_dir=.
7291 for ac_exec_ext in '' $ac_executable_extensions; do
7292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7293 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7295 break 2
7296 fi
7297 done
7298 done
7299 IFS=$as_save_IFS
7300
7301 fi
7302 fi
7303 LIPO=$ac_cv_prog_LIPO
7304 if test -n "$LIPO"; then
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7306 $as_echo "$LIPO" >&6; }
7307 else
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7309 $as_echo "no" >&6; }
7310 fi
7311
7312
7313 fi
7314 if test -z "$ac_cv_prog_LIPO"; then
7315 ac_ct_LIPO=$LIPO
7316 # Extract the first word of "lipo", so it can be a program name with args.
7317 set dummy lipo; ac_word=$2
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7319 $as_echo_n "checking for $ac_word... " >&6; }
7320 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7321 $as_echo_n "(cached) " >&6
7322 else
7323 if test -n "$ac_ct_LIPO"; then
7324 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7325 else
7326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327 for as_dir in $PATH
7328 do
7329 IFS=$as_save_IFS
7330 test -z "$as_dir" && as_dir=.
7331 for ac_exec_ext in '' $ac_executable_extensions; do
7332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7333 ac_cv_prog_ac_ct_LIPO="lipo"
7334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7335 break 2
7336 fi
7337 done
7338 done
7339 IFS=$as_save_IFS
7340
7341 fi
7342 fi
7343 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7344 if test -n "$ac_ct_LIPO"; then
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7346 $as_echo "$ac_ct_LIPO" >&6; }
7347 else
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7349 $as_echo "no" >&6; }
7350 fi
7351
7352 if test "x$ac_ct_LIPO" = x; then
7353 LIPO=":"
7354 else
7355 case $cross_compiling:$ac_tool_warned in
7356 yes:)
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7358 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7359 ac_tool_warned=yes ;;
7360 esac
7361 LIPO=$ac_ct_LIPO
7362 fi
7363 else
7364 LIPO="$ac_cv_prog_LIPO"
7365 fi
7366
7367 if test -n "$ac_tool_prefix"; then
7368 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7369 set dummy ${ac_tool_prefix}otool; ac_word=$2
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7371 $as_echo_n "checking for $ac_word... " >&6; }
7372 if ${ac_cv_prog_OTOOL+:} false; then :
7373 $as_echo_n "(cached) " >&6
7374 else
7375 if test -n "$OTOOL"; then
7376 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7377 else
7378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379 for as_dir in $PATH
7380 do
7381 IFS=$as_save_IFS
7382 test -z "$as_dir" && as_dir=.
7383 for ac_exec_ext in '' $ac_executable_extensions; do
7384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7385 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7387 break 2
7388 fi
7389 done
7390 done
7391 IFS=$as_save_IFS
7392
7393 fi
7394 fi
7395 OTOOL=$ac_cv_prog_OTOOL
7396 if test -n "$OTOOL"; then
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7398 $as_echo "$OTOOL" >&6; }
7399 else
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7401 $as_echo "no" >&6; }
7402 fi
7403
7404
7405 fi
7406 if test -z "$ac_cv_prog_OTOOL"; then
7407 ac_ct_OTOOL=$OTOOL
7408 # Extract the first word of "otool", so it can be a program name with args.
7409 set dummy otool; ac_word=$2
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7411 $as_echo_n "checking for $ac_word... " >&6; }
7412 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7413 $as_echo_n "(cached) " >&6
7414 else
7415 if test -n "$ac_ct_OTOOL"; then
7416 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7417 else
7418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7419 for as_dir in $PATH
7420 do
7421 IFS=$as_save_IFS
7422 test -z "$as_dir" && as_dir=.
7423 for ac_exec_ext in '' $ac_executable_extensions; do
7424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7425 ac_cv_prog_ac_ct_OTOOL="otool"
7426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7427 break 2
7428 fi
7429 done
7430 done
7431 IFS=$as_save_IFS
7432
7433 fi
7434 fi
7435 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7436 if test -n "$ac_ct_OTOOL"; then
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7438 $as_echo "$ac_ct_OTOOL" >&6; }
7439 else
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7441 $as_echo "no" >&6; }
7442 fi
7443
7444 if test "x$ac_ct_OTOOL" = x; then
7445 OTOOL=":"
7446 else
7447 case $cross_compiling:$ac_tool_warned in
7448 yes:)
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7451 ac_tool_warned=yes ;;
7452 esac
7453 OTOOL=$ac_ct_OTOOL
7454 fi
7455 else
7456 OTOOL="$ac_cv_prog_OTOOL"
7457 fi
7458
7459 if test -n "$ac_tool_prefix"; then
7460 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7461 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7463 $as_echo_n "checking for $ac_word... " >&6; }
7464 if ${ac_cv_prog_OTOOL64+:} false; then :
7465 $as_echo_n "(cached) " >&6
7466 else
7467 if test -n "$OTOOL64"; then
7468 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7469 else
7470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7471 for as_dir in $PATH
7472 do
7473 IFS=$as_save_IFS
7474 test -z "$as_dir" && as_dir=.
7475 for ac_exec_ext in '' $ac_executable_extensions; do
7476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7477 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7479 break 2
7480 fi
7481 done
7482 done
7483 IFS=$as_save_IFS
7484
7485 fi
7486 fi
7487 OTOOL64=$ac_cv_prog_OTOOL64
7488 if test -n "$OTOOL64"; then
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7490 $as_echo "$OTOOL64" >&6; }
7491 else
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7493 $as_echo "no" >&6; }
7494 fi
7495
7496
7497 fi
7498 if test -z "$ac_cv_prog_OTOOL64"; then
7499 ac_ct_OTOOL64=$OTOOL64
7500 # Extract the first word of "otool64", so it can be a program name with args.
7501 set dummy otool64; ac_word=$2
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7503 $as_echo_n "checking for $ac_word... " >&6; }
7504 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7505 $as_echo_n "(cached) " >&6
7506 else
7507 if test -n "$ac_ct_OTOOL64"; then
7508 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7509 else
7510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511 for as_dir in $PATH
7512 do
7513 IFS=$as_save_IFS
7514 test -z "$as_dir" && as_dir=.
7515 for ac_exec_ext in '' $ac_executable_extensions; do
7516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7517 ac_cv_prog_ac_ct_OTOOL64="otool64"
7518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7519 break 2
7520 fi
7521 done
7522 done
7523 IFS=$as_save_IFS
7524
7525 fi
7526 fi
7527 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7528 if test -n "$ac_ct_OTOOL64"; then
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7530 $as_echo "$ac_ct_OTOOL64" >&6; }
7531 else
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7533 $as_echo "no" >&6; }
7534 fi
7535
7536 if test "x$ac_ct_OTOOL64" = x; then
7537 OTOOL64=":"
7538 else
7539 case $cross_compiling:$ac_tool_warned in
7540 yes:)
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7543 ac_tool_warned=yes ;;
7544 esac
7545 OTOOL64=$ac_ct_OTOOL64
7546 fi
7547 else
7548 OTOOL64="$ac_cv_prog_OTOOL64"
7549 fi
7550
7551
7552
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7578 $as_echo_n "checking for -single_module linker flag... " >&6; }
7579 if ${lt_cv_apple_cc_single_mod+:} false; then :
7580 $as_echo_n "(cached) " >&6
7581 else
7582 lt_cv_apple_cc_single_mod=no
7583 if test -z "${LT_MULTI_MODULE}"; then
7584 # By default we will add the -single_module flag. You can override
7585 # by either setting the environment variable LT_MULTI_MODULE
7586 # non-empty at configure time, or by adding -multi_module to the
7587 # link flags.
7588 rm -rf libconftest.dylib*
7589 echo "int foo(void){return 1;}" > conftest.c
7590 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7591 -dynamiclib -Wl,-single_module conftest.c" >&5
7592 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7593 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7594 _lt_result=$?
7595 # If there is a non-empty error log, and "single_module"
7596 # appears in it, assume the flag caused a linker warning
7597 if test -s conftest.err && $GREP single_module conftest.err; then
7598 cat conftest.err >&5
7599 # Otherwise, if the output was created with a 0 exit code from
7600 # the compiler, it worked.
7601 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7602 lt_cv_apple_cc_single_mod=yes
7603 else
7604 cat conftest.err >&5
7605 fi
7606 rm -rf libconftest.dylib*
7607 rm -f conftest.*
7608 fi
7609 fi
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7611 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7612
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7614 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7615 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7616 $as_echo_n "(cached) " >&6
7617 else
7618 lt_cv_ld_exported_symbols_list=no
7619 save_LDFLAGS=$LDFLAGS
7620 echo "_main" > conftest.sym
7621 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7623 /* end confdefs.h. */
7624
7625 int
7626 main ()
7627 {
7628
7629 ;
7630 return 0;
7631 }
7632 _ACEOF
7633 if ac_fn_c_try_link "$LINENO"; then :
7634 lt_cv_ld_exported_symbols_list=yes
7635 else
7636 lt_cv_ld_exported_symbols_list=no
7637 fi
7638 rm -f core conftest.err conftest.$ac_objext \
7639 conftest$ac_exeext conftest.$ac_ext
7640 LDFLAGS="$save_LDFLAGS"
7641
7642 fi
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7644 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7645
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7647 $as_echo_n "checking for -force_load linker flag... " >&6; }
7648 if ${lt_cv_ld_force_load+:} false; then :
7649 $as_echo_n "(cached) " >&6
7650 else
7651 lt_cv_ld_force_load=no
7652 cat > conftest.c << _LT_EOF
7653 int forced_loaded() { return 2;}
7654 _LT_EOF
7655 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7656 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7657 echo "$AR cru libconftest.a conftest.o" >&5
7658 $AR cru libconftest.a conftest.o 2>&5
7659 echo "$RANLIB libconftest.a" >&5
7660 $RANLIB libconftest.a 2>&5
7661 cat > conftest.c << _LT_EOF
7662 int main() { return 0;}
7663 _LT_EOF
7664 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7665 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7666 _lt_result=$?
7667 if test -s conftest.err && $GREP force_load conftest.err; then
7668 cat conftest.err >&5
7669 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7670 lt_cv_ld_force_load=yes
7671 else
7672 cat conftest.err >&5
7673 fi
7674 rm -f conftest.err libconftest.a conftest conftest.c
7675 rm -rf conftest.dSYM
7676
7677 fi
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7679 $as_echo "$lt_cv_ld_force_load" >&6; }
7680 case $host_os in
7681 rhapsody* | darwin1.[012])
7682 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7683 darwin1.*)
7684 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7685 darwin*) # darwin 5.x on
7686 # if running on 10.5 or later, the deployment target defaults
7687 # to the OS version, if on x86, and 10.4, the deployment
7688 # target defaults to 10.4. Don't you love it?
7689 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7690 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7691 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7692 10.[012]*)
7693 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7694 10.*)
7695 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7696 esac
7697 ;;
7698 esac
7699 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7700 _lt_dar_single_mod='$single_module'
7701 fi
7702 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7703 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7704 else
7705 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7706 fi
7707 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7708 _lt_dsymutil='~$DSYMUTIL $lib || :'
7709 else
7710 _lt_dsymutil=
7711 fi
7712 ;;
7713 esac
7714
7715 ac_ext=c
7716 ac_cpp='$CPP $CPPFLAGS'
7717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7721 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7722 # On Suns, sometimes $CPP names a directory.
7723 if test -n "$CPP" && test -d "$CPP"; then
7724 CPP=
7725 fi
7726 if test -z "$CPP"; then
7727 if ${ac_cv_prog_CPP+:} false; then :
7728 $as_echo_n "(cached) " >&6
7729 else
7730 # Double quotes because CPP needs to be expanded
7731 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7732 do
7733 ac_preproc_ok=false
7734 for ac_c_preproc_warn_flag in '' yes
7735 do
7736 # Use a header file that comes with gcc, so configuring glibc
7737 # with a fresh cross-compiler works.
7738 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7739 # <limits.h> exists even on freestanding compilers.
7740 # On the NeXT, cc -E runs the code through the compiler's parser,
7741 # not just through cpp. "Syntax error" is here to catch this case.
7742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7743 /* end confdefs.h. */
7744 #ifdef __STDC__
7745 # include <limits.h>
7746 #else
7747 # include <assert.h>
7748 #endif
7749 Syntax error
7750 _ACEOF
7751 if ac_fn_c_try_cpp "$LINENO"; then :
7752
7753 else
7754 # Broken: fails on valid input.
7755 continue
7756 fi
7757 rm -f conftest.err conftest.i conftest.$ac_ext
7758
7759 # OK, works on sane cases. Now check whether nonexistent headers
7760 # can be detected and how.
7761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7762 /* end confdefs.h. */
7763 #include <ac_nonexistent.h>
7764 _ACEOF
7765 if ac_fn_c_try_cpp "$LINENO"; then :
7766 # Broken: success on invalid input.
7767 continue
7768 else
7769 # Passes both tests.
7770 ac_preproc_ok=:
7771 break
7772 fi
7773 rm -f conftest.err conftest.i conftest.$ac_ext
7774
7775 done
7776 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7777 rm -f conftest.i conftest.err conftest.$ac_ext
7778 if $ac_preproc_ok; then :
7779 break
7780 fi
7781
7782 done
7783 ac_cv_prog_CPP=$CPP
7784
7785 fi
7786 CPP=$ac_cv_prog_CPP
7787 else
7788 ac_cv_prog_CPP=$CPP
7789 fi
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7791 $as_echo "$CPP" >&6; }
7792 ac_preproc_ok=false
7793 for ac_c_preproc_warn_flag in '' yes
7794 do
7795 # Use a header file that comes with gcc, so configuring glibc
7796 # with a fresh cross-compiler works.
7797 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7798 # <limits.h> exists even on freestanding compilers.
7799 # On the NeXT, cc -E runs the code through the compiler's parser,
7800 # not just through cpp. "Syntax error" is here to catch this case.
7801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7802 /* end confdefs.h. */
7803 #ifdef __STDC__
7804 # include <limits.h>
7805 #else
7806 # include <assert.h>
7807 #endif
7808 Syntax error
7809 _ACEOF
7810 if ac_fn_c_try_cpp "$LINENO"; then :
7811
7812 else
7813 # Broken: fails on valid input.
7814 continue
7815 fi
7816 rm -f conftest.err conftest.i conftest.$ac_ext
7817
7818 # OK, works on sane cases. Now check whether nonexistent headers
7819 # can be detected and how.
7820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7821 /* end confdefs.h. */
7822 #include <ac_nonexistent.h>
7823 _ACEOF
7824 if ac_fn_c_try_cpp "$LINENO"; then :
7825 # Broken: success on invalid input.
7826 continue
7827 else
7828 # Passes both tests.
7829 ac_preproc_ok=:
7830 break
7831 fi
7832 rm -f conftest.err conftest.i conftest.$ac_ext
7833
7834 done
7835 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7836 rm -f conftest.i conftest.err conftest.$ac_ext
7837 if $ac_preproc_ok; then :
7838
7839 else
7840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7842 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7843 See \`config.log' for more details" "$LINENO" 5; }
7844 fi
7845
7846 ac_ext=c
7847 ac_cpp='$CPP $CPPFLAGS'
7848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7851
7852
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7854 $as_echo_n "checking for ANSI C header files... " >&6; }
7855 if ${ac_cv_header_stdc+:} false; then :
7856 $as_echo_n "(cached) " >&6
7857 else
7858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7859 /* end confdefs.h. */
7860 #include <stdlib.h>
7861 #include <stdarg.h>
7862 #include <string.h>
7863 #include <float.h>
7864
7865 int
7866 main ()
7867 {
7868
7869 ;
7870 return 0;
7871 }
7872 _ACEOF
7873 if ac_fn_c_try_compile "$LINENO"; then :
7874 ac_cv_header_stdc=yes
7875 else
7876 ac_cv_header_stdc=no
7877 fi
7878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7879
7880 if test $ac_cv_header_stdc = yes; then
7881 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7883 /* end confdefs.h. */
7884 #include <string.h>
7885
7886 _ACEOF
7887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7888 $EGREP "memchr" >/dev/null 2>&1; then :
7889
7890 else
7891 ac_cv_header_stdc=no
7892 fi
7893 rm -f conftest*
7894
7895 fi
7896
7897 if test $ac_cv_header_stdc = yes; then
7898 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7900 /* end confdefs.h. */
7901 #include <stdlib.h>
7902
7903 _ACEOF
7904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7905 $EGREP "free" >/dev/null 2>&1; then :
7906
7907 else
7908 ac_cv_header_stdc=no
7909 fi
7910 rm -f conftest*
7911
7912 fi
7913
7914 if test $ac_cv_header_stdc = yes; then
7915 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7916 if test "$cross_compiling" = yes; then :
7917 :
7918 else
7919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7920 /* end confdefs.h. */
7921 #include <ctype.h>
7922 #include <stdlib.h>
7923 #if ((' ' & 0x0FF) == 0x020)
7924 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7925 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7926 #else
7927 # define ISLOWER(c) \
7928 (('a' <= (c) && (c) <= 'i') \
7929 || ('j' <= (c) && (c) <= 'r') \
7930 || ('s' <= (c) && (c) <= 'z'))
7931 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7932 #endif
7933
7934 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7935 int
7936 main ()
7937 {
7938 int i;
7939 for (i = 0; i < 256; i++)
7940 if (XOR (islower (i), ISLOWER (i))
7941 || toupper (i) != TOUPPER (i))
7942 return 2;
7943 return 0;
7944 }
7945 _ACEOF
7946 if ac_fn_c_try_run "$LINENO"; then :
7947
7948 else
7949 ac_cv_header_stdc=no
7950 fi
7951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7952 conftest.$ac_objext conftest.beam conftest.$ac_ext
7953 fi
7954
7955 fi
7956 fi
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7958 $as_echo "$ac_cv_header_stdc" >&6; }
7959 if test $ac_cv_header_stdc = yes; then
7960
7961 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7962
7963 fi
7964
7965 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7966 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7967 inttypes.h stdint.h unistd.h
7968 do :
7969 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7970 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7971 "
7972 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7973 cat >>confdefs.h <<_ACEOF
7974 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7975 _ACEOF
7976
7977 fi
7978
7979 done
7980
7981
7982 for ac_header in dlfcn.h
7983 do :
7984 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7985 "
7986 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7987 cat >>confdefs.h <<_ACEOF
7988 #define HAVE_DLFCN_H 1
7989 _ACEOF
7990
7991 fi
7992
7993 done
7994
7995
7996
7997
7998
7999 # Set options
8000 enable_dlopen=yes
8001 # Check whether --enable-static was given.
8002 if test "${enable_static+set}" = set; then :
8003 enableval=$enable_static; p=${PACKAGE-default}
8004 case $enableval in
8005 yes) enable_static=yes ;;
8006 no) enable_static=no ;;
8007 *)
8008 enable_static=no
8009 # Look at the argument we got. We use all the common list separators.
8010 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8011 for pkg in $enableval; do
8012 IFS="$lt_save_ifs"
8013 if test "X$pkg" = "X$p"; then
8014 enable_static=yes
8015 fi
8016 done
8017 IFS="$lt_save_ifs"
8018 ;;
8019 esac
8020 else
8021 enable_static=no
8022 fi
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034 enable_win32_dll=no
8035
8036
8037 # Check whether --enable-shared was given.
8038 if test "${enable_shared+set}" = set; then :
8039 enableval=$enable_shared; p=${PACKAGE-default}
8040 case $enableval in
8041 yes) enable_shared=yes ;;
8042 no) enable_shared=no ;;
8043 *)
8044 enable_shared=no
8045 # Look at the argument we got. We use all the common list separators.
8046 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8047 for pkg in $enableval; do
8048 IFS="$lt_save_ifs"
8049 if test "X$pkg" = "X$p"; then
8050 enable_shared=yes
8051 fi
8052 done
8053 IFS="$lt_save_ifs"
8054 ;;
8055 esac
8056 else
8057 enable_shared=yes
8058 fi
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070 # Check whether --with-pic was given.
8071 if test "${with_pic+set}" = set; then :
8072 withval=$with_pic; lt_p=${PACKAGE-default}
8073 case $withval in
8074 yes|no) pic_mode=$withval ;;
8075 *)
8076 pic_mode=default
8077 # Look at the argument we got. We use all the common list separators.
8078 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8079 for lt_pkg in $withval; do
8080 IFS="$lt_save_ifs"
8081 if test "X$lt_pkg" = "X$lt_p"; then
8082 pic_mode=yes
8083 fi
8084 done
8085 IFS="$lt_save_ifs"
8086 ;;
8087 esac
8088 else
8089 pic_mode=default
8090 fi
8091
8092
8093 test -z "$pic_mode" && pic_mode=default
8094
8095
8096
8097
8098
8099
8100
8101 # Check whether --enable-fast-install was given.
8102 if test "${enable_fast_install+set}" = set; then :
8103 enableval=$enable_fast_install; p=${PACKAGE-default}
8104 case $enableval in
8105 yes) enable_fast_install=yes ;;
8106 no) enable_fast_install=no ;;
8107 *)
8108 enable_fast_install=no
8109 # Look at the argument we got. We use all the common list separators.
8110 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8111 for pkg in $enableval; do
8112 IFS="$lt_save_ifs"
8113 if test "X$pkg" = "X$p"; then
8114 enable_fast_install=yes
8115 fi
8116 done
8117 IFS="$lt_save_ifs"
8118 ;;
8119 esac
8120 else
8121 enable_fast_install=yes
8122 fi
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134 # This can be used to rebuild libtool when needed
8135 LIBTOOL_DEPS="$ltmain"
8136
8137 # Always use our own libtool.
8138 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8139
8140
8141
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 test -z "$LN_S" && LN_S="ln -s"
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184 if test -n "${ZSH_VERSION+set}" ; then
8185 setopt NO_GLOB_SUBST
8186 fi
8187
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8189 $as_echo_n "checking for objdir... " >&6; }
8190 if ${lt_cv_objdir+:} false; then :
8191 $as_echo_n "(cached) " >&6
8192 else
8193 rm -f .libs 2>/dev/null
8194 mkdir .libs 2>/dev/null
8195 if test -d .libs; then
8196 lt_cv_objdir=.libs
8197 else
8198 # MS-DOS does not allow filenames that begin with a dot.
8199 lt_cv_objdir=_libs
8200 fi
8201 rmdir .libs 2>/dev/null
8202 fi
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8204 $as_echo "$lt_cv_objdir" >&6; }
8205 objdir=$lt_cv_objdir
8206
8207
8208
8209
8210
8211 cat >>confdefs.h <<_ACEOF
8212 #define LT_OBJDIR "$lt_cv_objdir/"
8213 _ACEOF
8214
8215
8216
8217
8218 case $host_os in
8219 aix3*)
8220 # AIX sometimes has problems with the GCC collect2 program. For some
8221 # reason, if we set the COLLECT_NAMES environment variable, the problems
8222 # vanish in a puff of smoke.
8223 if test "X${COLLECT_NAMES+set}" != Xset; then
8224 COLLECT_NAMES=
8225 export COLLECT_NAMES
8226 fi
8227 ;;
8228 esac
8229
8230 # Global variables:
8231 ofile=libtool
8232 can_build_shared=yes
8233
8234 # All known linkers require a `.a' archive for static linking (except MSVC,
8235 # which needs '.lib').
8236 libext=a
8237
8238 with_gnu_ld="$lt_cv_prog_gnu_ld"
8239
8240 old_CC="$CC"
8241 old_CFLAGS="$CFLAGS"
8242
8243 # Set sane defaults for various variables
8244 test -z "$CC" && CC=cc
8245 test -z "$LTCC" && LTCC=$CC
8246 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8247 test -z "$LD" && LD=ld
8248 test -z "$ac_objext" && ac_objext=o
8249
8250 for cc_temp in $compiler""; do
8251 case $cc_temp in
8252 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8253 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8254 \-*) ;;
8255 *) break;;
8256 esac
8257 done
8258 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8259
8260
8261 # Only perform the check for file, if the check method requires it
8262 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8263 case $deplibs_check_method in
8264 file_magic*)
8265 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8267 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8268 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8269 $as_echo_n "(cached) " >&6
8270 else
8271 case $MAGIC_CMD in
8272 [\\/*] | ?:[\\/]*)
8273 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8274 ;;
8275 *)
8276 lt_save_MAGIC_CMD="$MAGIC_CMD"
8277 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8278 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8279 for ac_dir in $ac_dummy; do
8280 IFS="$lt_save_ifs"
8281 test -z "$ac_dir" && ac_dir=.
8282 if test -f $ac_dir/${ac_tool_prefix}file; then
8283 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8284 if test -n "$file_magic_test_file"; then
8285 case $deplibs_check_method in
8286 "file_magic "*)
8287 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8288 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8289 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8290 $EGREP "$file_magic_regex" > /dev/null; then
8291 :
8292 else
8293 cat <<_LT_EOF 1>&2
8294
8295 *** Warning: the command libtool uses to detect shared libraries,
8296 *** $file_magic_cmd, produces output that libtool cannot recognize.
8297 *** The result is that libtool may fail to recognize shared libraries
8298 *** as such. This will affect the creation of libtool libraries that
8299 *** depend on shared libraries, but programs linked with such libtool
8300 *** libraries will work regardless of this problem. Nevertheless, you
8301 *** may want to report the problem to your system manager and/or to
8302 *** bug-libtool@gnu.org
8303
8304 _LT_EOF
8305 fi ;;
8306 esac
8307 fi
8308 break
8309 fi
8310 done
8311 IFS="$lt_save_ifs"
8312 MAGIC_CMD="$lt_save_MAGIC_CMD"
8313 ;;
8314 esac
8315 fi
8316
8317 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8318 if test -n "$MAGIC_CMD"; then
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8320 $as_echo "$MAGIC_CMD" >&6; }
8321 else
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8323 $as_echo "no" >&6; }
8324 fi
8325
8326
8327
8328
8329
8330 if test -z "$lt_cv_path_MAGIC_CMD"; then
8331 if test -n "$ac_tool_prefix"; then
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8333 $as_echo_n "checking for file... " >&6; }
8334 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8335 $as_echo_n "(cached) " >&6
8336 else
8337 case $MAGIC_CMD in
8338 [\\/*] | ?:[\\/]*)
8339 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8340 ;;
8341 *)
8342 lt_save_MAGIC_CMD="$MAGIC_CMD"
8343 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8344 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8345 for ac_dir in $ac_dummy; do
8346 IFS="$lt_save_ifs"
8347 test -z "$ac_dir" && ac_dir=.
8348 if test -f $ac_dir/file; then
8349 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8350 if test -n "$file_magic_test_file"; then
8351 case $deplibs_check_method in
8352 "file_magic "*)
8353 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8354 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8355 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8356 $EGREP "$file_magic_regex" > /dev/null; then
8357 :
8358 else
8359 cat <<_LT_EOF 1>&2
8360
8361 *** Warning: the command libtool uses to detect shared libraries,
8362 *** $file_magic_cmd, produces output that libtool cannot recognize.
8363 *** The result is that libtool may fail to recognize shared libraries
8364 *** as such. This will affect the creation of libtool libraries that
8365 *** depend on shared libraries, but programs linked with such libtool
8366 *** libraries will work regardless of this problem. Nevertheless, you
8367 *** may want to report the problem to your system manager and/or to
8368 *** bug-libtool@gnu.org
8369
8370 _LT_EOF
8371 fi ;;
8372 esac
8373 fi
8374 break
8375 fi
8376 done
8377 IFS="$lt_save_ifs"
8378 MAGIC_CMD="$lt_save_MAGIC_CMD"
8379 ;;
8380 esac
8381 fi
8382
8383 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8384 if test -n "$MAGIC_CMD"; then
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8386 $as_echo "$MAGIC_CMD" >&6; }
8387 else
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8389 $as_echo "no" >&6; }
8390 fi
8391
8392
8393 else
8394 MAGIC_CMD=:
8395 fi
8396 fi
8397
8398 fi
8399 ;;
8400 esac
8401
8402 # Use C for the default configuration in the libtool script
8403
8404 lt_save_CC="$CC"
8405 ac_ext=c
8406 ac_cpp='$CPP $CPPFLAGS'
8407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8410
8411
8412 # Source file extension for C test sources.
8413 ac_ext=c
8414
8415 # Object file extension for compiled C test sources.
8416 objext=o
8417 objext=$objext
8418
8419 # Code to be used in simple compile tests
8420 lt_simple_compile_test_code="int some_variable = 0;"
8421
8422 # Code to be used in simple link tests
8423 lt_simple_link_test_code='int main(){return(0);}'
8424
8425
8426
8427
8428
8429
8430
8431 # If no C compiler was specified, use CC.
8432 LTCC=${LTCC-"$CC"}
8433
8434 # If no C compiler flags were specified, use CFLAGS.
8435 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8436
8437 # Allow CC to be a program name with arguments.
8438 compiler=$CC
8439
8440 # Save the default compiler, since it gets overwritten when the other
8441 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8442 compiler_DEFAULT=$CC
8443
8444 # save warnings/boilerplate of simple test code
8445 ac_outfile=conftest.$ac_objext
8446 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8447 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8448 _lt_compiler_boilerplate=`cat conftest.err`
8449 $RM conftest*
8450
8451 ac_outfile=conftest.$ac_objext
8452 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8453 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8454 _lt_linker_boilerplate=`cat conftest.err`
8455 $RM -r conftest*
8456
8457
8458 if test -n "$compiler"; then
8459
8460 lt_prog_compiler_no_builtin_flag=
8461
8462 if test "$GCC" = yes; then
8463 case $cc_basename in
8464 nvcc*)
8465 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8466 *)
8467 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8468 esac
8469
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8471 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8472 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8473 $as_echo_n "(cached) " >&6
8474 else
8475 lt_cv_prog_compiler_rtti_exceptions=no
8476 ac_outfile=conftest.$ac_objext
8477 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8478 lt_compiler_flag="-fno-rtti -fno-exceptions"
8479 # Insert the option either (1) after the last *FLAGS variable, or
8480 # (2) before a word containing "conftest.", or (3) at the end.
8481 # Note that $ac_compile itself does not contain backslashes and begins
8482 # with a dollar sign (not a hyphen), so the echo should work correctly.
8483 # The option is referenced via a variable to avoid confusing sed.
8484 lt_compile=`echo "$ac_compile" | $SED \
8485 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8486 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8487 -e 's:$: $lt_compiler_flag:'`
8488 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8489 (eval "$lt_compile" 2>conftest.err)
8490 ac_status=$?
8491 cat conftest.err >&5
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 if (exit $ac_status) && test -s "$ac_outfile"; then
8494 # The compiler can only warn and ignore the option if not recognized
8495 # So say no if there are warnings other than the usual output.
8496 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8497 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8498 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8499 lt_cv_prog_compiler_rtti_exceptions=yes
8500 fi
8501 fi
8502 $RM conftest*
8503
8504 fi
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8506 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8507
8508 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8509 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8510 else
8511 :
8512 fi
8513
8514 fi
8515
8516
8517
8518
8519
8520
8521 lt_prog_compiler_wl=
8522 lt_prog_compiler_pic=
8523 lt_prog_compiler_static=
8524
8525
8526 if test "$GCC" = yes; then
8527 lt_prog_compiler_wl='-Wl,'
8528 lt_prog_compiler_static='-static'
8529
8530 case $host_os in
8531 aix*)
8532 # All AIX code is PIC.
8533 if test "$host_cpu" = ia64; then
8534 # AIX 5 now supports IA64 processor
8535 lt_prog_compiler_static='-Bstatic'
8536 fi
8537 ;;
8538
8539 amigaos*)
8540 case $host_cpu in
8541 powerpc)
8542 # see comment about AmigaOS4 .so support
8543 lt_prog_compiler_pic='-fPIC'
8544 ;;
8545 m68k)
8546 # FIXME: we need at least 68020 code to build shared libraries, but
8547 # adding the `-m68020' flag to GCC prevents building anything better,
8548 # like `-m68040'.
8549 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8550 ;;
8551 esac
8552 ;;
8553
8554 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8555 # PIC is the default for these OSes.
8556 ;;
8557
8558 mingw* | cygwin* | pw32* | os2* | cegcc*)
8559 # This hack is so that the source file can tell whether it is being
8560 # built for inclusion in a dll (and should export symbols for example).
8561 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8562 # (--disable-auto-import) libraries
8563 lt_prog_compiler_pic='-DDLL_EXPORT'
8564 ;;
8565
8566 darwin* | rhapsody*)
8567 # PIC is the default on this platform
8568 # Common symbols not allowed in MH_DYLIB files
8569 lt_prog_compiler_pic='-fno-common'
8570 ;;
8571
8572 haiku*)
8573 # PIC is the default for Haiku.
8574 # The "-static" flag exists, but is broken.
8575 lt_prog_compiler_static=
8576 ;;
8577
8578 hpux*)
8579 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8580 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8581 # sets the default TLS model and affects inlining.
8582 case $host_cpu in
8583 hppa*64*)
8584 # +Z the default
8585 ;;
8586 *)
8587 lt_prog_compiler_pic='-fPIC'
8588 ;;
8589 esac
8590 ;;
8591
8592 interix[3-9]*)
8593 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8594 # Instead, we relocate shared libraries at runtime.
8595 ;;
8596
8597 msdosdjgpp*)
8598 # Just because we use GCC doesn't mean we suddenly get shared libraries
8599 # on systems that don't support them.
8600 lt_prog_compiler_can_build_shared=no
8601 enable_shared=no
8602 ;;
8603
8604 *nto* | *qnx*)
8605 # QNX uses GNU C++, but need to define -shared option too, otherwise
8606 # it will coredump.
8607 lt_prog_compiler_pic='-fPIC -shared'
8608 ;;
8609
8610 sysv4*MP*)
8611 if test -d /usr/nec; then
8612 lt_prog_compiler_pic=-Kconform_pic
8613 fi
8614 ;;
8615
8616 *)
8617 lt_prog_compiler_pic='-fPIC'
8618 ;;
8619 esac
8620
8621 case $cc_basename in
8622 nvcc*) # Cuda Compiler Driver 2.2
8623 lt_prog_compiler_wl='-Xlinker '
8624 if test -n "$lt_prog_compiler_pic"; then
8625 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8626 fi
8627 ;;
8628 esac
8629 else
8630 # PORTME Check for flag to pass linker flags through the system compiler.
8631 case $host_os in
8632 aix*)
8633 lt_prog_compiler_wl='-Wl,'
8634 if test "$host_cpu" = ia64; then
8635 # AIX 5 now supports IA64 processor
8636 lt_prog_compiler_static='-Bstatic'
8637 else
8638 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8639 fi
8640 ;;
8641
8642 mingw* | cygwin* | pw32* | os2* | cegcc*)
8643 # This hack is so that the source file can tell whether it is being
8644 # built for inclusion in a dll (and should export symbols for example).
8645 lt_prog_compiler_pic='-DDLL_EXPORT'
8646 ;;
8647
8648 hpux9* | hpux10* | hpux11*)
8649 lt_prog_compiler_wl='-Wl,'
8650 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8651 # not for PA HP-UX.
8652 case $host_cpu in
8653 hppa*64*|ia64*)
8654 # +Z the default
8655 ;;
8656 *)
8657 lt_prog_compiler_pic='+Z'
8658 ;;
8659 esac
8660 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8661 lt_prog_compiler_static='${wl}-a ${wl}archive'
8662 ;;
8663
8664 irix5* | irix6* | nonstopux*)
8665 lt_prog_compiler_wl='-Wl,'
8666 # PIC (with -KPIC) is the default.
8667 lt_prog_compiler_static='-non_shared'
8668 ;;
8669
8670 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8671 case $cc_basename in
8672 # old Intel for x86_64 which still supported -KPIC.
8673 ecc*)
8674 lt_prog_compiler_wl='-Wl,'
8675 lt_prog_compiler_pic='-KPIC'
8676 lt_prog_compiler_static='-static'
8677 ;;
8678 # icc used to be incompatible with GCC.
8679 # ICC 10 doesn't accept -KPIC any more.
8680 icc* | ifort*)
8681 lt_prog_compiler_wl='-Wl,'
8682 lt_prog_compiler_pic='-fPIC'
8683 lt_prog_compiler_static='-static'
8684 ;;
8685 # Lahey Fortran 8.1.
8686 lf95*)
8687 lt_prog_compiler_wl='-Wl,'
8688 lt_prog_compiler_pic='--shared'
8689 lt_prog_compiler_static='--static'
8690 ;;
8691 nagfor*)
8692 # NAG Fortran compiler
8693 lt_prog_compiler_wl='-Wl,-Wl,,'
8694 lt_prog_compiler_pic='-PIC'
8695 lt_prog_compiler_static='-Bstatic'
8696 ;;
8697 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8698 # Portland Group compilers (*not* the Pentium gcc compiler,
8699 # which looks to be a dead project)
8700 lt_prog_compiler_wl='-Wl,'
8701 lt_prog_compiler_pic='-fpic'
8702 lt_prog_compiler_static='-Bstatic'
8703 ;;
8704 ccc*)
8705 lt_prog_compiler_wl='-Wl,'
8706 # All Alpha code is PIC.
8707 lt_prog_compiler_static='-non_shared'
8708 ;;
8709 xl* | bgxl* | bgf* | mpixl*)
8710 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8711 lt_prog_compiler_wl='-Wl,'
8712 lt_prog_compiler_pic='-qpic'
8713 lt_prog_compiler_static='-qstaticlink'
8714 ;;
8715 *)
8716 case `$CC -V 2>&1 | sed 5q` in
8717 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8718 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8719 lt_prog_compiler_pic='-KPIC'
8720 lt_prog_compiler_static='-Bstatic'
8721 lt_prog_compiler_wl=''
8722 ;;
8723 *Sun\ F* | *Sun*Fortran*)
8724 lt_prog_compiler_pic='-KPIC'
8725 lt_prog_compiler_static='-Bstatic'
8726 lt_prog_compiler_wl='-Qoption ld '
8727 ;;
8728 *Sun\ C*)
8729 # Sun C 5.9
8730 lt_prog_compiler_pic='-KPIC'
8731 lt_prog_compiler_static='-Bstatic'
8732 lt_prog_compiler_wl='-Wl,'
8733 ;;
8734 *Intel*\ [CF]*Compiler*)
8735 lt_prog_compiler_wl='-Wl,'
8736 lt_prog_compiler_pic='-fPIC'
8737 lt_prog_compiler_static='-static'
8738 ;;
8739 *Portland\ Group*)
8740 lt_prog_compiler_wl='-Wl,'
8741 lt_prog_compiler_pic='-fpic'
8742 lt_prog_compiler_static='-Bstatic'
8743 ;;
8744 esac
8745 ;;
8746 esac
8747 ;;
8748
8749 newsos6)
8750 lt_prog_compiler_pic='-KPIC'
8751 lt_prog_compiler_static='-Bstatic'
8752 ;;
8753
8754 *nto* | *qnx*)
8755 # QNX uses GNU C++, but need to define -shared option too, otherwise
8756 # it will coredump.
8757 lt_prog_compiler_pic='-fPIC -shared'
8758 ;;
8759
8760 osf3* | osf4* | osf5*)
8761 lt_prog_compiler_wl='-Wl,'
8762 # All OSF/1 code is PIC.
8763 lt_prog_compiler_static='-non_shared'
8764 ;;
8765
8766 rdos*)
8767 lt_prog_compiler_static='-non_shared'
8768 ;;
8769
8770 solaris*)
8771 lt_prog_compiler_pic='-KPIC'
8772 lt_prog_compiler_static='-Bstatic'
8773 case $cc_basename in
8774 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8775 lt_prog_compiler_wl='-Qoption ld ';;
8776 *)
8777 lt_prog_compiler_wl='-Wl,';;
8778 esac
8779 ;;
8780
8781 sunos4*)
8782 lt_prog_compiler_wl='-Qoption ld '
8783 lt_prog_compiler_pic='-PIC'
8784 lt_prog_compiler_static='-Bstatic'
8785 ;;
8786
8787 sysv4 | sysv4.2uw2* | sysv4.3*)
8788 lt_prog_compiler_wl='-Wl,'
8789 lt_prog_compiler_pic='-KPIC'
8790 lt_prog_compiler_static='-Bstatic'
8791 ;;
8792
8793 sysv4*MP*)
8794 if test -d /usr/nec ;then
8795 lt_prog_compiler_pic='-Kconform_pic'
8796 lt_prog_compiler_static='-Bstatic'
8797 fi
8798 ;;
8799
8800 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8801 lt_prog_compiler_wl='-Wl,'
8802 lt_prog_compiler_pic='-KPIC'
8803 lt_prog_compiler_static='-Bstatic'
8804 ;;
8805
8806 unicos*)
8807 lt_prog_compiler_wl='-Wl,'
8808 lt_prog_compiler_can_build_shared=no
8809 ;;
8810
8811 uts4*)
8812 lt_prog_compiler_pic='-pic'
8813 lt_prog_compiler_static='-Bstatic'
8814 ;;
8815
8816 *)
8817 lt_prog_compiler_can_build_shared=no
8818 ;;
8819 esac
8820 fi
8821
8822 case $host_os in
8823 # For platforms which do not support PIC, -DPIC is meaningless:
8824 *djgpp*)
8825 lt_prog_compiler_pic=
8826 ;;
8827 *)
8828 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8829 ;;
8830 esac
8831
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8833 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8834 if ${lt_cv_prog_compiler_pic+:} false; then :
8835 $as_echo_n "(cached) " >&6
8836 else
8837 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8838 fi
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8840 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8841 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8842
8843 #
8844 # Check to make sure the PIC flag actually works.
8845 #
8846 if test -n "$lt_prog_compiler_pic"; then
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8848 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8849 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8850 $as_echo_n "(cached) " >&6
8851 else
8852 lt_cv_prog_compiler_pic_works=no
8853 ac_outfile=conftest.$ac_objext
8854 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8855 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8856 # Insert the option either (1) after the last *FLAGS variable, or
8857 # (2) before a word containing "conftest.", or (3) at the end.
8858 # Note that $ac_compile itself does not contain backslashes and begins
8859 # with a dollar sign (not a hyphen), so the echo should work correctly.
8860 # The option is referenced via a variable to avoid confusing sed.
8861 lt_compile=`echo "$ac_compile" | $SED \
8862 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8863 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8864 -e 's:$: $lt_compiler_flag:'`
8865 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8866 (eval "$lt_compile" 2>conftest.err)
8867 ac_status=$?
8868 cat conftest.err >&5
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 if (exit $ac_status) && test -s "$ac_outfile"; then
8871 # The compiler can only warn and ignore the option if not recognized
8872 # So say no if there are warnings other than the usual output.
8873 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8874 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8875 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8876 lt_cv_prog_compiler_pic_works=yes
8877 fi
8878 fi
8879 $RM conftest*
8880
8881 fi
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8883 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8884
8885 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8886 case $lt_prog_compiler_pic in
8887 "" | " "*) ;;
8888 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8889 esac
8890 else
8891 lt_prog_compiler_pic=
8892 lt_prog_compiler_can_build_shared=no
8893 fi
8894
8895 fi
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907 #
8908 # Check to make sure the static flag actually works.
8909 #
8910 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8912 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8913 if ${lt_cv_prog_compiler_static_works+:} false; then :
8914 $as_echo_n "(cached) " >&6
8915 else
8916 lt_cv_prog_compiler_static_works=no
8917 save_LDFLAGS="$LDFLAGS"
8918 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8919 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8920 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8921 # The linker can only warn and ignore the option if not recognized
8922 # So say no if there are warnings
8923 if test -s conftest.err; then
8924 # Append any errors to the config.log.
8925 cat conftest.err 1>&5
8926 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8927 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8928 if diff conftest.exp conftest.er2 >/dev/null; then
8929 lt_cv_prog_compiler_static_works=yes
8930 fi
8931 else
8932 lt_cv_prog_compiler_static_works=yes
8933 fi
8934 fi
8935 $RM -r conftest*
8936 LDFLAGS="$save_LDFLAGS"
8937
8938 fi
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8940 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8941
8942 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8943 :
8944 else
8945 lt_prog_compiler_static=
8946 fi
8947
8948
8949
8950
8951
8952
8953
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8955 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8956 if ${lt_cv_prog_compiler_c_o+:} false; then :
8957 $as_echo_n "(cached) " >&6
8958 else
8959 lt_cv_prog_compiler_c_o=no
8960 $RM -r conftest 2>/dev/null
8961 mkdir conftest
8962 cd conftest
8963 mkdir out
8964 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8965
8966 lt_compiler_flag="-o out/conftest2.$ac_objext"
8967 # Insert the option either (1) after the last *FLAGS variable, or
8968 # (2) before a word containing "conftest.", or (3) at the end.
8969 # Note that $ac_compile itself does not contain backslashes and begins
8970 # with a dollar sign (not a hyphen), so the echo should work correctly.
8971 lt_compile=`echo "$ac_compile" | $SED \
8972 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8973 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8974 -e 's:$: $lt_compiler_flag:'`
8975 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8976 (eval "$lt_compile" 2>out/conftest.err)
8977 ac_status=$?
8978 cat out/conftest.err >&5
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8981 then
8982 # The compiler can only warn and ignore the option if not recognized
8983 # So say no if there are warnings
8984 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8985 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8986 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8987 lt_cv_prog_compiler_c_o=yes
8988 fi
8989 fi
8990 chmod u+w . 2>&5
8991 $RM conftest*
8992 # SGI C++ compiler will create directory out/ii_files/ for
8993 # template instantiation
8994 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8995 $RM out/* && rmdir out
8996 cd ..
8997 $RM -r conftest
8998 $RM conftest*
8999
9000 fi
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9002 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9003
9004
9005
9006
9007
9008
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9010 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9011 if ${lt_cv_prog_compiler_c_o+:} false; then :
9012 $as_echo_n "(cached) " >&6
9013 else
9014 lt_cv_prog_compiler_c_o=no
9015 $RM -r conftest 2>/dev/null
9016 mkdir conftest
9017 cd conftest
9018 mkdir out
9019 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9020
9021 lt_compiler_flag="-o out/conftest2.$ac_objext"
9022 # Insert the option either (1) after the last *FLAGS variable, or
9023 # (2) before a word containing "conftest.", or (3) at the end.
9024 # Note that $ac_compile itself does not contain backslashes and begins
9025 # with a dollar sign (not a hyphen), so the echo should work correctly.
9026 lt_compile=`echo "$ac_compile" | $SED \
9027 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9028 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9029 -e 's:$: $lt_compiler_flag:'`
9030 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9031 (eval "$lt_compile" 2>out/conftest.err)
9032 ac_status=$?
9033 cat out/conftest.err >&5
9034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9036 then
9037 # The compiler can only warn and ignore the option if not recognized
9038 # So say no if there are warnings
9039 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9040 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9041 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9042 lt_cv_prog_compiler_c_o=yes
9043 fi
9044 fi
9045 chmod u+w . 2>&5
9046 $RM conftest*
9047 # SGI C++ compiler will create directory out/ii_files/ for
9048 # template instantiation
9049 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9050 $RM out/* && rmdir out
9051 cd ..
9052 $RM -r conftest
9053 $RM conftest*
9054
9055 fi
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9057 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9058
9059
9060
9061
9062 hard_links="nottested"
9063 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9064 # do not overwrite the value of need_locks provided by the user
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9066 $as_echo_n "checking if we can lock with hard links... " >&6; }
9067 hard_links=yes
9068 $RM conftest*
9069 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9070 touch conftest.a
9071 ln conftest.a conftest.b 2>&5 || hard_links=no
9072 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9074 $as_echo "$hard_links" >&6; }
9075 if test "$hard_links" = no; then
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9077 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9078 need_locks=warn
9079 fi
9080 else
9081 need_locks=no
9082 fi
9083
9084
9085
9086
9087
9088
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9090 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9091
9092 runpath_var=
9093 allow_undefined_flag=
9094 always_export_symbols=no
9095 archive_cmds=
9096 archive_expsym_cmds=
9097 compiler_needs_object=no
9098 enable_shared_with_static_runtimes=no
9099 export_dynamic_flag_spec=
9100 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9101 hardcode_automatic=no
9102 hardcode_direct=no
9103 hardcode_direct_absolute=no
9104 hardcode_libdir_flag_spec=
9105 hardcode_libdir_separator=
9106 hardcode_minus_L=no
9107 hardcode_shlibpath_var=unsupported
9108 inherit_rpath=no
9109 link_all_deplibs=unknown
9110 module_cmds=
9111 module_expsym_cmds=
9112 old_archive_from_new_cmds=
9113 old_archive_from_expsyms_cmds=
9114 thread_safe_flag_spec=
9115 whole_archive_flag_spec=
9116 # include_expsyms should be a list of space-separated symbols to be *always*
9117 # included in the symbol list
9118 include_expsyms=
9119 # exclude_expsyms can be an extended regexp of symbols to exclude
9120 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9121 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9122 # as well as any symbol that contains `d'.
9123 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9124 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9125 # platforms (ab)use it in PIC code, but their linkers get confused if
9126 # the symbol is explicitly referenced. Since portable code cannot
9127 # rely on this symbol name, it's probably fine to never include it in
9128 # preloaded symbol tables.
9129 # Exclude shared library initialization/finalization symbols.
9130 extract_expsyms_cmds=
9131
9132 case $host_os in
9133 cygwin* | mingw* | pw32* | cegcc*)
9134 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9135 # When not using gcc, we currently assume that we are using
9136 # Microsoft Visual C++.
9137 if test "$GCC" != yes; then
9138 with_gnu_ld=no
9139 fi
9140 ;;
9141 interix*)
9142 # we just hope/assume this is gcc and not c89 (= MSVC++)
9143 with_gnu_ld=yes
9144 ;;
9145 openbsd*)
9146 with_gnu_ld=no
9147 ;;
9148 esac
9149
9150 ld_shlibs=yes
9151
9152 # On some targets, GNU ld is compatible enough with the native linker
9153 # that we're better off using the native interface for both.
9154 lt_use_gnu_ld_interface=no
9155 if test "$with_gnu_ld" = yes; then
9156 case $host_os in
9157 aix*)
9158 # The AIX port of GNU ld has always aspired to compatibility
9159 # with the native linker. However, as the warning in the GNU ld
9160 # block says, versions before 2.19.5* couldn't really create working
9161 # shared libraries, regardless of the interface used.
9162 case `$LD -v 2>&1` in
9163 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9164 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9165 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9166 *)
9167 lt_use_gnu_ld_interface=yes
9168 ;;
9169 esac
9170 ;;
9171 *)
9172 lt_use_gnu_ld_interface=yes
9173 ;;
9174 esac
9175 fi
9176
9177 if test "$lt_use_gnu_ld_interface" = yes; then
9178 # If archive_cmds runs LD, not CC, wlarc should be empty
9179 wlarc='${wl}'
9180
9181 # Set some defaults for GNU ld with shared library support. These
9182 # are reset later if shared libraries are not supported. Putting them
9183 # here allows them to be overridden if necessary.
9184 runpath_var=LD_RUN_PATH
9185 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9186 export_dynamic_flag_spec='${wl}--export-dynamic'
9187 # ancient GNU ld didn't support --whole-archive et. al.
9188 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9189 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9190 else
9191 whole_archive_flag_spec=
9192 fi
9193 supports_anon_versioning=no
9194 case `$LD -v 2>&1` in
9195 *GNU\ gold*) supports_anon_versioning=yes ;;
9196 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9197 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9198 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9199 *\ 2.11.*) ;; # other 2.11 versions
9200 *) supports_anon_versioning=yes ;;
9201 esac
9202
9203 # See if GNU ld supports shared libraries.
9204 case $host_os in
9205 aix[3-9]*)
9206 # On AIX/PPC, the GNU linker is very broken
9207 if test "$host_cpu" != ia64; then
9208 ld_shlibs=no
9209 cat <<_LT_EOF 1>&2
9210
9211 *** Warning: the GNU linker, at least up to release 2.19, is reported
9212 *** to be unable to reliably create shared libraries on AIX.
9213 *** Therefore, libtool is disabling shared libraries support. If you
9214 *** really care for shared libraries, you may want to install binutils
9215 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9216 *** You will then need to restart the configuration process.
9217
9218 _LT_EOF
9219 fi
9220 ;;
9221
9222 amigaos*)
9223 case $host_cpu in
9224 powerpc)
9225 # see comment about AmigaOS4 .so support
9226 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9227 archive_expsym_cmds=''
9228 ;;
9229 m68k)
9230 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)'
9231 hardcode_libdir_flag_spec='-L$libdir'
9232 hardcode_minus_L=yes
9233 ;;
9234 esac
9235 ;;
9236
9237 beos*)
9238 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9239 allow_undefined_flag=unsupported
9240 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9241 # support --undefined. This deserves some investigation. FIXME
9242 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9243 else
9244 ld_shlibs=no
9245 fi
9246 ;;
9247
9248 cygwin* | mingw* | pw32* | cegcc*)
9249 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9250 # as there is no search path for DLLs.
9251 hardcode_libdir_flag_spec='-L$libdir'
9252 export_dynamic_flag_spec='${wl}--export-all-symbols'
9253 allow_undefined_flag=unsupported
9254 always_export_symbols=no
9255 enable_shared_with_static_runtimes=yes
9256 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'
9257 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9258
9259 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9260 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9261 # If the export-symbols file already is a .def file (1st line
9262 # is EXPORTS), use it as is; otherwise, prepend...
9263 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9264 cp $export_symbols $output_objdir/$soname.def;
9265 else
9266 echo EXPORTS > $output_objdir/$soname.def;
9267 cat $export_symbols >> $output_objdir/$soname.def;
9268 fi~
9269 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9270 else
9271 ld_shlibs=no
9272 fi
9273 ;;
9274
9275 haiku*)
9276 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9277 link_all_deplibs=yes
9278 ;;
9279
9280 interix[3-9]*)
9281 hardcode_direct=no
9282 hardcode_shlibpath_var=no
9283 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9284 export_dynamic_flag_spec='${wl}-E'
9285 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9286 # Instead, shared libraries are loaded at an image base (0x10000000 by
9287 # default) and relocated if they conflict, which is a slow very memory
9288 # consuming and fragmenting process. To avoid this, we pick a random,
9289 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9290 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9291 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9292 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'
9293 ;;
9294
9295 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9296 tmp_diet=no
9297 if test "$host_os" = linux-dietlibc; then
9298 case $cc_basename in
9299 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9300 esac
9301 fi
9302 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9303 && test "$tmp_diet" = no
9304 then
9305 tmp_addflag=' $pic_flag'
9306 tmp_sharedflag='-shared'
9307 case $cc_basename,$host_cpu in
9308 pgcc*) # Portland Group C compiler
9309 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'
9310 tmp_addflag=' $pic_flag'
9311 ;;
9312 pgf77* | pgf90* | pgf95* | pgfortran*)
9313 # Portland Group f77 and f90 compilers
9314 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'
9315 tmp_addflag=' $pic_flag -Mnomain' ;;
9316 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9317 tmp_addflag=' -i_dynamic' ;;
9318 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9319 tmp_addflag=' -i_dynamic -nofor_main' ;;
9320 ifc* | ifort*) # Intel Fortran compiler
9321 tmp_addflag=' -nofor_main' ;;
9322 lf95*) # Lahey Fortran 8.1
9323 whole_archive_flag_spec=
9324 tmp_sharedflag='--shared' ;;
9325 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9326 tmp_sharedflag='-qmkshrobj'
9327 tmp_addflag= ;;
9328 nvcc*) # Cuda Compiler Driver 2.2
9329 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'
9330 compiler_needs_object=yes
9331 ;;
9332 esac
9333 case `$CC -V 2>&1 | sed 5q` in
9334 *Sun\ C*) # Sun C 5.9
9335 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'
9336 compiler_needs_object=yes
9337 tmp_sharedflag='-G' ;;
9338 *Sun\ F*) # Sun Fortran 8.3
9339 tmp_sharedflag='-G' ;;
9340 esac
9341 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9342
9343 if test "x$supports_anon_versioning" = xyes; then
9344 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9345 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9346 echo "local: *; };" >> $output_objdir/$libname.ver~
9347 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9348 fi
9349
9350 case $cc_basename in
9351 xlf* | bgf* | bgxlf* | mpixlf*)
9352 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9353 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9354 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9355 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9356 if test "x$supports_anon_versioning" = xyes; then
9357 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9358 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9359 echo "local: *; };" >> $output_objdir/$libname.ver~
9360 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9361 fi
9362 ;;
9363 esac
9364 else
9365 ld_shlibs=no
9366 fi
9367 ;;
9368
9369 netbsd*)
9370 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9371 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9372 wlarc=
9373 else
9374 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9375 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9376 fi
9377 ;;
9378
9379 solaris*)
9380 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9381 ld_shlibs=no
9382 cat <<_LT_EOF 1>&2
9383
9384 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9385 *** create shared libraries on Solaris systems. Therefore, libtool
9386 *** is disabling shared libraries support. We urge you to upgrade GNU
9387 *** binutils to release 2.9.1 or newer. Another option is to modify
9388 *** your PATH or compiler configuration so that the native linker is
9389 *** used, and then restart.
9390
9391 _LT_EOF
9392 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9393 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9394 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9395 else
9396 ld_shlibs=no
9397 fi
9398 ;;
9399
9400 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9401 case `$LD -v 2>&1` in
9402 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9403 ld_shlibs=no
9404 cat <<_LT_EOF 1>&2
9405
9406 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9407 *** reliably create shared libraries on SCO systems. Therefore, libtool
9408 *** is disabling shared libraries support. We urge you to upgrade GNU
9409 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9410 *** your PATH or compiler configuration so that the native linker is
9411 *** used, and then restart.
9412
9413 _LT_EOF
9414 ;;
9415 *)
9416 # For security reasons, it is highly recommended that you always
9417 # use absolute paths for naming shared libraries, and exclude the
9418 # DT_RUNPATH tag from executables and libraries. But doing so
9419 # requires that you compile everything twice, which is a pain.
9420 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9421 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9422 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9423 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9424 else
9425 ld_shlibs=no
9426 fi
9427 ;;
9428 esac
9429 ;;
9430
9431 sunos4*)
9432 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9433 wlarc=
9434 hardcode_direct=yes
9435 hardcode_shlibpath_var=no
9436 ;;
9437
9438 *)
9439 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9440 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9441 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9442 else
9443 ld_shlibs=no
9444 fi
9445 ;;
9446 esac
9447
9448 if test "$ld_shlibs" = no; then
9449 runpath_var=
9450 hardcode_libdir_flag_spec=
9451 export_dynamic_flag_spec=
9452 whole_archive_flag_spec=
9453 fi
9454 else
9455 # PORTME fill in a description of your system's linker (not GNU ld)
9456 case $host_os in
9457 aix3*)
9458 allow_undefined_flag=unsupported
9459 always_export_symbols=yes
9460 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'
9461 # Note: this linker hardcodes the directories in LIBPATH if there
9462 # are no directories specified by -L.
9463 hardcode_minus_L=yes
9464 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9465 # Neither direct hardcoding nor static linking is supported with a
9466 # broken collect2.
9467 hardcode_direct=unsupported
9468 fi
9469 ;;
9470
9471 aix[4-9]*)
9472 if test "$host_cpu" = ia64; then
9473 # On IA64, the linker does run time linking by default, so we don't
9474 # have to do anything special.
9475 aix_use_runtimelinking=no
9476 exp_sym_flag='-Bexport'
9477 no_entry_flag=""
9478 else
9479 # If we're using GNU nm, then we don't want the "-C" option.
9480 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9481 # Also, AIX nm treats weak defined symbols like other global
9482 # defined symbols, whereas GNU nm marks them as "W".
9483 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9484 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'
9485 else
9486 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'
9487 fi
9488 aix_use_runtimelinking=no
9489
9490 # Test if we are trying to use run time linking or normal
9491 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9492 # need to do runtime linking.
9493 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9494 for ld_flag in $LDFLAGS; do
9495 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9496 aix_use_runtimelinking=yes
9497 break
9498 fi
9499 done
9500 ;;
9501 esac
9502
9503 exp_sym_flag='-bexport'
9504 no_entry_flag='-bnoentry'
9505 fi
9506
9507 # When large executables or shared objects are built, AIX ld can
9508 # have problems creating the table of contents. If linking a library
9509 # or program results in "error TOC overflow" add -mminimal-toc to
9510 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9511 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9512
9513 archive_cmds=''
9514 hardcode_direct=yes
9515 hardcode_direct_absolute=yes
9516 hardcode_libdir_separator=':'
9517 link_all_deplibs=yes
9518 file_list_spec='${wl}-f,'
9519
9520 if test "$GCC" = yes; then
9521 case $host_os in aix4.[012]|aix4.[012].*)
9522 # We only want to do this on AIX 4.2 and lower, the check
9523 # below for broken collect2 doesn't work under 4.3+
9524 collect2name=`${CC} -print-prog-name=collect2`
9525 if test -f "$collect2name" &&
9526 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9527 then
9528 # We have reworked collect2
9529 :
9530 else
9531 # We have old collect2
9532 hardcode_direct=unsupported
9533 # It fails to find uninstalled libraries when the uninstalled
9534 # path is not listed in the libpath. Setting hardcode_minus_L
9535 # to unsupported forces relinking
9536 hardcode_minus_L=yes
9537 hardcode_libdir_flag_spec='-L$libdir'
9538 hardcode_libdir_separator=
9539 fi
9540 ;;
9541 esac
9542 shared_flag='-shared'
9543 if test "$aix_use_runtimelinking" = yes; then
9544 shared_flag="$shared_flag "'${wl}-G'
9545 fi
9546 else
9547 # not using gcc
9548 if test "$host_cpu" = ia64; then
9549 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9550 # chokes on -Wl,-G. The following line is correct:
9551 shared_flag='-G'
9552 else
9553 if test "$aix_use_runtimelinking" = yes; then
9554 shared_flag='${wl}-G'
9555 else
9556 shared_flag='${wl}-bM:SRE'
9557 fi
9558 fi
9559 fi
9560
9561 export_dynamic_flag_spec='${wl}-bexpall'
9562 # It seems that -bexpall does not export symbols beginning with
9563 # underscore (_), so it is better to generate a list of symbols to export.
9564 always_export_symbols=yes
9565 if test "$aix_use_runtimelinking" = yes; then
9566 # Warning - without using the other runtime loading flags (-brtl),
9567 # -berok will link without error, but may produce a broken library.
9568 allow_undefined_flag='-berok'
9569 # Determine the default libpath from the value encoded in an
9570 # empty executable.
9571 if test "${lt_cv_aix_libpath+set}" = set; then
9572 aix_libpath=$lt_cv_aix_libpath
9573 else
9574 if ${lt_cv_aix_libpath_+:} false; then :
9575 $as_echo_n "(cached) " >&6
9576 else
9577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9578 /* end confdefs.h. */
9579
9580 int
9581 main ()
9582 {
9583
9584 ;
9585 return 0;
9586 }
9587 _ACEOF
9588 if ac_fn_c_try_link "$LINENO"; then :
9589
9590 lt_aix_libpath_sed='
9591 /Import File Strings/,/^$/ {
9592 /^0/ {
9593 s/^0 *\([^ ]*\) *$/\1/
9594 p
9595 }
9596 }'
9597 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9598 # Check for a 64-bit object if we didn't find anything.
9599 if test -z "$lt_cv_aix_libpath_"; then
9600 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9601 fi
9602 fi
9603 rm -f core conftest.err conftest.$ac_objext \
9604 conftest$ac_exeext conftest.$ac_ext
9605 if test -z "$lt_cv_aix_libpath_"; then
9606 lt_cv_aix_libpath_="/usr/lib:/lib"
9607 fi
9608
9609 fi
9610
9611 aix_libpath=$lt_cv_aix_libpath_
9612 fi
9613
9614 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9615 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"
9616 else
9617 if test "$host_cpu" = ia64; then
9618 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9619 allow_undefined_flag="-z nodefs"
9620 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"
9621 else
9622 # Determine the default libpath from the value encoded in an
9623 # empty executable.
9624 if test "${lt_cv_aix_libpath+set}" = set; then
9625 aix_libpath=$lt_cv_aix_libpath
9626 else
9627 if ${lt_cv_aix_libpath_+:} false; then :
9628 $as_echo_n "(cached) " >&6
9629 else
9630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9631 /* end confdefs.h. */
9632
9633 int
9634 main ()
9635 {
9636
9637 ;
9638 return 0;
9639 }
9640 _ACEOF
9641 if ac_fn_c_try_link "$LINENO"; then :
9642
9643 lt_aix_libpath_sed='
9644 /Import File Strings/,/^$/ {
9645 /^0/ {
9646 s/^0 *\([^ ]*\) *$/\1/
9647 p
9648 }
9649 }'
9650 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9651 # Check for a 64-bit object if we didn't find anything.
9652 if test -z "$lt_cv_aix_libpath_"; then
9653 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9654 fi
9655 fi
9656 rm -f core conftest.err conftest.$ac_objext \
9657 conftest$ac_exeext conftest.$ac_ext
9658 if test -z "$lt_cv_aix_libpath_"; then
9659 lt_cv_aix_libpath_="/usr/lib:/lib"
9660 fi
9661
9662 fi
9663
9664 aix_libpath=$lt_cv_aix_libpath_
9665 fi
9666
9667 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9668 # Warning - without using the other run time loading flags,
9669 # -berok will link without error, but may produce a broken library.
9670 no_undefined_flag=' ${wl}-bernotok'
9671 allow_undefined_flag=' ${wl}-berok'
9672 if test "$with_gnu_ld" = yes; then
9673 # We only use this code for GNU lds that support --whole-archive.
9674 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9675 else
9676 # Exported symbols can be pulled into shared objects from archives
9677 whole_archive_flag_spec='$convenience'
9678 fi
9679 archive_cmds_need_lc=yes
9680 # This is similar to how AIX traditionally builds its shared libraries.
9681 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'
9682 fi
9683 fi
9684 ;;
9685
9686 amigaos*)
9687 case $host_cpu in
9688 powerpc)
9689 # see comment about AmigaOS4 .so support
9690 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9691 archive_expsym_cmds=''
9692 ;;
9693 m68k)
9694 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)'
9695 hardcode_libdir_flag_spec='-L$libdir'
9696 hardcode_minus_L=yes
9697 ;;
9698 esac
9699 ;;
9700
9701 bsdi[45]*)
9702 export_dynamic_flag_spec=-rdynamic
9703 ;;
9704
9705 cygwin* | mingw* | pw32* | cegcc*)
9706 # When not using gcc, we currently assume that we are using
9707 # Microsoft Visual C++.
9708 # hardcode_libdir_flag_spec is actually meaningless, as there is
9709 # no search path for DLLs.
9710 case $cc_basename in
9711 cl*)
9712 # Native MSVC
9713 hardcode_libdir_flag_spec=' '
9714 allow_undefined_flag=unsupported
9715 always_export_symbols=yes
9716 file_list_spec='@'
9717 # Tell ltmain to make .lib files, not .a files.
9718 libext=lib
9719 # Tell ltmain to make .dll files, not .so files.
9720 shrext_cmds=".dll"
9721 # FIXME: Setting linknames here is a bad hack.
9722 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9723 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9724 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9725 else
9726 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9727 fi~
9728 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9729 linknames='
9730 # The linker will not automatically build a static lib if we build a DLL.
9731 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9732 enable_shared_with_static_runtimes=yes
9733 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9734 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9735 # Don't use ranlib
9736 old_postinstall_cmds='chmod 644 $oldlib'
9737 postlink_cmds='lt_outputfile="@OUTPUT@"~
9738 lt_tool_outputfile="@TOOL_OUTPUT@"~
9739 case $lt_outputfile in
9740 *.exe|*.EXE) ;;
9741 *)
9742 lt_outputfile="$lt_outputfile.exe"
9743 lt_tool_outputfile="$lt_tool_outputfile.exe"
9744 ;;
9745 esac~
9746 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9747 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9748 $RM "$lt_outputfile.manifest";
9749 fi'
9750 ;;
9751 *)
9752 # Assume MSVC wrapper
9753 hardcode_libdir_flag_spec=' '
9754 allow_undefined_flag=unsupported
9755 # Tell ltmain to make .lib files, not .a files.
9756 libext=lib
9757 # Tell ltmain to make .dll files, not .so files.
9758 shrext_cmds=".dll"
9759 # FIXME: Setting linknames here is a bad hack.
9760 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9761 # The linker will automatically build a .lib file if we build a DLL.
9762 old_archive_from_new_cmds='true'
9763 # FIXME: Should let the user specify the lib program.
9764 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9765 enable_shared_with_static_runtimes=yes
9766 ;;
9767 esac
9768 ;;
9769
9770 darwin* | rhapsody*)
9771
9772
9773 archive_cmds_need_lc=no
9774 hardcode_direct=no
9775 hardcode_automatic=yes
9776 hardcode_shlibpath_var=unsupported
9777 if test "$lt_cv_ld_force_load" = "yes"; then
9778 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\"`'
9779
9780 else
9781 whole_archive_flag_spec=''
9782 fi
9783 link_all_deplibs=yes
9784 allow_undefined_flag="$_lt_dar_allow_undefined"
9785 case $cc_basename in
9786 ifort*) _lt_dar_can_shared=yes ;;
9787 *) _lt_dar_can_shared=$GCC ;;
9788 esac
9789 if test "$_lt_dar_can_shared" = "yes"; then
9790 output_verbose_link_cmd=func_echo_all
9791 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9792 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9793 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}"
9794 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}"
9795
9796 else
9797 ld_shlibs=no
9798 fi
9799
9800 ;;
9801
9802 dgux*)
9803 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9804 hardcode_libdir_flag_spec='-L$libdir'
9805 hardcode_shlibpath_var=no
9806 ;;
9807
9808 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9809 # support. Future versions do this automatically, but an explicit c++rt0.o
9810 # does not break anything, and helps significantly (at the cost of a little
9811 # extra space).
9812 freebsd2.2*)
9813 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9814 hardcode_libdir_flag_spec='-R$libdir'
9815 hardcode_direct=yes
9816 hardcode_shlibpath_var=no
9817 ;;
9818
9819 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9820 freebsd2.*)
9821 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9822 hardcode_direct=yes
9823 hardcode_minus_L=yes
9824 hardcode_shlibpath_var=no
9825 ;;
9826
9827 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9828 freebsd* | dragonfly*)
9829 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9830 hardcode_libdir_flag_spec='-R$libdir'
9831 hardcode_direct=yes
9832 hardcode_shlibpath_var=no
9833 ;;
9834
9835 hpux9*)
9836 if test "$GCC" = yes; then
9837 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'
9838 else
9839 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'
9840 fi
9841 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9842 hardcode_libdir_separator=:
9843 hardcode_direct=yes
9844
9845 # hardcode_minus_L: Not really in the search PATH,
9846 # but as the default location of the library.
9847 hardcode_minus_L=yes
9848 export_dynamic_flag_spec='${wl}-E'
9849 ;;
9850
9851 hpux10*)
9852 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9853 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9854 else
9855 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9856 fi
9857 if test "$with_gnu_ld" = no; then
9858 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9859 hardcode_libdir_separator=:
9860 hardcode_direct=yes
9861 hardcode_direct_absolute=yes
9862 export_dynamic_flag_spec='${wl}-E'
9863 # hardcode_minus_L: Not really in the search PATH,
9864 # but as the default location of the library.
9865 hardcode_minus_L=yes
9866 fi
9867 ;;
9868
9869 hpux11*)
9870 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9871 case $host_cpu in
9872 hppa*64*)
9873 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9874 ;;
9875 ia64*)
9876 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9877 ;;
9878 *)
9879 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9880 ;;
9881 esac
9882 else
9883 case $host_cpu in
9884 hppa*64*)
9885 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9886 ;;
9887 ia64*)
9888 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9889 ;;
9890 *)
9891
9892 # Older versions of the 11.00 compiler do not understand -b yet
9893 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9895 $as_echo_n "checking if $CC understands -b... " >&6; }
9896 if ${lt_cv_prog_compiler__b+:} false; then :
9897 $as_echo_n "(cached) " >&6
9898 else
9899 lt_cv_prog_compiler__b=no
9900 save_LDFLAGS="$LDFLAGS"
9901 LDFLAGS="$LDFLAGS -b"
9902 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9903 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9904 # The linker can only warn and ignore the option if not recognized
9905 # So say no if there are warnings
9906 if test -s conftest.err; then
9907 # Append any errors to the config.log.
9908 cat conftest.err 1>&5
9909 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9910 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9911 if diff conftest.exp conftest.er2 >/dev/null; then
9912 lt_cv_prog_compiler__b=yes
9913 fi
9914 else
9915 lt_cv_prog_compiler__b=yes
9916 fi
9917 fi
9918 $RM -r conftest*
9919 LDFLAGS="$save_LDFLAGS"
9920
9921 fi
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9923 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9924
9925 if test x"$lt_cv_prog_compiler__b" = xyes; then
9926 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9927 else
9928 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9929 fi
9930
9931 ;;
9932 esac
9933 fi
9934 if test "$with_gnu_ld" = no; then
9935 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9936 hardcode_libdir_separator=:
9937
9938 case $host_cpu in
9939 hppa*64*|ia64*)
9940 hardcode_direct=no
9941 hardcode_shlibpath_var=no
9942 ;;
9943 *)
9944 hardcode_direct=yes
9945 hardcode_direct_absolute=yes
9946 export_dynamic_flag_spec='${wl}-E'
9947
9948 # hardcode_minus_L: Not really in the search PATH,
9949 # but as the default location of the library.
9950 hardcode_minus_L=yes
9951 ;;
9952 esac
9953 fi
9954 ;;
9955
9956 irix5* | irix6* | nonstopux*)
9957 if test "$GCC" = yes; then
9958 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'
9959 # Try to use the -exported_symbol ld option, if it does not
9960 # work, assume that -exports_file does not work either and
9961 # implicitly export all symbols.
9962 # This should be the same for all languages, so no per-tag cache variable.
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9964 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9965 if ${lt_cv_irix_exported_symbol+:} false; then :
9966 $as_echo_n "(cached) " >&6
9967 else
9968 save_LDFLAGS="$LDFLAGS"
9969 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9971 /* end confdefs.h. */
9972 int foo (void) { return 0; }
9973 _ACEOF
9974 if ac_fn_c_try_link "$LINENO"; then :
9975 lt_cv_irix_exported_symbol=yes
9976 else
9977 lt_cv_irix_exported_symbol=no
9978 fi
9979 rm -f core conftest.err conftest.$ac_objext \
9980 conftest$ac_exeext conftest.$ac_ext
9981 LDFLAGS="$save_LDFLAGS"
9982 fi
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9984 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9985 if test "$lt_cv_irix_exported_symbol" = yes; then
9986 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'
9987 fi
9988 else
9989 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'
9990 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'
9991 fi
9992 archive_cmds_need_lc='no'
9993 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9994 hardcode_libdir_separator=:
9995 inherit_rpath=yes
9996 link_all_deplibs=yes
9997 ;;
9998
9999 netbsd*)
10000 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10001 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10002 else
10003 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10004 fi
10005 hardcode_libdir_flag_spec='-R$libdir'
10006 hardcode_direct=yes
10007 hardcode_shlibpath_var=no
10008 ;;
10009
10010 newsos6)
10011 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10012 hardcode_direct=yes
10013 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10014 hardcode_libdir_separator=:
10015 hardcode_shlibpath_var=no
10016 ;;
10017
10018 *nto* | *qnx*)
10019 ;;
10020
10021 openbsd*)
10022 if test -f /usr/libexec/ld.so; then
10023 hardcode_direct=yes
10024 hardcode_shlibpath_var=no
10025 hardcode_direct_absolute=yes
10026 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10027 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10028 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10029 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10030 export_dynamic_flag_spec='${wl}-E'
10031 else
10032 case $host_os in
10033 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10034 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10035 hardcode_libdir_flag_spec='-R$libdir'
10036 ;;
10037 *)
10038 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10039 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10040 ;;
10041 esac
10042 fi
10043 else
10044 ld_shlibs=no
10045 fi
10046 ;;
10047
10048 os2*)
10049 hardcode_libdir_flag_spec='-L$libdir'
10050 hardcode_minus_L=yes
10051 allow_undefined_flag=unsupported
10052 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'
10053 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10054 ;;
10055
10056 osf3*)
10057 if test "$GCC" = yes; then
10058 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10059 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'
10060 else
10061 allow_undefined_flag=' -expect_unresolved \*'
10062 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'
10063 fi
10064 archive_cmds_need_lc='no'
10065 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10066 hardcode_libdir_separator=:
10067 ;;
10068
10069 osf4* | osf5*) # as osf3* with the addition of -msym flag
10070 if test "$GCC" = yes; then
10071 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10072 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'
10073 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10074 else
10075 allow_undefined_flag=' -expect_unresolved \*'
10076 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'
10077 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~
10078 $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'
10079
10080 # Both c and cxx compiler support -rpath directly
10081 hardcode_libdir_flag_spec='-rpath $libdir'
10082 fi
10083 archive_cmds_need_lc='no'
10084 hardcode_libdir_separator=:
10085 ;;
10086
10087 solaris*)
10088 no_undefined_flag=' -z defs'
10089 if test "$GCC" = yes; then
10090 wlarc='${wl}'
10091 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10092 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10093 $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'
10094 else
10095 case `$CC -V 2>&1` in
10096 *"Compilers 5.0"*)
10097 wlarc=''
10098 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10099 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10100 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10101 ;;
10102 *)
10103 wlarc='${wl}'
10104 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10105 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10106 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10107 ;;
10108 esac
10109 fi
10110 hardcode_libdir_flag_spec='-R$libdir'
10111 hardcode_shlibpath_var=no
10112 case $host_os in
10113 solaris2.[0-5] | solaris2.[0-5].*) ;;
10114 *)
10115 # The compiler driver will combine and reorder linker options,
10116 # but understands `-z linker_flag'. GCC discards it without `$wl',
10117 # but is careful enough not to reorder.
10118 # Supported since Solaris 2.6 (maybe 2.5.1?)
10119 if test "$GCC" = yes; then
10120 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10121 else
10122 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10123 fi
10124 ;;
10125 esac
10126 link_all_deplibs=yes
10127 ;;
10128
10129 sunos4*)
10130 if test "x$host_vendor" = xsequent; then
10131 # Use $CC to link under sequent, because it throws in some extra .o
10132 # files that make .init and .fini sections work.
10133 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10134 else
10135 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10136 fi
10137 hardcode_libdir_flag_spec='-L$libdir'
10138 hardcode_direct=yes
10139 hardcode_minus_L=yes
10140 hardcode_shlibpath_var=no
10141 ;;
10142
10143 sysv4)
10144 case $host_vendor in
10145 sni)
10146 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10147 hardcode_direct=yes # is this really true???
10148 ;;
10149 siemens)
10150 ## LD is ld it makes a PLAMLIB
10151 ## CC just makes a GrossModule.
10152 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10153 reload_cmds='$CC -r -o $output$reload_objs'
10154 hardcode_direct=no
10155 ;;
10156 motorola)
10157 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10158 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10159 ;;
10160 esac
10161 runpath_var='LD_RUN_PATH'
10162 hardcode_shlibpath_var=no
10163 ;;
10164
10165 sysv4.3*)
10166 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10167 hardcode_shlibpath_var=no
10168 export_dynamic_flag_spec='-Bexport'
10169 ;;
10170
10171 sysv4*MP*)
10172 if test -d /usr/nec; then
10173 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10174 hardcode_shlibpath_var=no
10175 runpath_var=LD_RUN_PATH
10176 hardcode_runpath_var=yes
10177 ld_shlibs=yes
10178 fi
10179 ;;
10180
10181 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10182 no_undefined_flag='${wl}-z,text'
10183 archive_cmds_need_lc=no
10184 hardcode_shlibpath_var=no
10185 runpath_var='LD_RUN_PATH'
10186
10187 if test "$GCC" = yes; then
10188 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10189 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10190 else
10191 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10192 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10193 fi
10194 ;;
10195
10196 sysv5* | sco3.2v5* | sco5v6*)
10197 # Note: We can NOT use -z defs as we might desire, because we do not
10198 # link with -lc, and that would cause any symbols used from libc to
10199 # always be unresolved, which means just about no library would
10200 # ever link correctly. If we're not using GNU ld we use -z text
10201 # though, which does catch some bad symbols but isn't as heavy-handed
10202 # as -z defs.
10203 no_undefined_flag='${wl}-z,text'
10204 allow_undefined_flag='${wl}-z,nodefs'
10205 archive_cmds_need_lc=no
10206 hardcode_shlibpath_var=no
10207 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10208 hardcode_libdir_separator=':'
10209 link_all_deplibs=yes
10210 export_dynamic_flag_spec='${wl}-Bexport'
10211 runpath_var='LD_RUN_PATH'
10212
10213 if test "$GCC" = yes; then
10214 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10215 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10216 else
10217 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10218 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10219 fi
10220 ;;
10221
10222 uts4*)
10223 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10224 hardcode_libdir_flag_spec='-L$libdir'
10225 hardcode_shlibpath_var=no
10226 ;;
10227
10228 *)
10229 ld_shlibs=no
10230 ;;
10231 esac
10232
10233 if test x$host_vendor = xsni; then
10234 case $host in
10235 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10236 export_dynamic_flag_spec='${wl}-Blargedynsym'
10237 ;;
10238 esac
10239 fi
10240 fi
10241
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10243 $as_echo "$ld_shlibs" >&6; }
10244 test "$ld_shlibs" = no && can_build_shared=no
10245
10246 with_gnu_ld=$with_gnu_ld
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262 #
10263 # Do we need to explicitly link libc?
10264 #
10265 case "x$archive_cmds_need_lc" in
10266 x|xyes)
10267 # Assume -lc should be added
10268 archive_cmds_need_lc=yes
10269
10270 if test "$enable_shared" = yes && test "$GCC" = yes; then
10271 case $archive_cmds in
10272 *'~'*)
10273 # FIXME: we may have to deal with multi-command sequences.
10274 ;;
10275 '$CC '*)
10276 # Test whether the compiler implicitly links with -lc since on some
10277 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10278 # to ld, don't add -lc before -lgcc.
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10280 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10281 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10282 $as_echo_n "(cached) " >&6
10283 else
10284 $RM conftest*
10285 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10286
10287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10288 (eval $ac_compile) 2>&5
10289 ac_status=$?
10290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10291 test $ac_status = 0; } 2>conftest.err; then
10292 soname=conftest
10293 lib=conftest
10294 libobjs=conftest.$ac_objext
10295 deplibs=
10296 wl=$lt_prog_compiler_wl
10297 pic_flag=$lt_prog_compiler_pic
10298 compiler_flags=-v
10299 linker_flags=-v
10300 verstring=
10301 output_objdir=.
10302 libname=conftest
10303 lt_save_allow_undefined_flag=$allow_undefined_flag
10304 allow_undefined_flag=
10305 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10306 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10307 ac_status=$?
10308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10309 test $ac_status = 0; }
10310 then
10311 lt_cv_archive_cmds_need_lc=no
10312 else
10313 lt_cv_archive_cmds_need_lc=yes
10314 fi
10315 allow_undefined_flag=$lt_save_allow_undefined_flag
10316 else
10317 cat conftest.err 1>&5
10318 fi
10319 $RM conftest*
10320
10321 fi
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10323 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10324 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10325 ;;
10326 esac
10327 fi
10328 ;;
10329 esac
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10483 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10484
10485 if test "$GCC" = yes; then
10486 case $host_os in
10487 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10488 *) lt_awk_arg="/^libraries:/" ;;
10489 esac
10490 case $host_os in
10491 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10492 *) lt_sed_strip_eq="s,=/,/,g" ;;
10493 esac
10494 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10495 case $lt_search_path_spec in
10496 *\;*)
10497 # if the path contains ";" then we assume it to be the separator
10498 # otherwise default to the standard path separator (i.e. ":") - it is
10499 # assumed that no part of a normal pathname contains ";" but that should
10500 # okay in the real world where ";" in dirpaths is itself problematic.
10501 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10502 ;;
10503 *)
10504 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10505 ;;
10506 esac
10507 # Ok, now we have the path, separated by spaces, we can step through it
10508 # and add multilib dir if necessary.
10509 lt_tmp_lt_search_path_spec=
10510 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10511 for lt_sys_path in $lt_search_path_spec; do
10512 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10513 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10514 else
10515 test -d "$lt_sys_path" && \
10516 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10517 fi
10518 done
10519 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10520 BEGIN {RS=" "; FS="/|\n";} {
10521 lt_foo="";
10522 lt_count=0;
10523 for (lt_i = NF; lt_i > 0; lt_i--) {
10524 if ($lt_i != "" && $lt_i != ".") {
10525 if ($lt_i == "..") {
10526 lt_count++;
10527 } else {
10528 if (lt_count == 0) {
10529 lt_foo="/" $lt_i lt_foo;
10530 } else {
10531 lt_count--;
10532 }
10533 }
10534 }
10535 }
10536 if (lt_foo != "") { lt_freq[lt_foo]++; }
10537 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10538 }'`
10539 # AWK program above erroneously prepends '/' to C:/dos/paths
10540 # for these hosts.
10541 case $host_os in
10542 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10543 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10544 esac
10545 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10546 else
10547 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10548 fi
10549 library_names_spec=
10550 libname_spec='lib$name'
10551 soname_spec=
10552 shrext_cmds=".so"
10553 postinstall_cmds=
10554 postuninstall_cmds=
10555 finish_cmds=
10556 finish_eval=
10557 shlibpath_var=
10558 shlibpath_overrides_runpath=unknown
10559 version_type=none
10560 dynamic_linker="$host_os ld.so"
10561 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10562 need_lib_prefix=unknown
10563 hardcode_into_libs=no
10564
10565 # when you set need_version to no, make sure it does not cause -set_version
10566 # flags to be left without arguments
10567 need_version=unknown
10568
10569 case $host_os in
10570 aix3*)
10571 version_type=linux # correct to gnu/linux during the next big refactor
10572 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10573 shlibpath_var=LIBPATH
10574
10575 # AIX 3 has no versioning support, so we append a major version to the name.
10576 soname_spec='${libname}${release}${shared_ext}$major'
10577 ;;
10578
10579 aix[4-9]*)
10580 version_type=linux # correct to gnu/linux during the next big refactor
10581 need_lib_prefix=no
10582 need_version=no
10583 hardcode_into_libs=yes
10584 if test "$host_cpu" = ia64; then
10585 # AIX 5 supports IA64
10586 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10587 shlibpath_var=LD_LIBRARY_PATH
10588 else
10589 # With GCC up to 2.95.x, collect2 would create an import file
10590 # for dependence libraries. The import file would start with
10591 # the line `#! .'. This would cause the generated library to
10592 # depend on `.', always an invalid library. This was fixed in
10593 # development snapshots of GCC prior to 3.0.
10594 case $host_os in
10595 aix4 | aix4.[01] | aix4.[01].*)
10596 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10597 echo ' yes '
10598 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10599 :
10600 else
10601 can_build_shared=no
10602 fi
10603 ;;
10604 esac
10605 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10606 # soname into executable. Probably we can add versioning support to
10607 # collect2, so additional links can be useful in future.
10608 if test "$aix_use_runtimelinking" = yes; then
10609 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10610 # instead of lib<name>.a to let people know that these are not
10611 # typical AIX shared libraries.
10612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10613 else
10614 # We preserve .a as extension for shared libraries through AIX4.2
10615 # and later when we are not doing run time linking.
10616 library_names_spec='${libname}${release}.a $libname.a'
10617 soname_spec='${libname}${release}${shared_ext}$major'
10618 fi
10619 shlibpath_var=LIBPATH
10620 fi
10621 ;;
10622
10623 amigaos*)
10624 case $host_cpu in
10625 powerpc)
10626 # Since July 2007 AmigaOS4 officially supports .so libraries.
10627 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10629 ;;
10630 m68k)
10631 library_names_spec='$libname.ixlibrary $libname.a'
10632 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10633 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'
10634 ;;
10635 esac
10636 ;;
10637
10638 beos*)
10639 library_names_spec='${libname}${shared_ext}'
10640 dynamic_linker="$host_os ld.so"
10641 shlibpath_var=LIBRARY_PATH
10642 ;;
10643
10644 bsdi[45]*)
10645 version_type=linux # correct to gnu/linux during the next big refactor
10646 need_version=no
10647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10648 soname_spec='${libname}${release}${shared_ext}$major'
10649 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10650 shlibpath_var=LD_LIBRARY_PATH
10651 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10652 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10653 # the default ld.so.conf also contains /usr/contrib/lib and
10654 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10655 # libtool to hard-code these into programs
10656 ;;
10657
10658 cygwin* | mingw* | pw32* | cegcc*)
10659 version_type=windows
10660 shrext_cmds=".dll"
10661 need_version=no
10662 need_lib_prefix=no
10663
10664 case $GCC,$cc_basename in
10665 yes,*)
10666 # gcc
10667 library_names_spec='$libname.dll.a'
10668 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10669 postinstall_cmds='base_file=`basename \${file}`~
10670 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10671 dldir=$destdir/`dirname \$dlpath`~
10672 test -d \$dldir || mkdir -p \$dldir~
10673 $install_prog $dir/$dlname \$dldir/$dlname~
10674 chmod a+x \$dldir/$dlname~
10675 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10676 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10677 fi'
10678 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10679 dlpath=$dir/\$dldll~
10680 $RM \$dlpath'
10681 shlibpath_overrides_runpath=yes
10682
10683 case $host_os in
10684 cygwin*)
10685 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10686 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10687
10688 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10689 ;;
10690 mingw* | cegcc*)
10691 # MinGW DLLs use traditional 'lib' prefix
10692 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10693 ;;
10694 pw32*)
10695 # pw32 DLLs use 'pw' prefix rather than 'lib'
10696 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10697 ;;
10698 esac
10699 dynamic_linker='Win32 ld.exe'
10700 ;;
10701
10702 *,cl*)
10703 # Native MSVC
10704 libname_spec='$name'
10705 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10706 library_names_spec='${libname}.dll.lib'
10707
10708 case $build_os in
10709 mingw*)
10710 sys_lib_search_path_spec=
10711 lt_save_ifs=$IFS
10712 IFS=';'
10713 for lt_path in $LIB
10714 do
10715 IFS=$lt_save_ifs
10716 # Let DOS variable expansion print the short 8.3 style file name.
10717 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10718 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10719 done
10720 IFS=$lt_save_ifs
10721 # Convert to MSYS style.
10722 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10723 ;;
10724 cygwin*)
10725 # Convert to unix form, then to dos form, then back to unix form
10726 # but this time dos style (no spaces!) so that the unix form looks
10727 # like /cygdrive/c/PROGRA~1:/cygdr...
10728 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10729 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10730 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10731 ;;
10732 *)
10733 sys_lib_search_path_spec="$LIB"
10734 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10735 # It is most probably a Windows format PATH.
10736 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10737 else
10738 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10739 fi
10740 # FIXME: find the short name or the path components, as spaces are
10741 # common. (e.g. "Program Files" -> "PROGRA~1")
10742 ;;
10743 esac
10744
10745 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10746 postinstall_cmds='base_file=`basename \${file}`~
10747 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10748 dldir=$destdir/`dirname \$dlpath`~
10749 test -d \$dldir || mkdir -p \$dldir~
10750 $install_prog $dir/$dlname \$dldir/$dlname'
10751 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10752 dlpath=$dir/\$dldll~
10753 $RM \$dlpath'
10754 shlibpath_overrides_runpath=yes
10755 dynamic_linker='Win32 link.exe'
10756 ;;
10757
10758 *)
10759 # Assume MSVC wrapper
10760 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10761 dynamic_linker='Win32 ld.exe'
10762 ;;
10763 esac
10764 # FIXME: first we should search . and the directory the executable is in
10765 shlibpath_var=PATH
10766 ;;
10767
10768 darwin* | rhapsody*)
10769 dynamic_linker="$host_os dyld"
10770 version_type=darwin
10771 need_lib_prefix=no
10772 need_version=no
10773 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10774 soname_spec='${libname}${release}${major}$shared_ext'
10775 shlibpath_overrides_runpath=yes
10776 shlibpath_var=DYLD_LIBRARY_PATH
10777 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10778
10779 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10780 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10781 ;;
10782
10783 dgux*)
10784 version_type=linux # correct to gnu/linux during the next big refactor
10785 need_lib_prefix=no
10786 need_version=no
10787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10788 soname_spec='${libname}${release}${shared_ext}$major'
10789 shlibpath_var=LD_LIBRARY_PATH
10790 ;;
10791
10792 freebsd* | dragonfly*)
10793 # DragonFly does not have aout. When/if they implement a new
10794 # versioning mechanism, adjust this.
10795 if test -x /usr/bin/objformat; then
10796 objformat=`/usr/bin/objformat`
10797 else
10798 case $host_os in
10799 freebsd[23].*) objformat=aout ;;
10800 *) objformat=elf ;;
10801 esac
10802 fi
10803 version_type=freebsd-$objformat
10804 case $version_type in
10805 freebsd-elf*)
10806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10807 need_version=no
10808 need_lib_prefix=no
10809 ;;
10810 freebsd-*)
10811 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10812 need_version=yes
10813 ;;
10814 esac
10815 shlibpath_var=LD_LIBRARY_PATH
10816 case $host_os in
10817 freebsd2.*)
10818 shlibpath_overrides_runpath=yes
10819 ;;
10820 freebsd3.[01]* | freebsdelf3.[01]*)
10821 shlibpath_overrides_runpath=yes
10822 hardcode_into_libs=yes
10823 ;;
10824 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10825 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10826 shlibpath_overrides_runpath=no
10827 hardcode_into_libs=yes
10828 ;;
10829 *) # from 4.6 on, and DragonFly
10830 shlibpath_overrides_runpath=yes
10831 hardcode_into_libs=yes
10832 ;;
10833 esac
10834 ;;
10835
10836 gnu*)
10837 version_type=linux # correct to gnu/linux during the next big refactor
10838 need_lib_prefix=no
10839 need_version=no
10840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10841 soname_spec='${libname}${release}${shared_ext}$major'
10842 shlibpath_var=LD_LIBRARY_PATH
10843 shlibpath_overrides_runpath=no
10844 hardcode_into_libs=yes
10845 ;;
10846
10847 haiku*)
10848 version_type=linux # correct to gnu/linux during the next big refactor
10849 need_lib_prefix=no
10850 need_version=no
10851 dynamic_linker="$host_os runtime_loader"
10852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10853 soname_spec='${libname}${release}${shared_ext}$major'
10854 shlibpath_var=LIBRARY_PATH
10855 shlibpath_overrides_runpath=yes
10856 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10857 hardcode_into_libs=yes
10858 ;;
10859
10860 hpux9* | hpux10* | hpux11*)
10861 # Give a soname corresponding to the major version so that dld.sl refuses to
10862 # link against other versions.
10863 version_type=sunos
10864 need_lib_prefix=no
10865 need_version=no
10866 case $host_cpu in
10867 ia64*)
10868 shrext_cmds='.so'
10869 hardcode_into_libs=yes
10870 dynamic_linker="$host_os dld.so"
10871 shlibpath_var=LD_LIBRARY_PATH
10872 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10874 soname_spec='${libname}${release}${shared_ext}$major'
10875 if test "X$HPUX_IA64_MODE" = X32; then
10876 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10877 else
10878 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10879 fi
10880 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10881 ;;
10882 hppa*64*)
10883 shrext_cmds='.sl'
10884 hardcode_into_libs=yes
10885 dynamic_linker="$host_os dld.sl"
10886 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10887 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10889 soname_spec='${libname}${release}${shared_ext}$major'
10890 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10891 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10892 ;;
10893 *)
10894 shrext_cmds='.sl'
10895 dynamic_linker="$host_os dld.sl"
10896 shlibpath_var=SHLIB_PATH
10897 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10899 soname_spec='${libname}${release}${shared_ext}$major'
10900 ;;
10901 esac
10902 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10903 postinstall_cmds='chmod 555 $lib'
10904 # or fails outright, so override atomically:
10905 install_override_mode=555
10906 ;;
10907
10908 interix[3-9]*)
10909 version_type=linux # correct to gnu/linux during the next big refactor
10910 need_lib_prefix=no
10911 need_version=no
10912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10913 soname_spec='${libname}${release}${shared_ext}$major'
10914 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10915 shlibpath_var=LD_LIBRARY_PATH
10916 shlibpath_overrides_runpath=no
10917 hardcode_into_libs=yes
10918 ;;
10919
10920 irix5* | irix6* | nonstopux*)
10921 case $host_os in
10922 nonstopux*) version_type=nonstopux ;;
10923 *)
10924 if test "$lt_cv_prog_gnu_ld" = yes; then
10925 version_type=linux # correct to gnu/linux during the next big refactor
10926 else
10927 version_type=irix
10928 fi ;;
10929 esac
10930 need_lib_prefix=no
10931 need_version=no
10932 soname_spec='${libname}${release}${shared_ext}$major'
10933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10934 case $host_os in
10935 irix5* | nonstopux*)
10936 libsuff= shlibsuff=
10937 ;;
10938 *)
10939 case $LD in # libtool.m4 will add one of these switches to LD
10940 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10941 libsuff= shlibsuff= libmagic=32-bit;;
10942 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10943 libsuff=32 shlibsuff=N32 libmagic=N32;;
10944 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10945 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10946 *) libsuff= shlibsuff= libmagic=never-match;;
10947 esac
10948 ;;
10949 esac
10950 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10951 shlibpath_overrides_runpath=no
10952 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10953 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10954 hardcode_into_libs=yes
10955 ;;
10956
10957 # No shared lib support for Linux oldld, aout, or coff.
10958 linux*oldld* | linux*aout* | linux*coff*)
10959 dynamic_linker=no
10960 ;;
10961
10962 # This must be glibc/ELF.
10963 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10964 version_type=linux # correct to gnu/linux during the next big refactor
10965 need_lib_prefix=no
10966 need_version=no
10967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10968 soname_spec='${libname}${release}${shared_ext}$major'
10969 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10970 shlibpath_var=LD_LIBRARY_PATH
10971 shlibpath_overrides_runpath=no
10972
10973 # Some binutils ld are patched to set DT_RUNPATH
10974 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10975 $as_echo_n "(cached) " >&6
10976 else
10977 lt_cv_shlibpath_overrides_runpath=no
10978 save_LDFLAGS=$LDFLAGS
10979 save_libdir=$libdir
10980 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10981 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10983 /* end confdefs.h. */
10984
10985 int
10986 main ()
10987 {
10988
10989 ;
10990 return 0;
10991 }
10992 _ACEOF
10993 if ac_fn_c_try_link "$LINENO"; then :
10994 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10995 lt_cv_shlibpath_overrides_runpath=yes
10996 fi
10997 fi
10998 rm -f core conftest.err conftest.$ac_objext \
10999 conftest$ac_exeext conftest.$ac_ext
11000 LDFLAGS=$save_LDFLAGS
11001 libdir=$save_libdir
11002
11003 fi
11004
11005 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11006
11007 # This implies no fast_install, which is unacceptable.
11008 # Some rework will be needed to allow for fast_install
11009 # before this can be enabled.
11010 hardcode_into_libs=yes
11011
11012 # Append ld.so.conf contents to the search path
11013 if test -f /etc/ld.so.conf; then
11014 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' ' '`
11015 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11016 fi
11017
11018 # We used to test for /lib/ld.so.1 and disable shared libraries on
11019 # powerpc, because MkLinux only supported shared libraries with the
11020 # GNU dynamic linker. Since this was broken with cross compilers,
11021 # most powerpc-linux boxes support dynamic linking these days and
11022 # people can always --disable-shared, the test was removed, and we
11023 # assume the GNU/Linux dynamic linker is in use.
11024 dynamic_linker='GNU/Linux ld.so'
11025 ;;
11026
11027 netbsd*)
11028 version_type=sunos
11029 need_lib_prefix=no
11030 need_version=no
11031 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11033 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11034 dynamic_linker='NetBSD (a.out) ld.so'
11035 else
11036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11037 soname_spec='${libname}${release}${shared_ext}$major'
11038 dynamic_linker='NetBSD ld.elf_so'
11039 fi
11040 shlibpath_var=LD_LIBRARY_PATH
11041 shlibpath_overrides_runpath=yes
11042 hardcode_into_libs=yes
11043 ;;
11044
11045 newsos6)
11046 version_type=linux # correct to gnu/linux during the next big refactor
11047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11048 shlibpath_var=LD_LIBRARY_PATH
11049 shlibpath_overrides_runpath=yes
11050 ;;
11051
11052 *nto* | *qnx*)
11053 version_type=qnx
11054 need_lib_prefix=no
11055 need_version=no
11056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11057 soname_spec='${libname}${release}${shared_ext}$major'
11058 shlibpath_var=LD_LIBRARY_PATH
11059 shlibpath_overrides_runpath=no
11060 hardcode_into_libs=yes
11061 dynamic_linker='ldqnx.so'
11062 ;;
11063
11064 openbsd*)
11065 version_type=sunos
11066 sys_lib_dlsearch_path_spec="/usr/lib"
11067 need_lib_prefix=no
11068 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11069 case $host_os in
11070 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11071 *) need_version=no ;;
11072 esac
11073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11074 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11075 shlibpath_var=LD_LIBRARY_PATH
11076 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11077 case $host_os in
11078 openbsd2.[89] | openbsd2.[89].*)
11079 shlibpath_overrides_runpath=no
11080 ;;
11081 *)
11082 shlibpath_overrides_runpath=yes
11083 ;;
11084 esac
11085 else
11086 shlibpath_overrides_runpath=yes
11087 fi
11088 ;;
11089
11090 os2*)
11091 libname_spec='$name'
11092 shrext_cmds=".dll"
11093 need_lib_prefix=no
11094 library_names_spec='$libname${shared_ext} $libname.a'
11095 dynamic_linker='OS/2 ld.exe'
11096 shlibpath_var=LIBPATH
11097 ;;
11098
11099 osf3* | osf4* | osf5*)
11100 version_type=osf
11101 need_lib_prefix=no
11102 need_version=no
11103 soname_spec='${libname}${release}${shared_ext}$major'
11104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11105 shlibpath_var=LD_LIBRARY_PATH
11106 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11107 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11108 ;;
11109
11110 rdos*)
11111 dynamic_linker=no
11112 ;;
11113
11114 solaris*)
11115 version_type=linux # correct to gnu/linux during the next big refactor
11116 need_lib_prefix=no
11117 need_version=no
11118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11119 soname_spec='${libname}${release}${shared_ext}$major'
11120 shlibpath_var=LD_LIBRARY_PATH
11121 shlibpath_overrides_runpath=yes
11122 hardcode_into_libs=yes
11123 # ldd complains unless libraries are executable
11124 postinstall_cmds='chmod +x $lib'
11125 ;;
11126
11127 sunos4*)
11128 version_type=sunos
11129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11130 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11131 shlibpath_var=LD_LIBRARY_PATH
11132 shlibpath_overrides_runpath=yes
11133 if test "$with_gnu_ld" = yes; then
11134 need_lib_prefix=no
11135 fi
11136 need_version=yes
11137 ;;
11138
11139 sysv4 | sysv4.3*)
11140 version_type=linux # correct to gnu/linux during the next big refactor
11141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11142 soname_spec='${libname}${release}${shared_ext}$major'
11143 shlibpath_var=LD_LIBRARY_PATH
11144 case $host_vendor in
11145 sni)
11146 shlibpath_overrides_runpath=no
11147 need_lib_prefix=no
11148 runpath_var=LD_RUN_PATH
11149 ;;
11150 siemens)
11151 need_lib_prefix=no
11152 ;;
11153 motorola)
11154 need_lib_prefix=no
11155 need_version=no
11156 shlibpath_overrides_runpath=no
11157 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11158 ;;
11159 esac
11160 ;;
11161
11162 sysv4*MP*)
11163 if test -d /usr/nec ;then
11164 version_type=linux # correct to gnu/linux during the next big refactor
11165 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11166 soname_spec='$libname${shared_ext}.$major'
11167 shlibpath_var=LD_LIBRARY_PATH
11168 fi
11169 ;;
11170
11171 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11172 version_type=freebsd-elf
11173 need_lib_prefix=no
11174 need_version=no
11175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11176 soname_spec='${libname}${release}${shared_ext}$major'
11177 shlibpath_var=LD_LIBRARY_PATH
11178 shlibpath_overrides_runpath=yes
11179 hardcode_into_libs=yes
11180 if test "$with_gnu_ld" = yes; then
11181 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11182 else
11183 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11184 case $host_os in
11185 sco3.2v5*)
11186 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11187 ;;
11188 esac
11189 fi
11190 sys_lib_dlsearch_path_spec='/usr/lib'
11191 ;;
11192
11193 tpf*)
11194 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11195 version_type=linux # correct to gnu/linux during the next big refactor
11196 need_lib_prefix=no
11197 need_version=no
11198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11199 shlibpath_var=LD_LIBRARY_PATH
11200 shlibpath_overrides_runpath=no
11201 hardcode_into_libs=yes
11202 ;;
11203
11204 uts4*)
11205 version_type=linux # correct to gnu/linux during the next big refactor
11206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11207 soname_spec='${libname}${release}${shared_ext}$major'
11208 shlibpath_var=LD_LIBRARY_PATH
11209 ;;
11210
11211 *)
11212 dynamic_linker=no
11213 ;;
11214 esac
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11216 $as_echo "$dynamic_linker" >&6; }
11217 test "$dynamic_linker" = no && can_build_shared=no
11218
11219 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11220 if test "$GCC" = yes; then
11221 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11222 fi
11223
11224 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11225 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11226 fi
11227 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11228 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11229 fi
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11323 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11324 hardcode_action=
11325 if test -n "$hardcode_libdir_flag_spec" ||
11326 test -n "$runpath_var" ||
11327 test "X$hardcode_automatic" = "Xyes" ; then
11328
11329 # We can hardcode non-existent directories.
11330 if test "$hardcode_direct" != no &&
11331 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11332 # have to relink, otherwise we might link with an installed library
11333 # when we should be linking with a yet-to-be-installed one
11334 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11335 test "$hardcode_minus_L" != no; then
11336 # Linking always hardcodes the temporary library directory.
11337 hardcode_action=relink
11338 else
11339 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11340 hardcode_action=immediate
11341 fi
11342 else
11343 # We cannot hardcode anything, or else we can only hardcode existing
11344 # directories.
11345 hardcode_action=unsupported
11346 fi
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11348 $as_echo "$hardcode_action" >&6; }
11349
11350 if test "$hardcode_action" = relink ||
11351 test "$inherit_rpath" = yes; then
11352 # Fast installation is not supported
11353 enable_fast_install=no
11354 elif test "$shlibpath_overrides_runpath" = yes ||
11355 test "$enable_shared" = no; then
11356 # Fast installation is not necessary
11357 enable_fast_install=needless
11358 fi
11359
11360
11361
11362
11363
11364
11365 if test "x$enable_dlopen" != xyes; then
11366 enable_dlopen=unknown
11367 enable_dlopen_self=unknown
11368 enable_dlopen_self_static=unknown
11369 else
11370 lt_cv_dlopen=no
11371 lt_cv_dlopen_libs=
11372
11373 case $host_os in
11374 beos*)
11375 lt_cv_dlopen="load_add_on"
11376 lt_cv_dlopen_libs=
11377 lt_cv_dlopen_self=yes
11378 ;;
11379
11380 mingw* | pw32* | cegcc*)
11381 lt_cv_dlopen="LoadLibrary"
11382 lt_cv_dlopen_libs=
11383 ;;
11384
11385 cygwin*)
11386 lt_cv_dlopen="dlopen"
11387 lt_cv_dlopen_libs=
11388 ;;
11389
11390 darwin*)
11391 # if libdl is installed we need to link against it
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11393 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11394 if ${ac_cv_lib_dl_dlopen+:} false; then :
11395 $as_echo_n "(cached) " >&6
11396 else
11397 ac_check_lib_save_LIBS=$LIBS
11398 LIBS="-ldl $LIBS"
11399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11400 /* end confdefs.h. */
11401
11402 /* Override any GCC internal prototype to avoid an error.
11403 Use char because int might match the return type of a GCC
11404 builtin and then its argument prototype would still apply. */
11405 #ifdef __cplusplus
11406 extern "C"
11407 #endif
11408 char dlopen ();
11409 int
11410 main ()
11411 {
11412 return dlopen ();
11413 ;
11414 return 0;
11415 }
11416 _ACEOF
11417 if ac_fn_c_try_link "$LINENO"; then :
11418 ac_cv_lib_dl_dlopen=yes
11419 else
11420 ac_cv_lib_dl_dlopen=no
11421 fi
11422 rm -f core conftest.err conftest.$ac_objext \
11423 conftest$ac_exeext conftest.$ac_ext
11424 LIBS=$ac_check_lib_save_LIBS
11425 fi
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11427 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11428 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11429 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11430 else
11431
11432 lt_cv_dlopen="dyld"
11433 lt_cv_dlopen_libs=
11434 lt_cv_dlopen_self=yes
11435
11436 fi
11437
11438 ;;
11439
11440 *)
11441 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11442 if test "x$ac_cv_func_shl_load" = xyes; then :
11443 lt_cv_dlopen="shl_load"
11444 else
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11446 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11447 if ${ac_cv_lib_dld_shl_load+:} false; then :
11448 $as_echo_n "(cached) " >&6
11449 else
11450 ac_check_lib_save_LIBS=$LIBS
11451 LIBS="-ldld $LIBS"
11452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11453 /* end confdefs.h. */
11454
11455 /* Override any GCC internal prototype to avoid an error.
11456 Use char because int might match the return type of a GCC
11457 builtin and then its argument prototype would still apply. */
11458 #ifdef __cplusplus
11459 extern "C"
11460 #endif
11461 char shl_load ();
11462 int
11463 main ()
11464 {
11465 return shl_load ();
11466 ;
11467 return 0;
11468 }
11469 _ACEOF
11470 if ac_fn_c_try_link "$LINENO"; then :
11471 ac_cv_lib_dld_shl_load=yes
11472 else
11473 ac_cv_lib_dld_shl_load=no
11474 fi
11475 rm -f core conftest.err conftest.$ac_objext \
11476 conftest$ac_exeext conftest.$ac_ext
11477 LIBS=$ac_check_lib_save_LIBS
11478 fi
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11480 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11481 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11482 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11483 else
11484 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11485 if test "x$ac_cv_func_dlopen" = xyes; then :
11486 lt_cv_dlopen="dlopen"
11487 else
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11489 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11490 if ${ac_cv_lib_dl_dlopen+:} false; then :
11491 $as_echo_n "(cached) " >&6
11492 else
11493 ac_check_lib_save_LIBS=$LIBS
11494 LIBS="-ldl $LIBS"
11495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11496 /* end confdefs.h. */
11497
11498 /* Override any GCC internal prototype to avoid an error.
11499 Use char because int might match the return type of a GCC
11500 builtin and then its argument prototype would still apply. */
11501 #ifdef __cplusplus
11502 extern "C"
11503 #endif
11504 char dlopen ();
11505 int
11506 main ()
11507 {
11508 return dlopen ();
11509 ;
11510 return 0;
11511 }
11512 _ACEOF
11513 if ac_fn_c_try_link "$LINENO"; then :
11514 ac_cv_lib_dl_dlopen=yes
11515 else
11516 ac_cv_lib_dl_dlopen=no
11517 fi
11518 rm -f core conftest.err conftest.$ac_objext \
11519 conftest$ac_exeext conftest.$ac_ext
11520 LIBS=$ac_check_lib_save_LIBS
11521 fi
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11523 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11524 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11525 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11526 else
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11528 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11529 if ${ac_cv_lib_svld_dlopen+:} false; then :
11530 $as_echo_n "(cached) " >&6
11531 else
11532 ac_check_lib_save_LIBS=$LIBS
11533 LIBS="-lsvld $LIBS"
11534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11535 /* end confdefs.h. */
11536
11537 /* Override any GCC internal prototype to avoid an error.
11538 Use char because int might match the return type of a GCC
11539 builtin and then its argument prototype would still apply. */
11540 #ifdef __cplusplus
11541 extern "C"
11542 #endif
11543 char dlopen ();
11544 int
11545 main ()
11546 {
11547 return dlopen ();
11548 ;
11549 return 0;
11550 }
11551 _ACEOF
11552 if ac_fn_c_try_link "$LINENO"; then :
11553 ac_cv_lib_svld_dlopen=yes
11554 else
11555 ac_cv_lib_svld_dlopen=no
11556 fi
11557 rm -f core conftest.err conftest.$ac_objext \
11558 conftest$ac_exeext conftest.$ac_ext
11559 LIBS=$ac_check_lib_save_LIBS
11560 fi
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11562 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11563 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11564 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11565 else
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11567 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11568 if ${ac_cv_lib_dld_dld_link+:} false; then :
11569 $as_echo_n "(cached) " >&6
11570 else
11571 ac_check_lib_save_LIBS=$LIBS
11572 LIBS="-ldld $LIBS"
11573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11574 /* end confdefs.h. */
11575
11576 /* Override any GCC internal prototype to avoid an error.
11577 Use char because int might match the return type of a GCC
11578 builtin and then its argument prototype would still apply. */
11579 #ifdef __cplusplus
11580 extern "C"
11581 #endif
11582 char dld_link ();
11583 int
11584 main ()
11585 {
11586 return dld_link ();
11587 ;
11588 return 0;
11589 }
11590 _ACEOF
11591 if ac_fn_c_try_link "$LINENO"; then :
11592 ac_cv_lib_dld_dld_link=yes
11593 else
11594 ac_cv_lib_dld_dld_link=no
11595 fi
11596 rm -f core conftest.err conftest.$ac_objext \
11597 conftest$ac_exeext conftest.$ac_ext
11598 LIBS=$ac_check_lib_save_LIBS
11599 fi
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11601 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11602 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11603 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11604 fi
11605
11606
11607 fi
11608
11609
11610 fi
11611
11612
11613 fi
11614
11615
11616 fi
11617
11618
11619 fi
11620
11621 ;;
11622 esac
11623
11624 if test "x$lt_cv_dlopen" != xno; then
11625 enable_dlopen=yes
11626 else
11627 enable_dlopen=no
11628 fi
11629
11630 case $lt_cv_dlopen in
11631 dlopen)
11632 save_CPPFLAGS="$CPPFLAGS"
11633 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11634
11635 save_LDFLAGS="$LDFLAGS"
11636 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11637
11638 save_LIBS="$LIBS"
11639 LIBS="$lt_cv_dlopen_libs $LIBS"
11640
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11642 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11643 if ${lt_cv_dlopen_self+:} false; then :
11644 $as_echo_n "(cached) " >&6
11645 else
11646 if test "$cross_compiling" = yes; then :
11647 lt_cv_dlopen_self=cross
11648 else
11649 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11650 lt_status=$lt_dlunknown
11651 cat > conftest.$ac_ext <<_LT_EOF
11652 #line $LINENO "configure"
11653 #include "confdefs.h"
11654
11655 #if HAVE_DLFCN_H
11656 #include <dlfcn.h>
11657 #endif
11658
11659 #include <stdio.h>
11660
11661 #ifdef RTLD_GLOBAL
11662 # define LT_DLGLOBAL RTLD_GLOBAL
11663 #else
11664 # ifdef DL_GLOBAL
11665 # define LT_DLGLOBAL DL_GLOBAL
11666 # else
11667 # define LT_DLGLOBAL 0
11668 # endif
11669 #endif
11670
11671 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11672 find out it does not work in some platform. */
11673 #ifndef LT_DLLAZY_OR_NOW
11674 # ifdef RTLD_LAZY
11675 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11676 # else
11677 # ifdef DL_LAZY
11678 # define LT_DLLAZY_OR_NOW DL_LAZY
11679 # else
11680 # ifdef RTLD_NOW
11681 # define LT_DLLAZY_OR_NOW RTLD_NOW
11682 # else
11683 # ifdef DL_NOW
11684 # define LT_DLLAZY_OR_NOW DL_NOW
11685 # else
11686 # define LT_DLLAZY_OR_NOW 0
11687 # endif
11688 # endif
11689 # endif
11690 # endif
11691 #endif
11692
11693 /* When -fvisbility=hidden is used, assume the code has been annotated
11694 correspondingly for the symbols needed. */
11695 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11696 int fnord () __attribute__((visibility("default")));
11697 #endif
11698
11699 int fnord () { return 42; }
11700 int main ()
11701 {
11702 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11703 int status = $lt_dlunknown;
11704
11705 if (self)
11706 {
11707 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11708 else
11709 {
11710 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11711 else puts (dlerror ());
11712 }
11713 /* dlclose (self); */
11714 }
11715 else
11716 puts (dlerror ());
11717
11718 return status;
11719 }
11720 _LT_EOF
11721 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11722 (eval $ac_link) 2>&5
11723 ac_status=$?
11724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11725 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11726 (./conftest; exit; ) >&5 2>/dev/null
11727 lt_status=$?
11728 case x$lt_status in
11729 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11730 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11731 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11732 esac
11733 else :
11734 # compilation failed
11735 lt_cv_dlopen_self=no
11736 fi
11737 fi
11738 rm -fr conftest*
11739
11740
11741 fi
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11743 $as_echo "$lt_cv_dlopen_self" >&6; }
11744
11745 if test "x$lt_cv_dlopen_self" = xyes; then
11746 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11748 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11749 if ${lt_cv_dlopen_self_static+:} false; then :
11750 $as_echo_n "(cached) " >&6
11751 else
11752 if test "$cross_compiling" = yes; then :
11753 lt_cv_dlopen_self_static=cross
11754 else
11755 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11756 lt_status=$lt_dlunknown
11757 cat > conftest.$ac_ext <<_LT_EOF
11758 #line $LINENO "configure"
11759 #include "confdefs.h"
11760
11761 #if HAVE_DLFCN_H
11762 #include <dlfcn.h>
11763 #endif
11764
11765 #include <stdio.h>
11766
11767 #ifdef RTLD_GLOBAL
11768 # define LT_DLGLOBAL RTLD_GLOBAL
11769 #else
11770 # ifdef DL_GLOBAL
11771 # define LT_DLGLOBAL DL_GLOBAL
11772 # else
11773 # define LT_DLGLOBAL 0
11774 # endif
11775 #endif
11776
11777 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11778 find out it does not work in some platform. */
11779 #ifndef LT_DLLAZY_OR_NOW
11780 # ifdef RTLD_LAZY
11781 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11782 # else
11783 # ifdef DL_LAZY
11784 # define LT_DLLAZY_OR_NOW DL_LAZY
11785 # else
11786 # ifdef RTLD_NOW
11787 # define LT_DLLAZY_OR_NOW RTLD_NOW
11788 # else
11789 # ifdef DL_NOW
11790 # define LT_DLLAZY_OR_NOW DL_NOW
11791 # else
11792 # define LT_DLLAZY_OR_NOW 0
11793 # endif
11794 # endif
11795 # endif
11796 # endif
11797 #endif
11798
11799 /* When -fvisbility=hidden is used, assume the code has been annotated
11800 correspondingly for the symbols needed. */
11801 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11802 int fnord () __attribute__((visibility("default")));
11803 #endif
11804
11805 int fnord () { return 42; }
11806 int main ()
11807 {
11808 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11809 int status = $lt_dlunknown;
11810
11811 if (self)
11812 {
11813 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11814 else
11815 {
11816 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11817 else puts (dlerror ());
11818 }
11819 /* dlclose (self); */
11820 }
11821 else
11822 puts (dlerror ());
11823
11824 return status;
11825 }
11826 _LT_EOF
11827 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11828 (eval $ac_link) 2>&5
11829 ac_status=$?
11830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11831 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11832 (./conftest; exit; ) >&5 2>/dev/null
11833 lt_status=$?
11834 case x$lt_status in
11835 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11836 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11837 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11838 esac
11839 else :
11840 # compilation failed
11841 lt_cv_dlopen_self_static=no
11842 fi
11843 fi
11844 rm -fr conftest*
11845
11846
11847 fi
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11849 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11850 fi
11851
11852 CPPFLAGS="$save_CPPFLAGS"
11853 LDFLAGS="$save_LDFLAGS"
11854 LIBS="$save_LIBS"
11855 ;;
11856 esac
11857
11858 case $lt_cv_dlopen_self in
11859 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11860 *) enable_dlopen_self=unknown ;;
11861 esac
11862
11863 case $lt_cv_dlopen_self_static in
11864 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11865 *) enable_dlopen_self_static=unknown ;;
11866 esac
11867 fi
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885 striplib=
11886 old_striplib=
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11888 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11889 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11890 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11891 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11893 $as_echo "yes" >&6; }
11894 else
11895 # FIXME - insert some real tests, host_os isn't really good enough
11896 case $host_os in
11897 darwin*)
11898 if test -n "$STRIP" ; then
11899 striplib="$STRIP -x"
11900 old_striplib="$STRIP -S"
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11902 $as_echo "yes" >&6; }
11903 else
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11905 $as_echo "no" >&6; }
11906 fi
11907 ;;
11908 *)
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11910 $as_echo "no" >&6; }
11911 ;;
11912 esac
11913 fi
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926 # Report which library types will actually be built
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11928 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11930 $as_echo "$can_build_shared" >&6; }
11931
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11933 $as_echo_n "checking whether to build shared libraries... " >&6; }
11934 test "$can_build_shared" = "no" && enable_shared=no
11935
11936 # On AIX, shared libraries and static libraries use the same namespace, and
11937 # are all built from PIC.
11938 case $host_os in
11939 aix3*)
11940 test "$enable_shared" = yes && enable_static=no
11941 if test -n "$RANLIB"; then
11942 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11943 postinstall_cmds='$RANLIB $lib'
11944 fi
11945 ;;
11946
11947 aix[4-9]*)
11948 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11949 test "$enable_shared" = yes && enable_static=no
11950 fi
11951 ;;
11952 esac
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11954 $as_echo "$enable_shared" >&6; }
11955
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11957 $as_echo_n "checking whether to build static libraries... " >&6; }
11958 # Make sure either enable_shared or enable_static is yes.
11959 test "$enable_shared" = yes || enable_static=yes
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11961 $as_echo "$enable_static" >&6; }
11962
11963
11964
11965
11966 fi
11967 ac_ext=c
11968 ac_cpp='$CPP $CPPFLAGS'
11969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11972
11973 CC="$lt_save_CC"
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989 ac_config_commands="$ac_config_commands libtool"
11990
11991
11992
11993
11994 # Only expand once:
11995
11996
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
11998 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
11999 if ${libltdl_cv_shlibext+:} false; then :
12000 $as_echo_n "(cached) " >&6
12001 else
12002
12003 module=yes
12004 eval libltdl_cv_shlibext=$shrext_cmds
12005 module=no
12006 eval libltdl_cv_shrext=$shrext_cmds
12007
12008 fi
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
12010 $as_echo "$libltdl_cv_shlibext" >&6; }
12011 if test -n "$libltdl_cv_shlibext"; then
12012
12013 cat >>confdefs.h <<_ACEOF
12014 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
12015 _ACEOF
12016
12017 fi
12018 if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
12019
12020 cat >>confdefs.h <<_ACEOF
12021 #define LT_SHARED_EXT "$libltdl_cv_shrext"
12022 _ACEOF
12023
12024 fi
12025
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
12027 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
12028 if ${lt_cv_module_path_var+:} false; then :
12029 $as_echo_n "(cached) " >&6
12030 else
12031 lt_cv_module_path_var="$shlibpath_var"
12032 fi
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
12034 $as_echo "$lt_cv_module_path_var" >&6; }
12035 if test -n "$lt_cv_module_path_var"; then
12036
12037 cat >>confdefs.h <<_ACEOF
12038 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
12039 _ACEOF
12040
12041 fi
12042
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
12044 $as_echo_n "checking for the default library search path... " >&6; }
12045 if ${lt_cv_sys_dlsearch_path+:} false; then :
12046 $as_echo_n "(cached) " >&6
12047 else
12048 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
12049 fi
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
12051 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
12052 if test -n "$lt_cv_sys_dlsearch_path"; then
12053 sys_dlsearch_path=
12054 for dir in $lt_cv_sys_dlsearch_path; do
12055 if test -z "$sys_dlsearch_path"; then
12056 sys_dlsearch_path="$dir"
12057 else
12058 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
12059 fi
12060 done
12061
12062 cat >>confdefs.h <<_ACEOF
12063 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
12064 _ACEOF
12065
12066 fi
12067
12068
12069 LT_DLLOADERS=
12070
12071
12072 ac_ext=c
12073 ac_cpp='$CPP $CPPFLAGS'
12074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12077
12078
12079 LIBADD_DLOPEN=
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12081 $as_echo_n "checking for library containing dlopen... " >&6; }
12082 if ${ac_cv_search_dlopen+:} false; then :
12083 $as_echo_n "(cached) " >&6
12084 else
12085 ac_func_search_save_LIBS=$LIBS
12086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12087 /* end confdefs.h. */
12088
12089 /* Override any GCC internal prototype to avoid an error.
12090 Use char because int might match the return type of a GCC
12091 builtin and then its argument prototype would still apply. */
12092 #ifdef __cplusplus
12093 extern "C"
12094 #endif
12095 char dlopen ();
12096 int
12097 main ()
12098 {
12099 return dlopen ();
12100 ;
12101 return 0;
12102 }
12103 _ACEOF
12104 for ac_lib in '' dl; do
12105 if test -z "$ac_lib"; then
12106 ac_res="none required"
12107 else
12108 ac_res=-l$ac_lib
12109 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12110 fi
12111 if ac_fn_c_try_link "$LINENO"; then :
12112 ac_cv_search_dlopen=$ac_res
12113 fi
12114 rm -f core conftest.err conftest.$ac_objext \
12115 conftest$ac_exeext
12116 if ${ac_cv_search_dlopen+:} false; then :
12117 break
12118 fi
12119 done
12120 if ${ac_cv_search_dlopen+:} false; then :
12121
12122 else
12123 ac_cv_search_dlopen=no
12124 fi
12125 rm conftest.$ac_ext
12126 LIBS=$ac_func_search_save_LIBS
12127 fi
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12129 $as_echo "$ac_cv_search_dlopen" >&6; }
12130 ac_res=$ac_cv_search_dlopen
12131 if test "$ac_res" != no; then :
12132 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12133
12134 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12135
12136 if test "$ac_cv_search_dlopen" != "none required" ; then
12137 LIBADD_DLOPEN="-ldl"
12138 fi
12139 libltdl_cv_lib_dl_dlopen="yes"
12140 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12141 else
12142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12143 /* end confdefs.h. */
12144 #if HAVE_DLFCN_H
12145 # include <dlfcn.h>
12146 #endif
12147
12148 int
12149 main ()
12150 {
12151 dlopen(0, 0);
12152 ;
12153 return 0;
12154 }
12155 _ACEOF
12156 if ac_fn_c_try_link "$LINENO"; then :
12157
12158 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12159
12160 libltdl_cv_func_dlopen="yes"
12161 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12162 else
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12164 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12165 if ${ac_cv_lib_svld_dlopen+:} false; then :
12166 $as_echo_n "(cached) " >&6
12167 else
12168 ac_check_lib_save_LIBS=$LIBS
12169 LIBS="-lsvld $LIBS"
12170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12171 /* end confdefs.h. */
12172
12173 /* Override any GCC internal prototype to avoid an error.
12174 Use char because int might match the return type of a GCC
12175 builtin and then its argument prototype would still apply. */
12176 #ifdef __cplusplus
12177 extern "C"
12178 #endif
12179 char dlopen ();
12180 int
12181 main ()
12182 {
12183 return dlopen ();
12184 ;
12185 return 0;
12186 }
12187 _ACEOF
12188 if ac_fn_c_try_link "$LINENO"; then :
12189 ac_cv_lib_svld_dlopen=yes
12190 else
12191 ac_cv_lib_svld_dlopen=no
12192 fi
12193 rm -f core conftest.err conftest.$ac_objext \
12194 conftest$ac_exeext conftest.$ac_ext
12195 LIBS=$ac_check_lib_save_LIBS
12196 fi
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12198 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12199 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12200
12201 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12202
12203 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
12204 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12205 fi
12206
12207 fi
12208 rm -f core conftest.err conftest.$ac_objext \
12209 conftest$ac_exeext conftest.$ac_ext
12210 fi
12211
12212 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
12213 then
12214 lt_save_LIBS="$LIBS"
12215 LIBS="$LIBS $LIBADD_DLOPEN"
12216 for ac_func in dlerror
12217 do :
12218 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
12219 if test "x$ac_cv_func_dlerror" = xyes; then :
12220 cat >>confdefs.h <<_ACEOF
12221 #define HAVE_DLERROR 1
12222 _ACEOF
12223
12224 fi
12225 done
12226
12227 LIBS="$lt_save_LIBS"
12228 fi
12229
12230
12231 LIBADD_SHL_LOAD=
12232 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12233 if test "x$ac_cv_func_shl_load" = xyes; then :
12234
12235 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12236
12237 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12238 else
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12240 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12241 if ${ac_cv_lib_dld_shl_load+:} false; then :
12242 $as_echo_n "(cached) " >&6
12243 else
12244 ac_check_lib_save_LIBS=$LIBS
12245 LIBS="-ldld $LIBS"
12246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12247 /* end confdefs.h. */
12248
12249 /* Override any GCC internal prototype to avoid an error.
12250 Use char because int might match the return type of a GCC
12251 builtin and then its argument prototype would still apply. */
12252 #ifdef __cplusplus
12253 extern "C"
12254 #endif
12255 char shl_load ();
12256 int
12257 main ()
12258 {
12259 return shl_load ();
12260 ;
12261 return 0;
12262 }
12263 _ACEOF
12264 if ac_fn_c_try_link "$LINENO"; then :
12265 ac_cv_lib_dld_shl_load=yes
12266 else
12267 ac_cv_lib_dld_shl_load=no
12268 fi
12269 rm -f core conftest.err conftest.$ac_objext \
12270 conftest$ac_exeext conftest.$ac_ext
12271 LIBS=$ac_check_lib_save_LIBS
12272 fi
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12274 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12275 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12276
12277 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12278
12279 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12280 LIBADD_SHL_LOAD="-ldld"
12281 fi
12282
12283 fi
12284
12285
12286
12287 case $host_os in
12288 darwin[1567].*)
12289 # We only want this for pre-Mac OS X 10.4.
12290 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
12291 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
12292
12293 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
12294
12295 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
12296 fi
12297
12298 ;;
12299 beos*)
12300 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
12301 ;;
12302 cygwin* | mingw* | os2* | pw32*)
12303 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
12304 "
12305 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
12306 ac_have_decl=1
12307 else
12308 ac_have_decl=0
12309 fi
12310
12311 cat >>confdefs.h <<_ACEOF
12312 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
12313 _ACEOF
12314
12315 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
12316 ;;
12317 esac
12318
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12320 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12321 if ${ac_cv_lib_dld_dld_link+:} false; then :
12322 $as_echo_n "(cached) " >&6
12323 else
12324 ac_check_lib_save_LIBS=$LIBS
12325 LIBS="-ldld $LIBS"
12326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12327 /* end confdefs.h. */
12328
12329 /* Override any GCC internal prototype to avoid an error.
12330 Use char because int might match the return type of a GCC
12331 builtin and then its argument prototype would still apply. */
12332 #ifdef __cplusplus
12333 extern "C"
12334 #endif
12335 char dld_link ();
12336 int
12337 main ()
12338 {
12339 return dld_link ();
12340 ;
12341 return 0;
12342 }
12343 _ACEOF
12344 if ac_fn_c_try_link "$LINENO"; then :
12345 ac_cv_lib_dld_dld_link=yes
12346 else
12347 ac_cv_lib_dld_dld_link=no
12348 fi
12349 rm -f core conftest.err conftest.$ac_objext \
12350 conftest$ac_exeext conftest.$ac_ext
12351 LIBS=$ac_check_lib_save_LIBS
12352 fi
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12354 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12355 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12356
12357 $as_echo "#define HAVE_DLD 1" >>confdefs.h
12358
12359 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
12360 fi
12361
12362
12363
12364
12365 LT_DLPREOPEN=
12366 if test -n "$LT_DLLOADERS"
12367 then
12368 for lt_loader in $LT_DLLOADERS; do
12369 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
12370 done
12371
12372 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
12373
12374 fi
12375
12376
12377 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
12378
12379
12380 ac_ext=c
12381 ac_cpp='$CPP $CPPFLAGS'
12382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12385
12386
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
12388 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
12389 if ${lt_cv_sys_symbol_underscore+:} false; then :
12390 $as_echo_n "(cached) " >&6
12391 else
12392 lt_cv_sys_symbol_underscore=no
12393 cat > conftest.$ac_ext <<_LT_EOF
12394 void nm_test_func(){}
12395 int main(){nm_test_func;return 0;}
12396 _LT_EOF
12397 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12398 (eval $ac_compile) 2>&5
12399 ac_status=$?
12400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12401 test $ac_status = 0; }; then
12402 # Now try to grab the symbols.
12403 ac_nlist=conftest.nm
12404 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
12405 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
12406 ac_status=$?
12407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12408 test $ac_status = 0; } && test -s "$ac_nlist"; then
12409 # See whether the symbols have a leading underscore.
12410 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
12411 lt_cv_sys_symbol_underscore=yes
12412 else
12413 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
12414 :
12415 else
12416 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
12417 fi
12418 fi
12419 else
12420 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
12421 fi
12422 else
12423 echo "configure: failed program was:" >&5
12424 cat conftest.c >&5
12425 fi
12426 rm -rf conftest*
12427
12428 fi
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
12430 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
12431 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
12432
12433
12434 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
12435 if test x"$libltdl_cv_func_dlopen" = xyes ||
12436 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12438 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
12439 if ${libltdl_cv_need_uscore+:} false; then :
12440 $as_echo_n "(cached) " >&6
12441 else
12442 libltdl_cv_need_uscore=unknown
12443 save_LIBS="$LIBS"
12444 LIBS="$LIBS $LIBADD_DLOPEN"
12445 if test "$cross_compiling" = yes; then :
12446 libltdl_cv_need_uscore=cross
12447 else
12448 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12449 lt_status=$lt_dlunknown
12450 cat > conftest.$ac_ext <<_LT_EOF
12451 #line $LINENO "configure"
12452 #include "confdefs.h"
12453
12454 #if HAVE_DLFCN_H
12455 #include <dlfcn.h>
12456 #endif
12457
12458 #include <stdio.h>
12459
12460 #ifdef RTLD_GLOBAL
12461 # define LT_DLGLOBAL RTLD_GLOBAL
12462 #else
12463 # ifdef DL_GLOBAL
12464 # define LT_DLGLOBAL DL_GLOBAL
12465 # else
12466 # define LT_DLGLOBAL 0
12467 # endif
12468 #endif
12469
12470 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12471 find out it does not work in some platform. */
12472 #ifndef LT_DLLAZY_OR_NOW
12473 # ifdef RTLD_LAZY
12474 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12475 # else
12476 # ifdef DL_LAZY
12477 # define LT_DLLAZY_OR_NOW DL_LAZY
12478 # else
12479 # ifdef RTLD_NOW
12480 # define LT_DLLAZY_OR_NOW RTLD_NOW
12481 # else
12482 # ifdef DL_NOW
12483 # define LT_DLLAZY_OR_NOW DL_NOW
12484 # else
12485 # define LT_DLLAZY_OR_NOW 0
12486 # endif
12487 # endif
12488 # endif
12489 # endif
12490 #endif
12491
12492 /* When -fvisbility=hidden is used, assume the code has been annotated
12493 correspondingly for the symbols needed. */
12494 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12495 int fnord () __attribute__((visibility("default")));
12496 #endif
12497
12498 int fnord () { return 42; }
12499 int main ()
12500 {
12501 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12502 int status = $lt_dlunknown;
12503
12504 if (self)
12505 {
12506 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12507 else
12508 {
12509 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12510 else puts (dlerror ());
12511 }
12512 /* dlclose (self); */
12513 }
12514 else
12515 puts (dlerror ());
12516
12517 return status;
12518 }
12519 _LT_EOF
12520 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12521 (eval $ac_link) 2>&5
12522 ac_status=$?
12523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12524 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12525 (./conftest; exit; ) >&5 2>/dev/null
12526 lt_status=$?
12527 case x$lt_status in
12528 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
12529 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
12530 x$lt_dlunknown|x*) ;;
12531 esac
12532 else :
12533 # compilation failed
12534
12535 fi
12536 fi
12537 rm -fr conftest*
12538
12539 LIBS="$save_LIBS"
12540
12541 fi
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
12543 $as_echo "$libltdl_cv_need_uscore" >&6; }
12544 fi
12545 fi
12546
12547 if test x"$libltdl_cv_need_uscore" = xyes; then
12548
12549 $as_echo "#define NEED_USCORE 1" >>confdefs.h
12550
12551 fi
12552
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
12554 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
12555 if ${lt_cv_sys_dlopen_deplibs+:} false; then :
12556 $as_echo_n "(cached) " >&6
12557 else
12558 # PORTME does your system automatically load deplibs for dlopen?
12559 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
12560 # For now, we just catch OSes we know something about -- in the
12561 # future, we'll try test this programmatically.
12562 lt_cv_sys_dlopen_deplibs=unknown
12563 case $host_os in
12564 aix3*|aix4.1.*|aix4.2.*)
12565 # Unknown whether this is true for these versions of AIX, but
12566 # we want this `case' here to explicitly catch those versions.
12567 lt_cv_sys_dlopen_deplibs=unknown
12568 ;;
12569 aix[4-9]*)
12570 lt_cv_sys_dlopen_deplibs=yes
12571 ;;
12572 amigaos*)
12573 case $host_cpu in
12574 powerpc)
12575 lt_cv_sys_dlopen_deplibs=no
12576 ;;
12577 esac
12578 ;;
12579 darwin*)
12580 # Assuming the user has installed a libdl from somewhere, this is true
12581 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
12582 lt_cv_sys_dlopen_deplibs=yes
12583 ;;
12584 freebsd* | dragonfly*)
12585 lt_cv_sys_dlopen_deplibs=yes
12586 ;;
12587 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
12588 # GNU and its variants, using gnu ld.so (Glibc)
12589 lt_cv_sys_dlopen_deplibs=yes
12590 ;;
12591 hpux10*|hpux11*)
12592 lt_cv_sys_dlopen_deplibs=yes
12593 ;;
12594 interix*)
12595 lt_cv_sys_dlopen_deplibs=yes
12596 ;;
12597 irix[12345]*|irix6.[01]*)
12598 # Catch all versions of IRIX before 6.2, and indicate that we don't
12599 # know how it worked for any of those versions.
12600 lt_cv_sys_dlopen_deplibs=unknown
12601 ;;
12602 irix*)
12603 # The case above catches anything before 6.2, and it's known that
12604 # at 6.2 and later dlopen does load deplibs.
12605 lt_cv_sys_dlopen_deplibs=yes
12606 ;;
12607 netbsd*)
12608 lt_cv_sys_dlopen_deplibs=yes
12609 ;;
12610 openbsd*)
12611 lt_cv_sys_dlopen_deplibs=yes
12612 ;;
12613 osf[1234]*)
12614 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
12615 # it did *not* use an RPATH in a shared library to find objects the
12616 # library depends on, so we explicitly say `no'.
12617 lt_cv_sys_dlopen_deplibs=no
12618 ;;
12619 osf5.0|osf5.0a|osf5.1)
12620 # dlopen *does* load deplibs and with the right loader patch applied
12621 # it even uses RPATH in a shared library to search for shared objects
12622 # that the library depends on, but there's no easy way to know if that
12623 # patch is installed. Since this is the case, all we can really
12624 # say is unknown -- it depends on the patch being installed. If
12625 # it is, this changes to `yes'. Without it, it would be `no'.
12626 lt_cv_sys_dlopen_deplibs=unknown
12627 ;;
12628 osf*)
12629 # the two cases above should catch all versions of osf <= 5.1. Read
12630 # the comments above for what we know about them.
12631 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
12632 # is used to find them so we can finally say `yes'.
12633 lt_cv_sys_dlopen_deplibs=yes
12634 ;;
12635 qnx*)
12636 lt_cv_sys_dlopen_deplibs=yes
12637 ;;
12638 solaris*)
12639 lt_cv_sys_dlopen_deplibs=yes
12640 ;;
12641 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12642 libltdl_cv_sys_dlopen_deplibs=yes
12643 ;;
12644 esac
12645
12646 fi
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
12648 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
12649 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
12650
12651 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
12652
12653 fi
12654
12655 :
12656
12657 for ac_header in argz.h
12658 do :
12659 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
12660 "
12661 if test "x$ac_cv_header_argz_h" = xyes; then :
12662 cat >>confdefs.h <<_ACEOF
12663 #define HAVE_ARGZ_H 1
12664 _ACEOF
12665
12666 fi
12667
12668 done
12669
12670
12671 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
12672 # include <argz.h>
12673 #endif
12674 "
12675 if test "x$ac_cv_type_error_t" = xyes; then :
12676
12677 cat >>confdefs.h <<_ACEOF
12678 #define HAVE_ERROR_T 1
12679 _ACEOF
12680
12681
12682 else
12683
12684 $as_echo "#define error_t int" >>confdefs.h
12685
12686
12687 $as_echo "#define __error_t_defined 1" >>confdefs.h
12688
12689 fi
12690
12691
12692 ARGZ_H=
12693 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
12694 argz_next argz_stringify
12695 do :
12696 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12697 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12698 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12699 cat >>confdefs.h <<_ACEOF
12700 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12701 _ACEOF
12702
12703 else
12704 ARGZ_H=argz.h;
12705
12706 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12707
12708 fi
12709 done
12710
12711
12712 if test -z "$ARGZ_H"; then :
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
12714 $as_echo_n "checking if argz actually works... " >&6; }
12715 if ${lt_cv_sys_argz_works+:} false; then :
12716 $as_echo_n "(cached) " >&6
12717 else
12718 case $host_os in #(
12719 *cygwin*)
12720 lt_cv_sys_argz_works=no
12721 if test "$cross_compiling" != no; then
12722 lt_cv_sys_argz_works="guessing no"
12723 else
12724 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
12725 save_IFS=$IFS
12726 IFS=-.
12727 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
12728 IFS=$save_IFS
12729 lt_os_major=${2-0}
12730 lt_os_minor=${3-0}
12731 lt_os_micro=${4-0}
12732 if test "$lt_os_major" -gt 1 \
12733 || { test "$lt_os_major" -eq 1 \
12734 && { test "$lt_os_minor" -gt 5 \
12735 || { test "$lt_os_minor" -eq 5 \
12736 && test "$lt_os_micro" -gt 24; }; }; }; then
12737 lt_cv_sys_argz_works=yes
12738 fi
12739 fi
12740 ;; #(
12741 *) lt_cv_sys_argz_works=yes ;;
12742 esac
12743 fi
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
12745 $as_echo "$lt_cv_sys_argz_works" >&6; }
12746 if test "$lt_cv_sys_argz_works" = yes; then :
12747
12748 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
12749
12750 else
12751 ARGZ_H=argz.h
12752
12753
12754 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12755
12756 fi
12757 fi
12758
12759
12760
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
12762 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
12763 if ${libltdl_cv_preloaded_symbols+:} false; then :
12764 $as_echo_n "(cached) " >&6
12765 else
12766 if test -n "$lt_cv_sys_global_symbol_pipe"; then
12767 libltdl_cv_preloaded_symbols=yes
12768 else
12769 libltdl_cv_preloaded_symbols=no
12770 fi
12771
12772 fi
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
12774 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
12775 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
12776
12777 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
12778
12779 fi
12780
12781 # Set options
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793 # Check whether --with-included_ltdl was given.
12794 if test "${with_included_ltdl+set}" = set; then :
12795 withval=$with_included_ltdl;
12796 fi
12797
12798
12799 if test "x$with_included_ltdl" != xyes; then
12800 # We are not being forced to use the included libltdl sources, so
12801 # decide whether there is a useful installed version we can use.
12802 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
12803
12804 "
12805 if test "x$ac_cv_header_ltdl_h" = xyes; then :
12806 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
12807 #include <ltdl.h>
12808 "
12809 if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
12811 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
12812 if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
12813 $as_echo_n "(cached) " >&6
12814 else
12815 ac_check_lib_save_LIBS=$LIBS
12816 LIBS="-lltdl $LIBS"
12817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12818 /* end confdefs.h. */
12819
12820 /* Override any GCC internal prototype to avoid an error.
12821 Use char because int might match the return type of a GCC
12822 builtin and then its argument prototype would still apply. */
12823 #ifdef __cplusplus
12824 extern "C"
12825 #endif
12826 char lt_dladvise_preload ();
12827 int
12828 main ()
12829 {
12830 return lt_dladvise_preload ();
12831 ;
12832 return 0;
12833 }
12834 _ACEOF
12835 if ac_fn_c_try_link "$LINENO"; then :
12836 ac_cv_lib_ltdl_lt_dladvise_preload=yes
12837 else
12838 ac_cv_lib_ltdl_lt_dladvise_preload=no
12839 fi
12840 rm -f core conftest.err conftest.$ac_objext \
12841 conftest$ac_exeext conftest.$ac_ext
12842 LIBS=$ac_check_lib_save_LIBS
12843 fi
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
12845 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
12846 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
12847 with_included_ltdl=no
12848 else
12849 with_included_ltdl=yes
12850 fi
12851
12852 else
12853 with_included_ltdl=yes
12854 fi
12855
12856 else
12857 with_included_ltdl=yes
12858 fi
12859
12860
12861 fi
12862
12863
12864
12865
12866 # Check whether --with-ltdl_include was given.
12867 if test "${with_ltdl_include+set}" = set; then :
12868 withval=$with_ltdl_include;
12869 fi
12870
12871
12872 if test -n "$with_ltdl_include"; then
12873 if test -f "$with_ltdl_include/ltdl.h"; then :
12874 else
12875 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
12876 fi
12877 else
12878 with_ltdl_include=no
12879 fi
12880
12881
12882 # Check whether --with-ltdl_lib was given.
12883 if test "${with_ltdl_lib+set}" = set; then :
12884 withval=$with_ltdl_lib;
12885 fi
12886
12887
12888 if test -n "$with_ltdl_lib"; then
12889 if test -f "$with_ltdl_lib/libltdl.la"; then :
12890 else
12891 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
12892 fi
12893 else
12894 with_ltdl_lib=no
12895 fi
12896
12897 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
12898 ,yes,no,no,)
12899 case $enable_ltdl_convenience in
12900 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
12901 "") enable_ltdl_convenience=yes
12902 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
12903 esac
12904 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
12905 LTDLDEPS=$LIBLTDL
12906 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
12907
12908
12909
12910
12911
12912 # For backwards non-gettext consistent compatibility...
12913 INCLTDL="$LTDLINCL"
12914
12915
12916 ;;
12917 ,no,no,no,)
12918 # If the included ltdl is not to be used, then use the
12919 # preinstalled libltdl we found.
12920
12921 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
12922
12923 LIBLTDL=-lltdl
12924 LTDLDEPS=
12925 LTDLINCL=
12926 ;;
12927 ,no*,no,*)
12928 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
12929 ;;
12930 *) with_included_ltdl=no
12931 LIBLTDL="-L$with_ltdl_lib -lltdl"
12932 LTDLDEPS=
12933 LTDLINCL="-I$with_ltdl_include"
12934 ;;
12935 esac
12936 INCLTDL="$LTDLINCL"
12937
12938 # Report our decision...
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
12940 $as_echo_n "checking where to find libltdl headers... " >&6; }
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
12942 $as_echo "$LTDLINCL" >&6; }
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
12944 $as_echo_n "checking where to find libltdl library... " >&6; }
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
12946 $as_echo "$LIBLTDL" >&6; }
12947
12948
12949
12950 # Check whether --enable-ltdl-install was given.
12951 if test "${enable_ltdl_install+set}" = set; then :
12952 enableval=$enable_ltdl_install;
12953 fi
12954
12955
12956 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
12957 *yes*) ;;
12958 *) enable_ltdl_convenience=yes ;;
12959 esac
12960
12961 if test x"${enable_ltdl_install-no}" != xno; then
12962 INSTALL_LTDL_TRUE=
12963 INSTALL_LTDL_FALSE='#'
12964 else
12965 INSTALL_LTDL_TRUE='#'
12966 INSTALL_LTDL_FALSE=
12967 fi
12968
12969 if test x"${enable_ltdl_convenience-no}" != xno; then
12970 CONVENIENCE_LTDL_TRUE=
12971 CONVENIENCE_LTDL_FALSE='#'
12972 else
12973 CONVENIENCE_LTDL_TRUE='#'
12974 CONVENIENCE_LTDL_FALSE=
12975 fi
12976
12977
12978
12979
12980
12981
12982 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
12983 # the user used. This is so that ltdl.h can pick up the parent projects
12984 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
12985 # definitions required by ltdl.c.
12986 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
12987
12988
12989
12990 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
12991 do :
12992 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12993 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12994 "
12995 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12996 cat >>confdefs.h <<_ACEOF
12997 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12998 _ACEOF
12999
13000 fi
13001
13002 done
13003
13004
13005 for ac_func in closedir opendir readdir
13006 do :
13007 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13008 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13009 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13010 cat >>confdefs.h <<_ACEOF
13011 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13012 _ACEOF
13013
13014 else
13015
13016
13017 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
13018
13019 fi
13020 done
13021
13022 for ac_func in strlcat strlcpy
13023 do :
13024 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13025 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13026 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13027 cat >>confdefs.h <<_ACEOF
13028 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13029 _ACEOF
13030
13031 else
13032
13033
13034 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
13035
13036 fi
13037 done
13038
13039
13040
13041 cat >>confdefs.h <<_ACEOF
13042 #define LT_LIBEXT "$libext"
13043 _ACEOF
13044
13045
13046 name=
13047 eval "lt_libprefix=\"$libname_spec\""
13048
13049 cat >>confdefs.h <<_ACEOF
13050 #define LT_LIBPREFIX "$lt_libprefix"
13051 _ACEOF
13052
13053
13054 name=ltdl
13055 eval "LTDLOPEN=\"$libname_spec\""
13056
13057
13058
13059
13060
13061
13062
13063
13064 # Only expand once:
13065
13066
13067 LIBTOOL="$LIBTOOL --silent"
13068
13069 # Checks for libraries.
13070
13071 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
13072 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
13073
13074 else
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
13076 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
13077 if ${ac_cv_search_getaddrinfo+:} false; then :
13078 $as_echo_n "(cached) " >&6
13079 else
13080 ac_func_search_save_LIBS=$LIBS
13081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13082 /* end confdefs.h. */
13083
13084 /* Override any GCC internal prototype to avoid an error.
13085 Use char because int might match the return type of a GCC
13086 builtin and then its argument prototype would still apply. */
13087 #ifdef __cplusplus
13088 extern "C"
13089 #endif
13090 char getaddrinfo ();
13091 int
13092 main ()
13093 {
13094 return getaddrinfo ();
13095 ;
13096 return 0;
13097 }
13098 _ACEOF
13099 for ac_lib in '' nsl; do
13100 if test -z "$ac_lib"; then
13101 ac_res="none required"
13102 else
13103 ac_res=-l$ac_lib
13104 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13105 fi
13106 if ac_fn_c_try_link "$LINENO"; then :
13107 ac_cv_search_getaddrinfo=$ac_res
13108 fi
13109 rm -f core conftest.err conftest.$ac_objext \
13110 conftest$ac_exeext
13111 if ${ac_cv_search_getaddrinfo+:} false; then :
13112 break
13113 fi
13114 done
13115 if ${ac_cv_search_getaddrinfo+:} false; then :
13116
13117 else
13118 ac_cv_search_getaddrinfo=no
13119 fi
13120 rm conftest.$ac_ext
13121 LIBS=$ac_func_search_save_LIBS
13122 fi
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
13124 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
13125 ac_res=$ac_cv_search_getaddrinfo
13126 if test "$ac_res" != no; then :
13127 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13128
13129 fi
13130
13131 fi
13132
13133 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
13134 if test "x$ac_cv_func_getnameinfo" = xyes; then :
13135
13136 else
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
13138 $as_echo_n "checking for library containing getnameinfo... " >&6; }
13139 if ${ac_cv_search_getnameinfo+:} false; then :
13140 $as_echo_n "(cached) " >&6
13141 else
13142 ac_func_search_save_LIBS=$LIBS
13143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13144 /* end confdefs.h. */
13145
13146 /* Override any GCC internal prototype to avoid an error.
13147 Use char because int might match the return type of a GCC
13148 builtin and then its argument prototype would still apply. */
13149 #ifdef __cplusplus
13150 extern "C"
13151 #endif
13152 char getnameinfo ();
13153 int
13154 main ()
13155 {
13156 return getnameinfo ();
13157 ;
13158 return 0;
13159 }
13160 _ACEOF
13161 for ac_lib in '' nsl; do
13162 if test -z "$ac_lib"; then
13163 ac_res="none required"
13164 else
13165 ac_res=-l$ac_lib
13166 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13167 fi
13168 if ac_fn_c_try_link "$LINENO"; then :
13169 ac_cv_search_getnameinfo=$ac_res
13170 fi
13171 rm -f core conftest.err conftest.$ac_objext \
13172 conftest$ac_exeext
13173 if ${ac_cv_search_getnameinfo+:} false; then :
13174 break
13175 fi
13176 done
13177 if ${ac_cv_search_getnameinfo+:} false; then :
13178
13179 else
13180 ac_cv_search_getnameinfo=no
13181 fi
13182 rm conftest.$ac_ext
13183 LIBS=$ac_func_search_save_LIBS
13184 fi
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
13186 $as_echo "$ac_cv_search_getnameinfo" >&6; }
13187 ac_res=$ac_cv_search_getnameinfo
13188 if test "$ac_res" != no; then :
13189 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13190
13191 fi
13192
13193 fi
13194
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13196 $as_echo_n "checking for library containing socket... " >&6; }
13197 if ${ac_cv_search_socket+:} false; then :
13198 $as_echo_n "(cached) " >&6
13199 else
13200 ac_func_search_save_LIBS=$LIBS
13201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13202 /* end confdefs.h. */
13203
13204 /* Override any GCC internal prototype to avoid an error.
13205 Use char because int might match the return type of a GCC
13206 builtin and then its argument prototype would still apply. */
13207 #ifdef __cplusplus
13208 extern "C"
13209 #endif
13210 char socket ();
13211 int
13212 main ()
13213 {
13214 return socket ();
13215 ;
13216 return 0;
13217 }
13218 _ACEOF
13219 for ac_lib in '' socket; do
13220 if test -z "$ac_lib"; then
13221 ac_res="none required"
13222 else
13223 ac_res=-l$ac_lib
13224 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13225 fi
13226 if ac_fn_c_try_link "$LINENO"; then :
13227 ac_cv_search_socket=$ac_res
13228 fi
13229 rm -f core conftest.err conftest.$ac_objext \
13230 conftest$ac_exeext
13231 if ${ac_cv_search_socket+:} false; then :
13232 break
13233 fi
13234 done
13235 if ${ac_cv_search_socket+:} false; then :
13236
13237 else
13238 ac_cv_search_socket=no
13239 fi
13240 rm conftest.$ac_ext
13241 LIBS=$ac_func_search_save_LIBS
13242 fi
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13244 $as_echo "$ac_cv_search_socket" >&6; }
13245 ac_res=$ac_cv_search_socket
13246 if test "$ac_res" != no; then :
13247 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13248
13249 else
13250 as_fn_error $? "socket library not found" "$LINENO" 5
13251 fi
13252
13253 ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h>
13254 #include <sys/socket.h>
13255 #include <netdb.h>
13256
13257 "
13258 if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then :
13259
13260 cat >>confdefs.h <<_ACEOF
13261 #define HAVE_STRUCT_SOCKADDR_IN 1
13262 _ACEOF
13263
13264
13265 fi
13266 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
13267 #include <sys/socket.h>
13268 #include <netdb.h>
13269
13270 "
13271 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
13272
13273 cat >>confdefs.h <<_ACEOF
13274 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13275 _ACEOF
13276
13277
13278 fi
13279 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
13280 #include <sys/socket.h>
13281 #include <netdb.h>
13282
13283 "
13284 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
13285
13286 cat >>confdefs.h <<_ACEOF
13287 #define HAVE_STRUCT_ADDRINFO 1
13288 _ACEOF
13289
13290
13291 fi
13292
13293 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
13294 <sys/socket.h>
13295 "
13296 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
13297
13298 cat >>confdefs.h <<_ACEOF
13299 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
13300 _ACEOF
13301
13302
13303 fi
13304
13305
13306
13307 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#include <netinet/in.h>
13308 "
13309 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
13310
13311 $as_echo "#define IPV6 1" >>confdefs.h
13312
13313 fi
13314
13315
13316
13317 # Checks for typedefs, structures, and compiler characteristics.
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13319 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13320 if ${ac_cv_c_bigendian+:} false; then :
13321 $as_echo_n "(cached) " >&6
13322 else
13323 ac_cv_c_bigendian=unknown
13324 # See if we're dealing with a universal compiler.
13325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13326 /* end confdefs.h. */
13327 #ifndef __APPLE_CC__
13328 not a universal capable compiler
13329 #endif
13330 typedef int dummy;
13331
13332 _ACEOF
13333 if ac_fn_c_try_compile "$LINENO"; then :
13334
13335 # Check for potential -arch flags. It is not universal unless
13336 # there are at least two -arch flags with different values.
13337 ac_arch=
13338 ac_prev=
13339 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13340 if test -n "$ac_prev"; then
13341 case $ac_word in
13342 i?86 | x86_64 | ppc | ppc64)
13343 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13344 ac_arch=$ac_word
13345 else
13346 ac_cv_c_bigendian=universal
13347 break
13348 fi
13349 ;;
13350 esac
13351 ac_prev=
13352 elif test "x$ac_word" = "x-arch"; then
13353 ac_prev=arch
13354 fi
13355 done
13356 fi
13357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13358 if test $ac_cv_c_bigendian = unknown; then
13359 # See if sys/param.h defines the BYTE_ORDER macro.
13360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13361 /* end confdefs.h. */
13362 #include <sys/types.h>
13363 #include <sys/param.h>
13364
13365 int
13366 main ()
13367 {
13368 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13369 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13370 && LITTLE_ENDIAN)
13371 bogus endian macros
13372 #endif
13373
13374 ;
13375 return 0;
13376 }
13377 _ACEOF
13378 if ac_fn_c_try_compile "$LINENO"; then :
13379 # It does; now see whether it defined to BIG_ENDIAN or not.
13380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13381 /* end confdefs.h. */
13382 #include <sys/types.h>
13383 #include <sys/param.h>
13384
13385 int
13386 main ()
13387 {
13388 #if BYTE_ORDER != BIG_ENDIAN
13389 not big endian
13390 #endif
13391
13392 ;
13393 return 0;
13394 }
13395 _ACEOF
13396 if ac_fn_c_try_compile "$LINENO"; then :
13397 ac_cv_c_bigendian=yes
13398 else
13399 ac_cv_c_bigendian=no
13400 fi
13401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13402 fi
13403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13404 fi
13405 if test $ac_cv_c_bigendian = unknown; then
13406 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13408 /* end confdefs.h. */
13409 #include <limits.h>
13410
13411 int
13412 main ()
13413 {
13414 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13415 bogus endian macros
13416 #endif
13417
13418 ;
13419 return 0;
13420 }
13421 _ACEOF
13422 if ac_fn_c_try_compile "$LINENO"; then :
13423 # It does; now see whether it defined to _BIG_ENDIAN or not.
13424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13425 /* end confdefs.h. */
13426 #include <limits.h>
13427
13428 int
13429 main ()
13430 {
13431 #ifndef _BIG_ENDIAN
13432 not big endian
13433 #endif
13434
13435 ;
13436 return 0;
13437 }
13438 _ACEOF
13439 if ac_fn_c_try_compile "$LINENO"; then :
13440 ac_cv_c_bigendian=yes
13441 else
13442 ac_cv_c_bigendian=no
13443 fi
13444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13445 fi
13446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13447 fi
13448 if test $ac_cv_c_bigendian = unknown; then
13449 # Compile a test program.
13450 if test "$cross_compiling" = yes; then :
13451 # Try to guess by grepping values from an object file.
13452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13453 /* end confdefs.h. */
13454 short int ascii_mm[] =
13455 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13456 short int ascii_ii[] =
13457 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13458 int use_ascii (int i) {
13459 return ascii_mm[i] + ascii_ii[i];
13460 }
13461 short int ebcdic_ii[] =
13462 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13463 short int ebcdic_mm[] =
13464 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13465 int use_ebcdic (int i) {
13466 return ebcdic_mm[i] + ebcdic_ii[i];
13467 }
13468 extern int foo;
13469
13470 int
13471 main ()
13472 {
13473 return use_ascii (foo) == use_ebcdic (foo);
13474 ;
13475 return 0;
13476 }
13477 _ACEOF
13478 if ac_fn_c_try_compile "$LINENO"; then :
13479 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13480 ac_cv_c_bigendian=yes
13481 fi
13482 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13483 if test "$ac_cv_c_bigendian" = unknown; then
13484 ac_cv_c_bigendian=no
13485 else
13486 # finding both strings is unlikely to happen, but who knows?
13487 ac_cv_c_bigendian=unknown
13488 fi
13489 fi
13490 fi
13491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13492 else
13493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13494 /* end confdefs.h. */
13495 $ac_includes_default
13496 int
13497 main ()
13498 {
13499
13500 /* Are we little or big endian? From Harbison&Steele. */
13501 union
13502 {
13503 long int l;
13504 char c[sizeof (long int)];
13505 } u;
13506 u.l = 1;
13507 return u.c[sizeof (long int) - 1] == 1;
13508
13509 ;
13510 return 0;
13511 }
13512 _ACEOF
13513 if ac_fn_c_try_run "$LINENO"; then :
13514 ac_cv_c_bigendian=no
13515 else
13516 ac_cv_c_bigendian=yes
13517 fi
13518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13519 conftest.$ac_objext conftest.beam conftest.$ac_ext
13520 fi
13521
13522 fi
13523 fi
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13525 $as_echo "$ac_cv_c_bigendian" >&6; }
13526 case $ac_cv_c_bigendian in #(
13527 yes)
13528 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13529 ;; #(
13530 no)
13531 ;; #(
13532 universal)
13533
13534 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13535
13536 ;; #(
13537 *)
13538 as_fn_error $? "unknown endianness
13539 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13540 esac
13541
13542
13543 # Checks for library functions.
13544
13545
13546
13547 for ac_func in $ac_func_list
13548 do :
13549 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13550 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13551 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13552 cat >>confdefs.h <<_ACEOF
13553 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13554 _ACEOF
13555
13556 fi
13557 done
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571 # Checks for header files.
13572
13573
13574
13575 for ac_header in $ac_header_list
13576 do :
13577 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13578 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13579 "
13580 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13581 cat >>confdefs.h <<_ACEOF
13582 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13583 _ACEOF
13584
13585 fi
13586
13587 done
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
13606 $as_echo_n "checking for library containing crypt... " >&6; }
13607 if ${ac_cv_search_crypt+:} false; then :
13608 $as_echo_n "(cached) " >&6
13609 else
13610 ac_func_search_save_LIBS=$LIBS
13611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13612 /* end confdefs.h. */
13613
13614 /* Override any GCC internal prototype to avoid an error.
13615 Use char because int might match the return type of a GCC
13616 builtin and then its argument prototype would still apply. */
13617 #ifdef __cplusplus
13618 extern "C"
13619 #endif
13620 char crypt ();
13621 int
13622 main ()
13623 {
13624 return crypt ();
13625 ;
13626 return 0;
13627 }
13628 _ACEOF
13629 for ac_lib in '' crypt; do
13630 if test -z "$ac_lib"; then
13631 ac_res="none required"
13632 else
13633 ac_res=-l$ac_lib
13634 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13635 fi
13636 if ac_fn_c_try_link "$LINENO"; then :
13637 ac_cv_search_crypt=$ac_res
13638 fi
13639 rm -f core conftest.err conftest.$ac_objext \
13640 conftest$ac_exeext
13641 if ${ac_cv_search_crypt+:} false; then :
13642 break
13643 fi
13644 done
13645 if ${ac_cv_search_crypt+:} false; then :
13646
13647 else
13648 ac_cv_search_crypt=no
13649 fi
13650 rm conftest.$ac_ext
13651 LIBS=$ac_func_search_save_LIBS
13652 fi
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
13654 $as_echo "$ac_cv_search_crypt" >&6; }
13655 ac_res=$ac_cv_search_crypt
13656 if test "$ac_res" != no; then :
13657 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13658
13659 fi
13660
13661
13662 # Check whether --enable-libpcre was given.
13663 if test "${enable_libpcre+set}" = set; then :
13664 enableval=$enable_libpcre;
13665 else
13666 ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default"
13667 if test "x$ac_cv_header_pcre_h" = xyes; then :
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pcre_study" >&5
13669 $as_echo_n "checking for library containing pcre_study... " >&6; }
13670 if ${ac_cv_search_pcre_study+:} false; then :
13671 $as_echo_n "(cached) " >&6
13672 else
13673 ac_func_search_save_LIBS=$LIBS
13674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13675 /* end confdefs.h. */
13676
13677 /* Override any GCC internal prototype to avoid an error.
13678 Use char because int might match the return type of a GCC
13679 builtin and then its argument prototype would still apply. */
13680 #ifdef __cplusplus
13681 extern "C"
13682 #endif
13683 char pcre_study ();
13684 int
13685 main ()
13686 {
13687 return pcre_study ();
13688 ;
13689 return 0;
13690 }
13691 _ACEOF
13692 for ac_lib in '' pcre; do
13693 if test -z "$ac_lib"; then
13694 ac_res="none required"
13695 else
13696 ac_res=-l$ac_lib
13697 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13698 fi
13699 if ac_fn_c_try_link "$LINENO"; then :
13700 ac_cv_search_pcre_study=$ac_res
13701 fi
13702 rm -f core conftest.err conftest.$ac_objext \
13703 conftest$ac_exeext
13704 if ${ac_cv_search_pcre_study+:} false; then :
13705 break
13706 fi
13707 done
13708 if ${ac_cv_search_pcre_study+:} false; then :
13709
13710 else
13711 ac_cv_search_pcre_study=no
13712 fi
13713 rm conftest.$ac_ext
13714 LIBS=$ac_func_search_save_LIBS
13715 fi
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pcre_study" >&5
13717 $as_echo "$ac_cv_search_pcre_study" >&6; }
13718 ac_res=$ac_cv_search_pcre_study
13719 if test "$ac_res" != no; then :
13720 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13721
13722 $as_echo "#define HAVE_LIBPCRE 1" >>confdefs.h
13723
13724 fi
13725
13726 fi
13727
13728
13729 fi
13730
13731
13732 # Check whether --enable-openssl was given.
13733 if test "${enable_openssl+set}" = set; then :
13734 enableval=$enable_openssl; cf_enable_openssl=$enableval
13735 else
13736 cf_enable_openssl="auto"
13737 fi
13738
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
13740 $as_echo_n "checking for OpenSSL... " >&6; }
13741 if test "$cf_enable_openssl" != "no"; then
13742 cf_openssl_basedir=""
13743 if test "$cf_enable_openssl" != "auto" &&
13744 test "$cf_enable_openssl" != "yes"; then
13745 cf_openssl_basedir="${cf_enable_openssl}"
13746 else
13747 for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
13748 /opt /opt/openssl /usr/local/openssl; do
13749 if test -f "${dirs}/include/openssl/opensslv.h"; then
13750 cf_openssl_basedir="${dirs}"
13751 break
13752 fi
13753 done
13754 unset dirs
13755 fi
13756
13757 if test ! -z "$cf_openssl_basedir"; then
13758 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
13759 CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
13760 LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
13761 else
13762 cf_openssl_basedir=""
13763 fi
13764 else
13765 if test -f "/usr/include/openssl/opensslv.h"; then
13766 cf_openssl_basedir="/usr"
13767 fi
13768 fi
13769
13770 if test ! -z "$cf_openssl_basedir"; then
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
13772 $as_echo "$cf_openssl_basedir" >&6; }
13773 cf_enable_openssl="yes"
13774 else
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
13776 $as_echo "not found. Please check your path." >&6; }
13777 cf_enable_openssl="no"
13778 fi
13779 unset cf_openssl_basedir
13780 else
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13782 $as_echo "disabled" >&6; }
13783 fi
13784
13785 if test "$cf_enable_openssl" != "no"; then :
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.8 or above" >&5
13787 $as_echo_n "checking for OpenSSL 0.9.8 or above... " >&6; }
13788 if test "$cross_compiling" = yes; then :
13789 cf_openssl_version_ok=no
13790 else
13791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13792 /* end confdefs.h. */
13793
13794
13795 #include <openssl/opensslv.h>
13796 #include <stdlib.h>
13797 int
13798 main ()
13799 {
13800 exit(!(OPENSSL_VERSION_NUMBER >= 0x00908000));
13801 ;
13802 return 0;
13803 }
13804 _ACEOF
13805 if ac_fn_c_try_run "$LINENO"; then :
13806 cf_openssl_version_ok=yes
13807 else
13808 cf_openssl_version_ok=no
13809 fi
13810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13811 conftest.$ac_objext conftest.beam conftest.$ac_ext
13812 fi
13813
13814
13815 if test "$cf_openssl_version_ok" = "yes"; then :
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13817 $as_echo "found" >&6; }
13818
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
13820 $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
13821 if ${ac_cv_lib_crypto_RSA_free+:} false; then :
13822 $as_echo_n "(cached) " >&6
13823 else
13824 ac_check_lib_save_LIBS=$LIBS
13825 LIBS="-lcrypto $LIBS"
13826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13827 /* end confdefs.h. */
13828
13829 /* Override any GCC internal prototype to avoid an error.
13830 Use char because int might match the return type of a GCC
13831 builtin and then its argument prototype would still apply. */
13832 #ifdef __cplusplus
13833 extern "C"
13834 #endif
13835 char RSA_free ();
13836 int
13837 main ()
13838 {
13839 return RSA_free ();
13840 ;
13841 return 0;
13842 }
13843 _ACEOF
13844 if ac_fn_c_try_link "$LINENO"; then :
13845 ac_cv_lib_crypto_RSA_free=yes
13846 else
13847 ac_cv_lib_crypto_RSA_free=no
13848 fi
13849 rm -f core conftest.err conftest.$ac_objext \
13850 conftest$ac_exeext conftest.$ac_ext
13851 LIBS=$ac_check_lib_save_LIBS
13852 fi
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
13854 $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
13855 if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
13856 cat >>confdefs.h <<_ACEOF
13857 #define HAVE_LIBCRYPTO 1
13858 _ACEOF
13859
13860 LIBS="-lcrypto $LIBS"
13861
13862 fi
13863
13864 if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
13866 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
13867 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
13868 $as_echo_n "(cached) " >&6
13869 else
13870 ac_check_lib_save_LIBS=$LIBS
13871 LIBS="-lssl $LIBS"
13872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13873 /* end confdefs.h. */
13874
13875 /* Override any GCC internal prototype to avoid an error.
13876 Use char because int might match the return type of a GCC
13877 builtin and then its argument prototype would still apply. */
13878 #ifdef __cplusplus
13879 extern "C"
13880 #endif
13881 char SSL_connect ();
13882 int
13883 main ()
13884 {
13885 return SSL_connect ();
13886 ;
13887 return 0;
13888 }
13889 _ACEOF
13890 if ac_fn_c_try_link "$LINENO"; then :
13891 ac_cv_lib_ssl_SSL_connect=yes
13892 else
13893 ac_cv_lib_ssl_SSL_connect=no
13894 fi
13895 rm -f core conftest.err conftest.$ac_objext \
13896 conftest$ac_exeext conftest.$ac_ext
13897 LIBS=$ac_check_lib_save_LIBS
13898 fi
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
13900 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
13901 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
13902 cat >>confdefs.h <<_ACEOF
13903 #define HAVE_LIBSSL 1
13904 _ACEOF
13905
13906 LIBS="-lssl $LIBS"
13907
13908 fi
13909
13910 fi
13911
13912 else
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
13914 $as_echo "no - OpenSSL support disabled" >&6; }
13915 cf_enable_openssl="no"
13916 fi
13917 fi
13918
13919 if test "$ac_cv_lib_ssl_SSL_connect" = yes; then
13920 ENABLE_SSL_TRUE=
13921 ENABLE_SSL_FALSE='#'
13922 else
13923 ENABLE_SSL_TRUE='#'
13924 ENABLE_SSL_FALSE=
13925 fi
13926
13927
13928
13929 # Check whether --enable-assert was given.
13930 if test "${enable_assert+set}" = set; then :
13931 enableval=$enable_assert; assert=$enableval
13932 else
13933 assert=no
13934 fi
13935
13936
13937 if test "$assert" = "no"; then :
13938
13939 $as_echo "#define NDEBUG 1" >>confdefs.h
13940
13941 fi
13942
13943
13944
13945 $as_echo "#define NICKNAMEHISTORYLENGTH 16384" >>confdefs.h
13946
13947
13948 $as_echo "#define CHANNEL_HEAP_SIZE 1024" >>confdefs.h
13949
13950
13951 $as_echo "#define BAN_HEAP_SIZE 1024" >>confdefs.h
13952
13953
13954 $as_echo "#define CLIENT_HEAP_SIZE 1024" >>confdefs.h
13955
13956
13957 $as_echo "#define LCLIENT_HEAP_SIZE 512" >>confdefs.h
13958
13959
13960 $as_echo "#define DNODE_HEAP_SIZE 1024" >>confdefs.h
13961
13962
13963 $as_echo "#define DBUF_HEAP_SIZE 512" >>confdefs.h
13964
13965
13966 $as_echo "#define AUTH_HEAP_SIZE 256" >>confdefs.h
13967
13968
13969 $as_echo "#define DNS_HEAP_SIZE 256" >>confdefs.h
13970
13971
13972
13973 # Argument processing.
13974
13975 desired_iopoll_mechanism="none"
13976 # Check whether --enable-kqueue was given.
13977 if test "${enable_kqueue+set}" = set; then :
13978 enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
13979 fi
13980
13981 # Check whether --enable-epoll was given.
13982 if test "${enable_epoll+set}" = set; then :
13983 enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
13984 fi
13985
13986 # Check whether --enable-devpoll was given.
13987 if test "${enable_devpoll+set}" = set; then :
13988 enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
13989 fi
13990
13991 # Check whether --enable-poll was given.
13992 if test "${enable_poll+set}" = set; then :
13993 enableval=$enable_poll; desired_iopoll_mechanism="poll"
13994 fi
13995
13996 # Check whether --enable-select was given.
13997 if test "${enable_select+set}" = set; then :
13998 enableval=$enable_select; desired_iopoll_mechanism="select"
13999 fi
14000
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
14002 $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
14003 iopoll_mechanism_none=0
14004
14005 cat >>confdefs.h <<_ACEOF
14006 #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
14007 _ACEOF
14008
14009 iopoll_mechanism_kqueue=1
14010
14011 cat >>confdefs.h <<_ACEOF
14012 #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
14013 _ACEOF
14014
14015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14016 /* end confdefs.h. */
14017 /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
14018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14019 #define kevent innocuous_kevent
14020
14021 /* System header to define __stub macros and hopefully few prototypes,
14022 which can conflict with char kevent (); below.
14023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14024 <limits.h> exists even on freestanding compilers. */
14025
14026 #ifdef __STDC__
14027 # include <limits.h>
14028 #else
14029 # include <assert.h>
14030 #endif
14031
14032 #undef kevent
14033
14034 /* Override any GCC internal prototype to avoid an error.
14035 Use char because int might match the return type of a GCC
14036 builtin and then its argument prototype would still apply. */
14037 #ifdef __cplusplus
14038 extern "C"
14039 #endif
14040 char kevent ();
14041 /* The GNU C library defines this for functions which it implements
14042 to always fail with ENOSYS. Some functions are actually named
14043 something starting with __ and the normal name is an alias. */
14044 #if defined __stub_kevent || defined __stub___kevent
14045 choke me
14046 #endif
14047
14048 int
14049 main ()
14050 {
14051 return kevent ();
14052 ;
14053 return 0;
14054 }
14055 _ACEOF
14056 if ac_fn_c_try_link "$LINENO"; then :
14057 is_kqueue_mechanism_available="yes"
14058 else
14059 is_kqueue_mechanism_available="no"
14060 fi
14061 rm -f core conftest.err conftest.$ac_objext \
14062 conftest$ac_exeext conftest.$ac_ext
14063 iopoll_mechanism_epoll=2
14064
14065 cat >>confdefs.h <<_ACEOF
14066 #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
14067 _ACEOF
14068
14069 if test "$cross_compiling" = yes; then :
14070 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14072 as_fn_error $? "cannot run test program while cross compiling
14073 See \`config.log' for more details" "$LINENO" 5; }
14074 else
14075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14076 /* end confdefs.h. */
14077
14078 #include <sys/epoll.h>
14079 #include <sys/syscall.h>
14080 #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
14081 #if !defined(__NR_epoll_create)
14082 #if defined(__ia64__)
14083 #define __NR_epoll_create 1243
14084 #elif defined(__x86_64__)
14085 #define __NR_epoll_create 214
14086 #elif defined(__sparc64__) || defined(__sparc__)
14087 #define __NR_epoll_create 193
14088 #elif defined(__s390__) || defined(__m68k__)
14089 #define __NR_epoll_create 249
14090 #elif defined(__ppc64__) || defined(__ppc__)
14091 #define __NR_epoll_create 236
14092 #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
14093 #define __NR_epoll_create 224
14094 #elif defined(__alpha__)
14095 #define __NR_epoll_create 407
14096 #elif defined(__sh64__)
14097 #define __NR_epoll_create 282
14098 #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
14099 #define __NR_epoll_create 254
14100 #else
14101 #error No system call numbers defined for epoll family.
14102 #endif
14103 #endif
14104 _syscall1(int, epoll_create, int, size)
14105 #endif
14106
14107 int
14108 main ()
14109 {
14110 return epoll_create(256) == -1 ? 1 : 0
14111 ;
14112 return 0;
14113 }
14114 _ACEOF
14115 if ac_fn_c_try_run "$LINENO"; then :
14116 is_epoll_mechanism_available="yes"
14117 else
14118 is_epoll_mechanism_available="no"
14119 fi
14120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14121 conftest.$ac_objext conftest.beam conftest.$ac_ext
14122 fi
14123
14124 iopoll_mechanism_devpoll=3
14125
14126 cat >>confdefs.h <<_ACEOF
14127 #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
14128 _ACEOF
14129
14130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14131 /* end confdefs.h. */
14132 #include <devpoll.h>
14133 int
14134 main ()
14135 {
14136
14137 ;
14138 return 0;
14139 }
14140 _ACEOF
14141 if ac_fn_c_try_compile "$LINENO"; then :
14142 is_devpoll_mechanism_available="yes"
14143 else
14144 is_devpoll_mechanism_available="no"
14145 fi
14146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14147 if test "$is_devpoll_mechanism_available" = "yes" ; then
14148
14149 $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
14150
14151 fi
14152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14153 /* end confdefs.h. */
14154 #include <sys/devpoll.h>
14155 int
14156 main ()
14157 {
14158
14159 ;
14160 return 0;
14161 }
14162 _ACEOF
14163 if ac_fn_c_try_compile "$LINENO"; then :
14164 is_devpoll_mechanism_available="yes"
14165 else
14166 is_devpoll_mechanism_available="no"
14167 fi
14168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14169 if test "$is_devpoll_mechanism_available" = "yes" ; then
14170
14171 $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
14172
14173 fi
14174 iopoll_mechanism_poll=4
14175
14176 cat >>confdefs.h <<_ACEOF
14177 #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
14178 _ACEOF
14179
14180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14181 /* end confdefs.h. */
14182 /* Define poll to an innocuous variant, in case <limits.h> declares poll.
14183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14184 #define poll innocuous_poll
14185
14186 /* System header to define __stub macros and hopefully few prototypes,
14187 which can conflict with char poll (); below.
14188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14189 <limits.h> exists even on freestanding compilers. */
14190
14191 #ifdef __STDC__
14192 # include <limits.h>
14193 #else
14194 # include <assert.h>
14195 #endif
14196
14197 #undef poll
14198
14199 /* Override any GCC internal prototype to avoid an error.
14200 Use char because int might match the return type of a GCC
14201 builtin and then its argument prototype would still apply. */
14202 #ifdef __cplusplus
14203 extern "C"
14204 #endif
14205 char poll ();
14206 /* The GNU C library defines this for functions which it implements
14207 to always fail with ENOSYS. Some functions are actually named
14208 something starting with __ and the normal name is an alias. */
14209 #if defined __stub_poll || defined __stub___poll
14210 choke me
14211 #endif
14212
14213 int
14214 main ()
14215 {
14216 return poll ();
14217 ;
14218 return 0;
14219 }
14220 _ACEOF
14221 if ac_fn_c_try_link "$LINENO"; then :
14222 is_poll_mechanism_available="yes"
14223 else
14224 is_poll_mechanism_available="no"
14225 fi
14226 rm -f core conftest.err conftest.$ac_objext \
14227 conftest$ac_exeext conftest.$ac_ext
14228 iopoll_mechanism_select=5
14229
14230 cat >>confdefs.h <<_ACEOF
14231 #define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select
14232 _ACEOF
14233
14234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14235 /* end confdefs.h. */
14236 /* Define select to an innocuous variant, in case <limits.h> declares select.
14237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14238 #define select innocuous_select
14239
14240 /* System header to define __stub macros and hopefully few prototypes,
14241 which can conflict with char select (); below.
14242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14243 <limits.h> exists even on freestanding compilers. */
14244
14245 #ifdef __STDC__
14246 # include <limits.h>
14247 #else
14248 # include <assert.h>
14249 #endif
14250
14251 #undef select
14252
14253 /* Override any GCC internal prototype to avoid an error.
14254 Use char because int might match the return type of a GCC
14255 builtin and then its argument prototype would still apply. */
14256 #ifdef __cplusplus
14257 extern "C"
14258 #endif
14259 char select ();
14260 /* The GNU C library defines this for functions which it implements
14261 to always fail with ENOSYS. Some functions are actually named
14262 something starting with __ and the normal name is an alias. */
14263 #if defined __stub_select || defined __stub___select
14264 choke me
14265 #endif
14266
14267 int
14268 main ()
14269 {
14270 return select ();
14271 ;
14272 return 0;
14273 }
14274 _ACEOF
14275 if ac_fn_c_try_link "$LINENO"; then :
14276 is_select_mechanism_available="yes"
14277 else
14278 is_select_mechanism_available="no"
14279 fi
14280 rm -f core conftest.err conftest.$ac_objext \
14281 conftest$ac_exeext conftest.$ac_ext
14282 optimal_iopoll_mechanism="none"
14283 for mechanism in "kqueue" "epoll" "devpoll" "poll" "select" ; do # order is important
14284 eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
14285 if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
14286 optimal_iopoll_mechanism="$mechanism"
14287 break
14288 fi
14289 done
14290 if test "$desired_iopoll_mechanism" = "none" ; then
14291 if test "$optimal_iopoll_mechanism" = "none" ; then
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14293 $as_echo "none" >&6; }
14294 as_fn_error $? "no iopoll mechanism found!" "$LINENO" 5
14295 else
14296 selected_iopoll_mechanism=$optimal_iopoll_mechanism
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14298 $as_echo "$selected_iopoll_mechanism" >&6; }
14299 fi
14300 else
14301 eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
14302 if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
14303 selected_iopoll_mechanism=$desired_iopoll_mechanism
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14305 $as_echo "$selected_iopoll_mechanism" >&6; }
14306 else
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14308 $as_echo "none" >&6; }
14309 as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
14310 fi
14311 fi
14312 eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
14313
14314 cat >>confdefs.h <<_ACEOF
14315 #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
14316 _ACEOF
14317
14318
14319
14320 # Check whether --enable-halfops was given.
14321 if test "${enable_halfops+set}" = set; then :
14322 enableval=$enable_halfops; halfops="$enableval"
14323 else
14324 halfops="no"
14325 fi
14326
14327 if test "$halfops" = "yes" ; then
14328
14329 $as_echo "#define HALFOPS 1" >>confdefs.h
14330
14331 fi
14332
14333
14334 # Check whether --enable-debugging was given.
14335 if test "${enable_debugging+set}" = set; then :
14336 enableval=$enable_debugging; debugging="$enableval"
14337 else
14338 debugging="no"
14339 fi
14340
14341 if test "$debugging" = "yes" ; then
14342 CFLAGS="-Wall -g -O0"
14343 fi
14344
14345
14346 # Check whether --enable-warnings was given.
14347 if test "${enable_warnings+set}" = set; then :
14348 enableval=$enable_warnings; warnings="$enableval"
14349 else
14350 warnings="no"
14351 fi
14352
14353 if test "$warnings" = "yes" ; then
14354 CFLAGS="-Wall -Wextra -Wno-unused -Wcast-qual -Wcast-align -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wundef"
14355 fi
14356
14357
14358
14359 prefix_NONE=
14360 exec_prefix_NONE=
14361 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14362 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14363 eval ac_define_dir="\"$prefix\""
14364 eval ac_define_dir="\"$ac_define_dir\""
14365 PREFIX="$ac_define_dir"
14366
14367
14368 cat >>confdefs.h <<_ACEOF
14369 #define PREFIX "$ac_define_dir"
14370 _ACEOF
14371
14372 test "$prefix_NONE" && prefix=NONE
14373 test "$exec_prefix_NONE" && exec_prefix=NONE
14374
14375
14376 prefix_NONE=
14377 exec_prefix_NONE=
14378 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14379 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14380 eval ac_define_dir="\"$sysconfdir\""
14381 eval ac_define_dir="\"$ac_define_dir\""
14382 SYSCONFDIR="$ac_define_dir"
14383
14384
14385 cat >>confdefs.h <<_ACEOF
14386 #define SYSCONFDIR "$ac_define_dir"
14387 _ACEOF
14388
14389 test "$prefix_NONE" && prefix=NONE
14390 test "$exec_prefix_NONE" && exec_prefix=NONE
14391
14392
14393 prefix_NONE=
14394 exec_prefix_NONE=
14395 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14396 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14397 eval ac_define_dir="\"$libdir\""
14398 eval ac_define_dir="\"$ac_define_dir\""
14399 LIBDIR="$ac_define_dir"
14400
14401
14402 cat >>confdefs.h <<_ACEOF
14403 #define LIBDIR "$ac_define_dir"
14404 _ACEOF
14405
14406 test "$prefix_NONE" && prefix=NONE
14407 test "$exec_prefix_NONE" && exec_prefix=NONE
14408
14409
14410 prefix_NONE=
14411 exec_prefix_NONE=
14412 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14413 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14414 eval ac_define_dir="\"$datadir\""
14415 eval ac_define_dir="\"$ac_define_dir\""
14416 DATADIR="$ac_define_dir"
14417
14418
14419 cat >>confdefs.h <<_ACEOF
14420 #define DATADIR "$ac_define_dir"
14421 _ACEOF
14422
14423 test "$prefix_NONE" && prefix=NONE
14424 test "$exec_prefix_NONE" && exec_prefix=NONE
14425
14426
14427 prefix_NONE=
14428 exec_prefix_NONE=
14429 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14430 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14431 eval ac_define_dir="\"$localstatedir\""
14432 eval ac_define_dir="\"$ac_define_dir\""
14433 LOCALSTATEDIR="$ac_define_dir"
14434
14435
14436 cat >>confdefs.h <<_ACEOF
14437 #define LOCALSTATEDIR "$ac_define_dir"
14438 _ACEOF
14439
14440 test "$prefix_NONE" && prefix=NONE
14441 test "$exec_prefix_NONE" && exec_prefix=NONE
14442
14443
14444 ac_config_files="$ac_config_files Makefile contrib/Makefile contrib/help/Makefile src/Makefile libltdl/Makefile messages/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile help/opers/Makefile help/users/Makefile tools/Makefile"
14445
14446
14447 cat >confcache <<\_ACEOF
14448 # This file is a shell script that caches the results of configure
14449 # tests run on this system so they can be shared between configure
14450 # scripts and configure runs, see configure's option --config-cache.
14451 # It is not useful on other systems. If it contains results you don't
14452 # want to keep, you may remove or edit it.
14453 #
14454 # config.status only pays attention to the cache file if you give it
14455 # the --recheck option to rerun configure.
14456 #
14457 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14458 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14459 # following values.
14460
14461 _ACEOF
14462
14463 # The following way of writing the cache mishandles newlines in values,
14464 # but we know of no workaround that is simple, portable, and efficient.
14465 # So, we kill variables containing newlines.
14466 # Ultrix sh set writes to stderr and can't be redirected directly,
14467 # and sets the high bit in the cache file unless we assign to the vars.
14468 (
14469 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14470 eval ac_val=\$$ac_var
14471 case $ac_val in #(
14472 *${as_nl}*)
14473 case $ac_var in #(
14474 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14475 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14476 esac
14477 case $ac_var in #(
14478 _ | IFS | as_nl) ;; #(
14479 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14480 *) { eval $ac_var=; unset $ac_var;} ;;
14481 esac ;;
14482 esac
14483 done
14484
14485 (set) 2>&1 |
14486 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14487 *${as_nl}ac_space=\ *)
14488 # `set' does not quote correctly, so add quotes: double-quote
14489 # substitution turns \\\\ into \\, and sed turns \\ into \.
14490 sed -n \
14491 "s/'/'\\\\''/g;
14492 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14493 ;; #(
14494 *)
14495 # `set' quotes correctly as required by POSIX, so do not add quotes.
14496 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14497 ;;
14498 esac |
14499 sort
14500 ) |
14501 sed '
14502 /^ac_cv_env_/b end
14503 t clear
14504 :clear
14505 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14506 t end
14507 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14508 :end' >>confcache
14509 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14510 if test -w "$cache_file"; then
14511 if test "x$cache_file" != "x/dev/null"; then
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14513 $as_echo "$as_me: updating cache $cache_file" >&6;}
14514 if test ! -f "$cache_file" || test -h "$cache_file"; then
14515 cat confcache >"$cache_file"
14516 else
14517 case $cache_file in #(
14518 */* | ?:*)
14519 mv -f confcache "$cache_file"$$ &&
14520 mv -f "$cache_file"$$ "$cache_file" ;; #(
14521 *)
14522 mv -f confcache "$cache_file" ;;
14523 esac
14524 fi
14525 fi
14526 else
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14528 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14529 fi
14530 fi
14531 rm -f confcache
14532
14533 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14534 # Let make expand exec_prefix.
14535 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14536
14537 DEFS=-DHAVE_CONFIG_H
14538
14539 ac_libobjs=
14540 ac_ltlibobjs=
14541 U=
14542 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14543 # 1. Remove the extension, and $U if already installed.
14544 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14545 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14546 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14547 # will be set to the directory where LIBOBJS objects are built.
14548 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14549 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14550 done
14551 LIBOBJS=$ac_libobjs
14552
14553 LTLIBOBJS=$ac_ltlibobjs
14554
14555
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14557 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14558 if test -n "$am_sleep_pid"; then
14559 # Hide warnings about reused PIDs.
14560 wait $am_sleep_pid 2>/dev/null
14561 fi
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14563 $as_echo "done" >&6; }
14564 if test -n "$EXEEXT"; then
14565 am__EXEEXT_TRUE=
14566 am__EXEEXT_FALSE='#'
14567 else
14568 am__EXEEXT_TRUE='#'
14569 am__EXEEXT_FALSE=
14570 fi
14571
14572 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14573 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14574 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14575 fi
14576 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14577 as_fn_error $? "conditional \"AMDEP\" was never defined.
14578 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14579 fi
14580 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14581 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14582 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14583 fi
14584 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
14585 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
14586 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14587 fi
14588 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
14589 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
14590 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14591 fi
14592 LT_CONFIG_H=config.h
14593
14594 _ltdl_libobjs=
14595 _ltdl_ltlibobjs=
14596 if test -n "$_LT_LIBOBJS"; then
14597 # Remove the extension.
14598 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
14599 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
14600 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
14601 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
14602 done
14603 fi
14604 ltdl_LIBOBJS=$_ltdl_libobjs
14605
14606 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
14607
14608
14609
14610 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
14611 as_fn_error $? "conditional \"ENABLE_SSL\" was never defined.
14612 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14613 fi
14614
14615 : "${CONFIG_STATUS=./config.status}"
14616 ac_write_fail=0
14617 ac_clean_files_save=$ac_clean_files
14618 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14620 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14621 as_write_fail=0
14622 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14623 #! $SHELL
14624 # Generated by $as_me.
14625 # Run this file to recreate the current configuration.
14626 # Compiler output produced by configure, useful for debugging
14627 # configure, is in config.log if it exists.
14628
14629 debug=false
14630 ac_cs_recheck=false
14631 ac_cs_silent=false
14632
14633 SHELL=\${CONFIG_SHELL-$SHELL}
14634 export SHELL
14635 _ASEOF
14636 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14637 ## -------------------- ##
14638 ## M4sh Initialization. ##
14639 ## -------------------- ##
14640
14641 # Be more Bourne compatible
14642 DUALCASE=1; export DUALCASE # for MKS sh
14643 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14644 emulate sh
14645 NULLCMD=:
14646 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14647 # is contrary to our usage. Disable this feature.
14648 alias -g '${1+"$@"}'='"$@"'
14649 setopt NO_GLOB_SUBST
14650 else
14651 case `(set -o) 2>/dev/null` in #(
14652 *posix*) :
14653 set -o posix ;; #(
14654 *) :
14655 ;;
14656 esac
14657 fi
14658
14659
14660 as_nl='
14661 '
14662 export as_nl
14663 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14664 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14665 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14666 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14667 # Prefer a ksh shell builtin over an external printf program on Solaris,
14668 # but without wasting forks for bash or zsh.
14669 if test -z "$BASH_VERSION$ZSH_VERSION" \
14670 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14671 as_echo='print -r --'
14672 as_echo_n='print -rn --'
14673 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14674 as_echo='printf %s\n'
14675 as_echo_n='printf %s'
14676 else
14677 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14678 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14679 as_echo_n='/usr/ucb/echo -n'
14680 else
14681 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14682 as_echo_n_body='eval
14683 arg=$1;
14684 case $arg in #(
14685 *"$as_nl"*)
14686 expr "X$arg" : "X\\(.*\\)$as_nl";
14687 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14688 esac;
14689 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14690 '
14691 export as_echo_n_body
14692 as_echo_n='sh -c $as_echo_n_body as_echo'
14693 fi
14694 export as_echo_body
14695 as_echo='sh -c $as_echo_body as_echo'
14696 fi
14697
14698 # The user is always right.
14699 if test "${PATH_SEPARATOR+set}" != set; then
14700 PATH_SEPARATOR=:
14701 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14702 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14703 PATH_SEPARATOR=';'
14704 }
14705 fi
14706
14707
14708 # IFS
14709 # We need space, tab and new line, in precisely that order. Quoting is
14710 # there to prevent editors from complaining about space-tab.
14711 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14712 # splitting by setting IFS to empty value.)
14713 IFS=" "" $as_nl"
14714
14715 # Find who we are. Look in the path if we contain no directory separator.
14716 as_myself=
14717 case $0 in #((
14718 *[\\/]* ) as_myself=$0 ;;
14719 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14720 for as_dir in $PATH
14721 do
14722 IFS=$as_save_IFS
14723 test -z "$as_dir" && as_dir=.
14724 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14725 done
14726 IFS=$as_save_IFS
14727
14728 ;;
14729 esac
14730 # We did not find ourselves, most probably we were run as `sh COMMAND'
14731 # in which case we are not to be found in the path.
14732 if test "x$as_myself" = x; then
14733 as_myself=$0
14734 fi
14735 if test ! -f "$as_myself"; then
14736 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14737 exit 1
14738 fi
14739
14740 # Unset variables that we do not need and which cause bugs (e.g. in
14741 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14742 # suppresses any "Segmentation fault" message there. '((' could
14743 # trigger a bug in pdksh 5.2.14.
14744 for as_var in BASH_ENV ENV MAIL MAILPATH
14745 do eval test x\${$as_var+set} = xset \
14746 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14747 done
14748 PS1='$ '
14749 PS2='> '
14750 PS4='+ '
14751
14752 # NLS nuisances.
14753 LC_ALL=C
14754 export LC_ALL
14755 LANGUAGE=C
14756 export LANGUAGE
14757
14758 # CDPATH.
14759 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14760
14761
14762 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14763 # ----------------------------------------
14764 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14765 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14766 # script with STATUS, using 1 if that was 0.
14767 as_fn_error ()
14768 {
14769 as_status=$1; test $as_status -eq 0 && as_status=1
14770 if test "$4"; then
14771 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14772 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14773 fi
14774 $as_echo "$as_me: error: $2" >&2
14775 as_fn_exit $as_status
14776 } # as_fn_error
14777
14778
14779 # as_fn_set_status STATUS
14780 # -----------------------
14781 # Set $? to STATUS, without forking.
14782 as_fn_set_status ()
14783 {
14784 return $1
14785 } # as_fn_set_status
14786
14787 # as_fn_exit STATUS
14788 # -----------------
14789 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14790 as_fn_exit ()
14791 {
14792 set +e
14793 as_fn_set_status $1
14794 exit $1
14795 } # as_fn_exit
14796
14797 # as_fn_unset VAR
14798 # ---------------
14799 # Portably unset VAR.
14800 as_fn_unset ()
14801 {
14802 { eval $1=; unset $1;}
14803 }
14804 as_unset=as_fn_unset
14805 # as_fn_append VAR VALUE
14806 # ----------------------
14807 # Append the text in VALUE to the end of the definition contained in VAR. Take
14808 # advantage of any shell optimizations that allow amortized linear growth over
14809 # repeated appends, instead of the typical quadratic growth present in naive
14810 # implementations.
14811 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14812 eval 'as_fn_append ()
14813 {
14814 eval $1+=\$2
14815 }'
14816 else
14817 as_fn_append ()
14818 {
14819 eval $1=\$$1\$2
14820 }
14821 fi # as_fn_append
14822
14823 # as_fn_arith ARG...
14824 # ------------------
14825 # Perform arithmetic evaluation on the ARGs, and store the result in the
14826 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14827 # must be portable across $(()) and expr.
14828 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14829 eval 'as_fn_arith ()
14830 {
14831 as_val=$(( $* ))
14832 }'
14833 else
14834 as_fn_arith ()
14835 {
14836 as_val=`expr "$@" || test $? -eq 1`
14837 }
14838 fi # as_fn_arith
14839
14840
14841 if expr a : '\(a\)' >/dev/null 2>&1 &&
14842 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14843 as_expr=expr
14844 else
14845 as_expr=false
14846 fi
14847
14848 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14849 as_basename=basename
14850 else
14851 as_basename=false
14852 fi
14853
14854 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14855 as_dirname=dirname
14856 else
14857 as_dirname=false
14858 fi
14859
14860 as_me=`$as_basename -- "$0" ||
14861 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14862 X"$0" : 'X\(//\)$' \| \
14863 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14864 $as_echo X/"$0" |
14865 sed '/^.*\/\([^/][^/]*\)\/*$/{
14866 s//\1/
14867 q
14868 }
14869 /^X\/\(\/\/\)$/{
14870 s//\1/
14871 q
14872 }
14873 /^X\/\(\/\).*/{
14874 s//\1/
14875 q
14876 }
14877 s/.*/./; q'`
14878
14879 # Avoid depending upon Character Ranges.
14880 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14881 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14882 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14883 as_cr_digits='0123456789'
14884 as_cr_alnum=$as_cr_Letters$as_cr_digits
14885
14886 ECHO_C= ECHO_N= ECHO_T=
14887 case `echo -n x` in #(((((
14888 -n*)
14889 case `echo 'xy\c'` in
14890 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14891 xy) ECHO_C='\c';;
14892 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14893 ECHO_T=' ';;
14894 esac;;
14895 *)
14896 ECHO_N='-n';;
14897 esac
14898
14899 rm -f conf$$ conf$$.exe conf$$.file
14900 if test -d conf$$.dir; then
14901 rm -f conf$$.dir/conf$$.file
14902 else
14903 rm -f conf$$.dir
14904 mkdir conf$$.dir 2>/dev/null
14905 fi
14906 if (echo >conf$$.file) 2>/dev/null; then
14907 if ln -s conf$$.file conf$$ 2>/dev/null; then
14908 as_ln_s='ln -s'
14909 # ... but there are two gotchas:
14910 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14911 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14912 # In both cases, we have to default to `cp -pR'.
14913 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14914 as_ln_s='cp -pR'
14915 elif ln conf$$.file conf$$ 2>/dev/null; then
14916 as_ln_s=ln
14917 else
14918 as_ln_s='cp -pR'
14919 fi
14920 else
14921 as_ln_s='cp -pR'
14922 fi
14923 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14924 rmdir conf$$.dir 2>/dev/null
14925
14926
14927 # as_fn_mkdir_p
14928 # -------------
14929 # Create "$as_dir" as a directory, including parents if necessary.
14930 as_fn_mkdir_p ()
14931 {
14932
14933 case $as_dir in #(
14934 -*) as_dir=./$as_dir;;
14935 esac
14936 test -d "$as_dir" || eval $as_mkdir_p || {
14937 as_dirs=
14938 while :; do
14939 case $as_dir in #(
14940 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14941 *) as_qdir=$as_dir;;
14942 esac
14943 as_dirs="'$as_qdir' $as_dirs"
14944 as_dir=`$as_dirname -- "$as_dir" ||
14945 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14946 X"$as_dir" : 'X\(//\)[^/]' \| \
14947 X"$as_dir" : 'X\(//\)$' \| \
14948 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14949 $as_echo X"$as_dir" |
14950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14951 s//\1/
14952 q
14953 }
14954 /^X\(\/\/\)[^/].*/{
14955 s//\1/
14956 q
14957 }
14958 /^X\(\/\/\)$/{
14959 s//\1/
14960 q
14961 }
14962 /^X\(\/\).*/{
14963 s//\1/
14964 q
14965 }
14966 s/.*/./; q'`
14967 test -d "$as_dir" && break
14968 done
14969 test -z "$as_dirs" || eval "mkdir $as_dirs"
14970 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14971
14972
14973 } # as_fn_mkdir_p
14974 if mkdir -p . 2>/dev/null; then
14975 as_mkdir_p='mkdir -p "$as_dir"'
14976 else
14977 test -d ./-p && rmdir ./-p
14978 as_mkdir_p=false
14979 fi
14980
14981
14982 # as_fn_executable_p FILE
14983 # -----------------------
14984 # Test if FILE is an executable regular file.
14985 as_fn_executable_p ()
14986 {
14987 test -f "$1" && test -x "$1"
14988 } # as_fn_executable_p
14989 as_test_x='test -x'
14990 as_executable_p=as_fn_executable_p
14991
14992 # Sed expression to map a string onto a valid CPP name.
14993 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14994
14995 # Sed expression to map a string onto a valid variable name.
14996 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14997
14998
14999 exec 6>&1
15000 ## ----------------------------------- ##
15001 ## Main body of $CONFIG_STATUS script. ##
15002 ## ----------------------------------- ##
15003 _ASEOF
15004 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15005
15006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15007 # Save the log message, to keep $0 and so on meaningful, and to
15008 # report actual input values of CONFIG_FILES etc. instead of their
15009 # values after options handling.
15010 ac_log="
15011 This file was extended by ircd-hybrid $as_me 8.0.5, which was
15012 generated by GNU Autoconf 2.69. Invocation command line was
15013
15014 CONFIG_FILES = $CONFIG_FILES
15015 CONFIG_HEADERS = $CONFIG_HEADERS
15016 CONFIG_LINKS = $CONFIG_LINKS
15017 CONFIG_COMMANDS = $CONFIG_COMMANDS
15018 $ $0 $@
15019
15020 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15021 "
15022
15023 _ACEOF
15024
15025 case $ac_config_files in *"
15026 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15027 esac
15028
15029 case $ac_config_headers in *"
15030 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15031 esac
15032
15033
15034 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15035 # Files that config.status was made for.
15036 config_files="$ac_config_files"
15037 config_headers="$ac_config_headers"
15038 config_commands="$ac_config_commands"
15039
15040 _ACEOF
15041
15042 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15043 ac_cs_usage="\
15044 \`$as_me' instantiates files and other configuration actions
15045 from templates according to the current configuration. Unless the files
15046 and actions are specified as TAGs, all are instantiated by default.
15047
15048 Usage: $0 [OPTION]... [TAG]...
15049
15050 -h, --help print this help, then exit
15051 -V, --version print version number and configuration settings, then exit
15052 --config print configuration, then exit
15053 -q, --quiet, --silent
15054 do not print progress messages
15055 -d, --debug don't remove temporary files
15056 --recheck update $as_me by reconfiguring in the same conditions
15057 --file=FILE[:TEMPLATE]
15058 instantiate the configuration file FILE
15059 --header=FILE[:TEMPLATE]
15060 instantiate the configuration header FILE
15061
15062 Configuration files:
15063 $config_files
15064
15065 Configuration headers:
15066 $config_headers
15067
15068 Configuration commands:
15069 $config_commands
15070
15071 Report bugs to <bugs@ircd-hybrid.org>."
15072
15073 _ACEOF
15074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15075 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15076 ac_cs_version="\\
15077 ircd-hybrid config.status 8.0.5
15078 configured by $0, generated by GNU Autoconf 2.69,
15079 with options \\"\$ac_cs_config\\"
15080
15081 Copyright (C) 2012 Free Software Foundation, Inc.
15082 This config.status script is free software; the Free Software Foundation
15083 gives unlimited permission to copy, distribute and modify it."
15084
15085 ac_pwd='$ac_pwd'
15086 srcdir='$srcdir'
15087 INSTALL='$INSTALL'
15088 MKDIR_P='$MKDIR_P'
15089 AWK='$AWK'
15090 test -n "\$AWK" || AWK=awk
15091 _ACEOF
15092
15093 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15094 # The default lists apply if the user does not specify any file.
15095 ac_need_defaults=:
15096 while test $# != 0
15097 do
15098 case $1 in
15099 --*=?*)
15100 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15101 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15102 ac_shift=:
15103 ;;
15104 --*=)
15105 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15106 ac_optarg=
15107 ac_shift=:
15108 ;;
15109 *)
15110 ac_option=$1
15111 ac_optarg=$2
15112 ac_shift=shift
15113 ;;
15114 esac
15115
15116 case $ac_option in
15117 # Handling of the options.
15118 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15119 ac_cs_recheck=: ;;
15120 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15121 $as_echo "$ac_cs_version"; exit ;;
15122 --config | --confi | --conf | --con | --co | --c )
15123 $as_echo "$ac_cs_config"; exit ;;
15124 --debug | --debu | --deb | --de | --d | -d )
15125 debug=: ;;
15126 --file | --fil | --fi | --f )
15127 $ac_shift
15128 case $ac_optarg in
15129 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15130 '') as_fn_error $? "missing file argument" ;;
15131 esac
15132 as_fn_append CONFIG_FILES " '$ac_optarg'"
15133 ac_need_defaults=false;;
15134 --header | --heade | --head | --hea )
15135 $ac_shift
15136 case $ac_optarg in
15137 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15138 esac
15139 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15140 ac_need_defaults=false;;
15141 --he | --h)
15142 # Conflict between --help and --header
15143 as_fn_error $? "ambiguous option: \`$1'
15144 Try \`$0 --help' for more information.";;
15145 --help | --hel | -h )
15146 $as_echo "$ac_cs_usage"; exit ;;
15147 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15148 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15149 ac_cs_silent=: ;;
15150
15151 # This is an error.
15152 -*) as_fn_error $? "unrecognized option: \`$1'
15153 Try \`$0 --help' for more information." ;;
15154
15155 *) as_fn_append ac_config_targets " $1"
15156 ac_need_defaults=false ;;
15157
15158 esac
15159 shift
15160 done
15161
15162 ac_configure_extra_args=
15163
15164 if $ac_cs_silent; then
15165 exec 6>/dev/null
15166 ac_configure_extra_args="$ac_configure_extra_args --silent"
15167 fi
15168
15169 _ACEOF
15170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15171 if \$ac_cs_recheck; then
15172 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15173 shift
15174 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15175 CONFIG_SHELL='$SHELL'
15176 export CONFIG_SHELL
15177 exec "\$@"
15178 fi
15179
15180 _ACEOF
15181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15182 exec 5>>config.log
15183 {
15184 echo
15185 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15186 ## Running $as_me. ##
15187 _ASBOX
15188 $as_echo "$ac_log"
15189 } >&5
15190
15191 _ACEOF
15192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15193 #
15194 # INIT-COMMANDS
15195 #
15196 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15197
15198
15199 # The HP-UX ksh and POSIX shell print the target directory to stdout
15200 # if CDPATH is set.
15201 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15202
15203 sed_quote_subst='$sed_quote_subst'
15204 double_quote_subst='$double_quote_subst'
15205 delay_variable_subst='$delay_variable_subst'
15206 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15207 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15208 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15209 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15210 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15211 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15212 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15213 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15214 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15215 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15216 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15217 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15218 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15219 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15220 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15221 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15222 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15223 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15224 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15225 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15226 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15227 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15228 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15229 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15230 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15231 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15232 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15233 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15234 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15235 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15236 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15237 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15238 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15239 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15240 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15241 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15242 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15243 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15244 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15245 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15246 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15247 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15248 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15249 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15250 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15251 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15252 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15253 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15254 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15255 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15256 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15257 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15258 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15259 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15260 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15261 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15262 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"`'
15263 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15264 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15265 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15266 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15267 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15268 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15269 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15270 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15271 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15272 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15273 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15274 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15275 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15276 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15277 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15278 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15279 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15280 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15281 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15282 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15283 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15284 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15285 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15286 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15287 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15288 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15289 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15290 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15291 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15292 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15293 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15294 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15295 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15296 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15297 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15298 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15299 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15300 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15301 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15302 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15303 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15304 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15305 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15306 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15307 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15308 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15309 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15310 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15311 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15312 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15313 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15314 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15315 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15316 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15317 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15318 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15319 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15320 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15321 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15322 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15323 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15324 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15325 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15326 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15327 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15328 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15329 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15330 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15331 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15332 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15333 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15334 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15335 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15336
15337 LTCC='$LTCC'
15338 LTCFLAGS='$LTCFLAGS'
15339 compiler='$compiler_DEFAULT'
15340
15341 # A function that is used when there is no print builtin or printf.
15342 func_fallback_echo ()
15343 {
15344 eval 'cat <<_LTECHO_EOF
15345 \$1
15346 _LTECHO_EOF'
15347 }
15348
15349 # Quote evaled strings.
15350 for var in SHELL \
15351 ECHO \
15352 PATH_SEPARATOR \
15353 SED \
15354 GREP \
15355 EGREP \
15356 FGREP \
15357 LD \
15358 NM \
15359 LN_S \
15360 lt_SP2NL \
15361 lt_NL2SP \
15362 reload_flag \
15363 OBJDUMP \
15364 deplibs_check_method \
15365 file_magic_cmd \
15366 file_magic_glob \
15367 want_nocaseglob \
15368 DLLTOOL \
15369 sharedlib_from_linklib_cmd \
15370 AR \
15371 AR_FLAGS \
15372 archiver_list_spec \
15373 STRIP \
15374 RANLIB \
15375 CC \
15376 CFLAGS \
15377 compiler \
15378 lt_cv_sys_global_symbol_pipe \
15379 lt_cv_sys_global_symbol_to_cdecl \
15380 lt_cv_sys_global_symbol_to_c_name_address \
15381 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15382 nm_file_list_spec \
15383 lt_prog_compiler_no_builtin_flag \
15384 lt_prog_compiler_pic \
15385 lt_prog_compiler_wl \
15386 lt_prog_compiler_static \
15387 lt_cv_prog_compiler_c_o \
15388 need_locks \
15389 MANIFEST_TOOL \
15390 DSYMUTIL \
15391 NMEDIT \
15392 LIPO \
15393 OTOOL \
15394 OTOOL64 \
15395 shrext_cmds \
15396 export_dynamic_flag_spec \
15397 whole_archive_flag_spec \
15398 compiler_needs_object \
15399 with_gnu_ld \
15400 allow_undefined_flag \
15401 no_undefined_flag \
15402 hardcode_libdir_flag_spec \
15403 hardcode_libdir_separator \
15404 exclude_expsyms \
15405 include_expsyms \
15406 file_list_spec \
15407 variables_saved_for_relink \
15408 libname_spec \
15409 library_names_spec \
15410 soname_spec \
15411 install_override_mode \
15412 finish_eval \
15413 old_striplib \
15414 striplib; do
15415 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15416 *[\\\\\\\`\\"\\\$]*)
15417 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15418 ;;
15419 *)
15420 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15421 ;;
15422 esac
15423 done
15424
15425 # Double-quote double-evaled strings.
15426 for var in reload_cmds \
15427 old_postinstall_cmds \
15428 old_postuninstall_cmds \
15429 old_archive_cmds \
15430 extract_expsyms_cmds \
15431 old_archive_from_new_cmds \
15432 old_archive_from_expsyms_cmds \
15433 archive_cmds \
15434 archive_expsym_cmds \
15435 module_cmds \
15436 module_expsym_cmds \
15437 export_symbols_cmds \
15438 prelink_cmds \
15439 postlink_cmds \
15440 postinstall_cmds \
15441 postuninstall_cmds \
15442 finish_cmds \
15443 sys_lib_search_path_spec \
15444 sys_lib_dlsearch_path_spec; do
15445 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15446 *[\\\\\\\`\\"\\\$]*)
15447 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15448 ;;
15449 *)
15450 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15451 ;;
15452 esac
15453 done
15454
15455 ac_aux_dir='$ac_aux_dir'
15456 xsi_shell='$xsi_shell'
15457 lt_shell_append='$lt_shell_append'
15458
15459 # See if we are running on zsh, and set the options which allow our
15460 # commands through without removal of \ escapes INIT.
15461 if test -n "\${ZSH_VERSION+set}" ; then
15462 setopt NO_GLOB_SUBST
15463 fi
15464
15465
15466 PACKAGE='$PACKAGE'
15467 VERSION='$VERSION'
15468 TIMESTAMP='$TIMESTAMP'
15469 RM='$RM'
15470 ofile='$ofile'
15471
15472
15473
15474
15475 _ACEOF
15476
15477 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15478
15479 # Handling of arguments.
15480 for ac_config_target in $ac_config_targets
15481 do
15482 case $ac_config_target in
15483 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15484 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15485 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15486 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15487 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
15488 "contrib/help/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/help/Makefile" ;;
15489 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15490 "libltdl/Makefile") CONFIG_FILES="$CONFIG_FILES libltdl/Makefile" ;;
15491 "messages/Makefile") CONFIG_FILES="$CONFIG_FILES messages/Makefile" ;;
15492 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
15493 "modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;;
15494 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15495 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
15496 "help/opers/Makefile") CONFIG_FILES="$CONFIG_FILES help/opers/Makefile" ;;
15497 "help/users/Makefile") CONFIG_FILES="$CONFIG_FILES help/users/Makefile" ;;
15498 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
15499
15500 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15501 esac
15502 done
15503
15504
15505 # If the user did not use the arguments to specify the items to instantiate,
15506 # then the envvar interface is used. Set only those that are not.
15507 # We use the long form for the default assignment because of an extremely
15508 # bizarre bug on SunOS 4.1.3.
15509 if $ac_need_defaults; then
15510 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15511 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15512 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15513 fi
15514
15515 # Have a temporary directory for convenience. Make it in the build tree
15516 # simply because there is no reason against having it here, and in addition,
15517 # creating and moving files from /tmp can sometimes cause problems.
15518 # Hook for its removal unless debugging.
15519 # Note that there is a small window in which the directory will not be cleaned:
15520 # after its creation but before its name has been assigned to `$tmp'.
15521 $debug ||
15522 {
15523 tmp= ac_tmp=
15524 trap 'exit_status=$?
15525 : "${ac_tmp:=$tmp}"
15526 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15527 ' 0
15528 trap 'as_fn_exit 1' 1 2 13 15
15529 }
15530 # Create a (secure) tmp directory for tmp files.
15531
15532 {
15533 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15534 test -d "$tmp"
15535 } ||
15536 {
15537 tmp=./conf$$-$RANDOM
15538 (umask 077 && mkdir "$tmp")
15539 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15540 ac_tmp=$tmp
15541
15542 # Set up the scripts for CONFIG_FILES section.
15543 # No need to generate them if there are no CONFIG_FILES.
15544 # This happens for instance with `./config.status config.h'.
15545 if test -n "$CONFIG_FILES"; then
15546
15547
15548 ac_cr=`echo X | tr X '\015'`
15549 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15550 # But we know of no other shell where ac_cr would be empty at this
15551 # point, so we can use a bashism as a fallback.
15552 if test "x$ac_cr" = x; then
15553 eval ac_cr=\$\'\\r\'
15554 fi
15555 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15556 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15557 ac_cs_awk_cr='\\r'
15558 else
15559 ac_cs_awk_cr=$ac_cr
15560 fi
15561
15562 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15563 _ACEOF
15564
15565
15566 {
15567 echo "cat >conf$$subs.awk <<_ACEOF" &&
15568 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15569 echo "_ACEOF"
15570 } >conf$$subs.sh ||
15571 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15572 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15573 ac_delim='%!_!# '
15574 for ac_last_try in false false false false false :; do
15575 . ./conf$$subs.sh ||
15576 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15577
15578 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15579 if test $ac_delim_n = $ac_delim_num; then
15580 break
15581 elif $ac_last_try; then
15582 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15583 else
15584 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15585 fi
15586 done
15587 rm -f conf$$subs.sh
15588
15589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15590 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15591 _ACEOF
15592 sed -n '
15593 h
15594 s/^/S["/; s/!.*/"]=/
15595 p
15596 g
15597 s/^[^!]*!//
15598 :repl
15599 t repl
15600 s/'"$ac_delim"'$//
15601 t delim
15602 :nl
15603 h
15604 s/\(.\{148\}\)..*/\1/
15605 t more1
15606 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15607 p
15608 n
15609 b repl
15610 :more1
15611 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15612 p
15613 g
15614 s/.\{148\}//
15615 t nl
15616 :delim
15617 h
15618 s/\(.\{148\}\)..*/\1/
15619 t more2
15620 s/["\\]/\\&/g; s/^/"/; s/$/"/
15621 p
15622 b
15623 :more2
15624 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15625 p
15626 g
15627 s/.\{148\}//
15628 t delim
15629 ' <conf$$subs.awk | sed '
15630 /^[^""]/{
15631 N
15632 s/\n//
15633 }
15634 ' >>$CONFIG_STATUS || ac_write_fail=1
15635 rm -f conf$$subs.awk
15636 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15637 _ACAWK
15638 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15639 for (key in S) S_is_set[key] = 1
15640 FS = ""
15641
15642 }
15643 {
15644 line = $ 0
15645 nfields = split(line, field, "@")
15646 substed = 0
15647 len = length(field[1])
15648 for (i = 2; i < nfields; i++) {
15649 key = field[i]
15650 keylen = length(key)
15651 if (S_is_set[key]) {
15652 value = S[key]
15653 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15654 len += length(value) + length(field[++i])
15655 substed = 1
15656 } else
15657 len += 1 + keylen
15658 }
15659
15660 print line
15661 }
15662
15663 _ACAWK
15664 _ACEOF
15665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15666 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15667 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15668 else
15669 cat
15670 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15671 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15672 _ACEOF
15673
15674 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15675 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15676 # trailing colons and then remove the whole line if VPATH becomes empty
15677 # (actually we leave an empty line to preserve line numbers).
15678 if test "x$srcdir" = x.; then
15679 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15680 h
15681 s///
15682 s/^/:/
15683 s/[ ]*$/:/
15684 s/:\$(srcdir):/:/g
15685 s/:\${srcdir}:/:/g
15686 s/:@srcdir@:/:/g
15687 s/^:*//
15688 s/:*$//
15689 x
15690 s/\(=[ ]*\).*/\1/
15691 G
15692 s/\n//
15693 s/^[^=]*=[ ]*$//
15694 }'
15695 fi
15696
15697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15698 fi # test -n "$CONFIG_FILES"
15699
15700 # Set up the scripts for CONFIG_HEADERS section.
15701 # No need to generate them if there are no CONFIG_HEADERS.
15702 # This happens for instance with `./config.status Makefile'.
15703 if test -n "$CONFIG_HEADERS"; then
15704 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15705 BEGIN {
15706 _ACEOF
15707
15708 # Transform confdefs.h into an awk script `defines.awk', embedded as
15709 # here-document in config.status, that substitutes the proper values into
15710 # config.h.in to produce config.h.
15711
15712 # Create a delimiter string that does not exist in confdefs.h, to ease
15713 # handling of long lines.
15714 ac_delim='%!_!# '
15715 for ac_last_try in false false :; do
15716 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15717 if test -z "$ac_tt"; then
15718 break
15719 elif $ac_last_try; then
15720 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15721 else
15722 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15723 fi
15724 done
15725
15726 # For the awk script, D is an array of macro values keyed by name,
15727 # likewise P contains macro parameters if any. Preserve backslash
15728 # newline sequences.
15729
15730 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15731 sed -n '
15732 s/.\{148\}/&'"$ac_delim"'/g
15733 t rset
15734 :rset
15735 s/^[ ]*#[ ]*define[ ][ ]*/ /
15736 t def
15737 d
15738 :def
15739 s/\\$//
15740 t bsnl
15741 s/["\\]/\\&/g
15742 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15743 D["\1"]=" \3"/p
15744 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15745 d
15746 :bsnl
15747 s/["\\]/\\&/g
15748 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15749 D["\1"]=" \3\\\\\\n"\\/p
15750 t cont
15751 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15752 t cont
15753 d
15754 :cont
15755 n
15756 s/.\{148\}/&'"$ac_delim"'/g
15757 t clear
15758 :clear
15759 s/\\$//
15760 t bsnlc
15761 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15762 d
15763 :bsnlc
15764 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15765 b cont
15766 ' <confdefs.h | sed '
15767 s/'"$ac_delim"'/"\\\
15768 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15769
15770 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15771 for (key in D) D_is_set[key] = 1
15772 FS = ""
15773 }
15774 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15775 line = \$ 0
15776 split(line, arg, " ")
15777 if (arg[1] == "#") {
15778 defundef = arg[2]
15779 mac1 = arg[3]
15780 } else {
15781 defundef = substr(arg[1], 2)
15782 mac1 = arg[2]
15783 }
15784 split(mac1, mac2, "(") #)
15785 macro = mac2[1]
15786 prefix = substr(line, 1, index(line, defundef) - 1)
15787 if (D_is_set[macro]) {
15788 # Preserve the white space surrounding the "#".
15789 print prefix "define", macro P[macro] D[macro]
15790 next
15791 } else {
15792 # Replace #undef with comments. This is necessary, for example,
15793 # in the case of _POSIX_SOURCE, which is predefined and required
15794 # on some systems where configure will not decide to define it.
15795 if (defundef == "undef") {
15796 print "/*", prefix defundef, macro, "*/"
15797 next
15798 }
15799 }
15800 }
15801 { print }
15802 _ACAWK
15803 _ACEOF
15804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15805 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15806 fi # test -n "$CONFIG_HEADERS"
15807
15808
15809 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15810 shift
15811 for ac_tag
15812 do
15813 case $ac_tag in
15814 :[FHLC]) ac_mode=$ac_tag; continue;;
15815 esac
15816 case $ac_mode$ac_tag in
15817 :[FHL]*:*);;
15818 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15819 :[FH]-) ac_tag=-:-;;
15820 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15821 esac
15822 ac_save_IFS=$IFS
15823 IFS=:
15824 set x $ac_tag
15825 IFS=$ac_save_IFS
15826 shift
15827 ac_file=$1
15828 shift
15829
15830 case $ac_mode in
15831 :L) ac_source=$1;;
15832 :[FH])
15833 ac_file_inputs=
15834 for ac_f
15835 do
15836 case $ac_f in
15837 -) ac_f="$ac_tmp/stdin";;
15838 *) # Look for the file first in the build tree, then in the source tree
15839 # (if the path is not absolute). The absolute path cannot be DOS-style,
15840 # because $ac_f cannot contain `:'.
15841 test -f "$ac_f" ||
15842 case $ac_f in
15843 [\\/$]*) false;;
15844 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15845 esac ||
15846 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15847 esac
15848 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15849 as_fn_append ac_file_inputs " '$ac_f'"
15850 done
15851
15852 # Let's still pretend it is `configure' which instantiates (i.e., don't
15853 # use $as_me), people would be surprised to read:
15854 # /* config.h. Generated by config.status. */
15855 configure_input='Generated from '`
15856 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15857 `' by configure.'
15858 if test x"$ac_file" != x-; then
15859 configure_input="$ac_file. $configure_input"
15860 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15861 $as_echo "$as_me: creating $ac_file" >&6;}
15862 fi
15863 # Neutralize special characters interpreted by sed in replacement strings.
15864 case $configure_input in #(
15865 *\&* | *\|* | *\\* )
15866 ac_sed_conf_input=`$as_echo "$configure_input" |
15867 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15868 *) ac_sed_conf_input=$configure_input;;
15869 esac
15870
15871 case $ac_tag in
15872 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15873 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15874 esac
15875 ;;
15876 esac
15877
15878 ac_dir=`$as_dirname -- "$ac_file" ||
15879 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15880 X"$ac_file" : 'X\(//\)[^/]' \| \
15881 X"$ac_file" : 'X\(//\)$' \| \
15882 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15883 $as_echo X"$ac_file" |
15884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15885 s//\1/
15886 q
15887 }
15888 /^X\(\/\/\)[^/].*/{
15889 s//\1/
15890 q
15891 }
15892 /^X\(\/\/\)$/{
15893 s//\1/
15894 q
15895 }
15896 /^X\(\/\).*/{
15897 s//\1/
15898 q
15899 }
15900 s/.*/./; q'`
15901 as_dir="$ac_dir"; as_fn_mkdir_p
15902 ac_builddir=.
15903
15904 case "$ac_dir" in
15905 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15906 *)
15907 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15908 # A ".." for each directory in $ac_dir_suffix.
15909 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15910 case $ac_top_builddir_sub in
15911 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15912 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15913 esac ;;
15914 esac
15915 ac_abs_top_builddir=$ac_pwd
15916 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15917 # for backward compatibility:
15918 ac_top_builddir=$ac_top_build_prefix
15919
15920 case $srcdir in
15921 .) # We are building in place.
15922 ac_srcdir=.
15923 ac_top_srcdir=$ac_top_builddir_sub
15924 ac_abs_top_srcdir=$ac_pwd ;;
15925 [\\/]* | ?:[\\/]* ) # Absolute name.
15926 ac_srcdir=$srcdir$ac_dir_suffix;
15927 ac_top_srcdir=$srcdir
15928 ac_abs_top_srcdir=$srcdir ;;
15929 *) # Relative name.
15930 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15931 ac_top_srcdir=$ac_top_build_prefix$srcdir
15932 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15933 esac
15934 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15935
15936
15937 case $ac_mode in
15938 :F)
15939 #
15940 # CONFIG_FILE
15941 #
15942
15943 case $INSTALL in
15944 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15945 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15946 esac
15947 ac_MKDIR_P=$MKDIR_P
15948 case $MKDIR_P in
15949 [\\/$]* | ?:[\\/]* ) ;;
15950 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15951 esac
15952 _ACEOF
15953
15954 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15955 # If the template does not know about datarootdir, expand it.
15956 # FIXME: This hack should be removed a few years after 2.60.
15957 ac_datarootdir_hack=; ac_datarootdir_seen=
15958 ac_sed_dataroot='
15959 /datarootdir/ {
15960 p
15961 q
15962 }
15963 /@datadir@/p
15964 /@docdir@/p
15965 /@infodir@/p
15966 /@localedir@/p
15967 /@mandir@/p'
15968 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15969 *datarootdir*) ac_datarootdir_seen=yes;;
15970 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15972 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15973 _ACEOF
15974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15975 ac_datarootdir_hack='
15976 s&@datadir@&$datadir&g
15977 s&@docdir@&$docdir&g
15978 s&@infodir@&$infodir&g
15979 s&@localedir@&$localedir&g
15980 s&@mandir@&$mandir&g
15981 s&\\\${datarootdir}&$datarootdir&g' ;;
15982 esac
15983 _ACEOF
15984
15985 # Neutralize VPATH when `$srcdir' = `.'.
15986 # Shell code in configure.ac might set extrasub.
15987 # FIXME: do we really want to maintain this feature?
15988 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15989 ac_sed_extra="$ac_vpsub
15990 $extrasub
15991 _ACEOF
15992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15993 :t
15994 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15995 s|@configure_input@|$ac_sed_conf_input|;t t
15996 s&@top_builddir@&$ac_top_builddir_sub&;t t
15997 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15998 s&@srcdir@&$ac_srcdir&;t t
15999 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16000 s&@top_srcdir@&$ac_top_srcdir&;t t
16001 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16002 s&@builddir@&$ac_builddir&;t t
16003 s&@abs_builddir@&$ac_abs_builddir&;t t
16004 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16005 s&@INSTALL@&$ac_INSTALL&;t t
16006 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16007 $ac_datarootdir_hack
16008 "
16009 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16010 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16011
16012 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16013 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16014 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16015 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16017 which seems to be undefined. Please make sure it is defined" >&5
16018 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16019 which seems to be undefined. Please make sure it is defined" >&2;}
16020
16021 rm -f "$ac_tmp/stdin"
16022 case $ac_file in
16023 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16024 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16025 esac \
16026 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16027 ;;
16028 :H)
16029 #
16030 # CONFIG_HEADER
16031 #
16032 if test x"$ac_file" != x-; then
16033 {
16034 $as_echo "/* $configure_input */" \
16035 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16036 } >"$ac_tmp/config.h" \
16037 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16038 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16040 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16041 else
16042 rm -f "$ac_file"
16043 mv "$ac_tmp/config.h" "$ac_file" \
16044 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16045 fi
16046 else
16047 $as_echo "/* $configure_input */" \
16048 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16049 || as_fn_error $? "could not create -" "$LINENO" 5
16050 fi
16051 # Compute "$ac_file"'s index in $config_headers.
16052 _am_arg="$ac_file"
16053 _am_stamp_count=1
16054 for _am_header in $config_headers :; do
16055 case $_am_header in
16056 $_am_arg | $_am_arg:* )
16057 break ;;
16058 * )
16059 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16060 esac
16061 done
16062 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16063 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16064 X"$_am_arg" : 'X\(//\)[^/]' \| \
16065 X"$_am_arg" : 'X\(//\)$' \| \
16066 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16067 $as_echo X"$_am_arg" |
16068 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16069 s//\1/
16070 q
16071 }
16072 /^X\(\/\/\)[^/].*/{
16073 s//\1/
16074 q
16075 }
16076 /^X\(\/\/\)$/{
16077 s//\1/
16078 q
16079 }
16080 /^X\(\/\).*/{
16081 s//\1/
16082 q
16083 }
16084 s/.*/./; q'`/stamp-h$_am_stamp_count
16085 ;;
16086
16087 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16088 $as_echo "$as_me: executing $ac_file commands" >&6;}
16089 ;;
16090 esac
16091
16092
16093 case $ac_file$ac_mode in
16094 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16095 # Older Autoconf quotes --file arguments for eval, but not when files
16096 # are listed without --file. Let's play safe and only enable the eval
16097 # if we detect the quoting.
16098 case $CONFIG_FILES in
16099 *\'*) eval set x "$CONFIG_FILES" ;;
16100 *) set x $CONFIG_FILES ;;
16101 esac
16102 shift
16103 for mf
16104 do
16105 # Strip MF so we end up with the name of the file.
16106 mf=`echo "$mf" | sed -e 's/:.*$//'`
16107 # Check whether this is an Automake generated Makefile or not.
16108 # We used to match only the files named 'Makefile.in', but
16109 # some people rename them; so instead we look at the file content.
16110 # Grep'ing the first line is not enough: some people post-process
16111 # each Makefile.in and add a new line on top of each file to say so.
16112 # Grep'ing the whole file is not good either: AIX grep has a line
16113 # limit of 2048, but all sed's we know have understand at least 4000.
16114 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16115 dirpart=`$as_dirname -- "$mf" ||
16116 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16117 X"$mf" : 'X\(//\)[^/]' \| \
16118 X"$mf" : 'X\(//\)$' \| \
16119 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16120 $as_echo X"$mf" |
16121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16122 s//\1/
16123 q
16124 }
16125 /^X\(\/\/\)[^/].*/{
16126 s//\1/
16127 q
16128 }
16129 /^X\(\/\/\)$/{
16130 s//\1/
16131 q
16132 }
16133 /^X\(\/\).*/{
16134 s//\1/
16135 q
16136 }
16137 s/.*/./; q'`
16138 else
16139 continue
16140 fi
16141 # Extract the definition of DEPDIR, am__include, and am__quote
16142 # from the Makefile without running 'make'.
16143 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16144 test -z "$DEPDIR" && continue
16145 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16146 test -z "am__include" && continue
16147 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16148 # Find all dependency output files, they are included files with
16149 # $(DEPDIR) in their names. We invoke sed twice because it is the
16150 # simplest approach to changing $(DEPDIR) to its actual value in the
16151 # expansion.
16152 for file in `sed -n "
16153 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16154 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16155 # Make sure the directory exists.
16156 test -f "$dirpart/$file" && continue
16157 fdir=`$as_dirname -- "$file" ||
16158 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16159 X"$file" : 'X\(//\)[^/]' \| \
16160 X"$file" : 'X\(//\)$' \| \
16161 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16162 $as_echo X"$file" |
16163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16164 s//\1/
16165 q
16166 }
16167 /^X\(\/\/\)[^/].*/{
16168 s//\1/
16169 q
16170 }
16171 /^X\(\/\/\)$/{
16172 s//\1/
16173 q
16174 }
16175 /^X\(\/\).*/{
16176 s//\1/
16177 q
16178 }
16179 s/.*/./; q'`
16180 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16181 # echo "creating $dirpart/$file"
16182 echo '# dummy' > "$dirpart/$file"
16183 done
16184 done
16185 }
16186 ;;
16187 "libtool":C)
16188
16189 # See if we are running on zsh, and set the options which allow our
16190 # commands through without removal of \ escapes.
16191 if test -n "${ZSH_VERSION+set}" ; then
16192 setopt NO_GLOB_SUBST
16193 fi
16194
16195 cfgfile="${ofile}T"
16196 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16197 $RM "$cfgfile"
16198
16199 cat <<_LT_EOF >> "$cfgfile"
16200 #! $SHELL
16201
16202 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16203 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16204 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16205 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16206 #
16207 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16208 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16209 # Foundation, Inc.
16210 # Written by Gordon Matzigkeit, 1996
16211 #
16212 # This file is part of GNU Libtool.
16213 #
16214 # GNU Libtool is free software; you can redistribute it and/or
16215 # modify it under the terms of the GNU General Public License as
16216 # published by the Free Software Foundation; either version 2 of
16217 # the License, or (at your option) any later version.
16218 #
16219 # As a special exception to the GNU General Public License,
16220 # if you distribute this file as part of a program or library that
16221 # is built using GNU Libtool, you may include this file under the
16222 # same distribution terms that you use for the rest of that program.
16223 #
16224 # GNU Libtool is distributed in the hope that it will be useful,
16225 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16226 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16227 # GNU General Public License for more details.
16228 #
16229 # You should have received a copy of the GNU General Public License
16230 # along with GNU Libtool; see the file COPYING. If not, a copy
16231 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16232 # obtained by writing to the Free Software Foundation, Inc.,
16233 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16234
16235
16236 # The names of the tagged configurations supported by this script.
16237 available_tags=""
16238
16239 # ### BEGIN LIBTOOL CONFIG
16240
16241 # Which release of libtool.m4 was used?
16242 macro_version=$macro_version
16243 macro_revision=$macro_revision
16244
16245 # Whether or not to build static libraries.
16246 build_old_libs=$enable_static
16247
16248 # Whether or not to build shared libraries.
16249 build_libtool_libs=$enable_shared
16250
16251 # What type of objects to build.
16252 pic_mode=$pic_mode
16253
16254 # Whether or not to optimize for fast installation.
16255 fast_install=$enable_fast_install
16256
16257 # Shell to use when invoking shell scripts.
16258 SHELL=$lt_SHELL
16259
16260 # An echo program that protects backslashes.
16261 ECHO=$lt_ECHO
16262
16263 # The PATH separator for the build system.
16264 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16265
16266 # The host system.
16267 host_alias=$host_alias
16268 host=$host
16269 host_os=$host_os
16270
16271 # The build system.
16272 build_alias=$build_alias
16273 build=$build
16274 build_os=$build_os
16275
16276 # A sed program that does not truncate output.
16277 SED=$lt_SED
16278
16279 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16280 Xsed="\$SED -e 1s/^X//"
16281
16282 # A grep program that handles long lines.
16283 GREP=$lt_GREP
16284
16285 # An ERE matcher.
16286 EGREP=$lt_EGREP
16287
16288 # A literal string matcher.
16289 FGREP=$lt_FGREP
16290
16291 # A BSD- or MS-compatible name lister.
16292 NM=$lt_NM
16293
16294 # Whether we need soft or hard links.
16295 LN_S=$lt_LN_S
16296
16297 # What is the maximum length of a command?
16298 max_cmd_len=$max_cmd_len
16299
16300 # Object file suffix (normally "o").
16301 objext=$ac_objext
16302
16303 # Executable file suffix (normally "").
16304 exeext=$exeext
16305
16306 # whether the shell understands "unset".
16307 lt_unset=$lt_unset
16308
16309 # turn spaces into newlines.
16310 SP2NL=$lt_lt_SP2NL
16311
16312 # turn newlines into spaces.
16313 NL2SP=$lt_lt_NL2SP
16314
16315 # convert \$build file names to \$host format.
16316 to_host_file_cmd=$lt_cv_to_host_file_cmd
16317
16318 # convert \$build files to toolchain format.
16319 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16320
16321 # An object symbol dumper.
16322 OBJDUMP=$lt_OBJDUMP
16323
16324 # Method to check whether dependent libraries are shared objects.
16325 deplibs_check_method=$lt_deplibs_check_method
16326
16327 # Command to use when deplibs_check_method = "file_magic".
16328 file_magic_cmd=$lt_file_magic_cmd
16329
16330 # How to find potential files when deplibs_check_method = "file_magic".
16331 file_magic_glob=$lt_file_magic_glob
16332
16333 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16334 want_nocaseglob=$lt_want_nocaseglob
16335
16336 # DLL creation program.
16337 DLLTOOL=$lt_DLLTOOL
16338
16339 # Command to associate shared and link libraries.
16340 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16341
16342 # The archiver.
16343 AR=$lt_AR
16344
16345 # Flags to create an archive.
16346 AR_FLAGS=$lt_AR_FLAGS
16347
16348 # How to feed a file listing to the archiver.
16349 archiver_list_spec=$lt_archiver_list_spec
16350
16351 # A symbol stripping program.
16352 STRIP=$lt_STRIP
16353
16354 # Commands used to install an old-style archive.
16355 RANLIB=$lt_RANLIB
16356 old_postinstall_cmds=$lt_old_postinstall_cmds
16357 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16358
16359 # Whether to use a lock for old archive extraction.
16360 lock_old_archive_extraction=$lock_old_archive_extraction
16361
16362 # A C compiler.
16363 LTCC=$lt_CC
16364
16365 # LTCC compiler flags.
16366 LTCFLAGS=$lt_CFLAGS
16367
16368 # Take the output of nm and produce a listing of raw symbols and C names.
16369 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16370
16371 # Transform the output of nm in a proper C declaration.
16372 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16373
16374 # Transform the output of nm in a C name address pair.
16375 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16376
16377 # Transform the output of nm in a C name address pair when lib prefix is needed.
16378 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16379
16380 # Specify filename containing input files for \$NM.
16381 nm_file_list_spec=$lt_nm_file_list_spec
16382
16383 # The root where to search for dependent libraries,and in which our libraries should be installed.
16384 lt_sysroot=$lt_sysroot
16385
16386 # The name of the directory that contains temporary libtool files.
16387 objdir=$objdir
16388
16389 # Used to examine libraries when file_magic_cmd begins with "file".
16390 MAGIC_CMD=$MAGIC_CMD
16391
16392 # Must we lock files when doing compilation?
16393 need_locks=$lt_need_locks
16394
16395 # Manifest tool.
16396 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16397
16398 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16399 DSYMUTIL=$lt_DSYMUTIL
16400
16401 # Tool to change global to local symbols on Mac OS X.
16402 NMEDIT=$lt_NMEDIT
16403
16404 # Tool to manipulate fat objects and archives on Mac OS X.
16405 LIPO=$lt_LIPO
16406
16407 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16408 OTOOL=$lt_OTOOL
16409
16410 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16411 OTOOL64=$lt_OTOOL64
16412
16413 # Old archive suffix (normally "a").
16414 libext=$libext
16415
16416 # Shared library suffix (normally ".so").
16417 shrext_cmds=$lt_shrext_cmds
16418
16419 # The commands to extract the exported symbol list from a shared archive.
16420 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16421
16422 # Variables whose values should be saved in libtool wrapper scripts and
16423 # restored at link time.
16424 variables_saved_for_relink=$lt_variables_saved_for_relink
16425
16426 # Do we need the "lib" prefix for modules?
16427 need_lib_prefix=$need_lib_prefix
16428
16429 # Do we need a version for libraries?
16430 need_version=$need_version
16431
16432 # Library versioning type.
16433 version_type=$version_type
16434
16435 # Shared library runtime path variable.
16436 runpath_var=$runpath_var
16437
16438 # Shared library path variable.
16439 shlibpath_var=$shlibpath_var
16440
16441 # Is shlibpath searched before the hard-coded library search path?
16442 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16443
16444 # Format of library name prefix.
16445 libname_spec=$lt_libname_spec
16446
16447 # List of archive names. First name is the real one, the rest are links.
16448 # The last name is the one that the linker finds with -lNAME
16449 library_names_spec=$lt_library_names_spec
16450
16451 # The coded name of the library, if different from the real name.
16452 soname_spec=$lt_soname_spec
16453
16454 # Permission mode override for installation of shared libraries.
16455 install_override_mode=$lt_install_override_mode
16456
16457 # Command to use after installation of a shared archive.
16458 postinstall_cmds=$lt_postinstall_cmds
16459
16460 # Command to use after uninstallation of a shared archive.
16461 postuninstall_cmds=$lt_postuninstall_cmds
16462
16463 # Commands used to finish a libtool library installation in a directory.
16464 finish_cmds=$lt_finish_cmds
16465
16466 # As "finish_cmds", except a single script fragment to be evaled but
16467 # not shown.
16468 finish_eval=$lt_finish_eval
16469
16470 # Whether we should hardcode library paths into libraries.
16471 hardcode_into_libs=$hardcode_into_libs
16472
16473 # Compile-time system search path for libraries.
16474 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16475
16476 # Run-time system search path for libraries.
16477 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16478
16479 # Whether dlopen is supported.
16480 dlopen_support=$enable_dlopen
16481
16482 # Whether dlopen of programs is supported.
16483 dlopen_self=$enable_dlopen_self
16484
16485 # Whether dlopen of statically linked programs is supported.
16486 dlopen_self_static=$enable_dlopen_self_static
16487
16488 # Commands to strip libraries.
16489 old_striplib=$lt_old_striplib
16490 striplib=$lt_striplib
16491
16492
16493 # The linker used to build libraries.
16494 LD=$lt_LD
16495
16496 # How to create reloadable object files.
16497 reload_flag=$lt_reload_flag
16498 reload_cmds=$lt_reload_cmds
16499
16500 # Commands used to build an old-style archive.
16501 old_archive_cmds=$lt_old_archive_cmds
16502
16503 # A language specific compiler.
16504 CC=$lt_compiler
16505
16506 # Is the compiler the GNU compiler?
16507 with_gcc=$GCC
16508
16509 # Compiler flag to turn off builtin functions.
16510 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16511
16512 # Additional compiler flags for building library objects.
16513 pic_flag=$lt_lt_prog_compiler_pic
16514
16515 # How to pass a linker flag through the compiler.
16516 wl=$lt_lt_prog_compiler_wl
16517
16518 # Compiler flag to prevent dynamic linking.
16519 link_static_flag=$lt_lt_prog_compiler_static
16520
16521 # Does compiler simultaneously support -c and -o options?
16522 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16523
16524 # Whether or not to add -lc for building shared libraries.
16525 build_libtool_need_lc=$archive_cmds_need_lc
16526
16527 # Whether or not to disallow shared libs when runtime libs are static.
16528 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16529
16530 # Compiler flag to allow reflexive dlopens.
16531 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16532
16533 # Compiler flag to generate shared objects directly from archives.
16534 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16535
16536 # Whether the compiler copes with passing no objects directly.
16537 compiler_needs_object=$lt_compiler_needs_object
16538
16539 # Create an old-style archive from a shared archive.
16540 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16541
16542 # Create a temporary old-style archive to link instead of a shared archive.
16543 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16544
16545 # Commands used to build a shared archive.
16546 archive_cmds=$lt_archive_cmds
16547 archive_expsym_cmds=$lt_archive_expsym_cmds
16548
16549 # Commands used to build a loadable module if different from building
16550 # a shared archive.
16551 module_cmds=$lt_module_cmds
16552 module_expsym_cmds=$lt_module_expsym_cmds
16553
16554 # Whether we are building with GNU ld or not.
16555 with_gnu_ld=$lt_with_gnu_ld
16556
16557 # Flag that allows shared libraries with undefined symbols to be built.
16558 allow_undefined_flag=$lt_allow_undefined_flag
16559
16560 # Flag that enforces no undefined symbols.
16561 no_undefined_flag=$lt_no_undefined_flag
16562
16563 # Flag to hardcode \$libdir into a binary during linking.
16564 # This must work even if \$libdir does not exist
16565 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16566
16567 # Whether we need a single "-rpath" flag with a separated argument.
16568 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16569
16570 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16571 # DIR into the resulting binary.
16572 hardcode_direct=$hardcode_direct
16573
16574 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16575 # DIR into the resulting binary and the resulting library dependency is
16576 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16577 # library is relocated.
16578 hardcode_direct_absolute=$hardcode_direct_absolute
16579
16580 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16581 # into the resulting binary.
16582 hardcode_minus_L=$hardcode_minus_L
16583
16584 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16585 # into the resulting binary.
16586 hardcode_shlibpath_var=$hardcode_shlibpath_var
16587
16588 # Set to "yes" if building a shared library automatically hardcodes DIR
16589 # into the library and all subsequent libraries and executables linked
16590 # against it.
16591 hardcode_automatic=$hardcode_automatic
16592
16593 # Set to yes if linker adds runtime paths of dependent libraries
16594 # to runtime path list.
16595 inherit_rpath=$inherit_rpath
16596
16597 # Whether libtool must link a program against all its dependency libraries.
16598 link_all_deplibs=$link_all_deplibs
16599
16600 # Set to "yes" if exported symbols are required.
16601 always_export_symbols=$always_export_symbols
16602
16603 # The commands to list exported symbols.
16604 export_symbols_cmds=$lt_export_symbols_cmds
16605
16606 # Symbols that should not be listed in the preloaded symbols.
16607 exclude_expsyms=$lt_exclude_expsyms
16608
16609 # Symbols that must always be exported.
16610 include_expsyms=$lt_include_expsyms
16611
16612 # Commands necessary for linking programs (against libraries) with templates.
16613 prelink_cmds=$lt_prelink_cmds
16614
16615 # Commands necessary for finishing linking programs.
16616 postlink_cmds=$lt_postlink_cmds
16617
16618 # Specify filename containing input files.
16619 file_list_spec=$lt_file_list_spec
16620
16621 # How to hardcode a shared library path into an executable.
16622 hardcode_action=$hardcode_action
16623
16624 # ### END LIBTOOL CONFIG
16625
16626 _LT_EOF
16627
16628 case $host_os in
16629 aix3*)
16630 cat <<\_LT_EOF >> "$cfgfile"
16631 # AIX sometimes has problems with the GCC collect2 program. For some
16632 # reason, if we set the COLLECT_NAMES environment variable, the problems
16633 # vanish in a puff of smoke.
16634 if test "X${COLLECT_NAMES+set}" != Xset; then
16635 COLLECT_NAMES=
16636 export COLLECT_NAMES
16637 fi
16638 _LT_EOF
16639 ;;
16640 esac
16641
16642
16643 ltmain="$ac_aux_dir/ltmain.sh"
16644
16645
16646 # We use sed instead of cat because bash on DJGPP gets confused if
16647 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16648 # text mode, it properly converts lines to CR/LF. This bash problem
16649 # is reportedly fixed, but why not run on old versions too?
16650 sed '$q' "$ltmain" >> "$cfgfile" \
16651 || (rm -f "$cfgfile"; exit 1)
16652
16653 if test x"$xsi_shell" = xyes; then
16654 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16655 func_dirname ()\
16656 {\
16657 \ case ${1} in\
16658 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16659 \ * ) func_dirname_result="${3}" ;;\
16660 \ esac\
16661 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16662 && mv -f "$cfgfile.tmp" "$cfgfile" \
16663 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16664 test 0 -eq $? || _lt_function_replace_fail=:
16665
16666
16667 sed -e '/^func_basename ()$/,/^} # func_basename /c\
16668 func_basename ()\
16669 {\
16670 \ func_basename_result="${1##*/}"\
16671 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16672 && mv -f "$cfgfile.tmp" "$cfgfile" \
16673 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16674 test 0 -eq $? || _lt_function_replace_fail=:
16675
16676
16677 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16678 func_dirname_and_basename ()\
16679 {\
16680 \ case ${1} in\
16681 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16682 \ * ) func_dirname_result="${3}" ;;\
16683 \ esac\
16684 \ func_basename_result="${1##*/}"\
16685 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16686 && mv -f "$cfgfile.tmp" "$cfgfile" \
16687 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16688 test 0 -eq $? || _lt_function_replace_fail=:
16689
16690
16691 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16692 func_stripname ()\
16693 {\
16694 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16695 \ # positional parameters, so assign one to ordinary parameter first.\
16696 \ func_stripname_result=${3}\
16697 \ func_stripname_result=${func_stripname_result#"${1}"}\
16698 \ func_stripname_result=${func_stripname_result%"${2}"}\
16699 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16700 && mv -f "$cfgfile.tmp" "$cfgfile" \
16701 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16702 test 0 -eq $? || _lt_function_replace_fail=:
16703
16704
16705 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16706 func_split_long_opt ()\
16707 {\
16708 \ func_split_long_opt_name=${1%%=*}\
16709 \ func_split_long_opt_arg=${1#*=}\
16710 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16711 && mv -f "$cfgfile.tmp" "$cfgfile" \
16712 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16713 test 0 -eq $? || _lt_function_replace_fail=:
16714
16715
16716 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16717 func_split_short_opt ()\
16718 {\
16719 \ func_split_short_opt_arg=${1#??}\
16720 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16721 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16722 && mv -f "$cfgfile.tmp" "$cfgfile" \
16723 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16724 test 0 -eq $? || _lt_function_replace_fail=:
16725
16726
16727 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16728 func_lo2o ()\
16729 {\
16730 \ case ${1} in\
16731 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16732 \ *) func_lo2o_result=${1} ;;\
16733 \ esac\
16734 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16735 && mv -f "$cfgfile.tmp" "$cfgfile" \
16736 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16737 test 0 -eq $? || _lt_function_replace_fail=:
16738
16739
16740 sed -e '/^func_xform ()$/,/^} # func_xform /c\
16741 func_xform ()\
16742 {\
16743 func_xform_result=${1%.*}.lo\
16744 } # Extended-shell func_xform 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_arith ()$/,/^} # func_arith /c\
16751 func_arith ()\
16752 {\
16753 func_arith_result=$(( $* ))\
16754 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16755 && mv -f "$cfgfile.tmp" "$cfgfile" \
16756 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16757 test 0 -eq $? || _lt_function_replace_fail=:
16758
16759
16760 sed -e '/^func_len ()$/,/^} # func_len /c\
16761 func_len ()\
16762 {\
16763 func_len_result=${#1}\
16764 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16765 && mv -f "$cfgfile.tmp" "$cfgfile" \
16766 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16767 test 0 -eq $? || _lt_function_replace_fail=:
16768
16769 fi
16770
16771 if test x"$lt_shell_append" = xyes; then
16772 sed -e '/^func_append ()$/,/^} # func_append /c\
16773 func_append ()\
16774 {\
16775 eval "${1}+=\\${2}"\
16776 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16777 && mv -f "$cfgfile.tmp" "$cfgfile" \
16778 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16779 test 0 -eq $? || _lt_function_replace_fail=:
16780
16781
16782 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16783 func_append_quoted ()\
16784 {\
16785 \ func_quote_for_eval "${2}"\
16786 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16787 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16788 && mv -f "$cfgfile.tmp" "$cfgfile" \
16789 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16790 test 0 -eq $? || _lt_function_replace_fail=:
16791
16792
16793 # Save a `func_append' function call where possible by direct use of '+='
16794 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16795 && mv -f "$cfgfile.tmp" "$cfgfile" \
16796 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16797 test 0 -eq $? || _lt_function_replace_fail=:
16798 else
16799 # Save a `func_append' function call even when '+=' is not available
16800 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16801 && mv -f "$cfgfile.tmp" "$cfgfile" \
16802 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16803 test 0 -eq $? || _lt_function_replace_fail=:
16804 fi
16805
16806 if test x"$_lt_function_replace_fail" = x":"; then
16807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16808 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16809 fi
16810
16811
16812 mv -f "$cfgfile" "$ofile" ||
16813 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16814 chmod +x "$ofile"
16815
16816 ;;
16817
16818 esac
16819 done # for ac_tag
16820
16821
16822 as_fn_exit 0
16823 _ACEOF
16824 ac_clean_files=$ac_clean_files_save
16825
16826 test $ac_write_fail = 0 ||
16827 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16828
16829
16830 # configure is writing to config.log, and then calls config.status.
16831 # config.status does its own redirection, appending to config.log.
16832 # Unfortunately, on DOS this fails, as config.log is still kept open
16833 # by configure, so config.status won't be able to write to it; its
16834 # output is simply discarded. So we exec the FD to /dev/null,
16835 # effectively closing config.log, so it can be properly (re)opened and
16836 # appended to by config.status. When coming back to configure, we
16837 # need to make the FD available again.
16838 if test "$no_create" != yes; then
16839 ac_cs_success=:
16840 ac_config_status_args=
16841 test "$silent" = yes &&
16842 ac_config_status_args="$ac_config_status_args --quiet"
16843 exec 5>/dev/null
16844 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16845 exec 5>>config.log
16846 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16847 # would make configure fail if this is the last instruction.
16848 $ac_cs_success || as_fn_exit 1
16849 fi
16850 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16852 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16853 fi
16854

Properties

Name Value
svn:executable *